@alistigo/artifact-list 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +84 -0
- package/dist/index.umd.js +42 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-outline-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:Inter, ui-sans-serif, system-ui, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius:.625rem;--color-bg:var(--color-bg-app);--color-bg-subtle:var(--color-bg-subtle-app);--color-fg:var(--color-fg-app);--color-fg-muted:var(--color-fg-muted-app);--color-border:var(--color-border-app);--color-primary-9:var(--color-primary-9-app);--color-primary-10:var(--color-primary-10-app);--color-primary-fg:var(--color-primary-fg-app);--color-danger-9:var(--color-danger-9-app);--color-danger-10:var(--color-danger-10-app)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fixed{position:fixed}.end{inset-inline-end:var(--spacing)}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.flex{display:flex}.inline{display:inline}.inline-flex{display:inline-flex}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.h-9{height:calc(var(--spacing) * 9)}.h-11{height:calc(var(--spacing) * 11)}.min-h-dvh{min-height:100dvh}.w-11{width:calc(var(--spacing) * 11)}.w-full{width:100%}.max-w-md{max-width:var(--container-md)}.flex-1{flex:1}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.gap-4{gap:calc(var(--spacing) * 4)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded-\\[var\\(--radius\\)\\]{border-radius:var(--radius)}.border{border-style:var(--tw-border-style);border-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\\[var\\(--color-border\\)\\]{border-color:var(--color-border)}.bg-\\[var\\(--color-bg\\)\\]{background-color:var(--color-bg)}.bg-\\[var\\(--color-danger-9\\)\\]{background-color:var(--color-danger-9)}.bg-\\[var\\(--color-primary-9\\)\\]{background-color:var(--color-primary-9)}.bg-transparent{background-color:#0000}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-12{padding-block:calc(var(--spacing) * 12)}.text-center{text-align:center}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.whitespace-nowrap{white-space:nowrap}.text-\\[var\\(--color-fg\\)\\]{color:var(--color-fg)}.text-\\[var\\(--color-fg-muted\\)\\]{color:var(--color-fg-muted)}.text-\\[var\\(--color-primary-fg\\)\\]{color:var(--color-primary-fg)}.text-white{color:var(--color-white)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[background\\,color\\,opacity\\]{transition-property:background,color,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.placeholder\\:text-\\[var\\(--color-fg-muted\\)\\]::placeholder{color:var(--color-fg-muted)}@media(hover:hover){.hover\\:bg-\\[var\\(--color-bg-subtle\\)\\]:hover{background-color:var(--color-bg-subtle)}.hover\\:bg-\\[var\\(--color-danger-10\\)\\]:hover{background-color:var(--color-danger-10)}.hover\\:bg-\\[var\\(--color-primary-10\\)\\]:hover{background-color:var(--color-primary-10)}}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-\\[var\\(--color-primary-9\\)\\]:focus-visible{--tw-ring-color:var(--color-primary-9)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-\\[var\\(--color-bg\\)\\]:focus-visible{--tw-ring-offset-color:var(--color-bg)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}}:root,.light,.light-theme{--gray-1:#fcfcfc;--gray-2:#f9f9f9;--gray-3:#f0f0f0;--gray-4:#e8e8e8;--gray-5:#e0e0e0;--gray-6:#d9d9d9;--gray-7:#cecece;--gray-8:#bbb;--gray-9:#8d8d8d;--gray-10:#838383;--gray-11:#646464;--gray-12:#202020}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){:root,.light,.light-theme{--gray-1:color(display-p3 .988 .988 .988);--gray-2:color(display-p3 .975 .975 .975);--gray-3:color(display-p3 .939 .939 .939);--gray-4:color(display-p3 .908 .908 .908);--gray-5:color(display-p3 .88 .88 .88);--gray-6:color(display-p3 .849 .849 .849);--gray-7:color(display-p3 .807 .807 .807);--gray-8:color(display-p3 .732 .732 .732);--gray-9:color(display-p3 .553 .553 .553);--gray-10:color(display-p3 .512 .512 .512);--gray-11:color(display-p3 .392 .392 .392);--gray-12:color(display-p3 .125 .125 .125)}}}.dark,.dark-theme{--gray-1:#111;--gray-2:#191919;--gray-3:#222;--gray-4:#2a2a2a;--gray-5:#313131;--gray-6:#3a3a3a;--gray-7:#484848;--gray-8:#606060;--gray-9:#6e6e6e;--gray-10:#7b7b7b;--gray-11:#b4b4b4;--gray-12:#eee}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){.dark,.dark-theme{--gray-1:color(display-p3 .067 .067 .067);--gray-2:color(display-p3 .098 .098 .098);--gray-3:color(display-p3 .135 .135 .135);--gray-4:color(display-p3 .163 .163 .163);--gray-5:color(display-p3 .192 .192 .192);--gray-6:color(display-p3 .228 .228 .228);--gray-7:color(display-p3 .283 .283 .283);--gray-8:color(display-p3 .375 .375 .375);--gray-9:color(display-p3 .431 .431 .431);--gray-10:color(display-p3 .484 .484 .484);--gray-11:color(display-p3 .706 .706 .706);--gray-12:color(display-p3 .933 .933 .933)}}}:root,.light,.light-theme{--gray-a1:#00000003;--gray-a2:#00000006;--gray-a3:#0000000f;--gray-a4:#00000017;--gray-a5:#0000001f;--gray-a6:#00000026;--gray-a7:#00000031;--gray-a8:#0004;--gray-a9:#00000072;--gray-a10:#0000007c;--gray-a11:#0000009b;--gray-a12:#000000df}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){:root,.light,.light-theme{--gray-a1:color(display-p3 0 0 0/.012);--gray-a2:color(display-p3 0 0 0/.024);--gray-a3:color(display-p3 0 0 0/.063);--gray-a4:color(display-p3 0 0 0/.09);--gray-a5:color(display-p3 0 0 0/.122);--gray-a6:color(display-p3 0 0 0/.153);--gray-a7:color(display-p3 0 0 0/.192);--gray-a8:color(display-p3 0 0 0/.267);--gray-a9:color(display-p3 0 0 0/.447);--gray-a10:color(display-p3 0 0 0/.486);--gray-a11:color(display-p3 0 0 0/.608);--gray-a12:color(display-p3 0 0 0/.875)}}}:root,.light,.light-theme{--violet-1:#fdfcfe;--violet-2:#faf8ff;--violet-3:#f4f0fe;--violet-4:#ebe4ff;--violet-5:#e1d9ff;--violet-6:#d4cafe;--violet-7:#c2b5f5;--violet-8:#aa99ec;--violet-9:#6e56cf;--violet-10:#654dc4;--violet-11:#6550b9;--violet-12:#2f265f}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){:root,.light,.light-theme{--violet-1:color(display-p3 .991 .988 .995);--violet-2:color(display-p3 .978 .974 .998);--violet-3:color(display-p3 .953 .943 .993);--violet-4:color(display-p3 .916 .897 1);--violet-5:color(display-p3 .876 .851 1);--violet-6:color(display-p3 .825 .793 .981);--violet-7:color(display-p3 .752 .712 .943);--violet-8:color(display-p3 .654 .602 .902);--violet-9:color(display-p3 .417 .341 .784);--violet-10:color(display-p3 .381 .306 .741);--violet-11:color(display-p3 .383 .317 .702);--violet-12:color(display-p3 .179 .15 .359)}}}.dark,.dark-theme{--violet-1:#14121f;--violet-2:#1b1525;--violet-3:#291f43;--violet-4:#33255b;--violet-5:#3c2e69;--violet-6:#473876;--violet-7:#56468b;--violet-8:#6958ad;--violet-9:#6e56cf;--violet-10:#7d66d9;--violet-11:#baa7ff;--violet-12:#e2ddfe}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){.dark,.dark-theme{--violet-1:color(display-p3 .077 .071 .118);--violet-2:color(display-p3 .101 .084 .141);--violet-3:color(display-p3 .154 .123 .256);--violet-4:color(display-p3 .191 .148 .345);--violet-5:color(display-p3 .226 .182 .396);--violet-6:color(display-p3 .269 .223 .449);--violet-7:color(display-p3 .326 .277 .53);--violet-8:color(display-p3 .399 .346 .656);--violet-9:color(display-p3 .417 .341 .784);--violet-10:color(display-p3 .477 .402 .823);--violet-11:color(display-p3 .72 .65 1);--violet-12:color(display-p3 .883 .867 .986)}}}:root,.light,.light-theme{--red-1:#fffcfc;--red-2:#fff7f7;--red-3:#feebec;--red-4:#ffdbdc;--red-5:#ffcdce;--red-6:#fdbdbe;--red-7:#f4a9aa;--red-8:#eb8e90;--red-9:#e5484d;--red-10:#dc3e42;--red-11:#ce2c31;--red-12:#641723}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){:root,.light,.light-theme{--red-1:color(display-p3 .998 .989 .988);--red-2:color(display-p3 .995 .971 .971);--red-3:color(display-p3 .985 .925 .925);--red-4:color(display-p3 .999 .866 .866);--red-5:color(display-p3 .984 .812 .811);--red-6:color(display-p3 .955 .751 .749);--red-7:color(display-p3 .915 .675 .672);--red-8:color(display-p3 .872 .575 .572);--red-9:color(display-p3 .83 .329 .324);--red-10:color(display-p3 .798 .294 .285);--red-11:color(display-p3 .744 .234 .222);--red-12:color(display-p3 .36 .115 .143)}}}.dark,.dark-theme{--red-1:#191111;--red-2:#201314;--red-3:#3b1219;--red-4:#500f1c;--red-5:#611623;--red-6:#72232d;--red-7:#8c333a;--red-8:#b54548;--red-9:#e5484d;--red-10:#ec5d5e;--red-11:#ff9592;--red-12:#ffd1d9}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){.dark,.dark-theme{--red-1:color(display-p3 .093 .068 .067);--red-2:color(display-p3 .118 .077 .079);--red-3:color(display-p3 .211 .081 .099);--red-4:color(display-p3 .287 .079 .113);--red-5:color(display-p3 .348 .11 .142);--red-6:color(display-p3 .414 .16 .183);--red-7:color(display-p3 .508 .224 .236);--red-8:color(display-p3 .659 .298 .297);--red-9:color(display-p3 .83 .329 .324);--red-10:color(display-p3 .861 .403 .387);--red-11:color(display-p3 1 .57 .55);--red-12:color(display-p3 .971 .826 .852)}}}:root{--color-bg-app:var(--gray-1);--color-bg-subtle-app:var(--gray-3);--color-fg-app:var(--gray-12);--color-fg-muted-app:var(--gray-11);--color-border-app:var(--gray-6);--color-primary-9-app:var(--violet-9);--color-primary-10-app:var(--violet-10);--color-primary-fg-app:white;--color-danger-9-app:var(--red-9);--color-danger-10-app:var(--red-10)}[data-theme=dark]{--color-bg-app:var(--gray-1);--color-bg-subtle-app:var(--gray-3);--color-fg-app:var(--gray-12);--color-fg-muted-app:var(--gray-11);--color-border-app:var(--gray-6);--color-primary-9-app:var(--violet-9);--color-primary-10-app:var(--violet-10);--color-primary-fg-app:white;--color-danger-9-app:var(--red-9);--color-danger-10-app:var(--red-10);color-scheme:dark}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark}}html,body{background:var(--color-bg);color:var(--color-fg);font-family:var(--font-sans)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
+
(function(In){typeof define=="function"&&define.amd?define(In):In()})((function(){"use strict";try{let In=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},Ga=new In.Error().stack;Ga&&(In._sentryDebugIds=In._sentryDebugIds||{},In._sentryDebugIds[Ga]="a063b5b5-38fd-4087-b2cf-18533c32da37",In._sentryDebugIdIdentifier="sentry-dbid-a063b5b5-38fd-4087-b2cf-18533c32da37")}catch{}function In(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in t)){const u=Object.getOwnPropertyDescriptor(r,o);u&&Object.defineProperty(t,o,u.get?u:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"4f5512c18d9b1f155bcb78fbeee4fd0055f79983"}}function Ga(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ya={exports:{}},Qf,Wv;function WA(){if(Wv)return Qf;Wv=1;function t(n){try{return JSON.stringify(n)}catch{return'"[Circular]"'}}Qf=e;function e(n,r,o){var u=o&&o.stringify||t,c=1;if(typeof n=="object"&&n!==null){var f=r.length+c;if(f===1)return n;var h=new Array(f);h[0]=u(n);for(var g=1;g<f;g++)h[g]=u(r[g]);return h.join(" ")}if(typeof n!="string")return n;var m=r.length;if(m===0)return n;for(var v="",_=1-c,b=-1,x=n&&n.length||0,E=0;E<x;){if(n.charCodeAt(E)===37&&E+1<x){switch(b=b>-1?b:0,n.charCodeAt(E+1)){case 100:case 102:if(_>=m||r[_]==null)break;b<E&&(v+=n.slice(b,E)),v+=Number(r[_]),b=E+2,E++;break;case 105:if(_>=m||r[_]==null)break;b<E&&(v+=n.slice(b,E)),v+=Math.floor(Number(r[_])),b=E+2,E++;break;case 79:case 111:case 106:if(_>=m||r[_]===void 0)break;b<E&&(v+=n.slice(b,E));var M=typeof r[_];if(M==="string"){v+="'"+r[_]+"'",b=E+2,E++;break}if(M==="function"){v+=r[_].name||"<anonymous>",b=E+2,E++;break}v+=u(r[_]),b=E+2,E++;break;case 115:if(_>=m)break;b<E&&(v+=n.slice(b,E)),v+=String(r[_]),b=E+2,E++;break;case 37:b<E&&(v+=n.slice(b,E)),v+="%",b=E+2,E++,_--;break}++_}++E}return b===-1?n:(b<x&&(v+=n.slice(b)),v)}return Qf}var ey;function e5(){if(ey)return Ya.exports;ey=1;const t=WA();Ya.exports=m;const e=ye().console||{},n={mapHttpRequest:P,mapHttpResponse:P,wrapRequestSerializer:I,wrapResponseSerializer:I,wrapErrorSerializer:I,req:P,res:P,err:U,errWithCause:U};function r(L,A){return L==="silent"?1/0:A.levels.values[L]}const o=Symbol("pino.logFuncs"),u=Symbol("pino.hierarchy"),c={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function f(L,A){const N={logger:A,parent:L[u]};A[u]=N}function h(L,A,N){const J={};A.forEach(te=>{J[te]=N[te]?N[te]:e[te]||e[c[te]||"log"]||$}),L[o]=J}function g(L,A){return Array.isArray(L)?L.filter(function(J){return J!=="!stdSerializers.err"}):L===!0?Object.keys(A):!1}function m(L){L=L||{},L.browser=L.browser||{};const A=L.browser.transmit;if(A&&typeof A.send!="function")throw Error("pino: transmit option must have a send function");const N=L.browser.write||e;L.browser.write&&(L.browser.asObject=!0);const J=L.serializers||{},te=g(L.browser.serialize,J);let ue=L.browser.serialize;Array.isArray(L.browser.serialize)&&L.browser.serialize.indexOf("!stdSerializers.err")>-1&&(ue=!1);const T=Object.keys(L.customLevels||{}),j=["error","fatal","warn","info","debug","trace"].concat(T);typeof N=="function"&&j.forEach(function(it){N[it]=N}),(L.enabled===!1||L.browser.disabled)&&(L.level="silent");const W=L.level||"info",H=Object.create(N);H.log||(H.log=$),h(H,j,N),f({},H),Object.defineProperty(H,"levelVal",{get:ge}),Object.defineProperty(H,"level",{get:Me,set:je});const oe={transmit:A,serialize:te,asObject:L.browser.asObject,asObjectBindingsOnly:L.browser.asObjectBindingsOnly,formatters:L.browser.formatters,levels:j,timestamp:Q(L),messageKey:L.messageKey||"msg",onChild:L.onChild||$};H.levels=v(L),H.level=W,H.isLevelEnabled=function(it){return this.levels.values[it]?this.levels.values[it]>=this.levels.values[this.level]:!1},H.setMaxListeners=H.getMaxListeners=H.emit=H.addListener=H.on=H.prependListener=H.once=H.prependOnceListener=H.removeListener=H.removeAllListeners=H.listeners=H.listenerCount=H.eventNames=H.write=H.flush=$,H.serializers=J,H._serialize=te,H._stdErrSerialize=ue,H.child=function(...it){return Ue.call(this,oe,...it)},A&&(H._logEvent=K());function ge(){return r(this.level,this)}function Me(){return this._level}function je(it){if(it!=="silent"&&!this.levels.values[it])throw Error("unknown level "+it);this._level=it,x(this,oe,H,"error"),x(this,oe,H,"fatal"),x(this,oe,H,"warn"),x(this,oe,H,"info"),x(this,oe,H,"debug"),x(this,oe,H,"trace"),T.forEach(Ft=>{x(this,oe,H,Ft)})}function Ue(it,Ft,At){if(!Ft)throw new Error("missing bindings for child Pino");At=At||{},te&&Ft.serializers&&(At.serializers=Ft.serializers);const tr=At.serializers;if(te&&tr){var Qt=Object.assign({},J,tr),ss=L.browser.serialize===!0?Object.keys(Qt):te;delete Ft.serializers,q([Ft],ss,Qt,this._stdErrSerialize)}function Yt(ti){this._childLevel=(ti._childLevel|0)+1,this.bindings=Ft,Qt&&(this.serializers=Qt,this._serialize=ss),A&&(this._logEvent=K([].concat(ti._logEvent.bindings,Ft)))}Yt.prototype=this;const Ei=new Yt(this);return f(this,Ei),Ei.child=function(...ti){return Ue.call(this,it,...ti)},Ei.level=At.level||this.level,it.onChild(Ei),Ei}return H}function v(L){const A=L.customLevels||{},N=Object.assign({},m.levels.values,A),J=Object.assign({},m.levels.labels,_(A));return{values:N,labels:J}}function _(L){const A={};return Object.keys(L).forEach(function(N){A[L[N]]=N}),A}m.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},m.stdSerializers=n,m.stdTimeFunctions=Object.assign({},{nullTime:ee,epochTime:le,unixTime:ie,isoTime:he});function b(L){const A=[];L.bindings&&A.push(L.bindings);let N=L[u];for(;N.parent;)N=N.parent,N.logger.bindings&&A.push(N.logger.bindings);return A.reverse()}function x(L,A,N,J){if(Object.defineProperty(L,J,{value:r(L.level,N)>r(J,N)?$:N[o][J],writable:!0,enumerable:!0,configurable:!0}),L[J]===$){if(!A.transmit)return;const ue=A.transmit.level||L.level,T=r(ue,N);if(r(J,N)<T)return}L[J]=M(L,A,N,J);const te=b(L);te.length!==0&&(L[J]=E(te,L[J]))}function E(L,A){return function(){return A.apply(this,[...L,...arguments])}}function M(L,A,N,J){return(function(te){return function(){const T=A.timestamp(),j=new Array(arguments.length),W=Object.getPrototypeOf&&Object.getPrototypeOf(this)===e?e:this;for(var H=0;H<j.length;H++)j[H]=arguments[H];var oe=!1;if(A.serialize&&(q(j,this._serialize,this.serializers,this._stdErrSerialize),oe=!0),A.asObject||A.formatters?te.call(W,...R(this,J,j,T,A)):te.apply(W,j),A.transmit){const ge=A.transmit.level||L._level,Me=r(ge,N),je=r(J,N);if(je<Me)return;F(this,{ts:T,methodLevel:J,methodValue:je,transmitValue:N.levels.values[A.transmit.level||L._level],send:A.transmit.send,val:r(L._level,N)},j,oe)}}})(L[o][J])}function R(L,A,N,J,te){const{level:ue,log:T=ge=>ge}=te.formatters||{},j=N.slice();let W=j[0];const H={};let oe=(L._childLevel|0)+1;if(oe<1&&(oe=1),J&&(H.time=J),ue){const ge=ue(A,L.levels.values[A]);Object.assign(H,ge)}else H.level=L.levels.values[A];if(te.asObjectBindingsOnly){if(W!==null&&typeof W=="object")for(;oe--&&typeof j[0]=="object";)Object.assign(H,j.shift());return[T(H),...j]}else{if(W!==null&&typeof W=="object"){for(;oe--&&typeof j[0]=="object";)Object.assign(H,j.shift());W=j.length?t(j.shift(),j):void 0}else typeof W=="string"&&(W=t(j.shift(),j));return W!==void 0&&(H[te.messageKey]=W),[T(H)]}}function q(L,A,N,J){for(const te in L)if(J&&L[te]instanceof Error)L[te]=m.stdSerializers.err(L[te]);else if(typeof L[te]=="object"&&!Array.isArray(L[te])&&A)for(const ue in L[te])A.indexOf(ue)>-1&&ue in N&&(L[te][ue]=N[ue](L[te][ue]))}function F(L,A,N,J=!1){const te=A.send,ue=A.ts,T=A.methodLevel,j=A.methodValue,W=A.val,H=L._logEvent.bindings;J||q(N,L._serialize||Object.keys(L.serializers),L.serializers,L._stdErrSerialize===void 0?!0:L._stdErrSerialize),L._logEvent.ts=ue,L._logEvent.messages=N.filter(function(oe){return H.indexOf(oe)===-1}),L._logEvent.level.label=T,L._logEvent.level.value=j,te(T,L._logEvent,W),L._logEvent=K(H)}function K(L){return{ts:0,messages:[],bindings:L||[],level:{label:"",value:0}}}function U(L){const A={type:L.constructor.name,msg:L.message,stack:L.stack};for(const N in L)A[N]===void 0&&(A[N]=L[N]);return A}function Q(L){return typeof L.timestamp=="function"?L.timestamp:L.timestamp===!1?ee:le}function P(){return{}}function I(L){return L}function $(){}function ee(){return!1}function le(){return Date.now()}function ie(){return Math.round(Date.now()/1e3)}function he(){return new Date(Date.now()).toISOString()}function ye(){function L(A){return typeof A<"u"&&A}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return L(self)||L(window)||L(this)||{}}}return Ya.exports.default=m,Ya.exports.pino=m,Ya.exports}var t5=e5();const ty=Ga(t5)({level:"silent",browser:{asObject:!0}}),n5=t=>{ty.level=t},qi=(t,e)=>ty.child({module:t,...e}),Jf={version:"0.2.4"},Pi=t=>typeof t=="string",i5=t=>typeof t=="function",ny=new Map,iy="en";function Wf(t){return[...Array.isArray(t)?t:[t],iy]}function ed(t,e,n){const r=Wf(t);n||(n="default");let o;if(typeof n=="string")switch(o={day:"numeric",month:"short",year:"numeric"},n){case"full":o.weekday="long";case"long":o.month="long";break;case"short":o.month="numeric";break}else o=n;return Zl(()=>Ql("date",r,n),()=>new Intl.DateTimeFormat(r,o)).format(Pi(e)?new Date(e):e)}function s5(t,e,n){let r;if(n||(n="default"),typeof n=="string")switch(r={second:"numeric",minute:"numeric",hour:"numeric"},n){case"full":case"long":r.timeZoneName="short";break;case"short":delete r.second}else r=n;return ed(t,e,r)}function td(t,e,n){const r=Wf(t);return Zl(()=>Ql("number",r,n),()=>new Intl.NumberFormat(r,n)).format(e)}function sy(t,e,n,{offset:r=0,...o}){const u=Wf(t),c=e?Zl(()=>Ql("plural-ordinal",u),()=>new Intl.PluralRules(u,{type:"ordinal"})):Zl(()=>Ql("plural-cardinal",u),()=>new Intl.PluralRules(u,{type:"cardinal"}));return o[n]??o[c.select(n-r)]??o.other}function Zl(t,e){const n=t();let r=ny.get(n);return r||(r=e(),ny.set(n,r)),r}function Ql(t,e,n){const r=e.join("-");return`${t}-${r}-${JSON.stringify(n)}`}const ry=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,ay=t=>t.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g,(e,n,r)=>{if(n){const o=parseInt(n,16);return String.fromCharCode(o)}else{const o=parseInt(r,16);return String.fromCharCode(o)}}),oy="%__lingui_octothorpe__%",r5=(t,e,n={})=>{const r=e||t,o=c=>typeof c=="object"?c:n[c],u=(c,f)=>{const h=Object.keys(n).length?o("number"):void 0,g=td(r,c,h);return f.replace(new RegExp(oy,"g"),g)};return{plural:(c,f)=>{const{offset:h=0}=f,g=sy(r,!1,c,f);return u(c-h,g)},selectordinal:(c,f)=>{const{offset:h=0}=f,g=sy(r,!0,c,f);return u(c-h,g)},select:a5,number:(c,f)=>td(r,c,o(f)||{style:f}),date:(c,f)=>ed(r,c,o(f)||f),time:(c,f)=>s5(r,c,o(f)||f)}},a5=(t,e)=>e[t]??e.other;function o5(t,e,n){return(r={},o)=>{const u=r5(e,n,o),c=(h,g=!1)=>Array.isArray(h)?h.reduce((m,v)=>{if(v==="#"&&g)return m+oy;if(Pi(v))return m+v;const[_,b,x]=v;let E={};b==="plural"||b==="selectordinal"||b==="select"?Object.entries(x).forEach(([R,q])=>{E[R]=c(q,b==="plural"||b==="selectordinal")}):E=x;let M;if(b){const R=u[b];M=R(r[_],E)}else M=r[_];return M==null?m:m+M},""):h,f=c(t);return Pi(f)&&ry.test(f)?ay(f):Pi(f)?f:f?String(f):""}}class l5{_events={};on(e,n){return this._events[e]??=new Set,this._events[e].add(n),()=>this.removeListener(e,n)}removeListener(e,n){const r=this._events[e];r?.delete(n),r?.size===0&&delete this._events[e]}emit(e,...n){const r=this._events[e];if(r)for(const o of[...r])o.apply(this,n)}}class u5 extends l5{_locale="";_locales;_messages={};_missing;_messageCompiler;constructor(e){super(),e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),(typeof e.locale=="string"||e.locales)&&this.activate(e.locale??iy,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}setMessagesCompiler(e){return this._messageCompiler=e,this}_load(e,n){const r=this._messages[e];r?Object.assign(r,n):this._messages[e]=n}load(e,n){typeof e=="string"&&typeof n=="object"?this._load(e,n):Object.entries(e).forEach(([r,o])=>this._load(r,o)),this.emit("change")}loadAndActivate({locale:e,locales:n,messages:r}){this._locale=e,this._locales=n||void 0,this._messages[this._locale]=r,this.emit("change")}activate(e,n){this._locale=e,this._locales=n,this.emit("change")}_(e,n,r){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let o=r?.message;e||(e=""),Pi(e)||(n=e.values||n,o=e.message,e=e.id);const u=this.messages[e],c=u===void 0,f=this._missing;if(f&&c)return i5(f)?f(this._locale,e):f;c&&this.emit("missing",{id:e,locale:this._locale});let h=u||o||e;return Pi(h)&&(this._messageCompiler?h=this._messageCompiler(h):console.warn(`Uncompiled message detected! Message:
|
|
3
|
+
|
|
4
|
+
> ${h}
|
|
5
|
+
|
|
6
|
+
That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
|
|
7
|
+
ICU features such as interpolation and plurals will not work properly for that message.
|
|
8
|
+
|
|
9
|
+
Please compile your catalog first.
|
|
10
|
+
`)),Pi(h)&&ry.test(h)?ay(h):Pi(h)?h:o5(h,this._locale,this._locales)(n,r?.formats)}t=this._.bind(this);date(e,n){return ed(this._locales||this._locale,e,n)}number(e,n){return td(this._locales||this._locale,e,n)}}function c5(t={}){return new u5(t)}const nd=c5();var id={exports:{}},Xa={};var ly;function f5(){if(ly)return Xa;ly=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var f in o)f!=="key"&&(u[f]=o[f])}else u=o;return o=u.ref,{$$typeof:t,type:r,key:c,ref:o!==void 0?o:null,props:u}}return Xa.Fragment=e,Xa.jsx=n,Xa.jsxs=n,Xa}var uy;function d5(){return uy||(uy=1,id.exports=f5()),id.exports}var ve=d5(),sd={exports:{}},xe={};var cy;function h5(){if(cy)return xe;cy=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function b(T){return T===null||typeof T!="object"?null:(T=_&&T[_]||T["@@iterator"],typeof T=="function"?T:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,M={};function R(T,j,W){this.props=T,this.context=j,this.refs=M,this.updater=W||x}R.prototype.isReactComponent={},R.prototype.setState=function(T,j){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,j,"setState")},R.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function q(){}q.prototype=R.prototype;function F(T,j,W){this.props=T,this.context=j,this.refs=M,this.updater=W||x}var K=F.prototype=new q;K.constructor=F,E(K,R.prototype),K.isPureReactComponent=!0;var U=Array.isArray;function Q(){}var P={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function $(T,j,W){var H=W.ref;return{$$typeof:t,type:T,key:j,ref:H!==void 0?H:null,props:W}}function ee(T,j){return $(T.type,j,T.props)}function le(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function ie(T){var j={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(W){return j[W]})}var he=/\/+/g;function ye(T,j){return typeof T=="object"&&T!==null&&T.key!=null?ie(""+T.key):j.toString(36)}function L(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(Q,Q):(T.status="pending",T.then(function(j){T.status==="pending"&&(T.status="fulfilled",T.value=j)},function(j){T.status==="pending"&&(T.status="rejected",T.reason=j)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function A(T,j,W,H,oe){var ge=typeof T;(ge==="undefined"||ge==="boolean")&&(T=null);var Me=!1;if(T===null)Me=!0;else switch(ge){case"bigint":case"string":case"number":Me=!0;break;case"object":switch(T.$$typeof){case t:case e:Me=!0;break;case m:return Me=T._init,A(Me(T._payload),j,W,H,oe)}}if(Me)return oe=oe(T),Me=H===""?"."+ye(T,0):H,U(oe)?(W="",Me!=null&&(W=Me.replace(he,"$&/")+"/"),A(oe,j,W,"",function(it){return it})):oe!=null&&(le(oe)&&(oe=ee(oe,W+(oe.key==null||T&&T.key===oe.key?"":(""+oe.key).replace(he,"$&/")+"/")+Me)),j.push(oe)),1;Me=0;var je=H===""?".":H+":";if(U(T))for(var Ue=0;Ue<T.length;Ue++)H=T[Ue],ge=je+ye(H,Ue),Me+=A(H,j,W,ge,oe);else if(Ue=b(T),typeof Ue=="function")for(T=Ue.call(T),Ue=0;!(H=T.next()).done;)H=H.value,ge=je+ye(H,Ue++),Me+=A(H,j,W,ge,oe);else if(ge==="object"){if(typeof T.then=="function")return A(L(T),j,W,H,oe);throw j=String(T),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return Me}function N(T,j,W){if(T==null)return T;var H=[],oe=0;return A(T,H,"","",function(ge){return j.call(W,ge,oe++)}),H}function J(T){if(T._status===-1){var j=T._result;j=j(),j.then(function(W){(T._status===0||T._status===-1)&&(T._status=1,T._result=W)},function(W){(T._status===0||T._status===-1)&&(T._status=2,T._result=W)}),T._status===-1&&(T._status=0,T._result=j)}if(T._status===1)return T._result.default;throw T._result}var te=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},ue={map:N,forEach:function(T,j,W){N(T,function(){j.apply(this,arguments)},W)},count:function(T){var j=0;return N(T,function(){j++}),j},toArray:function(T){return N(T,function(j){return j})||[]},only:function(T){if(!le(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return xe.Activity=v,xe.Children=ue,xe.Component=R,xe.Fragment=n,xe.Profiler=o,xe.PureComponent=F,xe.StrictMode=r,xe.Suspense=h,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,xe.__COMPILER_RUNTIME={__proto__:null,c:function(T){return P.H.useMemoCache(T)}},xe.cache=function(T){return function(){return T.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(T,j,W){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var H=E({},T.props),oe=T.key;if(j!=null)for(ge in j.key!==void 0&&(oe=""+j.key),j)!I.call(j,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&j.ref===void 0||(H[ge]=j[ge]);var ge=arguments.length-2;if(ge===1)H.children=W;else if(1<ge){for(var Me=Array(ge),je=0;je<ge;je++)Me[je]=arguments[je+2];H.children=Me}return $(T.type,oe,H)},xe.createContext=function(T){return T={$$typeof:c,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:u,_context:T},T},xe.createElement=function(T,j,W){var H,oe={},ge=null;if(j!=null)for(H in j.key!==void 0&&(ge=""+j.key),j)I.call(j,H)&&H!=="key"&&H!=="__self"&&H!=="__source"&&(oe[H]=j[H]);var Me=arguments.length-2;if(Me===1)oe.children=W;else if(1<Me){for(var je=Array(Me),Ue=0;Ue<Me;Ue++)je[Ue]=arguments[Ue+2];oe.children=je}if(T&&T.defaultProps)for(H in Me=T.defaultProps,Me)oe[H]===void 0&&(oe[H]=Me[H]);return $(T,ge,oe)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(T){return{$$typeof:f,render:T}},xe.isValidElement=le,xe.lazy=function(T){return{$$typeof:m,_payload:{_status:-1,_result:T},_init:J}},xe.memo=function(T,j){return{$$typeof:g,type:T,compare:j===void 0?null:j}},xe.startTransition=function(T){var j=P.T,W={};P.T=W;try{var H=T(),oe=P.S;oe!==null&&oe(W,H),typeof H=="object"&&H!==null&&typeof H.then=="function"&&H.then(Q,te)}catch(ge){te(ge)}finally{j!==null&&W.types!==null&&(j.types=W.types),P.T=j}},xe.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},xe.use=function(T){return P.H.use(T)},xe.useActionState=function(T,j,W){return P.H.useActionState(T,j,W)},xe.useCallback=function(T,j){return P.H.useCallback(T,j)},xe.useContext=function(T){return P.H.useContext(T)},xe.useDebugValue=function(){},xe.useDeferredValue=function(T,j){return P.H.useDeferredValue(T,j)},xe.useEffect=function(T,j){return P.H.useEffect(T,j)},xe.useEffectEvent=function(T){return P.H.useEffectEvent(T)},xe.useId=function(){return P.H.useId()},xe.useImperativeHandle=function(T,j,W){return P.H.useImperativeHandle(T,j,W)},xe.useInsertionEffect=function(T,j){return P.H.useInsertionEffect(T,j)},xe.useLayoutEffect=function(T,j){return P.H.useLayoutEffect(T,j)},xe.useMemo=function(T,j){return P.H.useMemo(T,j)},xe.useOptimistic=function(T,j){return P.H.useOptimistic(T,j)},xe.useReducer=function(T,j,W){return P.H.useReducer(T,j,W)},xe.useRef=function(T){return P.H.useRef(T)},xe.useState=function(T){return P.H.useState(T)},xe.useSyncExternalStore=function(T,j,W){return P.H.useSyncExternalStore(T,j,W)},xe.useTransition=function(){return P.H.useTransition()},xe.version="19.2.5",xe}var fy;function rd(){return fy||(fy=1,sd.exports=h5()),sd.exports}var Y=rd();const p5=In({__proto__:null,default:Ga(Y)},[Y]),g5=/<([a-zA-Z0-9]+)>([\s\S]*?)<\/\1>|<([a-zA-Z0-9]+)\/>/,m5={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0};function dy(t,e={}){const n=t.split(g5);if(n.length===1)return t;const r=v5(0,"$lingui$"),o=[],u=n.shift();u&&o.push(u);for(const[c,f,h]of hy(n)){let g=typeof c<"u"?e[c]:void 0;(!g||m5[g.type]&&f)&&(console.error(g?`${g.type} is a void element tag therefore it must have no children`:`Can't use element at index '${c}' as it is not declared in the original translation`),g=ve.jsx(ve.Fragment,{})),Array.isArray(g)&&(g=ve.jsx(ve.Fragment,{children:g})),o.push(Y.cloneElement(g,{key:r()},f?dy(f,e):g.props.children)),h&&o.push(h)}return o.length===1?o[0]:o}function hy(t){if(!t.length)return[];const[e,n,r,o]=t.slice(0,4);return[[e||r,n||"",o]].concat(hy(t.slice(4,t.length)))}const v5=(t=0,e="")=>()=>`${e}_${t++}`;function y5(t){const{render:e,component:n,id:r,message:o,formats:u,lingui:{i18n:c,defaultComponent:f}}=t,{values:h,components:g}=b5(t),m=c&&typeof c._=="function"?c._(r,h,{message:o,formats:u}):r,v=m?dy(m,g):null;if(e===null||n===null)return v;const _=f||_5,b={id:r,message:o,translation:v,children:v};if(e&&n)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(e&&typeof e!="function")console.error(`Invalid value supplied to prop \`render\`. It must be a function, provided ${e}`);else if(n&&typeof n!="function")return console.error(`Invalid value supplied to prop \`component\`. It must be a React component, provided ${n}`),ve.jsx(_,{...b,children:v});if(typeof e=="function")return e(b);const x=n||_;return ve.jsx(x,{...b,children:v})}const _5=({children:t})=>t,b5=t=>{if(!t.values)return{values:void 0,components:t.components};const e={...t.values},n={...t.components};return Object.entries(t.values).forEach(([r,o])=>{if(typeof o=="string"||typeof o=="number")return;const u=Object.keys(n).length;n[u]=ve.jsx(ve.Fragment,{children:o}),e[r]=`<${u}/>`}),{values:e,components:n}},py=Y.createContext(null),gy=t=>Y.useContext(py);function my(){return gy()}const S5=({i18n:t,defaultComponent:e,children:n})=>{const r=Y.useRef(t.locale||null),o=Y.useCallback(()=>({i18n:new Proxy(t,{}),defaultComponent:e,_:t.t.bind(t)}),[t,e]),[u,c]=Y.useState(o);return Y.useEffect(()=>{const f=()=>{r.current=t.locale||null,c(o())},h=t.on("change",f);return r.current!==t.locale&&f(),h},[t,o]),r.current===null?null:ve.jsx(py.Provider,{value:u,children:n})};function ad(t){const e=gy();return ve.jsx(y5,{...t,lingui:e})}const Ce=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ye=globalThis,Rs="9.47.1";function Jl(){return Wl(Ye),Ye}function Wl(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Rs,e[Rs]=e[Rs]||{}}function Ka(t,e,n=Ye){const r=n.__SENTRY__=n.__SENTRY__||{},o=r[Rs]=r[Rs]||{};return o[t]||(o[t]=e())}const E5=["debug","info","warn","error","log","assert","trace"],x5="Sentry Logger ",eu={};function Sr(t){if(!("console"in Ye))return t();const e=Ye.console,n={},r=Object.keys(eu);r.forEach(o=>{const u=eu[o];n[o]=e[o],e[o]=u});try{return t()}finally{r.forEach(o=>{e[o]=n[o]})}}function T5(){ld().enabled=!0}function w5(){ld().enabled=!1}function vy(){return ld().enabled}function A5(...t){od("log",...t)}function C5(...t){od("warn",...t)}function M5(...t){od("error",...t)}function od(t,...e){Ce&&vy()&&Sr(()=>{Ye.console[t](`${x5}[${t}]:`,...e)})}function ld(){return Ce?Ka("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Se={enable:T5,disable:w5,isEnabled:vy,log:A5,warn:C5,error:M5},yy=50,Ds="?",_y=/\(error: (.*)\)/,by=/captureMessage|captureException/;function Sy(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const u=[],c=n.split(`
|
|
11
|
+
`);for(let f=r;f<c.length;f++){const h=c[f];if(h.length>1024)continue;const g=_y.test(h)?h.replace(_y,"$1"):h;if(!g.match(/\S*Error: /)){for(const m of e){const v=m(g);if(v){u.push(v);break}}if(u.length>=yy+o)break}}return R5(u.slice(o))}}function O5(t){return Array.isArray(t)?Sy(...t):t}function R5(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(tu(e).function||"")&&e.pop(),e.reverse(),by.test(tu(e).function||"")&&(e.pop(),by.test(tu(e).function||"")&&e.pop()),e.slice(0,yy).map(n=>({...n,filename:n.filename||tu(e).filename,function:n.function||Ds}))}function tu(t){return t[t.length-1]||{}}const ud="<anonymous>";function Hi(t){try{return!t||typeof t!="function"?ud:t.name||ud}catch{return ud}}function Ey(t){const e=t.exception;if(e){const n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const nu={},xy={};function ks(t,e){nu[t]=nu[t]||[],nu[t].push(e)}function Ls(t,e){if(!xy[t]){xy[t]=!0;try{e()}catch(n){Ce&&Se.error(`Error while instrumenting ${t}`,n)}}}function qn(t,e){const n=t&&nu[t];if(n)for(const r of n)try{r(e)}catch(o){Ce&&Se.error(`Error while triggering instrumentation handler.
|
|
12
|
+
Type: ${t}
|
|
13
|
+
Name: ${Hi(r)}
|
|
14
|
+
Error:`,o)}}let cd=null;function D5(t){const e="error";ks(e,t),Ls(e,k5)}function k5(){cd=Ye.onerror,Ye.onerror=function(t,e,n,r,o){return qn("error",{column:r,error:o,line:n,msg:t,url:e}),cd?cd.apply(this,arguments):!1},Ye.onerror.__SENTRY_INSTRUMENTED__=!0}let fd=null;function L5(t){const e="unhandledrejection";ks(e,t),Ls(e,N5)}function N5(){fd=Ye.onunhandledrejection,Ye.onunhandledrejection=function(t){return qn("unhandledrejection",t),fd?fd.apply(this,arguments):!0},Ye.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Ty=Object.prototype.toString;function iu(t){switch(Ty.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Fi(t,Error)}}function Er(t,e){return Ty.call(t)===`[object ${e}]`}function wy(t){return Er(t,"ErrorEvent")}function Ay(t){return Er(t,"DOMError")}function z5(t){return Er(t,"DOMException")}function ai(t){return Er(t,"String")}function dd(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function hd(t){return t===null||dd(t)||typeof t!="object"&&typeof t!="function"}function Za(t){return Er(t,"Object")}function su(t){return typeof Event<"u"&&Fi(t,Event)}function j5(t){return typeof Element<"u"&&Fi(t,Element)}function U5(t){return Er(t,"RegExp")}function ru(t){return!!(t?.then&&typeof t.then=="function")}function B5(t){return Za(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Fi(t,e){try{return t instanceof e}catch{return!1}}function Cy(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function V5(t){return typeof Request<"u"&&Fi(t,Request)}const pd=Ye,I5=80;function My(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,o=[];let u=0,c=0;const f=" > ",h=f.length;let g;const m=Array.isArray(e)?e:e.keyAttrs,v=!Array.isArray(e)&&e.maxStringLength||I5;for(;n&&u++<r&&(g=q5(n,m),!(g==="html"||u>1&&c+o.length*h+g.length>=v));)o.push(g),c+=g.length,n=n.parentNode;return o.reverse().join(f)}catch{return"<unknown>"}}function q5(t,e){const n=t,r=[];if(!n?.tagName)return"";if(pd.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=e?.length?e.filter(c=>n.getAttribute(c)).map(c=>[c,n.getAttribute(c)]):null;if(o?.length)o.forEach(c=>{r.push(`[${c[0]}="${c[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const c=n.className;if(c&&ai(c)){const f=c.split(/\s+/);for(const h of f)r.push(`.${h}`)}}const u=["aria-label","type","name","title","alt"];for(const c of u){const f=n.getAttribute(c);f&&r.push(`[${c}="${f}"]`)}return r.join("")}function gd(){try{return pd.document.location.href}catch{return""}}function P5(t){if(!pd.HTMLElement)return null;let e=t;const n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}function au(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function Oy(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const o=t[r];try{Cy(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function H5(t,e,n=!1){return ai(t)?U5(e)?e.test(t):ai(e)?n?t===e:t.includes(e):!1:!1}function ou(t,e=[],n=!1){return e.some(r=>H5(t,r,n))}function an(t,e,n){if(!(e in t))return;const r=t[e];if(typeof r!="function")return;const o=n(r);typeof o=="function"&&Ry(o,r);try{t[e]=o}catch{Ce&&Se.log(`Failed to replace method "${e}" in object`,t)}}function Ns(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{Ce&&Se.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Ry(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,Ns(t,"__sentry_original__",e)}catch{}}function md(t){return t.__sentry_original__}function Dy(t){if(iu(t))return{message:t.message,name:t.name,stack:t.stack,...Ly(t)};if(su(t)){const e={type:t.type,target:ky(t.target),currentTarget:ky(t.currentTarget),...Ly(t)};return typeof CustomEvent<"u"&&Fi(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function ky(t){try{return j5(t)?My(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function Ly(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function F5(t,e=40){const n=Object.keys(Dy(t));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return au(r,e);for(let o=n.length;o>0;o--){const u=n.slice(0,o).join(", ");if(!(u.length>e))return o===n.length?u:au(u,e)}return""}function $5(){const t=Ye;return t.crypto||t.msCrypto}function Tn(t=$5()){let e=()=>Math.random()*16;try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"");t?.getRandomValues&&(e=()=>{const n=new Uint8Array(1);return t.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(e()&15)>>n/4).toString(16))}function Ny(t){return t.exception?.values?.[0]}function zs(t){const{message:e,event_id:n}=t;if(e)return e;const r=Ny(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function vd(t,e,n){const r=t.exception=t.exception||{},o=r.values=r.values||[],u=o[0]=o[0]||{};u.value||(u.value=e||""),u.type||(u.type="Error")}function xr(t,e){const n=Ny(t);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...e},e&&"data"in e){const u={...o?.data,...e.data};n.mechanism.data=u}}function zy(t){if(G5(t))return!0;try{Ns(t,"__sentry_captured__",!0)}catch{}return!1}function G5(t){try{return t.__sentry_captured__}catch{}}const jy=1e3;function Qa(){return Date.now()/jy}function Y5(){const{performance:t}=Ye;if(!t?.now||!t.timeOrigin)return Qa;const e=t.timeOrigin;return()=>(e+t.now())/jy}let Uy;function oi(){return(Uy??(Uy=Y5()))()}function X5(t){const e=oi(),n={sid:Tn(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Z5(n)};return t&&Tr(n,t),n}function Tr(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||oi(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:Tn()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function K5(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),Tr(t,n)}function Z5(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}function Ja(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;const r={...t};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=Ja(r[o],e[o],n-1));return r}function By(){return Tn()}function Vy(){return Tn().substring(16)}const yd="_sentrySpan";function Iy(t,e){e?Ns(t,yd,e):delete t[yd]}function qy(t){return t[yd]}const Q5=100;class Xn{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:By(),sampleRand:Math.random()}}clone(){const e=new Xn;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,Iy(e,qy(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Tr(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,r=n instanceof Xn?n.getScopeData():Za(n)?e:void 0,{tags:o,extra:u,user:c,contexts:f,level:h,fingerprint:g=[],propagationContext:m}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...u},this._contexts={...this._contexts,...f},c&&Object.keys(c).length&&(this._user=c),h&&(this._level=h),g.length&&(this._fingerprint=g),m&&(this._propagationContext=m),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,Iy(this,void 0),this._attachments=[],this.setPropagationContext({traceId:By(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:Q5;if(r<=0)return this;const o={timestamp:Qa(),...e,message:e.message?au(e.message,2048):e.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:qy(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Ja(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n?.event_id||Tn();if(!this._client)return Ce&&Se.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureMessage(e,n,r){const o=r?.event_id||Tn();if(!this._client)return Ce&&Se.warn("No client configured on scope - will not capture message!"),o;const u=new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:u,...r,event_id:o},this),o}captureEvent(e,n){const r=n?.event_id||Tn();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(Ce&&Se.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function J5(){return Ka("defaultCurrentScope",()=>new Xn)}function W5(){return Ka("defaultIsolationScope",()=>new Xn)}class eC{constructor(e,n){let r;e?r=e:r=new Xn;let o;n?o=n:o=new Xn,this._stack=[{scope:r}],this._isolationScope=o}withScope(e){const n=this._pushScope();let r;try{r=e(n)}catch(o){throw this._popScope(),o}return ru(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function wr(){const t=Jl(),e=Wl(t);return e.stack=e.stack||new eC(J5(),W5())}function tC(t){return wr().withScope(t)}function nC(t,e){const n=wr();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function Py(t){return wr().withScope(()=>t(wr().getIsolationScope()))}function iC(){return{withIsolationScope:Py,withScope:tC,withSetScope:nC,withSetIsolationScope:(t,e)=>Py(e),getCurrentScope:()=>wr().getScope(),getIsolationScope:()=>wr().getIsolationScope()}}function _d(t){const e=Wl(t);return e.acs?e.acs:iC()}function li(){const t=Jl();return _d(t).getCurrentScope()}function Ar(){const t=Jl();return _d(t).getIsolationScope()}function sC(){return Ka("globalScope",()=>new Xn)}function bd(...t){const e=Jl(),n=_d(e);if(t.length===2){const[r,o]=t;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(t[0])}function Ot(){return li().getClient()}function rC(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=e,u={trace_id:n,span_id:o||Vy()};return r&&(u.parent_span_id=r),u}const aC="sentry.source",oC="sentry.sample_rate",lC="sentry.previous_trace_sample_rate",uC="sentry.op",cC="sentry.origin",Hy="sentry.profile_id",Fy="sentry.exclusive_time",fC=0,dC=1,hC="_sentryScope",pC="_sentryIsolationScope";function $y(t){return{scope:t[hC],isolationScope:t[pC]}}const gC="sentry-",mC=/^sentry-/;function vC(t){const e=yC(t);if(!e)return;const n=Object.entries(e).reduce((r,[o,u])=>{if(o.match(mC)){const c=o.slice(gC.length);r[c]=u}return r},{});if(Object.keys(n).length>0)return n}function yC(t){if(!(!t||!ai(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=Gy(n);return Object.entries(r).forEach(([o,u])=>{e[o]=u}),e},{}):Gy(t)}function Gy(t){return t.split(",").map(e=>e.split("=").map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function _C(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const Yy=1;let Xy=!1;function bC(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),o=r?e:Sd(t).parent_span_id,u=$y(t).scope,c=r?u?.getPropagationContext().propagationSpanId||Vy():e;return{parent_span_id:o,span_id:c,trace_id:n}}function SC(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:r,...o},attributes:u})=>({span_id:e,trace_id:n,sampled:r===Yy,attributes:u,...o}))}function Ky(t){return typeof t=="number"?Zy(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Zy(t.getTime()):oi()}function Zy(t){return t>9999999999?t/1e3:t}function Sd(t){if(xC(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(EC(t)){const{attributes:r,startTime:o,name:u,endTime:c,status:f,links:h}=t,g="parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0;return{span_id:e,trace_id:n,data:r,description:u,parent_span_id:g,start_timestamp:Ky(o),timestamp:Ky(c)||void 0,status:wC(f),op:r[uC],origin:r[cC],links:SC(h)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function EC(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function xC(t){return typeof t.getSpanJSON=="function"}function TC(t){const{traceFlags:e}=t.spanContext();return e===Yy}function wC(t){if(!(!t||t.code===fC))return t.code===dC?"ok":t.message||"unknown_error"}const AC="_sentryRootSpan";function Qy(t){return t[AC]||t}function Jy(){Xy||(Sr(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),Xy=!0)}function CC(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=t||Ot()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}const Ed="production",MC=/^o(\d+)\./,OC=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function RC(t){return t==="http"||t==="https"}function Wa(t,e=!1){const{host:n,path:r,pass:o,port:u,projectId:c,protocol:f,publicKey:h}=t;return`${f}://${h}${e&&o?`:${o}`:""}@${n}${u?`:${u}`:""}/${r&&`${r}/`}${c}`}function DC(t){const e=OC.exec(t);if(!e){Sr(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,o="",u="",c="",f=""]=e.slice(1);let h="",g=f;const m=g.split("/");if(m.length>1&&(h=m.slice(0,-1).join("/"),g=m.pop()),g){const v=g.match(/^\d+/);v&&(g=v[0])}return Wy({host:u,pass:o,path:h,projectId:g,port:c,protocol:n,publicKey:r})}function Wy(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function kC(t){if(!Ce)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(c=>t[c]?!1:(Se.error(`Invalid Sentry Dsn: ${c} missing`),!0))?!1:n.match(/^\d+$/)?RC(r)?e&&isNaN(parseInt(e,10))?(Se.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(Se.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Se.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function LC(t){return t.match(MC)?.[1]}function e_(t){const e=typeof t=="string"?DC(t):Wy(t);if(!(!e||!kC(e)))return e}const NC="_frozenDsc";function t_(t,e){const n=e.getOptions(),{publicKey:r,host:o}=e.getDsn()||{};let u;n.orgId?u=String(n.orgId):o&&(u=LC(o));const c={environment:n.environment||Ed,release:n.release,public_key:r,trace_id:t,org_id:u};return e.emit("createDsc",c),c}function zC(t,e){const n=e.getPropagationContext();return n.dsc||t_(n.traceId,t)}function jC(t){const e=Ot();if(!e)return{};const n=Qy(t),r=Sd(n),o=r.data,u=n.spanContext().traceState,c=u?.get("sentry.sample_rate")??o[oC]??o[lC];function f(x){return(typeof c=="number"||typeof c=="string")&&(x.sample_rate=`${c}`),x}const h=n[NC];if(h)return f(h);const g=u?.get("sentry.dsc"),m=g&&vC(g);if(m)return f(m);const v=t_(t.spanContext().traceId,e),_=o[aC],b=r.description;return _!=="url"&&b&&(v.transaction=b),CC()&&(v.sampled=String(TC(n)),v.sample_rand=u?.get("sentry.sample_rand")??$y(n).scope?.getPropagationContext().sampleRand.toString()),f(v),e.emit("createDsc",v,n),v}function ui(t,e=100,n=1/0){try{return xd("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function n_(t,e=3,n=100*1024){const r=ui(t,e);return IC(r)>n?n_(t,e-1,n):r}function xd(t,e,n=1/0,r=1/0,o=qC()){const[u,c]=o;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const f=UC(t,e);if(!f.startsWith("[object "))return f;if(e.__sentry_skip_normalization__)return e;const h=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(h===0)return f.replace("object ","");if(u(e))return"[Circular ~]";const g=e;if(g&&typeof g.toJSON=="function")try{const b=g.toJSON();return xd("",b,h-1,r,o)}catch{}const m=Array.isArray(e)?[]:{};let v=0;const _=Dy(e);for(const b in _){if(!Object.prototype.hasOwnProperty.call(_,b))continue;if(v>=r){m[b]="[MaxProperties ~]";break}const x=_[b];m[b]=xd(b,x,h-1,r,o),v++}return c(e),m}function UC(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Cy(e))return"[VueViewModel]";if(B5(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Hi(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=BC(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function BC(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function VC(t){return~-encodeURI(t).split(/%..|./).length}function IC(t){return VC(JSON.stringify(t))}function qC(){const t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}function eo(t,e=[]){return[t,e]}function PC(t,e){const[n,r]=t;return[n,[...r,e]]}function i_(t,e){const n=t[1];for(const r of n){const o=r[0].type;if(e(r,o))return!0}return!1}function Td(t){const e=Wl(Ye);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function HC(t){const[e,n]=t;let r=JSON.stringify(e);function o(u){typeof r=="string"?r=typeof u=="string"?r+u:[Td(r),u]:r.push(typeof u=="string"?Td(u):u)}for(const u of n){const[c,f]=u;if(o(`
|
|
15
|
+
${JSON.stringify(c)}
|
|
16
|
+
`),typeof f=="string"||f instanceof Uint8Array)o(f);else{let h;try{h=JSON.stringify(f)}catch{h=JSON.stringify(ui(f))}o(h)}}return typeof r=="string"?r:FC(r)}function FC(t){const e=t.reduce((o,u)=>o+u.length,0),n=new Uint8Array(e);let r=0;for(const o of t)n.set(o,r),r+=o.length;return n}function $C(t){const e=typeof t.data=="string"?Td(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const GC={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function s_(t){return GC[t]}function r_(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function YC(t,e,n,r){const o=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:Wa(r)},...o&&{trace:o}}}function XC(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function KC(t,e,n,r){const o=r_(n),u={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&e&&{dsn:Wa(e)}},c="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return eo(u,[c])}function ZC(t,e,n,r){const o=r_(n),u=t.type&&t.type!=="replay_event"?t.type:"event";XC(t,n?.sdk);const c=YC(t,o,r,e);return delete t.sdkProcessingMetadata,eo(c,[[{type:u},t]])}const wd=0,a_=1,o_=2;function js(t){return new $i(e=>{e(t)})}function lu(t){return new $i((e,n)=>{n(t)})}class $i{constructor(e){this._state=wd,this._handlers=[],this._runExecutor(e)}then(e,n){return new $i((r,o)=>{this._handlers.push([!1,u=>{if(!e)r(u);else try{r(e(u))}catch(c){o(c)}},u=>{if(!n)o(u);else try{r(n(u))}catch(c){o(c)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new $i((n,r)=>{let o,u;return this.then(c=>{u=!1,o=c,e&&e()},c=>{u=!0,o=c,e&&e()}).then(()=>{if(u){r(o);return}n(o)})})}_executeHandlers(){if(this._state===wd)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===a_&&n[1](this._value),this._state===o_&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(u,c)=>{if(this._state===wd){if(ru(c)){c.then(r,o);return}this._state=u,this._value=c,this._executeHandlers()}},r=u=>{n(a_,u)},o=u=>{n(o_,u)};try{e(r,o)}catch(u){o(u)}}}function Ad(t,e,n,r=0){return new $i((o,u)=>{const c=t[r];if(e===null||typeof c!="function")o(e);else{const f=c({...e},n);Ce&&c.id&&f===null&&Se.log(`Event processor "${c.id}" dropped event`),ru(f)?f.then(h=>Ad(t,h,n,r+1).then(o)).then(null,u):Ad(t,f,n,r+1).then(o).then(null,u)}})}function QC(t,e){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:u}=e;JC(t,e),r&&tM(t,r),nM(t,n),WC(t,o),eM(t,u)}function l_(t,e){const{extra:n,tags:r,user:o,contexts:u,level:c,sdkProcessingMetadata:f,breadcrumbs:h,fingerprint:g,eventProcessors:m,attachments:v,propagationContext:_,transactionName:b,span:x}=e;uu(t,"extra",n),uu(t,"tags",r),uu(t,"user",o),uu(t,"contexts",u),t.sdkProcessingMetadata=Ja(t.sdkProcessingMetadata,f,2),c&&(t.level=c),b&&(t.transactionName=b),x&&(t.span=x),h.length&&(t.breadcrumbs=[...t.breadcrumbs,...h]),g.length&&(t.fingerprint=[...t.fingerprint,...g]),m.length&&(t.eventProcessors=[...t.eventProcessors,...m]),v.length&&(t.attachments=[...t.attachments,...v]),t.propagationContext={...t.propagationContext,..._}}function uu(t,e,n){t[e]=Ja(t[e],n,1)}function JC(t,e){const{extra:n,tags:r,user:o,contexts:u,level:c,transactionName:f}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(o).length&&(t.user={...o,...t.user}),Object.keys(u).length&&(t.contexts={...u,...t.contexts}),c&&(t.level=c),f&&t.type!=="transaction"&&(t.transaction=f)}function WC(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function eM(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function tM(t,e){t.contexts={trace:bC(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:jC(e),...t.sdkProcessingMetadata};const n=Qy(e),r=Sd(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function nM(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}let cu,u_,fu;function iM(t){const e=Ye._sentryDebugIds;if(!e)return{};const n=Object.keys(e);return fu&&n.length===u_||(u_=n.length,fu=n.reduce((r,o)=>{cu||(cu={});const u=cu[o];if(u)r[u[0]]=u[1];else{const c=t(o);for(let f=c.length-1;f>=0;f--){const g=c[f]?.filename,m=e[o];if(g&&m){r[g]=m,cu[o]=[g,m];break}}}return r},{})),fu}function sM(t,e,n,r,o,u){const{normalizeDepth:c=3,normalizeMaxBreadth:f=1e3}=t,h={...e,event_id:e.event_id||n.event_id||Tn(),timestamp:e.timestamp||Qa()},g=n.integrations||t.integrations.map(M=>M.name);rM(h,t),lM(h,g),o&&o.emit("applyFrameMetadata",e),e.type===void 0&&aM(h,t.stackParser);const m=cM(r,n.captureContext);n.mechanism&&xr(h,n.mechanism);const v=o?o.getEventProcessors():[],_=sC().getScopeData();if(u){const M=u.getScopeData();l_(_,M)}if(m){const M=m.getScopeData();l_(_,M)}const b=[...n.attachments||[],..._.attachments];b.length&&(n.attachments=b),QC(h,_);const x=[...v,..._.eventProcessors];return Ad(x,h,n).then(M=>(M&&oM(M),typeof c=="number"&&c>0?uM(M,c,f):M))}function rM(t,e){const{environment:n,release:r,dist:o,maxValueLength:u=250}=e;t.environment=t.environment||n||Ed,!t.release&&r&&(t.release=r),!t.dist&&o&&(t.dist=o);const c=t.request;c?.url&&(c.url=au(c.url,u))}function aM(t,e){const n=iM(e);t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.filename&&(o.debug_id=n[o.filename])})})}function oM(t){const e={};if(t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function lM(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function uM(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:ui(o.data,e,n)}}))},...t.user&&{user:ui(t.user,e,n)},...t.contexts&&{contexts:ui(t.contexts,e,n)},...t.extra&&{extra:ui(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=ui(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(o=>({...o,...o.data&&{data:ui(o.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=ui(t.contexts.flags,3,n)),r}function cM(t,e){if(!e)return t;const n=t?t.clone():new Xn;return n.update(e),n}function fM(t){if(t)return dM(t)?{captureContext:t}:pM(t)?{captureContext:t}:t}function dM(t){return t instanceof Xn||typeof t=="function"}const hM=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function pM(t){return Object.keys(t).some(e=>hM.includes(e))}function c_(t,e){return li().captureException(t,fM(e))}function f_(t,e){return li().captureEvent(t,e)}function gM(){return Ar().lastEventId()}function d_(t){const e=Ar(),n=li(),{userAgent:r}=Ye.navigator||{},o=X5({user:n.getUser()||e.getUser(),...r&&{userAgent:r},...t}),u=e.getSession();return u?.status==="ok"&&Tr(u,{status:"exited"}),h_(),e.setSession(o),o}function h_(){const t=Ar(),n=li().getSession()||t.getSession();n&&K5(n),p_(),t.setSession()}function p_(){const t=Ar(),e=Ot(),n=t.getSession();n&&e&&e.captureSession(n)}function g_(t=!1){if(t){h_();return}p_()}const mM="7";function m_(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function vM(t){return`${m_(t)}${t.projectId}/envelope/`}function yM(t,e){const n={sentry_version:mM};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function _M(t,e,n){return e||`${vM(t)}?${yM(t,n)}`}function bM(t,e){const n=e_(t);if(!n)return"";const r=`${m_(n)}embed/error-page/`;let o=`dsn=${Wa(n)}`;for(const u in e)if(u!=="dsn"&&u!=="onClose")if(u==="user"){const c=e.user;if(!c)continue;c.name&&(o+=`&name=${encodeURIComponent(c.name)}`),c.email&&(o+=`&email=${encodeURIComponent(c.email)}`)}else o+=`&${encodeURIComponent(u)}=${encodeURIComponent(e[u])}`;return`${r}?${o}`}const v_=[];function SM(t){const e={};return t.forEach(n=>{const{name:r}=n,o=e[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.values(e)}function EM(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(o=>{o.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...e,...n];else if(typeof n=="function"){const o=n(e);r=Array.isArray(o)?o:[o]}else r=e;return SM(r)}function xM(t,e){const n={};return e.forEach(r=>{r&&__(t,r,n)}),n}function y_(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function __(t,e,n){if(n[e.name]){Ce&&Se.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,v_.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),v_.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,u)=>r(o,u,t))}if(typeof e.processEvent=="function"){const r=e.processEvent.bind(e),o=Object.assign((u,c)=>r(u,c,t),{id:e.name});t.addEventProcessor(o)}Ce&&Se.log(`Integration installed: ${e.name}`)}function sV(t){return t}function TM(t,e,n){const r=[{type:"client_report"},{timestamp:Qa(),discarded_events:t}];return eo(e?{dsn:e}:{},[r])}function b_(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function wM(t){const{trace_id:e,parent_span_id:n,span_id:r,status:o,origin:u,data:c,op:f}=t.contexts?.trace??{};return{data:c??{},description:t.transaction,op:f,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:o,timestamp:t.timestamp,trace_id:e??"",origin:u,profile_id:c?.[Hy],exclusive_time:c?.[Fy],measurements:t.measurements,is_segment:!0}}function AM(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:{...t.data,...t.profile_id&&{[Hy]:t.profile_id},...t.exclusive_time&&{[Fy]:t.exclusive_time}}}},measurements:t.measurements}}const S_="Not capturing exception because it's already been captured.",E_="Discarded session because of missing or non-string release",x_=Symbol.for("SentryInternalError"),T_=Symbol.for("SentryDoNotSendEventError");function du(t){return{message:t,[x_]:!0}}function Cd(t){return{message:t,[T_]:!0}}function w_(t){return!!t&&typeof t=="object"&&x_ in t}function A_(t){return!!t&&typeof t=="object"&&T_ in t}class CM{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=e_(e.dsn):Ce&&Se.warn("No DSN provided, client will not send events."),this._dsn){const n=_M(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}}captureException(e,n,r){const o=Tn();if(zy(e))return Ce&&Se.log(S_),o;const u={event_id:o,...n};return this._process(this.eventFromException(e,u).then(c=>this._captureEvent(c,u,r))),u.event_id}captureMessage(e,n,r,o){const u={event_id:Tn(),...r},c=dd(e)?e:String(e),f=hd(e)?this.eventFromMessage(c,n,u):this.eventFromException(e,u);return this._process(f.then(h=>this._captureEvent(h,u,o))),u.event_id}captureEvent(e,n,r){const o=Tn();if(n?.originalException&&zy(n.originalException))return Ce&&Se.log(S_),o;const u={event_id:o,...n},c=e.sdkProcessingMetadata||{},f=c.capturedSpanScope,h=c.capturedSpanIsolationScope;return this._process(this._captureEvent(e,u,f||r,h)),u.event_id}captureSession(e){this.sendSession(e),Tr(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(e).then(r=>n.flush(e).then(o=>r&&o))):js(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const n=this._integrations[e.name];__(this,e,this._integrations),n||y_(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=ZC(e,this._dsn,this._options._metadata,this._options.tunnel);for(const u of n.attachments||[])r=PC(r,$C(u));const o=this.sendEnvelope(r);o&&o.then(u=>this.emit("afterSendEvent",e,u),null)}sendSession(e){const{release:n,environment:r=Ed}=this._options;if("aggregates"in e){const u=e.attrs||{};if(!u.release&&!n){Ce&&Se.warn(E_);return}u.release=u.release||n,u.environment=u.environment||r,e.attrs=u}else{if(!e.release&&!n){Ce&&Se.warn(E_);return}e.release=e.release||n,e.environment=e.environment||r}this.emit("beforeSendSession",e);const o=KC(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(e,n,r=1){if(this._options.sendClientReports){const o=`${e}:${n}`;Ce&&Se.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(e,n){const r=this._hooks[e]=this._hooks[e]||[];return r.push(n),()=>{const o=r.indexOf(n);o>-1&&r.splice(o,1)}}emit(e,...n){const r=this._hooks[e];r&&r.forEach(o=>o(...n))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,n=>(Ce&&Se.error("Error while sending envelope:",n),n)):(Ce&&Se.error("Transport disabled"),js({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=xM(this,e),y_(this,e)}_updateSessionFromEvent(e,n){let r=n.level==="fatal",o=!1;const u=n.exception?.values;if(u){o=!0;for(const h of u)if(h.mechanism?.handled===!1){r=!0;break}}const c=e.status==="ok";(c&&e.errors===0||c&&r)&&(Tr(e,{...r&&{status:"crashed"},errors:e.errors||Number(o||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new $i(n=>{let r=0;const o=1,u=setInterval(()=>{this._numProcessing==0?(clearInterval(u),n(!0)):(r+=o,e&&r>=e&&(clearInterval(u),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,o){const u=this.getOptions(),c=Object.keys(this._integrations);return!n.integrations&&c?.length&&(n.integrations=c),this.emit("preprocessEvent",e,n),e.type||o.setLastEventId(e.event_id||n.event_id),sM(u,e,n,r,this,o).then(f=>{if(f===null)return f;this.emit("postprocessEvent",f,n),f.contexts={trace:rC(r),...f.contexts};const h=zC(this,r);return f.sdkProcessingMetadata={dynamicSamplingContext:h,...f.sdkProcessingMetadata},f})}_captureEvent(e,n={},r=li(),o=Ar()){return Ce&&Md(e)&&Se.log(`Captured error event \`${b_(e)[0]||"<unknown>"}\``),this._processEvent(e,n,r,o).then(u=>u.event_id,u=>{Ce&&(A_(u)?Se.log(u.message):w_(u)?Se.warn(u.message):Se.warn(u))})}_processEvent(e,n,r,o){const u=this.getOptions(),{sampleRate:c}=u,f=C_(e),h=Md(e),g=e.type||"error",m=`before send for type \`${g}\``,v=typeof c>"u"?void 0:_C(c);if(h&&typeof v=="number"&&Math.random()>v)return this.recordDroppedEvent("sample_rate","error"),lu(Cd(`Discarding event because it's not included in the random sample (sampling rate = ${c})`));const _=g==="replay_event"?"replay":g;return this._prepareEvent(e,n,r,o).then(b=>{if(b===null)throw this.recordDroppedEvent("event_processor",_),Cd("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return b;const E=OM(this,u,b,n);return MM(E,m)}).then(b=>{if(b===null){if(this.recordDroppedEvent("before_send",_),f){const R=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",R)}throw Cd(`${m} returned \`null\`, will not send event.`)}const x=r.getSession()||o.getSession();if(h&&x&&this._updateSessionFromEvent(x,b),f){const M=b.sdkProcessingMetadata?.spanCountBeforeProcessing||0,R=b.spans?b.spans.length:0,q=M-R;q>0&&this.recordDroppedEvent("before_send","span",q)}const E=b.transaction_info;if(f&&E&&b.transaction!==e.transaction){const M="custom";b.transaction_info={...E,source:M}}return this.sendEvent(b,n),b}).then(null,b=>{throw A_(b)||w_(b)?b:(this.captureException(b,{data:{__sentry__:!0},originalException:b}),du(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
17
|
+
Reason: ${b}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([n,r])=>{const[o,u]=n.split(":");return{reason:o,category:u,quantity:r}})}_flushOutcomes(){Ce&&Se.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){Ce&&Se.log("No outcomes to send");return}if(!this._dsn){Ce&&Se.log("No dsn provided, will not send outcomes");return}Ce&&Se.log("Sending outcomes:",e);const n=TM(e,this._options.tunnel&&Wa(this._dsn));this.sendEnvelope(n)}}function MM(t,e){const n=`${e} must return \`null\` or a valid event.`;if(ru(t))return t.then(r=>{if(!Za(r)&&r!==null)throw du(n);return r},r=>{throw du(`${e} rejected with ${r}`)});if(!Za(t)&&t!==null)throw du(n);return t}function OM(t,e,n,r){const{beforeSend:o,beforeSendTransaction:u,beforeSendSpan:c}=e;let f=n;if(Md(f)&&o)return o(f,r);if(C_(f)){if(c){const h=c(wM(f));if(h?f=Ja(n,AM(h)):Jy(),f.spans){const g=[];for(const m of f.spans){const v=c(m);v?g.push(v):(Jy(),g.push(m))}f.spans=g}}if(u){if(f.spans){const h=f.spans.length;f.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:h}}return u(f,r)}}return f}function Md(t){return t.type===void 0}function C_(t){return t.type==="transaction"}function RM(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function DM(t,e,n,r){const o={};return e?.sdk&&(o.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(o.dsn=Wa(r)),eo(o,[RM(t)])}function Od(t,e){const n=kM(t)??[];if(n.length===0)return;const r=t.getOptions(),o=DM(n,r._metadata,r.tunnel,t.getDsn());M_().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(o)}function kM(t){return M_().get(t)}function M_(){return Ka("clientToLogBufferMap",()=>new WeakMap)}function LM(t,e){e.debug===!0&&(Ce?Se.enable():Sr(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),li().update(e.initialScope);const r=new t(e);return NM(r),r.init(),r}function NM(t){li().setClient(t)}const O_=Symbol.for("SentryBufferFullError");function zM(t){const e=[];function n(){return t===void 0||e.length<t}function r(c){return e.splice(e.indexOf(c),1)[0]||Promise.resolve(void 0)}function o(c){if(!n())return lu(O_);const f=c();return e.indexOf(f)===-1&&e.push(f),f.then(()=>r(f)).then(null,()=>r(f).then(null,()=>{})),f}function u(c){return new $i((f,h)=>{let g=e.length;if(!g)return f(!0);const m=setTimeout(()=>{c&&c>0&&f(!1)},c);e.forEach(v=>{js(v).then(()=>{--g||(clearTimeout(m),f(!0))},h)})})}return{$:e,add:o,drain:u}}const jM=60*1e3;function UM(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?jM:r-e}function BM(t,e){return t[e]||t.all||0}function VM(t,e,n=Date.now()){return BM(t,e)>n}function IM(t,{statusCode:e,headers:n},r=Date.now()){const o={...t},u=n?.["x-sentry-rate-limits"],c=n?.["retry-after"];if(u)for(const f of u.trim().split(",")){const[h,g,,,m]=f.split(":",5),v=parseInt(h,10),_=(isNaN(v)?60:v)*1e3;if(!g)o.all=r+_;else for(const b of g.split(";"))b==="metric_bucket"?(!m||m.split(";").includes("custom"))&&(o[b]=r+_):o[b]=r+_}else c?o.all=r+UM(c,r):e===429&&(o.all=r+60*1e3);return o}const qM=64;function PM(t,e,n=zM(t.bufferSize||qM)){let r={};const o=c=>n.drain(c);function u(c){const f=[];if(i_(c,(v,_)=>{const b=s_(_);VM(r,b)?t.recordDroppedEvent("ratelimit_backoff",b):f.push(v)}),f.length===0)return js({});const h=eo(c[0],f),g=v=>{i_(h,(_,b)=>{t.recordDroppedEvent(v,s_(b))})},m=()=>e({body:HC(h)}).then(v=>(v.statusCode!==void 0&&(v.statusCode<200||v.statusCode>=300)&&Ce&&Se.warn(`Sentry responded with status code ${v.statusCode} to sent event.`),r=IM(r,v),v),v=>{throw g("network_error"),Ce&&Se.error("Encountered error running transport request:",v),v});return n.add(m).then(v=>v,v=>{if(v===O_)return Ce&&Se.error("Skipped sending event because buffer is full."),g("queue_overflow"),js({});throw v})}return{send:u,flush:o}}function HM(t){t.user?.ip_address===void 0&&(t.user={...t.user,ip_address:"{{auto}}"})}function FM(t){"aggregates"in t?t.attrs?.ip_address===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function $M(t,e,n=[e],r="npm"){const o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:n.map(u=>({name:`${r}:@sentry/${u}`,version:Rs})),version:Rs}),t._metadata=o}const GM=100;function Us(t,e){const n=Ot(),r=Ar();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:u=GM}=n.getOptions();if(u<=0)return;const f={timestamp:Qa(),...t},h=o?Sr(()=>o(f,e)):f;h!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",h,e),r.addBreadcrumb(h,u))}let R_;const YM="FunctionToString",D_=new WeakMap,XM=(()=>({name:YM,setupOnce(){R_=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=md(this),n=D_.has(Ot())&&e!==void 0?e:this;return R_.apply(n,t)}}catch{}},setup(t){D_.set(t,!0)}})),KM=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],ZM="EventFilters",QM=(t={})=>{let e;return{name:ZM,setup(n){const r=n.getOptions();e=k_(t,r)},processEvent(n,r,o){if(!e){const u=o.getOptions();e=k_(t,u)}return WM(n,e)?null:n}}},JM=((t={})=>({...QM(t),name:"InboundFilters"}));function k_(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:KM],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function WM(t,e){if(t.type){if(t.type==="transaction"&&tO(t,e.ignoreTransactions))return Ce&&Se.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
18
|
+
Event: ${zs(t)}`),!0}else{if(eO(t,e.ignoreErrors))return Ce&&Se.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
19
|
+
Event: ${zs(t)}`),!0;if(rO(t))return Ce&&Se.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
20
|
+
Event: ${zs(t)}`),!0;if(nO(t,e.denyUrls))return Ce&&Se.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
21
|
+
Event: ${zs(t)}.
|
|
22
|
+
Url: ${hu(t)}`),!0;if(!iO(t,e.allowUrls))return Ce&&Se.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
23
|
+
Event: ${zs(t)}.
|
|
24
|
+
Url: ${hu(t)}`),!0}return!1}function eO(t,e){return e?.length?b_(t).some(n=>ou(n,e)):!1}function tO(t,e){if(!e?.length)return!1;const n=t.transaction;return n?ou(n,e):!1}function nO(t,e){if(!e?.length)return!1;const n=hu(t);return n?ou(n,e):!1}function iO(t,e){if(!e?.length)return!0;const n=hu(t);return n?ou(n,e):!0}function sO(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function hu(t){try{const n=[...t.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?sO(n):null}catch{return Ce&&Se.error(`Cannot extract url for event ${zs(t)}`),null}}function rO(t){return t.exception?.values?.length?!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value):!1}function aO(t,e,n,r,o,u){if(!o.exception?.values||!u||!Fi(u.originalException,Error))return;const c=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;c&&(o.exception.values=Rd(t,e,r,u.originalException,n,o.exception.values,c,0))}function Rd(t,e,n,r,o,u,c,f){if(u.length>=n+1)return u;let h=[...u];if(Fi(r[o],Error)){L_(c,f);const g=t(e,r[o]),m=h.length;N_(g,o,m,f),h=Rd(t,e,n,r[o],o,[g,...h],g,m)}return Array.isArray(r.errors)&&r.errors.forEach((g,m)=>{if(Fi(g,Error)){L_(c,f);const v=t(e,g),_=h.length;N_(v,`errors[${m}]`,_,f),h=Rd(t,e,n,g,o,[v,...h],v,_)}}),h}function L_(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function N_(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function oO(t){const e="console";ks(e,t),Ls(e,lO)}function lO(){"console"in Ye&&E5.forEach(function(t){t in Ye.console&&an(Ye.console,t,function(e){return eu[t]=e,function(...n){qn("console",{args:n,level:t}),eu[t]?.apply(Ye.console,n)}})})}function uO(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const cO="Dedupe",fO=(()=>{let t;return{name:cO,processEvent(e){if(e.type)return e;try{if(dO(e,t))return Ce&&Se.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}});function dO(t,e){return e?!!(hO(t,e)||pO(t,e)):!1}function hO(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!j_(t,e)||!z_(t,e))}function pO(t,e){const n=U_(e),r=U_(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!j_(t,e)||!z_(t,e))}function z_(t,e){let n=Ey(t),r=Ey(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){const u=r[o],c=n[o];if(u.filename!==c.filename||u.lineno!==c.lineno||u.colno!==c.colno||u.function!==c.function)return!1}return!0}function j_(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function U_(t){return t.exception?.values?.[0]}function Dd(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function B_(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const to=Ye;function gO(){return"history"in to&&!!to.history}function mO(){if(!("fetch"in to))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function kd(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function vO(){if(typeof EdgeRuntime=="string")return!0;if(!mO())return!1;if(kd(to.fetch))return!0;let t=!1;const e=to.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow?.fetch&&(t=kd(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){Ce&&Se.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function yO(t,e){const n="fetch";ks(n,t),Ls(n,()=>_O(void 0,e))}function _O(t,e=!1){e&&!vO()||an(Ye,"fetch",function(n){return function(...r){const o=new Error,{method:u,url:c}=bO(r),f={args:r,fetchData:{method:u,url:c},startTimestamp:oi()*1e3,virtualError:o,headers:SO(r)};return qn("fetch",{...f}),n.apply(Ye,r).then(async h=>(qn("fetch",{...f,endTimestamp:oi()*1e3,response:h}),h),h=>{if(qn("fetch",{...f,endTimestamp:oi()*1e3,error:h}),iu(h)&&h.stack===void 0&&(h.stack=o.stack,Ns(h,"framesToPop",1)),h instanceof TypeError&&(h.message==="Failed to fetch"||h.message==="Load failed"||h.message==="NetworkError when attempting to fetch resource."))try{const g=new URL(f.fetchData.url);h.message=`${h.message} (${g.host})`}catch{}throw h})}})}function Ld(t,e){return!!t&&typeof t=="object"&&!!t[e]}function V_(t){return typeof t=="string"?t:t?Ld(t,"url")?t.url:t.toString?t.toString():"":""}function bO(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:V_(n),method:Ld(r,"method")?String(r.method).toUpperCase():"GET"}}const e=t[0];return{url:V_(e),method:Ld(e,"method")?String(e.method).toUpperCase():"GET"}}function SO(t){const[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(V5(e))return new Headers(e.headers)}catch{}}function EO(){return"npm"}const Je=Ye;let Nd=0;function I_(){return Nd>0}function xO(){Nd++,setTimeout(()=>{Nd--})}function Cr(t,e={}){function n(o){return typeof o=="function"}if(!n(t))return t;try{const o=t.__sentry_wrapped__;if(o)return typeof o=="function"?o:t;if(md(t))return t}catch{return t}const r=function(...o){try{const u=o.map(c=>Cr(c,e));return t.apply(this,u)}catch(u){throw xO(),bd(c=>{c.addEventProcessor(f=>(e.mechanism&&(vd(f,void 0),xr(f,e.mechanism)),f.extra={...f.extra,arguments:o},f)),c_(u)}),u}};try{for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}catch{}Ry(r,t),Ns(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function TO(){const t=gd(),{referrer:e}=Je.document||{},{userAgent:n}=Je.navigator||{},r={...e&&{Referer:e},...n&&{"User-Agent":n}};return{url:t,headers:r}}function zd(t,e){const n=Ud(t,e),r={type:OO(e),value:RO(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function wO(t,e,n,r){const u=Ot()?.getOptions().normalizeDepth,c=zO(e),f={__serialized__:n_(e,u)};if(c)return{exception:{values:[zd(t,c)]},extra:f};const h={exception:{values:[{type:su(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:LO(e,{isUnhandledRejection:r})}]},extra:f};if(n){const g=Ud(t,n);g.length&&(h.exception.values[0].stacktrace={frames:g})}return h}function jd(t,e){return{exception:{values:[zd(t,e)]}}}function Ud(t,e){const n=e.stacktrace||e.stack||"",r=CO(e),o=MO(e);try{return t(n,r,o)}catch{}return[]}const AO=/Minified React error #\d+;/i;function CO(t){return t&&AO.test(t.message)?1:0}function MO(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function q_(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function OO(t){const e=t?.name;return!e&&q_(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function RO(t){const e=t?.message;return q_(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function DO(t,e,n,r){const o=n?.syntheticException||void 0,u=Bd(t,e,o,r);return xr(u),u.level="error",n?.event_id&&(u.event_id=n.event_id),js(u)}function kO(t,e,n="info",r,o){const u=r?.syntheticException||void 0,c=Vd(t,e,u,o);return c.level=n,r?.event_id&&(c.event_id=r.event_id),js(c)}function Bd(t,e,n,r,o){let u;if(wy(e)&&e.error)return jd(t,e.error);if(Ay(e)||z5(e)){const c=e;if("stack"in e)u=jd(t,e);else{const f=c.name||(Ay(c)?"DOMError":"DOMException"),h=c.message?`${f}: ${c.message}`:f;u=Vd(t,h,n,r),vd(u,h)}return"code"in c&&(u.tags={...u.tags,"DOMException.code":`${c.code}`}),u}return iu(e)?jd(t,e):Za(e)||su(e)?(u=wO(t,e,n,o),xr(u,{synthetic:!0}),u):(u=Vd(t,e,n,r),vd(u,`${e}`),xr(u,{synthetic:!0}),u)}function Vd(t,e,n,r){const o={};if(r&&n){const u=Ud(t,n);u.length&&(o.exception={values:[{value:e,stacktrace:{frames:u}}]}),xr(o,{synthetic:!0})}if(dd(e)){const{__sentry_template_string__:u,__sentry_template_values__:c}=e;return o.logentry={message:u,params:c},o}return o.message=e,o}function LO(t,{isUnhandledRejection:e}){const n=F5(t),r=e?"promise rejection":"exception";return wy(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:su(t)?`Event \`${NO(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function NO(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function zO(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}}const jO=5e3;class UO extends CM{constructor(e){const n=BO(e),r=Je.SENTRY_SDK_SOURCE||EO();$M(n,"browser",["browser"],r),super(n);const{sendDefaultPii:o,sendClientReports:u,enableLogs:c,_experiments:f}=this._options,h=c??f?.enableLogs;Je.document&&(u||h)&&Je.document.addEventListener("visibilitychange",()=>{Je.document.visibilityState==="hidden"&&(u&&this._flushOutcomes(),h&&Od(this))}),h&&(this.on("flush",()=>{Od(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{Od(this)},jO)})),o&&(this.on("postprocessEvent",HM),this.on("beforeSendSession",FM))}eventFromException(e,n){return DO(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return kO(this._options.stackParser,e,n,r,this._options.attachStacktrace)}_prepareEvent(e,n,r,o){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r,o)}}function BO(t){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Je.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}const VO=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,$t=Ye,IO=1e3;let P_,Id,qd;function qO(t){ks("dom",t),Ls("dom",PO)}function PO(){if(!$t.document)return;const t=qn.bind(null,"dom"),e=H_(t,!0);$t.document.addEventListener("click",e,!1),$t.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{const o=$t[n]?.prototype;o?.hasOwnProperty?.("addEventListener")&&(an(o,"addEventListener",function(u){return function(c,f,h){if(c==="click"||c=="keypress")try{const g=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},m=g[c]=g[c]||{refCount:0};if(!m.handler){const v=H_(t);m.handler=v,u.call(this,c,v,h)}m.refCount++}catch{}return u.call(this,c,f,h)}}),an(o,"removeEventListener",function(u){return function(c,f,h){if(c==="click"||c=="keypress")try{const g=this.__sentry_instrumentation_handlers__||{},m=g[c];m&&(m.refCount--,m.refCount<=0&&(u.call(this,c,m.handler,h),m.handler=void 0,delete g[c]),Object.keys(g).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return u.call(this,c,f,h)}}))})}function HO(t){if(t.type!==Id)return!1;try{if(!t.target||t.target._sentryId!==qd)return!1}catch{}return!0}function FO(t,e){return t!=="keypress"?!1:e?.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function H_(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=$O(n);if(FO(n.type,r))return;Ns(n,"_sentryCaptured",!0),r&&!r._sentryId&&Ns(r,"_sentryId",Tn());const o=n.type==="keypress"?"input":n.type;HO(n)||(t({event:n,name:o,global:e}),Id=n.type,qd=r?r._sentryId:void 0),clearTimeout(P_),P_=$t.setTimeout(()=>{qd=void 0,Id=void 0},IO)}}function $O(t){try{return t.target}catch{return null}}let pu;function F_(t){const e="history";ks(e,t),Ls(e,GO)}function GO(){if($t.addEventListener("popstate",()=>{const e=$t.location.href,n=pu;if(pu=e,n===e)return;qn("history",{from:n,to:e})}),!gO())return;function t(e){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const o=pu,u=YO(String(r));if(pu=u,o===u)return e.apply(this,n);qn("history",{from:o,to:u})}return e.apply(this,n)}}an($t.history,"pushState",t),an($t.history,"replaceState",t)}function YO(t){try{return new URL(t,$t.location.origin).toString()}catch{return t}}const gu={};function XO(t){const e=gu[t];if(e)return e;let n=$t[t];if(kd(n))return gu[t]=n.bind($t);const r=$t.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const u=o.contentWindow;u?.[t]&&(n=u[t]),r.head.removeChild(o)}catch(o){VO&&Se.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,o)}return n&&(gu[t]=n.bind($t))}function $_(t){gu[t]=void 0}const no="__sentry_xhr_v3__";function KO(t){ks("xhr",t),Ls("xhr",ZO)}function ZO(){if(!$t.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){const o=new Error,u=oi()*1e3,c=ai(r[0])?r[0].toUpperCase():void 0,f=QO(r[1]);if(!c||!f)return e.apply(n,r);n[no]={method:c,url:f,request_headers:{}},c==="POST"&&f.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const h=()=>{const g=n[no];if(g&&n.readyState===4){try{g.status_code=n.status}catch{}const m={endTimestamp:oi()*1e3,startTimestamp:u,xhr:n,virtualError:o};qn("xhr",m)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(g,m,v){return h(),g.apply(m,v)}}):n.addEventListener("readystatechange",h),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(g,m,v){const[_,b]=v,x=m[no];return x&&ai(_)&&ai(b)&&(x.request_headers[_.toLowerCase()]=b),g.apply(m,v)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){const o=n[no];if(!o)return e.apply(n,r);r[0]!==void 0&&(o.body=r[0]);const u={startTimestamp:oi()*1e3,xhr:n};return qn("xhr",u),e.apply(n,r)}})}function QO(t){if(ai(t))return t;try{return t.toString()}catch{}}function JO(t,e=XO("fetch")){let n=0,r=0;function o(u){const c=u.body.length;n+=c,r++;const f={body:u.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};if(!e)return $_("fetch"),lu("No fetch implementation available");try{return e(t.url,f).then(h=>(n-=c,r--,{statusCode:h.status,headers:{"x-sentry-rate-limits":h.headers.get("X-Sentry-Rate-Limits"),"retry-after":h.headers.get("Retry-After")}}))}catch(h){return $_("fetch"),n-=c,r--,lu(h)}}return PM(t,o)}const WO=30,eR=50;function Pd(t,e,n,r){const o={filename:t,function:e==="<anonymous>"?Ds:e,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const tR=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,nR=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,iR=/\((\S*)(?::(\d+))(?::(\d+))\)/,sR=[WO,t=>{const e=tR.exec(t);if(e){const[,r,o,u]=e;return Pd(r,Ds,+o,+u)}const n=nR.exec(t);if(n){if(n[2]&&n[2].indexOf("eval")===0){const c=iR.exec(n[2]);c&&(n[2]=c[1],n[3]=c[2],n[4]=c[3])}const[o,u]=G_(n[1]||Ds,n[2]);return Pd(u,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],rR=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,aR=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,oR=Sy(...[sR,[eR,t=>{const e=rR.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const u=aR.exec(e[3]);u&&(e[1]=e[1]||"eval",e[3]=u[1],e[4]=u[2],e[5]="")}let r=e[3],o=e[1]||Ds;return[o,r]=G_(o,r),Pd(r,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]]),G_=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Ds,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Mr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,mu=1024,lR="Breadcrumbs",uR=((t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:lR,setup(n){e.console&&oO(dR(n)),e.dom&&qO(fR(n,e.dom)),e.xhr&&KO(hR(n)),e.fetch&&yO(pR(n)),e.history&&F_(gR(n)),e.sentry&&n.on("beforeSendEvent",cR(n))}}});function cR(t){return function(n){Ot()===t&&Us({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:zs(n)},{event:n})}}function fR(t,e){return function(r){if(Ot()!==t)return;let o,u,c=typeof e=="object"?e.serializeAttribute:void 0,f=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;f&&f>mu&&(Mr&&Se.warn(`\`dom.maxStringLength\` cannot exceed ${mu}, but a value of ${f} was configured. Sentry will use ${mu} instead.`),f=mu),typeof c=="string"&&(c=[c]);try{const g=r.event,m=mR(g)?g.target:g;o=My(m,{keyAttrs:c,maxStringLength:f}),u=P5(m)}catch{o="<unknown>"}if(o.length===0)return;const h={category:`ui.${r.name}`,message:o};u&&(h.data={"ui.component_name":u}),Us(h,{event:r.event,name:r.name,global:r.global})}}function dR(t){return function(n){if(Ot()!==t)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:uO(n.level),message:Oy(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Oy(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Us(r,{input:n.args,level:n.level})}}function hR(t){return function(n){if(Ot()!==t)return;const{startTimestamp:r,endTimestamp:o}=n,u=n.xhr[no];if(!r||!o||!u)return;const{method:c,url:f,status_code:h,body:g}=u,m={method:c,url:f,status_code:h},v={xhr:n.xhr,input:g,startTimestamp:r,endTimestamp:o},_={category:"xhr",data:m,type:"http",level:B_(h)};t.emit("beforeOutgoingRequestBreadcrumb",_,v),Us(_,v)}}function pR(t){return function(n){if(Ot()!==t)return;const{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const u=n.fetchData,c={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o},f={category:"fetch",data:u,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",f,c),Us(f,c)}else{const u=n.response,c={...n.fetchData,status_code:u?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,u?.status;const f={input:n.args,response:u,startTimestamp:r,endTimestamp:o},h={category:"fetch",data:c,type:"http",level:B_(c.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",h,f),Us(h,f)}}}function gR(t){return function(n){if(Ot()!==t)return;let r=n.from,o=n.to;const u=Dd(Je.location.href);let c=r?Dd(r):void 0;const f=Dd(o);c?.path||(c=u),u.protocol===f.protocol&&u.host===f.host&&(o=f.relative),u.protocol===c.protocol&&u.host===c.host&&(r=c.relative),Us({category:"navigation",data:{from:r,to:o}})}}function mR(t){return!!t&&!!t.target}const vR=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],yR="BrowserApiErrors",_R=((t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:yR,setupOnce(){e.setTimeout&&an(Je,"setTimeout",Y_),e.setInterval&&an(Je,"setInterval",Y_),e.requestAnimationFrame&&an(Je,"requestAnimationFrame",bR),e.XMLHttpRequest&&"XMLHttpRequest"in Je&&an(XMLHttpRequest.prototype,"send",SR);const n=e.eventTarget;n&&(Array.isArray(n)?n:vR).forEach(o=>ER(o,e))}}});function Y_(t){return function(...e){const n=e[0];return e[0]=Cr(n,{mechanism:{data:{function:Hi(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function bR(t){return function(e){return t.apply(this,[Cr(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Hi(t)},handled:!1,type:"instrument"}})])}}function SR(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&an(n,o,function(u){const c={mechanism:{data:{function:o,handler:Hi(u)},handled:!1,type:"instrument"}},f=md(u);return f&&(c.mechanism.data.handler=Hi(f)),Cr(u,c)})}),t.apply(this,e)}}function ER(t,e){const r=Je[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(an(r,"addEventListener",function(o){return function(u,c,f){try{xR(c)&&(c.handleEvent=Cr(c.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Hi(c),target:t},handled:!1,type:"instrument"}}))}catch{}return e.unregisterOriginalCallbacks&&TR(this,u,c),o.apply(this,[u,Cr(c,{mechanism:{data:{function:"addEventListener",handler:Hi(c),target:t},handled:!1,type:"instrument"}}),f])}}),an(r,"removeEventListener",function(o){return function(u,c,f){try{const h=c.__sentry_wrapped__;h&&o.call(this,u,h,f)}catch{}return o.call(this,u,c,f)}}))}function xR(t){return typeof t.handleEvent=="function"}function TR(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}const wR=()=>({name:"BrowserSession",setupOnce(){if(typeof Je.document>"u"){Mr&&Se.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}d_({ignoreDuration:!0}),g_(),F_(({from:t,to:e})=>{t!==void 0&&t!==e&&(d_({ignoreDuration:!0}),g_())})}}),AR="GlobalHandlers",CR=((t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:AR,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(MR(n),X_("onerror")),e.onunhandledrejection&&(OR(n),X_("onunhandledrejection"))}}});function MR(t){D5(e=>{const{stackParser:n,attachStacktrace:r}=K_();if(Ot()!==t||I_())return;const{msg:o,url:u,line:c,column:f,error:h}=e,g=kR(Bd(n,h||o,void 0,r,!1),u,c,f);g.level="error",f_(g,{originalException:h,mechanism:{handled:!1,type:"onerror"}})})}function OR(t){L5(e=>{const{stackParser:n,attachStacktrace:r}=K_();if(Ot()!==t||I_())return;const o=RR(e),u=hd(o)?DR(o):Bd(n,o,void 0,r,!0);u.level="error",f_(u,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function RR(t){if(hd(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function DR(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function kR(t,e,n,r){const o=t.exception=t.exception||{},u=o.values=o.values||[],c=u[0]=u[0]||{},f=c.stacktrace=c.stacktrace||{},h=f.frames=f.frames||[],g=r,m=n,v=ai(e)&&e.length>0?e:gd();return h.length===0&&h.push({colno:g,filename:v,function:Ds,in_app:!0,lineno:m}),t}function X_(t){Mr&&Se.log(`Global Handler attached: ${t}`)}function K_(){return Ot()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const LR=()=>({name:"HttpContext",preprocessEvent(t){if(!Je.navigator&&!Je.location&&!Je.document)return;const e=TO(),n={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:n}}}),NR="cause",zR=5,jR="LinkedErrors",UR=((t={})=>{const e=t.limit||zR,n=t.key||NR;return{name:jR,preprocessEvent(r,o,u){const c=u.getOptions();aO(zd,c.stackParser,n,e,r,o)}}});function BR(){return VR()?(Mr&&Sr(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function VR(){if(typeof Je.window>"u")return!1;const t=Je;if(t.nw||!(t.chrome||t.browser)?.runtime?.id)return!1;const n=gd(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(Je===Je.top&&r.some(u=>n.startsWith(`${u}://`)))}function IR(t){return[JM(),XM(),_R(),uR(),CR(),UR(),fO(),LR(),wR()]}function qR(t={}){const e=!t.skipBrowserExtensionCheck&&BR(),n={...t,enabled:e?!1:t.enabled,stackParser:O5(t.stackParser||oR),integrations:EM({integrations:t.integrations,defaultIntegrations:t.defaultIntegrations==null?IR():t.defaultIntegrations}),transport:t.transport||JO};return LM(UO,n)}function Z_(t={}){const e=Je.document,n=e?.head||e?.body;if(!n){Mr&&Se.error("[showReportDialog] Global document not defined");return}const r=li(),u=Ot()?.getDsn();if(!u){Mr&&Se.error("[showReportDialog] DSN not configured");return}const c={...t,user:{...r.getUser(),...t.user},eventId:t.eventId||gM()},f=Je.document.createElement("script");f.async=!0,f.crossOrigin="anonymous",f.src=bM(u,c);const{onLoad:h,onClose:g}=c;if(h&&(f.onload=h),g){const m=v=>{if(v.data==="__sentry_reportdialog_closed__")try{g()}finally{Je.removeEventListener("message",m)}};Je.addEventListener("message",m)}n.appendChild(f)}function PR(t){const e=t.match(/^([^.]+)/);return e!==null&&parseInt(e[0])>=17}function HR(t,e){const n=new WeakSet;function r(o,u){if(!n.has(o)){if(o.cause)return n.add(o),r(o.cause,u);o.cause=u}}r(t,e)}function FR(t,{componentStack:e},n){if(PR(Y.version)&&iu(t)&&e){const r=new Error(t.message);r.name=`React ErrorBoundary ${t.name}`,r.stack=e,HR(t,r)}return bd(r=>(r.setContext("react",{componentStack:e}),c_(t,n)))}const $R=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Hd={componentStack:null,error:null,eventId:null};class GR extends Y.Component{constructor(e){super(e),this.state=Hd,this._openFallbackReportDialog=!0;const n=Ot();n&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&Z_({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,n){const{componentStack:r}=n,{beforeCapture:o,onError:u,showDialog:c,dialogOptions:f}=this.props;bd(h=>{o&&o(h,e,r);const g=this.props.handled!=null?this.props.handled:!!this.props.fallback,m=FR(e,n,{mechanism:{handled:g}});u&&u(e,r,m),c&&(this._lastEventId=m,this._openFallbackReportDialog&&Z_({...f,eventId:m})),this.setState({error:e,componentStack:r,eventId:m})})}componentDidMount(){const{onMount:e}=this.props;e&&e()}componentWillUnmount(){const{error:e,componentStack:n,eventId:r}=this.state,{onUnmount:o}=this.props;o&&(this.state===Hd?o(null,null,null):o(e,n,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:e}=this.props,{error:n,componentStack:r,eventId:o}=this.state;e&&e(n,r,o),this.setState(Hd)}render(){const{fallback:e,children:n}=this.props,r=this.state;if(r.componentStack===null)return typeof n=="function"?n():n;const o=typeof e=="function"?Y.createElement(e,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):e;return Y.isValidElement(o)?o:(e&&$R&&Se.warn("fallback did not produce a valid ReactElement"),null)}}var Fd={exports:{}},io={},$d={exports:{}},Gd={};var Q_;function YR(){return Q_||(Q_=1,(function(t){function e(A,N){var J=A.length;A.push(N);e:for(;0<J;){var te=J-1>>>1,ue=A[te];if(0<o(ue,N))A[te]=N,A[J]=ue,J=te;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var N=A[0],J=A.pop();if(J!==N){A[0]=J;e:for(var te=0,ue=A.length,T=ue>>>1;te<T;){var j=2*(te+1)-1,W=A[j],H=j+1,oe=A[H];if(0>o(W,J))H<ue&&0>o(oe,W)?(A[te]=oe,A[H]=J,te=H):(A[te]=W,A[j]=J,te=j);else if(H<ue&&0>o(oe,J))A[te]=oe,A[H]=J,te=H;else break e}}return N}function o(A,N){var J=A.sortIndex-N.sortIndex;return J!==0?J:A.id-N.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();t.unstable_now=function(){return c.now()-f}}var h=[],g=[],m=1,v=null,_=3,b=!1,x=!1,E=!1,M=!1,R=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function K(A){for(var N=n(g);N!==null;){if(N.callback===null)r(g);else if(N.startTime<=A)r(g),N.sortIndex=N.expirationTime,e(h,N);else break;N=n(g)}}function U(A){if(E=!1,K(A),!x)if(n(h)!==null)x=!0,Q||(Q=!0,ie());else{var N=n(g);N!==null&&L(U,N.startTime-A)}}var Q=!1,P=-1,I=5,$=-1;function ee(){return M?!0:!(t.unstable_now()-$<I)}function le(){if(M=!1,Q){var A=t.unstable_now();$=A;var N=!0;try{e:{x=!1,E&&(E=!1,q(P),P=-1),b=!0;var J=_;try{t:{for(K(A),v=n(h);v!==null&&!(v.expirationTime>A&&ee());){var te=v.callback;if(typeof te=="function"){v.callback=null,_=v.priorityLevel;var ue=te(v.expirationTime<=A);if(A=t.unstable_now(),typeof ue=="function"){v.callback=ue,K(A),N=!0;break t}v===n(h)&&r(h),K(A)}else r(h);v=n(h)}if(v!==null)N=!0;else{var T=n(g);T!==null&&L(U,T.startTime-A),N=!1}}break e}finally{v=null,_=J,b=!1}N=void 0}}finally{N?ie():Q=!1}}}var ie;if(typeof F=="function")ie=function(){F(le)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,ye=he.port2;he.port1.onmessage=le,ie=function(){ye.postMessage(null)}}else ie=function(){R(le,0)};function L(A,N){P=R(function(){A(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(A){A.callback=null},t.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<A?Math.floor(1e3/A):5},t.unstable_getCurrentPriorityLevel=function(){return _},t.unstable_next=function(A){switch(_){case 1:case 2:case 3:var N=3;break;default:N=_}var J=_;_=N;try{return A()}finally{_=J}},t.unstable_requestPaint=function(){M=!0},t.unstable_runWithPriority=function(A,N){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var J=_;_=A;try{return N()}finally{_=J}},t.unstable_scheduleCallback=function(A,N,J){var te=t.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?te+J:te):J=te,A){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=J+ue,A={id:m++,callback:N,priorityLevel:A,startTime:J,expirationTime:ue,sortIndex:-1},J>te?(A.sortIndex=J,e(g,A),n(h)===null&&A===n(g)&&(E?(q(P),P=-1):E=!0,L(U,J-te))):(A.sortIndex=ue,e(h,A),x||b||(x=!0,Q||(Q=!0,ie()))),A},t.unstable_shouldYield=ee,t.unstable_wrapCallback=function(A){var N=_;return function(){var J=_;_=N;try{return A.apply(this,arguments)}finally{_=J}}}})(Gd)),Gd}var J_;function XR(){return J_||(J_=1,$d.exports=YR()),$d.exports}var Yd={exports:{}},It={};var W_;function KR(){if(W_)return It;W_=1;var t=rd();function e(h){var g="https://react.dev/errors/"+h;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)g+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+h+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(h,g,m){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:h,containerInfo:g,implementation:m}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,g){if(h==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return It.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,It.createPortal=function(h,g){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(e(299));return u(h,g,null,m)},It.flushSync=function(h){var g=c.T,m=r.p;try{if(c.T=null,r.p=2,h)return h()}finally{c.T=g,r.p=m,r.d.f()}},It.preconnect=function(h,g){typeof h=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(h,g))},It.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},It.preinit=function(h,g){if(typeof h=="string"&&g&&typeof g.as=="string"){var m=g.as,v=f(m,g.crossOrigin),_=typeof g.integrity=="string"?g.integrity:void 0,b=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;m==="style"?r.d.S(h,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:b}):m==="script"&&r.d.X(h,{crossOrigin:v,integrity:_,fetchPriority:b,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},It.preinitModule=function(h,g){if(typeof h=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var m=f(g.as,g.crossOrigin);r.d.M(h,{crossOrigin:m,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(h)},It.preload=function(h,g){if(typeof h=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var m=g.as,v=f(m,g.crossOrigin);r.d.L(h,m,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},It.preloadModule=function(h,g){if(typeof h=="string")if(g){var m=f(g.as,g.crossOrigin);r.d.m(h,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:m,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(h)},It.requestFormReset=function(h){r.d.r(h)},It.unstable_batchedUpdates=function(h,g){return h(g)},It.useFormState=function(h,g,m){return c.H.useFormState(h,g,m)},It.useFormStatus=function(){return c.H.useHostTransitionStatus()},It.version="19.2.5",It}var e0;function ZR(){if(e0)return Yd.exports;e0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Yd.exports=KR(),Yd.exports}var t0;function QR(){if(t0)return io;t0=1;var t=XR(),e=rd(),n=ZR();function r(i){var s="https://react.dev/errors/"+i;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)s+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function u(i){var s=i,a=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(a=s.return),i=s.return;while(i)}return s.tag===3?a:null}function c(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function f(i){if(i.tag===31){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function h(i){if(u(i)!==i)throw Error(r(188))}function g(i){var s=i.alternate;if(!s){if(s=u(i),s===null)throw Error(r(188));return s!==i?null:i}for(var a=i,l=s;;){var d=a.return;if(d===null)break;var p=d.alternate;if(p===null){if(l=d.return,l!==null){a=l;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===a)return h(d),i;if(p===l)return h(d),s;p=p.sibling}throw Error(r(188))}if(a.return!==l.return)a=d,l=p;else{for(var y=!1,S=d.child;S;){if(S===a){y=!0,a=d,l=p;break}if(S===l){y=!0,l=d,a=p;break}S=S.sibling}if(!y){for(S=p.child;S;){if(S===a){y=!0,a=p,l=d;break}if(S===l){y=!0,l=p,a=d;break}S=S.sibling}if(!y)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?i:s}function m(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=m(i),s!==null)return s;i=i.sibling}return null}var v=Object.assign,_=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),F=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function ie(i){return i===null||typeof i!="object"?null:(i=le&&i[le]||i["@@iterator"],typeof i=="function"?i:null)}var he=Symbol.for("react.client.reference");function ye(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===he?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case E:return"Fragment";case R:return"Profiler";case M:return"StrictMode";case U:return"Suspense";case Q:return"SuspenseList";case $:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case x:return"Portal";case F:return i.displayName||"Context";case q:return(i._context.displayName||"Context")+".Consumer";case K:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case P:return s=i.displayName||null,s!==null?s:ye(i.type)||"Memo";case I:s=i._payload,i=i._init;try{return ye(i(s))}catch{}}return null}var L=Array.isArray,A=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},te=[],ue=-1;function T(i){return{current:i}}function j(i){0>ue||(i.current=te[ue],te[ue]=null,ue--)}function W(i,s){ue++,te[ue]=i.current,i.current=s}var H=T(null),oe=T(null),ge=T(null),Me=T(null);function je(i,s){switch(W(ge,s),W(oe,i),W(H,null),s.nodeType){case 9:case 11:i=(i=s.documentElement)&&(i=i.namespaceURI)?EA(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=EA(s),i=xA(s,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}j(H),W(H,i)}function Ue(){j(H),j(oe),j(ge)}function it(i){i.memoizedState!==null&&W(Me,i);var s=H.current,a=xA(s,i.type);s!==a&&(W(oe,i),W(H,a))}function Ft(i){oe.current===i&&(j(H),j(oe)),Me.current===i&&(j(Me),Gl._currentValue=J)}var At,tr;function Qt(i){if(At===void 0)try{throw Error()}catch(a){var s=a.stack.trim().match(/\n( *(at )?)/);At=s&&s[1]||"",tr=-1<a.stack.indexOf(`
|
|
25
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
26
|
+
`+At+i+tr}var ss=!1;function Yt(i,s){if(!i||ss)return"";ss=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(s){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(V){var z=V}Reflect.construct(i,[],Z)}else{try{Z.call()}catch(V){z=V}i.call(Z.prototype)}}else{try{throw Error()}catch(V){z=V}(Z=i())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(V){if(V&&z&&typeof V.stack=="string")return[V.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=l.DetermineComponentFrameRoot(),y=p[0],S=p[1];if(y&&S){var w=y.split(`
|
|
27
|
+
`),k=S.split(`
|
|
28
|
+
`);for(d=l=0;l<w.length&&!w[l].includes("DetermineComponentFrameRoot");)l++;for(;d<k.length&&!k[d].includes("DetermineComponentFrameRoot");)d++;if(l===w.length||d===k.length)for(l=w.length-1,d=k.length-1;1<=l&&0<=d&&w[l]!==k[d];)d--;for(;1<=l&&0<=d;l--,d--)if(w[l]!==k[d]){if(l!==1||d!==1)do if(l--,d--,0>d||w[l]!==k[d]){var G=`
|
|
29
|
+
`+w[l].replace(" at new "," at ");return i.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",i.displayName)),G}while(1<=l&&0<=d);break}}}finally{ss=!1,Error.prepareStackTrace=a}return(a=i?i.displayName||i.name:"")?Qt(a):""}function Ei(i,s){switch(i.tag){case 26:case 27:case 5:return Qt(i.type);case 16:return Qt("Lazy");case 13:return i.child!==s&&s!==null?Qt("Suspense Fallback"):Qt("Suspense");case 19:return Qt("SuspenseList");case 0:case 15:return Yt(i.type,!1);case 11:return Yt(i.type.render,!1);case 1:return Yt(i.type,!0);case 31:return Qt("Activity");default:return""}}function ti(i){try{var s="",a=null;do s+=Ei(i,a),a=i,i=i.return;while(i);return s}catch(l){return`
|
|
30
|
+
Error generating stack: `+l.message+`
|
|
31
|
+
`+l.stack}}var nr=Object.prototype.hasOwnProperty,aa=t.unstable_scheduleCallback,oa=t.unstable_cancelCallback,kc=t.unstable_shouldYield,il=t.unstable_requestPaint,pn=t.unstable_now,zU=t.unstable_getCurrentPriorityLevel,eT=t.unstable_ImmediatePriority,tT=t.unstable_UserBlockingPriority,Lc=t.unstable_NormalPriority,jU=t.unstable_LowPriority,nT=t.unstable_IdlePriority,UU=t.log,BU=t.unstable_setDisableYieldValue,sl=null,gn=null;function rs(i){if(typeof UU=="function"&&BU(i),gn&&typeof gn.setStrictMode=="function")try{gn.setStrictMode(sl,i)}catch{}}var mn=Math.clz32?Math.clz32:qU,VU=Math.log,IU=Math.LN2;function qU(i){return i>>>=0,i===0?32:31-(VU(i)/IU|0)|0}var Nc=256,zc=262144,jc=4194304;function ir(i){var s=i&42;if(s!==0)return s;switch(i&-i){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 i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Uc(i,s,a){var l=i.pendingLanes;if(l===0)return 0;var d=0,p=i.suspendedLanes,y=i.pingedLanes;i=i.warmLanes;var S=l&134217727;return S!==0?(l=S&~p,l!==0?d=ir(l):(y&=S,y!==0?d=ir(y):a||(a=S&~i,a!==0&&(d=ir(a))))):(S=l&~p,S!==0?d=ir(S):y!==0?d=ir(y):a||(a=l&~i,a!==0&&(d=ir(a)))),d===0?0:s!==0&&s!==d&&(s&p)===0&&(p=d&-d,a=s&-s,p>=a||p===32&&(a&4194048)!==0)?s:d}function rl(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function PU(i,s){switch(i){case 1:case 2:case 4:case 8:case 64:return s+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 s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function iT(){var i=jc;return jc<<=1,(jc&62914560)===0&&(jc=4194304),i}function qg(i){for(var s=[],a=0;31>a;a++)s.push(i);return s}function al(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function HU(i,s,a,l,d,p){var y=i.pendingLanes;i.pendingLanes=a,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=a,i.entangledLanes&=a,i.errorRecoveryDisabledLanes&=a,i.shellSuspendCounter=0;var S=i.entanglements,w=i.expirationTimes,k=i.hiddenUpdates;for(a=y&~a;0<a;){var G=31-mn(a),Z=1<<G;S[G]=0,w[G]=-1;var z=k[G];if(z!==null)for(k[G]=null,G=0;G<z.length;G++){var V=z[G];V!==null&&(V.lane&=-536870913)}a&=~Z}l!==0&&sT(i,l,0),p!==0&&d===0&&i.tag!==0&&(i.suspendedLanes|=p&~(y&~s))}function sT(i,s,a){i.pendingLanes|=s,i.suspendedLanes&=~s;var l=31-mn(s);i.entangledLanes|=s,i.entanglements[l]=i.entanglements[l]|1073741824|a&261930}function rT(i,s){var a=i.entangledLanes|=s;for(i=i.entanglements;a;){var l=31-mn(a),d=1<<l;d&s|i[l]&s&&(i[l]|=s),a&=~d}}function aT(i,s){var a=s&-s;return a=(a&42)!==0?1:Pg(a),(a&(i.suspendedLanes|s))!==0?0:a}function Pg(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Hg(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function oT(){var i=N.p;return i!==0?i:(i=window.event,i===void 0?32:GA(i.type))}function lT(i,s){var a=N.p;try{return N.p=i,s()}finally{N.p=a}}var as=Math.random().toString(36).slice(2),zt="__reactFiber$"+as,Jt="__reactProps$"+as,la="__reactContainer$"+as,Fg="__reactEvents$"+as,FU="__reactListeners$"+as,$U="__reactHandles$"+as,uT="__reactResources$"+as,ol="__reactMarker$"+as;function $g(i){delete i[zt],delete i[Jt],delete i[Fg],delete i[FU],delete i[$U]}function ua(i){var s=i[zt];if(s)return s;for(var a=i.parentNode;a;){if(s=a[la]||a[zt]){if(a=s.alternate,s.child!==null||a!==null&&a.child!==null)for(i=RA(i);i!==null;){if(a=i[zt])return a;i=RA(i)}return s}i=a,a=i.parentNode}return null}function ca(i){if(i=i[zt]||i[la]){var s=i.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return i}return null}function ll(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(r(33))}function fa(i){var s=i[uT];return s||(s=i[uT]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Ct(i){i[ol]=!0}var cT=new Set,fT={};function sr(i,s){da(i,s),da(i+"Capture",s)}function da(i,s){for(fT[i]=s,i=0;i<s.length;i++)cT.add(s[i])}var GU=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]*$"),dT={},hT={};function YU(i){return nr.call(hT,i)?!0:nr.call(dT,i)?!1:GU.test(i)?hT[i]=!0:(dT[i]=!0,!1)}function Bc(i,s,a){if(YU(s))if(a===null)i.removeAttribute(s);else{switch(typeof a){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var l=s.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+a)}}function Vc(i,s,a){if(a===null)i.removeAttribute(s);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+a)}}function xi(i,s,a,l){if(l===null)i.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(a);return}i.setAttributeNS(s,a,""+l)}}function Rn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function pT(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function XU(i,s,a){var l=Object.getOwnPropertyDescriptor(i.constructor.prototype,s);if(!i.hasOwnProperty(s)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,p=l.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return d.call(this)},set:function(y){a=""+y,p.call(this,y)}}),Object.defineProperty(i,s,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function Gg(i){if(!i._valueTracker){var s=pT(i)?"checked":"value";i._valueTracker=XU(i,s,""+i[s])}}function gT(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var a=s.getValue(),l="";return i&&(l=pT(i)?i.checked?"true":"false":i.value),i=l,i!==a?(s.setValue(i),!0):!1}function Ic(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var KU=/[\n"\\]/g;function Dn(i){return i.replace(KU,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Yg(i,s,a,l,d,p,y,S){i.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?i.type=y:i.removeAttribute("type"),s!=null?y==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+Rn(s)):i.value!==""+Rn(s)&&(i.value=""+Rn(s)):y!=="submit"&&y!=="reset"||i.removeAttribute("value"),s!=null?Xg(i,y,Rn(s)):a!=null?Xg(i,y,Rn(a)):l!=null&&i.removeAttribute("value"),d==null&&p!=null&&(i.defaultChecked=!!p),d!=null&&(i.checked=d&&typeof d!="function"&&typeof d!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?i.name=""+Rn(S):i.removeAttribute("name")}function mT(i,s,a,l,d,p,y,S){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(i.type=p),s!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||s!=null)){Gg(i);return}a=a!=null?""+Rn(a):"",s=s!=null?""+Rn(s):a,S||s===i.value||(i.value=s),i.defaultValue=s}l=l??d,l=typeof l!="function"&&typeof l!="symbol"&&!!l,i.checked=S?i.checked:!!l,i.defaultChecked=!!l,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(i.name=y),Gg(i)}function Xg(i,s,a){s==="number"&&Ic(i.ownerDocument)===i||i.defaultValue===""+a||(i.defaultValue=""+a)}function ha(i,s,a,l){if(i=i.options,s){s={};for(var d=0;d<a.length;d++)s["$"+a[d]]=!0;for(a=0;a<i.length;a++)d=s.hasOwnProperty("$"+i[a].value),i[a].selected!==d&&(i[a].selected=d),d&&l&&(i[a].defaultSelected=!0)}else{for(a=""+Rn(a),s=null,d=0;d<i.length;d++){if(i[d].value===a){i[d].selected=!0,l&&(i[d].defaultSelected=!0);return}s!==null||i[d].disabled||(s=i[d])}s!==null&&(s.selected=!0)}}function vT(i,s,a){if(s!=null&&(s=""+Rn(s),s!==i.value&&(i.value=s),a==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=a!=null?""+Rn(a):""}function yT(i,s,a,l){if(s==null){if(l!=null){if(a!=null)throw Error(r(92));if(L(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),s=a}a=Rn(s),i.defaultValue=a,l=i.textContent,l===a&&l!==""&&l!==null&&(i.value=l),Gg(i)}function pa(i,s){if(s){var a=i.firstChild;if(a&&a===i.lastChild&&a.nodeType===3){a.nodeValue=s;return}}i.textContent=s}var ZU=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(i,s,a){var l=s.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":l?i.setProperty(s,a):typeof a!="number"||a===0||ZU.has(s)?s==="float"?i.cssFloat=a:i[s]=(""+a).trim():i[s]=a+"px"}function bT(i,s,a){if(s!=null&&typeof s!="object")throw Error(r(62));if(i=i.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||s!=null&&s.hasOwnProperty(l)||(l.indexOf("--")===0?i.setProperty(l,""):l==="float"?i.cssFloat="":i[l]="");for(var d in s)l=s[d],s.hasOwnProperty(d)&&a[d]!==l&&_T(i,d,l)}else for(var p in s)s.hasOwnProperty(p)&&_T(i,p,s[p])}function Kg(i){if(i.indexOf("-")===-1)return!1;switch(i){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 QU=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"]]),JU=/^[\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 qc(i){return JU.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function Ti(){}var Zg=null;function Qg(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var ga=null,ma=null;function ST(i){var s=ca(i);if(s&&(i=s.stateNode)){var a=i[Jt]||null;e:switch(i=s.stateNode,s.type){case"input":if(Yg(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),s=a.name,a.type==="radio"&&s!=null){for(a=i;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Dn(""+s)+'"][type="radio"]'),s=0;s<a.length;s++){var l=a[s];if(l!==i&&l.form===i.form){var d=l[Jt]||null;if(!d)throw Error(r(90));Yg(l,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(s=0;s<a.length;s++)l=a[s],l.form===i.form&&gT(l)}break e;case"textarea":vT(i,a.value,a.defaultValue);break e;case"select":s=a.value,s!=null&&ha(i,!!a.multiple,s,!1)}}}var Jg=!1;function ET(i,s,a){if(Jg)return i(s,a);Jg=!0;try{var l=i(s);return l}finally{if(Jg=!1,(ga!==null||ma!==null)&&(Of(),ga&&(s=ga,i=ma,ma=ga=null,ST(s),i)))for(s=0;s<i.length;s++)ST(i[s])}}function ul(i,s){var a=i.stateNode;if(a===null)return null;var l=a[Jt]||null;if(l===null)return null;a=l[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(i=i.type,l=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!l;break e;default:i=!1}if(i)return null;if(a&&typeof a!="function")throw Error(r(231,s,typeof a));return a}var wi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wg=!1;if(wi)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){Wg=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{Wg=!1}var os=null,em=null,Pc=null;function xT(){if(Pc)return Pc;var i,s=em,a=s.length,l,d="value"in os?os.value:os.textContent,p=d.length;for(i=0;i<a&&s[i]===d[i];i++);var y=a-i;for(l=1;l<=y&&s[a-l]===d[p-l];l++);return Pc=d.slice(i,1<l?1-l:void 0)}function Hc(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Fc(){return!0}function TT(){return!1}function Wt(i){function s(a,l,d,p,y){this._reactName=a,this._targetInst=d,this.type=l,this.nativeEvent=p,this.target=y,this.currentTarget=null;for(var S in i)i.hasOwnProperty(S)&&(a=i[S],this[S]=a?a(p):p[S]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Fc:TT,this.isPropagationStopped=TT,this}return v(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Fc)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Fc)},persist:function(){},isPersistent:Fc}),s}var rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$c=Wt(rr),fl=v({},rr,{view:0,detail:0}),WU=Wt(fl),tm,nm,dl,Gc=v({},fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sm,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==dl&&(dl&&i.type==="mousemove"?(tm=i.screenX-dl.screenX,nm=i.screenY-dl.screenY):nm=tm=0,dl=i),tm)},movementY:function(i){return"movementY"in i?i.movementY:nm}}),wT=Wt(Gc),e6=v({},Gc,{dataTransfer:0}),t6=Wt(e6),n6=v({},fl,{relatedTarget:0}),im=Wt(n6),i6=v({},rr,{animationName:0,elapsedTime:0,pseudoElement:0}),s6=Wt(i6),r6=v({},rr,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),a6=Wt(r6),o6=v({},rr,{data:0}),AT=Wt(o6),l6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},u6={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"},c6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function f6(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=c6[i])?!!s[i]:!1}function sm(){return f6}var d6=v({},fl,{key:function(i){if(i.key){var s=l6[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=Hc(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?u6[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sm,charCode:function(i){return i.type==="keypress"?Hc(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Hc(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),h6=Wt(d6),p6=v({},Gc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),CT=Wt(p6),g6=v({},fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sm}),m6=Wt(g6),v6=v({},rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),y6=Wt(v6),_6=v({},Gc,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),b6=Wt(_6),S6=v({},rr,{newState:0,oldState:0}),E6=Wt(S6),x6=[9,13,27,32],rm=wi&&"CompositionEvent"in window,hl=null;wi&&"documentMode"in document&&(hl=document.documentMode);var T6=wi&&"TextEvent"in window&&!hl,MT=wi&&(!rm||hl&&8<hl&&11>=hl),OT=" ",RT=!1;function DT(i,s){switch(i){case"keyup":return x6.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kT(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var va=!1;function w6(i,s){switch(i){case"compositionend":return kT(s);case"keypress":return s.which!==32?null:(RT=!0,OT);case"textInput":return i=s.data,i===OT&&RT?null:i;default:return null}}function A6(i,s){if(va)return i==="compositionend"||!rm&&DT(i,s)?(i=xT(),Pc=em=os=null,va=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return MT&&s.locale!=="ko"?null:s.data;default:return null}}var C6={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 LT(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!C6[i.type]:s==="textarea"}function NT(i,s,a,l){ga?ma?ma.push(l):ma=[l]:ga=l,s=jf(s,"onChange"),0<s.length&&(a=new $c("onChange","change",null,a,l),i.push({event:a,listeners:s}))}var pl=null,gl=null;function M6(i){mA(i,0)}function Yc(i){var s=ll(i);if(gT(s))return i}function zT(i,s){if(i==="change")return s}var jT=!1;if(wi){var am;if(wi){var om="oninput"in document;if(!om){var UT=document.createElement("div");UT.setAttribute("oninput","return;"),om=typeof UT.oninput=="function"}am=om}else am=!1;jT=am&&(!document.documentMode||9<document.documentMode)}function BT(){pl&&(pl.detachEvent("onpropertychange",VT),gl=pl=null)}function VT(i){if(i.propertyName==="value"&&Yc(gl)){var s=[];NT(s,gl,i,Qg(i)),ET(M6,s)}}function O6(i,s,a){i==="focusin"?(BT(),pl=s,gl=a,pl.attachEvent("onpropertychange",VT)):i==="focusout"&&BT()}function R6(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Yc(gl)}function D6(i,s){if(i==="click")return Yc(s)}function k6(i,s){if(i==="input"||i==="change")return Yc(s)}function L6(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var vn=typeof Object.is=="function"?Object.is:L6;function ml(i,s){if(vn(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var a=Object.keys(i),l=Object.keys(s);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var d=a[l];if(!nr.call(s,d)||!vn(i[d],s[d]))return!1}return!0}function IT(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function qT(i,s){var a=IT(i);i=0;for(var l;a;){if(a.nodeType===3){if(l=i+a.textContent.length,i<=s&&l>=s)return{node:a,offset:s-i};i=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=IT(a)}}function PT(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?PT(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function HT(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=Ic(i.document);s instanceof i.HTMLIFrameElement;){try{var a=typeof s.contentWindow.location.href=="string"}catch{a=!1}if(a)i=s.contentWindow;else break;s=Ic(i.document)}return s}function lm(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}var N6=wi&&"documentMode"in document&&11>=document.documentMode,ya=null,um=null,vl=null,cm=!1;function FT(i,s,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cm||ya==null||ya!==Ic(l)||(l=ya,"selectionStart"in l&&lm(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),vl&&ml(vl,l)||(vl=l,l=jf(um,"onSelect"),0<l.length&&(s=new $c("onSelect","select",null,s,a),i.push({event:s,listeners:l}),s.target=ya)))}function ar(i,s){var a={};return a[i.toLowerCase()]=s.toLowerCase(),a["Webkit"+i]="webkit"+s,a["Moz"+i]="moz"+s,a}var _a={animationend:ar("Animation","AnimationEnd"),animationiteration:ar("Animation","AnimationIteration"),animationstart:ar("Animation","AnimationStart"),transitionrun:ar("Transition","TransitionRun"),transitionstart:ar("Transition","TransitionStart"),transitioncancel:ar("Transition","TransitionCancel"),transitionend:ar("Transition","TransitionEnd")},fm={},$T={};wi&&($T=document.createElement("div").style,"AnimationEvent"in window||(delete _a.animationend.animation,delete _a.animationiteration.animation,delete _a.animationstart.animation),"TransitionEvent"in window||delete _a.transitionend.transition);function or(i){if(fm[i])return fm[i];if(!_a[i])return i;var s=_a[i],a;for(a in s)if(s.hasOwnProperty(a)&&a in $T)return fm[i]=s[a];return i}var GT=or("animationend"),YT=or("animationiteration"),XT=or("animationstart"),z6=or("transitionrun"),j6=or("transitionstart"),U6=or("transitioncancel"),KT=or("transitionend"),ZT=new Map,dm="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(" ");dm.push("scrollEnd");function $n(i,s){ZT.set(i,s),sr(s,[i])}var Xc=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},kn=[],ba=0,hm=0;function Kc(){for(var i=ba,s=hm=ba=0;s<i;){var a=kn[s];kn[s++]=null;var l=kn[s];kn[s++]=null;var d=kn[s];kn[s++]=null;var p=kn[s];if(kn[s++]=null,l!==null&&d!==null){var y=l.pending;y===null?d.next=d:(d.next=y.next,y.next=d),l.pending=d}p!==0&&QT(a,d,p)}}function Zc(i,s,a,l){kn[ba++]=i,kn[ba++]=s,kn[ba++]=a,kn[ba++]=l,hm|=l,i.lanes|=l,i=i.alternate,i!==null&&(i.lanes|=l)}function pm(i,s,a,l){return Zc(i,s,a,l),Qc(i)}function lr(i,s){return Zc(i,null,null,s),Qc(i)}function QT(i,s,a){i.lanes|=a;var l=i.alternate;l!==null&&(l.lanes|=a);for(var d=!1,p=i.return;p!==null;)p.childLanes|=a,l=p.alternate,l!==null&&(l.childLanes|=a),p.tag===22&&(i=p.stateNode,i===null||i._visibility&1||(d=!0)),i=p,p=p.return;return i.tag===3?(p=i.stateNode,d&&s!==null&&(d=31-mn(a),i=p.hiddenUpdates,l=i[d],l===null?i[d]=[s]:l.push(s),s.lane=a|536870912),p):null}function Qc(i){if(50<Vl)throw Vl=0,xv=null,Error(r(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var Sa={};function B6(i,s,a,l){this.tag=i,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yn(i,s,a,l){return new B6(i,s,a,l)}function gm(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Ai(i,s){var a=i.alternate;return a===null?(a=yn(i.tag,s,i.key,i.mode),a.elementType=i.elementType,a.type=i.type,a.stateNode=i.stateNode,a.alternate=i,i.alternate=a):(a.pendingProps=s,a.type=i.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=i.flags&65011712,a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,s=i.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},a.sibling=i.sibling,a.index=i.index,a.ref=i.ref,a.refCleanup=i.refCleanup,a}function JT(i,s){i.flags&=65011714;var a=i.alternate;return a===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,s=a.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}function Jc(i,s,a,l,d,p){var y=0;if(l=i,typeof i=="function")gm(i)&&(y=1);else if(typeof i=="string")y=HB(i,a,H.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case $:return i=yn(31,a,s,d),i.elementType=$,i.lanes=p,i;case E:return ur(a.children,d,p,s);case M:y=8,d|=24;break;case R:return i=yn(12,a,s,d|2),i.elementType=R,i.lanes=p,i;case U:return i=yn(13,a,s,d),i.elementType=U,i.lanes=p,i;case Q:return i=yn(19,a,s,d),i.elementType=Q,i.lanes=p,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case F:y=10;break e;case q:y=9;break e;case K:y=11;break e;case P:y=14;break e;case I:y=16,l=null;break e}y=29,a=Error(r(130,i===null?"null":typeof i,"")),l=null}return s=yn(y,a,s,d),s.elementType=i,s.type=l,s.lanes=p,s}function ur(i,s,a,l){return i=yn(7,i,l,s),i.lanes=a,i}function mm(i,s,a){return i=yn(6,i,null,s),i.lanes=a,i}function WT(i){var s=yn(18,null,null,0);return s.stateNode=i,s}function vm(i,s,a){return s=yn(4,i.children!==null?i.children:[],i.key,s),s.lanes=a,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}var ew=new WeakMap;function Ln(i,s){if(typeof i=="object"&&i!==null){var a=ew.get(i);return a!==void 0?a:(s={value:i,source:s,stack:ti(s)},ew.set(i,s),s)}return{value:i,source:s,stack:ti(s)}}var Ea=[],xa=0,Wc=null,yl=0,Nn=[],zn=0,ls=null,ni=1,ii="";function Ci(i,s){Ea[xa++]=yl,Ea[xa++]=Wc,Wc=i,yl=s}function tw(i,s,a){Nn[zn++]=ni,Nn[zn++]=ii,Nn[zn++]=ls,ls=i;var l=ni;i=ii;var d=32-mn(l)-1;l&=~(1<<d),a+=1;var p=32-mn(s)+d;if(30<p){var y=d-d%5;p=(l&(1<<y)-1).toString(32),l>>=y,d-=y,ni=1<<32-mn(s)+d|a<<d|l,ii=p+i}else ni=1<<p|a<<d|l,ii=i}function ym(i){i.return!==null&&(Ci(i,1),tw(i,1,0))}function _m(i){for(;i===Wc;)Wc=Ea[--xa],Ea[xa]=null,yl=Ea[--xa],Ea[xa]=null;for(;i===ls;)ls=Nn[--zn],Nn[zn]=null,ii=Nn[--zn],Nn[zn]=null,ni=Nn[--zn],Nn[zn]=null}function nw(i,s){Nn[zn++]=ni,Nn[zn++]=ii,Nn[zn++]=ls,ni=s.id,ii=s.overflow,ls=i}var jt=null,st=null,ze=!1,us=null,jn=!1,bm=Error(r(519));function cs(i){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _l(Ln(s,i)),bm}function iw(i){var s=i.stateNode,a=i.type,l=i.memoizedProps;switch(s[zt]=i,s[Jt]=l,a){case"dialog":ke("cancel",s),ke("close",s);break;case"iframe":case"object":case"embed":ke("load",s);break;case"video":case"audio":for(a=0;a<ql.length;a++)ke(ql[a],s);break;case"source":ke("error",s);break;case"img":case"image":case"link":ke("error",s),ke("load",s);break;case"details":ke("toggle",s);break;case"input":ke("invalid",s),mT(s,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ke("invalid",s);break;case"textarea":ke("invalid",s),yT(s,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||s.textContent===""+a||l.suppressHydrationWarning===!0||bA(s.textContent,a)?(l.popover!=null&&(ke("beforetoggle",s),ke("toggle",s)),l.onScroll!=null&&ke("scroll",s),l.onScrollEnd!=null&&ke("scrollend",s),l.onClick!=null&&(s.onclick=Ti),s=!0):s=!1,s||cs(i,!0)}function sw(i){for(jt=i.return;jt;)switch(jt.tag){case 5:case 31:case 13:jn=!1;return;case 27:case 3:jn=!0;return;default:jt=jt.return}}function Ta(i){if(i!==jt)return!1;if(!ze)return sw(i),ze=!0,!1;var s=i.tag,a;if((a=s!==3&&s!==27)&&((a=s===5)&&(a=i.type,a=!(a!=="form"&&a!=="button")||Bv(i.type,i.memoizedProps)),a=!a),a&&st&&cs(i),sw(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));st=OA(i)}else if(s===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));st=OA(i)}else s===27?(s=st,Ts(i.type)?(i=Hv,Hv=null,st=i):st=s):st=jt?Bn(i.stateNode.nextSibling):null;return!0}function cr(){st=jt=null,ze=!1}function Sm(){var i=us;return i!==null&&(sn===null?sn=i:sn.push.apply(sn,i),us=null),i}function _l(i){us===null?us=[i]:us.push(i)}var Em=T(null),fr=null,Mi=null;function fs(i,s,a){W(Em,s._currentValue),s._currentValue=a}function Oi(i){i._currentValue=Em.current,j(Em)}function xm(i,s,a){for(;i!==null;){var l=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,l!==null&&(l.childLanes|=s)):l!==null&&(l.childLanes&s)!==s&&(l.childLanes|=s),i===a)break;i=i.return}}function Tm(i,s,a,l){var d=i.child;for(d!==null&&(d.return=i);d!==null;){var p=d.dependencies;if(p!==null){var y=d.child;p=p.firstContext;e:for(;p!==null;){var S=p;p=d;for(var w=0;w<s.length;w++)if(S.context===s[w]){p.lanes|=a,S=p.alternate,S!==null&&(S.lanes|=a),xm(p.return,a,i),l||(y=null);break e}p=S.next}}else if(d.tag===18){if(y=d.return,y===null)throw Error(r(341));y.lanes|=a,p=y.alternate,p!==null&&(p.lanes|=a),xm(y,a,i),y=null}else y=d.child;if(y!==null)y.return=d;else for(y=d;y!==null;){if(y===i){y=null;break}if(d=y.sibling,d!==null){d.return=y.return,y=d;break}y=y.return}d=y}}function wa(i,s,a,l){i=null;for(var d=s,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var y=d.alternate;if(y===null)throw Error(r(387));if(y=y.memoizedProps,y!==null){var S=d.type;vn(d.pendingProps.value,y.value)||(i!==null?i.push(S):i=[S])}}else if(d===Me.current){if(y=d.alternate,y===null)throw Error(r(387));y.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(i!==null?i.push(Gl):i=[Gl])}d=d.return}i!==null&&Tm(s,i,a,l),s.flags|=262144}function ef(i){for(i=i.firstContext;i!==null;){if(!vn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function dr(i){fr=i,Mi=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function Ut(i){return rw(fr,i)}function tf(i,s){return fr===null&&dr(i),rw(i,s)}function rw(i,s){var a=s._currentValue;if(s={context:s,memoizedValue:a,next:null},Mi===null){if(i===null)throw Error(r(308));Mi=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else Mi=Mi.next=s;return a}var V6=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(a,l){i.push(l)}};this.abort=function(){s.aborted=!0,i.forEach(function(a){return a()})}},I6=t.unstable_scheduleCallback,q6=t.unstable_NormalPriority,_t={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wm(){return{controller:new V6,data:new Map,refCount:0}}function bl(i){i.refCount--,i.refCount===0&&I6(q6,function(){i.controller.abort()})}var Sl=null,Am=0,Aa=0,Ca=null;function P6(i,s){if(Sl===null){var a=Sl=[];Am=0,Aa=Ov(),Ca={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Am++,s.then(aw,aw),s}function aw(){if(--Am===0&&Sl!==null){Ca!==null&&(Ca.status="fulfilled");var i=Sl;Sl=null,Aa=0,Ca=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function H6(i,s){var a=[],l={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return i.then(function(){l.status="fulfilled",l.value=s;for(var d=0;d<a.length;d++)(0,a[d])(s)},function(d){for(l.status="rejected",l.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),l}var ow=A.S;A.S=function(i,s){F2=pn(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&P6(i,s),ow!==null&&ow(i,s)};var hr=T(null);function Cm(){var i=hr.current;return i!==null?i:Ke.pooledCache}function nf(i,s){s===null?W(hr,hr.current):W(hr,s.pool)}function lw(){var i=Cm();return i===null?null:{parent:_t._currentValue,pool:i}}var Ma=Error(r(460)),Mm=Error(r(474)),sf=Error(r(542)),rf={then:function(){}};function uw(i){return i=i.status,i==="fulfilled"||i==="rejected"}function cw(i,s,a){switch(a=i[a],a===void 0?i.push(s):a!==s&&(s.then(Ti,Ti),s=a),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,dw(i),i;default:if(typeof s.status=="string")s.then(Ti,Ti);else{if(i=Ke,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=s,i.status="pending",i.then(function(l){if(s.status==="pending"){var d=s;d.status="fulfilled",d.value=l}},function(l){if(s.status==="pending"){var d=s;d.status="rejected",d.reason=l}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,dw(i),i}throw gr=s,Ma}}function pr(i){try{var s=i._init;return s(i._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(gr=a,Ma):a}}var gr=null;function fw(){if(gr===null)throw Error(r(459));var i=gr;return gr=null,i}function dw(i){if(i===Ma||i===sf)throw Error(r(483))}var Oa=null,El=0;function af(i){var s=El;return El+=1,Oa===null&&(Oa=[]),cw(Oa,i,s)}function xl(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function of(i,s){throw s.$$typeof===_?Error(r(525)):(i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function hw(i){function s(O,C){if(i){var D=O.deletions;D===null?(O.deletions=[C],O.flags|=16):D.push(C)}}function a(O,C){if(!i)return null;for(;C!==null;)s(O,C),C=C.sibling;return null}function l(O){for(var C=new Map;O!==null;)O.key!==null?C.set(O.key,O):C.set(O.index,O),O=O.sibling;return C}function d(O,C){return O=Ai(O,C),O.index=0,O.sibling=null,O}function p(O,C,D){return O.index=D,i?(D=O.alternate,D!==null?(D=D.index,D<C?(O.flags|=67108866,C):D):(O.flags|=67108866,C)):(O.flags|=1048576,C)}function y(O){return i&&O.alternate===null&&(O.flags|=67108866),O}function S(O,C,D,X){return C===null||C.tag!==6?(C=mm(D,O.mode,X),C.return=O,C):(C=d(C,D),C.return=O,C)}function w(O,C,D,X){var me=D.type;return me===E?G(O,C,D.props.children,X,D.key):C!==null&&(C.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===I&&pr(me)===C.type)?(C=d(C,D.props),xl(C,D),C.return=O,C):(C=Jc(D.type,D.key,D.props,null,O.mode,X),xl(C,D),C.return=O,C)}function k(O,C,D,X){return C===null||C.tag!==4||C.stateNode.containerInfo!==D.containerInfo||C.stateNode.implementation!==D.implementation?(C=vm(D,O.mode,X),C.return=O,C):(C=d(C,D.children||[]),C.return=O,C)}function G(O,C,D,X,me){return C===null||C.tag!==7?(C=ur(D,O.mode,X,me),C.return=O,C):(C=d(C,D),C.return=O,C)}function Z(O,C,D){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=mm(""+C,O.mode,D),C.return=O,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case b:return D=Jc(C.type,C.key,C.props,null,O.mode,D),xl(D,C),D.return=O,D;case x:return C=vm(C,O.mode,D),C.return=O,C;case I:return C=pr(C),Z(O,C,D)}if(L(C)||ie(C))return C=ur(C,O.mode,D,null),C.return=O,C;if(typeof C.then=="function")return Z(O,af(C),D);if(C.$$typeof===F)return Z(O,tf(O,C),D);of(O,C)}return null}function z(O,C,D,X){var me=C!==null?C.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return me!==null?null:S(O,C,""+D,X);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case b:return D.key===me?w(O,C,D,X):null;case x:return D.key===me?k(O,C,D,X):null;case I:return D=pr(D),z(O,C,D,X)}if(L(D)||ie(D))return me!==null?null:G(O,C,D,X,null);if(typeof D.then=="function")return z(O,C,af(D),X);if(D.$$typeof===F)return z(O,C,tf(O,D),X);of(O,D)}return null}function V(O,C,D,X,me){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return O=O.get(D)||null,S(C,O,""+X,me);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case b:return O=O.get(X.key===null?D:X.key)||null,w(C,O,X,me);case x:return O=O.get(X.key===null?D:X.key)||null,k(C,O,X,me);case I:return X=pr(X),V(O,C,D,X,me)}if(L(X)||ie(X))return O=O.get(D)||null,G(C,O,X,me,null);if(typeof X.then=="function")return V(O,C,D,af(X),me);if(X.$$typeof===F)return V(O,C,D,tf(C,X),me);of(C,X)}return null}function ce(O,C,D,X){for(var me=null,Be=null,de=C,Ae=C=0,Ne=null;de!==null&&Ae<D.length;Ae++){de.index>Ae?(Ne=de,de=null):Ne=de.sibling;var Ve=z(O,de,D[Ae],X);if(Ve===null){de===null&&(de=Ne);break}i&&de&&Ve.alternate===null&&s(O,de),C=p(Ve,C,Ae),Be===null?me=Ve:Be.sibling=Ve,Be=Ve,de=Ne}if(Ae===D.length)return a(O,de),ze&&Ci(O,Ae),me;if(de===null){for(;Ae<D.length;Ae++)de=Z(O,D[Ae],X),de!==null&&(C=p(de,C,Ae),Be===null?me=de:Be.sibling=de,Be=de);return ze&&Ci(O,Ae),me}for(de=l(de);Ae<D.length;Ae++)Ne=V(de,O,Ae,D[Ae],X),Ne!==null&&(i&&Ne.alternate!==null&&de.delete(Ne.key===null?Ae:Ne.key),C=p(Ne,C,Ae),Be===null?me=Ne:Be.sibling=Ne,Be=Ne);return i&&de.forEach(function(Os){return s(O,Os)}),ze&&Ci(O,Ae),me}function _e(O,C,D,X){if(D==null)throw Error(r(151));for(var me=null,Be=null,de=C,Ae=C=0,Ne=null,Ve=D.next();de!==null&&!Ve.done;Ae++,Ve=D.next()){de.index>Ae?(Ne=de,de=null):Ne=de.sibling;var Os=z(O,de,Ve.value,X);if(Os===null){de===null&&(de=Ne);break}i&&de&&Os.alternate===null&&s(O,de),C=p(Os,C,Ae),Be===null?me=Os:Be.sibling=Os,Be=Os,de=Ne}if(Ve.done)return a(O,de),ze&&Ci(O,Ae),me;if(de===null){for(;!Ve.done;Ae++,Ve=D.next())Ve=Z(O,Ve.value,X),Ve!==null&&(C=p(Ve,C,Ae),Be===null?me=Ve:Be.sibling=Ve,Be=Ve);return ze&&Ci(O,Ae),me}for(de=l(de);!Ve.done;Ae++,Ve=D.next())Ve=V(de,O,Ae,Ve.value,X),Ve!==null&&(i&&Ve.alternate!==null&&de.delete(Ve.key===null?Ae:Ve.key),C=p(Ve,C,Ae),Be===null?me=Ve:Be.sibling=Ve,Be=Ve);return i&&de.forEach(function(eV){return s(O,eV)}),ze&&Ci(O,Ae),me}function Ge(O,C,D,X){if(typeof D=="object"&&D!==null&&D.type===E&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case b:e:{for(var me=D.key;C!==null;){if(C.key===me){if(me=D.type,me===E){if(C.tag===7){a(O,C.sibling),X=d(C,D.props.children),X.return=O,O=X;break e}}else if(C.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===I&&pr(me)===C.type){a(O,C.sibling),X=d(C,D.props),xl(X,D),X.return=O,O=X;break e}a(O,C);break}else s(O,C);C=C.sibling}D.type===E?(X=ur(D.props.children,O.mode,X,D.key),X.return=O,O=X):(X=Jc(D.type,D.key,D.props,null,O.mode,X),xl(X,D),X.return=O,O=X)}return y(O);case x:e:{for(me=D.key;C!==null;){if(C.key===me)if(C.tag===4&&C.stateNode.containerInfo===D.containerInfo&&C.stateNode.implementation===D.implementation){a(O,C.sibling),X=d(C,D.children||[]),X.return=O,O=X;break e}else{a(O,C);break}else s(O,C);C=C.sibling}X=vm(D,O.mode,X),X.return=O,O=X}return y(O);case I:return D=pr(D),Ge(O,C,D,X)}if(L(D))return ce(O,C,D,X);if(ie(D)){if(me=ie(D),typeof me!="function")throw Error(r(150));return D=me.call(D),_e(O,C,D,X)}if(typeof D.then=="function")return Ge(O,C,af(D),X);if(D.$$typeof===F)return Ge(O,C,tf(O,D),X);of(O,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,C!==null&&C.tag===6?(a(O,C.sibling),X=d(C,D),X.return=O,O=X):(a(O,C),X=mm(D,O.mode,X),X.return=O,O=X),y(O)):a(O,C)}return function(O,C,D,X){try{El=0;var me=Ge(O,C,D,X);return Oa=null,me}catch(de){if(de===Ma||de===sf)throw de;var Be=yn(29,de,null,O.mode);return Be.lanes=X,Be.return=O,Be}}}var mr=hw(!0),pw=hw(!1),ds=!1;function Om(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rm(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function hs(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function ps(i,s,a){var l=i.updateQueue;if(l===null)return null;if(l=l.shared,(Ie&2)!==0){var d=l.pending;return d===null?s.next=s:(s.next=d.next,d.next=s),l.pending=s,s=Qc(i),QT(i,null,a),s}return Zc(i,l,s,a),Qc(i)}function Tl(i,s,a){if(s=s.updateQueue,s!==null&&(s=s.shared,(a&4194048)!==0)){var l=s.lanes;l&=i.pendingLanes,a|=l,s.lanes=a,rT(i,a)}}function Dm(i,s){var a=i.updateQueue,l=i.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var d=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?d=p=y:p=p.next=y,a=a.next}while(a!==null);p===null?d=p=s:p=p.next=s}else d=p=s;a={baseState:l.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:l.shared,callbacks:l.callbacks},i.updateQueue=a;return}i=a.lastBaseUpdate,i===null?a.firstBaseUpdate=s:i.next=s,a.lastBaseUpdate=s}var km=!1;function wl(){if(km){var i=Ca;if(i!==null)throw i}}function Al(i,s,a,l){km=!1;var d=i.updateQueue;ds=!1;var p=d.firstBaseUpdate,y=d.lastBaseUpdate,S=d.shared.pending;if(S!==null){d.shared.pending=null;var w=S,k=w.next;w.next=null,y===null?p=k:y.next=k,y=w;var G=i.alternate;G!==null&&(G=G.updateQueue,S=G.lastBaseUpdate,S!==y&&(S===null?G.firstBaseUpdate=k:S.next=k,G.lastBaseUpdate=w))}if(p!==null){var Z=d.baseState;y=0,G=k=w=null,S=p;do{var z=S.lane&-536870913,V=z!==S.lane;if(V?(Le&z)===z:(l&z)===z){z!==0&&z===Aa&&(km=!0),G!==null&&(G=G.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var ce=i,_e=S;z=s;var Ge=a;switch(_e.tag){case 1:if(ce=_e.payload,typeof ce=="function"){Z=ce.call(Ge,Z,z);break e}Z=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=_e.payload,z=typeof ce=="function"?ce.call(Ge,Z,z):ce,z==null)break e;Z=v({},Z,z);break e;case 2:ds=!0}}z=S.callback,z!==null&&(i.flags|=64,V&&(i.flags|=8192),V=d.callbacks,V===null?d.callbacks=[z]:V.push(z))}else V={lane:z,tag:S.tag,payload:S.payload,callback:S.callback,next:null},G===null?(k=G=V,w=Z):G=G.next=V,y|=z;if(S=S.next,S===null){if(S=d.shared.pending,S===null)break;V=S,S=V.next,V.next=null,d.lastBaseUpdate=V,d.shared.pending=null}}while(!0);G===null&&(w=Z),d.baseState=w,d.firstBaseUpdate=k,d.lastBaseUpdate=G,p===null&&(d.shared.lanes=0),_s|=y,i.lanes=y,i.memoizedState=Z}}function gw(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function mw(i,s){var a=i.callbacks;if(a!==null)for(i.callbacks=null,i=0;i<a.length;i++)gw(a[i],s)}var Ra=T(null),lf=T(0);function vw(i,s){i=Bi,W(lf,i),W(Ra,s),Bi=i|s.baseLanes}function Lm(){W(lf,Bi),W(Ra,Ra.current)}function Nm(){Bi=lf.current,j(Ra),j(lf)}var _n=T(null),Un=null;function gs(i){var s=i.alternate;W(vt,vt.current&1),W(_n,i),Un===null&&(s===null||Ra.current!==null||s.memoizedState!==null)&&(Un=i)}function zm(i){W(vt,vt.current),W(_n,i),Un===null&&(Un=i)}function yw(i){i.tag===22?(W(vt,vt.current),W(_n,i),Un===null&&(Un=i)):ms()}function ms(){W(vt,vt.current),W(_n,_n.current)}function bn(i){j(_n),Un===i&&(Un=null),j(vt)}var vt=T(0);function uf(i){for(var s=i;s!==null;){if(s.tag===13){var a=s.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||qv(a)||Pv(a)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Ri=0,Te=null,Fe=null,bt=null,cf=!1,Da=!1,vr=!1,ff=0,Cl=0,ka=null,F6=0;function pt(){throw Error(r(321))}function jm(i,s){if(s===null)return!1;for(var a=0;a<s.length&&a<i.length;a++)if(!vn(i[a],s[a]))return!1;return!0}function Um(i,s,a,l,d,p){return Ri=p,Te=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,A.H=i===null||i.memoizedState===null?t2:Jm,vr=!1,p=a(l,d),vr=!1,Da&&(p=bw(s,a,l,d)),_w(i),p}function _w(i){A.H=Rl;var s=Fe!==null&&Fe.next!==null;if(Ri=0,bt=Fe=Te=null,cf=!1,Cl=0,ka=null,s)throw Error(r(300));i===null||St||(i=i.dependencies,i!==null&&ef(i)&&(St=!0))}function bw(i,s,a,l){Te=i;var d=0;do{if(Da&&(ka=null),Cl=0,Da=!1,25<=d)throw Error(r(301));if(d+=1,bt=Fe=null,i.updateQueue!=null){var p=i.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}A.H=n2,p=s(a,l)}while(Da);return p}function $6(){var i=A.H,s=i.useState()[0];return s=typeof s.then=="function"?Ml(s):s,i=i.useState()[0],(Fe!==null?Fe.memoizedState:null)!==i&&(Te.flags|=1024),s}function Bm(){var i=ff!==0;return ff=0,i}function Vm(i,s,a){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~a}function Im(i){if(cf){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}cf=!1}Ri=0,bt=Fe=Te=null,Da=!1,Cl=ff=0,ka=null}function Xt(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bt===null?Te.memoizedState=bt=i:bt=bt.next=i,bt}function yt(){if(Fe===null){var i=Te.alternate;i=i!==null?i.memoizedState:null}else i=Fe.next;var s=bt===null?Te.memoizedState:bt.next;if(s!==null)bt=s,Fe=i;else{if(i===null)throw Te.alternate===null?Error(r(467)):Error(r(310));Fe=i,i={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},bt===null?Te.memoizedState=bt=i:bt=bt.next=i}return bt}function df(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ml(i){var s=Cl;return Cl+=1,ka===null&&(ka=[]),i=cw(ka,i,s),s=Te,(bt===null?s.memoizedState:bt.next)===null&&(s=s.alternate,A.H=s===null||s.memoizedState===null?t2:Jm),i}function hf(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Ml(i);if(i.$$typeof===F)return Ut(i)}throw Error(r(438,String(i)))}function qm(i){var s=null,a=Te.updateQueue;if(a!==null&&(s=a.memoCache),s==null){var l=Te.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(s={data:l.data.map(function(d){return d.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),a===null&&(a=df(),Te.updateQueue=a),a.memoCache=s,a=s.data[s.index],a===void 0)for(a=s.data[s.index]=Array(i),l=0;l<i;l++)a[l]=ee;return s.index++,a}function Di(i,s){return typeof s=="function"?s(i):s}function pf(i){var s=yt();return Pm(s,Fe,i)}function Pm(i,s,a){var l=i.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var d=i.baseQueue,p=l.pending;if(p!==null){if(d!==null){var y=d.next;d.next=p.next,p.next=y}s.baseQueue=d=p,l.pending=null}if(p=i.baseState,d===null)i.memoizedState=p;else{s=d.next;var S=y=null,w=null,k=s,G=!1;do{var Z=k.lane&-536870913;if(Z!==k.lane?(Le&Z)===Z:(Ri&Z)===Z){var z=k.revertLane;if(z===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),Z===Aa&&(G=!0);else if((Ri&z)===z){k=k.next,z===Aa&&(G=!0);continue}else Z={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},w===null?(S=w=Z,y=p):w=w.next=Z,Te.lanes|=z,_s|=z;Z=k.action,vr&&a(p,Z),p=k.hasEagerState?k.eagerState:a(p,Z)}else z={lane:Z,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},w===null?(S=w=z,y=p):w=w.next=z,Te.lanes|=Z,_s|=Z;k=k.next}while(k!==null&&k!==s);if(w===null?y=p:w.next=S,!vn(p,i.memoizedState)&&(St=!0,G&&(a=Ca,a!==null)))throw a;i.memoizedState=p,i.baseState=y,i.baseQueue=w,l.lastRenderedState=p}return d===null&&(l.lanes=0),[i.memoizedState,l.dispatch]}function Hm(i){var s=yt(),a=s.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=i;var l=a.dispatch,d=a.pending,p=s.memoizedState;if(d!==null){a.pending=null;var y=d=d.next;do p=i(p,y.action),y=y.next;while(y!==d);vn(p,s.memoizedState)||(St=!0),s.memoizedState=p,s.baseQueue===null&&(s.baseState=p),a.lastRenderedState=p}return[p,l]}function Sw(i,s,a){var l=Te,d=yt(),p=ze;if(p){if(a===void 0)throw Error(r(407));a=a()}else a=s();var y=!vn((Fe||d).memoizedState,a);if(y&&(d.memoizedState=a,St=!0),d=d.queue,Gm(Tw.bind(null,l,d,i),[i]),d.getSnapshot!==s||y||bt!==null&&bt.memoizedState.tag&1){if(l.flags|=2048,La(9,{destroy:void 0},xw.bind(null,l,d,a,s),null),Ke===null)throw Error(r(349));p||(Ri&127)!==0||Ew(l,s,a)}return a}function Ew(i,s,a){i.flags|=16384,i={getSnapshot:s,value:a},s=Te.updateQueue,s===null?(s=df(),Te.updateQueue=s,s.stores=[i]):(a=s.stores,a===null?s.stores=[i]:a.push(i))}function xw(i,s,a,l){s.value=a,s.getSnapshot=l,ww(s)&&Aw(i)}function Tw(i,s,a){return a(function(){ww(s)&&Aw(i)})}function ww(i){var s=i.getSnapshot;i=i.value;try{var a=s();return!vn(i,a)}catch{return!0}}function Aw(i){var s=lr(i,2);s!==null&&rn(s,i,2)}function Fm(i){var s=Xt();if(typeof i=="function"){var a=i;if(i=a(),vr){rs(!0);try{a()}finally{rs(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:i},s}function Cw(i,s,a,l){return i.baseState=a,Pm(i,Fe,typeof l=="function"?l:Di)}function G6(i,s,a,l,d){if(vf(i))throw Error(r(485));if(i=s.action,i!==null){var p={payload:d,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){p.listeners.push(y)}};A.T!==null?a(!0):p.isTransition=!1,l(p),a=s.pending,a===null?(p.next=s.pending=p,Mw(s,p)):(p.next=a.next,s.pending=a.next=p)}}function Mw(i,s){var a=s.action,l=s.payload,d=i.state;if(s.isTransition){var p=A.T,y={};A.T=y;try{var S=a(d,l),w=A.S;w!==null&&w(y,S),Ow(i,s,S)}catch(k){$m(i,s,k)}finally{p!==null&&y.types!==null&&(p.types=y.types),A.T=p}}else try{p=a(d,l),Ow(i,s,p)}catch(k){$m(i,s,k)}}function Ow(i,s,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Rw(i,s,l)},function(l){return $m(i,s,l)}):Rw(i,s,a)}function Rw(i,s,a){s.status="fulfilled",s.value=a,Dw(s),i.state=a,s=i.pending,s!==null&&(a=s.next,a===s?i.pending=null:(a=a.next,s.next=a,Mw(i,a)))}function $m(i,s,a){var l=i.pending;if(i.pending=null,l!==null){l=l.next;do s.status="rejected",s.reason=a,Dw(s),s=s.next;while(s!==l)}i.action=null}function Dw(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function kw(i,s){return s}function Lw(i,s){if(ze){var a=Ke.formState;if(a!==null){e:{var l=Te;if(ze){if(st){t:{for(var d=st,p=jn;d.nodeType!==8;){if(!p){d=null;break t}if(d=Bn(d.nextSibling),d===null){d=null;break t}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){st=Bn(d.nextSibling),l=d.data==="F!";break e}}cs(l)}l=!1}l&&(s=a[0])}}return a=Xt(),a.memoizedState=a.baseState=s,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kw,lastRenderedState:s},a.queue=l,a=Jw.bind(null,Te,l),l.dispatch=a,l=Fm(!1),p=Qm.bind(null,Te,!1,l.queue),l=Xt(),d={state:s,dispatch:null,action:i,pending:null},l.queue=d,a=G6.bind(null,Te,d,p,a),d.dispatch=a,l.memoizedState=i,[s,a,!1]}function Nw(i){var s=yt();return zw(s,Fe,i)}function zw(i,s,a){if(s=Pm(i,s,kw)[0],i=pf(Di)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var l=Ml(s)}catch(y){throw y===Ma?sf:y}else l=s;s=yt();var d=s.queue,p=d.dispatch;return a!==s.memoizedState&&(Te.flags|=2048,La(9,{destroy:void 0},Y6.bind(null,d,a),null)),[l,p,i]}function Y6(i,s){i.action=s}function jw(i){var s=yt(),a=Fe;if(a!==null)return zw(s,a,i);yt(),s=s.memoizedState,a=yt();var l=a.queue.dispatch;return a.memoizedState=i,[s,l,!1]}function La(i,s,a,l){return i={tag:i,create:a,deps:l,inst:s,next:null},s=Te.updateQueue,s===null&&(s=df(),Te.updateQueue=s),a=s.lastEffect,a===null?s.lastEffect=i.next=i:(l=a.next,a.next=i,i.next=l,s.lastEffect=i),i}function Uw(){return yt().memoizedState}function gf(i,s,a,l){var d=Xt();Te.flags|=i,d.memoizedState=La(1|s,{destroy:void 0},a,l===void 0?null:l)}function mf(i,s,a,l){var d=yt();l=l===void 0?null:l;var p=d.memoizedState.inst;Fe!==null&&l!==null&&jm(l,Fe.memoizedState.deps)?d.memoizedState=La(s,p,a,l):(Te.flags|=i,d.memoizedState=La(1|s,p,a,l))}function Bw(i,s){gf(8390656,8,i,s)}function Gm(i,s){mf(2048,8,i,s)}function X6(i){Te.flags|=4;var s=Te.updateQueue;if(s===null)s=df(),Te.updateQueue=s,s.events=[i];else{var a=s.events;a===null?s.events=[i]:a.push(i)}}function Vw(i){var s=yt().memoizedState;return X6({ref:s,nextImpl:i}),function(){if((Ie&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function Iw(i,s){return mf(4,2,i,s)}function qw(i,s){return mf(4,4,i,s)}function Pw(i,s){if(typeof s=="function"){i=i();var a=s(i);return function(){typeof a=="function"?a():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function Hw(i,s,a){a=a!=null?a.concat([i]):null,mf(4,4,Pw.bind(null,s,i),a)}function Ym(){}function Fw(i,s){var a=yt();s=s===void 0?null:s;var l=a.memoizedState;return s!==null&&jm(s,l[1])?l[0]:(a.memoizedState=[i,s],i)}function $w(i,s){var a=yt();s=s===void 0?null:s;var l=a.memoizedState;if(s!==null&&jm(s,l[1]))return l[0];if(l=i(),vr){rs(!0);try{i()}finally{rs(!1)}}return a.memoizedState=[l,s],l}function Xm(i,s,a){return a===void 0||(Ri&1073741824)!==0&&(Le&261930)===0?i.memoizedState=s:(i.memoizedState=a,i=G2(),Te.lanes|=i,_s|=i,a)}function Gw(i,s,a,l){return vn(a,s)?a:Ra.current!==null?(i=Xm(i,a,l),vn(i,s)||(St=!0),i):(Ri&42)===0||(Ri&1073741824)!==0&&(Le&261930)===0?(St=!0,i.memoizedState=a):(i=G2(),Te.lanes|=i,_s|=i,s)}function Yw(i,s,a,l,d){var p=N.p;N.p=p!==0&&8>p?p:8;var y=A.T,S={};A.T=S,Qm(i,!1,s,a);try{var w=d(),k=A.S;if(k!==null&&k(S,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var G=H6(w,l);Ol(i,s,G,xn(i))}else Ol(i,s,l,xn(i))}catch(Z){Ol(i,s,{then:function(){},status:"rejected",reason:Z},xn())}finally{N.p=p,y!==null&&S.types!==null&&(y.types=S.types),A.T=y}}function K6(){}function Km(i,s,a,l){if(i.tag!==5)throw Error(r(476));var d=Xw(i).queue;Yw(i,d,s,J,a===null?K6:function(){return Kw(i),a(l)})}function Xw(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:J},next:null};var a={};return s.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:a},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function Kw(i){var s=Xw(i);s.next===null&&(s=i.alternate.memoizedState),Ol(i,s.next.queue,{},xn())}function Zm(){return Ut(Gl)}function Zw(){return yt().memoizedState}function Qw(){return yt().memoizedState}function Z6(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var a=xn();i=hs(a);var l=ps(s,i,a);l!==null&&(rn(l,s,a),Tl(l,s,a)),s={cache:wm()},i.payload=s;return}s=s.return}}function Q6(i,s,a){var l=xn();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},vf(i)?Ww(s,a):(a=pm(i,s,a,l),a!==null&&(rn(a,i,l),e2(a,s,l)))}function Jw(i,s,a){var l=xn();Ol(i,s,a,l)}function Ol(i,s,a,l){var d={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(vf(i))Ww(s,d);else{var p=i.alternate;if(i.lanes===0&&(p===null||p.lanes===0)&&(p=s.lastRenderedReducer,p!==null))try{var y=s.lastRenderedState,S=p(y,a);if(d.hasEagerState=!0,d.eagerState=S,vn(S,y))return Zc(i,s,d,0),Ke===null&&Kc(),!1}catch{}if(a=pm(i,s,d,l),a!==null)return rn(a,i,l),e2(a,s,l),!0}return!1}function Qm(i,s,a,l){if(l={lane:2,revertLane:Ov(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},vf(i)){if(s)throw Error(r(479))}else s=pm(i,a,l,2),s!==null&&rn(s,i,2)}function vf(i){var s=i.alternate;return i===Te||s!==null&&s===Te}function Ww(i,s){Da=cf=!0;var a=i.pending;a===null?s.next=s:(s.next=a.next,a.next=s),i.pending=s}function e2(i,s,a){if((a&4194048)!==0){var l=s.lanes;l&=i.pendingLanes,a|=l,s.lanes=a,rT(i,a)}}var Rl={readContext:Ut,use:hf,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt,useHostTransitionStatus:pt,useFormState:pt,useActionState:pt,useOptimistic:pt,useMemoCache:pt,useCacheRefresh:pt};Rl.useEffectEvent=pt;var t2={readContext:Ut,use:hf,useCallback:function(i,s){return Xt().memoizedState=[i,s===void 0?null:s],i},useContext:Ut,useEffect:Bw,useImperativeHandle:function(i,s,a){a=a!=null?a.concat([i]):null,gf(4194308,4,Pw.bind(null,s,i),a)},useLayoutEffect:function(i,s){return gf(4194308,4,i,s)},useInsertionEffect:function(i,s){gf(4,2,i,s)},useMemo:function(i,s){var a=Xt();s=s===void 0?null:s;var l=i();if(vr){rs(!0);try{i()}finally{rs(!1)}}return a.memoizedState=[l,s],l},useReducer:function(i,s,a){var l=Xt();if(a!==void 0){var d=a(s);if(vr){rs(!0);try{a(s)}finally{rs(!1)}}}else d=s;return l.memoizedState=l.baseState=d,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:d},l.queue=i,i=i.dispatch=Q6.bind(null,Te,i),[l.memoizedState,i]},useRef:function(i){var s=Xt();return i={current:i},s.memoizedState=i},useState:function(i){i=Fm(i);var s=i.queue,a=Jw.bind(null,Te,s);return s.dispatch=a,[i.memoizedState,a]},useDebugValue:Ym,useDeferredValue:function(i,s){var a=Xt();return Xm(a,i,s)},useTransition:function(){var i=Fm(!1);return i=Yw.bind(null,Te,i.queue,!0,!1),Xt().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,a){var l=Te,d=Xt();if(ze){if(a===void 0)throw Error(r(407));a=a()}else{if(a=s(),Ke===null)throw Error(r(349));(Le&127)!==0||Ew(l,s,a)}d.memoizedState=a;var p={value:a,getSnapshot:s};return d.queue=p,Bw(Tw.bind(null,l,p,i),[i]),l.flags|=2048,La(9,{destroy:void 0},xw.bind(null,l,p,a,s),null),a},useId:function(){var i=Xt(),s=Ke.identifierPrefix;if(ze){var a=ii,l=ni;a=(l&~(1<<32-mn(l)-1)).toString(32)+a,s="_"+s+"R_"+a,a=ff++,0<a&&(s+="H"+a.toString(32)),s+="_"}else a=F6++,s="_"+s+"r_"+a.toString(32)+"_";return i.memoizedState=s},useHostTransitionStatus:Zm,useFormState:Lw,useActionState:Lw,useOptimistic:function(i){var s=Xt();s.memoizedState=s.baseState=i;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=a,s=Qm.bind(null,Te,!0,a),a.dispatch=s,[i,s]},useMemoCache:qm,useCacheRefresh:function(){return Xt().memoizedState=Z6.bind(null,Te)},useEffectEvent:function(i){var s=Xt(),a={impl:i};return s.memoizedState=a,function(){if((Ie&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Jm={readContext:Ut,use:hf,useCallback:Fw,useContext:Ut,useEffect:Gm,useImperativeHandle:Hw,useInsertionEffect:Iw,useLayoutEffect:qw,useMemo:$w,useReducer:pf,useRef:Uw,useState:function(){return pf(Di)},useDebugValue:Ym,useDeferredValue:function(i,s){var a=yt();return Gw(a,Fe.memoizedState,i,s)},useTransition:function(){var i=pf(Di)[0],s=yt().memoizedState;return[typeof i=="boolean"?i:Ml(i),s]},useSyncExternalStore:Sw,useId:Zw,useHostTransitionStatus:Zm,useFormState:Nw,useActionState:Nw,useOptimistic:function(i,s){var a=yt();return Cw(a,Fe,i,s)},useMemoCache:qm,useCacheRefresh:Qw};Jm.useEffectEvent=Vw;var n2={readContext:Ut,use:hf,useCallback:Fw,useContext:Ut,useEffect:Gm,useImperativeHandle:Hw,useInsertionEffect:Iw,useLayoutEffect:qw,useMemo:$w,useReducer:Hm,useRef:Uw,useState:function(){return Hm(Di)},useDebugValue:Ym,useDeferredValue:function(i,s){var a=yt();return Fe===null?Xm(a,i,s):Gw(a,Fe.memoizedState,i,s)},useTransition:function(){var i=Hm(Di)[0],s=yt().memoizedState;return[typeof i=="boolean"?i:Ml(i),s]},useSyncExternalStore:Sw,useId:Zw,useHostTransitionStatus:Zm,useFormState:jw,useActionState:jw,useOptimistic:function(i,s){var a=yt();return Fe!==null?Cw(a,Fe,i,s):(a.baseState=i,[i,a.queue.dispatch])},useMemoCache:qm,useCacheRefresh:Qw};n2.useEffectEvent=Vw;function Wm(i,s,a,l){s=i.memoizedState,a=a(l,s),a=a==null?s:v({},s,a),i.memoizedState=a,i.lanes===0&&(i.updateQueue.baseState=a)}var ev={enqueueSetState:function(i,s,a){i=i._reactInternals;var l=xn(),d=hs(l);d.payload=s,a!=null&&(d.callback=a),s=ps(i,d,l),s!==null&&(rn(s,i,l),Tl(s,i,l))},enqueueReplaceState:function(i,s,a){i=i._reactInternals;var l=xn(),d=hs(l);d.tag=1,d.payload=s,a!=null&&(d.callback=a),s=ps(i,d,l),s!==null&&(rn(s,i,l),Tl(s,i,l))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var a=xn(),l=hs(a);l.tag=2,s!=null&&(l.callback=s),s=ps(i,l,a),s!==null&&(rn(s,i,a),Tl(s,i,a))}};function i2(i,s,a,l,d,p,y){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(l,p,y):s.prototype&&s.prototype.isPureReactComponent?!ml(a,l)||!ml(d,p):!0}function s2(i,s,a,l){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(a,l),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(a,l),s.state!==i&&ev.enqueueReplaceState(s,s.state,null)}function yr(i,s){var a=s;if("ref"in s){a={};for(var l in s)l!=="ref"&&(a[l]=s[l])}if(i=i.defaultProps){a===s&&(a=v({},a));for(var d in i)a[d]===void 0&&(a[d]=i[d])}return a}function r2(i){Xc(i)}function a2(i){console.error(i)}function o2(i){Xc(i)}function yf(i,s){try{var a=i.onUncaughtError;a(s.value,{componentStack:s.stack})}catch(l){setTimeout(function(){throw l})}}function l2(i,s,a){try{var l=i.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function tv(i,s,a){return a=hs(a),a.tag=3,a.payload={element:null},a.callback=function(){yf(i,s)},a}function u2(i){return i=hs(i),i.tag=3,i}function c2(i,s,a,l){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var p=l.value;i.payload=function(){return d(p)},i.callback=function(){l2(s,a,l)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(i.callback=function(){l2(s,a,l),typeof d!="function"&&(bs===null?bs=new Set([this]):bs.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function J6(i,s,a,l,d){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(s=a.alternate,s!==null&&wa(s,a,d,!0),a=_n.current,a!==null){switch(a.tag){case 31:case 13:return Un===null?Rf():a.alternate===null&>===0&&(gt=3),a.flags&=-257,a.flags|=65536,a.lanes=d,l===rf?a.flags|=16384:(s=a.updateQueue,s===null?a.updateQueue=new Set([l]):s.add(l),Av(i,l,d)),!1;case 22:return a.flags|=65536,l===rf?a.flags|=16384:(s=a.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=s):(a=s.retryQueue,a===null?s.retryQueue=new Set([l]):a.add(l)),Av(i,l,d)),!1}throw Error(r(435,a.tag))}return Av(i,l,d),Rf(),!1}if(ze)return s=_n.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=d,l!==bm&&(i=Error(r(422),{cause:l}),_l(Ln(i,a)))):(l!==bm&&(s=Error(r(423),{cause:l}),_l(Ln(s,a))),i=i.current.alternate,i.flags|=65536,d&=-d,i.lanes|=d,l=Ln(l,a),d=tv(i.stateNode,l,d),Dm(i,d),gt!==4&&(gt=2)),!1;var p=Error(r(520),{cause:l});if(p=Ln(p,a),Bl===null?Bl=[p]:Bl.push(p),gt!==4&&(gt=2),s===null)return!0;l=Ln(l,a),a=s;do{switch(a.tag){case 3:return a.flags|=65536,i=d&-d,a.lanes|=i,i=tv(a.stateNode,l,i),Dm(a,i),!1;case 1:if(s=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(bs===null||!bs.has(p))))return a.flags|=65536,d&=-d,a.lanes|=d,d=u2(d),c2(d,i,a,l),Dm(a,d),!1}a=a.return}while(a!==null);return!1}var nv=Error(r(461)),St=!1;function Bt(i,s,a,l){s.child=i===null?pw(s,null,a,l):mr(s,i.child,a,l)}function f2(i,s,a,l,d){a=a.render;var p=s.ref;if("ref"in l){var y={};for(var S in l)S!=="ref"&&(y[S]=l[S])}else y=l;return dr(s),l=Um(i,s,a,y,p,d),S=Bm(),i!==null&&!St?(Vm(i,s,d),ki(i,s,d)):(ze&&S&&ym(s),s.flags|=1,Bt(i,s,l,d),s.child)}function d2(i,s,a,l,d){if(i===null){var p=a.type;return typeof p=="function"&&!gm(p)&&p.defaultProps===void 0&&a.compare===null?(s.tag=15,s.type=p,h2(i,s,p,l,d)):(i=Jc(a.type,null,l,s,s.mode,d),i.ref=s.ref,i.return=s,s.child=i)}if(p=i.child,!cv(i,d)){var y=p.memoizedProps;if(a=a.compare,a=a!==null?a:ml,a(y,l)&&i.ref===s.ref)return ki(i,s,d)}return s.flags|=1,i=Ai(p,l),i.ref=s.ref,i.return=s,s.child=i}function h2(i,s,a,l,d){if(i!==null){var p=i.memoizedProps;if(ml(p,l)&&i.ref===s.ref)if(St=!1,s.pendingProps=l=p,cv(i,d))(i.flags&131072)!==0&&(St=!0);else return s.lanes=i.lanes,ki(i,s,d)}return iv(i,s,a,l,d)}function p2(i,s,a,l){var d=l.children,p=i!==null?i.memoizedState:null;if(i===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((s.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,i!==null){for(l=s.child=i.child,d=0;l!==null;)d=d|l.lanes|l.childLanes,l=l.sibling;l=d&~p}else l=0,s.child=null;return g2(i,s,p,a,l)}if((a&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&nf(s,p!==null?p.cachePool:null),p!==null?vw(s,p):Lm(),yw(s);else return l=s.lanes=536870912,g2(i,s,p!==null?p.baseLanes|a:a,a,l)}else p!==null?(nf(s,p.cachePool),vw(s,p),ms(),s.memoizedState=null):(i!==null&&nf(s,null),Lm(),ms());return Bt(i,s,d,a),s.child}function Dl(i,s){return i!==null&&i.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function g2(i,s,a,l,d){var p=Cm();return p=p===null?null:{parent:_t._currentValue,pool:p},s.memoizedState={baseLanes:a,cachePool:p},i!==null&&nf(s,null),Lm(),yw(s),i!==null&&wa(i,s,l,!0),s.childLanes=d,null}function _f(i,s){return s=Sf({mode:s.mode,children:s.children},i.mode),s.ref=i.ref,i.child=s,s.return=i,s}function m2(i,s,a){return mr(s,i.child,null,a),i=_f(s,s.pendingProps),i.flags|=2,bn(s),s.memoizedState=null,i}function W6(i,s,a){var l=s.pendingProps,d=(s.flags&128)!==0;if(s.flags&=-129,i===null){if(ze){if(l.mode==="hidden")return i=_f(s,l),s.lanes=536870912,Dl(null,i);if(zm(s),(i=st)?(i=MA(i,jn),i=i!==null&&i.data==="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:ls!==null?{id:ni,overflow:ii}:null,retryLane:536870912,hydrationErrors:null},a=WT(i),a.return=s,s.child=a,jt=s,st=null)):i=null,i===null)throw cs(s);return s.lanes=536870912,null}return _f(s,l)}var p=i.memoizedState;if(p!==null){var y=p.dehydrated;if(zm(s),d)if(s.flags&256)s.flags&=-257,s=m2(i,s,a);else if(s.memoizedState!==null)s.child=i.child,s.flags|=128,s=null;else throw Error(r(558));else if(St||wa(i,s,a,!1),d=(a&i.childLanes)!==0,St||d){if(l=Ke,l!==null&&(y=aT(l,a),y!==0&&y!==p.retryLane))throw p.retryLane=y,lr(i,y),rn(l,i,y),nv;Rf(),s=m2(i,s,a)}else i=p.treeContext,st=Bn(y.nextSibling),jt=s,ze=!0,us=null,jn=!1,i!==null&&nw(s,i),s=_f(s,l),s.flags|=4096;return s}return i=Ai(i.child,{mode:l.mode,children:l.children}),i.ref=s.ref,s.child=i,i.return=s,i}function bf(i,s){var a=s.ref;if(a===null)i!==null&&i.ref!==null&&(s.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(i===null||i.ref!==a)&&(s.flags|=4194816)}}function iv(i,s,a,l,d){return dr(s),a=Um(i,s,a,l,void 0,d),l=Bm(),i!==null&&!St?(Vm(i,s,d),ki(i,s,d)):(ze&&l&&ym(s),s.flags|=1,Bt(i,s,a,d),s.child)}function v2(i,s,a,l,d,p){return dr(s),s.updateQueue=null,a=bw(s,l,a,d),_w(i),l=Bm(),i!==null&&!St?(Vm(i,s,p),ki(i,s,p)):(ze&&l&&ym(s),s.flags|=1,Bt(i,s,a,p),s.child)}function y2(i,s,a,l,d){if(dr(s),s.stateNode===null){var p=Sa,y=a.contextType;typeof y=="object"&&y!==null&&(p=Ut(y)),p=new a(l,p),s.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=ev,s.stateNode=p,p._reactInternals=s,p=s.stateNode,p.props=l,p.state=s.memoizedState,p.refs={},Om(s),y=a.contextType,p.context=typeof y=="object"&&y!==null?Ut(y):Sa,p.state=s.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(Wm(s,a,y,l),p.state=s.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(y=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),y!==p.state&&ev.enqueueReplaceState(p,p.state,null),Al(s,l,p,d),wl(),p.state=s.memoizedState),typeof p.componentDidMount=="function"&&(s.flags|=4194308),l=!0}else if(i===null){p=s.stateNode;var S=s.memoizedProps,w=yr(a,S);p.props=w;var k=p.context,G=a.contextType;y=Sa,typeof G=="object"&&G!==null&&(y=Ut(G));var Z=a.getDerivedStateFromProps;G=typeof Z=="function"||typeof p.getSnapshotBeforeUpdate=="function",S=s.pendingProps!==S,G||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S||k!==y)&&s2(s,p,l,y),ds=!1;var z=s.memoizedState;p.state=z,Al(s,l,p,d),wl(),k=s.memoizedState,S||z!==k||ds?(typeof Z=="function"&&(Wm(s,a,Z,l),k=s.memoizedState),(w=ds||i2(s,a,w,l,z,k,y))?(G||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(s.flags|=4194308)):(typeof p.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=l,s.memoizedState=k),p.props=l,p.state=k,p.context=y,l=w):(typeof p.componentDidMount=="function"&&(s.flags|=4194308),l=!1)}else{p=s.stateNode,Rm(i,s),y=s.memoizedProps,G=yr(a,y),p.props=G,Z=s.pendingProps,z=p.context,k=a.contextType,w=Sa,typeof k=="object"&&k!==null&&(w=Ut(k)),S=a.getDerivedStateFromProps,(k=typeof S=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(y!==Z||z!==w)&&s2(s,p,l,w),ds=!1,z=s.memoizedState,p.state=z,Al(s,l,p,d),wl();var V=s.memoizedState;y!==Z||z!==V||ds||i!==null&&i.dependencies!==null&&ef(i.dependencies)?(typeof S=="function"&&(Wm(s,a,S,l),V=s.memoizedState),(G=ds||i2(s,a,G,l,z,V,w)||i!==null&&i.dependencies!==null&&ef(i.dependencies))?(k||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(l,V,w),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(l,V,w)),typeof p.componentDidUpdate=="function"&&(s.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof p.componentDidUpdate!="function"||y===i.memoizedProps&&z===i.memoizedState||(s.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===i.memoizedProps&&z===i.memoizedState||(s.flags|=1024),s.memoizedProps=l,s.memoizedState=V),p.props=l,p.state=V,p.context=w,l=G):(typeof p.componentDidUpdate!="function"||y===i.memoizedProps&&z===i.memoizedState||(s.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===i.memoizedProps&&z===i.memoizedState||(s.flags|=1024),l=!1)}return p=l,bf(i,s),l=(s.flags&128)!==0,p||l?(p=s.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:p.render(),s.flags|=1,i!==null&&l?(s.child=mr(s,i.child,null,d),s.child=mr(s,null,a,d)):Bt(i,s,a,d),s.memoizedState=p.state,i=s.child):i=ki(i,s,d),i}function _2(i,s,a,l){return cr(),s.flags|=256,Bt(i,s,a,l),s.child}var sv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rv(i){return{baseLanes:i,cachePool:lw()}}function av(i,s,a){return i=i!==null?i.childLanes&~a:0,s&&(i|=En),i}function b2(i,s,a){var l=s.pendingProps,d=!1,p=(s.flags&128)!==0,y;if((y=p)||(y=i!==null&&i.memoizedState===null?!1:(vt.current&2)!==0),y&&(d=!0,s.flags&=-129),y=(s.flags&32)!==0,s.flags&=-33,i===null){if(ze){if(d?gs(s):ms(),(i=st)?(i=MA(i,jn),i=i!==null&&i.data!=="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:ls!==null?{id:ni,overflow:ii}:null,retryLane:536870912,hydrationErrors:null},a=WT(i),a.return=s,s.child=a,jt=s,st=null)):i=null,i===null)throw cs(s);return Pv(i)?s.lanes=32:s.lanes=536870912,null}var S=l.children;return l=l.fallback,d?(ms(),d=s.mode,S=Sf({mode:"hidden",children:S},d),l=ur(l,d,a,null),S.return=s,l.return=s,S.sibling=l,s.child=S,l=s.child,l.memoizedState=rv(a),l.childLanes=av(i,y,a),s.memoizedState=sv,Dl(null,l)):(gs(s),ov(s,S))}var w=i.memoizedState;if(w!==null&&(S=w.dehydrated,S!==null)){if(p)s.flags&256?(gs(s),s.flags&=-257,s=lv(i,s,a)):s.memoizedState!==null?(ms(),s.child=i.child,s.flags|=128,s=null):(ms(),S=l.fallback,d=s.mode,l=Sf({mode:"visible",children:l.children},d),S=ur(S,d,a,null),S.flags|=2,l.return=s,S.return=s,l.sibling=S,s.child=l,mr(s,i.child,null,a),l=s.child,l.memoizedState=rv(a),l.childLanes=av(i,y,a),s.memoizedState=sv,s=Dl(null,l));else if(gs(s),Pv(S)){if(y=S.nextSibling&&S.nextSibling.dataset,y)var k=y.dgst;y=k,l=Error(r(419)),l.stack="",l.digest=y,_l({value:l,source:null,stack:null}),s=lv(i,s,a)}else if(St||wa(i,s,a,!1),y=(a&i.childLanes)!==0,St||y){if(y=Ke,y!==null&&(l=aT(y,a),l!==0&&l!==w.retryLane))throw w.retryLane=l,lr(i,l),rn(y,i,l),nv;qv(S)||Rf(),s=lv(i,s,a)}else qv(S)?(s.flags|=192,s.child=i.child,s=null):(i=w.treeContext,st=Bn(S.nextSibling),jt=s,ze=!0,us=null,jn=!1,i!==null&&nw(s,i),s=ov(s,l.children),s.flags|=4096);return s}return d?(ms(),S=l.fallback,d=s.mode,w=i.child,k=w.sibling,l=Ai(w,{mode:"hidden",children:l.children}),l.subtreeFlags=w.subtreeFlags&65011712,k!==null?S=Ai(k,S):(S=ur(S,d,a,null),S.flags|=2),S.return=s,l.return=s,l.sibling=S,s.child=l,Dl(null,l),l=s.child,S=i.child.memoizedState,S===null?S=rv(a):(d=S.cachePool,d!==null?(w=_t._currentValue,d=d.parent!==w?{parent:w,pool:w}:d):d=lw(),S={baseLanes:S.baseLanes|a,cachePool:d}),l.memoizedState=S,l.childLanes=av(i,y,a),s.memoizedState=sv,Dl(i.child,l)):(gs(s),a=i.child,i=a.sibling,a=Ai(a,{mode:"visible",children:l.children}),a.return=s,a.sibling=null,i!==null&&(y=s.deletions,y===null?(s.deletions=[i],s.flags|=16):y.push(i)),s.child=a,s.memoizedState=null,a)}function ov(i,s){return s=Sf({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function Sf(i,s){return i=yn(22,i,null,s),i.lanes=0,i}function lv(i,s,a){return mr(s,i.child,null,a),i=ov(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function S2(i,s,a){i.lanes|=s;var l=i.alternate;l!==null&&(l.lanes|=s),xm(i.return,s,a)}function uv(i,s,a,l,d,p){var y=i.memoizedState;y===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:d,treeForkCount:p}:(y.isBackwards=s,y.rendering=null,y.renderingStartTime=0,y.last=l,y.tail=a,y.tailMode=d,y.treeForkCount=p)}function E2(i,s,a){var l=s.pendingProps,d=l.revealOrder,p=l.tail;l=l.children;var y=vt.current,S=(y&2)!==0;if(S?(y=y&1|2,s.flags|=128):y&=1,W(vt,y),Bt(i,s,l,a),l=ze?yl:0,!S&&i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&S2(i,a,s);else if(i.tag===19)S2(i,a,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(d){case"forwards":for(a=s.child,d=null;a!==null;)i=a.alternate,i!==null&&uf(i)===null&&(d=a),a=a.sibling;a=d,a===null?(d=s.child,s.child=null):(d=a.sibling,a.sibling=null),uv(s,!1,d,a,p,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=s.child,s.child=null;d!==null;){if(i=d.alternate,i!==null&&uf(i)===null){s.child=d;break}i=d.sibling,d.sibling=a,a=d,d=i}uv(s,!0,a,null,p,l);break;case"together":uv(s,!1,null,null,void 0,l);break;default:s.memoizedState=null}return s.child}function ki(i,s,a){if(i!==null&&(s.dependencies=i.dependencies),_s|=s.lanes,(a&s.childLanes)===0)if(i!==null){if(wa(i,s,a,!1),(a&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,a=Ai(i,i.pendingProps),s.child=a,a.return=s;i.sibling!==null;)i=i.sibling,a=a.sibling=Ai(i,i.pendingProps),a.return=s;a.sibling=null}return s.child}function cv(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&ef(i)))}function eB(i,s,a){switch(s.tag){case 3:je(s,s.stateNode.containerInfo),fs(s,_t,i.memoizedState.cache),cr();break;case 27:case 5:it(s);break;case 4:je(s,s.stateNode.containerInfo);break;case 10:fs(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,zm(s),null;break;case 13:var l=s.memoizedState;if(l!==null)return l.dehydrated!==null?(gs(s),s.flags|=128,null):(a&s.child.childLanes)!==0?b2(i,s,a):(gs(s),i=ki(i,s,a),i!==null?i.sibling:null);gs(s);break;case 19:var d=(i.flags&128)!==0;if(l=(a&s.childLanes)!==0,l||(wa(i,s,a,!1),l=(a&s.childLanes)!==0),d){if(l)return E2(i,s,a);s.flags|=128}if(d=s.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),W(vt,vt.current),l)break;return null;case 22:return s.lanes=0,p2(i,s,a,s.pendingProps);case 24:fs(s,_t,i.memoizedState.cache)}return ki(i,s,a)}function x2(i,s,a){if(i!==null)if(i.memoizedProps!==s.pendingProps)St=!0;else{if(!cv(i,a)&&(s.flags&128)===0)return St=!1,eB(i,s,a);St=(i.flags&131072)!==0}else St=!1,ze&&(s.flags&1048576)!==0&&tw(s,yl,s.index);switch(s.lanes=0,s.tag){case 16:e:{var l=s.pendingProps;if(i=pr(s.elementType),s.type=i,typeof i=="function")gm(i)?(l=yr(i,l),s.tag=1,s=y2(null,s,i,l,a)):(s.tag=0,s=iv(null,s,i,l,a));else{if(i!=null){var d=i.$$typeof;if(d===K){s.tag=11,s=f2(null,s,i,l,a);break e}else if(d===P){s.tag=14,s=d2(null,s,i,l,a);break e}}throw s=ye(i)||i,Error(r(306,s,""))}}return s;case 0:return iv(i,s,s.type,s.pendingProps,a);case 1:return l=s.type,d=yr(l,s.pendingProps),y2(i,s,l,d,a);case 3:e:{if(je(s,s.stateNode.containerInfo),i===null)throw Error(r(387));l=s.pendingProps;var p=s.memoizedState;d=p.element,Rm(i,s),Al(s,l,null,a);var y=s.memoizedState;if(l=y.cache,fs(s,_t,l),l!==p.cache&&Tm(s,[_t],a,!0),wl(),l=y.element,p.isDehydrated)if(p={element:l,isDehydrated:!1,cache:y.cache},s.updateQueue.baseState=p,s.memoizedState=p,s.flags&256){s=_2(i,s,l,a);break e}else if(l!==d){d=Ln(Error(r(424)),s),_l(d),s=_2(i,s,l,a);break e}else for(i=s.stateNode.containerInfo,i.nodeType===9?i=i.body:i=i.nodeName==="HTML"?i.ownerDocument.body:i,st=Bn(i.firstChild),jt=s,ze=!0,us=null,jn=!0,a=pw(s,null,l,a),s.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(cr(),l===d){s=ki(i,s,a);break e}Bt(i,s,l,a)}s=s.child}return s;case 26:return bf(i,s),i===null?(a=NA(s.type,null,s.pendingProps,null))?s.memoizedState=a:ze||(a=s.type,i=s.pendingProps,l=Uf(ge.current).createElement(a),l[zt]=s,l[Jt]=i,Vt(l,a,i),Ct(l),s.stateNode=l):s.memoizedState=NA(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return it(s),i===null&&ze&&(l=s.stateNode=DA(s.type,s.pendingProps,ge.current),jt=s,jn=!0,d=st,Ts(s.type)?(Hv=d,st=Bn(l.firstChild)):st=d),Bt(i,s,s.pendingProps.children,a),bf(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&ze&&((d=l=st)&&(l=RB(l,s.type,s.pendingProps,jn),l!==null?(s.stateNode=l,jt=s,st=Bn(l.firstChild),jn=!1,d=!0):d=!1),d||cs(s)),it(s),d=s.type,p=s.pendingProps,y=i!==null?i.memoizedProps:null,l=p.children,Bv(d,p)?l=null:y!==null&&Bv(d,y)&&(s.flags|=32),s.memoizedState!==null&&(d=Um(i,s,$6,null,null,a),Gl._currentValue=d),bf(i,s),Bt(i,s,l,a),s.child;case 6:return i===null&&ze&&((i=a=st)&&(a=DB(a,s.pendingProps,jn),a!==null?(s.stateNode=a,jt=s,st=null,i=!0):i=!1),i||cs(s)),null;case 13:return b2(i,s,a);case 4:return je(s,s.stateNode.containerInfo),l=s.pendingProps,i===null?s.child=mr(s,null,l,a):Bt(i,s,l,a),s.child;case 11:return f2(i,s,s.type,s.pendingProps,a);case 7:return Bt(i,s,s.pendingProps,a),s.child;case 8:return Bt(i,s,s.pendingProps.children,a),s.child;case 12:return Bt(i,s,s.pendingProps.children,a),s.child;case 10:return l=s.pendingProps,fs(s,s.type,l.value),Bt(i,s,l.children,a),s.child;case 9:return d=s.type._context,l=s.pendingProps.children,dr(s),d=Ut(d),l=l(d),s.flags|=1,Bt(i,s,l,a),s.child;case 14:return d2(i,s,s.type,s.pendingProps,a);case 15:return h2(i,s,s.type,s.pendingProps,a);case 19:return E2(i,s,a);case 31:return W6(i,s,a);case 22:return p2(i,s,a,s.pendingProps);case 24:return dr(s),l=Ut(_t),i===null?(d=Cm(),d===null&&(d=Ke,p=wm(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=a),d=p),s.memoizedState={parent:l,cache:d},Om(s),fs(s,_t,d)):((i.lanes&a)!==0&&(Rm(i,s),Al(s,null,null,a),wl()),d=i.memoizedState,p=s.memoizedState,d.parent!==l?(d={parent:l,cache:l},s.memoizedState=d,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=d),fs(s,_t,l)):(l=p.cache,fs(s,_t,l),l!==d.cache&&Tm(s,[_t],a,!0))),Bt(i,s,s.pendingProps.children,a),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function Li(i){i.flags|=4}function fv(i,s,a,l,d){if((s=(i.mode&32)!==0)&&(s=!1),s){if(i.flags|=16777216,(d&335544128)===d)if(i.stateNode.complete)i.flags|=8192;else if(Z2())i.flags|=8192;else throw gr=rf,Mm}else i.flags&=-16777217}function T2(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!VA(s))if(Z2())i.flags|=8192;else throw gr=rf,Mm}function Ef(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?iT():536870912,i.lanes|=s,Ua|=s)}function kl(i,s){if(!ze)switch(i.tailMode){case"hidden":s=i.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?i.tail=null:a.sibling=null;break;case"collapsed":a=i.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:l.sibling=null}}function rt(i){var s=i.alternate!==null&&i.alternate.child===i.child,a=0,l=0;if(s)for(var d=i.child;d!==null;)a|=d.lanes|d.childLanes,l|=d.subtreeFlags&65011712,l|=d.flags&65011712,d.return=i,d=d.sibling;else for(d=i.child;d!==null;)a|=d.lanes|d.childLanes,l|=d.subtreeFlags,l|=d.flags,d.return=i,d=d.sibling;return i.subtreeFlags|=l,i.childLanes=a,s}function tB(i,s,a){var l=s.pendingProps;switch(_m(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(s),null;case 1:return rt(s),null;case 3:return a=s.stateNode,l=null,i!==null&&(l=i.memoizedState.cache),s.memoizedState.cache!==l&&(s.flags|=2048),Oi(_t),Ue(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(i===null||i.child===null)&&(Ta(s)?Li(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Sm())),rt(s),null;case 26:var d=s.type,p=s.memoizedState;return i===null?(Li(s),p!==null?(rt(s),T2(s,p)):(rt(s),fv(s,d,null,l,a))):p?p!==i.memoizedState?(Li(s),rt(s),T2(s,p)):(rt(s),s.flags&=-16777217):(i=i.memoizedProps,i!==l&&Li(s),rt(s),fv(s,d,i,l,a)),null;case 27:if(Ft(s),a=ge.current,d=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==l&&Li(s);else{if(!l){if(s.stateNode===null)throw Error(r(166));return rt(s),null}i=H.current,Ta(s)?iw(s):(i=DA(d,l,a),s.stateNode=i,Li(s))}return rt(s),null;case 5:if(Ft(s),d=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==l&&Li(s);else{if(!l){if(s.stateNode===null)throw Error(r(166));return rt(s),null}if(p=H.current,Ta(s))iw(s);else{var y=Uf(ge.current);switch(p){case 1:p=y.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:p=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":p=y.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":p=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":p=y.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof l.is=="string"?y.createElement("select",{is:l.is}):y.createElement("select"),l.multiple?p.multiple=!0:l.size&&(p.size=l.size);break;default:p=typeof l.is=="string"?y.createElement(d,{is:l.is}):y.createElement(d)}}p[zt]=s,p[Jt]=l;e:for(y=s.child;y!==null;){if(y.tag===5||y.tag===6)p.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===s)break e;for(;y.sibling===null;){if(y.return===null||y.return===s)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}s.stateNode=p;e:switch(Vt(p,d,l),d){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Li(s)}}return rt(s),fv(s,s.type,i===null?null:i.memoizedProps,s.pendingProps,a),null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==l&&Li(s);else{if(typeof l!="string"&&s.stateNode===null)throw Error(r(166));if(i=ge.current,Ta(s)){if(i=s.stateNode,a=s.memoizedProps,l=null,d=jt,d!==null)switch(d.tag){case 27:case 5:l=d.memoizedProps}i[zt]=s,i=!!(i.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||bA(i.nodeValue,a)),i||cs(s,!0)}else i=Uf(i).createTextNode(l),i[zt]=s,s.stateNode=i}return rt(s),null;case 31:if(a=s.memoizedState,i===null||i.memoizedState!==null){if(l=Ta(s),a!==null){if(i===null){if(!l)throw Error(r(318));if(i=s.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[zt]=s}else cr(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;rt(s),i=!1}else a=Sm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=a),i=!0;if(!i)return s.flags&256?(bn(s),s):(bn(s),null);if((s.flags&128)!==0)throw Error(r(558))}return rt(s),null;case 13:if(l=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(d=Ta(s),l!==null&&l.dehydrated!==null){if(i===null){if(!d)throw Error(r(318));if(d=s.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[zt]=s}else cr(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;rt(s),d=!1}else d=Sm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=d),d=!0;if(!d)return s.flags&256?(bn(s),s):(bn(s),null)}return bn(s),(s.flags&128)!==0?(s.lanes=a,s):(a=l!==null,i=i!==null&&i.memoizedState!==null,a&&(l=s.child,d=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(d=l.alternate.memoizedState.cachePool.pool),p=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(p=l.memoizedState.cachePool.pool),p!==d&&(l.flags|=2048)),a!==i&&a&&(s.child.flags|=8192),Ef(s,s.updateQueue),rt(s),null);case 4:return Ue(),i===null&&Lv(s.stateNode.containerInfo),rt(s),null;case 10:return Oi(s.type),rt(s),null;case 19:if(j(vt),l=s.memoizedState,l===null)return rt(s),null;if(d=(s.flags&128)!==0,p=l.rendering,p===null)if(d)kl(l,!1);else{if(gt!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(p=uf(i),p!==null){for(s.flags|=128,kl(l,!1),i=p.updateQueue,s.updateQueue=i,Ef(s,i),s.subtreeFlags=0,i=a,a=s.child;a!==null;)JT(a,i),a=a.sibling;return W(vt,vt.current&1|2),ze&&Ci(s,l.treeForkCount),s.child}i=i.sibling}l.tail!==null&&pn()>Cf&&(s.flags|=128,d=!0,kl(l,!1),s.lanes=4194304)}else{if(!d)if(i=uf(p),i!==null){if(s.flags|=128,d=!0,i=i.updateQueue,s.updateQueue=i,Ef(s,i),kl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!p.alternate&&!ze)return rt(s),null}else 2*pn()-l.renderingStartTime>Cf&&a!==536870912&&(s.flags|=128,d=!0,kl(l,!1),s.lanes=4194304);l.isBackwards?(p.sibling=s.child,s.child=p):(i=l.last,i!==null?i.sibling=p:s.child=p,l.last=p)}return l.tail!==null?(i=l.tail,l.rendering=i,l.tail=i.sibling,l.renderingStartTime=pn(),i.sibling=null,a=vt.current,W(vt,d?a&1|2:a&1),ze&&Ci(s,l.treeForkCount),i):(rt(s),null);case 22:case 23:return bn(s),Nm(),l=s.memoizedState!==null,i!==null?i.memoizedState!==null!==l&&(s.flags|=8192):l&&(s.flags|=8192),l?(a&536870912)!==0&&(s.flags&128)===0&&(rt(s),s.subtreeFlags&6&&(s.flags|=8192)):rt(s),a=s.updateQueue,a!==null&&Ef(s,a.retryQueue),a=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),l=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(l=s.memoizedState.cachePool.pool),l!==a&&(s.flags|=2048),i!==null&&j(hr),null;case 24:return a=null,i!==null&&(a=i.memoizedState.cache),s.memoizedState.cache!==a&&(s.flags|=2048),Oi(_t),rt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function nB(i,s){switch(_m(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Oi(_t),Ue(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return Ft(s),null;case 31:if(s.memoizedState!==null){if(bn(s),s.alternate===null)throw Error(r(340));cr()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 13:if(bn(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));cr()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return j(vt),null;case 4:return Ue(),null;case 10:return Oi(s.type),null;case 22:case 23:return bn(s),Nm(),i!==null&&j(hr),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return Oi(_t),null;case 25:return null;default:return null}}function w2(i,s){switch(_m(s),s.tag){case 3:Oi(_t),Ue();break;case 26:case 27:case 5:Ft(s);break;case 4:Ue();break;case 31:s.memoizedState!==null&&bn(s);break;case 13:bn(s);break;case 19:j(vt);break;case 10:Oi(s.type);break;case 22:case 23:bn(s),Nm(),i!==null&&j(hr);break;case 24:Oi(_t)}}function Ll(i,s){try{var a=s.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var d=l.next;a=d;do{if((a.tag&i)===i){l=void 0;var p=a.create,y=a.inst;l=p(),y.destroy=l}a=a.next}while(a!==d)}}catch(S){Pe(s,s.return,S)}}function vs(i,s,a){try{var l=s.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var p=d.next;l=p;do{if((l.tag&i)===i){var y=l.inst,S=y.destroy;if(S!==void 0){y.destroy=void 0,d=s;var w=a,k=S;try{k()}catch(G){Pe(d,w,G)}}}l=l.next}while(l!==p)}}catch(G){Pe(s,s.return,G)}}function A2(i){var s=i.updateQueue;if(s!==null){var a=i.stateNode;try{mw(s,a)}catch(l){Pe(i,i.return,l)}}}function C2(i,s,a){a.props=yr(i.type,i.memoizedProps),a.state=i.memoizedState;try{a.componentWillUnmount()}catch(l){Pe(i,s,l)}}function Nl(i,s){try{var a=i.ref;if(a!==null){switch(i.tag){case 26:case 27:case 5:var l=i.stateNode;break;case 30:l=i.stateNode;break;default:l=i.stateNode}typeof a=="function"?i.refCleanup=a(l):a.current=l}}catch(d){Pe(i,s,d)}}function si(i,s){var a=i.ref,l=i.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(d){Pe(i,s,d)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){Pe(i,s,d)}else a.current=null}function M2(i){var s=i.type,a=i.memoizedProps,l=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(d){Pe(i,i.return,d)}}function dv(i,s,a){try{var l=i.stateNode;TB(l,i.type,a,s),l[Jt]=s}catch(d){Pe(i,i.return,d)}}function O2(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Ts(i.type)||i.tag===4}function hv(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||O2(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Ts(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function pv(i,s,a){var l=i.tag;if(l===5||l===6)i=i.stateNode,s?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(i,s):(s=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,s.appendChild(i),a=a._reactRootContainer,a!=null||s.onclick!==null||(s.onclick=Ti));else if(l!==4&&(l===27&&Ts(i.type)&&(a=i.stateNode,s=null),i=i.child,i!==null))for(pv(i,s,a),i=i.sibling;i!==null;)pv(i,s,a),i=i.sibling}function xf(i,s,a){var l=i.tag;if(l===5||l===6)i=i.stateNode,s?a.insertBefore(i,s):a.appendChild(i);else if(l!==4&&(l===27&&Ts(i.type)&&(a=i.stateNode),i=i.child,i!==null))for(xf(i,s,a),i=i.sibling;i!==null;)xf(i,s,a),i=i.sibling}function R2(i){var s=i.stateNode,a=i.memoizedProps;try{for(var l=i.type,d=s.attributes;d.length;)s.removeAttributeNode(d[0]);Vt(s,l,a),s[zt]=i,s[Jt]=a}catch(p){Pe(i,i.return,p)}}var Ni=!1,Et=!1,gv=!1,D2=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function iB(i,s){if(i=i.containerInfo,jv=Ff,i=HT(i),lm(i)){if("selectionStart"in i)var a={start:i.selectionStart,end:i.selectionEnd};else e:{a=(a=i.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var d=l.anchorOffset,p=l.focusNode;l=l.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var y=0,S=-1,w=-1,k=0,G=0,Z=i,z=null;t:for(;;){for(var V;Z!==a||d!==0&&Z.nodeType!==3||(S=y+d),Z!==p||l!==0&&Z.nodeType!==3||(w=y+l),Z.nodeType===3&&(y+=Z.nodeValue.length),(V=Z.firstChild)!==null;)z=Z,Z=V;for(;;){if(Z===i)break t;if(z===a&&++k===d&&(S=y),z===p&&++G===l&&(w=y),(V=Z.nextSibling)!==null)break;Z=z,z=Z.parentNode}Z=V}a=S===-1||w===-1?null:{start:S,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(Uv={focusedElem:i,selectionRange:a},Ff=!1,Mt=s;Mt!==null;)if(s=Mt,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Mt=i;else for(;Mt!==null;){switch(s=Mt,p=s.alternate,i=s.flags,s.tag){case 0:if((i&4)!==0&&(i=s.updateQueue,i=i!==null?i.events:null,i!==null))for(a=0;a<i.length;a++)d=i[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&p!==null){i=void 0,a=s,d=p.memoizedProps,p=p.memoizedState,l=a.stateNode;try{var ce=yr(a.type,d);i=l.getSnapshotBeforeUpdate(ce,p),l.__reactInternalSnapshotBeforeUpdate=i}catch(_e){Pe(a,a.return,_e)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,a=i.nodeType,a===9)Iv(i);else if(a===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Iv(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=s.sibling,i!==null){i.return=s.return,Mt=i;break}Mt=s.return}}function k2(i,s,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ji(i,a),l&4&&Ll(5,a);break;case 1:if(ji(i,a),l&4)if(i=a.stateNode,s===null)try{i.componentDidMount()}catch(y){Pe(a,a.return,y)}else{var d=yr(a.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(d,s,i.__reactInternalSnapshotBeforeUpdate)}catch(y){Pe(a,a.return,y)}}l&64&&A2(a),l&512&&Nl(a,a.return);break;case 3:if(ji(i,a),l&64&&(i=a.updateQueue,i!==null)){if(s=null,a.child!==null)switch(a.child.tag){case 27:case 5:s=a.child.stateNode;break;case 1:s=a.child.stateNode}try{mw(i,s)}catch(y){Pe(a,a.return,y)}}break;case 27:s===null&&l&4&&R2(a);case 26:case 5:ji(i,a),s===null&&l&4&&M2(a),l&512&&Nl(a,a.return);break;case 12:ji(i,a);break;case 31:ji(i,a),l&4&&z2(i,a);break;case 13:ji(i,a),l&4&&j2(i,a),l&64&&(i=a.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(a=dB.bind(null,a),kB(i,a))));break;case 22:if(l=a.memoizedState!==null||Ni,!l){s=s!==null&&s.memoizedState!==null||Et,d=Ni;var p=Et;Ni=l,(Et=s)&&!p?Ui(i,a,(a.subtreeFlags&8772)!==0):ji(i,a),Ni=d,Et=p}break;case 30:break;default:ji(i,a)}}function L2(i){var s=i.alternate;s!==null&&(i.alternate=null,L2(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&$g(s)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var lt=null,en=!1;function zi(i,s,a){for(a=a.child;a!==null;)N2(i,s,a),a=a.sibling}function N2(i,s,a){if(gn&&typeof gn.onCommitFiberUnmount=="function")try{gn.onCommitFiberUnmount(sl,a)}catch{}switch(a.tag){case 26:Et||si(a,s),zi(i,s,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Et||si(a,s);var l=lt,d=en;Ts(a.type)&&(lt=a.stateNode,en=!1),zi(i,s,a),Hl(a.stateNode),lt=l,en=d;break;case 5:Et||si(a,s);case 6:if(l=lt,d=en,lt=null,zi(i,s,a),lt=l,en=d,lt!==null)if(en)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(a.stateNode)}catch(p){Pe(a,s,p)}else try{lt.removeChild(a.stateNode)}catch(p){Pe(a,s,p)}break;case 18:lt!==null&&(en?(i=lt,AA(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.stateNode),$a(i)):AA(lt,a.stateNode));break;case 4:l=lt,d=en,lt=a.stateNode.containerInfo,en=!0,zi(i,s,a),lt=l,en=d;break;case 0:case 11:case 14:case 15:vs(2,a,s),Et||vs(4,a,s),zi(i,s,a);break;case 1:Et||(si(a,s),l=a.stateNode,typeof l.componentWillUnmount=="function"&&C2(a,s,l)),zi(i,s,a);break;case 21:zi(i,s,a);break;case 22:Et=(l=Et)||a.memoizedState!==null,zi(i,s,a),Et=l;break;default:zi(i,s,a)}}function z2(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{$a(i)}catch(a){Pe(s,s.return,a)}}}function j2(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{$a(i)}catch(a){Pe(s,s.return,a)}}function sB(i){switch(i.tag){case 31:case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new D2),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new D2),s;default:throw Error(r(435,i.tag))}}function Tf(i,s){var a=sB(i);s.forEach(function(l){if(!a.has(l)){a.add(l);var d=hB.bind(null,i,l);l.then(d,d)}})}function tn(i,s){var a=s.deletions;if(a!==null)for(var l=0;l<a.length;l++){var d=a[l],p=i,y=s,S=y;e:for(;S!==null;){switch(S.tag){case 27:if(Ts(S.type)){lt=S.stateNode,en=!1;break e}break;case 5:lt=S.stateNode,en=!1;break e;case 3:case 4:lt=S.stateNode.containerInfo,en=!0;break e}S=S.return}if(lt===null)throw Error(r(160));N2(p,y,d),lt=null,en=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)U2(s,i),s=s.sibling}var Gn=null;function U2(i,s){var a=i.alternate,l=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:tn(s,i),nn(i),l&4&&(vs(3,i,i.return),Ll(3,i),vs(5,i,i.return));break;case 1:tn(s,i),nn(i),l&512&&(Et||a===null||si(a,a.return)),l&64&&Ni&&(i=i.updateQueue,i!==null&&(l=i.callbacks,l!==null&&(a=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var d=Gn;if(tn(s,i),nn(i),l&512&&(Et||a===null||si(a,a.return)),l&4){var p=a!==null?a.memoizedState:null;if(l=i.memoizedState,a===null)if(l===null)if(i.stateNode===null){e:{l=i.type,a=i.memoizedProps,d=d.ownerDocument||d;t:switch(l){case"title":p=d.getElementsByTagName("title")[0],(!p||p[ol]||p[zt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(l),d.head.insertBefore(p,d.querySelector("head > title"))),Vt(p,l,a),p[zt]=i,Ct(p),l=p;break e;case"link":var y=UA("link","href",d).get(l+(a.href||""));if(y){for(var S=0;S<y.length;S++)if(p=y[S],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(S,1);break t}}p=d.createElement(l),Vt(p,l,a),d.head.appendChild(p);break;case"meta":if(y=UA("meta","content",d).get(l+(a.content||""))){for(S=0;S<y.length;S++)if(p=y[S],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(S,1);break t}}p=d.createElement(l),Vt(p,l,a),d.head.appendChild(p);break;default:throw Error(r(468,l))}p[zt]=i,Ct(p),l=p}i.stateNode=l}else BA(d,i.type,i.stateNode);else i.stateNode=jA(d,l,i.memoizedProps);else p!==l?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,l===null?BA(d,i.type,i.stateNode):jA(d,l,i.memoizedProps)):l===null&&i.stateNode!==null&&dv(i,i.memoizedProps,a.memoizedProps)}break;case 27:tn(s,i),nn(i),l&512&&(Et||a===null||si(a,a.return)),a!==null&&l&4&&dv(i,i.memoizedProps,a.memoizedProps);break;case 5:if(tn(s,i),nn(i),l&512&&(Et||a===null||si(a,a.return)),i.flags&32){d=i.stateNode;try{pa(d,"")}catch(ce){Pe(i,i.return,ce)}}l&4&&i.stateNode!=null&&(d=i.memoizedProps,dv(i,d,a!==null?a.memoizedProps:d)),l&1024&&(gv=!0);break;case 6:if(tn(s,i),nn(i),l&4){if(i.stateNode===null)throw Error(r(162));l=i.memoizedProps,a=i.stateNode;try{a.nodeValue=l}catch(ce){Pe(i,i.return,ce)}}break;case 3:if(If=null,d=Gn,Gn=Bf(s.containerInfo),tn(s,i),Gn=d,nn(i),l&4&&a!==null&&a.memoizedState.isDehydrated)try{$a(s.containerInfo)}catch(ce){Pe(i,i.return,ce)}gv&&(gv=!1,B2(i));break;case 4:l=Gn,Gn=Bf(i.stateNode.containerInfo),tn(s,i),nn(i),Gn=l;break;case 12:tn(s,i),nn(i);break;case 31:tn(s,i),nn(i),l&4&&(l=i.updateQueue,l!==null&&(i.updateQueue=null,Tf(i,l)));break;case 13:tn(s,i),nn(i),i.child.flags&8192&&i.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Af=pn()),l&4&&(l=i.updateQueue,l!==null&&(i.updateQueue=null,Tf(i,l)));break;case 22:d=i.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,k=Ni,G=Et;if(Ni=k||d,Et=G||w,tn(s,i),Et=G,Ni=k,nn(i),l&8192)e:for(s=i.stateNode,s._visibility=d?s._visibility&-2:s._visibility|1,d&&(a===null||w||Ni||Et||_r(i)),a=null,s=i;;){if(s.tag===5||s.tag===26){if(a===null){w=a=s;try{if(p=w.stateNode,d)y=p.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{S=w.stateNode;var Z=w.memoizedProps.style,z=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;S.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(ce){Pe(w,w.return,ce)}}}else if(s.tag===6){if(a===null){w=s;try{w.stateNode.nodeValue=d?"":w.memoizedProps}catch(ce){Pe(w,w.return,ce)}}}else if(s.tag===18){if(a===null){w=s;try{var V=w.stateNode;d?CA(V,!0):CA(w.stateNode,!1)}catch(ce){Pe(w,w.return,ce)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;a===s&&(a=null),s=s.return}a===s&&(a=null),s.sibling.return=s.return,s=s.sibling}l&4&&(l=i.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Tf(i,a))));break;case 19:tn(s,i),nn(i),l&4&&(l=i.updateQueue,l!==null&&(i.updateQueue=null,Tf(i,l)));break;case 30:break;case 21:break;default:tn(s,i),nn(i)}}function nn(i){var s=i.flags;if(s&2){try{for(var a,l=i.return;l!==null;){if(O2(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var d=a.stateNode,p=hv(i);xf(i,p,d);break;case 5:var y=a.stateNode;a.flags&32&&(pa(y,""),a.flags&=-33);var S=hv(i);xf(i,S,y);break;case 3:case 4:var w=a.stateNode.containerInfo,k=hv(i);pv(i,k,w);break;default:throw Error(r(161))}}catch(G){Pe(i,i.return,G)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function B2(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;B2(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function ji(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)k2(i,s.alternate,s),s=s.sibling}function _r(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:vs(4,s,s.return),_r(s);break;case 1:si(s,s.return);var a=s.stateNode;typeof a.componentWillUnmount=="function"&&C2(s,s.return,a),_r(s);break;case 27:Hl(s.stateNode);case 26:case 5:si(s,s.return),_r(s);break;case 22:s.memoizedState===null&&_r(s);break;case 30:_r(s);break;default:_r(s)}i=i.sibling}}function Ui(i,s,a){for(a=a&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var l=s.alternate,d=i,p=s,y=p.flags;switch(p.tag){case 0:case 11:case 15:Ui(d,p,a),Ll(4,p);break;case 1:if(Ui(d,p,a),l=p,d=l.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(k){Pe(l,l.return,k)}if(l=p,d=l.updateQueue,d!==null){var S=l.stateNode;try{var w=d.shared.hiddenCallbacks;if(w!==null)for(d.shared.hiddenCallbacks=null,d=0;d<w.length;d++)gw(w[d],S)}catch(k){Pe(l,l.return,k)}}a&&y&64&&A2(p),Nl(p,p.return);break;case 27:R2(p);case 26:case 5:Ui(d,p,a),a&&l===null&&y&4&&M2(p),Nl(p,p.return);break;case 12:Ui(d,p,a);break;case 31:Ui(d,p,a),a&&y&4&&z2(d,p);break;case 13:Ui(d,p,a),a&&y&4&&j2(d,p);break;case 22:p.memoizedState===null&&Ui(d,p,a),Nl(p,p.return);break;case 30:break;default:Ui(d,p,a)}s=s.sibling}}function mv(i,s){var a=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==a&&(i!=null&&i.refCount++,a!=null&&bl(a))}function vv(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&bl(i))}function Yn(i,s,a,l){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)V2(i,s,a,l),s=s.sibling}function V2(i,s,a,l){var d=s.flags;switch(s.tag){case 0:case 11:case 15:Yn(i,s,a,l),d&2048&&Ll(9,s);break;case 1:Yn(i,s,a,l);break;case 3:Yn(i,s,a,l),d&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&bl(i)));break;case 12:if(d&2048){Yn(i,s,a,l),i=s.stateNode;try{var p=s.memoizedProps,y=p.id,S=p.onPostCommit;typeof S=="function"&&S(y,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(w){Pe(s,s.return,w)}}else Yn(i,s,a,l);break;case 31:Yn(i,s,a,l);break;case 13:Yn(i,s,a,l);break;case 23:break;case 22:p=s.stateNode,y=s.alternate,s.memoizedState!==null?p._visibility&2?Yn(i,s,a,l):zl(i,s):p._visibility&2?Yn(i,s,a,l):(p._visibility|=2,Na(i,s,a,l,(s.subtreeFlags&10256)!==0||!1)),d&2048&&mv(y,s);break;case 24:Yn(i,s,a,l),d&2048&&vv(s.alternate,s);break;default:Yn(i,s,a,l)}}function Na(i,s,a,l,d){for(d=d&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var p=i,y=s,S=a,w=l,k=y.flags;switch(y.tag){case 0:case 11:case 15:Na(p,y,S,w,d),Ll(8,y);break;case 23:break;case 22:var G=y.stateNode;y.memoizedState!==null?G._visibility&2?Na(p,y,S,w,d):zl(p,y):(G._visibility|=2,Na(p,y,S,w,d)),d&&k&2048&&mv(y.alternate,y);break;case 24:Na(p,y,S,w,d),d&&k&2048&&vv(y.alternate,y);break;default:Na(p,y,S,w,d)}s=s.sibling}}function zl(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var a=i,l=s,d=l.flags;switch(l.tag){case 22:zl(a,l),d&2048&&mv(l.alternate,l);break;case 24:zl(a,l),d&2048&&vv(l.alternate,l);break;default:zl(a,l)}s=s.sibling}}var jl=8192;function za(i,s,a){if(i.subtreeFlags&jl)for(i=i.child;i!==null;)I2(i,s,a),i=i.sibling}function I2(i,s,a){switch(i.tag){case 26:za(i,s,a),i.flags&jl&&i.memoizedState!==null&&FB(a,Gn,i.memoizedState,i.memoizedProps);break;case 5:za(i,s,a);break;case 3:case 4:var l=Gn;Gn=Bf(i.stateNode.containerInfo),za(i,s,a),Gn=l;break;case 22:i.memoizedState===null&&(l=i.alternate,l!==null&&l.memoizedState!==null?(l=jl,jl=16777216,za(i,s,a),jl=l):za(i,s,a));break;default:za(i,s,a)}}function q2(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function Ul(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var a=0;a<s.length;a++){var l=s[a];Mt=l,H2(l,i)}q2(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)P2(i),i=i.sibling}function P2(i){switch(i.tag){case 0:case 11:case 15:Ul(i),i.flags&2048&&vs(9,i,i.return);break;case 3:Ul(i);break;case 12:Ul(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&2&&(i.return===null||i.return.tag!==13)?(s._visibility&=-3,wf(i)):Ul(i);break;default:Ul(i)}}function wf(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var a=0;a<s.length;a++){var l=s[a];Mt=l,H2(l,i)}q2(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:vs(8,s,s.return),wf(s);break;case 22:a=s.stateNode,a._visibility&2&&(a._visibility&=-3,wf(s));break;default:wf(s)}i=i.sibling}}function H2(i,s){for(;Mt!==null;){var a=Mt;switch(a.tag){case 0:case 11:case 15:vs(8,a,s);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:bl(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Mt=l;else e:for(a=i;Mt!==null;){l=Mt;var d=l.sibling,p=l.return;if(L2(l),l===a){Mt=null;break e}if(d!==null){d.return=p,Mt=d;break e}Mt=p}}}var rB={getCacheForType:function(i){var s=Ut(_t),a=s.data.get(i);return a===void 0&&(a=i(),s.data.set(i,a)),a},cacheSignal:function(){return Ut(_t).controller.signal}},aB=typeof WeakMap=="function"?WeakMap:Map,Ie=0,Ke=null,De=null,Le=0,qe=0,Sn=null,ys=!1,ja=!1,yv=!1,Bi=0,gt=0,_s=0,br=0,_v=0,En=0,Ua=0,Bl=null,sn=null,bv=!1,Af=0,F2=0,Cf=1/0,Mf=null,bs=null,Tt=0,Ss=null,Ba=null,Vi=0,Sv=0,Ev=null,$2=null,Vl=0,xv=null;function xn(){return(Ie&2)!==0&&Le!==0?Le&-Le:A.T!==null?Ov():oT()}function G2(){if(En===0)if((Le&536870912)===0||ze){var i=zc;zc<<=1,(zc&3932160)===0&&(zc=262144),En=i}else En=536870912;return i=_n.current,i!==null&&(i.flags|=32),En}function rn(i,s,a){(i===Ke&&(qe===2||qe===9)||i.cancelPendingCommit!==null)&&(Va(i,0),Es(i,Le,En,!1)),al(i,a),((Ie&2)===0||i!==Ke)&&(i===Ke&&((Ie&2)===0&&(br|=a),gt===4&&Es(i,Le,En,!1)),ri(i))}function Y2(i,s,a){if((Ie&6)!==0)throw Error(r(327));var l=!a&&(s&127)===0&&(s&i.expiredLanes)===0||rl(i,s),d=l?uB(i,s):wv(i,s,!0),p=l;do{if(d===0){ja&&!l&&Es(i,s,0,!1);break}else{if(a=i.current.alternate,p&&!oB(a)){d=wv(i,s,!1),p=!1;continue}if(d===2){if(p=s,i.errorRecoveryDisabledLanes&p)var y=0;else y=i.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){s=y;e:{var S=i;d=Bl;var w=S.current.memoizedState.isDehydrated;if(w&&(Va(S,y).flags|=256),y=wv(S,y,!1),y!==2){if(yv&&!w){S.errorRecoveryDisabledLanes|=p,br|=p,d=4;break e}p=sn,sn=d,p!==null&&(sn===null?sn=p:sn.push.apply(sn,p))}d=y}if(p=!1,d!==2)continue}}if(d===1){Va(i,0),Es(i,s,0,!0);break}e:{switch(l=i,p=d,p){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Es(l,s,En,!ys);break e;case 2:sn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(d=Af+300-pn(),10<d)){if(Es(l,s,En,!ys),Uc(l,0,!0)!==0)break e;Vi=s,l.timeoutHandle=TA(X2.bind(null,l,a,sn,Mf,bv,s,En,br,Ua,ys,p,"Throttled",-0,0),d);break e}X2(l,a,sn,Mf,bv,s,En,br,Ua,ys,p,null,-0,0)}}break}while(!0);ri(i)}function X2(i,s,a,l,d,p,y,S,w,k,G,Z,z,V){if(i.timeoutHandle=-1,Z=s.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ti},I2(s,p,Z);var ce=(p&62914560)===p?Af-pn():(p&4194048)===p?F2-pn():0;if(ce=$B(Z,ce),ce!==null){Vi=p,i.cancelPendingCommit=ce(nA.bind(null,i,s,p,a,l,d,y,S,w,G,Z,null,z,V)),Es(i,p,y,!k);return}}nA(i,s,p,a,l,d,y,S,w)}function oB(i){for(var s=i;;){var a=s.tag;if((a===0||a===11||a===15)&&s.flags&16384&&(a=s.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var d=a[l],p=d.getSnapshot;d=d.value;try{if(!vn(p(),d))return!1}catch{return!1}}if(a=s.child,s.subtreeFlags&16384&&a!==null)a.return=s,s=a;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Es(i,s,a,l){s&=~_v,s&=~br,i.suspendedLanes|=s,i.pingedLanes&=~s,l&&(i.warmLanes|=s),l=i.expirationTimes;for(var d=s;0<d;){var p=31-mn(d),y=1<<p;l[p]=-1,d&=~y}a!==0&&sT(i,a,s)}function Of(){return(Ie&6)===0?(Il(0),!1):!0}function Tv(){if(De!==null){if(qe===0)var i=De.return;else i=De,Mi=fr=null,Im(i),Oa=null,El=0,i=De;for(;i!==null;)w2(i.alternate,i),i=i.return;De=null}}function Va(i,s){var a=i.timeoutHandle;a!==-1&&(i.timeoutHandle=-1,CB(a)),a=i.cancelPendingCommit,a!==null&&(i.cancelPendingCommit=null,a()),Vi=0,Tv(),Ke=i,De=a=Ai(i.current,null),Le=s,qe=0,Sn=null,ys=!1,ja=rl(i,s),yv=!1,Ua=En=_v=br=_s=gt=0,sn=Bl=null,bv=!1,(s&8)!==0&&(s|=s&32);var l=i.entangledLanes;if(l!==0)for(i=i.entanglements,l&=s;0<l;){var d=31-mn(l),p=1<<d;s|=i[d],l&=~p}return Bi=s,Kc(),a}function K2(i,s){Te=null,A.H=Rl,s===Ma||s===sf?(s=fw(),qe=3):s===Mm?(s=fw(),qe=4):qe=s===nv?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Sn=s,De===null&&(gt=1,yf(i,Ln(s,i.current)))}function Z2(){var i=_n.current;return i===null?!0:(Le&4194048)===Le?Un===null:(Le&62914560)===Le||(Le&536870912)!==0?i===Un:!1}function Q2(){var i=A.H;return A.H=Rl,i===null?Rl:i}function J2(){var i=A.A;return A.A=rB,i}function Rf(){gt=4,ys||(Le&4194048)!==Le&&_n.current!==null||(ja=!0),(_s&134217727)===0&&(br&134217727)===0||Ke===null||Es(Ke,Le,En,!1)}function wv(i,s,a){var l=Ie;Ie|=2;var d=Q2(),p=J2();(Ke!==i||Le!==s)&&(Mf=null,Va(i,s)),s=!1;var y=gt;e:do try{if(qe!==0&&De!==null){var S=De,w=Sn;switch(qe){case 8:Tv(),y=6;break e;case 3:case 2:case 9:case 6:_n.current===null&&(s=!0);var k=qe;if(qe=0,Sn=null,Ia(i,S,w,k),a&&ja){y=0;break e}break;default:k=qe,qe=0,Sn=null,Ia(i,S,w,k)}}lB(),y=gt;break}catch(G){K2(i,G)}while(!0);return s&&i.shellSuspendCounter++,Mi=fr=null,Ie=l,A.H=d,A.A=p,De===null&&(Ke=null,Le=0,Kc()),y}function lB(){for(;De!==null;)W2(De)}function uB(i,s){var a=Ie;Ie|=2;var l=Q2(),d=J2();Ke!==i||Le!==s?(Mf=null,Cf=pn()+500,Va(i,s)):ja=rl(i,s);e:do try{if(qe!==0&&De!==null){s=De;var p=Sn;t:switch(qe){case 1:qe=0,Sn=null,Ia(i,s,p,1);break;case 2:case 9:if(uw(p)){qe=0,Sn=null,eA(s);break}s=function(){qe!==2&&qe!==9||Ke!==i||(qe=7),ri(i)},p.then(s,s);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:uw(p)?(qe=0,Sn=null,eA(s)):(qe=0,Sn=null,Ia(i,s,p,7));break;case 5:var y=null;switch(De.tag){case 26:y=De.memoizedState;case 5:case 27:var S=De;if(y?VA(y):S.stateNode.complete){qe=0,Sn=null;var w=S.sibling;if(w!==null)De=w;else{var k=S.return;k!==null?(De=k,Df(k)):De=null}break t}}qe=0,Sn=null,Ia(i,s,p,5);break;case 6:qe=0,Sn=null,Ia(i,s,p,6);break;case 8:Tv(),gt=6;break e;default:throw Error(r(462))}}cB();break}catch(G){K2(i,G)}while(!0);return Mi=fr=null,A.H=l,A.A=d,Ie=a,De!==null?0:(Ke=null,Le=0,Kc(),gt)}function cB(){for(;De!==null&&!kc();)W2(De)}function W2(i){var s=x2(i.alternate,i,Bi);i.memoizedProps=i.pendingProps,s===null?Df(i):De=s}function eA(i){var s=i,a=s.alternate;switch(s.tag){case 15:case 0:s=v2(a,s,s.pendingProps,s.type,void 0,Le);break;case 11:s=v2(a,s,s.pendingProps,s.type.render,s.ref,Le);break;case 5:Im(s);default:w2(a,s),s=De=JT(s,Bi),s=x2(a,s,Bi)}i.memoizedProps=i.pendingProps,s===null?Df(i):De=s}function Ia(i,s,a,l){Mi=fr=null,Im(s),Oa=null,El=0;var d=s.return;try{if(J6(i,d,s,a,Le)){gt=1,yf(i,Ln(a,i.current)),De=null;return}}catch(p){if(d!==null)throw De=d,p;gt=1,yf(i,Ln(a,i.current)),De=null;return}s.flags&32768?(ze||l===1?i=!0:ja||(Le&536870912)!==0?i=!1:(ys=i=!0,(l===2||l===9||l===3||l===6)&&(l=_n.current,l!==null&&l.tag===13&&(l.flags|=16384))),tA(s,i)):Df(s)}function Df(i){var s=i;do{if((s.flags&32768)!==0){tA(s,ys);return}i=s.return;var a=tB(s.alternate,s,Bi);if(a!==null){De=a;return}if(s=s.sibling,s!==null){De=s;return}De=s=i}while(s!==null);gt===0&&(gt=5)}function tA(i,s){do{var a=nB(i.alternate,i);if(a!==null){a.flags&=32767,De=a;return}if(a=i.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!s&&(i=i.sibling,i!==null)){De=i;return}De=i=a}while(i!==null);gt=6,De=null}function nA(i,s,a,l,d,p,y,S,w){i.cancelPendingCommit=null;do kf();while(Tt!==0);if((Ie&6)!==0)throw Error(r(327));if(s!==null){if(s===i.current)throw Error(r(177));if(p=s.lanes|s.childLanes,p|=hm,HU(i,a,p,y,S,w),i===Ke&&(De=Ke=null,Le=0),Ba=s,Ss=i,Vi=a,Sv=p,Ev=d,$2=l,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,pB(Lc,function(){return oA(),null})):(i.callbackNode=null,i.callbackPriority=0),l=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||l){l=A.T,A.T=null,d=N.p,N.p=2,y=Ie,Ie|=4;try{iB(i,s,a)}finally{Ie=y,N.p=d,A.T=l}}Tt=1,iA(),sA(),rA()}}function iA(){if(Tt===1){Tt=0;var i=Ss,s=Ba,a=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||a){a=A.T,A.T=null;var l=N.p;N.p=2;var d=Ie;Ie|=4;try{U2(s,i);var p=Uv,y=HT(i.containerInfo),S=p.focusedElem,w=p.selectionRange;if(y!==S&&S&&S.ownerDocument&&PT(S.ownerDocument.documentElement,S)){if(w!==null&&lm(S)){var k=w.start,G=w.end;if(G===void 0&&(G=k),"selectionStart"in S)S.selectionStart=k,S.selectionEnd=Math.min(G,S.value.length);else{var Z=S.ownerDocument||document,z=Z&&Z.defaultView||window;if(z.getSelection){var V=z.getSelection(),ce=S.textContent.length,_e=Math.min(w.start,ce),Ge=w.end===void 0?_e:Math.min(w.end,ce);!V.extend&&_e>Ge&&(y=Ge,Ge=_e,_e=y);var O=qT(S,_e),C=qT(S,Ge);if(O&&C&&(V.rangeCount!==1||V.anchorNode!==O.node||V.anchorOffset!==O.offset||V.focusNode!==C.node||V.focusOffset!==C.offset)){var D=Z.createRange();D.setStart(O.node,O.offset),V.removeAllRanges(),_e>Ge?(V.addRange(D),V.extend(C.node,C.offset)):(D.setEnd(C.node,C.offset),V.addRange(D))}}}}for(Z=[],V=S;V=V.parentNode;)V.nodeType===1&&Z.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<Z.length;S++){var X=Z[S];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Ff=!!jv,Uv=jv=null}finally{Ie=d,N.p=l,A.T=a}}i.current=s,Tt=2}}function sA(){if(Tt===2){Tt=0;var i=Ss,s=Ba,a=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||a){a=A.T,A.T=null;var l=N.p;N.p=2;var d=Ie;Ie|=4;try{k2(i,s.alternate,s)}finally{Ie=d,N.p=l,A.T=a}}Tt=3}}function rA(){if(Tt===4||Tt===3){Tt=0,il();var i=Ss,s=Ba,a=Vi,l=$2;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Tt=5:(Tt=0,Ba=Ss=null,aA(i,i.pendingLanes));var d=i.pendingLanes;if(d===0&&(bs=null),Hg(a),s=s.stateNode,gn&&typeof gn.onCommitFiberRoot=="function")try{gn.onCommitFiberRoot(sl,s,void 0,(s.current.flags&128)===128)}catch{}if(l!==null){s=A.T,d=N.p,N.p=2,A.T=null;try{for(var p=i.onRecoverableError,y=0;y<l.length;y++){var S=l[y];p(S.value,{componentStack:S.stack})}}finally{A.T=s,N.p=d}}(Vi&3)!==0&&kf(),ri(i),d=i.pendingLanes,(a&261930)!==0&&(d&42)!==0?i===xv?Vl++:(Vl=0,xv=i):Vl=0,Il(0)}}function aA(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,bl(s)))}function kf(){return iA(),sA(),rA(),oA()}function oA(){if(Tt!==5)return!1;var i=Ss,s=Sv;Sv=0;var a=Hg(Vi),l=A.T,d=N.p;try{N.p=32>a?32:a,A.T=null,a=Ev,Ev=null;var p=Ss,y=Vi;if(Tt=0,Ba=Ss=null,Vi=0,(Ie&6)!==0)throw Error(r(331));var S=Ie;if(Ie|=4,P2(p.current),V2(p,p.current,y,a),Ie=S,Il(0,!1),gn&&typeof gn.onPostCommitFiberRoot=="function")try{gn.onPostCommitFiberRoot(sl,p)}catch{}return!0}finally{N.p=d,A.T=l,aA(i,s)}}function lA(i,s,a){s=Ln(a,s),s=tv(i.stateNode,s,2),i=ps(i,s,2),i!==null&&(al(i,2),ri(i))}function Pe(i,s,a){if(i.tag===3)lA(i,i,a);else for(;s!==null;){if(s.tag===3){lA(s,i,a);break}else if(s.tag===1){var l=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(bs===null||!bs.has(l))){i=Ln(a,i),a=u2(2),l=ps(s,a,2),l!==null&&(c2(a,l,s,i),al(l,2),ri(l));break}}s=s.return}}function Av(i,s,a){var l=i.pingCache;if(l===null){l=i.pingCache=new aB;var d=new Set;l.set(s,d)}else d=l.get(s),d===void 0&&(d=new Set,l.set(s,d));d.has(a)||(yv=!0,d.add(a),i=fB.bind(null,i,s,a),s.then(i,i))}function fB(i,s,a){var l=i.pingCache;l!==null&&l.delete(s),i.pingedLanes|=i.suspendedLanes&a,i.warmLanes&=~a,Ke===i&&(Le&a)===a&&(gt===4||gt===3&&(Le&62914560)===Le&&300>pn()-Af?(Ie&2)===0&&Va(i,0):_v|=a,Ua===Le&&(Ua=0)),ri(i)}function uA(i,s){s===0&&(s=iT()),i=lr(i,s),i!==null&&(al(i,s),ri(i))}function dB(i){var s=i.memoizedState,a=0;s!==null&&(a=s.retryLane),uA(i,a)}function hB(i,s){var a=0;switch(i.tag){case 31:case 13:var l=i.stateNode,d=i.memoizedState;d!==null&&(a=d.retryLane);break;case 19:l=i.stateNode;break;case 22:l=i.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(s),uA(i,a)}function pB(i,s){return aa(i,s)}var Lf=null,qa=null,Cv=!1,Nf=!1,Mv=!1,xs=0;function ri(i){i!==qa&&i.next===null&&(qa===null?Lf=qa=i:qa=qa.next=i),Nf=!0,Cv||(Cv=!0,mB())}function Il(i,s){if(!Mv&&Nf){Mv=!0;do for(var a=!1,l=Lf;l!==null;){if(i!==0){var d=l.pendingLanes;if(d===0)var p=0;else{var y=l.suspendedLanes,S=l.pingedLanes;p=(1<<31-mn(42|i)+1)-1,p&=d&~(y&~S),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,hA(l,p))}else p=Le,p=Uc(l,l===Ke?p:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(p&3)===0||rl(l,p)||(a=!0,hA(l,p));l=l.next}while(a);Mv=!1}}function gB(){cA()}function cA(){Nf=Cv=!1;var i=0;xs!==0&&AB()&&(i=xs);for(var s=pn(),a=null,l=Lf;l!==null;){var d=l.next,p=fA(l,s);p===0?(l.next=null,a===null?Lf=d:a.next=d,d===null&&(qa=a)):(a=l,(i!==0||(p&3)!==0)&&(Nf=!0)),l=d}Tt!==0&&Tt!==5||Il(i),xs!==0&&(xs=0)}function fA(i,s){for(var a=i.suspendedLanes,l=i.pingedLanes,d=i.expirationTimes,p=i.pendingLanes&-62914561;0<p;){var y=31-mn(p),S=1<<y,w=d[y];w===-1?((S&a)===0||(S&l)!==0)&&(d[y]=PU(S,s)):w<=s&&(i.expiredLanes|=S),p&=~S}if(s=Ke,a=Le,a=Uc(i,i===s?a:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),l=i.callbackNode,a===0||i===s&&(qe===2||qe===9)||i.cancelPendingCommit!==null)return l!==null&&l!==null&&oa(l),i.callbackNode=null,i.callbackPriority=0;if((a&3)===0||rl(i,a)){if(s=a&-a,s===i.callbackPriority)return s;switch(l!==null&&oa(l),Hg(a)){case 2:case 8:a=tT;break;case 32:a=Lc;break;case 268435456:a=nT;break;default:a=Lc}return l=dA.bind(null,i),a=aa(a,l),i.callbackPriority=s,i.callbackNode=a,s}return l!==null&&l!==null&&oa(l),i.callbackPriority=2,i.callbackNode=null,2}function dA(i,s){if(Tt!==0&&Tt!==5)return i.callbackNode=null,i.callbackPriority=0,null;var a=i.callbackNode;if(kf()&&i.callbackNode!==a)return null;var l=Le;return l=Uc(i,i===Ke?l:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),l===0?null:(Y2(i,l,s),fA(i,pn()),i.callbackNode!=null&&i.callbackNode===a?dA.bind(null,i):null)}function hA(i,s){if(kf())return null;Y2(i,s,!0)}function mB(){MB(function(){(Ie&6)!==0?aa(eT,gB):cA()})}function Ov(){if(xs===0){var i=Aa;i===0&&(i=Nc,Nc<<=1,(Nc&261888)===0&&(Nc=256)),xs=i}return xs}function pA(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:qc(""+i)}function gA(i,s){var a=s.ownerDocument.createElement("input");return a.name=s.name,a.value=s.value,i.id&&a.setAttribute("form",i.id),s.parentNode.insertBefore(a,s),i=new FormData(i),a.parentNode.removeChild(a),i}function vB(i,s,a,l,d){if(s==="submit"&&a&&a.stateNode===d){var p=pA((d[Jt]||null).action),y=l.submitter;y&&(s=(s=y[Jt]||null)?pA(s.formAction):y.getAttribute("formAction"),s!==null&&(p=s,y=null));var S=new $c("action","action",null,l,d);i.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(xs!==0){var w=y?gA(d,y):new FormData(d);Km(a,{pending:!0,data:w,method:d.method,action:p},null,w)}}else typeof p=="function"&&(S.preventDefault(),w=y?gA(d,y):new FormData(d),Km(a,{pending:!0,data:w,method:d.method,action:p},p,w))},currentTarget:d}]})}}for(var Rv=0;Rv<dm.length;Rv++){var Dv=dm[Rv],yB=Dv.toLowerCase(),_B=Dv[0].toUpperCase()+Dv.slice(1);$n(yB,"on"+_B)}$n(GT,"onAnimationEnd"),$n(YT,"onAnimationIteration"),$n(XT,"onAnimationStart"),$n("dblclick","onDoubleClick"),$n("focusin","onFocus"),$n("focusout","onBlur"),$n(z6,"onTransitionRun"),$n(j6,"onTransitionStart"),$n(U6,"onTransitionCancel"),$n(KT,"onTransitionEnd"),da("onMouseEnter",["mouseout","mouseover"]),da("onMouseLeave",["mouseout","mouseover"]),da("onPointerEnter",["pointerout","pointerover"]),da("onPointerLeave",["pointerout","pointerover"]),sr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sr("onBeforeInput",["compositionend","keypress","textInput","paste"]),sr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ql="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(" "),bB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ql));function mA(i,s){s=(s&4)!==0;for(var a=0;a<i.length;a++){var l=i[a],d=l.event;l=l.listeners;e:{var p=void 0;if(s)for(var y=l.length-1;0<=y;y--){var S=l[y],w=S.instance,k=S.currentTarget;if(S=S.listener,w!==p&&d.isPropagationStopped())break e;p=S,d.currentTarget=k;try{p(d)}catch(G){Xc(G)}d.currentTarget=null,p=w}else for(y=0;y<l.length;y++){if(S=l[y],w=S.instance,k=S.currentTarget,S=S.listener,w!==p&&d.isPropagationStopped())break e;p=S,d.currentTarget=k;try{p(d)}catch(G){Xc(G)}d.currentTarget=null,p=w}}}}function ke(i,s){var a=s[Fg];a===void 0&&(a=s[Fg]=new Set);var l=i+"__bubble";a.has(l)||(vA(s,i,2,!1),a.add(l))}function kv(i,s,a){var l=0;s&&(l|=4),vA(a,i,l,s)}var zf="_reactListening"+Math.random().toString(36).slice(2);function Lv(i){if(!i[zf]){i[zf]=!0,cT.forEach(function(a){a!=="selectionchange"&&(bB.has(a)||kv(a,!1,i),kv(a,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[zf]||(s[zf]=!0,kv("selectionchange",!1,s))}}function vA(i,s,a,l){switch(GA(s)){case 2:var d=XB;break;case 8:d=KB;break;default:d=Xv}a=d.bind(null,s,a,i),d=void 0,!Wg||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(d=!0),l?d!==void 0?i.addEventListener(s,a,{capture:!0,passive:d}):i.addEventListener(s,a,!0):d!==void 0?i.addEventListener(s,a,{passive:d}):i.addEventListener(s,a,!1)}function Nv(i,s,a,l,d){var p=l;if((s&1)===0&&(s&2)===0&&l!==null)e:for(;;){if(l===null)return;var y=l.tag;if(y===3||y===4){var S=l.stateNode.containerInfo;if(S===d)break;if(y===4)for(y=l.return;y!==null;){var w=y.tag;if((w===3||w===4)&&y.stateNode.containerInfo===d)return;y=y.return}for(;S!==null;){if(y=ua(S),y===null)return;if(w=y.tag,w===5||w===6||w===26||w===27){l=p=y;continue e}S=S.parentNode}}l=l.return}ET(function(){var k=p,G=Qg(a),Z=[];e:{var z=ZT.get(i);if(z!==void 0){var V=$c,ce=i;switch(i){case"keypress":if(Hc(a)===0)break e;case"keydown":case"keyup":V=h6;break;case"focusin":ce="focus",V=im;break;case"focusout":ce="blur",V=im;break;case"beforeblur":case"afterblur":V=im;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=wT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=t6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=m6;break;case GT:case YT:case XT:V=s6;break;case KT:V=y6;break;case"scroll":case"scrollend":V=WU;break;case"wheel":V=b6;break;case"copy":case"cut":case"paste":V=a6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=CT;break;case"toggle":case"beforetoggle":V=E6}var _e=(s&4)!==0,Ge=!_e&&(i==="scroll"||i==="scrollend"),O=_e?z!==null?z+"Capture":null:z;_e=[];for(var C=k,D;C!==null;){var X=C;if(D=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||D===null||O===null||(X=ul(C,O),X!=null&&_e.push(Pl(C,X,D))),Ge)break;C=C.return}0<_e.length&&(z=new V(z,ce,null,a,G),Z.push({event:z,listeners:_e}))}}if((s&7)===0){e:{if(z=i==="mouseover"||i==="pointerover",V=i==="mouseout"||i==="pointerout",z&&a!==Zg&&(ce=a.relatedTarget||a.fromElement)&&(ua(ce)||ce[la]))break e;if((V||z)&&(z=G.window===G?G:(z=G.ownerDocument)?z.defaultView||z.parentWindow:window,V?(ce=a.relatedTarget||a.toElement,V=k,ce=ce?ua(ce):null,ce!==null&&(Ge=u(ce),_e=ce.tag,ce!==Ge||_e!==5&&_e!==27&&_e!==6)&&(ce=null)):(V=null,ce=k),V!==ce)){if(_e=wT,X="onMouseLeave",O="onMouseEnter",C="mouse",(i==="pointerout"||i==="pointerover")&&(_e=CT,X="onPointerLeave",O="onPointerEnter",C="pointer"),Ge=V==null?z:ll(V),D=ce==null?z:ll(ce),z=new _e(X,C+"leave",V,a,G),z.target=Ge,z.relatedTarget=D,X=null,ua(G)===k&&(_e=new _e(O,C+"enter",ce,a,G),_e.target=D,_e.relatedTarget=Ge,X=_e),Ge=X,V&&ce)t:{for(_e=SB,O=V,C=ce,D=0,X=O;X;X=_e(X))D++;X=0;for(var me=C;me;me=_e(me))X++;for(;0<D-X;)O=_e(O),D--;for(;0<X-D;)C=_e(C),X--;for(;D--;){if(O===C||C!==null&&O===C.alternate){_e=O;break t}O=_e(O),C=_e(C)}_e=null}else _e=null;V!==null&&yA(Z,z,V,_e,!1),ce!==null&&Ge!==null&&yA(Z,Ge,ce,_e,!0)}}e:{if(z=k?ll(k):window,V=z.nodeName&&z.nodeName.toLowerCase(),V==="select"||V==="input"&&z.type==="file")var Be=zT;else if(LT(z))if(jT)Be=k6;else{Be=R6;var de=O6}else V=z.nodeName,!V||V.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?k&&Kg(k.elementType)&&(Be=zT):Be=D6;if(Be&&(Be=Be(i,k))){NT(Z,Be,a,G);break e}de&&de(i,z,k),i==="focusout"&&k&&z.type==="number"&&k.memoizedProps.value!=null&&Xg(z,"number",z.value)}switch(de=k?ll(k):window,i){case"focusin":(LT(de)||de.contentEditable==="true")&&(ya=de,um=k,vl=null);break;case"focusout":vl=um=ya=null;break;case"mousedown":cm=!0;break;case"contextmenu":case"mouseup":case"dragend":cm=!1,FT(Z,a,G);break;case"selectionchange":if(N6)break;case"keydown":case"keyup":FT(Z,a,G)}var Ae;if(rm)e:{switch(i){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else va?DT(i,a)&&(Ne="onCompositionEnd"):i==="keydown"&&a.keyCode===229&&(Ne="onCompositionStart");Ne&&(MT&&a.locale!=="ko"&&(va||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&va&&(Ae=xT()):(os=G,em="value"in os?os.value:os.textContent,va=!0)),de=jf(k,Ne),0<de.length&&(Ne=new AT(Ne,i,null,a,G),Z.push({event:Ne,listeners:de}),Ae?Ne.data=Ae:(Ae=kT(a),Ae!==null&&(Ne.data=Ae)))),(Ae=T6?w6(i,a):A6(i,a))&&(Ne=jf(k,"onBeforeInput"),0<Ne.length&&(de=new AT("onBeforeInput","beforeinput",null,a,G),Z.push({event:de,listeners:Ne}),de.data=Ae)),vB(Z,i,k,a,G)}mA(Z,s)})}function Pl(i,s,a){return{instance:i,listener:s,currentTarget:a}}function jf(i,s){for(var a=s+"Capture",l=[];i!==null;){var d=i,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=ul(i,a),d!=null&&l.unshift(Pl(i,d,p)),d=ul(i,s),d!=null&&l.push(Pl(i,d,p))),i.tag===3)return l;i=i.return}return[]}function SB(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function yA(i,s,a,l,d){for(var p=s._reactName,y=[];a!==null&&a!==l;){var S=a,w=S.alternate,k=S.stateNode;if(S=S.tag,w!==null&&w===l)break;S!==5&&S!==26&&S!==27||k===null||(w=k,d?(k=ul(a,p),k!=null&&y.unshift(Pl(a,k,w))):d||(k=ul(a,p),k!=null&&y.push(Pl(a,k,w)))),a=a.return}y.length!==0&&i.push({event:s,listeners:y})}var EB=/\r\n?/g,xB=/\u0000|\uFFFD/g;function _A(i){return(typeof i=="string"?i:""+i).replace(EB,`
|
|
32
|
+
`).replace(xB,"")}function bA(i,s){return s=_A(s),_A(i)===s}function $e(i,s,a,l,d,p){switch(a){case"children":typeof l=="string"?s==="body"||s==="textarea"&&l===""||pa(i,l):(typeof l=="number"||typeof l=="bigint")&&s!=="body"&&pa(i,""+l);break;case"className":Vc(i,"class",l);break;case"tabIndex":Vc(i,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Vc(i,a,l);break;case"style":bT(i,l,p);break;case"data":if(s!=="object"){Vc(i,"data",l);break}case"src":case"href":if(l===""&&(s!=="a"||a!=="href")){i.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){i.removeAttribute(a);break}l=qc(""+l),i.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){i.setAttribute(a,"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}else typeof p=="function"&&(a==="formAction"?(s!=="input"&&$e(i,s,"name",d.name,d,null),$e(i,s,"formEncType",d.formEncType,d,null),$e(i,s,"formMethod",d.formMethod,d,null),$e(i,s,"formTarget",d.formTarget,d,null)):($e(i,s,"encType",d.encType,d,null),$e(i,s,"method",d.method,d,null),$e(i,s,"target",d.target,d,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){i.removeAttribute(a);break}l=qc(""+l),i.setAttribute(a,l);break;case"onClick":l!=null&&(i.onclick=Ti);break;case"onScroll":l!=null&&ke("scroll",i);break;case"onScrollEnd":l!=null&&ke("scrollend",i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(d.children!=null)throw Error(r(60));i.innerHTML=a}}break;case"multiple":i.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":i.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){i.removeAttribute("xlink:href");break}a=qc(""+l),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?i.setAttribute(a,""+l):i.removeAttribute(a);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":l&&typeof l!="function"&&typeof l!="symbol"?i.setAttribute(a,""):i.removeAttribute(a);break;case"capture":case"download":l===!0?i.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?i.setAttribute(a,l):i.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?i.setAttribute(a,l):i.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?i.removeAttribute(a):i.setAttribute(a,l);break;case"popover":ke("beforetoggle",i),ke("toggle",i),Bc(i,"popover",l);break;case"xlinkActuate":xi(i,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":xi(i,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":xi(i,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":xi(i,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":xi(i,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":xi(i,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":xi(i,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":xi(i,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":xi(i,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Bc(i,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=QU.get(a)||a,Bc(i,a,l))}}function zv(i,s,a,l,d,p){switch(a){case"style":bT(i,l,p);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(d.children!=null)throw Error(r(60));i.innerHTML=a}}break;case"children":typeof l=="string"?pa(i,l):(typeof l=="number"||typeof l=="bigint")&&pa(i,""+l);break;case"onScroll":l!=null&&ke("scroll",i);break;case"onScrollEnd":l!=null&&ke("scrollend",i);break;case"onClick":l!=null&&(i.onclick=Ti);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fT.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),s=a.slice(2,d?a.length-7:void 0),p=i[Jt]||null,p=p!=null?p[a]:null,typeof p=="function"&&i.removeEventListener(s,p,d),typeof l=="function")){typeof p!="function"&&p!==null&&(a in i?i[a]=null:i.hasAttribute(a)&&i.removeAttribute(a)),i.addEventListener(s,l,d);break e}a in i?i[a]=l:l===!0?i.setAttribute(a,""):Bc(i,a,l)}}}function Vt(i,s,a){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",i),ke("load",i);var l=!1,d=!1,p;for(p in a)if(a.hasOwnProperty(p)){var y=a[p];if(y!=null)switch(p){case"src":l=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:$e(i,s,p,y,a,null)}}d&&$e(i,s,"srcSet",a.srcSet,a,null),l&&$e(i,s,"src",a.src,a,null);return;case"input":ke("invalid",i);var S=p=y=d=null,w=null,k=null;for(l in a)if(a.hasOwnProperty(l)){var G=a[l];if(G!=null)switch(l){case"name":d=G;break;case"type":y=G;break;case"checked":w=G;break;case"defaultChecked":k=G;break;case"value":p=G;break;case"defaultValue":S=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,s));break;default:$e(i,s,l,G,a,null)}}mT(i,p,S,w,k,y,d,!1);return;case"select":ke("invalid",i),l=y=p=null;for(d in a)if(a.hasOwnProperty(d)&&(S=a[d],S!=null))switch(d){case"value":p=S;break;case"defaultValue":y=S;break;case"multiple":l=S;default:$e(i,s,d,S,a,null)}s=p,a=y,i.multiple=!!l,s!=null?ha(i,!!l,s,!1):a!=null&&ha(i,!!l,a,!0);return;case"textarea":ke("invalid",i),p=d=l=null;for(y in a)if(a.hasOwnProperty(y)&&(S=a[y],S!=null))switch(y){case"value":l=S;break;case"defaultValue":d=S;break;case"children":p=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:$e(i,s,y,S,a,null)}yT(i,l,d,p);return;case"option":for(w in a)a.hasOwnProperty(w)&&(l=a[w],l!=null)&&(w==="selected"?i.selected=l&&typeof l!="function"&&typeof l!="symbol":$e(i,s,w,l,a,null));return;case"dialog":ke("beforetoggle",i),ke("toggle",i),ke("cancel",i),ke("close",i);break;case"iframe":case"object":ke("load",i);break;case"video":case"audio":for(l=0;l<ql.length;l++)ke(ql[l],i);break;case"image":ke("error",i),ke("load",i);break;case"details":ke("toggle",i);break;case"embed":case"source":case"link":ke("error",i),ke("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in a)if(a.hasOwnProperty(k)&&(l=a[k],l!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:$e(i,s,k,l,a,null)}return;default:if(Kg(s)){for(G in a)a.hasOwnProperty(G)&&(l=a[G],l!==void 0&&zv(i,s,G,l,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(l=a[S],l!=null&&$e(i,s,S,l,a,null))}function TB(i,s,a,l){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,y=null,S=null,w=null,k=null,G=null;for(V in a){var Z=a[V];if(a.hasOwnProperty(V)&&Z!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":w=Z;default:l.hasOwnProperty(V)||$e(i,s,V,null,l,Z)}}for(var z in l){var V=l[z];if(Z=a[z],l.hasOwnProperty(z)&&(V!=null||Z!=null))switch(z){case"type":p=V;break;case"name":d=V;break;case"checked":k=V;break;case"defaultChecked":G=V;break;case"value":y=V;break;case"defaultValue":S=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,s));break;default:V!==Z&&$e(i,s,z,V,l,Z)}}Yg(i,y,S,w,k,G,p,d);return;case"select":V=y=S=z=null;for(p in a)if(w=a[p],a.hasOwnProperty(p)&&w!=null)switch(p){case"value":break;case"multiple":V=w;default:l.hasOwnProperty(p)||$e(i,s,p,null,l,w)}for(d in l)if(p=l[d],w=a[d],l.hasOwnProperty(d)&&(p!=null||w!=null))switch(d){case"value":z=p;break;case"defaultValue":S=p;break;case"multiple":y=p;default:p!==w&&$e(i,s,d,p,l,w)}s=S,a=y,l=V,z!=null?ha(i,!!a,z,!1):!!l!=!!a&&(s!=null?ha(i,!!a,s,!0):ha(i,!!a,a?[]:"",!1));return;case"textarea":V=z=null;for(S in a)if(d=a[S],a.hasOwnProperty(S)&&d!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:$e(i,s,S,null,l,d)}for(y in l)if(d=l[y],p=a[y],l.hasOwnProperty(y)&&(d!=null||p!=null))switch(y){case"value":z=d;break;case"defaultValue":V=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:d!==p&&$e(i,s,y,d,l,p)}vT(i,z,V);return;case"option":for(var ce in a)z=a[ce],a.hasOwnProperty(ce)&&z!=null&&!l.hasOwnProperty(ce)&&(ce==="selected"?i.selected=!1:$e(i,s,ce,null,l,z));for(w in l)z=l[w],V=a[w],l.hasOwnProperty(w)&&z!==V&&(z!=null||V!=null)&&(w==="selected"?i.selected=z&&typeof z!="function"&&typeof z!="symbol":$e(i,s,w,z,l,V));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 _e in a)z=a[_e],a.hasOwnProperty(_e)&&z!=null&&!l.hasOwnProperty(_e)&&$e(i,s,_e,null,l,z);for(k in l)if(z=l[k],V=a[k],l.hasOwnProperty(k)&&z!==V&&(z!=null||V!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,s));break;default:$e(i,s,k,z,l,V)}return;default:if(Kg(s)){for(var Ge in a)z=a[Ge],a.hasOwnProperty(Ge)&&z!==void 0&&!l.hasOwnProperty(Ge)&&zv(i,s,Ge,void 0,l,z);for(G in l)z=l[G],V=a[G],!l.hasOwnProperty(G)||z===V||z===void 0&&V===void 0||zv(i,s,G,z,l,V);return}}for(var O in a)z=a[O],a.hasOwnProperty(O)&&z!=null&&!l.hasOwnProperty(O)&&$e(i,s,O,null,l,z);for(Z in l)z=l[Z],V=a[Z],!l.hasOwnProperty(Z)||z===V||z==null&&V==null||$e(i,s,Z,z,l,V)}function SA(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wB(){if(typeof performance.getEntriesByType=="function"){for(var i=0,s=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var d=a[l],p=d.transferSize,y=d.initiatorType,S=d.duration;if(p&&S&&SA(y)){for(y=0,S=d.responseEnd,l+=1;l<a.length;l++){var w=a[l],k=w.startTime;if(k>S)break;var G=w.transferSize,Z=w.initiatorType;G&&SA(Z)&&(w=w.responseEnd,y+=G*(w<S?1:(S-k)/(w-k)))}if(--l,s+=8*(p+y)/(d.duration/1e3),i++,10<i)break}}if(0<i)return s/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var jv=null,Uv=null;function Uf(i){return i.nodeType===9?i:i.ownerDocument}function EA(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function xA(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function Bv(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Vv=null;function AB(){var i=window.event;return i&&i.type==="popstate"?i===Vv?!1:(Vv=i,!0):(Vv=null,!1)}var TA=typeof setTimeout=="function"?setTimeout:void 0,CB=typeof clearTimeout=="function"?clearTimeout:void 0,wA=typeof Promise=="function"?Promise:void 0,MB=typeof queueMicrotask=="function"?queueMicrotask:typeof wA<"u"?function(i){return wA.resolve(null).then(i).catch(OB)}:TA;function OB(i){setTimeout(function(){throw i})}function Ts(i){return i==="head"}function AA(i,s){var a=s,l=0;do{var d=a.nextSibling;if(i.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(l===0){i.removeChild(d),$a(s);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Hl(i.ownerDocument.documentElement);else if(a==="head"){a=i.ownerDocument.head,Hl(a);for(var p=a.firstChild;p;){var y=p.nextSibling,S=p.nodeName;p[ol]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=y}}else a==="body"&&Hl(i.ownerDocument.body);a=d}while(a);$a(s)}function CA(i,s){var a=i;i=0;do{var l=a.nextSibling;if(a.nodeType===1?s?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(s?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(i===0)break;i--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||i++;a=l}while(a)}function Iv(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var a=s;switch(s=s.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Iv(a),$g(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}i.removeChild(a)}}function RB(i,s,a,l){for(;i.nodeType===1;){var d=a;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!l&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(l){if(!i[ol])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(p=i.getAttribute("rel"),p==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(p!==d.rel||i.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||i.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||i.getAttribute("title")!==(d.title==null?null:d.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(p=i.getAttribute("src"),(p!==(d.src==null?null:d.src)||i.getAttribute("type")!==(d.type==null?null:d.type)||i.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&i.getAttribute("name")===p)return i}else return i;if(i=Bn(i.nextSibling),i===null)break}return null}function DB(i,s,a){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!a||(i=Bn(i.nextSibling),i===null))return null;return i}function MA(i,s){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!s||(i=Bn(i.nextSibling),i===null))return null;return i}function qv(i){return i.data==="$?"||i.data==="$~"}function Pv(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function kB(i,s){var a=i.ownerDocument;if(i.data==="$~")i._reactRetry=s;else if(i.data!=="$?"||a.readyState!=="loading")s();else{var l=function(){s(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),i._reactRetry=l}}function Bn(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return i}var Hv=null;function OA(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var a=i.data;if(a==="/$"||a==="/&"){if(s===0)return Bn(i.nextSibling);s--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||s++}i=i.nextSibling}return null}function RA(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var a=i.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(s===0)return i;s--}else a!=="/$"&&a!=="/&"||s++}i=i.previousSibling}return null}function DA(i,s,a){switch(s=Uf(a),i){case"html":if(i=s.documentElement,!i)throw Error(r(452));return i;case"head":if(i=s.head,!i)throw Error(r(453));return i;case"body":if(i=s.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Hl(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);$g(i)}var Vn=new Map,kA=new Set;function Bf(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Ii=N.d;N.d={f:LB,r:NB,D:zB,C:jB,L:UB,m:BB,X:IB,S:VB,M:qB};function LB(){var i=Ii.f(),s=Of();return i||s}function NB(i){var s=ca(i);s!==null&&s.tag===5&&s.type==="form"?Kw(s):Ii.r(i)}var Pa=typeof document>"u"?null:document;function LA(i,s,a){var l=Pa;if(l&&typeof s=="string"&&s){var d=Dn(s);d='link[rel="'+i+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),kA.has(d)||(kA.add(d),i={rel:i,crossOrigin:a,href:s},l.querySelector(d)===null&&(s=l.createElement("link"),Vt(s,"link",i),Ct(s),l.head.appendChild(s)))}}function zB(i){Ii.D(i),LA("dns-prefetch",i,null)}function jB(i,s){Ii.C(i,s),LA("preconnect",i,s)}function UB(i,s,a){Ii.L(i,s,a);var l=Pa;if(l&&i&&s){var d='link[rel="preload"][as="'+Dn(s)+'"]';s==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+Dn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+Dn(a.imageSizes)+'"]')):d+='[href="'+Dn(i)+'"]';var p=d;switch(s){case"style":p=Ha(i);break;case"script":p=Fa(i)}Vn.has(p)||(i=v({rel:"preload",href:s==="image"&&a&&a.imageSrcSet?void 0:i,as:s},a),Vn.set(p,i),l.querySelector(d)!==null||s==="style"&&l.querySelector(Fl(p))||s==="script"&&l.querySelector($l(p))||(s=l.createElement("link"),Vt(s,"link",i),Ct(s),l.head.appendChild(s)))}}function BB(i,s){Ii.m(i,s);var a=Pa;if(a&&i){var l=s&&typeof s.as=="string"?s.as:"script",d='link[rel="modulepreload"][as="'+Dn(l)+'"][href="'+Dn(i)+'"]',p=d;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Fa(i)}if(!Vn.has(p)&&(i=v({rel:"modulepreload",href:i},s),Vn.set(p,i),a.querySelector(d)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector($l(p)))return}l=a.createElement("link"),Vt(l,"link",i),Ct(l),a.head.appendChild(l)}}}function VB(i,s,a){Ii.S(i,s,a);var l=Pa;if(l&&i){var d=fa(l).hoistableStyles,p=Ha(i);s=s||"default";var y=d.get(p);if(!y){var S={loading:0,preload:null};if(y=l.querySelector(Fl(p)))S.loading=5;else{i=v({rel:"stylesheet",href:i,"data-precedence":s},a),(a=Vn.get(p))&&Fv(i,a);var w=y=l.createElement("link");Ct(w),Vt(w,"link",i),w._p=new Promise(function(k,G){w.onload=k,w.onerror=G}),w.addEventListener("load",function(){S.loading|=1}),w.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Vf(y,s,l)}y={type:"stylesheet",instance:y,count:1,state:S},d.set(p,y)}}}function IB(i,s){Ii.X(i,s);var a=Pa;if(a&&i){var l=fa(a).hoistableScripts,d=Fa(i),p=l.get(d);p||(p=a.querySelector($l(d)),p||(i=v({src:i,async:!0},s),(s=Vn.get(d))&&$v(i,s),p=a.createElement("script"),Ct(p),Vt(p,"link",i),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},l.set(d,p))}}function qB(i,s){Ii.M(i,s);var a=Pa;if(a&&i){var l=fa(a).hoistableScripts,d=Fa(i),p=l.get(d);p||(p=a.querySelector($l(d)),p||(i=v({src:i,async:!0,type:"module"},s),(s=Vn.get(d))&&$v(i,s),p=a.createElement("script"),Ct(p),Vt(p,"link",i),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},l.set(d,p))}}function NA(i,s,a,l){var d=(d=ge.current)?Bf(d):null;if(!d)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(s=Ha(a.href),a=fa(d).hoistableStyles,l=a.get(s),l||(l={type:"style",instance:null,count:0,state:null},a.set(s,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){i=Ha(a.href);var p=fa(d).hoistableStyles,y=p.get(i);if(y||(d=d.ownerDocument||d,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(i,y),(p=d.querySelector(Fl(i)))&&!p._p&&(y.instance=p,y.state.loading=5),Vn.has(i)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Vn.set(i,a),p||PB(d,i,a,y.state))),s&&l===null)throw Error(r(528,""));return y}if(s&&l!==null)throw Error(r(529,""));return null;case"script":return s=a.async,a=a.src,typeof a=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Fa(a),a=fa(d).hoistableScripts,l=a.get(s),l||(l={type:"script",instance:null,count:0,state:null},a.set(s,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Ha(i){return'href="'+Dn(i)+'"'}function Fl(i){return'link[rel="stylesheet"]['+i+"]"}function zA(i){return v({},i,{"data-precedence":i.precedence,precedence:null})}function PB(i,s,a,l){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?l.loading=1:(s=i.createElement("link"),l.preload=s,s.addEventListener("load",function(){return l.loading|=1}),s.addEventListener("error",function(){return l.loading|=2}),Vt(s,"link",a),Ct(s),i.head.appendChild(s))}function Fa(i){return'[src="'+Dn(i)+'"]'}function $l(i){return"script[async]"+i}function jA(i,s,a){if(s.count++,s.instance===null)switch(s.type){case"style":var l=i.querySelector('style[data-href~="'+Dn(a.href)+'"]');if(l)return s.instance=l,Ct(l),l;var d=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(i.ownerDocument||i).createElement("style"),Ct(l),Vt(l,"style",d),Vf(l,a.precedence,i),s.instance=l;case"stylesheet":d=Ha(a.href);var p=i.querySelector(Fl(d));if(p)return s.state.loading|=4,s.instance=p,Ct(p),p;l=zA(a),(d=Vn.get(d))&&Fv(l,d),p=(i.ownerDocument||i).createElement("link"),Ct(p);var y=p;return y._p=new Promise(function(S,w){y.onload=S,y.onerror=w}),Vt(p,"link",l),s.state.loading|=4,Vf(p,a.precedence,i),s.instance=p;case"script":return p=Fa(a.src),(d=i.querySelector($l(p)))?(s.instance=d,Ct(d),d):(l=a,(d=Vn.get(p))&&(l=v({},a),$v(l,d)),i=i.ownerDocument||i,d=i.createElement("script"),Ct(d),Vt(d,"link",l),i.head.appendChild(d),s.instance=d);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(l=s.instance,s.state.loading|=4,Vf(l,a.precedence,i));return s.instance}function Vf(i,s,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=l.length?l[l.length-1]:null,p=d,y=0;y<l.length;y++){var S=l[y];if(S.dataset.precedence===s)p=S;else if(p!==d)break}p?p.parentNode.insertBefore(i,p.nextSibling):(s=a.nodeType===9?a.head:a,s.insertBefore(i,s.firstChild))}function Fv(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function $v(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var If=null;function UA(i,s,a){if(If===null){var l=new Map,d=If=new Map;d.set(a,l)}else d=If,l=d.get(a),l||(l=new Map,d.set(a,l));if(l.has(i))return l;for(l.set(i,null),a=a.getElementsByTagName(i),d=0;d<a.length;d++){var p=a[d];if(!(p[ol]||p[zt]||i==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var y=p.getAttribute(s)||"";y=i+y;var S=l.get(y);S?S.push(p):l.set(y,[p])}}return l}function BA(i,s,a){i=i.ownerDocument||i,i.head.insertBefore(a,s==="title"?i.querySelector("head > title"):null)}function HB(i,s,a){if(a===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;return s.rel==="stylesheet"?(i=s.disabled,typeof s.precedence=="string"&&i==null):!0;case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function VA(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function FB(i,s,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=Ha(l.href),p=s.querySelector(Fl(d));if(p){s=p._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(i.count++,i=qf.bind(i),s.then(i,i)),a.state.loading|=4,a.instance=p,Ct(p);return}p=s.ownerDocument||s,l=zA(l),(d=Vn.get(d))&&Fv(l,d),p=p.createElement("link"),Ct(p);var y=p;y._p=new Promise(function(S,w){y.onload=S,y.onerror=w}),Vt(p,"link",l),a.instance=p}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(a,s),(s=a.state.preload)&&(a.state.loading&3)===0&&(i.count++,a=qf.bind(i),s.addEventListener("load",a),s.addEventListener("error",a))}}var Gv=0;function $B(i,s){return i.stylesheets&&i.count===0&&Hf(i,i.stylesheets),0<i.count||0<i.imgCount?function(a){var l=setTimeout(function(){if(i.stylesheets&&Hf(i,i.stylesheets),i.unsuspend){var p=i.unsuspend;i.unsuspend=null,p()}},6e4+s);0<i.imgBytes&&Gv===0&&(Gv=62500*wB());var d=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&Hf(i,i.stylesheets),i.unsuspend)){var p=i.unsuspend;i.unsuspend=null,p()}},(i.imgBytes>Gv?50:800)+s);return i.unsuspend=a,function(){i.unsuspend=null,clearTimeout(l),clearTimeout(d)}}:null}function qf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Hf(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Pf=null;function Hf(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Pf=new Map,s.forEach(GB,i),Pf=null,qf.call(i))}function GB(i,s){if(!(s.state.loading&4)){var a=Pf.get(i);if(a)var l=a.get(null);else{a=new Map,Pf.set(i,a);for(var d=i.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var y=d[p];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),l=y)}l&&a.set(null,l)}d=s.instance,y=d.getAttribute("data-precedence"),p=a.get(y)||l,p===l&&a.set(null,d),a.set(y,d),this.count++,l=qf.bind(this),d.addEventListener("load",l),d.addEventListener("error",l),p?p.parentNode.insertBefore(d,p.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(d,i.firstChild)),s.state.loading|=4}}var Gl={$$typeof:F,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function YB(i,s,a,l,d,p,y,S,w){this.tag=1,this.containerInfo=i,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=qg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qg(0),this.hiddenUpdates=qg(null),this.identifierPrefix=l,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function IA(i,s,a,l,d,p,y,S,w,k,G,Z){return i=new YB(i,s,a,y,w,k,G,Z,S),s=1,p===!0&&(s|=24),p=yn(3,null,null,s),i.current=p,p.stateNode=i,s=wm(),s.refCount++,i.pooledCache=s,s.refCount++,p.memoizedState={element:l,isDehydrated:a,cache:s},Om(p),i}function qA(i){return i?(i=Sa,i):Sa}function PA(i,s,a,l,d,p){d=qA(d),l.context===null?l.context=d:l.pendingContext=d,l=hs(s),l.payload={element:a},p=p===void 0?null:p,p!==null&&(l.callback=p),a=ps(i,l,s),a!==null&&(rn(a,i,s),Tl(a,i,s))}function HA(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var a=i.retryLane;i.retryLane=a!==0&&a<s?a:s}}function Yv(i,s){HA(i,s),(i=i.alternate)&&HA(i,s)}function FA(i){if(i.tag===13||i.tag===31){var s=lr(i,67108864);s!==null&&rn(s,i,67108864),Yv(i,67108864)}}function $A(i){if(i.tag===13||i.tag===31){var s=xn();s=Pg(s);var a=lr(i,s);a!==null&&rn(a,i,s),Yv(i,s)}}var Ff=!0;function XB(i,s,a,l){var d=A.T;A.T=null;var p=N.p;try{N.p=2,Xv(i,s,a,l)}finally{N.p=p,A.T=d}}function KB(i,s,a,l){var d=A.T;A.T=null;var p=N.p;try{N.p=8,Xv(i,s,a,l)}finally{N.p=p,A.T=d}}function Xv(i,s,a,l){if(Ff){var d=Kv(l);if(d===null)Nv(i,s,l,$f,a),YA(i,l);else if(QB(d,i,s,a,l))l.stopPropagation();else if(YA(i,l),s&4&&-1<ZB.indexOf(i)){for(;d!==null;){var p=ca(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var y=ir(p.pendingLanes);if(y!==0){var S=p;for(S.pendingLanes|=2,S.entangledLanes|=2;y;){var w=1<<31-mn(y);S.entanglements[1]|=w,y&=~w}ri(p),(Ie&6)===0&&(Cf=pn()+500,Il(0))}}break;case 31:case 13:S=lr(p,2),S!==null&&rn(S,p,2),Of(),Yv(p,2)}if(p=Kv(l),p===null&&Nv(i,s,l,$f,a),p===d)break;d=p}d!==null&&l.stopPropagation()}else Nv(i,s,l,null,a)}}function Kv(i){return i=Qg(i),Zv(i)}var $f=null;function Zv(i){if($f=null,i=ua(i),i!==null){var s=u(i);if(s===null)i=null;else{var a=s.tag;if(a===13){if(i=c(s),i!==null)return i;i=null}else if(a===31){if(i=f(s),i!==null)return i;i=null}else if(a===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return $f=i,null}function GA(i){switch(i){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(zU()){case eT:return 2;case tT:return 8;case Lc:case jU:return 32;case nT:return 268435456;default:return 32}default:return 32}}var Qv=!1,ws=null,As=null,Cs=null,Yl=new Map,Xl=new Map,Ms=[],ZB="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 YA(i,s){switch(i){case"focusin":case"focusout":ws=null;break;case"dragenter":case"dragleave":As=null;break;case"mouseover":case"mouseout":Cs=null;break;case"pointerover":case"pointerout":Yl.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xl.delete(s.pointerId)}}function Kl(i,s,a,l,d,p){return i===null||i.nativeEvent!==p?(i={blockedOn:s,domEventName:a,eventSystemFlags:l,nativeEvent:p,targetContainers:[d]},s!==null&&(s=ca(s),s!==null&&FA(s)),i):(i.eventSystemFlags|=l,s=i.targetContainers,d!==null&&s.indexOf(d)===-1&&s.push(d),i)}function QB(i,s,a,l,d){switch(s){case"focusin":return ws=Kl(ws,i,s,a,l,d),!0;case"dragenter":return As=Kl(As,i,s,a,l,d),!0;case"mouseover":return Cs=Kl(Cs,i,s,a,l,d),!0;case"pointerover":var p=d.pointerId;return Yl.set(p,Kl(Yl.get(p)||null,i,s,a,l,d)),!0;case"gotpointercapture":return p=d.pointerId,Xl.set(p,Kl(Xl.get(p)||null,i,s,a,l,d)),!0}return!1}function XA(i){var s=ua(i.target);if(s!==null){var a=u(s);if(a!==null){if(s=a.tag,s===13){if(s=c(a),s!==null){i.blockedOn=s,lT(i.priority,function(){$A(a)});return}}else if(s===31){if(s=f(a),s!==null){i.blockedOn=s,lT(i.priority,function(){$A(a)});return}}else if(s===3&&a.stateNode.current.memoizedState.isDehydrated){i.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Gf(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var a=Kv(i.nativeEvent);if(a===null){a=i.nativeEvent;var l=new a.constructor(a.type,a);Zg=l,a.target.dispatchEvent(l),Zg=null}else return s=ca(a),s!==null&&FA(s),i.blockedOn=a,!1;s.shift()}return!0}function KA(i,s,a){Gf(i)&&a.delete(s)}function JB(){Qv=!1,ws!==null&&Gf(ws)&&(ws=null),As!==null&&Gf(As)&&(As=null),Cs!==null&&Gf(Cs)&&(Cs=null),Yl.forEach(KA),Xl.forEach(KA)}function Yf(i,s){i.blockedOn===s&&(i.blockedOn=null,Qv||(Qv=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,JB)))}var Xf=null;function ZA(i){Xf!==i&&(Xf=i,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Xf===i&&(Xf=null);for(var s=0;s<i.length;s+=3){var a=i[s],l=i[s+1],d=i[s+2];if(typeof l!="function"){if(Zv(l||a)===null)continue;break}var p=ca(a);p!==null&&(i.splice(s,3),s-=3,Km(p,{pending:!0,data:d,method:a.method,action:l},l,d))}}))}function $a(i){function s(w){return Yf(w,i)}ws!==null&&Yf(ws,i),As!==null&&Yf(As,i),Cs!==null&&Yf(Cs,i),Yl.forEach(s),Xl.forEach(s);for(var a=0;a<Ms.length;a++){var l=Ms[a];l.blockedOn===i&&(l.blockedOn=null)}for(;0<Ms.length&&(a=Ms[0],a.blockedOn===null);)XA(a),a.blockedOn===null&&Ms.shift();if(a=(i.ownerDocument||i).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var d=a[l],p=a[l+1],y=d[Jt]||null;if(typeof p=="function")y||ZA(a);else if(y){var S=null;if(p&&p.hasAttribute("formAction")){if(d=p,y=p[Jt]||null)S=y.formAction;else if(Zv(d)!==null)continue}else S=y.action;typeof S=="function"?a[l+1]=S:(a.splice(l,3),l-=3),ZA(a)}}}function QA(){function i(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(y){return d=y})},focusReset:"manual",scroll:"manual"})}function s(){d!==null&&(d(),d=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,d=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),d!==null&&(d(),d=null)}}}function Jv(i){this._internalRoot=i}Kf.prototype.render=Jv.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var a=s.current,l=xn();PA(a,l,i,s,null,null)},Kf.prototype.unmount=Jv.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;PA(i.current,2,null,i,null,null),Of(),s[la]=null}};function Kf(i){this._internalRoot=i}Kf.prototype.unstable_scheduleHydration=function(i){if(i){var s=oT();i={blockedOn:null,target:i,priority:s};for(var a=0;a<Ms.length&&s!==0&&s<Ms[a].priority;a++);Ms.splice(a,0,i),a===0&&XA(i)}};var JA=e.version;if(JA!=="19.2.5")throw Error(r(527,JA,"19.2.5"));N.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=g(s),i=i!==null?m(i):null,i=i===null?null:i.stateNode,i};var WB={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zf.isDisabled&&Zf.supportsFiber)try{sl=Zf.inject(WB),gn=Zf}catch{}}return io.createRoot=function(i,s){if(!o(i))throw Error(r(299));var a=!1,l="",d=r2,p=a2,y=o2;return s!=null&&(s.unstable_strictMode===!0&&(a=!0),s.identifierPrefix!==void 0&&(l=s.identifierPrefix),s.onUncaughtError!==void 0&&(d=s.onUncaughtError),s.onCaughtError!==void 0&&(p=s.onCaughtError),s.onRecoverableError!==void 0&&(y=s.onRecoverableError)),s=IA(i,1,!1,null,null,a,l,null,d,p,y,QA),i[la]=s.current,Lv(i),new Jv(s)},io.hydrateRoot=function(i,s,a){if(!o(i))throw Error(r(299));var l=!1,d="",p=r2,y=a2,S=o2,w=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(w=a.formState)),s=IA(i,1,!0,s,a??null,l,d,w,p,y,S,QA),s.context=qA(null),a=s.current,l=xn(),l=Pg(l),d=hs(l),d.callback=null,ps(a,d,l),a=l,s.current.lanes=a,al(s,a),ri(s),i[la]=s.current,Lv(i),new Kf(s)},io.version="19.2.5",io}var n0;function JR(){if(n0)return Fd.exports;n0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Fd.exports=QR(),Fd.exports}var WR=JR(),B=typeof window<"u"?window:void 0,xt=typeof globalThis<"u"?globalThis:B;typeof self>"u"&&(xt.self=xt),typeof File>"u"&&(xt.File=function(){});var on=xt?.navigator,ae=xt?.document,Rt=xt?.location,Xd=xt?.fetch,Kd=xt!=null&&xt.XMLHttpRequest&&"withCredentials"in new xt.XMLHttpRequest?xt.XMLHttpRequest:void 0,i0=xt?.AbortController,eD=xt?.CompressionStream,Kt=on?.userAgent,pe=B??{},s0="1.383.2",wt={DEBUG:!1,LIB_VERSION:s0,LIB_NAME:"web",JS_SDK_VERSION:s0};function r0(t,e,n,r,o,u,c){try{var f=t[u](c),h=f.value}catch(g){return void n(g)}f.done?e(h):Promise.resolve(h).then(r,o)}function ln(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var u=t.apply(e,n);function c(h){r0(u,r,o,c,f,"next",h)}function f(h){r0(u,r,o,c,f,"throw",h)}c(void 0)}))}}function ne(){return ne=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ne.apply(null,arguments)}function a0(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var so,o0=(function(t){return t.GZipJS="gzip-js",t.Base64="base64",t})({}),tD=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],l0="NativeGzipValidationError",Zd=t=>t.length>=2&&t[0]===31&&t[1]===139,u0=t=>!(!t||typeof t!="object")&&("name"in t?String(t.name):"")==="NotReadableError",vu=t=>{var e=new Error("Native gzip produced invalid output: "+t);throw e.name=l0,e},nD=(function(){var t=ln((function*(e,n){18>e.size&&vu("too-short");var r=new Uint8Array(yield e.slice(0,10).arrayBuffer());Zd(r)&&r[2]===8||vu("invalid-header");var o=new DataView(yield e.slice(e.size-8).arrayBuffer());o.getUint32(0,!0)!==(c=>{for(var f=(()=>{if(so)return so;so=[];for(var m=0;256>m;m++){for(var v=m,_=0;8>_;_++)v=1&v?3988292384^v>>>1:v>>>1;so[m]=v>>>0}return so})(),h=4294967295,g=0;c.length>g;g++)h=f[255&(h^c[g])]^h>>>8;return(4294967295^h)>>>0})(n)&&vu("invalid-crc");var u=n.length>>>0;o.getUint32(4,!0)!==u&&vu("invalid-size")}));return function(e,n){return t.apply(this,arguments)}})();function Qd(){return Qd=ln((function*(t,e,n){e===void 0&&(e=!0);try{var r=new TextEncoder().encode(t),o=new CompressionStream("gzip"),u=o.writable.getWriter(),c=u.write(r).then((()=>u.close())).catch((function(){var g=ln((function*(m){try{yield u.abort(m)}catch{}throw m}));return function(m){return g.apply(this,arguments)}})()),f=new Response(o.readable).blob(),[h]=yield Promise.all([f,c]);return yield nD(h,r),h}catch(g){if(n!=null&&n.rethrow)throw g;return e&&console.error("Failed to gzip compress data",g),null}})),Qd.apply(this,arguments)}var iD=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],c0=function(t,e){if(e===void 0&&(e=[]),!t)return!1;var n=t.toLowerCase();return iD.concat(e).some((r=>{var o=r.toLowerCase();return n.indexOf(o)!==-1}))};function Ee(t,e){return t.indexOf(e)!==-1}var yu=function(t){return t.trim()},Jd=function(t){return t.replace(/^\$/,"")},f0=Object.prototype,d0=f0.hasOwnProperty,_u=f0.toString,Oe=Array.isArray||function(t){return _u.call(t)==="[object Array]"},ci=t=>typeof t=="function",ut=t=>t===Object(t)&&!Oe(t),Gi=t=>{if(ut(t)){for(var e in t)if(d0.call(t,e))return!1;return!0}return!1},se=t=>t===void 0,at=t=>_u.call(t)=="[object String]",Wd=t=>at(t)&&t.trim().length===0,un=t=>t===null,Re=t=>se(t)||un(t),Gt=t=>_u.call(t)=="[object Number]"&&t==t,fi=t=>Gt(t)&&t>0,Kn=t=>_u.call(t)==="[object Boolean]",sD=t=>t instanceof FormData,rD=t=>Ee(tD,t);function h0(t){return t===null||typeof t!="object"}function bu(t,e){return{}.toString.call(t)==="[object "+e+"]"}function eh(t){return typeof Event<"u"&&(function(e,n){try{return e instanceof n}catch{return!1}})(t,Event)}var aD=[!0,"true",1,"1","yes"],th=t=>Ee(aD,t),oD=[!1,"false",0,"0","no"];function Zn(t,e,n,r,o){return e>n&&(r.warn("min cannot be greater than max."),e=n),Gt(t)?t>n?(r.warn(" cannot be greater than max: "+n+". Using max value instead."),n):e>t?(r.warn(" cannot be less than min: "+e+". Using min value instead."),e):t:(r.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+o),Zn(o||n,e,n,r))}class lD{constructor(e){this.$t={},this.zt=e.zt,this.Zt=Zn(e.bucketSize,0,100,e.Gt),this.Qt=Zn(e.refillRate,0,this.Zt,e.Gt),this.Jt=Zn(e.refillInterval,0,864e5,e.Gt)}Kt(e,n){var r=Math.floor((n-e.lastAccess)/this.Jt);r>0&&(e.tokens=Math.min(e.tokens+r*this.Qt,this.Zt),e.lastAccess=e.lastAccess+r*this.Jt)}consumeRateLimit(e){var n,r=Date.now(),o=String(e),u=this.$t[o];return u?this.Kt(u,r):this.$t[o]=u={tokens:this.Zt,lastAccess:r},u.tokens===0||(u.tokens--,u.tokens===0&&((n=this.zt)==null||n.call(this,e)),u.tokens===0)}stop(){this.$t={}}}var Su,p0,nh,cn="Mobile",Eu="iOS",di="Android",Or="Tablet",g0=di+" "+Or,m0="iPad",v0="Apple",y0=v0+" Watch",ro="Safari",Rr="BlackBerry",_0="Samsung",b0=_0+"Browser",S0=_0+" Internet",Bs="Chrome",uD=Bs+" OS",E0=Bs+" "+Eu,ih="Internet Explorer",x0=ih+" "+cn,sh="Opera",cD=sh+" Mini",rh="Edge",T0="Microsoft "+rh,Dr="Firefox",w0=Dr+" "+Eu,ao="Nintendo",oo="PlayStation",kr="Xbox",A0=di+" "+cn,C0=cn+" "+ro,lo="Windows",ah=lo+" Phone",M0="Nokia",oh="Ouya",O0="Generic",fD=O0+" "+cn.toLowerCase(),R0=O0+" "+Or.toLowerCase(),lh="Konqueror",D0="Oculus Browser",xu="Vivaldi",k0="Yandex",Tu="Whale",uh="DuckDuckGo",L0="Pale Moon",wu="Waterfox",uo="Brave",ct="(\\d+(\\.\\d+)?)",ch=new RegExp("Version/"+ct),dD=new RegExp(kr,"i"),hD=new RegExp(oo+" \\w+","i"),pD=new RegExp(ao+" \\w+","i"),fh=new RegExp(Rr+"|PlayBook|BB10","i"),gD={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},N0=function(t,e,n){e=e||"";var r=(function(o){return o!=null&&o.brave?uo:null})(n);return r||(Ee(t," OPR/")&&Ee(t,"Mini")?cD:Ee(t," OPR/")?sh:fh.test(t)?Rr:Ee(t,"IE"+cn)||Ee(t,"WPDesktop")?x0:Ee(t,"OculusBrowser")?D0:Ee(t,b0)?S0:Ee(t,rh)||Ee(t,"Edg/")?T0:Ee(t,xu+"/")?xu:Ee(t,"YaBrowser/")?k0:Ee(t,Tu+"/")?Tu:Ee(t,uh+"/")||Ee(t,"Ddg/")?uh:Ee(t,"FBIOS")?"Facebook "+cn:Ee(t,"UCWEB")||Ee(t,"UCBrowser")?"UC Browser":Ee(t,"CriOS")?E0:Ee(t,"CrMo")||Ee(t,Bs)?Bs:Ee(t,di)&&Ee(t,ro)?A0:Ee(t,"FxiOS")?w0:Ee(t.toLowerCase(),lh.toLowerCase())?lh:Ee(t,uo+"/")?uo:((o,u)=>u&&Ee(u,v0)||(function(c){return Ee(c,ro)&&!Ee(c,Bs)&&!Ee(c,di)})(o))(t,e)?Ee(t,cn)?C0:ro:Ee(t,"PaleMoon/")?L0:Ee(t,wu+"/")?wu:Ee(t,Dr)?Dr:Ee(t,"MSIE")||Ee(t,"Trident/")?ih:Ee(t,"Gecko")?Dr:"")},mD={[x0]:[new RegExp("rv:"+ct)],[T0]:[new RegExp(rh+"?\\/"+ct)],[Bs]:[new RegExp("("+Bs+"|CrMo)\\/"+ct)],[E0]:[new RegExp("CriOS\\/"+ct)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+ct)],[ro]:[ch],[C0]:[ch],[sh]:[new RegExp("(Opera|OPR)\\/"+ct)],[Dr]:[new RegExp(Dr+"\\/"+ct)],[w0]:[new RegExp("FxiOS\\/"+ct)],[lh]:[new RegExp("Konqueror[:/]?"+ct,"i")],[Rr]:[new RegExp(Rr+" "+ct),ch],[A0]:[new RegExp("android\\s"+ct,"i")],[S0]:[new RegExp(b0+"\\/"+ct)],[D0]:[new RegExp("OculusBrowser\\/"+ct)],[xu]:[new RegExp(xu+"\\/"+ct)],[k0]:[new RegExp("YaBrowser\\/"+ct)],[Tu]:[new RegExp(Tu+"\\/"+ct)],[uo]:[new RegExp(uo+"\\/"+ct)],[uh]:[new RegExp("(DuckDuckGo|Ddg)\\/"+ct)],[L0]:[new RegExp("PaleMoon\\/"+ct)],[wu]:[new RegExp(wu+"\\/"+ct)],[ih]:[new RegExp("(rv:|MSIE )"+ct)],Mozilla:[new RegExp("rv:"+ct)]},vD=function(t,e,n){var r=N0(t,e,n),o=mD[r];if(se(o))return null;for(var u=0;o.length>u;u++){var c=t.match(o[u]);if(c)return parseFloat(c[c.length-2])}return null},z0=[[new RegExp(kr+"; "+kr+" (.*?)[);]","i"),t=>[kr,t&&t[1]||""]],[new RegExp(ao,"i"),[ao,""]],[new RegExp(oo,"i"),[oo,""]],[fh,[Rr,""]],[new RegExp(lo,"i"),(t,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[ah,""];if(new RegExp(cn).test(e)&&!/IEMobile\b/.test(e))return[lo+" "+cn,""];var n=/Windows NT ([0-9.]+)/i.exec(e);if(n&&n[1]){var r=gD[n[1]]||"";return/arm/i.test(e)&&(r="RT"),[lo,r]}return[lo,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>t&&t[3]?[Eu,[t[3],t[4],t[5]||"0"].join(".")]:[Eu,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var e="";return t&&t.length>=3&&(e=se(t[2])?t[3]:t[2]),["watchOS",e]}],[new RegExp("("+di+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+di+")","i"),t=>t&&t[2]?[di,[t[2],t[3],t[4]||"0"].join(".")]:[di,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,t=>{var e=["Mac OS X",""];return t&&t[1]&&(e[1]=[t[1],t[2],t[3]||"0"].join(".")),e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[uD,""]],[/Linux|debian/i,["Linux",""]]],j0=function(t){return pD.test(t)?ao:hD.test(t)?oo:dD.test(t)?kr:new RegExp(oh,"i").test(t)?oh:new RegExp("("+ah+"|WPDesktop)","i").test(t)?ah:/iPad/.test(t)?m0:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?y0:fh.test(t)?Rr:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(M0,"i").test(t)?M0:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(cn).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?di:g0:new RegExp("(pda|"+cn+")","i").test(t)?fD:new RegExp(Or,"i").test(t)&&!new RegExp(Or+" pc","i").test(t)?R0:""},yD=t=>t instanceof Error,U0={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},_D=U0.info;function B0(t){if(Kn(t))return{boolValue:t};if(typeof t=="number")return Number.isFinite(t)?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:{stringValue:String(t)};if(typeof t=="string")return{stringValue:t};if(Oe(t))return{arrayValue:{values:t.map((e=>B0(e)))}};try{return{stringValue:JSON.stringify(t)}}catch{return{stringValue:String(t)}}}function V0(t){var e=[];for(var n in t){var r=t[n];un(r)||se(r)||e.push({key:n,value:B0(r)})}return e}function bD(t){var e=globalThis._posthogChunkIds;if(e){var n=Object.keys(e);return nh&&n.length===p0||(p0=n.length,nh=n.reduce(((r,o)=>{Su||(Su={});var u=Su[o];if(u)r[u[0]]=u[1];else for(var c=t(o),f=c.length-1;f>=0;f--){var h=c[f],g=h?.filename,m=e[o];if(g&&m){r[g]=m,Su[o]=[g,m];break}}return r}),{})),nh}}class SD{constructor(e,n,r){r===void 0&&(r=[]),this.coercers=e,this.stackParser=n,this.modifiers=r}buildFromUnknown(e,n){n===void 0&&(n={});var r=n&&n.mechanism||{handled:!0,type:"generic"},o=this.buildCoercingContext(r,n,0).apply(e),u=this.buildParsingContext(n),c=this.parseStacktrace(o,u);return{$exception_list:this.convertToExceptionList(c,r),$exception_level:"error"}}modifyFrames(e){var n=this;return ln((function*(){for(var r of e)r.stacktrace&&r.stacktrace.frames&&Oe(r.stacktrace.frames)&&(r.stacktrace.frames=yield n.applyModifiers(r.stacktrace.frames));return e}))()}coerceFallback(e){var n;return{type:"Error",value:"Unknown error",stack:(n=e.syntheticException)==null?void 0:n.stack,synthetic:!0}}parseStacktrace(e,n){var r,o;return e.cause!=null&&(r=this.parseStacktrace(e.cause,n)),e.stack!=""&&e.stack!=null&&(o=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?n.skipFirstLines:0),n.chunkIdMap)),ne({},e,{cause:r,stack:o})}applyChunkIds(e,n){return e.map((r=>(r.filename&&n&&(r.chunk_id=n[r.filename]),r)))}applyCoercers(e,n){for(var r of this.coercers)if(r.match(e))return r.coerce(e,n);return this.coerceFallback(n)}applyModifiers(e){var n=this;return ln((function*(){var r=e;for(var o of n.modifiers)r=yield o(r);return r}))()}convertToExceptionList(e,n){var r,o,u,c={type:e.type,value:e.value,mechanism:{type:(r=n.type)!==null&&r!==void 0?r:"generic",handled:(o=n.handled)===null||o===void 0||o,synthetic:(u=e.synthetic)!==null&&u!==void 0&&u}};e.stack&&(c.stacktrace={type:"raw",frames:e.stack});var f=[c];return e.cause!=null&&f.push(...this.convertToExceptionList(e.cause,ne({},n,{handled:!0}))),f}buildParsingContext(e){var n;return{chunkIdMap:bD(this.stackParser),skipFirstLines:(n=e.skipFirstLines)!==null&&n!==void 0?n:1}}buildCoercingContext(e,n,r){r===void 0&&(r=0);var o=(u,c)=>{if(4>=c){var f=this.buildCoercingContext(e,n,c);return this.applyCoercers(u,f)}};return ne({},n,{syntheticException:r==0?n.syntheticException:void 0,mechanism:e,apply:u=>o(u,r),next:u=>o(u,r+1)})}}var Lr="?";function dh(t,e,n,r,o){var u={platform:t,filename:e,function:n==="<anonymous>"?Lr:n,in_app:!0};return se(r)||(u.lineno=r),se(o)||(u.colno=o),u}var I0=(t,e)=>{var n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Lr,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]},ED=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,xD=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,TD=/\((\S*)(?::(\d+))(?::(\d+))\)/,wD=(t,e)=>{var n=ED.exec(t);if(n){var[,r,o,u]=n;return dh(e,r,Lr,+o,+u)}var c=xD.exec(t);if(c){if(c[2]&&c[2].indexOf("eval")===0){var f=TD.exec(c[2]);f&&(c[2]=f[1],c[3]=f[2],c[4]=f[3])}var[h,g]=I0(c[1]||Lr,c[2]);return dh(e,g,h,c[3]?+c[3]:void 0,c[4]?+c[4]:void 0)}},AD=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,CD=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,MD=(t,e)=>{var n=AD.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=CD.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var o=n[3],u=n[1]||Lr;return[u,o]=I0(u,o),dh(e,o,u,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},q0=/\(error: (.*)\)/;class OD{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,n){var r=at(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:r?e.stack:void 0,cause:e.cause?n.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var n=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?n+": "+e.message:n}isDOMException(e){return bu(e,"DOMException")}isDOMError(e){return bu(e,"DOMError")}}class RD{match(e){return(n=>n instanceof Error)(e)}coerce(e,n){return{type:this.getType(e),value:this.getMessage(e,n),stack:this.getStack(e),cause:e.cause?n.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,n){var r=e.message;return String(r.error&&typeof r.error.message=="string"?r.error.message:r)}getStack(e){return e.stacktrace||e.stack||void 0}}class DD{constructor(){}match(e){return bu(e,"ErrorEvent")&&e.error!=null}coerce(e,n){var r;return n.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}var kD=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class LD{match(e){return typeof e=="string"}coerce(e,n){var r,[o,u]=this.getInfos(e);return{type:o??"Error",value:u??e,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}getInfos(e){var n="Error",r=e,o=e.match(kD);return o&&(n=o[1],r=o[2]),[n,r]}}var ND=["fatal","error","warning","log","info","debug"];function P0(t,e){e===void 0&&(e=40);var n=Object.keys(t);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(e>=o.length)return r===n.length?o:o.length>e?o.slice(0,e)+"...":o}return""}class zD{match(e){return typeof e=="object"&&e!==null}coerce(e,n){var r,o=this.getErrorPropertyFromObject(e);return o?n.apply(o):{type:this.getType(e),value:this.getValue(e),stack:(r=n.syntheticException)==null?void 0:r.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return eh(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&typeof e.name=="string"){var n="'"+e.name+"' captured as exception";return"message"in e&&typeof e.message=="string"&&(n+=" with message: '"+e.message+"'"),n}if("message"in e&&typeof e.message=="string")return e.message;var r=this.getObjectClassName(e);return(r&&r!=="Object"?"'"+r+"'":"Object")+" captured as exception with keys: "+P0(e)}isSeverityLevel(e){return at(e)&&!Wd(e)&&ND.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var n in e)if({}.hasOwnProperty.call(e,n)){var r=e[n];if(yD(r))return r}}getObjectClassName(e){try{var n=Object.getPrototypeOf(e);return n?n.constructor.name:void 0}catch{return}}}class jD{match(e){return eh(e)}coerce(e,n){var r,o=e.constructor.name;return{type:o,value:o+" captured as exception with keys: "+P0(e),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class UD{match(e){return h0(e)}coerce(e,n){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class BD{match(e){return bu(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!eh(e))return!1;try{var n=e.detail;return n!=null&&typeof n=="object"&&"reason"in n}catch{return!1}}coerce(e,n){var r,o=this.getUnhandledRejectionReason(e);return h0(o)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(o),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}:n.apply(o)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&e.detail!=null&&typeof e.detail=="object"&&"reason"in e.detail)return e.detail.reason}catch{}return e}}var Au="$message",Cu="$timestamp",VD=new Set([Au,Cu]),hh={enabled:!0,max_bytes:32768};function Mu(t){var e;return t?{enabled:(e=t.enabled)!==null&&e!==void 0?e:hh.enabled,max_bytes:qD(t.max_bytes,hh.max_bytes)}:ne({},hh)}class ID{constructor(e){this.Yt=[],this.Xt=0,this.qt=Mu(e)}setConfig(e){this.qt=Mu(e),this.er()}add(e){var n=(function(o){var u=(function(m){var v=new WeakSet;try{return JSON.stringify(m,((_,b)=>{if(typeof b=="bigint")return b.toString();if(typeof b!="function"&&typeof b!="symbol"){if(b instanceof Date)return b.toISOString();if(b instanceof Error)return{name:b.name,message:b.message,stack:b.stack};if(b&&typeof b=="object"){if(v.has(b))return"[Circular]";v.add(b)}return b}}))}catch{return}})(o);if(u)try{var c=JSON.parse(u);if(!ut(c))return;var f=c,h=f[Au],g=f[Cu];return!at(h)||h.trim().length===0||!at(g)&&!Gt(g)?void 0:{step:f,json:u}}catch{return}})(e);if(n){var r=(function(o){if(typeof TextEncoder<"u")return new TextEncoder().encode(o).length;for(var u=encodeURIComponent(o),c=0,f=0;u.length>f;f++)u[f]==="%"?(c+=1,f+=2):c+=1;return c})(n.json);r>this.qt.max_bytes||(this.Yt.push({step:n.step,bytes:r}),this.Xt+=r,this.er())}}getAttachable(){return this.Yt.map((e=>e.step))}clear(){this.Yt=[],this.Xt=0}size(){return this.Yt.length}er(){for(;this.Xt>this.qt.max_bytes&&this.Yt.length>0;){var e=this.Yt.shift();e&&(this.Xt-=e.bytes)}}}function qD(t,e){if(!Gt(t)||t===1/0||t===-1/0)return e;var n=Math.floor(t);return 0>n?e:n}var H0=function(t,e){var{debugEnabled:n}=e===void 0?{}:e,r={k(o){if(B&&(wt.DEBUG||pe.POSTHOG_DEBUG||n)&&!se(B.console)&&B.console){for(var u=("__rrweb_original__"in B.console[o])?B.console[o].__rrweb_original__:B.console[o],c=arguments.length,f=new Array(c>1?c-1:0),h=1;c>h;h++)f[h-1]=arguments[h];u(t,...f)}},debug(){for(var o=arguments.length,u=new Array(o),c=0;o>c;c++)u[c]=arguments[c];r.k("debug",...u)},info(){for(var o=arguments.length,u=new Array(o),c=0;o>c;c++)u[c]=arguments[c];r.k("log",...u)},warn(){for(var o=arguments.length,u=new Array(o),c=0;o>c;c++)u[c]=arguments[c];r.k("warn",...u)},error(){for(var o=arguments.length,u=new Array(o),c=0;o>c;c++)u[c]=arguments[c];r.k("error",...u)},critical(){for(var o=arguments.length,u=new Array(o),c=0;o>c;c++)u[c]=arguments[c];console.error(t,...u)},uninitializedWarning(o){r.error("You must initialize PostHog before calling "+o)},createLogger:(o,u)=>H0(t+" "+o,u)};return r},re=H0("[PostHog.js]"),ot=re.createLogger,PD=ot("[ExternalScriptsLoader]"),ph=(t,e,n)=>{if(t.config.disable_external_dependency_loading)return PD.warn(e+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var r=ae?.querySelectorAll("script");if(r){for(var o,u=function(){if(r[c].src===e){var h=r[c];return h.__posthog_loading_callback_fired?{v:n()}:(h.addEventListener("load",(g=>{h.__posthog_loading_callback_fired=!0,n(void 0,g)})),h.onerror=g=>n(g),{v:void 0})}},c=0;r.length>c;c++)if(o=u())return o.v}var f=()=>{if(!ae)return n("document not found");var h=ae.createElement("script");if(h.type="text/javascript",h.crossOrigin="anonymous",h.src=e,h.onload=v=>{h.__posthog_loading_callback_fired=!0,n(void 0,v)},h.onerror=v=>n(v),t.config.prepare_external_dependency_script&&(h=t.config.prepare_external_dependency_script(h)),!h)return n("prepare_external_dependency_script returned null");if(t.config.external_scripts_inject_target==="head")ae.head.appendChild(h);else{var g,m=ae.querySelectorAll("body > script");m.length>0?(g=m[0].parentNode)==null||g.insertBefore(h,m[0]):ae.body.appendChild(h)}};ae!=null&&ae.body?f():ae?.addEventListener("DOMContentLoaded",f)};pe.__PosthogExtensions__=pe.__PosthogExtensions__||{},pe.__PosthogExtensions__.loadExternalDependency=(t,e,n)=>{if(e!=="remote-config"){var r;if(t.config.__preview_external_dependency_versioned_paths)r=t.requestRouter.endpointFor("assets","/static/"+t.version+"/"+e+".js");else{var o="/static/"+e+".js?v="+t.version;if(e==="toolbar"){var u=3e5;o=o+"&t="+Math.floor(Date.now()/u)*u}r=t.requestRouter.endpointFor("assets",o)}ph(t,r,n)}else{var c=t.requestRouter.endpointFor("assets","/array/"+t.config.token+"/config.js");ph(t,c,n)}},pe.__PosthogExtensions__.loadSiteApp=(t,e,n)=>{var r=t.requestRouter.endpointFor("api",e);ph(t,r,n)};var F0="$people_distinct_id",Ou="$device_id",co="__alias",fo="__timers",gh="$autocapture_disabled_server_side",mh="$heatmaps_enabled_server_side",vh="$exception_capture_enabled_server_side",yh="$error_tracking_suppression_rules",_h="$error_tracking_capture_extension_exceptions",bh="$web_vitals_enabled_server_side",Sh="$dead_clicks_enabled_server_side",Eh="$product_tours_enabled_server_side",xh="$web_vitals_allowed_metrics",Vs="$session_recording_remote_config",$0="$replay_override_sampling",G0="$replay_override_linked_flag",Y0="$replay_override_url_trigger",X0="$replay_override_event_trigger",Nr="$sesid",Th="$session_is_sampled",zr="$enabled_feature_flags",Ru="$active_feature_flags",ho="$early_access_features",wh="$feature_flag_details",Ah="$feature_flag_payloads",Ch="$feature_flag_request_id",hi="$override_feature_flags",jr="$override_feature_flag_payloads",po="$stored_person_properties",Is="$stored_group_properties",Mh="$surveys",Oh="$surveys_loaded_at",Rh="$surveys_activated",Du="ph_product_tours",go="$flag_call_reported",Dh="$flag_call_reported_session_id",kh="$feature_flag_errors",mo="$feature_flag_evaluated_at",Pn="$user_state",Lh="$client_session_props",Nh="$capture_rate_limit",zh="$initial_campaign_params",jh="$initial_referrer_info",ku="$initial_person_info",Lu="$epp",K0="__POSTHOG_TOOLBAR__",Nu="$posthog_cookieless",Z0="$sdk_debug_extensions_init_method",Q0="$sdk_debug_extensions_init_time_ms",J0="$sdk_debug_recording_script_not_loaded",Uh="PostHog loadExternalDependency extension not found.",qs="on_reject",pi="always",Ur="anonymous",Br="identified",Bh="identified_only",zu="visibilitychange",ju="beforeunload",Vr="$pageview",Vh="$pageleave",Ih="$identify",W0="$groupidentify";function Uu(t,e){Oe(t)&&t.forEach(e)}function Ze(t,e){if(!Re(t))if(Oe(t))t.forEach(e);else if(sD(t))t.forEach(((r,o)=>e(r,o)));else for(var n in t)d0.call(t,n)&&e(t[n],n)}var We=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;e>r;r++)n[r-1]=arguments[r];for(var o of n)for(var u in o)o[u]!==void 0&&(t[u]=o[u]);return t};function Bu(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}var eb=function(t){try{return t()}catch{return}},HD=function(t){return function(){try{for(var e=arguments.length,n=new Array(e),r=0;e>r;r++)n[r]=arguments[r];return t.apply(this,n)}catch(o){re.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),re.critical(o)}}},qh=function(t){var e={};return Ze(t,(function(n,r){(at(n)&&n.length>0||Gt(n))&&(e[r]=n)})),e},FD=["herokuapp.com","vercel.app","netlify.app"];function $D(t){var e=t?.hostname;if(!at(e))return!1;var n=e.split(".").slice(-2).join(".");for(var r of FD)if(n===r)return!1;return!0}function dt(t,e,n,r){var{capture:o=!1,passive:u=!0}=r??{};t?.addEventListener(e,n,{capture:o,passive:u})}function tb(t){return t.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return Gt(t)&&isFinite(t)&&Math.floor(t)===t});class Vu{constructor(e){if(this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,n,r,o){if(!Number.isInteger(e)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(o)||0>e||0>n||0>r||0>o||e>0xffffffffffff||n>4095||r>1073741823||o>4294967295)throw new RangeError("invalid field value");var u=new Uint8Array(16);return u[0]=e/Math.pow(2,40),u[1]=e/Math.pow(2,32),u[2]=e/Math.pow(2,24),u[3]=e/Math.pow(2,16),u[4]=e/Math.pow(2,8),u[5]=e,u[6]=112|n>>>8,u[7]=n,u[8]=128|r>>>24,u[9]=r>>>16,u[10]=r>>>8,u[11]=r,u[12]=o>>>24,u[13]=o>>>16,u[14]=o>>>8,u[15]=o,new Vu(u)}toString(){for(var e="",n=0;this.bytes.length>n;n++)e=e+(this.bytes[n]>>>4).toString(16)+(15&this.bytes[n]).toString(16),n!==3&&n!==5&&n!==7&&n!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new Vu(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var n=0;16>n;n++){var r=this.bytes[n]-e.bytes[n];if(r!==0)return Math.sign(r)}return 0}}class GD{constructor(){this.S=0,this.C=0,this.I=new YD}generate(){var e=this.generateOrAbort();if(se(e)){this.S=0;var n=this.generateOrAbort();if(se(n))throw new Error("Could not generate UUID after timestamp reset");return n}return e}generateOrAbort(){var e=Date.now();if(e>this.S)this.S=e,this.T();else{if(this.S>=e+1e4)return;this.C++,this.C>4398046511103&&(this.S++,this.T())}return Vu.fromFieldsV7(this.S,Math.trunc(this.C/Math.pow(2,30)),this.C&Math.pow(2,30)-1,this.I.nextUint32())}T(){this.C=1024*this.I.nextUint32()+(1023&this.I.nextUint32())}}var nb,ib=t=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;t.length>e;e++)t[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};B&&!se(B.crypto)&&crypto.getRandomValues&&(ib=t=>crypto.getRandomValues(t));class YD{constructor(){this.M=new Uint32Array(8),this.R=1/0}nextUint32(){return this.M.length>this.R||(ib(this.M),this.R=0),this.M[this.R++]}}var Yi=()=>XD().toString(),XD=()=>(nb||(nb=new GD)).generate(),vo="",KD=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Qn={O:()=>!!ae,D(t){re.error("cookieStore error: "+t)},A(t){if(ae){try{for(var e=t+"=",n=ae.cookie.split(";").filter((u=>u.length)),r=0;n.length>r;r++){for(var o=n[r];o.charAt(0)==" ";)o=o.substring(1,o.length);if(o.indexOf(e)===0)return decodeURIComponent(o.substring(e.length,o.length))}}catch{}return null}},F(t){var e;try{e=JSON.parse(Qn.A(t))||{}}catch{}return e},N(t,e,n,r,o){if(!ae)return!1;try{var u="",c="",f=(function(m,v){if(v){var _=(function(x,E){if(E===void 0&&(E=ae),vo)return vo;if(!E||["localhost","127.0.0.1"].includes(x))return"";for(var M=x.split("."),R=Math.min(M.length,8),q="dmn_chk_"+Yi();!vo&&R--;){var F=M.slice(R).join("."),K=q+"=1;domain=."+F+";path=/";E.cookie=K+";max-age=3",E.cookie.includes(q)&&(E.cookie=K+";max-age=0",vo=F)}return vo})(m);if(!_){var b=(x=>{var E=x.match(KD);return E?E[0]:""})(m);b!==_&&re.info("Warning: cookie subdomain discovery mismatch",b,_),_=b}return _?"; domain=."+_:""}return""})(ae.location.hostname,r);if(n){var h=new Date;h.setTime(h.getTime()+864e5*n),u="; expires="+h.toUTCString()}o&&(c="; secure");var g=t+"="+encodeURIComponent(JSON.stringify(e))+u+"; SameSite=Lax; path=/"+f+c;return g.length>3686.4&&re.warn("cookieStore warning: large cookie, len="+g.length),ae.cookie=g,!0}catch{return!1}},q(t,e){if(ae!=null&&ae.cookie)try{Qn.N(t,"",-1,e)}catch{return}}},Ph=null,Xe={O(){if(!un(Ph))return Ph;var t=!0;if(se(B))t=!1;else try{var e="__mplssupport__";Xe.N(e,"xyz"),Xe.A(e)!=='"xyz"'&&(t=!1),Xe.q(e)}catch{t=!1}return t||re.error("localStorage unsupported; falling back to cookie store"),Ph=t,t},D(t){re.error("localStorage error: "+t)},A(t){try{return B?.localStorage.getItem(t)}catch(e){Xe.D(e)}return null},F(t){try{return JSON.parse(Xe.A(t))||{}}catch{}return null},N(t,e){try{return B?.localStorage.setItem(t,JSON.stringify(e)),!0}catch(n){Xe.D(n)}return!1},q(t){try{B?.localStorage.removeItem(t)}catch(e){Xe.D(e)}}},ZD=[Ou,"distinct_id",Nr,Th,Lu,ku,Pn],Iu={},QD={O:()=>!0,D(t){re.error("memoryStorage error: "+t)},A:t=>Iu[t]||null,F:t=>Iu[t]||null,N:(t,e)=>(Iu[t]=e,!0),q(t){delete Iu[t]}},Ps=null,Dt={O(){if(!un(Ps))return Ps;if(Ps=!0,se(B))Ps=!1;else try{var t="__support__";Dt.N(t,"xyz"),Dt.A(t)!=='"xyz"'&&(Ps=!1),Dt.q(t)}catch{Ps=!1}return Ps},D(t){re.error("sessionStorage error: ",t)},A(t){try{return B?.sessionStorage.getItem(t)}catch(e){Dt.D(e)}return null},F(t){try{return JSON.parse(Dt.A(t))||null}catch{}return null},N(t,e){try{return B?.sessionStorage.setItem(t,JSON.stringify(e)),!0}catch(n){Dt.D(n)}return!1},q(t){try{B?.sessionStorage.removeItem(t)}catch(e){Dt.D(e)}}};class JD{constructor(e){this._instance=e}get qt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.qt.cookieless_mode===pi||this.isRejected()||this.consent===-1&&this.qt.cookieless_mode===qs}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.qt.opt_out_capturing_by_default}optInOut(e){this.nr.N(this.sr,e?1:0,this.qt.cookie_expiration,this.qt.cross_subdomain_cookie,this.qt.secure_cookie)}reset(){this.nr.q(this.sr,this.qt.cross_subdomain_cookie)}get sr(){var{token:e,opt_out_capturing_cookie_prefix:n,consent_persistence_name:r}=this._instance.config;return r||(n?n+e:"__ph_opt_in_out_"+e)}get ir(){var e=this.nr.A(this.sr);return th(e)?1:Ee(oD,e)?0:-1}get nr(){var e=this.qt.opt_out_capturing_persistence_type,n=e==="localStorage"?Xe:Qn;if(!this.ar||this.ar!==n){this.ar=n;var r=e==="localStorage"?Qn:Xe;r.A(this.sr)&&(this.ar.A(this.sr)||this.optInOut(th(r.A(this.sr))),r.q(this.sr,this.qt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.qt.respect_dnt&&[on?.doNotTrack,on?.msDoNotTrack,pe.doNotTrack].some((e=>th(e)))}}var WD=1,e3=3,t3=11;function sb(t){return t instanceof Element&&(t.id===K0||!(t.closest==null||!t.closest(".toolbar-global-fade-container")))}function Xi(t){return!!t&&t.nodeType===WD}function fn(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function rb(t){return!!t&&t.nodeType===e3}function ab(t){return!!t&&t.nodeType===t3&&Xi(t.host)}function Hh(t){return t?yu(t).split(/\s+/):[]}function ob(t){var e=B?.location.href;return!!(e&&t&&t.some((n=>e.match(n))))}function qu(t){var e="";switch(typeof t.className){case"string":e=t.className;break;case"object":e=(t.className&&"baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:e=""}return Hh(e)}function lb(t){return Re(t)?null:yu(t).split(/(\s+)/).filter((e=>_o(e))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function yo(t){var e="";return Yh(t)&&!mb(t)&&t.childNodes&&t.childNodes.length&&Ze(t.childNodes,(function(n){var r;rb(n)&&n.textContent&&(e+=(r=lb(n.textContent))!==null&&r!==void 0?r:"")})),yu(e)}function Fh(t){return se(t.target)?t.srcElement||null:(e=t.target)!=null&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e}var $h=["a","button","form","input","select","textarea","label"];function ub(t,e){if(se(e))return!0;var n,r=function(u){if(e.some((c=>u.matches(c))))return{v:!0}};for(var o of t)if(n=r(o))return n.v;return!1}function cb(t){var e=t.parentNode;return!(!e||!Xi(e))&&e}var fb=["next","previous","prev",">","<"],n3=[...fb,"+","-","−","–"],db=(t,e)=>/[a-z0-9]/i.test(e)?t.includes(e):t===e,hb=[".ph-no-rageclick",".ph-no-capture"],i3=["","text","search","email","password","url","tel","number"];function pb(t,e){if(!B||Gh(t))return!1;var n,r,o,u,c;if(Kn(e)?(n=!!e&&hb,r=void 0,o=!1):(n=(u=e?.css_selector_ignorelist)!==null&&u!==void 0?u:hb,r=e?.content_ignorelist,o=(c=e?.ignore_text_selection)!==null&&c!==void 0&&c),n===!1||o&&(function(h){return!(!h||!Xi(h))&&(!!fn(h,"textarea")||(fn(h,"input")?Ee(i3,(h.getAttribute("type")||"").toLowerCase()):(function(g){if(g.isContentEditable)return!0;var m=g.getAttribute==null?void 0:g.getAttribute("contenteditable");return m==="true"||m===""})(h)))})(t))return!1;var{targetElementList:f}=gb(t,!1);return!(function(h,g){if(h===!1||se(h))return!1;var m;if(h===!0)m=fb;else{if(!Oe(h))return!1;if(h.length>10)return re.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;m=h.map((v=>v.toLowerCase()))}return g.some((v=>{var{safeText:_,ariaLabel:b}=v;return m.some((x=>db(_,x)||db(b,x)))}))})(r,f.map((h=>{var g;return{safeText:yo(h).toLowerCase(),ariaLabel:((g=h.getAttribute("aria-label"))==null?void 0:g.toLowerCase().trim())||""}})))&&!ub(f,n)}var Gh=t=>!t||fn(t,"html")||!Xi(t),gb=(t,e)=>{if(!B||Gh(t))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[t],o=t;o.parentNode&&!fn(o,"body");)if(ab(o.parentNode))r.push(o.parentNode.host),o=o.parentNode.host;else{var u=cb(o);if(!u)break;if(e||$h.indexOf(u.tagName.toLowerCase())>-1)n=!0;else{var c=B.getComputedStyle(u);c&&c.getPropertyValue("cursor")==="pointer"&&(n=!0)}r.push(u),o=u}return{parentIsUsefulElement:n,targetElementList:r}};function Yh(t){for(var e=t;e.parentNode&&!fn(e,"body");e=e.parentNode){var n=qu(e);if(Ee(n,"ph-sensitive")||Ee(n,"ph-no-capture"))return!1}if(Ee(qu(t),"ph-include"))return!0;var r=t.type||"";if(at(r))switch(r.toLowerCase()){case"hidden":case"password":return!1}var o=t.name||t.id||"";return!at(o)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(o.replace(/[^a-zA-Z0-9]/g,""))}function mb(t){return!!(fn(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||fn(t,"select")||fn(t,"textarea")||t.getAttribute("contenteditable")==="true")}var vb="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",s3=new RegExp("^(?:"+vb+")$"),r3=new RegExp(vb),yb="\\d{3}-?\\d{2}-?\\d{4}",a3=new RegExp("^("+yb+")$"),o3=new RegExp("("+yb+")");function _o(t,e){return e===void 0&&(e=!0),!(Re(t)||at(t)&&(t=yu(t),(e?s3:r3).test((t||"").replace(/[- ]/g,""))||(e?a3:o3).test(t)))}function _b(t){var e=yo(t);return _o(e=(e+" "+bb(t)).trim())?e:""}function bb(t){var e="";return t&&t.childNodes&&t.childNodes.length&&Ze(t.childNodes,(function(n){var r;if(n&&((r=n.tagName)==null?void 0:r.toLowerCase())==="span")try{var o=yo(n);e=(e+" "+o).trim(),n.childNodes&&n.childNodes.length&&(e=(e+" "+bb(n)).trim())}catch(u){re.error("[AutoCapture]",u)}})),e}function Sb(t){return t.replace(/"|\\"/g,'\\"')}function l3(t){var e=t.attr__class;return e?Oe(e)?e:Hh(e):void 0}var Pu=ot("[Dead Clicks]"),u3=()=>!0,c3=t=>{var e,n=!((e=t.instance.persistence)==null||!e.get_property(Sh)),r=t.instance.config.capture_dead_clicks;return Kn(r)?r:!!ut(r)||n};class Eb{get lazyLoadedDeadClicksAutocapture(){return this.ur}constructor(e,n,r){this.instance=e,this.isEnabled=n,this.onCapture=r,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[Sh]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.lr((()=>{this.hr()})):this.stop()}lr(e){var n,r;(n=pe.__PosthogExtensions__)!=null&&n.initDeadClicksAutocapture&&e(),(r=pe.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",(o=>{o?Pu.error("failed to load script",o):e()}))}hr(){var e;if(ae){if(!this.ur&&(e=pe.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var n=ut(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};n.__onCapture=this.onCapture,this.ur=pe.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,n),this.ur.start(ae),Pu.info("starting...")}}else Pu.error("`document` not found. Cannot start.")}stop(){this.ur&&(this.ur.stop(),this.ur=void 0,Pu.info("stopping..."))}}var Xh=ot("[SegmentIntegration]"),xb="posthog-js";function Tb(t,e){var{organization:n,projectId:r,prefix:o,severityAllowList:u=["error"],sendExceptionsToPostHog:c=!0}=e===void 0?{}:e;return f=>{var h,g,m,v,_;if(u!=="*"&&!u.includes(f.level)||!t.__loaded)return f;f.tags||(f.tags={});var b=t.requestRouter.endpointFor("ui","/project/"+t.config.token+"/person/"+t.get_distinct_id());f.tags["PostHog Person URL"]=b,t.sessionRecordingStarted()&&(f.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var x,E=((h=f.exception)==null?void 0:h.values)||[],M=E.map((q=>ne({},q,{stacktrace:q.stacktrace?ne({},q.stacktrace,{type:"raw",frames:(q.stacktrace.frames||[]).map((F=>ne({},F,{platform:"web:javascript"})))}):void 0}))),R={$exception_message:((g=E[0])==null?void 0:g.value)||f.message,$exception_type:(m=E[0])==null?void 0:m.type,$exception_level:f.level,$exception_list:M,$sentry_event_id:f.event_id,$sentry_exception:f.exception,$sentry_exception_message:((v=E[0])==null?void 0:v.value)||f.message,$sentry_exception_type:(_=E[0])==null?void 0:_.type,$sentry_tags:f.tags};return n&&r&&(R.$sentry_url=(o||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+f.event_id),c&&((x=t.exceptions)==null||x.sendExceptionEvent(R)),f}}class f3{constructor(e,n,r,o,u,c){this.name=xb,this.setupOnce=function(f){f(Tb(e,{organization:n,projectId:r,prefix:o,severityAllowList:u,sendExceptionsToPostHog:c==null||c}))}}}class wb{constructor(e){this.cr=(n,r,o)=>{o&&(o.noSessionId||o.activityTimeout||o.sessionPastMaximumLength)&&(re.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:n,changeReason:o}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.vr()}vr(){var e;this.pr=(e=this._instance.sessionManager)==null?void 0:e.onSessionId(this.cr)}destroy(){var e;(e=this.pr)==null||e.call(this),this.pr=void 0}doPageView(e,n){var r,o=this.gr(e,n);return this.dr={pathname:(r=B?.location.pathname)!==null&&r!==void 0?r:"",pageViewId:n,timestamp:e},this._instance.scrollManager.resetContext(),o}doPageLeave(e){var n;return this.gr(e,(n=this.dr)==null?void 0:n.pageViewId)}doEvent(){var e;return{$pageview_id:(e=this.dr)==null?void 0:e.pageViewId}}gr(e,n){var r=this.dr;if(!r)return{$pageview_id:n};var o={$pageview_id:n,$prev_pageview_id:r.pageViewId},u=this._instance.scrollManager.getContext();if(u&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:c,lastScrollY:f,maxScrollY:h,maxContentHeight:g,lastContentY:m,maxContentY:v}=u;if(!(se(c)||se(f)||se(h)||se(g)||se(m)||se(v))){c=Math.ceil(c),f=Math.ceil(f),h=Math.ceil(h),g=Math.ceil(g),m=Math.ceil(m),v=Math.ceil(v);var _=c>1?Zn(f/c,0,1,re):1,b=c>1?Zn(h/c,0,1,re):1,x=g>1?Zn(m/g,0,1,re):1,E=g>1?Zn(v/g,0,1,re):1;o=We(o,{$prev_pageview_last_scroll:f,$prev_pageview_last_scroll_percentage:_,$prev_pageview_max_scroll:h,$prev_pageview_max_scroll_percentage:b,$prev_pageview_last_content:m,$prev_pageview_last_content_percentage:x,$prev_pageview_max_content:v,$prev_pageview_max_content_percentage:E})}}return r.pathname&&(o.$prev_pageview_pathname=r.pathname),r.timestamp&&(o.$prev_pageview_duration=(e.getTime()-r.timestamp.getTime())/1e3),o}}var Hu=["flags","surveys"],d3={[F0]:{exposure:"hidden"},[co]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[fo]:{exposure:"hidden"},[gh]:{exposure:"event"},[mh]:{exposure:"hidden"},[vh]:{exposure:"event"},[yh]:{exposure:"hidden"},[_h]:{exposure:"event"},[bh]:{exposure:"event"},[Sh]:{exposure:"event"},[Eh]:{exposure:"hidden"},[xh]:{exposure:"event"},[Vs]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[Nr]:{exposure:"hidden"},[Th]:{exposure:"event"},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},[zr]:{exposure:"derived",storageGroup:"flags",shouldSkipFromEventProperties:(t,e)=>e(),transformToEventProperties(t){if(!ut(t))return{};for(var e={},n=Object.keys(t),r=0;n.length>r;r++)e["$feature/"+n[r]]=t[n[r]];return e}},[Ru]:{exposure:"event",storageGroup:"flags"},[ho]:{exposure:"hidden"},[wh]:{exposure:"hidden",storageGroup:"flags"},[Ah]:{exposure:"event",storageGroup:"flags"},[Ch]:{exposure:"event",storageGroup:"flags"},[hi]:{exposure:"event"},[jr]:{exposure:"hidden"},[po]:{exposure:"hidden"},[Is]:{exposure:"hidden"},[Mh]:{exposure:"hidden",storageGroup:"surveys"},[Oh]:{exposure:"hidden",storageGroup:"surveys"},[Rh]:{exposure:"event"},[Du]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[go]:{exposure:"hidden"},[Dh]:{exposure:"hidden"},[kh]:{exposure:"hidden"},[mo]:{exposure:"hidden",storageGroup:"flags"},[Pn]:{exposure:"hidden"},[Lh]:{exposure:"hidden"},[Nh]:{exposure:"hidden"},[zh]:{exposure:"hidden"},[jh]:{exposure:"hidden"},[ku]:{exposure:"hidden"},[Lu]:{exposure:"hidden"},[$0]:{exposure:"event"},[G0]:{exposure:"event"},[Y0]:{exposure:"event"},[X0]:{exposure:"event"},[Z0]:{exposure:"event"},[Q0]:{exposure:"event"},[J0]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},h3=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],bo=t=>{var e=d3[t];if(e)return e;for(var[n,r]of h3)if(t.indexOf(n)===0)return r},Fu=t=>{var e=ae?.createElement("a");return se(e)?null:(e.href=t,e)},So=function(t,e){for(var n,r=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),o=0;r.length>o;o++){var u=r[o].split("=");if(u[0]===e){n=u;break}}if(!Oe(n)||2>n.length)return"";var c=n[1];try{c=decodeURIComponent(c)}catch{re.error("Skipping decoding for malformed query param: "+c)}return c.replace(/\+/g," ")},Eo=function(t,e,n){if(!t||!e||!e.length)return t;for(var r=t.split("#"),o=r[1],u=(r[0]||"").split("?"),c=u[1],f=u[0],h=(c||"").split("&"),g=[],m=0;h.length>m;m++){var v=h[m].split("=");Oe(v)&&(e.includes(v[0])?g.push(v[0]+"="+n):g.push(h[m]))}var _=f;return c!=null&&(_+="?"+g.join("&")),o!=null&&(_+="#"+o),_},$u=function(t,e){var n=t.match(new RegExp(e+"=([^&]*)"));return n?n[1]:null},Gu="https?://(.*)",Ir=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],p3=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Ir],xo="<masked>",g3=["li_fat_id"];function Ab(t,e,n){if(!ae)return{};var r,o=e?[...Ir,...n||[]]:[],u=Cb(Eo(ae.URL,o,xo),t),c=(r={},Ze(g3,(function(f){var h=Qn.A(f);r[f]=h||null})),r);return We(c,u)}function Cb(t,e){var n=p3.concat(e||[]),r={};return Ze(n,(function(o){var u=So(t,o);r[o]=u||null})),r}function Mb(t){var e=(function(u){return u?u.search(Gu+"google.([^/?]*)")===0?"google":u.search(Gu+"bing.com")===0?"bing":u.search(Gu+"yahoo.com")===0?"yahoo":u.search(Gu+"duckduckgo.com")===0?"duckduckgo":null:null})(t),n=e!="yahoo"?"q":"p",r={};if(!un(e)){r.$search_engine=e;var o=ae?So(ae.referrer,n):"";o.length&&(r.ph_keyword=o)}return r}function Ob(){return navigator.language||navigator.userLanguage}var Yu="$direct";function Rb(){return ae?.referrer||Yu}function Db(t,e){var n=t?[...Ir,...e||[]]:[],r=Rt?.href.substring(0,1e3);return{r:Rb().substring(0,1e3),u:r?Eo(r,n,xo):void 0}}function kb(t){var e,{r:n,u:r}=t,o={$referrer:n,$referring_domain:n==null?void 0:n==Yu?Yu:(e=Fu(n))==null?void 0:e.host};if(r){o.$current_url=r;var u=Fu(r);o.$host=u?.host,o.$pathname=u?.pathname;var c=Cb(r);We(o,c)}if(n){var f=Mb(n);We(o,f)}return o}function Lb(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function m3(){try{return new Date().getTimezoneOffset()}catch{return}}var v3={flags:mo,surveys:Oh},y3=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],qr="main";class Kh{constructor(e,n,r){if(r===void 0&&(r=!0),this.mr={},this.yr=!1,this.br=!1,this.qt=e,this._r=r,this.props={},this.wr=!1,this.Sr=(u=>{var c="";return u.token&&(c=u.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),u.persistence_name?"ph_"+u.persistence_name:"ph_"+c+"_posthog"})(e),this.nr=this.kr(e),this.br=this.Cr(e),this.load(),e.debug&&re.info("Persistence loaded",e.persistence,ne({},this.props)),this.update_config(e,e,n),this.save(),B){var o=()=>this.flush();dt(B,"beforeunload",o,{capture:!1}),dt(B,"pagehide",o,{capture:!1})}}Ir(){var e,n=(e=this.qt)==null?void 0:e.persistence_save_debounce_ms;return Gt(n)&&n>0?n:0}isDisabled(){return!!this.Tr}kr(e){y3.indexOf(e.persistence.toLowerCase())===-1&&(re.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var n,r=(function(c,f){c===void 0&&(c=[]),f===void 0&&(f=!1);var h=[...ZD,...c];return ne({},Xe,{F(g){try{var m={};try{m=Qn.F(g)||{}}catch{}var v,_=JSON.parse(Xe.A(g)||"{}");if(f){var b={};for(var x in m){var E=m[x];un(E)||E===""||(b[x]=E)}v=We(_,b)}else v=We(m,_);return Xe.N(g,v),v}catch{}return null},N(g,m,v,_,b,x){var E=Xe.N(g,m,void 0,void 0,x);try{var M={};h.forEach((R=>{m[R]&&(M[R]=m[R])})),Object.keys(M).length&&Qn.N(g,M,v,_,b,x)}catch(R){Xe.D(R)}return E},q(g,m){try{B?.localStorage.removeItem(g),Qn.q(g,m)}catch(v){Xe.D(v)}}})})(e.cookie_persisted_properties||[],e.__preview_cookie_wins_on_conflict||!1),o=!1,u=e.persistence.toLowerCase();return u==="localstorage"&&Xe.O()?(n=Xe,o=!0):u==="localstorage+cookie"&&r.O()?(n=r,o=!0):u==="sessionstorage"&&Dt.O()?n=Dt:u==="memory"?n=QD:u==="cookie"?n=Qn:r.O()?(n=r,o=!0):n=Qn,this.yr=o,n}Er(e){return this.Sr+"__"+e}Cr(e){return this.yr&&!!e.split_storage}Mr(e){var n=e??this.qt.feature_flag_cache_ttl_ms;if(!n||0>=n)return!1;var r=this.props[mo];return!r||typeof r!="number"||Date.now()-r>n}properties(){var e={};return Ze(this.props,((n,r)=>{var o=bo(r);if(o?.exposure==="derived"){if(o.shouldSkipFromEventProperties!=null&&o.shouldSkipFromEventProperties(n,r===zr?()=>this.Mr():()=>!1))return;o.transformToEventProperties&&We(e,o.transformToEventProperties(n))}else o&&o.exposure!=="event"||(e[r]=n)})),e}load(){if(!this.Tr){var e=this.nr.F(this.Sr);e&&(this.props=We({},e)),this.br&&this.Rr()}}Rr(){for(var e of Hu){var n=Xe.F(this.Er(e));if(n&&!Gi(n)){var r=this.Pr(e);r.persisted=!0,this.Or(e)||(r.fingerprint=this.Lr(n,e)),this.Fr(e,n)||We(this.props,n)}}}Or(e){return Object.keys(this.props).some((n=>{var r;return((r=bo(n))==null?void 0:r.storageGroup)===e}))}Fr(e,n){var r=v3[e];if(!r)return!1;var o=n[r],u=this.props[r];return Gt(o)&&Gt(u)&&u>o}refreshKey(e){var n;if(!this.Tr){var r=this.br?(n=bo(e))==null?void 0:n.storageGroup:void 0,o=r?Xe.F(this.Er(r)):this.nr.F(this.Sr);if(o&&e in o)this.Ar(e,o[e]);else{if(r){var u=this.nr.F(this.Sr);if(u&&e in u)return void this.Ar(e,u[e])}this.Nr(e)}}}save(){if(!this.Tr){var e=this.Ir();e>0?se(this.Dr)&&(this.Dr=setTimeout((()=>{this.Dr=void 0,this.$r()}),e)):this.$r()}}flush(){se(this.Dr)||(clearTimeout(this.Dr),this.Dr=void 0,this.$r())}$r(){this.Tr||(this.br?this.qr():this.jr(this.nr,this.Sr,this.props,qr))}qr(){var{main:e,groups:n}=this.Hr();for(var r of(this.jr(this.nr,this.Sr,e,qr),Hu)){var o,u=n[r];(!Gi(u)||(o=this.mr[r])!=null&&o.persisted)&&this.jr(Xe,this.Er(r),u,r)}}Hr(){var e={},n={};for(var r of Hu)n[r]={};return Ze(this.props,((o,u)=>{var c,f=(c=bo(u))==null?void 0:c.storageGroup;f?n[f][u]=o:e[u]=o})),{main:e,groups:n}}Lr(e,n){var r=JSON.stringify(e);return n===qr?r+"|"+this.Ur+"|"+this.Br+"|"+this.zr:r}jr(e,n,r,o){var u=this.Pr(o);if(o===qr||u.dirty||se(u.fingerprint)){var c;try{if((c=this.Lr(r,o))===u.fingerprint)return void(u.dirty=!1)}catch{c=void 0}e.N(n,r,this.Ur,this.Br,this.zr,this.qt.debug)?(u.dirty=!1,o!==qr&&(u.persisted=!0),se(c)||(u.fingerprint=c)):this.qt.debug&&re.warn('failed to persist storage entry "'+n+'"; will retry on next save')}}remove(e){var{keepGroupEntries:n=!1}=e===void 0?{}:e;if(se(this.Dr)||(clearTimeout(this.Dr),this.Dr=void 0),this.nr.q(this.Sr,!1),this.nr.q(this.Sr,!0),!n&&this._r)for(var r of Hu)Xe.q(this.Er(r));n?delete this.mr[qr]:this.mr={}}clear(){this.remove(),this.props={}}register_once(e,n,r){if(ut(e)){se(n)&&(n="None"),this.Ur=se(r)?this.Vr:r;var o=!1;if(Ze(e,((u,c)=>{this.props.hasOwnProperty(c)&&this.props[c]!==n||(this.Ar(c,u),o=!0)})),o)return this.save(),!0}return!1}register(e,n){if(ut(e)){this.Ur=se(n)?this.Vr:n;var r=!1;if(Ze(e,((o,u)=>{e.hasOwnProperty(u)&&this.props[u]!==o&&(this.Ar(u,o),r=!0)})),r)return this.save(),!0}return!1}unregister(e){e in this.props&&(this.Nr(e),this.save())}update_campaign_params(){if(!this.wr){var e=Ab(this.qt.custom_campaign_params,this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties);Gi(qh(e))||this.register(e),this.wr=!0}}update_search_keyword(){var e;this.register((e=ae?.referrer)?Mb(e):{})}update_referrer_info(){var e;this.register_once({$referrer:Rb(),$referring_domain:ae!=null&&ae.referrer&&((e=Fu(ae.referrer))==null?void 0:e.host)||Yu},void 0)}set_initial_person_info(){this.props[zh]||this.props[jh]||this.register_once({[ku]:Db(this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};Ze([jh,zh],(c=>{var f=this.props[c];f&&Ze(f,(function(h,g){e["$initial_"+Jd(g)]=h}))}));var n,r,o=this.props[ku];if(o){var u=(n=kb(o),r={},Ze(n,(function(c,f){r["$initial_"+Jd(f)]=c})),r);We(e,u)}return e}safe_merge(e){return Ze(this.props,(function(n,r){r in e||(e[r]=n)})),e}update_config(e,n,r){this.Vr=this.Ur=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!r),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie);var o=e.persistence!==n.persistence||!((h,g)=>{if(h.length!==g.length)return!1;var m=[...h].sort(),v=[...g].sort();return m.every(((_,b)=>_===v[b]))})(e.cookie_persisted_properties||[],n.cookie_persisted_properties||[]),u=o?this.kr(e):this.nr,c=this.Cr(e);if(o||c!==this.br){var f=this.props;this.clear(),this.nr=u,this.br=c,this.props=f,this.save()}}set_disabled(e){this.Tr=e,this.Tr?this.remove():this.save()}set_cross_subdomain(e){e!==this.Br&&(this.Br=e,this.remove({keepGroupEntries:!0}),this.save())}set_secure(e){e!==this.zr&&(this.zr=e,this.remove({keepGroupEntries:!0}),this.save())}set_event_timer(e,n){var r=this.props[fo]||{};r[e]=n,this.Ar(fo,r),this.save()}remove_event_timer(e){var n=this.props[fo]||{},r=n[e];return se(r)||(delete n[e],this.Ar(fo,n),this.save()),r}get_property(e){return this.props[e]}set_property(e,n){this.Ar(e,n),this.save()}Ar(e,n){this.props[e]=n,this.Wr(e)}Nr(e){delete this.props[e],this.Wr(e)}Wr(e){var n,r=(n=bo(e))==null?void 0:n.storageGroup;r&&(this.Pr(r).dirty=!0)}Pr(e){return this.mr[e]||(this.mr[e]={})}}var To={Activation:"events",Cancellation:"cancelEvents"},Zh={Popover:"popover",API:"api",Widget:"widget"},wo={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},Qh={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},Jh={Popover:"popover",Inline:"inline"},_3={SHOWN:"product tour shown"},Nb={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},zb=ot("[RateLimiter]");class b3{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=n=>{var r=n.text;if(r&&r.length)try{(JSON.parse(r).quota_limited||[]).forEach((o=>{zb.info((o||"events")+" is quota limited."),this.serverLimits[o]=new Date().getTime()+6e4}))}catch(o){return void zb.warn('could not rate limit - continuing. Error: "'+o?.message+'"',{text:r})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return((e=this.instance.config.rate_limiting)==null?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max(((e=this.instance.config.rate_limiting)==null?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var n,r,o;e===void 0&&(e=!1);var{captureEventsBurstLimit:u,captureEventsPerSecond:c}=this,f=new Date().getTime(),h=(n=(r=this.instance.persistence)==null?void 0:r.get_property(Nh))!==null&&n!==void 0?n:{tokens:u,last:f};h.tokens+=(f-h.last)/1e3*c,h.last=f,h.tokens>u&&(h.tokens=u);var g=1>h.tokens;return g||e||(h.tokens=Math.max(0,h.tokens-1)),!g||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+c+" events per second and "+u+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=g,(o=this.instance.persistence)==null||o.set_property(Nh,h),{isRateLimited:g,remainingTokens:h.tokens}}isServerRateLimited(e){var n=this.serverLimits[e||"events"]||!1;return n!==!1&&new Date().getTime()<n}}var Ao=ot("[RemoteConfig]");class jb{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=pe._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}Zr(e){var n,r;(n=pe.__PosthogExtensions__)!=null&&n.loadExternalDependency?(r=pe.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"remote-config",(()=>e(this.remoteConfig))):e()}Gr(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(n){e(n.json)}})}load(){try{if(this.remoteConfig)return Ao.info("Using preloaded remote config",this.remoteConfig),this.Qr(this.remoteConfig),void this.Jr();if(this._instance.Kr())return void Ao.warn("Remote config is disabled. Falling back to local config.");this.Zr((e=>{if(!e)return Ao.info("No config found after loading remote JS config. Falling back to JSON."),void this.Gr((n=>{this.Qr(n),this.Jr()}));this.Qr(e),this.Jr()}))}catch(e){Ao.error("Error loading remote config",e)}}stop(){this.Yr&&(clearInterval(this.Yr),this.Yr=void 0)}refresh(){!this._instance.Kr()&&ae&&ae.visibilityState!=="hidden"&&this._instance.reloadFeatureFlags()}Jr(){var e;if(!this.Yr){var n=(e=this._instance.config.remote_config_refresh_interval_ms)!==null&&e!==void 0?e:3e5;n!==0&&(this.Yr=setInterval((()=>{this.refresh()}),n))}}Qr(e){var n;e||Ao.error("Failed to fetch remote config from PostHog."),this._instance.Qr(e??{}),e?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(n=this._instance.featureFlags)==null||n.ensureFlagsLoaded())}}var Jn={GZipJS:"gzip-js",Base64:"base64"},wn=Uint8Array,Zt=Uint16Array,Pr=Uint32Array,Wh=new wn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ep=new wn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ub=new wn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Bb=function(t,e){for(var n=new Zt(31),r=0;31>r;++r)n[r]=e+=1<<t[r-1];var o=new Pr(n[30]);for(r=1;30>r;++r)for(var u=n[r];n[r+1]>u;++u)o[u]=u-n[r]<<5|r;return[n,o]},Vb=Bb(Wh,2),tp=Vb[1];Vb[0][28]=258,tp[258]=28;for(var Ib=Bb(ep,0)[1],qb=new Zt(32768),et=0;32768>et;++et){var Hr=(43690&et)>>>1|(21845&et)<<1;qb[et]=((65280&(Hr=(61680&(Hr=(52428&Hr)>>>2|(13107&Hr)<<2))>>>4|(3855&Hr)<<4))>>>8|(255&Hr)<<8)>>>1}var Co=function(t,e,n){for(var r=t.length,o=0,u=new Zt(e);r>o;++o)++u[t[o]-1];var c,f=new Zt(e);for(o=0;e>o;++o)f[o]=f[o-1]+u[o-1]<<1;for(c=new Zt(r),o=0;r>o;++o)c[o]=qb[f[t[o]-1]++]>>>15-t[o];return c},Hs=new wn(288);for(et=0;144>et;++et)Hs[et]=8;for(et=144;256>et;++et)Hs[et]=9;for(et=256;280>et;++et)Hs[et]=7;for(et=280;288>et;++et)Hs[et]=8;var Xu=new wn(32);for(et=0;32>et;++et)Xu[et]=5;var S3=Co(Hs,9),E3=Co(Xu,5),Pb=function(t){return(t/8>>0)+(7&t&&1)},Hb=function(t,e,n){(n==null||n>t.length)&&(n=t.length);var r=new(t instanceof Zt?Zt:t instanceof Pr?Pr:wn)(n-e);return r.set(t.subarray(e,n)),r},gi=function(t,e,n){var r=e/8>>0;t[r]|=n<<=7&e,t[r+1]|=n>>>8},Mo=function(t,e,n){var r=e/8>>0;t[r]|=n<<=7&e,t[r+1]|=n>>>8,t[r+2]|=n>>>16},np=function(t,e){for(var n=[],r=0;t.length>r;++r)t[r]&&n.push({s:r,f:t[r]});var o=n.length,u=n.slice();if(!o)return[new wn(0),0];if(o==1){var c=new wn(n[0].s+1);return c[n[0].s]=1,[c,1]}n.sort((function(U,Q){return U.f-Q.f})),n.push({s:-1,f:25001});var f=n[0],h=n[1],g=0,m=1,v=2;for(n[0]={s:-1,f:f.f+h.f,l:f,r:h};m!=o-1;)f=n[n[v].f>n[g].f?g++:v++],h=n[g!=m&&n[v].f>n[g].f?g++:v++],n[m++]={s:-1,f:f.f+h.f,l:f,r:h};var _=u[0].s;for(r=1;o>r;++r)u[r].s>_&&(_=u[r].s);var b=new Zt(_+1),x=ip(n[m-1],b,0);if(x>e){r=0;var E=0,M=x-e,R=1<<M;for(u.sort((function(U,Q){return b[Q.s]-b[U.s]||U.f-Q.f}));o>r;++r){var q=u[r].s;if(e>=b[q])break;E+=R-(1<<x-b[q]),b[q]=e}for(E>>>=M;E>0;){var F=u[r].s;e>b[F]?E-=1<<e-b[F]++-1:++r}for(;r>=0&&E;--r){var K=u[r].s;b[K]==e&&(--b[K],++E)}x=e}return[new wn(b),x]},ip=function(t,e,n){return t.s==-1?Math.max(ip(t.l,e,n+1),ip(t.r,e,n+1)):e[t.s]=n},Fb=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new Zt(++e),r=0,o=t[0],u=1,c=function(h){n[r++]=h},f=1;e>=f;++f)if(t[f]==o&&f!=e)++u;else{if(!o&&u>2){for(;u>138;u-=138)c(32754);u>2&&(c(u>10?u-11<<5|28690:u-3<<5|12305),u=0)}else if(u>3){for(c(o),--u;u>6;u-=6)c(8304);u>2&&(c(u-3<<5|8208),u=0)}for(;u--;)c(o);u=1,o=t[f]}return[n.subarray(0,r),e]},Oo=function(t,e){for(var n=0,r=0;e.length>r;++r)n+=t[r]*e[r];return n},sp=function(t,e,n){var r=n.length,o=Pb(e+2);t[o]=255&r,t[o+1]=r>>>8,t[o+2]=255^t[o],t[o+3]=255^t[o+1];for(var u=0;r>u;++u)t[o+u+4]=n[u];return 8*(o+4+r)},$b=function(t,e,n,r,o,u,c,f,h,g,m){gi(e,m++,n),++o[256];for(var v=np(o,15),_=v[0],b=v[1],x=np(u,15),E=x[0],M=x[1],R=Fb(_),q=R[0],F=R[1],K=Fb(E),U=K[0],Q=K[1],P=new Zt(19),I=0;q.length>I;++I)P[31&q[I]]++;for(I=0;U.length>I;++I)P[31&U[I]]++;for(var $=np(P,7),ee=$[0],le=$[1],ie=19;ie>4&&!ee[Ub[ie-1]];--ie);var he,ye,L,A,N=g+5<<3,J=Oo(o,Hs)+Oo(u,Xu)+c,te=Oo(o,_)+Oo(u,E)+c+14+3*ie+Oo(P,ee)+(2*P[16]+3*P[17]+7*P[18]);if(J>=N&&te>=N)return sp(e,m,t.subarray(h,h+g));if(gi(e,m,1+(J>te)),m+=2,J>te){he=Co(_,b),ye=_,L=Co(E,M),A=E;var ue=Co(ee,le);for(gi(e,m,F-257),gi(e,m+5,Q-1),gi(e,m+10,ie-4),m+=14,I=0;ie>I;++I)gi(e,m+3*I,ee[Ub[I]]);m+=3*ie;for(var T=[q,U],j=0;2>j;++j){var W=T[j];for(I=0;W.length>I;++I)gi(e,m,ue[H=31&W[I]]),m+=ee[H],H>15&&(gi(e,m,W[I]>>>5&127),m+=W[I]>>>12)}}else he=S3,ye=Hs,L=E3,A=Xu;for(I=0;f>I;++I)if(r[I]>255){var H;Mo(e,m,he[257+(H=r[I]>>>18&31)]),m+=ye[H+257],H>7&&(gi(e,m,r[I]>>>23&31),m+=Wh[H]);var oe=31&r[I];Mo(e,m,L[oe]),m+=A[oe],oe>3&&(Mo(e,m,r[I]>>>5&8191),m+=ep[oe])}else Mo(e,m,he[r[I]]),m+=ye[r[I]];return Mo(e,m,he[256]),m+ye[256]},x3=new Pr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),T3=(function(){for(var t=new Pr(256),e=0;256>e;++e){for(var n=e,r=9;--r;)n=(1&n&&3988292384)^n>>>1;t[e]=n}return t})(),rp=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8};function w3(t,e){e===void 0&&(e={});var n=(function(){var v=4294967295;return{p(_){for(var b=v,x=0;_.length>x;++x)b=T3[255&b^_[x]]^b>>>8;v=b},d(){return 4294967295^v}}})(),r=t.length;n.p(t);var o,u,c,f,h,g=(f=10+((o=e).filename&&o.filename.length+1||0),h=8,(function(v,_,b,x,E,M){var R=v.length,q=new wn(x+R+5*(1+Math.floor(R/7e3))+E),F=q.subarray(x,q.length-E),K=0;if(!_||8>R)for(var U=0;R>=U;U+=65535){var Q=U+65535;R>Q?K=sp(F,K,v.subarray(U,Q)):(F[U]=!0,K=sp(F,K,v.subarray(U,R)))}else{for(var P=x3[_-1],I=P>>>13,$=8191&P,ee=(1<<b)-1,le=new Zt(32768),ie=new Zt(ee+1),he=Math.ceil(b/3),ye=2*he,L=function(il){return(v[il]^v[il+1]<<he^v[il+2]<<ye)&ee},A=new Pr(25e3),N=new Zt(288),J=new Zt(32),te=0,ue=0,T=(U=0,0),j=0,W=0;R>U;++U){var H=L(U),oe=32767&U,ge=ie[H];if(le[oe]=ge,ie[H]=oe,U>=j){var Me=R-U;if((te>7e3||T>24576)&&Me>423){K=$b(v,F,0,A,N,J,ue,T,W,U-W,K),T=te=ue=0,W=U;for(var je=0;286>je;++je)N[je]=0;for(je=0;30>je;++je)J[je]=0}var Ue=2,it=0,Ft=$,At=oe-ge&32767;if(Me>2&&H==L(U-At))for(var tr=Math.min(I,Me)-1,Qt=Math.min(32767,U),ss=Math.min(258,Me);Qt>=At&&--Ft&&oe!=ge;){if(v[U+Ue]==v[U+Ue-At]){for(var Yt=0;ss>Yt&&v[U+Yt]==v[U+Yt-At];++Yt);if(Yt>Ue){if(Ue=Yt,it=At,Yt>tr)break;var Ei=Math.min(At,Yt-2),ti=0;for(je=0;Ei>je;++je){var nr=U-At+je+32768&32767,aa=nr-le[nr]+32768&32767;aa>ti&&(ti=aa,ge=nr)}}}At+=(oe=ge)-(ge=le[oe])+32768&32767}if(it){A[T++]=268435456|tp[Ue]<<18|Ib[it];var oa=31&tp[Ue],kc=31&Ib[it];ue+=Wh[oa]+ep[kc],++N[257+oa],++J[kc],j=U+Ue,++te}else A[T++]=v[U],++N[v[U]]}}K=$b(v,F,!0,A,N,J,ue,T,W,U-W,K)}return Hb(q,0,x+Pb(K)+E)})(u=t,(c=e).level==null?6:c.level,c.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(u.length)))):12+c.mem,f,h)),m=g.length;return(function(v,_){var b=_.filename;if(v[0]=31,v[1]=139,v[2]=8,v[8]=2>_.level?4:_.level==9?2:0,v[9]=3,_.mtime!=0&&rp(v,4,Math.floor(new Date(_.mtime||Date.now())/1e3)),b){v[3]=8;for(var x=0;b.length>=x;++x)v[x+10]=b.charCodeAt(x)}})(g,e),rp(g,m-8,n.d()),rp(g,m-4,r),g}var A3=!!Kd||!!Xd,Gb="text/plain",Ku=!1,C3=(t,e)=>{var[n,r]=t.split("#"),[o,u]=n.split("?");if(!u)return t;var c=u.split("&").filter((f=>f.split("=")[0]!==e)).join("&");return o+(c?"?"+c:"")+(r?"#"+r:"")},Zu=function(t,e,n){var r;n===void 0&&(n=!0);var[o,u]=t.split("?"),c=ne({},e),f=(r=u?.split("&").map((g=>{var m,[v,_]=g.split("="),b=n&&(m=c[v])!==null&&m!==void 0?m:_;return delete c[v],v+"="+b})))!==null&&r!==void 0?r:[],h=(function(g,m){var v,_;m===void 0&&(m="&");var b=[];return Ze(g,(function(x,E){se(x)||se(E)||E==="undefined"||(v=encodeURIComponent((M=>M instanceof File)(x)?x.name:x.toString()),_=encodeURIComponent(E),b[b.length]=_+"="+v)})),b.join(m)})(c);return h&&f.push(h),o+"?"+f.join("&")},Fr=(t,e)=>JSON.stringify(t,((n,r)=>typeof r=="bigint"?r.toString():r),e),Yb=t=>{if(t.tr)return t.tr;var{data:e,compression:n}=t;if(e){if(n===Jn.GZipJS){var r=w3((function(f,h){var g=f.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(f);for(var m=new wn(f.length+(f.length>>>1)),v=0,_=function(M){m[v++]=M},b=0;g>b;++b){if(v+5>m.length){var x=new wn(v+8+(g-b<<1));x.set(m),m=x}var E=f.charCodeAt(b);128>E?_(E):2048>E?(_(192|E>>>6),_(128|63&E)):E>55295&&57344>E?(_(240|(E=65536+(1047552&E)|1023&f.charCodeAt(++b))>>>18),_(128|E>>>12&63),_(128|E>>>6&63),_(128|63&E)):(_(224|E>>>12),_(128|E>>>6&63),_(128|63&E))}return Hb(m,0,v)})(Fr(e)),{mtime:0});return{contentType:Gb,body:r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength),estimatedSize:r.byteLength}}if(n===Jn.Base64){var o=(function(f){return f&&btoa(encodeURIComponent(f).replace(/%([0-9A-F]{2})/g,((h,g)=>String.fromCharCode(parseInt(g,16)))))})(Fr(e)),u=(f=>"data="+encodeURIComponent(typeof f=="string"?f:Fr(f)))(o);return{contentType:"application/x-www-form-urlencoded",body:u,estimatedSize:new Blob([u]).size}}var c=Fr(e);return{contentType:"application/json",body:c,estimatedSize:new Blob([c]).size}}},ap=t=>{var e,n,r,o=Yb(t);return!o||(n=t.compression,r=So(t.url,"compression"),n!==o0.GZipJS&&r!==o0.GZipJS&&r!=="gzip")||((e=o.body)instanceof ArrayBuffer?Zd(new Uint8Array(e)):ArrayBuffer.isView(e)&&Zd(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)))?{url:t.url,encodedBody:o}:(Ku=!0,{url:C3(t.url,"compression"),encodedBody:Yb(ne({},t,{compression:void 0,tr:void 0}))})},M3=(function(){var t=ln((function*(e){var n=Fr(e.data),r=yield(function(u,c,f){return Qd.apply(this,arguments)})(n,wt.DEBUG,{rethrow:!0});if(!r)return e;var o=yield r.arrayBuffer();return ne({},e,{tr:{contentType:Gb,body:o,estimatedSize:o.byteLength}})}));return function(e){return t.apply(this,arguments)}})(),Xb=(t,e)=>Zu(t,{_:new Date().getTime().toString(),ver:wt.JS_SDK_VERSION,compression:e}),Qu=[];Xd&&Qu.push({transport:"fetch",method(t){var e,{url:n,encodedBody:r}=ap(t),{contentType:o,body:u,estimatedSize:c}=r??{},f=new Headers;Ze(t.headers,(function(m,v){f.append(v,m)})),o&&f.append("Content-Type",o);var h=null;if(i0){var g=new i0;h={signal:g.signal,timeout:setTimeout((()=>g.abort()),t.timeout)}}Xd(n,ne({method:t?.method||"GET",headers:f,keepalive:t.method==="POST"&&52428.8>(c||0),body:u,signal:(e=h)==null?void 0:e.signal},t.fetchOptions)).then((m=>m.text().then((v=>{var _={statusCode:m.status,text:v};if(m.status===200)try{_.json=JSON.parse(v)}catch(b){re.error(b)}t.callback==null||t.callback(_)})))).catch((m=>{re.error(m),t.callback==null||t.callback({statusCode:0,error:m})})).finally((()=>h?clearTimeout(h.timeout):null))}}),Kd&&Qu.push({transport:"XHR",method(t){var e=new Kd,{url:n,encodedBody:r}=ap(t);e.open(t.method||"GET",n,!0);var{contentType:o,body:u}=r??{};Ze(t.headers,(function(c,f){e.setRequestHeader(f,c)})),o&&e.setRequestHeader("Content-Type",o),t.timeout&&(e.timeout=t.timeout),t.disableXHRCredentials||(e.withCredentials=!0),e.onreadystatechange=()=>{if(e.readyState===4){var c={statusCode:e.status,text:e.responseText};if(e.status===200)try{c.json=JSON.parse(e.responseText)}catch{}t.callback==null||t.callback(c)}},e.send(u)}}),on!=null&&on.sendBeacon&&Qu.push({transport:"sendBeacon",method(t){try{var{url:e,encodedBody:n}=ap(t),r=Zu(e,{beacon:"1"}),{contentType:o,body:u}=n??{};if(!u)return;var c=u instanceof Blob?u:new Blob([u],{type:o});on.sendBeacon(r,c)}catch{}}});var op=3e3;class O3{constructor(e,n){this.Xr=!0,this.ei=[],this.ti=Zn(n?.flush_interval_ms||op,250,5e3,re.createLogger("flush interval"),op),this.ri=e}enqueue(e){this.ei.push(e),this.ii||this.ni()}unload(){this.si();var e=this.ei.length>0?this.oi():{},n=Object.values(e);[...n.filter((r=>r.url.indexOf("/e")===0)),...n.filter((r=>r.url.indexOf("/e")!==0))].map((r=>{this.ri(ne({},r,{transport:"sendBeacon"}))}))}enable(){this.Xr=!1,this.ni()}ni(){var e=this;this.Xr||(this.ii=setTimeout((()=>{if(this.si(),this.ei.length>0){var n=this.oi(),r=function(){var u=n[o],c=new Date().getTime();u.data&&Oe(u.data)&&Ze(u.data,(f=>{f.offset=Math.abs(f.timestamp-c),delete f.timestamp})),e.ri(u)};for(var o in n)r()}}),this.ti))}si(){clearTimeout(this.ii),this.ii=void 0}oi(){var e={};return Ze(this.ei,(n=>{var r,o=n,u=(o?o.batchKey:null)||o.url;se(e[u])&&(e[u]=ne({},o,{data:[]})),(r=e[u].data)==null||r.push(o.data)})),this.ei=[],e}}var R3=["retriesPerformedSoFar"];class D3{constructor(e){this.ai=!1,this.ui=3e3,this.ei=[],this._instance=e,this.ei=[],this.li=!0,!se(B)&&"onLine"in B.navigator&&(this.li=B.navigator.onLine,this.hi=()=>{this.li=!0,this.ci()},this.di=()=>{this.li=!1},dt(B,"online",this.hi),dt(B,"offline",this.di))}get length(){return this.ei.length}retriableRequest(e){var{retriesPerformedSoFar:n}=e,r=a0(e,R3);fi(n)&&(r.url=Zu(r.url,{retry_count:n})),this._instance._send_request(ne({},r,{callback:o=>{o.statusCode===200||o.statusCode>=400&&500>o.statusCode||(n??0)>=10?r.callback==null||r.callback(o):this.vi(ne({retriesPerformedSoFar:n},r))}}))}vi(e){var n=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=n+1;var r=(function(c){var f=3e3*Math.pow(2,c),h=f/2,g=Math.min(18e5,f),m=Math.random()-.5;return Math.ceil(g+m*(g-h))})(n),o=Date.now()+r;this.ei.push({retryAt:o,requestOptions:e});var u="Enqueued failed request for retry in "+r;navigator.onLine||(u+=" (Browser is offline)"),re.warn(u),this.ai||(this.ai=!0,this.fi())}fi(){if(this.pi&&clearTimeout(this.pi),this.ei.length===0)return this.ai=!1,void(this.pi=void 0);this.pi=setTimeout((()=>{this.li&&this.ei.length>0&&this.ci(),this.fi()}),this.ui)}ci(){var e=Date.now(),n=[],r=this.ei.filter((u=>e>u.retryAt||(n.push(u),!1)));if(this.ei=n,r.length>0)for(var{requestOptions:o}of r)this.retriableRequest(o)}unload(){for(var{requestOptions:e}of(this.pi&&(clearTimeout(this.pi),this.pi=void 0),this.ai=!1,se(B)||(this.hi&&(B.removeEventListener("online",this.hi),this.hi=void 0),this.di&&(B.removeEventListener("offline",this.di),this.di=void 0)),this.ei))try{this._instance._send_request(ne({},e,{transport:"sendBeacon"}))}catch(n){re.error(n)}this.ei=[]}}class k3{constructor(e){this.gi=()=>{var n,r,o,u;this.mi||(this.mi={});var c=this.scrollElement(),f=this.scrollY(),h=c?Math.max(0,c.scrollHeight-c.clientHeight):0,g=f+(c?.clientHeight||0),m=c?.scrollHeight||0;this.mi.lastScrollY=Math.ceil(f),this.mi.maxScrollY=Math.max(f,(n=this.mi.maxScrollY)!==null&&n!==void 0?n:0),this.mi.maxScrollHeight=Math.max(h,(r=this.mi.maxScrollHeight)!==null&&r!==void 0?r:0),this.mi.lastContentY=g,this.mi.maxContentY=Math.max(g,(o=this.mi.maxContentY)!==null&&o!==void 0?o:0),this.mi.maxContentHeight=Math.max(m,(u=this.mi.maxContentHeight)!==null&&u!==void 0?u:0)},this._instance=e}get yi(){return this._instance.config.scroll_root_selector}getContext(){return this.mi}resetContext(){var e=this.mi;return setTimeout(this.gi,0),e}startMeasuringScrollPosition(){dt(B,"scroll",this.gi,{capture:!0}),dt(B,"scrollend",this.gi,{capture:!0}),dt(B,"resize",this.gi)}scrollElement(){if(!this.yi)return B?.document.documentElement;var e=Oe(this.yi)?this.yi:[this.yi];for(var n of e){var r=B?.document.querySelector(n);if(r)return r}}bi(e){var n=e==="y"?"scrollTop":"scrollLeft";if(this.yi){var r=this.scrollElement();return r&&r[n]||0}return B?e==="y"?B.scrollY||B.pageYOffset||B.document.documentElement.scrollTop||0:B.scrollX||B.pageXOffset||B.document.documentElement.scrollLeft||0:0}scrollY(){return this.bi("y")}scrollX(){return this.bi("x")}}var L3=t=>Db(t?.config.mask_personal_data_properties,t?.config.custom_personal_data_properties);class Kb{constructor(e,n,r,o){this.wi=u=>{var c=this.xi();if(!c||c.sessionId!==u){var f={sessionId:u,props:this.Si(this._instance)};this.ki.register({[Lh]:f})}},this._instance=e,this.Ci=n,this.ki=r,this.Si=o||L3,this.Ci.onSessionId(this.wi)}xi(){return this.ki.props[Lh]}getSetOnceProps(){var e,n=(e=this.xi())==null?void 0:e.props;return n?"r"in n?kb(n):{$referring_domain:n.referringDomain,$pathname:n.initialPathName,utm_source:n.utm_source,utm_campaign:n.utm_campaign,utm_medium:n.utm_medium,utm_content:n.utm_content,utm_term:n.utm_term}:{}}getSessionProps(){var e={};return Ze(qh(this.getSetOnceProps()),((n,r)=>{r==="$current_url"&&(r="url"),e["$session_entry_"+Jd(r)]=n})),e}}class lp{constructor(){this.Ii={}}on(e,n){return this.Ii[e]||(this.Ii[e]=[]),this.Ii[e].push(n),()=>{this.Ii[e]=this.Ii[e].filter((r=>r!==n))}}emit(e,n){for(var r of this.Ii[e]||[])r(n);for(var o of this.Ii["*"]||[])o(e,n)}}var up=ot("[SessionId]");class Zb{on(e,n){return this.Ti.on(e,n)}constructor(e,n,r){var o;if(this.Ei=null,this.Mi=[],this.Ri=void 0,this.Ti=new lp,this.Pi=(g,m)=>!(!fi(g)||!fi(m))&&Math.abs(g-m)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===pi)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.qt=e.config,this.ki=e.persistence,this.Oi=void 0,this.Li=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.Fi=n||Yi,this.Ai=r||Yi;var u=this.qt.persistence_name||this.qt.token;if(this._sessionTimeoutMs=1e3*Zn(this.qt.session_idle_timeout_seconds||1800,60,36e3,up.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Ni(),this.Di="ph_"+u+"_window_id",this.$i="ph_"+u+"_primary_window_exists",this.qi()){var c=Dt.F(this.Di),f=Dt.F(this.$i);c&&!f?this.Oi=c:Dt.q(this.Di),Dt.N(this.$i,!0)}if((o=this.qt.bootstrap)!=null&&o.sessionID)try{var h=(g=>{var m=this.qt.bootstrap.sessionID.replace(/-/g,"");if(m.length!==32)throw new Error("Not a valid UUID");if(m[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(m.substring(0,12),16)})();this.ji(this.qt.bootstrap.sessionID,new Date().getTime(),h)}catch(g){up.error("Invalid sessionID in bootstrap",g)}this.Hi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return se(this.Mi)&&(this.Mi=[]),this.Mi.push(e),this.Li&&e(this.Li,this.Oi),()=>{this.Mi=this.Mi.filter((n=>n!==e))}}qi(){return this.qt.persistence!=="memory"&&!this.ki.Tr&&Dt.O()}Ui(e){e!==this.Oi&&(this.Oi=e,this.qi()&&Dt.N(this.Di,e))}Bi(){return this.Oi?this.Oi:this.qi()?Dt.F(this.Di):null}zi(e){var n=this.Ei;return!un(n)&&!un(e)&&5e3>Math.abs(e-n)}ji(e,n,r){var o=n!==this._sessionActivityTimestamp,u=!(e!==this.Li||r!==this._sessionStartTimestamp);this._sessionStartTimestamp=r,this._sessionActivityTimestamp=n,this.Li=e,u&&!o||u&&this.zi(n)||(this.Ei=n,this.ki.register({[Nr]:[n,e,r]}))}Vi(){var e,n=(e=this.qt)==null?void 0:e.persistence_save_debounce_ms;return fi(n)&&n>0}Wi(){var e;if(!un(this._sessionActivityTimestamp)&&this._sessionActivityTimestamp!==this.Ei){this.Vi()?this.ki.refreshKey(Nr):(this.ki.flush(),this.ki.load());var[,n,r]=this.Zi();n===this.Li&&r===this._sessionStartTimestamp&&(this.Ei=this._sessionActivityTimestamp,this.ki.register({[Nr]:[this._sessionActivityTimestamp,(e=this.Li)!==null&&e!==void 0?e:null,this._sessionStartTimestamp]}),this.ki.flush())}}Gi(){var[e]=this.Zi(),n=fi(e)?e:0,r=fi(this._sessionActivityTimestamp)?this._sessionActivityTimestamp:0;return Math.max(n,r)}Zi(){var e=this.ki.props[Nr];return Oe(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.Ei=null,clearTimeout(this.Qi),this.Qi=void 0,this.ji(null,null,null)}destroy(){this.Wi(),clearTimeout(this.Qi),this.Qi=void 0,this.Ri&&B&&(B.removeEventListener(ju,this.Ri,{capture:!1}),this.Ri=void 0),this.Mi=[]}Hi(){this.Ri=()=>{this.Wi(),this.qi()&&Dt.q(this.$i)},dt(B,ju,this.Ri,{capture:!1})}checkAndGetSessionAndWindowId(e,n){if(e===void 0&&(e=!1),n===void 0&&(n=null),this.qt.cookieless_mode===pi)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=n||new Date().getTime(),[,o,u]=this.Zi(),c=this.Gi(),f=this.Bi(),h=fi(u)&&Math.abs(r-u)>864e5,g=!1,m=!o,v=!m&&!e&&this.Pi(r,c);m||v||h?(o=this.Fi(),f=this.Ai(),up.info("new session ID generated",{sessionId:o,windowId:f,changeReason:{noSessionId:m,activityTimeout:v,sessionPastMaximumLength:h}}),u=r,g=!0):f||(f=this.Ai(),g=!0);var _=fi(c)&&e&&!h?c:r,b=fi(u)?u:new Date().getTime();return this.Ui(f),this.ji(o,_,b),e||this.Ni(),g&&this.Mi.forEach((x=>x(o,f,g?{noSessionId:m,activityTimeout:v,sessionPastMaximumLength:h}:void 0))),{sessionId:o,windowId:f,sessionStartTimestamp:b,changeReason:g?{noSessionId:m,activityTimeout:v,sessionPastMaximumLength:h}:void 0,lastActivityTimestamp:c}}Ni(){clearTimeout(this.Qi),this.Qi=setTimeout((()=>{var e=this.Gi();if(this.Pi(new Date().getTime(),e)){var n=this.Li;this.resetSessionId(),this.Ti.emit("forcedIdleReset",{idleSessionId:n})}}),1.1*this.sessionTimeoutMs)}}var Qb=function(t,e){if(!t)return!1;var n=t.userAgent;if(n&&c0(n,e))return!0;try{var r=t?.userAgentData;if(r!=null&&r.brands&&r.brands.some((o=>c0(o?.brand,e))))return!0}catch{}return!!t.webdriver},Ju=function(t,e){if(!(function(n){try{new RegExp(n)}catch{return!1}return!0})(e))return!1;try{return new RegExp(e).test(t)}catch{return!1}};function Jb(t,e,n){return Fr({distinct_id:t,userPropertiesToSet:e,userPropertiesToSetOnce:n})}var Wb={exact:(t,e)=>e.some((n=>t.some((r=>n===r)))),is_not:(t,e)=>e.every((n=>t.every((r=>n!==r)))),regex:(t,e)=>e.some((n=>t.some((r=>Ju(n,r))))),not_regex:(t,e)=>e.every((n=>t.every((r=>!Ju(n,r))))),icontains:(t,e)=>e.map(Wu).some((n=>t.map(Wu).some((r=>n.includes(r))))),not_icontains:(t,e)=>e.map(Wu).every((n=>t.map(Wu).every((r=>!n.includes(r))))),gt:(t,e)=>e.some((n=>{var r=parseFloat(n);return!isNaN(r)&&t.some((o=>r>parseFloat(o)))})),lt:(t,e)=>e.some((n=>{var r=parseFloat(n);return!isNaN(r)&&t.some((o=>r<parseFloat(o)))}))},Wu=t=>t.toLowerCase();function eS(t,e){return!t||Object.entries(t).every((n=>{var[r,o]=n,u=e?.[r];if(se(u)||un(u))return!1;var c=[String(u)],f=Wb[o.operator];return!!f&&f(o.values,c)}))}var cp="custom",tS="i.posthog.com",N3=/^\/static\//;class z3{constructor(e){this.Ji={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return e==="https://app.posthog.com"?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,n=(e=this.instance.config.ui_host)==null?void 0:e.replace(/\/$/,"");return n||(n=this.apiHost.replace("."+tS,".posthog.com")),n==="https://app.posthog.com"?"https://us.posthog.com":n}get region(){return this.Ji[this.apiHost]||(this.Ji[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":cp),this.Ji[this.apiHost]}Ki(e){var n=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof n=="string"&&N3.test(e))return n.trim().replace(/\/$/,"")||void 0}endpointFor(e,n){if(n===void 0&&(n=""),n&&(n=n[0]==="/"?n:"/"+n),e==="ui")return this.uiHost+n;if(e==="flags")return this.flagsApiHost+n;if(e==="assets"){var r=this.Ki(n);if(r)return""+r+n}if(this.region===cp)return this.apiHost+n;var o=tS+n;switch(e){case"assets":return"https://"+this.region+"-assets."+o;case"api":return"https://"+this.region+"."+o}}}var He=ot("[Surveys]"),fp="seenSurvey_",j3=[Zh.Popover,Zh.Widget,Zh.API],U3={ignoreConditions:!1,ignoreDelay:!1,displayType:Jh.Popover},B3=ot("[PostHog ExternalIntegrations]"),V3={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class I3{constructor(e){this._instance=e}lr(e,n){var r;(r=pe.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,e,(o=>{if(o)return B3.error("failed to load script",o);n()}))}startIfEnabledOrStop(){var e=this,n=function(c){var f,h,g;!o||(f=pe.__PosthogExtensions__)!=null&&(f=f.integrations)!=null&&f[c]||e.lr(V3[c],(()=>{var m;(m=pe.__PosthogExtensions__)==null||(m=m.integrations)==null||(m=m[c])==null||m.start(e._instance)})),!o&&(h=pe.__PosthogExtensions__)!=null&&(h=h.integrations)!=null&&h[c]&&((g=pe.__PosthogExtensions__)==null||(g=g.integrations)==null||(g=g[c])==null||g.stop())};for(var[r,o]of Object.entries((u=this._instance.config.integrations)!==null&&u!==void 0?u:{})){var u;n(r)}}}var $r,Ro={},dp=0,hp=()=>{},nS='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',Do="Surveys module not available",iS="sanitize_properties is deprecated. Use before_send instead",sS="Invalid value for property_denylist config: ",Gr="posthog",rS=!A3&&Kt?.indexOf("MSIE")===-1&&Kt?.indexOf("Mozilla")===-1,aS=t=>{var e;return ne({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:$D(ae?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:hp,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:t??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,__preview_cookie_wins_on_conflict:!1,debug:Rt&&at(Rt?.search)&&Rt.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(B==null||(e=B.location)==null?void 0:e.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(n){re.error("Bad HTTP status: "+n.statusCode+" "+n.text)},get_device_id:n=>n,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:Bh,before_send:void 0,request_queue_config:{flush_interval_ms:op},error_tracking:{},_onCapture:hp,__preview_eager_load_replay:!1},(n=>({rageclick:n&&n>="2026-05-30"?{content_ignorelist:n3,ignore_text_selection:!0}:!n||"2025-11-30">n||{content_ignorelist:!0},capture_pageview:!n||"2025-05-24">n||"history_change",session_recording:n&&n>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:n&&n>="2026-01-30"?"head":"body",internal_or_test_user_hostname:n&&n>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0,persistence_save_debounce_ms:n&&n>="2026-05-30"?250:0,split_storage:!(!n||"2026-05-30">n)}))(t))},q3=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],oS=t=>{var e={};for(var[n,r]of q3)se(t[n])||(e[r]=t[n]);var o=We({},e,t);return Oe(t.property_blacklist)&&(se(t.property_denylist)?o.property_denylist=t.property_blacklist:Oe(t.property_denylist)?o.property_denylist=[...t.property_blacklist,...t.property_denylist]:re.error(sS+t.property_denylist)),o};class P3{constructor(){this.__forceAllowLocalhost=!1}get Yi(){return this.__forceAllowLocalhost}set Yi(e){re.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class An{Xi(e,n){if(e){var r=this.en.indexOf(e);r!==-1&&this.en.splice(r,1)}return this.en.push(n),n.initialize==null||n.initialize(),n}tn(){return this.config.cookieless_mode===pi||this.config.cookieless_mode===qs&&this.consent.isRejected()}get decideEndpointWasHit(){var e,n;return(e=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&e!==void 0&&e}get flagsEndpointWasHit(){var e,n;return(e=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&e!==void 0&&e}constructor(){var e;this.webPerformance=new P3,this.rn=!1,this.version=wt.LIB_VERSION,this.nn=new lp,this.en=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=aS(),this.SentryIntegration=f3,this.sentryIntegration=r=>(function(o,u){var c=Tb(o,u);return{name:xb,processEvent:f=>c(f)}})(this,r),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.sn=!1,this.an=null,this.un=null,this.ln=null,this.scrollManager=new k3(this),this.pageViewManager=new wb(this),this.rateLimiter=new b3(this),this.requestRouter=new z3(this),this.consent=new JD(this),this.externalIntegrations=new I3(this);var n=(e=An.__defaultExtensionClasses)!==null&&e!==void 0?e:{};this.featureFlags=n.featureFlags&&new n.featureFlags(this),this.toolbar=n.toolbar&&new n.toolbar(this),this.surveys=n.surveys&&new n.surveys(this),this.conversations=n.conversations&&new n.conversations(this),this.logs=n.logs&&new n.logs(this),this.experiments=n.experiments&&new n.experiments(this),this.exceptions=n.exceptions&&new n.exceptions(this),this.people={set:(r,o,u)=>{var c=at(r)?{[r]:o}:r;this.setPersonProperties(c),u?.({})},set_once:(r,o,u)=>{var c=at(r)?{[r]:o}:r;this.setPersonProperties(void 0,c),u?.({})}},this.on("eventCaptured",(r=>re.info('send "'+r?.event+'"',r)))}init(e,n,r){if(r&&r!==Gr){var o,u=(o=Ro[r])!==null&&o!==void 0?o:new An;return u._init(e,n,r),Ro[r]=u,Ro[Gr][r]=u,u}return this._init(e,n,r)}_init(e,n,r){var o,u;n===void 0&&(n={});var c=at(e)?e.trim():"";if(!c)return re.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},n.debug=this.hn(n.debug),this.cn=n,this.dn=[],n.person_profiles?this.un=n.person_profiles:n.process_person&&(this.un=n.process_person);var f=aS(n.defaults),h=oS(n),g=We({},f,h,{name:r,token:c});ut(f.rageclick)&&ut(h.rageclick)&&(g.rageclick=We({},f.rageclick,h.rageclick)),this.set_config(g),this.config.on_xhr_error&&re.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=n.disable_compression?void 0:Jn.GZipJS;var m=this.vn();this.persistence=new Kh(this.config,m),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new Kh(ne({},this.config,{persistence:"sessionStorage"}),m,!1);var v=ne({},this.persistence.props),_=ne({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.fn=new O3((K=>this.pn(K)),this.config.request_queue_config),this.gn=new D3(this),this.__request_queue=[];var b=this.tn();if(b||(this.sessionManager=new Zb(this),this.sessionPropsManager=new Kb(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(re.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.mn(b)}),0)):(re.info("Initializing extensions synchronously"),this.mn(b)),wt.DEBUG=wt.DEBUG||this.config.debug,wt.DEBUG&&re.info("Starting in debug mode",{this:this,config:n,thisC:ne({},this.config),p:v,s:_}),!this.config.identity_distinct_id||(o=n.bootstrap)!=null&&o.distinctID||(n.bootstrap=ne({},n.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((u=n.bootstrap)==null?void 0:u.distinctID)!==void 0){var x=n.bootstrap.distinctID,E=this.get_distinct_id(),M=this.persistence.get_property(Pn);if(n.bootstrap.isIdentifiedID&&E!=null&&E!==x&&M===Ur)this.identify(x);else if(n.bootstrap.isIdentifiedID&&E!=null&&E!==x&&M===Br)re.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var R=this.config.get_device_id(Yi()),q=n.bootstrap.isIdentifiedID?R:x;this.persistence.set_property(Pn,n.bootstrap.isIdentifiedID?Br:Ur),this.register({distinct_id:x,$device_id:q})}}if(b)this.register_once({distinct_id:Nu,$device_id:null},"");else if(!this.get_distinct_id()){var F=this.config.get_device_id(Yi());this.register_once({distinct_id:F,$device_id:F},""),this.persistence.set_property(Pn,Ur)}return dt(B,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),n.segment?(function(K,U){var Q=K.config.segment;if(!Q)return U();(function(P,I){var $=P.config.segment;if(!$)return I();var ee=ie=>{var he=()=>ie.anonymousId()||Yi();P.config.get_device_id=he,ie.id()&&(P.register({distinct_id:ie.id(),$device_id:he()}),P.persistence.set_property(Pn,Br)),I()},le=$.user();"then"in le&&ci(le.then)?le.then(ee):ee(le)})(K,(()=>{Q.register((P=>{Promise&&Promise.resolve||Xh.warn("This browser does not have Promise support, and can not use the segment integration");var I=($,ee)=>{if(!ee)return $;$.event.userId||$.event.anonymousId===P.get_distinct_id()||(Xh.info("No userId set, resetting PostHog"),P.reset()),$.event.userId&&$.event.userId!==P.get_distinct_id()&&(Xh.info("UserId set, identifying with PostHog"),P.identify($.event.userId));var le=P.calculateEventProperties(ee,$.event.properties);return $.event.properties=Object.assign({},le,$.event.properties),$};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:$=>I($,$.event.event),page:$=>I($,Vr),identify:$=>I($,Ih),screen:$=>I($,"$screen")}})(K)).then((()=>{U()}))}))})(this,(()=>this.yn())):this.yn(),ci(this.config._onCapture)&&this.config._onCapture!==hp&&(re.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(K=>this.config._onCapture(K.event,K)))),this.config.ip&&re.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}mn(e){var n,r,o,u,c,f,h,g=performance.now(),m=ne({},An.__defaultExtensionClasses,this.config.__extensionClasses),v=[];m.featureFlags&&this.en.push(this.featureFlags=(n=this.featureFlags)!==null&&n!==void 0?n:new m.featureFlags(this)),m.exceptions&&this.en.push(this.exceptions=(r=this.exceptions)!==null&&r!==void 0?r:new m.exceptions(this)),m.historyAutocapture&&this.en.push(this.historyAutocapture=new m.historyAutocapture(this)),m.tracingHeaders&&this.en.push(this.tracingHeaders=new m.tracingHeaders(this)),m.siteApps&&this.en.push(this.siteApps=new m.siteApps(this)),m.sessionRecording&&!e&&this.en.push(this.sessionRecording=new m.sessionRecording(this)),this.config.disable_scroll_properties||v.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),m.autocapture&&this.en.push(this.autocapture=new m.autocapture(this)),m.surveys&&this.en.push(this.surveys=(o=this.surveys)!==null&&o!==void 0?o:new m.surveys(this)),m.logs&&this.en.push(this.logs=(u=this.logs)!==null&&u!==void 0?u:new m.logs(this)),m.conversations&&this.en.push(this.conversations=(c=this.conversations)!==null&&c!==void 0?c:new m.conversations(this)),m.productTours&&this.en.push(this.productTours=new m.productTours(this)),m.heatmaps&&this.en.push(this.heatmaps=new m.heatmaps(this)),m.webVitalsAutocapture&&this.en.push(this.webVitalsAutocapture=new m.webVitalsAutocapture(this)),m.exceptionObserver&&this.en.push(this.exceptionObserver=new m.exceptionObserver(this)),m.deadClicksAutocapture&&this.en.push(this.deadClicksAutocapture=new m.deadClicksAutocapture(this,c3)),m.toolbar&&this.en.push(this.toolbar=(f=this.toolbar)!==null&&f!==void 0?f:new m.toolbar(this)),m.experiments&&this.en.push(this.experiments=(h=this.experiments)!==null&&h!==void 0?h:new m.experiments(this)),this.en.forEach((_=>{_.initialize&&v.push((()=>{_.initialize==null||_.initialize()}))})),v.push((()=>{if(this.bn){var _=this.bn;this.bn=void 0,this.Qr(_)}})),this._n(v,g)}_n(e,n){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-n>=30&&e.length>0)return void setTimeout((()=>{this._n(e,n)}),0);var r=e.shift();if(r)try{r()}catch(u){re.error("Error initializing extension:",u)}}var o=Math.round(performance.now()-n);this.register_for_session({[Z0]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[Q0]:o}),this.config.__preview_deferred_init_extensions&&re.info("PostHog extensions initialized ("+o+"ms)")}Qr(e){var n;if(!ae||!ae.body)return re.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Qr(e)}),500);this.config.__preview_deferred_init_extensions&&(this.bn=e),this.wn=e,this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=Ee(e.supportedCompression,Jn.GZipJS)?Jn.GZipJS:Ee(e.supportedCompression,Jn.Base64)?Jn.Base64:void 0),(n=e.analytics)!=null&&n.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.un?this.un:Bh}),this.en.forEach((r=>r.onRemoteConfig==null?void 0:r.onRemoteConfig(e)))}yn(){try{this.config.loaded(this)}catch(r){re.critical("`loaded` function failed",r)}if(this.xn(),this.config.internal_or_test_user_hostname&&Rt!=null&&Rt.hostname){var e=Rt.hostname,n=this.config.internal_or_test_user_hostname;(typeof n=="string"?e===n:n.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.tn())&&this.Sn()}),1),this.kn=new jb(this),this.kn.load()}xn(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.fn)==null||e.enable())}_dom_loaded(){this.is_capturing()&&Uu(this.__request_queue,(e=>this.pn(e))),this.__request_queue=[],this.xn()}_handle_unload(){var e,n,r,o;(e=this.surveys)==null||e.handlePageUnload(),this.config.request_batching?(this.Cn()&&this.capture(Vh),(n=this.logs)==null||n.flushLogs("sendBeacon"),(r=this.fn)==null||r.unload(),(o=this.gn)==null||o.unload()):this.Cn()&&this.capture(Vh,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(rS?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=Zu(e.url,{ip:this.config.ip?1:0}),e.headers=ne({},this.config.request_headers,e.headers),e.compression=e.compression==="best-available"?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(n=>{var r,o,u,c=ne({},n);c.timeout=c.timeout||6e4,c.url=Xb(c.url,c.compression);var f=(r=c.transport)!==null&&r!==void 0?r:"fetch",h=Qu.filter((m=>!c.disableTransport||!m.transport||!c.disableTransport.includes(m.transport))),g=(o=(u=(function(m,v){for(var _=0;m.length>_;_++)if(m[_].transport===f)return m[_]})(h))==null?void 0:u.method)!==null&&o!==void 0?o:h[0].method;if(!g)throw new Error("No available transport method");f!=="sendBeacon"&&c.data&&c.compression===Jn.GZipJS&&eD&&!Ku?M3(c).then((m=>{g(m)})).catch((m=>{if(u0(m))return Ku=!0,void g(ne({},c,{compression:void 0,url:Xb(n.url,void 0)}));(v=>{if(!v||typeof v!="object")return!1;var _="name"in v?String(v.name):"";return u0(v)||_===l0})(m)&&(Ku=!0),g(c)})):g(c)})(ne({},e,{callback:n=>{var r,o;this.rateLimiter.checkForLimiting(n),400>n.statusCode||(r=(o=this.config).on_request_error)==null||r.call(o,n),e.callback==null||e.callback(n)}}))))}pn(e){this.gn?this.gn.retriableRequest(e):this._send_request(e)}_execute_array(e){dp++;try{var n,r=[],o=[],u=[];Uu(e,(f=>{if(f)if(Oe(n=f[0]))u.push(f);else if(ci(f))try{f.call(this)}catch(h){re.error("Error executing queued PostHog call",f,h)}else Oe(f)&&n==="alias"?r.push(f):Oe(f)&&n.indexOf("capture")!==-1&&ci(this[n])?u.push(f):o.push(f)}));var c=function(f,h){Uu(f,(function(g){try{if(Oe(g[0])){var m=h;Ze(g,(function(v){m=m[v[0]].apply(m,v.slice(1))}))}else h[g[0]].apply(h,g.slice(1))}catch(v){re.error("Error executing queued PostHog call",g,v)}}))};c(r,this),c(o,this),c(u,this)}finally{dp--}}push(e){if(dp>0&&Oe(e)&&at(e[0])){var n=An.prototype[e[0]];ci(n)&&n.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,n,r){var o,u,c,f,h;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.fn){if(this.is_capturing())if(!se(e)&&at(e)){var g=!this.config.opt_out_useragent_filter&&this._is_bot();if(!g||this.config.__preview_capture_bot_pageviews){var m=r!=null&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(m==null||!m.isRateLimited){n!=null&&n.$current_url&&!at(n?.$current_url)&&(re.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),n==null||delete n.$current_url),e!=="$exception"||r!=null&&r.In||re.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var v=new Date,_=r?.timestamp||v,b=r?.uuid||Yi(),x={uuid:b,event:e,properties:this.calculateEventProperties(e,n||{},_,b)};e===Vr&&this.config.__preview_capture_bot_pageviews&&g&&(x.event="$bot_pageview",x.properties.$browser_type="bot"),m&&(x.properties.$lib_rate_limit_remaining_tokens=m.remainingTokens),r?.$set&&(x.$set=r?.$set);var E,M,R,q=this.Tn(r?.$set_once,e!==W0,e===Ih);if(q&&(x.$set_once=q),r!=null&&r._noTruncate||(u=this.config.properties_string_max_length,c=x,f=$=>at($)?$.slice(0,u):$,h=new Set,x=(function $(ee,le){return ee!==Object(ee)?f?f(ee):ee:h.has(ee)?void 0:(h.add(ee),Oe(ee)?(ie=[],Uu(ee,(he=>{ie.push($(he))}))):(ie={},Ze(ee,((he,ye)=>{h.has(he)||(ie[ye]=$(he))}))),ie);var ie})(c)),x.timestamp=_,se(r?.timestamp)||(x.properties.$event_time_override_provided=!0,x.properties.$event_time_override_system_time=v),e===wo.DISMISSED||e===wo.SENT){var F=n?.[Qh.SURVEY_ID],K=n?.[Qh.SURVEY_ITERATION];($=>{try{var ee=(le=>((ie,he)=>{var ye=""+fp+he.id;return he.current_iteration&&he.current_iteration>0&&(ye=""+fp+he.id+"_"+he.current_iteration),ye})(0,le))($);if(localStorage.getItem(ee))return;localStorage.setItem(ee,"true")}catch(le){He.error("Failed to persist survey seen state",le)}})({id:F,current_iteration:K}),x.$set=ne({},x.$set,{[(E={id:F,current_iteration:K},M=e===wo.SENT?"responded":"dismissed",R="$survey_"+M+"/"+E.id,E.current_iteration&&E.current_iteration>0&&(R="$survey_"+M+"/"+E.id+"/"+E.current_iteration),R)]:!0})}else e===wo.SHOWN&&(x.$set=ne({},x.$set,{[Qh.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===_3.SHOWN){var U=n?.[Nb.TOUR_TYPE];U&&(x.$set=ne({},x.$set,{[Nb.TOUR_LAST_SEEN_DATE+"/"+U]:new Date().toISOString()}))}var Q=ne({},x.properties.$set,x.$set);if(Gi(Q)||this.setPersonPropertiesForFlags(Q),!Re(this.config.before_send)){var P=this.En(x);if(!P)return;x=P}this.nn.emit("eventCaptured",x);var I={method:"POST",url:(o=r?._url)!==null&&o!==void 0?o:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:x,compression:"best-available",batchKey:r?._batchKey,transport:r?.transport};return!this.config.request_batching||r&&(r==null||!r._batchKey)||r!=null&&r.send_instantly?this.pn(I):this.fn.enqueue(I),x}re.critical("This capture call is ignored due to client rate limiting.")}}else re.error("No event name provided to posthog.capture")}else re.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",(n=>e(n.event,n)))}calculateEventProperties(e,n,r,o,u){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return n;var c=u?void 0:this.persistence.remove_event_timer(e),f=ne({},n);if(f.token=this.config.token,f.$config_defaults=this.config.defaults,this.tn()&&(f.$cookieless_mode=!0),e==="$snapshot"){var h=ne({},this.persistence.properties(),this.sessionPersistence.properties());return f.distinct_id=h.distinct_id,(!at(f.distinct_id)&&!Gt(f.distinct_id)||Wd(f.distinct_id))&&re.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),f}var g,m=(function(R,q){var F,K,U,Q;if(!Kt)return{};var P,I,$,ee,le,ie,he,ye,L,A=R?[...Ir,...q||[]]:[],[N,J]=(function(T){for(var j=0;z0.length>j;j++){var[W,H]=z0[j],oe=W.exec(T),ge=oe&&(ci(H)?H(oe,T):H);if(ge)return ge}return["",""]})(Kt),te=(P=typeof navigator<"u"?navigator:void 0)!=null&&P.brave?{brave:!0}:{},ue=We(qh({$os:N,$os_version:J,$browser:N0(Kt,navigator.vendor,te),$device:j0(Kt),$device_type:($=Kt,ee={userAgentDataPlatform:(F=navigator)==null||(F=F.userAgentData)==null?void 0:F.platform,maxTouchPoints:(K=navigator)==null?void 0:K.maxTouchPoints,screenWidth:B==null||(U=B.screen)==null?void 0:U.width,screenHeight:B==null||(Q=B.screen)==null?void 0:Q.height,devicePixelRatio:B?.devicePixelRatio},L=j0($),L===m0||L===g0||L==="Kobo"||L==="Kindle Fire"||L===R0?Or:L===ao||L===kr||L===oo||L===oh?"Console":L===y0?"Wearable":L?cn:ee?.userAgentDataPlatform==="Android"&&((le=ee?.maxTouchPoints)!==null&&le!==void 0?le:0)>0?600>Math.min((ie=ee?.screenWidth)!==null&&ie!==void 0?ie:0,(he=ee?.screenHeight)!==null&&he!==void 0?he:0)/((ye=ee?.devicePixelRatio)!==null&&ye!==void 0?ye:1)?cn:Or:"Desktop"),$timezone:Lb(),$timezone_offset:m3()}),{$current_url:Eo(Rt?.href,A,xo),$host:Rt?.host,$pathname:Rt?.pathname,$raw_user_agent:Kt.length>1e3?Kt.substring(0,997)+"...":Kt,$browser_version:vD(Kt,navigator.vendor,te),$browser_language:Ob(),$browser_language_prefix:(I=Ob(),typeof I=="string"?I.split("-")[0]:void 0),$screen_height:B?.screen.height,$screen_width:B?.screen.width,$viewport_height:B?.innerHeight,$viewport_width:B?.innerWidth,$lib:wt.LIB_NAME,$lib_version:wt.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3});return wt.SDK_DIST_CHANNEL&&(ue.$sdk_dist_channel=wt.SDK_DIST_CHANNEL),ue})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:v,windowId:_}=this.sessionManager.checkAndGetSessionAndWindowId(u,r.getTime());f.$session_id=v,f.$window_id=_}this.sessionPropsManager&&We(f,this.sessionPropsManager.getSessionProps());try{var b;this.sessionRecording&&We(f,this.sessionRecording.sdkDebugProperties),f.$sdk_debug_retry_queue_size=(b=this.gn)==null?void 0:b.length}catch(R){f.$sdk_debug_error_capturing_properties=String(R)}if(this.requestRouter.region===cp&&(f.$lib_custom_api_host=this.config.api_host),g=e!==Vr||u?e!==Vh||u?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,o),f=We(f,g),e===Vr&&ae&&(f.title=ae.title),!se(c)){var x=r.getTime()-c;f.$duration=parseFloat((x/1e3).toFixed(3))}Kt&&this.config.opt_out_useragent_filter&&(f.$browser_type=this._is_bot()?"bot":"browser"),(f=We({},m,this.persistence.properties(),this.sessionPersistence.properties(),f)).$is_identified=this._isIdentified(),Oe(this.config.property_denylist)?Ze(this.config.property_denylist,(function(R){delete f[R]})):re.error(sS+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var E=this.config.sanitize_properties;E&&(re.error(iS),f=E(f,e));var M=this.Mn();return f.$process_person_profile=M,M&&!u&&this.Rn("_calculate_event_properties"),f}Tn(e,n,r){var o;if(n===void 0&&(n=!0),r===void 0&&(r=!1),!this.persistence||!this.Mn()||this.rn&&!r)return e;var u=this.persistence.get_initial_props(),c=(o=this.sessionPropsManager)==null?void 0:o.getSetOnceProps(),f=We({},u,c||{},e||{}),h=this.config.sanitize_properties;return h&&(re.error(iS),f=h(f,"$set_once")),n&&(this.rn=!0),Gi(f)?void 0:f}register(e,n){var r;(r=this.persistence)==null||r.register(e,n)}register_once(e,n,r){var o;(o=this.persistence)==null||o.register_once(e,n,r)}register_for_session(e){var n;(n=this.sessionPersistence)==null||n.register(e)}unregister(e){var n;(n=this.persistence)==null||n.unregister(e)}unregister_for_session(e){var n;(n=this.sessionPersistence)==null||n.unregister(e)}Pn(e,n){this.register({[e]:n})}getFeatureFlag(e,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlag(e,n)}getFeatureFlagPayload(e){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagPayload(e)}getFeatureFlagResult(e,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlagResult(e,n)}isFeatureEnabled(e,n){var r;return(r=this.featureFlags)==null?void 0:r.isFeatureEnabled(e,n)}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,n,r){var o;(o=this.featureFlags)==null||o.updateFlags(e,n,r)}updateEarlyAccessFeatureEnrollment(e,n,r){var o;(o=this.featureFlags)==null||o.updateEarlyAccessFeatureEnrollment(e,n,r)}getEarlyAccessFeatures(e,n,r){var o;return n===void 0&&(n=!1),(o=this.featureFlags)==null?void 0:o.getEarlyAccessFeatures(e,n,r)}on(e,n){return this.nn.on(e,n)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:Do}),()=>{})}onSessionId(e){var n,r;return(n=(r=this.sessionManager)==null?void 0:r.onSessionId(e))!==null&&n!==void 0?n:()=>{}}getSurveys(e,n){n===void 0&&(n=!1),this.surveys?this.surveys.getSurveys(e,n):e([],{isLoaded:!1,error:Do})}getActiveMatchingSurveys(e,n){n===void 0&&(n=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,n):e([],{isLoaded:!1,error:Do})}renderSurvey(e,n){var r;(r=this.surveys)==null||r.renderSurvey(e,n)}displaySurvey(e,n){var r;n===void 0&&(n=U3),(r=this.surveys)==null||r.displaySurvey(e,n)}cancelPendingSurvey(e){var n;(n=this.surveys)==null||n.cancelPendingSurvey(e)}canRenderSurvey(e){var n,r;return(n=(r=this.surveys)==null?void 0:r.canRenderSurvey(e))!==null&&n!==void 0?n:{visible:!1,disabledReason:Do}}canRenderSurveyAsync(e,n){var r,o;return n===void 0&&(n=!1),(r=(o=this.surveys)==null?void 0:o.canRenderSurveyAsync(e,n))!==null&&r!==void 0?r:Promise.resolve({visible:!1,disabledReason:Do})}On(e){return!e||Wd(e)?(re.critical("Unique user id has not been set in posthog.identify"),!1):e===Nu?(re.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(re.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(e,n,r){if(!this.__loaded||!this.persistence)return re.uninitializedWarning("posthog.identify");if(Gt(e)&&(e=e.toString(),re.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.On(e)&&this.Rn("posthog.identify")){var o=this.get_distinct_id();this.register({$user_id:e}),this.get_property(Ou)||this.register_once({$had_persisted_distinct_id:!0,$device_id:o},""),e!==o&&e!==this.get_property(co)&&(this.unregister(co),this.register({distinct_id:e}));var u,c=(this.persistence.get_property(Pn)||Ur)===Ur;e!==o&&c?(this.persistence.set_property(Pn,Br),this.setPersonPropertiesForFlags({$set:n||{},$set_once:r||{}},!1),this.capture(Ih,{distinct_id:e,$anon_distinct_id:o},{$set:n||{},$set_once:r||{}}),this.ln=Jb(e,n,r),(u=this.featureFlags)==null||u.setAnonymousDistinctId(o)):(n||r)&&this.setPersonProperties(n,r),e!==o&&(this.reloadFeatureFlags(),this.unregister(go))}}setPersonProperties(e,n){if((e||n)&&this.Rn("posthog.setPersonProperties")){var r=Jb(this.get_distinct_id(),e,n);this.ln!==r?(this.setPersonPropertiesForFlags({$set:e||{},$set_once:n||{}},!0),this.capture("$set",{$set:e||{},$set_once:n||{}}),this.ln=r):re.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,n,r){if(e&&n){var o=this.getGroups(),u=o[e]!==n;if(u&&this.resetGroupPropertiesForFlags(e),this.register({$groups:ne({},o,{[e]:n})}),u||r){var c={$group_type:e,$group_key:n};r&&(c.$group_set=r),this.capture(W0,c)}r&&this.setGroupPropertiesForFlags({[e]:r}),u&&!r&&this.reloadFeatureFlags()}else re.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,n){var r;n===void 0&&(n=!0),(r=this.featureFlags)==null||r.setPersonPropertiesForFlags(e,n)}resetPersonPropertiesForFlags(){var e;(e=this.featureFlags)==null||e.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,n){var r;n===void 0&&(n=!0),this.Rn("posthog.setGroupPropertiesForFlags")&&((r=this.featureFlags)==null||r.setGroupPropertiesForFlags(e,n))}resetGroupPropertiesForFlags(e){var n;(n=this.featureFlags)==null||n.resetGroupPropertiesForFlags(e)}reset(e){var n,r,o,u,c,f,h,g;if(re.info("reset"),!this.__loaded)return re.uninitializedWarning("posthog.reset");var m,v=this.get_property(Ou),_=this.get_property(Vs);if(this.consent.reset(),(n=this.persistence)==null||n.clear(),(r=this.sessionPersistence)==null||r.clear(),se(_)||(m=this.persistence)==null||m.register({[Vs]:_}),(o=this.surveys)==null||o.reset(),(u=this.kn)==null||u.stop(),(c=this.featureFlags)==null||c.reset(),(f=this.conversations)==null||f.reset(),(h=this.persistence)==null||h.set_property(Pn,Ur),(g=this.sessionManager)==null||g.resetSessionId(),this.ln=null,this.config.cookieless_mode===pi)this.register_once({distinct_id:Nu,$device_id:null},"");else{var b=this.config.get_device_id(Yi());this.register_once({distinct_id:b,$device_id:e?b:v},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(e,n){var r;this.config.identity_distinct_id=e,this.config.identity_hash=n,this.alias(e),(r=this.conversations)==null||r.Ln()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,(e=this.conversations)==null||e.Fn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,n;return(e=(n=this.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:n,sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0),o=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+n);if(e!=null&&e.withTimestamp&&r){var u,c=(u=e.timestampLookBack)!==null&&u!==void 0?u:10;if(!r)return o;o+="?t="+Math.max(Math.floor((new Date().getTime()-r)/1e3)-c,0)}return o}alias(e,n){return e===this.get_property(F0)?(re.critical("Attempting to create alias for existing People user - aborting."),-2):this.Rn("posthog.alias")?(se(n)&&(n=this.get_distinct_id()),e!==n?(this.Pn(co,e),this.capture("$create_alias",{alias:e,distinct_id:n})):(re.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var n=ne({},this.config);if(ut(e)){var r,o,u,c,f,h,g,m,v,_,b;We(this.config,oS(e));var x=this.vn();(r=this.persistence)==null||r.update_config(this.config,n,x),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new Kh(ne({},this.config,{persistence:"sessionStorage"}),x,!1);var E=this.hn(this.config.debug);Kn(E)&&(this.config.debug=E),Kn(this.config.debug)&&(this.config.debug?(wt.DEBUG=!0,Xe.O()&&Xe.N("ph_debug",!0),re.info("set_config",{config:e,oldConfig:n,newConfig:ne({},this.config)})):(wt.DEBUG=!1,Xe.O()&&Xe.q("ph_debug"))),(o=this.exceptionObserver)==null||o.onConfigChange(),(u=this.exceptions)==null||u.onConfigChange(),(c=this.sessionRecording)==null||c.startIfEnabledOrStop(),(f=this.tracingHeaders)==null||f.startIfEnabledOrStop(),(h=this.autocapture)==null||h.startIfEnabled(),(g=this.heatmaps)==null||g.startIfEnabled(),(m=this.exceptionObserver)==null||m.startIfEnabledOrStop(),(v=this.deadClicksAutocapture)==null||v.startIfEnabledOrStop(),(_=this.surveys)==null||_.loadIfEnabled(),this.An(),(b=this.externalIntegrations)==null||b.startIfEnabledOrStop()}}_overrideSDKInfo(e,n){wt.LIB_NAME=e,wt.LIB_VERSION=n}startSessionRecording(e){var n,r,o,u,c,f=e===!0,h={sampling:f||!(e==null||!e.sampling),linked_flag:f||!(e==null||!e.linked_flag),url_trigger:f||!(e==null||!e.url_trigger),event_trigger:f||!(e==null||!e.event_trigger)};Object.values(h).some(Boolean)&&((n=this.sessionManager)==null||n.checkAndGetSessionAndWindowId(),h.sampling&&((r=this.sessionRecording)==null||r.overrideSampling()),h.linked_flag&&((o=this.sessionRecording)==null||o.overrideLinkedFlag()),h.url_trigger&&((u=this.sessionRecording)==null||u.overrideTrigger("url")),h.event_trigger&&((c=this.sessionRecording)==null||c.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!((e=this.sessionRecording)==null||!e.started)}captureException(e,n){if(this.exceptions){var r=new Error("PostHog syntheticException"),o=this.exceptions.buildProperties(e,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(ne({},o,n))}}addExceptionStep(e,n){var r;(r=this.exceptions)==null||r.addExceptionStep(e,n)}captureLog(e){var n;(n=this.logs)==null||n.captureLog(e)}get logger(){var e,n;return(e=(n=this.logs)==null?void 0:n.logger)!==null&&e!==void 0?e:An.Nn}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var n,r;return(n=(r=this.toolbar)==null?void 0:r.loadToolbar(e))!==null&&n!==void 0&&n}get_property(e){var n;return(n=this.persistence)==null?void 0:n.props[e]}getSessionProperty(e){var n;return(n=this.sessionPersistence)==null?void 0:n.props[e]}toString(){var e,n=(e=this.config.name)!==null&&e!==void 0?e:Gr;return n!==Gr&&(n=Gr+"."+n),n}_isIdentified(){var e,n;return((e=this.persistence)==null?void 0:e.get_property(Pn))===Br||((n=this.sessionPersistence)==null?void 0:n.get_property(Pn))===Br}Mn(){var e,n;return!(this.config.person_profiles==="never"||this.config.person_profiles===Bh&&!this._isIdentified()&&Gi(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[co])&&((n=this.persistence)==null||(n=n.props)==null||!n[Lu]))}Cn(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.Mn()||this.Rn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.Rn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}Rn(e){return this.config.person_profiles==="never"?(re.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Pn(Lu,!0),!0)}vn(){if(this.config.cookieless_mode==="always")return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==qs)}An(){var e,n,r,o,u=this.vn();return((e=this.persistence)==null?void 0:e.Tr)!==u&&((r=this.persistence)==null||r.set_disabled(u)),((n=this.sessionPersistence)==null?void 0:n.Tr)!==u&&((o=this.sessionPersistence)==null||o.set_disabled(u)),u}opt_in_capturing(e){var n;if(this.config.cookieless_mode!==pi){if(this.tn()){var r,o,u,c,f;this.reset(!0),(r=this.sessionManager)==null||r.destroy(),(o=this.pageViewManager)==null||o.destroy(),this.sessionManager=new Zb(this),this.pageViewManager=new wb(this),this.persistence&&(this.sessionPropsManager=new Kb(this,this.sessionManager,this.persistence));var h,g=(u=(c=this.config.__extensionClasses)==null?void 0:c.sessionRecording)!==null&&u!==void 0?u:(f=An.__defaultExtensionClasses)==null?void 0:f.sessionRecording;g&&(this.sessionRecording=this.Xi(this.sessionRecording,new g(this)),this.wn&&((h=this.sessionRecording)==null||h.onRemoteConfig==null||h.onRemoteConfig(this.wn)))}var m,v;this.consent.optInOut(!0),this.An(),this.xn(),(n=this.sessionRecording)==null||n.startIfEnabledOrStop(),this.config.cookieless_mode==qs&&((m=this.surveys)==null||m.loadIfEnabled()),(se(e?.captureEventName)||e!=null&&e.captureEventName)&&this.capture((v=e?.captureEventName)!==null&&v!==void 0?v:"$opt_in",e?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Sn()}else re.warn(nS)}opt_out_capturing(){var e,n,r;this.config.cookieless_mode!==pi?(this.config.cookieless_mode===qs&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.An(),this.config.cookieless_mode===qs&&(this.register({distinct_id:Nu,$device_id:null}),(e=this.sessionRecording)==null||e.stopRecording(),this.sessionRecording=void 0,(n=this.sessionManager)==null||n.destroy(),(r=this.pageViewManager)==null||r.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.config.capture_pageview&&this.Sn(),this.xn())):re.warn(nS)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===1?"granted":e===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===pi||(this.config.cookieless_mode===qs?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.An()}_is_bot(){return on?Qb(on,this.config.custom_blocked_useragents):void 0}Sn(){ae&&(ae.visibilityState==="visible"?this.sn||(this.sn=!0,this.capture(Vr,{title:ae.title},{send_instantly:!0}),this.an&&(ae.removeEventListener(zu,this.an),this.an=null)):this.an||(this.an=this.Sn.bind(this),dt(ae,zu,this.an)))}debug(e){e===!1?(B?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(B?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Kr(){var e,n,r,o,u,c,f=this.cn||{};return"advanced_disable_flags"in f?!!f.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(re.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(r="advanced_disable_decide",o=re,u=(n="advanced_disable_flags")in(e=f)&&!Re(e[n]),c=r in e&&!Re(e[r]),u?e[n]:!!c&&(o&&o.warn("Config field '"+r+"' is deprecated. Please use '"+n+"' instead. The old field will be removed in a future major version."),e[r]))}En(e){if(Re(this.config.before_send))return e;var n=Oe(this.config.before_send)?this.config.before_send:[this.config.before_send],r=e;for(var o of n){if(r=o(r),Re(r)){var u="Event '"+e.event+"' was rejected in beforeSend function";return rD(e.event)?re.warn(u+". This can cause unexpected behavior."):re.info(u),null}r.properties&&!Gi(r.properties)||re.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return r}getPageViewId(){var e;return(e=this.pageViewManager.dr)==null?void 0:e.pageViewId}captureTraceFeedback(e,n){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:n})}captureTraceMetric(e,n,r){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:n,$ai_metric_value:String(r)})}hn(e){var n=Kn(e)&&!e,r=Xe.O()&&Xe.A("ph_debug")==="true";return!n&&(!!r||e)}}An.__defaultExtensionClasses={},An.Nn={trace:$r=()=>{},debug:$r,info:$r,warn:$r,error:$r,fatal:$r},(function(t,e){for(var n=0;e.length>n;n++)t.prototype[e[n]]=HD(t.prototype[e[n]])})(An,["identify"]);class lS{constructor(e){this.disabled=e===!1;var n=ut(e)?e:{};this.thresholdPx=n.threshold_px||30,this.timeoutMs=n.timeout_ms||1e3,this.clickCount=n.click_count||3,this.clicks=[]}isRageClick(e,n,r){if(this.disabled)return!1;var o=this.clicks[this.clicks.length-1];if(o&&Math.abs(e-o.x)+Math.abs(n-o.y)<this.thresholdPx&&this.timeoutMs>r-o.timestamp){if(this.clicks.push({x:e,y:n,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:n,timestamp:r}];return!1}}var pp="$copy_autocapture",gp=ot("[AutoCapture]");function mp(t,e){return e.length>t?e.slice(0,t)+"...":e}function H3(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!Xi(e));return e}function F3(t,e){var n,r,{e:o,maskAllElementAttributes:u,maskAllText:c,elementAttributeIgnoreList:f,elementsChainAsString:h}=e;if(!Xi(t))return{props:{}};for(var g=[t],m=t;m.parentNode&&!fn(m,"body");)if(ab(m.parentNode))g.push(m.parentNode.host),m=m.parentNode.host;else{if(!Xi(m.parentNode))break;g.push(m.parentNode),m=m.parentNode}var v,_,b=[],x={},E=!1,M=!1;if(Ze(g,(U=>{var Q=Yh(U);if(fn(U,"a")){var P=U.getAttribute("href");E=Q&&!!P&&_o(P)&&P}Ee(qu(U),"ph-no-capture")&&(M=!0),b.push((function($,ee,le,ie){var he=$.tagName.toLowerCase(),ye={tag_name:he};$h.indexOf(he)>-1&&!le&&(ye.$el_text=he.toLowerCase()==="a"||he.toLowerCase()==="button"?mp(1024,_b($)):mp(1024,yo($)));var L=qu($);L.length>0&&(ye.classes=L.filter((function(te){return te!==""}))),Ze($.attributes,(function(te){var ue;if((!mb($)||["name","id","class","aria-label"].indexOf(te.name)!==-1)&&(ie==null||!ie.includes(te.name))&&!ee&&_o(te.value)&&(!at(ue=te.name)||ue.substring(0,10)!=="_ngcontent"&&ue.substring(0,7)!=="_nghost")){var T=te.value;te.name==="class"&&(T=Hh(T).join(" ")),ye["attr__"+te.name]=mp(1024,T)}}));for(var A=1,N=1,J=$;J=H3(J);)A++,J.tagName===$.tagName&&N++;return ye.nth_child=A,ye.nth_of_type=N,ye})(U,u,c,f));var I=(function($){if(!Yh($))return{};var ee={};return Ze($.attributes,(function(le){if(le.name&&le.name.indexOf("data-ph-capture-attribute")===0){var ie=le.name.replace("data-ph-capture-attribute-",""),he=le.value;ie&&he&&_o(he)&&(ee[ie]=he)}})),ee})(U);We(x,I)})),M)return{props:{},explicitNoCapture:M};if(c||(b[0].$el_text=fn(t,"a")||fn(t,"button")?_b(t):yo(t)),E){var R,q;b[0].attr__href=E;var F=(R=Fu(E))==null?void 0:R.host,K=B==null||(q=B.location)==null?void 0:q.host;F&&K&&F!==K&&(v=E)}return{props:We({$event_type:o.type,$ce_version:1},h?{}:{$elements:b},{$elements_chain:(_=b,(function(U){return U.map((Q=>{var P,I,$="";if(Q.tag_name&&($+=Q.tag_name),Q.attr_class)for(var ee of(Q.attr_class.sort(),Q.attr_class))$+="."+ee.replace(/"/g,"");var le=ne({},Q.text?{text:Q.text}:{},{"nth-child":(P=Q.nth_child)!==null&&P!==void 0?P:0,"nth-of-type":(I=Q.nth_of_type)!==null&&I!==void 0?I:0},Q.href?{href:Q.href}:{},Q.attr_id?{attr_id:Q.attr_id}:{},Q.attributes),ie={};return Bu(le).sort(((he,ye)=>{var[L]=he,[A]=ye;return L.localeCompare(A)})).forEach((he=>{var[ye,L]=he;return ie[Sb(ye.toString())]=Sb(L.toString())})),($+=":")+Bu(ie).map((he=>{var[ye,L]=he;return ye+'="'+L+'"'})).join("")})).join(";")})((function(U){return U.map((Q=>{var P,I,$={text:(P=Q.$el_text)==null?void 0:P.slice(0,400),tag_name:Q.tag_name,href:(I=Q.attr__href)==null?void 0:I.slice(0,2048),attr_class:l3(Q),attr_id:Q.attr__id,nth_child:Q.nth_child,nth_of_type:Q.nth_of_type,attributes:{}};return Bu(Q).filter((ee=>{var[le]=ee;return le.indexOf("attr__")===0})).forEach((ee=>{var[le,ie]=ee;return $.attributes[le]=ie})),$}))})(_)))},(n=b[0])!=null&&n.$el_text?{$el_text:(r=b[0])==null?void 0:r.$el_text}:{},v&&o.type==="click"?{$external_click_url:v}:{},x)}}var ko=ot("[ExceptionAutocapture]"),$3=ot("[TracingHeaders]"),Fs=ot("[Web Vitals]"),uS=9e5,cS="disabled",fS="lazy_loading",Lo="awaiting_config",ec="missing_config";ot("[SessionRecording]"),ot("[SessionRecording]");var vp="[SessionRecording]",mi=ot(vp),G3=ot("[Heatmaps]");function dS(t){return ut(t)&&"clientX"in t&&"clientY"in t&&Gt(t.clientX)&&Gt(t.clientY)}var hS=ot("[Product Tours]"),Y3=["$set_once","$set"],Ki=ot("[SiteApps]"),pS="Error while initializing PostHog app with config id ";function Yr(t,e,n){if(Re(t))return!1;switch(n){case"exact":return t===e;case"contains":var r=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(r,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch{return!1}default:return!1}}class X3{constructor(e){this.Dn=new lp,this.$n=(n,r)=>this.qn(n,r)&&this.jn(n,r)&&this.Hn(n,r)&&this.Un(n,r),this.qn=(n,r)=>r==null||!r.event||n?.event===r?.event,this._instance=e,this.Bn=new Set,this.zn=new Set}init(){var e,n;se((e=this._instance)==null?void 0:e._addCaptureHook)||(n=this._instance)==null||n._addCaptureHook(((r,o)=>{this.on(r,o)}))}register(e){var n,r;if(!se((n=this._instance)==null?void 0:n._addCaptureHook)&&(e.forEach((c=>{var f,h;(f=this.zn)==null||f.add(c),(h=c.steps)==null||h.forEach((g=>{var m;(m=this.Bn)==null||m.add(g?.event||"")}))})),(r=this._instance)!=null&&r.autocapture)){var o,u=new Set;e.forEach((c=>{var f;(f=c.steps)==null||f.forEach((h=>{h!=null&&h.selector&&u.add(h?.selector)}))})),(o=this._instance)==null||o.autocapture.setElementSelectors(u)}}on(e,n){var r;n!=null&&e.length!=0&&(this.Bn.has(e)||this.Bn.has(n?.event))&&this.zn&&((r=this.zn)==null?void 0:r.size)>0&&this.zn.forEach((o=>{this.Vn(n,o)&&this.Dn.emit("actionCaptured",o.name)}))}Wn(e){this.onAction("actionCaptured",(n=>e(n)))}Vn(e,n){if(n?.steps==null)return!1;for(var r of n.steps)if(this.$n(e,r))return!0;return!1}onAction(e,n){return this.Dn.on(e,n)}jn(e,n){if(n!=null&&n.url){var r,o=e==null||(r=e.properties)==null?void 0:r.$current_url;if(!o||typeof o!="string"||!Yr(o,n.url,n.url_matching||"contains"))return!1}return!0}Hn(e,n){return!!this.Zn(e,n)&&!!this.Gn(e,n)&&!!this.Qn(e,n)}Zn(e,n){var r;if(n==null||!n.href)return!0;var o=this.Jn(e);if(o.length>0)return o.some((f=>Yr(f.href,n.href,n.href_matching||"exact")));var u,c=(e==null||(r=e.properties)==null?void 0:r.$elements_chain)||"";return!!c&&Yr((u=c.match(/(?::|")href="(.*?)"/))?u[1]:"",n.href,n.href_matching||"exact")}Gn(e,n){var r;if(n==null||!n.text)return!0;var o=this.Jn(e);if(o.length>0)return o.some((g=>Yr(g.text,n.text,n.text_matching||"exact")||Yr(g.$el_text,n.text,n.text_matching||"exact")));var u,c,f,h=(e==null||(r=e.properties)==null?void 0:r.$elements_chain)||"";return!!h&&(u=(function(g){for(var m,v=[],_=/(?::|")text="(.*?)"/g;!Re(m=_.exec(g));)v.includes(m[1])||v.push(m[1]);return v})(h),c=n.text,f=n.text_matching||"exact",u.some((g=>Yr(g,c,f))))}Qn(e,n){var r,o;if(n==null||!n.selector)return!0;var u=e==null||(r=e.properties)==null?void 0:r.$element_selectors;if(u!=null&&u.includes(n.selector))return!0;var c=(e==null||(o=e.properties)==null?void 0:o.$elements_chain)||"";if(n.selector_regex&&c)try{return new RegExp(n.selector_regex).test(c)}catch{return!1}return!1}Jn(e){var n;return(e==null||(n=e.properties)==null?void 0:n.$elements)==null?[]:e?.properties.$elements}Un(e,n){return n==null||!n.properties||n.properties.length===0||eS(n.properties.reduce(((r,o)=>{var u=Oe(o.value)?o.value.map(String):o.value!=null?[String(o.value)]:[];return r[o.key]={values:u,operator:o.operator||"exact"},r}),{}),e?.properties)}}class K3{constructor(e){this._instance=e,this.Kn=new Map,this.Yn=new Map,this.Xn=new Map}es(e,n){return!!e&&eS(e.propertyFilters,n?.properties)}ts(e,n){var r=new Map;return e.forEach((o=>{var u;(u=o.conditions)==null||(u=u[n])==null||(u=u.values)==null||u.forEach((c=>{if(c!=null&&c.name){var f=r.get(c.name)||[];f.push(o.id),r.set(c.name,f)}}))})),r}rs(e,n,r){var o=(r===To.Activation?this.Kn:this.Yn).get(e),u=[];return this.ns((c=>{u=c.filter((f=>o?.includes(f.id)))})),u.filter((c=>{var f,h=(f=c.conditions)==null||(f=f[r])==null||(f=f.values)==null?void 0:f.find((g=>g.name===e));return this.es(h,n)}))}register(e){var n;se((n=this._instance)==null?void 0:n._addCaptureHook)||(this.ss(e),this.os(e))}os(e){var n=e.filter((r=>{var o,u;return((o=r.conditions)==null?void 0:o.actions)&&((u=r.conditions)==null||(u=u.actions)==null||(u=u.values)==null?void 0:u.length)>0}));n.length!==0&&(this.us==null&&(this.us=new X3(this._instance),this.us.init(),this.us.Wn((r=>{this.onAction(r)}))),n.forEach((r=>{var o,u,c,f,h;r.conditions&&(o=r.conditions)!=null&&o.actions&&(u=r.conditions)!=null&&(u=u.actions)!=null&&u.values&&((c=r.conditions)==null||(c=c.actions)==null||(c=c.values)==null?void 0:c.length)>0&&((f=this.us)==null||f.register(r.conditions.actions.values),(h=r.conditions)==null||(h=h.actions)==null||(h=h.values)==null||h.forEach((g=>{if(g&&g.name){var m=this.Xn.get(g.name);m&&m.push(r.id),this.Xn.set(g.name,m||[r.id])}})))})))}ss(e){var n,r=e.filter((u=>{var c,f;return((c=u.conditions)==null?void 0:c.events)&&((f=u.conditions)==null||(f=f.events)==null||(f=f.values)==null?void 0:f.length)>0})),o=e.filter((u=>{var c,f;return((c=u.conditions)==null?void 0:c.cancelEvents)&&((f=u.conditions)==null||(f=f.cancelEvents)==null||(f=f.values)==null?void 0:f.length)>0}));r.length===0&&o.length===0||((n=this._instance)==null||n._addCaptureHook(((u,c)=>{this.onEvent(u,c)})),this.Kn=this.ts(e,To.Activation),this.Yn=this.ts(e,To.Cancellation))}onEvent(e,n){var r,o=this.le(),u=this.ls(),c=this.hs(),f=((r=this._instance)==null||(r=r.persistence)==null?void 0:r.props[u])||[];if(c===e&&n&&f.length>0){var h,g;o.info("event matched, removing item from activated items",{event:e,eventPayload:n,existingActivatedItems:f});var m=(n==null||(h=n.properties)==null?void 0:h.$survey_id)||(n==null||(g=n.properties)==null?void 0:g.$product_tour_id);if(m){var v=f.indexOf(m);0>v||(f.splice(v,1),this.cs(f))}}else{if(this.Yn.has(e)){var _=this.rs(e,n,To.Cancellation);_.length>0&&(o.info("cancel event matched, cancelling items",{event:e,itemsToCancel:_.map((x=>x.id))}),_.forEach((x=>{var E=f.indexOf(x.id);0>E||f.splice(E,1),this.ds(x.id)})),this.cs(f))}if(this.Kn.has(e)){o.info("event name matched",{event:e,eventPayload:n,items:this.Kn.get(e)});var b=this.rs(e,n,To.Activation);this.cs(f.concat(b.map((x=>x.id))||[]))}}}onAction(e){var n,r=this.ls(),o=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[r])||[];this.Xn.has(e)&&this.cs(o.concat(this.Xn.get(e)||[]))}cs(e){var n=this.le(),r=[...new Set(e)].filter((o=>!this.vs(o)));n.info("updating activated items",{activatedItems:r}),this.fs(r)}getActivatedIds(){var e,n=this.ls();return((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[n])||[]}getEventToItemsMap(){return this.Kn}ps(){return this.us}}class Z3 extends K3{constructor(e){super(e)}ls(){return Rh}hs(){return wo.SHOWN}ns(e){var n;(n=this._instance)==null||n.getSurveys(e)}ds(e){var n;(n=this._instance)==null||n.cancelPendingSurvey(e)}le(){return He}fs(e){var n;(n=this._instance)==null||(n=n.persistence)==null||n.register({[Rh]:e})}vs(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var yp="SDK is not enabled or survey functionality is not yet loaded",gS="Disabled. Not loading surveys.",Q3=B!=null&&B.location?$u(B.location.hash,"__posthog")||$u(location.hash,"state"):null,mS="_postHogToolbarParams",vS=ot("[Toolbar]"),kt=ot("[FeatureFlags]"),$s=ot("[FeatureFlags]",{debugEnabled:!0}),_p=`" failed. Feature flags didn't load in time.`,yS=t=>{for(var e={},n=0;t.length>n;n++)e[t[n]]=!0;return e},_S=t=>{var e={};for(var[n,r]of Bu(t||{}))r&&(e[n]=r);return e},vi=ot("[Error tracking]"),bS="Refusing to render web experiment since the viewer is a likely bot",J3={icontains:(t,e)=>!!B&&e.href.toLowerCase().indexOf(t.toLowerCase())>-1,not_icontains:(t,e)=>!!B&&e.href.toLowerCase().indexOf(t.toLowerCase())===-1,regex:(t,e)=>!!B&&Ju(e.href,t),not_regex:(t,e)=>!!B&&!Ju(e.href,t),exact:(t,e)=>e.href===t,is_not:(t,e)=>e.href!==t};class qt{get qt(){return this._instance.config}constructor(e){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(r){r===void 0&&(r=!1),n.getWebExperiments((o=>{qt.gs("retrieved web experiments from the server"),n.ys=new Map,o.forEach((u=>{if(u.feature_flag_key){var c;n.ys&&(qt.gs("setting flag key ",u.feature_flag_key," to web experiment ",u),(c=n.ys)==null||c.set(u.feature_flag_key,u));var f=n._instance.getFeatureFlag(u.feature_flag_key);at(f)&&u.variants[f]&&n.bs(u.name,f,u.variants[f].transforms)}else if(u.variants)for(var h in u.variants){var g=u.variants[h];qt._s(g)&&n.bs(u.name,h,g.transforms)}}))}),r)},this._instance=e,this._instance.onFeatureFlags((r=>{this.onFeatureFlags(r)}))}initialize(){}onFeatureFlags(e){if(this._is_bot())qt.gs(bS);else if(!this.qt.disable_web_experiments){if(Re(this.ys))return this.ys=new Map,this.loadIfEnabled(),void this.previewWebExperiment();qt.gs("applying feature flags",e),e.forEach((n=>{var r;if(this.ys&&(r=this.ys)!=null&&r.has(n)){var o,u=this._instance.getFeatureFlag(n),c=(o=this.ys)==null?void 0:o.get(n);u&&c!=null&&c.variants[u]&&this.bs(c.name,u,c.variants[u].transforms)}}))}}previewWebExperiment(){var e=qt.getWindowLocation();if(e!=null&&e.search){var n=So(e?.search,"__experiment_id"),r=So(e?.search,"__experiment_variant");n&&r&&(qt.gs("previewing web experiments "+n+" && "+r),this.getWebExperiments((o=>{this.ws(parseInt(n),r,o)}),!1,!0))}}loadIfEnabled(){this.qt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,n,r){if(this.qt.disable_web_experiments&&!r)return e([]);var o=this._instance.get_property("$web_experiments");if(o&&!n)return e(o);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.qt.token),method:"GET",callback:u=>e(u.statusCode===200&&u.json&&u.json.experiments||[])})}ws(e,n,r){var o=r.filter((u=>u.id===e));o&&o.length>0&&(qt.gs("Previewing web experiment ["+o[0].name+"] with variant ["+n+"]"),this.bs(o[0].name,n,o[0].variants[n].transforms))}static _s(e){return!Re(e.conditions)&&qt.xs(e)&&qt.Ss(e)}static xs(e){var n;if(Re(e.conditions)||Re((n=e.conditions)==null?void 0:n.url))return!0;var r,o,u,c=qt.getWindowLocation();return!!c&&((r=e.conditions)==null||!r.url||J3[(o=(u=e.conditions)==null?void 0:u.urlMatchType)!==null&&o!==void 0?o:"icontains"](e.conditions.url,c))}static getWindowLocation(){return B?.location}static Ss(e){var n;if(Re(e.conditions)||Re((n=e.conditions)==null?void 0:n.utm))return!0;var r=Ab();if(r.utm_source){var o,u,c,f,h,g,m,v,_=(o=e.conditions)==null||(o=o.utm)==null||!o.utm_campaign||((u=e.conditions)==null||(u=u.utm)==null?void 0:u.utm_campaign)==r.utm_campaign,b=(c=e.conditions)==null||(c=c.utm)==null||!c.utm_source||((f=e.conditions)==null||(f=f.utm)==null?void 0:f.utm_source)==r.utm_source,x=(h=e.conditions)==null||(h=h.utm)==null||!h.utm_medium||((g=e.conditions)==null||(g=g.utm)==null?void 0:g.utm_medium)==r.utm_medium,E=(m=e.conditions)==null||(m=m.utm)==null||!m.utm_term||((v=e.conditions)==null||(v=v.utm)==null?void 0:v.utm_term)==r.utm_term;return _&&x&&E&&b}return!1}static gs(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;n>o;o++)r[o-1]=arguments[o];re.info("[WebExperiments] "+e,r)}bs(e,n,r){this._is_bot()?qt.gs(bS):n!=="control"?r.forEach((o=>{if(o.selector){var u;qt.gs("applying transform of variant "+n+" for experiment "+e+" ",o);var c=(u=document)==null?void 0:u.querySelectorAll(o.selector);c?.forEach((f=>{var h=f;o.html&&(h.innerHTML=o.html),o.css&&h.setAttribute("style",o.css)}))}})):qt.gs("Control variants leave the page unmodified.")}_is_bot(){return on&&this._instance?Qb(on,this.qt.custom_blocked_useragents):void 0}}var Cn=ot("[Conversations]"),Gs="Conversations not available yet.",tc={featureFlags:class{constructor(t){this.ks=!1,this.Cs=!1,this.Is=!1,this.Ts=!1,this.Es=!1,this.Ms=!1,this.Rs=!1,this.Ps=!1,this._instance=t,this.featureFlagEventHandlers=[]}get qt(){return this._instance.config}get ki(){return this._instance.persistence}Os(t){return this._instance.get_property(t)}Ls(){var t,e;return(t=(e=this.ki)==null?void 0:e.Mr(this.qt.feature_flag_cache_ttl_ms))!==null&&t!==void 0&&t}Fs(){return!!this.Ls()&&(this.Ps||this.Is||(this.Ps=!0,kt.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}As(){var t,e=(t=this.qt.evaluation_contexts)!==null&&t!==void 0?t:this.qt.evaluation_environments;return!this.qt.evaluation_environments||this.qt.evaluation_contexts||this.Rs||(kt.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.Rs=!0),e!=null&&e.length?e.filter((n=>{var r=n&&typeof n=="string"&&n.trim().length>0;return r||kt.error("Invalid evaluation context found:",n,"Expected non-empty string"),r})):[]}Ns(){return this.As().length>0}Ds(){var t=this.qt.flag_keys;if(!se(t)){if(Oe(t))return t.filter((e=>{var n=e&&typeof e=="string"&&e.trim().length>0;return n||kt.error("Invalid flag key found:",e,"Expected non-empty string"),n}));kt.error("Invalid flag_keys found:",t,"Expected array of non-empty strings")}}initialize(){var t,e,{config:n}=this._instance,r=(t=(e=n.bootstrap)==null?void 0:e.featureFlags)!==null&&t!==void 0?t:{};if(Object.keys(r).length){var o,u,c=(o=(u=n.bootstrap)==null?void 0:u.featureFlagPayloads)!==null&&o!==void 0?o:{},f=Object.keys(r).filter((g=>!!r[g])).reduce(((g,m)=>(g[m]=r[m]||!1,g)),{}),h=Object.keys(c).filter((g=>f[g])).reduce(((g,m)=>(c[m]&&(g[m]=c[m]),g)),{});this.receivedFeatureFlags({featureFlags:f,featureFlagPayloads:h})}}updateFlags(t,e,n){var r=n!=null&&n.merge?this.getFlagVariants():{},o=n!=null&&n.merge?this.getFlagPayloads():{},u=ne({},r,t),c=ne({},o,e),f={};for(var[h,g]of Object.entries(u)){var m=typeof g=="string";f[h]={key:h,enabled:!!m||!!g,variant:m?g:void 0,reason:void 0,metadata:se(c?.[h])?void 0:{id:0,version:void 0,description:void 0,payload:c[h]}}}this.receivedFeatureFlags({flags:f})}get hasLoadedFlags(){return this.Cs}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this.Os(wh),e=this.Os(hi),n=this.Os(jr);if(!n&&!e)return t||{};var r=We({},t||{}),o=[...new Set([...Object.keys(n||{}),...Object.keys(e||{})])];for(var u of o){var c,f,h=r[u],g=e?.[u],m=se(g)?(c=h?.enabled)!==null&&c!==void 0&&c:!!g,v=se(g)?h.variant:typeof g=="string"?g:void 0,_=n?.[u],b=ne({},h,{enabled:m,variant:m?v??h?.variant:void 0});m!==h?.enabled&&(b.original_enabled=h?.enabled),v!==h?.variant&&(b.original_variant=h?.variant),_&&(b.metadata=ne({},h?.metadata,{payload:_,original_payload:h==null||(f=h.metadata)==null?void 0:f.payload})),r[u]=b}return this.ks||(kt.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:n,finalDetails:r}),this.ks=!0),r}getFlagVariants(){var t=this.Os(zr),e=this.Os(hi);if(!e)return t||{};for(var n=We({},t),r=Object.keys(e),o=0;r.length>o;o++)n[r[o]]=e[r[o]];return this.ks||(kt.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:e,finalFlags:n}),this.ks=!0),n}getFlagPayloads(){var t=this.Os(Ah),e=this.Os(jr);if(!e)return t||{};for(var n=We({},t||{}),r=Object.keys(e),o=0;r.length>o;o++)n[r[o]]=e[r[o]];return this.ks||(kt.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:e,finalPayloads:n}),this.ks=!0),n}reloadFeatureFlags(){this.Ts||this.qt.advanced_disable_feature_flags||this.$s||(this._instance.nn.emit("featureFlagsReloading",!0),this.$s=setTimeout((()=>{this.qs()}),5))}js(){clearTimeout(this.$s),this.$s=void 0}ensureFlagsLoaded(){this.Cs||this.Is||this.$s||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.Ts=t}qs(t){var e;if(this.js(),!this._instance.Kr())if(this.Is)this.Es=!0;else{var n=this.qt.token,r=this.Os(Ou),o={token:n,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:ne({},((e=this.ki)==null?void 0:e.get_initial_props())||{},this.Os(po)||{}),group_properties:this.Os(Is),timezone:Lb()};un(r)||se(r)||(o.$device_id=r),(t!=null&&t.disableFlags||this.qt.advanced_disable_feature_flags)&&(o.disable_flags=!0),this.Ns()&&(o.evaluation_contexts=this.As());var u=this.Ds();se(u)||(o.flag_keys=u);var c=!!this.qt.advanced_only_evaluate_survey_feature_flags,f=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.qt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Is=!0,this._instance._send_request({method:"POST",url:f,data:o,compression:this.qt.disable_compression?void 0:Jn.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback:h=>{var g,m,v,_=!0;if(h.statusCode===200&&(this.Es||(this.$anon_distinct_id=void 0),_=!1),this.Is=!1,!o.disable_flags||this.Es){this.Ms=!_;var b=[];h.error?h.error instanceof Error?b.push(h.error.name==="AbortError"?"timeout":"connection_error"):b.push("unknown_error"):h.statusCode!==200&&b.push("api_error_"+h.statusCode),(g=h.json)!=null&&g.errorsWhileComputingFlags&&b.push("errors_while_computing_flags");var x,E=!((m=h.json)==null||(m=m.quotaLimited)==null||!m.includes("feature_flags"));E&&b.push("quota_limited"),(v=this.ki)==null||v.register({[kh]:b}),E?kt.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(o.disable_flags||this.receivedFeatureFlags((x=h.json)!==null&&x!==void 0?x:{},_,{partialResponse:c}),this.Es&&(this.Es=!1,this.qs()))}}})}}getFeatureFlag(t,e){var n;if(e===void 0&&(e={}),!e.fresh||this.Ms)if(this.Cs||this.getFlags()&&this.getFlags().length>0){if(!this.Fs()){var r=this.getFeatureFlagResult(t,e);return(n=r?.variant)!==null&&n!==void 0?n:r?.enabled}}else kt.warn('getFeatureFlag for key "'+t+_p)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){var e=this.getFeatureFlagResult(t,{send_event:!1});return e?.payload}getFeatureFlagResult(t,e){if(e===void 0&&(e={}),!e.fresh||this.Ms)if(this.Cs||this.getFlags()&&this.getFlags().length>0){if(!this.Fs()){var n=this.getFlagVariants(),r=t in n,o=n[t],u=this.getFlagPayloads()[t],c=String(o),f=this.Os(Ch)||void 0,h=this.Os(mo)||void 0,g=this.Os(go)||{};if(this.qt.advanced_feature_flags_dedup_per_session){var m,v=this._instance.get_session_id(),_=this.Os(Dh);v&&v!==_&&(g={},(m=this.ki)==null||m.register({[go]:g,[Dh]:v}))}if((e.send_event||!("send_event"in e))&&(!(t in g)||!g[t].includes(c))){var b,x,E,M,R,q,F,K,U,Q;Oe(g[t])?g[t].push(c):g[t]=[c],(b=this.ki)==null||b.register({[go]:g});var P=this.getFeatureFlagDetails(t),I=[...(x=this.Os(kh))!==null&&x!==void 0?x:[]];se(o)&&I.push("flag_missing");var $={$feature_flag:t,$feature_flag_response:o,$feature_flag_payload:u||null,$feature_flag_request_id:f,$feature_flag_evaluated_at:h,$feature_flag_bootstrapped_response:((E=this.qt.bootstrap)==null||(E=E.featureFlags)==null?void 0:E[t])||null,$feature_flag_bootstrapped_payload:((M=this.qt.bootstrap)==null||(M=M.featureFlagPayloads)==null?void 0:M[t])||null,$used_bootstrap_value:!this.Ms};se(P==null||(R=P.metadata)==null?void 0:R.version)||($.$feature_flag_version=P.metadata.version);var ee,le=(q=P==null||(F=P.reason)==null?void 0:F.description)!==null&&q!==void 0?q:P==null||(K=P.reason)==null?void 0:K.code;le&&($.$feature_flag_reason=le),P!=null&&(U=P.metadata)!=null&&U.id&&($.$feature_flag_id=P.metadata.id),se(P?.original_variant)&&se(P?.original_enabled)||($.$feature_flag_original_response=se(P.original_variant)?P.original_enabled:P.original_variant),P!=null&&(Q=P.metadata)!=null&&Q.original_payload&&($.$feature_flag_original_payload=P==null||(ee=P.metadata)==null?void 0:ee.original_payload),I.length&&($.$feature_flag_error=I.join(",")),this._instance.capture("$feature_flag_called",$)}if(r){var ie=u;if(!se(u))try{ie=JSON.parse(u)}catch{}return{key:t,enabled:!!o,variant:typeof o=="string"?o:void 0,payload:ie}}}}else kt.warn('getFeatureFlagResult for key "'+t+_p)}getRemoteConfigPayload(t,e){var n=this.qt.token,r={distinct_id:this._instance.get_distinct_id(),token:n};this.Ns()&&(r.evaluation_contexts=this.As());var o=this.Ds();se(o)||(r.flag_keys=o),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:r,compression:this.qt.disable_compression?void 0:Jn.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback(u){var c,f=(c=u.json)==null?void 0:c.featureFlagPayloads;e(f?.[t]||void 0)}})}isFeatureEnabled(t,e){if(e===void 0&&(e={}),!e.fresh||this.Ms){if(this.Cs||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(t,e);return se(n)?void 0:!!n}kt.warn('isFeatureEnabled for key "'+t+_p)}}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((e=>e!==t))}receivedFeatureFlags(t,e,n){if(this.ki){this.Cs=!0;var r=this.getFlagVariants(),o=this.getFlagPayloads(),u=this.getFlagsWithDetails();(function(c,f,h,g,m,v){h===void 0&&(h={}),g===void 0&&(g={}),m===void 0&&(m={});var _=(I=>{var $=I.flags;return $?(I.featureFlags=Object.fromEntries(Object.keys($).map((ee=>{var le;return[ee,(le=$[ee].variant)!==null&&le!==void 0?le:$[ee].enabled]}))),I.featureFlagPayloads=Object.fromEntries(Object.keys($).filter((ee=>$[ee].enabled)).filter((ee=>{var le;return(le=$[ee].metadata)==null?void 0:le.payload})).map((ee=>{var le;return[ee,(le=$[ee].metadata)==null?void 0:le.payload]})))):kt.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),I})(c),b=_.flags,x=_.featureFlags,E=_.featureFlagPayloads;if(x){var M=c.requestId,R=c.evaluatedAt;if(Oe(x)){kt.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var q={};if(x)for(var F=0;x.length>F;F++)q[x[F]]=!0;f&&f.register({[Ru]:x,[zr]:q})}else{var K=x,U=E,Q=b;if(v!=null&&v.partialResponse)K=ne({},h,K),U=ne({},g,U),Q=ne({},m,Q);else if(c.errorsWhileComputingFlags)if(b){var P=new Set(Object.keys(b).filter((I=>{var $;return!(($=b[I])!=null&&$.failed)})));K=ne({},h,Object.fromEntries(Object.entries(K).filter((I=>{var[$]=I;return P.has($)})))),U=ne({},g,Object.fromEntries(Object.entries(U||{}).filter((I=>{var[$]=I;return P.has($)})))),Q=ne({},m,Object.fromEntries(Object.entries(Q||{}).filter((I=>{var[$]=I;return P.has($)}))))}else K=ne({},h,K),U=ne({},g,U),Q=ne({},m,Q);f&&f.register(ne({[Ru]:Object.keys(_S(K)),[zr]:K||{},[Ah]:U||{},[wh]:Q||{}},M?{[Ch]:M}:{},R?{[mo]:R}:{}))}}})(t,this.ki,r,o,u,n),e||(this.Ps=!1),this.Hs(e)}}override(t,e){e===void 0&&(e=!1),kt.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:e})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this.ki)return kt.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this.ki.unregister(hi),this.ki.unregister(jr),this.Hs(),$s.info("All overrides cleared");if(Oe(t)){var e=yS(t);return this.ki.register({[hi]:e}),this.Hs(),$s.info("Flag overrides set",{flags:t})}if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var n,r=t;if(this.ks=!!((n=r.suppressWarning)!==null&&n!==void 0&&n),"flags"in r){if(r.flags===!1)this.ki.unregister(hi),$s.info("Flag overrides cleared");else if(r.flags){if(Oe(r.flags)){var o=yS(r.flags);this.ki.register({[hi]:o})}else this.ki.register({[hi]:r.flags});$s.info("Flag overrides set",{flags:r.flags})}}return"payloads"in r&&(r.payloads===!1?(this.ki.unregister(jr),$s.info("Payload overrides cleared")):r.payloads&&(this.ki.register({[jr]:r.payloads}),$s.info("Payload overrides set",{payloads:r.payloads}))),void this.Hs()}if(t&&typeof t=="object")return this.ki.register({[hi]:t}),this.Hs(),$s.info("Flag overrides set",{flags:t});kt.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:t})}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.Cs){var{flags:e,flagVariants:n}=this.Us();t(e,n)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,e,n){var r,o=(this.Os(ho)||[]).find((h=>h.flagKey===t)),u={["$feature_enrollment/"+t]:e},c={$feature_flag:t,$feature_enrollment:e,$set:u};o&&(c.$early_access_feature_name=o.name),n&&(c.$feature_enrollment_stage=n),this._instance.capture("$feature_enrollment_update",c),this.setPersonPropertiesForFlags(u,!1);var f=ne({},this.getFlagVariants(),{[t]:e});(r=this.ki)==null||r.register({[Ru]:Object.keys(_S(f)),[zr]:f}),this.Hs()}getEarlyAccessFeatures(t,e,n){e===void 0&&(e=!1);var r=this.Os(ho),o=n?"&"+n.map((u=>"stage="+u)).join("&"):"";if(r&&!e)return t(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.qt.token+o),method:"GET",callback:u=>{var c,f;if(u.json){var h=u.json.earlyAccessFeatures;return(c=this.ki)==null||c.unregister(ho),(f=this.ki)==null||f.register({[ho]:h}),t(h)}}})}Us(){var t=this.getFlags(),e=this.getFlagVariants();return{flags:t.filter((n=>e[n])),flagVariants:Object.keys(e).filter((n=>e[n])).reduce(((n,r)=>(n[r]=e[r],n)),{})}}Hs(t){var{flags:e,flagVariants:n}=this.Us();this.featureFlagEventHandlers.forEach((r=>r(e,n,{errorsLoading:t})))}setPersonPropertiesForFlags(t,e){e===void 0&&(e=!0);var n=this.Os(po)||{},r=t?.$set||(t!=null&&t.$set_once?{}:t),o=t?.$set_once,u={};if(o)for(var c in o)({}).hasOwnProperty.call(o,c)&&(c in n||(u[c]=o[c]));this._instance.register({[po]:ne({},n,u,r)}),e&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(po)}setGroupPropertiesForFlags(t,e){e===void 0&&(e=!0);var n=this.Os(Is)||{};Object.keys(n).length!==0&&Object.keys(n).forEach((r=>{n[r]=ne({},n[r],t[r]),delete t[r]})),this._instance.register({[Is]:ne({},n,t)}),e&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var e=this.Os(Is)||{};this._instance.register({[Is]:ne({},e,{[t]:{}})})}else this._instance.unregister(Is)}reset(){this.Cs=!1,this.Is=!1,this.Ts=!1,this.Es=!1,this.Ms=!1,this.$anon_distinct_id=void 0,this.js(),this.ks=!1}}},W3={sessionRecording:class{get qt(){return this._instance.config}get ki(){return this._instance.persistence}get started(){var t;return!((t=this.Bs)==null||!t.isStarted)}get status(){var t,e;return this.zs===Lo||this.zs===ec?this.zs:(t=(e=this.Bs)==null?void 0:e.status)!==null&&t!==void 0?t:this.zs}constructor(t){if(this._forceAllowLocalhostNetworkCapture=!1,this.zs=cS,this.Vs=void 0,this._instance=t,!this._instance.sessionManager)throw mi.error("started without valid sessionManager"),new Error(vp+" started without valid sessionManager. This is a bug.");if(this.qt.cookieless_mode===pi)throw new Error(vp+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get Ws(){var t,e=!((t=this._instance.get_property(Vs))==null||!t.enabled),n=!this.qt.disable_session_recording,r=this.qt.disable_session_recording||this._instance.consent.isOptedOut();return B&&e&&n&&!r}startIfEnabledOrStop(t){var e;if(!this.Ws||(e=this.Bs)==null||!e.isStarted){var n=!se(Object.assign)&&!se(Array.from);this.Ws&&n?(this.Zs(t),mi.info("starting")):(this.zs=cS,this.stopRecording())}}Zs(t){var e,n,r;this.Ws&&(this.zs!==Lo&&this.zs!==ec&&(this.zs=fS),pe!=null&&(e=pe.__PosthogExtensions__)!=null&&(e=e.rrweb)!=null&&e.record&&(n=pe.__PosthogExtensions__)!=null&&n.initSessionRecording?this.Gs(t):(r=pe.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,this.Qs,(o=>{if(o)return mi.error("could not load recorder",o);this.Gs(t)})))}stopRecording(){var t,e;(t=this.Vs)==null||t.call(this),this.Vs=void 0,(e=this.Bs)==null||e.stop()}Js(){var t,e;(t=this.Vs)==null||t.call(this),this.Vs=void 0,(e=this.Bs)==null||e.discard()}Ks(){var t;(t=this.ki)==null||t.unregister(Th)}Ys(t,e){if(Re(t))return null;var n,r=Gt(t)?t:parseFloat(t);return typeof(n=r)!="number"||!Number.isFinite(n)||0>n||n>1?(mi.warn(e+" must be between 0 and 1. Ignoring invalid value:",t),null):r}Xs(t){if(this.ki){var e,n,r=this.ki,o=()=>{var u,c=t.sessionRecording===!1?void 0:t.sessionRecording,f=this.Ys((u=this.qt.session_recording)==null?void 0:u.sampleRate,"session_recording.sampleRate"),h=this.Ys(c?.sampleRate,"remote config sampleRate"),g=f??h;Re(g)&&this.Ks();var m=c?.minimumDurationMilliseconds;r.register({[Vs]:ne({cache_timestamp:Date.now(),enabled:!!c},c,{networkPayloadCapture:ne({capturePerformance:t.capturePerformance},c?.networkPayloadCapture),canvasRecording:{enabled:c?.recordCanvas,fps:c?.canvasFps,quality:c?.canvasQuality},sampleRate:g,minimumDurationMilliseconds:se(m)?null:m,endpoint:c?.endpoint,triggerMatchType:c?.triggerMatchType,masking:c?.masking,urlTriggers:c?.urlTriggers,version:c?.version,triggerGroups:c?.triggerGroups})})};o(),(e=this.Vs)==null||e.call(this),this.Vs=(n=this._instance.sessionManager)==null?void 0:n.onSessionId(o)}}onRemoteConfig(t){return"sessionRecording"in t?t.sessionRecording===!1?(this.Xs(t),void this.Js()):(this.Xs(t),void this.startIfEnabledOrStop()):(this.zs===Lo&&(this.zs=ec,mi.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(t,e){var n;e===void 0&&(e="log"),(n=this.Bs)!=null&&n.log?this.Bs.log(t,e):mi.warn("log called before recorder was ready")}get Qs(){var t,e,n=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(Vs);return(n==null||(e=n.scriptConfig)==null?void 0:e.script)||"lazy-recorder"}eo(){var t,e,n=this._instance.get_property(Vs);if(!n)return!1;try{e=typeof n=="object"?n:JSON.parse(n)}catch(o){return mi.warn("persisted remote config for session recording is invalid and will be ignored",o),!1}var r=(t=e.cache_timestamp)!==null&&t!==void 0?t:Date.now();return 36e5>=Date.now()-r}Gs(t){var e,n;if((e=pe.__PosthogExtensions__)==null||!e.initSessionRecording)return mi.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[J0]:!0});if(this.Bs||(this.Bs=(n=pe.__PosthogExtensions__)==null?void 0:n.initSessionRecording(this._instance),this.Bs._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.eo())return this.zs===ec||this.zs===Lo?void 0:(this.zs=Lo,mi.info("persisted remote config is stale, requesting fresh config before starting"),void new jb(this._instance).load());this.zs=fS,this.Bs.start(t)}onRRwebEmit(t){var e;(e=this.Bs)==null||e.onRRwebEmit==null||e.onRRwebEmit(t)}overrideLinkedFlag(){var t,e;this.Bs||(e=this.ki)==null||e.register({[G0]:!0}),(t=this.Bs)==null||t.overrideLinkedFlag()}overrideSampling(){var t,e;this.Bs||(e=this.ki)==null||e.register({[$0]:!0}),(t=this.Bs)==null||t.overrideSampling()}overrideTrigger(t){var e,n;this.Bs||(n=this.ki)==null||n.register({[t==="url"?Y0:X0]:!0}),(e=this.Bs)==null||e.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this.Bs)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,e){var n;return!((n=this.Bs)==null||!n.tryAddCustomEvent(t,e))}}},ek={autocapture:class{constructor(t){this.ro=!1,this.io=null,this.no=!1,this.instance=t,this.rageclicks=new lS(t.config.rageclick),this.so=null}initialize(){this.startIfEnabled()}get qt(){var t,e,n=ut(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=(t=n.url_allowlist)==null?void 0:t.map((r=>new RegExp(r))),n.url_ignorelist=(e=n.url_ignorelist)==null?void 0:e.map((r=>new RegExp(r))),n}oo(){if(this.isBrowserSupported()){if(B&&ae){var t=n=>{n=n||B?.event;try{this.ao(n)}catch(r){gp.error("Failed to capture event",r)}};if(dt(ae,"submit",t,{capture:!0}),dt(ae,"change",t,{capture:!0}),dt(ae,"click",t,{capture:!0}),this.qt.capture_copied_text){var e=n=>{n=n||B?.event;try{this.ao(n,pp)}catch(r){gp.error("Failed to capture copy/cut event",r)}};dt(ae,"copy",e,{capture:!0}),dt(ae,"cut",e,{capture:!0})}}}else gp.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.ro&&(this.oo(),this.ro=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this.no=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[gh]:!!t.autocapture_opt_out}),this.io=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this.so=t}getElementSelectors(t){var e,n=[];return(e=this.so)==null||e.forEach((r=>{var o=ae?.querySelectorAll(r);o?.forEach((u=>{t===u&&n.push(r)}))})),n}get isEnabled(){var t,e,n=(t=this.instance.persistence)==null?void 0:t.props[gh];if(un(this.io)&&!Kn(n)&&!this.instance.Kr())return!1;var r=(e=this.io)!==null&&e!==void 0?e:!!n;return!!this.instance.config.autocapture&&!r}ao(t,e){if(e===void 0&&(e="$autocapture"),this.isEnabled){var n,r=Fh(t);rb(r)&&(r=r.parentNode||null),e==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(n=this.rageclicks)!=null&&n.isRageClick(t.clientX,t.clientY,t.timeStamp||new Date().getTime())&&pb(r,this.instance.config.rageclick)&&this.ao(t,"$rageclick");var o=e===pp;if(r&&(function(v,_,b,x,E){var M,R,q,F;if(b===void 0&&(b=void 0),!B||Gh(v)||(M=b)!=null&&M.url_allowlist&&!ob(b.url_allowlist)||(R=b)!=null&&R.url_ignorelist&&ob(b.url_ignorelist))return!1;if((q=b)!=null&&q.dom_event_allowlist){var K=b.dom_event_allowlist;if(K&&!K.some(($=>_.type===$)))return!1}var{parentIsUsefulElement:U,targetElementList:Q}=gb(v,x);if(!(function($,ee){var le=ee?.element_allowlist;if(se(le))return!0;var ie,he=function(L){if(le.some((A=>L.tagName.toLowerCase()===A)))return{v:!0}};for(var ye of $)if(ie=he(ye))return ie.v;return!1})(Q,b)||!ub(Q,(F=b)==null?void 0:F.css_selector_allowlist))return!1;var P=B.getComputedStyle(v);if(P&&P.getPropertyValue("cursor")==="pointer"&&_.type==="click")return!0;var I=v.tagName.toLowerCase();switch(I){case"html":return!1;case"form":return(E||["submit"]).indexOf(_.type)>=0;case"input":case"select":case"textarea":return(E||["change","click"]).indexOf(_.type)>=0;default:return U?(E||["click"]).indexOf(_.type)>=0:(E||["click"]).indexOf(_.type)>=0&&($h.indexOf(I)>-1||v.getAttribute("contenteditable")==="true")}})(r,t,this.qt,o,o?["copy","cut"]:void 0)){var{props:u,explicitNoCapture:c}=F3(r,{e:t,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.qt.element_attribute_ignorelist,elementsChainAsString:this.no});if(c)return!1;var f=this.getElementSelectors(r);if(f&&f.length>0&&(u.$element_selectors=f),e===pp){var h,g=lb(B==null||(h=B.getSelection())==null?void 0:h.toString()),m=t.type||"clipboard";if(!g)return!1;u.$selected_content=g,u.$copy_type=m}return this.instance.capture(e,u),!0}}}isBrowserSupported(){return ci(ae?.querySelectorAll)}},historyAutocapture:class{constructor(t){var e;this._instance=t,this.uo=(B==null||(e=B.location)==null?void 0:e.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(re.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.lo&&this.lo(),this.lo=void 0,re.info("History API monitoring stopped")}monitorHistoryChanges(){B&&B.history&&(this.ho("pushState"),this.ho("replaceState"),this.co())}ho(t){var e;if(B&&((e=B.history[t])==null||!e.__posthog_wrapped__)){var n=this;(function(r,o,u){try{if(!(o in r))return()=>{};var c=r[o],f=u(c);return ci(f)&&(f.prototype=f.prototype||{},Object.defineProperties(f,{__posthog_wrapped__:{enumerable:!1,value:!0}})),r[o]=f,()=>{r[o]===f&&(r[o]=c)}}catch{return()=>{}}})(B.history,t,(r=>function(o,u,c){r.call(this,o,u,c),n.do(t)}))}}do(t){try{var e,n=B==null||(e=B.location)==null?void 0:e.pathname;if(!n)return;n!==this.uo&&this.isEnabled&&this._instance.capture(Vr,{navigation_type:t}),this.uo=n}catch(r){re.error("Error capturing "+t+" pageview",r)}}co(){if(!this.lo){var t=()=>{this.do("popstate")};dt(B,"popstate",t),this.lo=()=>{B&&B.removeEventListener("popstate",t)}}}},heatmaps:class{get qt(){return this.instance.config}constructor(t){var e;this.vo=!1,this.ro=!1,this.fo=null,this.instance=t,this.vo=!((e=this.instance.persistence)==null||!e.props[mh]),this.rageclicks=new lS(t.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var t=5e3;return ut(this.qt.capture_heatmaps)&&this.qt.capture_heatmaps.flush_interval_milliseconds&&(t=this.qt.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return Re(this.qt.capture_heatmaps)?Re(this.qt.enable_heatmaps)?this.vo:this.qt.enable_heatmaps:this.qt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.ro)return;G3.info("starting..."),this.po(),this.At()}else{var t;clearInterval((t=this.fo)!==null&&t!==void 0?t:void 0),this.mo(),this.getAndClearBuffer()}}onRemoteConfig(t){if("heatmaps"in t){var e=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[mh]:e}),this.vo=e,this.startIfEnabled()}}getAndClearBuffer(){var t=this.M;return this.M=void 0,t}yo(t){this.Mt(t.originalEvent,"deadclick")}At(){this.fo&&clearInterval(this.fo),this.fo=ae?.visibilityState==="visible"?setInterval(this.ci.bind(this),this.flushIntervalMilliseconds):null}po(){B&&ae&&(this.bo=this.ci.bind(this),dt(B,ju,this.bo),this._o=t=>this.Mt(t||B?.event),dt(ae,"click",this._o,{capture:!0}),this.wo=t=>this.xo(t||B?.event),dt(ae,"mousemove",this.wo,{capture:!0}),this.So=new Eb(this.instance,u3,this.yo.bind(this)),this.So.startIfEnabledOrStop(),this.ko=this.At.bind(this),dt(ae,zu,this.ko),this.ro=!0)}mo(){var t;B&&ae&&(this.bo&&B.removeEventListener(ju,this.bo),this._o&&ae.removeEventListener("click",this._o,{capture:!0}),this.wo&&ae.removeEventListener("mousemove",this.wo,{capture:!0}),this.ko&&ae.removeEventListener(zu,this.ko),clearTimeout(this.Co),(t=this.So)==null||t.stop(),this.ro=!1)}Io(t,e){var n=this.instance.scrollManager.scrollY(),r=this.instance.scrollManager.scrollX(),o=this.instance.scrollManager.scrollElement(),u=(function(c,f,h){for(var g=c;g&&Xi(g)&&!fn(g,"body");){if(g===h)return!1;if(Ee(f,B?.getComputedStyle(g).position))return!0;g=cb(g)}return!1})(Fh(t),["fixed","sticky"],o);return{x:t.clientX+(u?0:r),y:t.clientY+(u?0:n),target_fixed:u,type:e}}Mt(t,e){var n;if(e===void 0&&(e="click"),!sb(t.target)&&dS(t)){var r=this.Io(t,e);(n=this.rageclicks)!=null&&n.isRageClick(t.clientX,t.clientY,new Date().getTime())&&pb(Fh(t),this.instance.config.rageclick)&&this.To(ne({},r,{type:"rageclick"})),this.To(r)}}xo(t){!sb(t.target)&&dS(t)&&(clearTimeout(this.Co),this.Co=setTimeout((()=>{this.To(this.Io(t,"mousemove"))}),500))}To(t){if(B){var e=B.location.href,n=this.qt.custom_personal_data_properties,r=this.qt.mask_personal_data_properties?[...Ir,...n||[]]:[],o=Eo(e,r,xo);this.M=this.M||{},this.M[o]||(this.M[o]=[]),this.M[o].push(t)}}ci(){this.M&&!Gi(this.M)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:Eb,webVitalsAutocapture:class{constructor(t){var e;this.vo=!1,this.ro=!1,this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Eo=()=>{clearTimeout(this.Mo),this.M.metrics.length!==0&&(this._instance.capture("$web_vitals",this.M.metrics.reduce(((n,r)=>ne({},n,{["$web_vitals_"+r.name+"_event"]:ne({},r),["$web_vitals_"+r.name+"_value"]:r.value})),{})),this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.dt=n=>{var r;this.M=this.M||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var o=this.Ro();if(!se(o))if(Re(n?.name)||Re(n?.value))Fs.error("Invalid metric received",n);else if(!this.Po||this.Po>n.value){this.M.url!==o&&(this.Eo(),this.Mo=setTimeout(this.Eo,this.flushToCaptureTimeoutMs)),se(this.M.url)&&(this.M.url=o),this.M.firstMetricTimestamp=se(this.M.firstMetricTimestamp)?Date.now():this.M.firstMetricTimestamp,n.attribution&&n.attribution.interactionTargetElement&&(n.attribution.interactionTargetElement=void 0);var u=(r=this._instance.sessionManager)==null?void 0:r.checkAndGetSessionAndWindowId(!0),c=ne({},n,{$current_url:o,timestamp:Date.now()});se(u)||(c.$session_id=u.sessionId,c.$window_id=u.windowId),this.M.metrics.push(c),this.M.metrics.length===this.allowedMetrics.length&&this.Eo()}else Fs.error("Ignoring metric with value >= "+this.Po,n)},this.Oo=()=>{if(!this.ro){var n,r,o,u,c=pe.__PosthogExtensions__;se(c)||se(c.postHogWebVitalsCallbacks)||({onLCP:n,onCLS:r,onFCP:o,onINP:u}=c.postHogWebVitalsCallbacks),n&&r&&o&&u?(this.allowedMetrics.indexOf("LCP")>-1&&n(this.dt.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&r(this.dt.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&o(this.dt.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&u(this.dt.bind(this)),this.ro=!0):Fs.error("web vitals callbacks not loaded - not starting")}},this._instance=t,this.vo=!((e=this._instance.persistence)==null||!e.props[bh]),this.startIfEnabled()}get Lo(){return this._instance.config.capture_performance}get allowedMetrics(){var t,e,n=ut(this.Lo)?(t=this.Lo)==null?void 0:t.web_vitals_allowed_metrics:void 0;return Re(n)?((e=this._instance.persistence)==null?void 0:e.props[xh])||["CLS","FCP","INP","LCP"]:n}get flushToCaptureTimeoutMs(){return(ut(this.Lo)?this.Lo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var t=ut(this.Lo)?this.Lo.web_vitals_attribution:void 0;return t!=null&&t}get Po(){var t=ut(this.Lo)&&Gt(this.Lo.__web_vitals_max_value)?this.Lo.__web_vitals_max_value:uS;return t>0&&6e4>=t?uS:t}get isEnabled(){var t=Rt?.protocol;if(t!=="http:"&&t!=="https:")return Fs.info("Web Vitals are disabled on non-http/https protocols"),!1;var e=ut(this.Lo)?this.Lo.web_vitals:Kn(this.Lo)?this.Lo:void 0;return Kn(e)?e:this.vo}startIfEnabled(){this.isEnabled&&!this.ro&&(Fs.info("enabled, starting..."),this.lr(this.Oo))}onRemoteConfig(t){if("capturePerformance"in t){var e=ut(t.capturePerformance)&&!!t.capturePerformance.web_vitals,n=ut(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[bh]:e}),this._instance.persistence.register({[xh]:n})),this.vo=e,this.startIfEnabled()}}lr(t){var e,n;(e=pe.__PosthogExtensions__)!=null&&e.postHogWebVitalsCallbacks?t():(n=pe.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(r=>{r?Fs.error("failed to load script",r):t()}))}Ro(){var t=B?B.location.href:void 0;if(t){var e=this._instance.config.custom_personal_data_properties,n=this._instance.config.mask_personal_data_properties?[...Ir,...e||[]]:[];return Eo(t,n,xo)}Fs.error("Could not determine current URL")}}},tk={exceptionObserver:class{constructor(t){var e,n,r;this.Oo=()=>{var o;if(B&&this.isEnabled&&(o=pe.__PosthogExtensions__)!=null&&o.errorWrappingFunctions){var u=pe.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,c=pe.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,f=pe.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.Fo&&this.qt.capture_unhandled_errors&&(this.Fo=u(this.captureException.bind(this))),!this.Ao&&this.qt.capture_unhandled_rejections&&(this.Ao=c(this.captureException.bind(this))),!this.No&&this.qt.capture_console_errors&&(this.No=f(this.captureException.bind(this)))}catch(h){ko.error("failed to start",h),this.Do()}}},this._instance=t,this.$o=!((e=this._instance.persistence)==null||!e.props[vh]),this.qo=new lD({refillRate:(n=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&n!==void 0?n:1,bucketSize:(r=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&r!==void 0?r:10,refillInterval:1e4,Gt:ko}),this.qt=this.jo(),this.startIfEnabledOrStop()}jo(){var t=this._instance.config.capture_exceptions,e={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return ut(t)?e=ne({},e,t):(se(t)?this.$o:t)&&(e=ne({},e,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),e}get isEnabled(){return this.qt.capture_console_errors||this.qt.capture_unhandled_errors||this.qt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(ko.info("enabled"),this.Do(),this.lr(this.Oo)):this.Do()}lr(t){var e,n;(e=pe.__PosthogExtensions__)!=null&&e.errorWrappingFunctions&&t(),(n=pe.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"exception-autocapture",(r=>{if(r)return ko.error("failed to load script",r);t()}))}Do(){var t,e,n;(t=this.Fo)==null||t.call(this),this.Fo=void 0,(e=this.Ao)==null||e.call(this),this.Ao=void 0,(n=this.No)==null||n.call(this),this.No=void 0}onRemoteConfig(t){"autocaptureExceptions"in t&&(this.$o=!!t.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[vh]:this.$o}),this.qt=this.jo(),this.startIfEnabledOrStop())}onConfigChange(){this.qt=this.jo()}captureException(t){var e,n,r,o=(e=t==null||(n=t.$exception_list)==null||(n=n[0])==null?void 0:n.type)!==null&&e!==void 0?e:"Exception";this.qo.consumeRateLimit(o)?ko.info("Skipping exception capture because of client rate limiting.",{exception:o}):(r=this._instance.exceptions)==null||r.sendExceptionEvent(t)}},exceptions:class{constructor(t){var e,n;this.Ho=[],this.Uo=new SD([new OD,new BD,new DD,new RD,new jD,new zD,new LD,new UD],(function(r){for(var o=arguments.length,u=new Array(o>1?o-1:0),c=1;o>c;c++)u[c-1]=arguments[c];return function(f,h){h===void 0&&(h=0);for(var g=[],m=f.split(`
|
|
33
|
+
`),v=h;m.length>v;v++){var _=m[v];if(1024>=_.length){var b=q0.test(_)?_.replace(q0,"$1"):_;if(!b.match(/\S*Error: /)){for(var x of u){var E=x(b,r);if(E){g.push(E);break}}if(g.length>=50)break}}}return(function(M){if(!M.length)return[];var R=Array.from(M);return R.reverse(),R.slice(0,50).map((q=>{return ne({},q,{filename:q.filename||(F=R,F[F.length-1]||{}).filename,function:q.function||Lr});var F}))})(g)}})("web:javascript",wD,MD)),this._instance=t,this.Ho=(e=(n=this._instance.persistence)==null?void 0:n.get_property(yh))!==null&&e!==void 0?e:[],this.Bo=Mu(this.zo()),this.Vo=new ID(this.Bo)}onConfigChange(){this.Bo=Mu(this.zo()),this.Vo.setConfig(this.Bo)}onRemoteConfig(t){var e,n,r;if("errorTracking"in t){var o=(e=(n=t.errorTracking)==null?void 0:n.suppressionRules)!==null&&e!==void 0?e:[],u=(r=t.errorTracking)==null?void 0:r.captureExtensionExceptions;this.Ho=o,this._instance.persistence&&this._instance.persistence.register({[yh]:this.Ho,[_h]:u})}}get Wo(){var t,e=!!this._instance.get_property(_h),n=this._instance.config.error_tracking.captureExtensionExceptions;return(t=n??e)!==null&&t!==void 0&&t}buildProperties(t,e){return this.Uo.buildFromUnknown(t,{syntheticException:e?.syntheticException,mechanism:{handled:e?.handled}})}addExceptionStep(t,e){if(this.Bo.enabled)try{if(!at(t)||t.trim().length===0)return void vi.warn("Ignoring exception step because message must be a non-empty string");var n=this.Zo(e),{sanitizedProperties:r,droppedKeys:o}=(function(u){if(!u)return{sanitizedProperties:{},droppedKeys:[]};var c=[];return{sanitizedProperties:Object.keys(u).reduce(((f,h)=>VD.has(h)?(c.push(h),f):(f[h]=u[h],f)),{}),droppedKeys:c}})(n);o.length>0&&vi.warn("Ignoring reserved exception step fields",{droppedKeys:o}),this.Vo.add(ne({[Au]:t,[Cu]:new Date().toISOString()},r))}catch(u){vi.error("Failed to add exception step. Ignoring breadcrumb.",u)}}sendExceptionEvent(t){try{var e=t.$exception_list;if(this.Go(e)){if(this.Qo(e))return this.Jo("Exception dropped: matched a suppression rule"),void vi.info("Skipping exception capture because a suppression rule matched");if(!this.Wo&&this.Ko(e))return this.Jo("Exception dropped: thrown by a browser extension"),void vi.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.Yo(e))return this.Jo("Exception dropped: thrown by the PostHog SDK"),void vi.info("Skipping exception capture because it was thrown by the PostHog SDK")}var n=this.Bo.enabled&&Re(t.$exception_steps)?this.Xo(t):t;try{var r=this._instance.capture("$exception",n,{_noTruncate:!0,_batchKey:"exceptionEvent",In:!0});return r&&this.Vo.clear(),r}catch(o){return vi.error("Failed to capture exception event. Dropping this exception.",o),void this.Vo.clear()}}catch(o){return void vi.error("Failed to process exception event. Ignoring this exception.",o)}}Xo(t){try{var e=this.Vo.getAttachable();return e.length===0?t:ne({},t,{$exception_steps:e})}catch(n){return vi.error("Failed to read buffered exception steps. Capturing exception without steps.",n),t}}Jo(t){this.Bo.enabled&&this.Vo.add({[Au]:t,[Cu]:new Date().toISOString()})}Zo(t){return ut(t)?ne({},t):{}}zo(){var t,e;return(t=(e=this._instance.config.error_tracking)==null?void 0:e.exception_steps)!==null&&t!==void 0?t:{}}Qo(t){if(t.length===0)return!1;var e=t.reduce(((n,r)=>{var{type:o,value:u}=r;return at(o)&&o.length>0&&n.$exception_types.push(o),at(u)&&u.length>0&&n.$exception_values.push(u),n}),{$exception_types:[],$exception_values:[]});return this.Ho.some((n=>{var r=n.values.map((o=>{var u,c=Wb[o.operator],f=Oe(o.value)?o.value:[o.value],h=(u=e[o.key])!==null&&u!==void 0?u:[];return f.length>0&&c(f,h)}));return n.type==="OR"?r.some(Boolean):r.every(Boolean)}))}Ko(t){return t.flatMap((e=>{var n,r;return(n=(r=e.stacktrace)==null?void 0:r.frames)!==null&&n!==void 0?n:[]})).some((e=>e.filename&&e.filename.startsWith("chrome-extension://")))}Yo(t){if(t.length>0){var e,n,r,o,u=(e=(n=t[0].stacktrace)==null?void 0:n.frames)!==null&&e!==void 0?e:[],c=u[u.length-1];return(r=c==null||(o=c.filename)==null?void 0:o.includes("posthog.com/static"))!==null&&r!==void 0&&r}return!1}Go(t){return!Re(t)&&Oe(t)}}},nk=ne({productTours:class{get ki(){return this._instance.persistence}constructor(t){this.ea=null,this.ta=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){"productTours"in t&&(this.ki&&this.ki.register({[Eh]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,e;this.ea||(t=this._instance).config.disable_product_tours||(e=t.persistence)==null||!e.get_property(Eh)||this.lr((()=>this.ra()))}lr(t){var e,n;(e=pe.__PosthogExtensions__)!=null&&e.generateProductTours?t():(n=pe.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"product-tours",(r=>{r?hS.error("Could not load product tours script",r):t()}))}ra(){var t;!this.ea&&(t=pe.__PosthogExtensions__)!=null&&t.generateProductTours&&(this.ea=pe.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,e){if(e===void 0&&(e=!1),!Oe(this.ta)||e){var n=this.ki;if(n){var r=n.props[Du];if(Oe(r)&&!e)return this.ta=r,void t(r,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:o=>{var u=o.statusCode;if(u!==200||!o.json){var c="Product Tours API could not be loaded, status: "+u;return hS.error(c),void t([],{isLoaded:!1,error:c})}var f=Oe(o.json.product_tours)?o.json.product_tours:[];this.ta=f,n&&n.register({[Du]:f}),t(f,{isLoaded:!0})}})}else t(this.ta,{isLoaded:!0})}getActiveProductTours(t){Re(this.ea)?t([],{isLoaded:!1,error:"Product tours not loaded"}):this.ea.getActiveProductTours(t)}showProductTour(t){var e;(e=this.ea)==null||e.showTourById(t)}previewTour(t){this.ea?this.ea.previewTour(t):this.lr((()=>{var e;this.ra(),(e=this.ea)==null||e.previewTour(t)}))}dismissProductTour(){var t;(t=this.ea)==null||t.dismissTour("user_clicked_skip")}nextStep(){var t;(t=this.ea)==null||t.nextStep()}previousStep(){var t;(t=this.ea)==null||t.previousStep()}clearCache(){var t;this.ta=null,(t=this.ki)==null||t.unregister(Du)}resetTour(t){var e;(e=this.ea)==null||e.resetTour(t)}resetAllTours(){var t;(t=this.ea)==null||t.resetAllTours()}cancelPendingTour(t){var e;(e=this.ea)==null||e.cancelPendingTour(t)}}},tc),ik={siteApps:class{constructor(t){this._instance=t,this.ia=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}na(t,e){if(e){var n=this.globalsForEvent(e);this.ia.push(n),this.ia.length>1e3&&(this.ia=this.ia.slice(10))}}get siteAppLoaders(){var t;return(t=pe._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}initialize(){if(this.isEnabled){var t=this._instance._addCaptureHook(this.na.bind(this));this.sa=()=>{t(),this.ia=[],this.sa=void 0}}}globalsForEvent(t){var e,n,r,o,u,c,f;if(!t)throw new Error("Event payload is required");var h={},g=this._instance.get_property("$groups")||[],m=this._instance.get_property("$stored_group_properties")||{};for(var[v,_]of Object.entries(m))h[v]={id:g[v],type:v,properties:_};var{$set_once:b,$set:x}=t;return{event:ne({},a0(t,Y3),{properties:ne({},t.properties,x?{$set:ne({},(e=(n=t.properties)==null?void 0:n.$set)!==null&&e!==void 0?e:{},x)}:{},b?{$set_once:ne({},(r=(o=t.properties)==null?void 0:o.$set_once)!==null&&r!==void 0?r:{},b)}:{}),elements_chain:(u=(c=t.properties)==null?void 0:c.$elements_chain)!==null&&u!==void 0?u:"",distinct_id:(f=t.properties)==null?void 0:f.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:h}}setupSiteApp(t){var e=this.apps[t.id],n=()=>{var c;!e.errored&&this.ia.length&&(Ki.info("Processing "+this.ia.length+" events for site app with id "+t.id),this.ia.forEach((f=>e.processEvent==null?void 0:e.processEvent(f))),e.processedBuffer=!0),Object.values(this.apps).every((f=>f.processedBuffer||f.errored))&&((c=this.sa)==null||c.call(this))},r=!1,o=c=>{e.errored=!c,e.loaded=!0,Ki.info("Site app with id "+t.id+" "+(c?"loaded":"errored")),r&&n()};try{var{processEvent:u}=t.init({posthog:this._instance,callback(c){o(c)}});u&&(e.processEvent=u),r=!0}catch(c){Ki.error(pS+t.id,c),o(!1)}if(r&&e.loaded)try{n()}catch(c){Ki.error("Error while processing buffered events PostHog app with config id "+t.id,c),e.errored=!0}}oa(){var t=this.siteAppLoaders||[];for(var e of t)this.apps[e.id]={id:e.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of t)this.setupSiteApp(n)}aa(t){if(Object.keys(this.apps).length!==0){var e=this.globalsForEvent(t);for(var n of Object.values(this.apps))try{n.processEvent==null||n.processEvent(e)}catch(r){Ki.error("Error while processing event "+t.event+" for site app "+n.id,r)}}}onRemoteConfig(t){var e,n,r,o=this;if((e=this.siteAppLoaders)!=null&&e.length)return this.isEnabled?(this.oa(),void this._instance.on("eventCaptured",(h=>this.aa(h)))):void Ki.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((n=this.sa)==null||n.call(this),(r=t.siteApps)!=null&&r.length)if(this.isEnabled){var u=function(h){var g;pe["__$$ph_site_app_"+h]=o._instance,(g=pe.__PosthogExtensions__)==null||g.loadSiteApp==null||g.loadSiteApp(o._instance,f,(m=>{if(m)return Ki.error(pS+h,m)}))};for(var{id:c,url:f}of t.siteApps)u(c)}else Ki.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},sk={tracingHeaders:class{constructor(t){this.ua=void 0,this.la=void 0,this.ha=void 0,this.Oo=()=>{var e,n,r=this.ca();r?(se(this.ua)&&(this.ua=(e=pe.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null?void 0:e._patchXHR(r,(()=>this._instance.get_distinct_id()),this._instance.sessionManager)),se(this.la)&&(this.la=(n=pe.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null?void 0:n._patchFetch(r,(()=>this._instance.get_distinct_id()),this._instance.sessionManager))):this.Do()},this._instance=t}initialize(){this.startIfEnabledOrStop()}lr(t){var e,n;(e=pe.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns?t():(n=pe.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"tracing-headers",(r=>{if(r)return $3.error("failed to load script",r);t()}))}da(){var t,e;return(t=(e=this._instance.config.tracing_headers)!==null&&e!==void 0?e:this._instance.config.addTracingHeaders)!==null&&t!==void 0?t:this._instance.config.__add_tracing_headers}ca(){var t=this.da();return Oe(t)?(Oe(this.ha)?this.ha.splice(0,this.ha.length,...t):this.ha=[...t],t.length>0?this.ha:void 0):(Oe(this.ha)&&this.ha.splice(0),this.ha=t||void 0,this.ha)}Do(){var t,e;(t=this.ua)==null||t.call(this),(e=this.la)==null||e.call(this),this.ua=void 0,this.la=void 0}startIfEnabledOrStop(){this.ca()?this.lr(this.Oo):this.Do()}}},rk=ne({surveys:class{get qt(){return this._instance.config}constructor(t){this.va=void 0,this._surveyManager=null,this.fa=!1,this.pa=[],this.ga=null,this._instance=t,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this.qt.disable_surveys){var e=t.surveys;if(Re(e))return He.warn("Flags not loaded yet. Not loading surveys.");var n=Oe(e);this.va=n?e.length>0:e,He.info("flags response received, isSurveysEnabled: "+this.va),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],e=0;e<localStorage.length;e++){var n=localStorage.key(e);(n!=null&&n.startsWith(fp)||n!=null&&n.startsWith("inProgressSurvey_"))&&t.push(n)}t.forEach((r=>localStorage.removeItem(r)))}loadIfEnabled(){if(!this._surveyManager)if(this.fa)He.info("Already initializing surveys, skipping...");else if(this.qt.disable_surveys)He.info(gS);else if(this.qt.cookieless_mode&&this._instance.consent.isOptedOut())He.info("Not loading surveys in cookieless mode without consent.");else{var t=pe?.__PosthogExtensions__;if(t){if(!se(this.va)||this.qt.advanced_enable_surveys){var e=this.va||this.qt.advanced_enable_surveys;this.fa=!0;try{var n=t.generateSurveys;if(n)return void this.ma(n,e);var r=t.loadExternalDependency;if(!r)return void this.ya(Uh);r(this._instance,"surveys",(o=>{o||!t.generateSurveys?this.ya("Could not load surveys script",o):this.ma(t.generateSurveys,e)}))}catch(o){throw this.ya("Error initializing surveys",o),o}finally{this.fa=!1}}}else He.error("PostHog Extensions not found.")}}ma(t,e){this._surveyManager=t(this._instance,e),this._surveyEventReceiver=new Z3(this._instance),He.info("Surveys loaded successfully"),this.ba({isLoaded:!0})}ya(t,e){He.error(t,e),this.ba({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.pa.push(t),this._surveyManager&&this.ba({isLoaded:!0}),()=>{this.pa=this.pa.filter((e=>e!==t))}}getSurveys(t,e){if(e===void 0&&(e=!1),this.qt.disable_surveys)return He.info(gS),t([]);var n,r=this._instance.get_property(Mh);if(r&&!e)return t(r,{isLoaded:!0});typeof Promise<"u"&&this.ga?this.ga.then((o=>{var{surveys:u,context:c}=o;return t(u,c)})):(typeof Promise<"u"&&(this.ga=new Promise((o=>{n=o}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.qt.token),method:"GET",timeout:this.qt.surveys_request_timeout_ms,callback:o=>{var u;this.ga=null;var c=o.statusCode;if(c!==200||!o.json){var f="Surveys API could not be loaded, status: "+c;He.error(f);var h={isLoaded:!1,error:f};return t([],h),void(n==null||n({surveys:[],context:h}))}var g,m=o.json.surveys||[],v=m.filter((b=>(function(x){return!(!x.start_date||x.end_date)})(b)&&((function(x){var E;return!((E=x.conditions)==null||(E=E.events)==null||(E=E.values)==null||!E.length)})(b)||(function(x){var E;return!((E=x.conditions)==null||(E=E.actions)==null||(E=E.values)==null||!E.length)})(b))));v.length>0&&((g=this._surveyEventReceiver)==null||g.register(v)),(u=this._instance.persistence)==null||u.register({[Mh]:m,[Oh]:Date.now()});var _={isLoaded:!0};t(m,_),n?.({surveys:m,context:_})}}))}ba(t){for(var e of this.pa)try{if(!t.isLoaded)return e([],t);this.getSurveys(e)}catch(n){He.error("Error in survey callback",n)}}getActiveMatchingSurveys(t,e){if(e===void 0&&(e=!1),!Re(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,e);He.warn("init was not called")}_a(t){var e=null;return this.getSurveys((n=>{var r;e=(r=n.find((o=>o.id===t)))!==null&&r!==void 0?r:null})),e}wa(t){if(Re(this._surveyManager))return{eligible:!1,reason:yp};var e=typeof t=="string"?this._a(t):t;return e?this._surveyManager.checkSurveyEligibility(e):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(Re(this._surveyManager))return He.warn("init was not called"),{visible:!1,disabledReason:yp};var e=this.wa(t);return{visible:e.eligible,disabledReason:e.reason}}canRenderSurveyAsync(t,e){return Re(this._surveyManager)?(He.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:yp})):new Promise((n=>{this.getSurveys((r=>{var o,u=(o=r.find((f=>f.id===t)))!==null&&o!==void 0?o:null;if(u){var c=this.wa(u);n({visible:c.eligible,disabledReason:c.reason})}else n({visible:!1,disabledReason:"Survey not found"})}),e)}))}renderSurvey(t,e,n){var r;if(Re(this._surveyManager))He.warn("init was not called");else{var o=typeof t=="string"?this._a(t):t;if(o!=null&&o.id)if(j3.includes(o.type)){var u=ae?.querySelector(e);if(u)return(r=o.appearance)!=null&&r.surveyPopupDelaySeconds?(He.info("Rendering survey "+o.id+" with delay of "+o.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var c,f;He.info("Rendering survey "+o.id+" with delay of "+((c=o.appearance)==null?void 0:c.surveyPopupDelaySeconds)+" seconds"),(f=this._surveyManager)==null||f.renderSurvey(o,u,n),He.info("Survey "+o.id+" rendered")}),1e3*o.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(o,u,n);He.warn("Survey element not found")}else He.warn("Surveys of type "+o.type+" cannot be rendered in the app");else He.warn("Survey not found")}}displaySurvey(t,e){var n;if(Re(this._surveyManager))He.warn("init was not called");else{var r=this._a(t);if(r){var o=r;if((n=r.appearance)!=null&&n.surveyPopupDelaySeconds&&e.ignoreDelay&&(o=ne({},r,{appearance:ne({},r.appearance,{surveyPopupDelaySeconds:0})})),e.displayType!==Jh.Popover&&e.initialResponses&&He.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),e.ignoreConditions===!1){var u=this.canRenderSurvey(r);if(!u.visible)return void He.warn("Survey is not eligible to be displayed: ",u.disabledReason)}e.displayType!==Jh.Inline?this._surveyManager.handlePopoverSurvey(o,e):this.renderSurvey(o,e.selector,e.properties)}else He.warn("Survey not found")}}cancelPendingSurvey(t){Re(this._surveyManager)?He.warn("init was not called"):this._surveyManager.cancelSurvey(t)}handlePageUnload(){var t;(t=this._surveyManager)==null||t.handlePageUnload()}}},tc),ak={toolbar:class{constructor(t){this.instance=t}xa(t){pe.ph_toolbar_state=t}Sa(){var t;return(t=pe.ph_toolbar_state)!==null&&t!==void 0?t:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,e,n){if(t===void 0&&(t=void 0),e===void 0&&(e=void 0),n===void 0&&(n=void 0),tb(this.instance.config)||!B||!ae)return!1;t=t??B.location,n=n??B.history;try{if(!e){try{B.localStorage.setItem("test","test"),B.localStorage.removeItem("test")}catch{return!1}e=B?.localStorage}var r,o=Q3||$u(t.hash,"__posthog")||$u(t.hash,"state"),u=o?eb((()=>JSON.parse(atob(decodeURIComponent(o)))))||eb((()=>JSON.parse(decodeURIComponent(o)))):null;return u&&u.action==="ph_authorize"?((r=u).source="url",r&&Object.keys(r).length>0&&(u.desiredHash?t.hash=u.desiredHash:n?n.replaceState(n.state,"",t.pathname+t.search):t.hash="")):((r=JSON.parse(e.getItem(mS)||"{}")).source="localstorage",delete r.userIntent),!(!r.token||this.instance.config.token!==r.token||(this.loadToolbar(r),0))}catch{return!1}}ka(t){var e=pe.ph_load_toolbar||pe.ph_load_editor;!Re(e)&&ci(e)?e(t,this.instance):vS.warn("No toolbar load function found")}loadToolbar(t){var e=!(ae==null||!ae.getElementById(K0));if(!B||e)return!1;var n=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,r=ne({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(B.localStorage.setItem(mS,JSON.stringify(ne({},r,{source:void 0}))),this.Sa()===2)this.ka(r);else if(this.Sa()===0){var o;this.xa(1),(o=pe.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this.instance,"toolbar",(u=>{if(u)return vS.error("[Toolbar] Failed to load",u),void this.xa(0);this.xa(2),this.ka(r)})),dt(B,"turbolinks:load",(()=>{this.xa(0),this.loadToolbar(r)}))}return!0}Ca(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,n){return t===void 0&&(t=void 0),e===void 0&&(e=void 0),n===void 0&&(n=void 0),this.maybeLoadToolbar(t,e,n)}}},ok=ne({experiments:qt},tc),lk={conversations:class{constructor(t){this.Ia=void 0,this._conversationsManager=null,this.Ta=!1,this.Ea=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations){var e=t.conversations;Re(e)||(Kn(e)?this.Ia=e:(this.Ia=e.enabled,this.Ea=e),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this.Ia=void 0,this.Ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Ta||this._instance.config.disable_conversations||tb(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var t=pe?.__PosthogExtensions__;if(t&&!se(this.Ia)&&this.Ia)if(this.Ea&&this.Ea.token){this.Ta=!0;try{var e=t.initConversations;if(e)return this.Ma(e),void(this.Ta=!1);var n=t.loadExternalDependency;if(!n)return void this.Ra(Uh);n(this._instance,"conversations",(r=>{r||!t.initConversations?this.Ra("Could not load conversations script",r):this.Ma(t.initConversations),this.Ta=!1}))}catch(r){this.Ra("Error initializing conversations",r),this.Ta=!1}}else Cn.error("Conversations enabled but missing token in remote config.")}}Ma(t){if(this.Ea)try{this._conversationsManager=t(this.Ea,this._instance),Cn.info("Conversations loaded successfully")}catch(e){this.Ra("Error completing conversations initialization",e)}else Cn.error("Cannot complete initialization: remote config is null")}Ra(t,e){Cn.error(t,e),this._conversationsManager=null,this.Ta=!1}show(){this._conversationsManager?this._conversationsManager.show():Cn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ia===!0&&!un(this._conversationsManager)}isVisible(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.isVisible())!==null&&t!==void 0&&t}sendMessage(t,e,n){var r=this;return ln((function*(){return r._conversationsManager?r._conversationsManager.sendMessage(t,e,n):(Cn.warn(Gs),null)}))()}getMessages(t,e){var n=this;return ln((function*(){return n._conversationsManager?n._conversationsManager.getMessages(t,e):(Cn.warn(Gs),null)}))()}markAsRead(t){var e=this;return ln((function*(){return e._conversationsManager?e._conversationsManager.markAsRead(t):(Cn.warn(Gs),null)}))()}getTickets(t){var e=this;return ln((function*(){return e._conversationsManager?e._conversationsManager.getTickets(t):(Cn.warn(Gs),null)}))()}requestRestoreLink(t){var e=this;return ln((function*(){return e._conversationsManager?e._conversationsManager.requestRestoreLink(t):(Cn.warn(Gs),null)}))()}restoreFromToken(t){var e=this;return ln((function*(){return e._conversationsManager?e._conversationsManager.restoreFromToken(t):(Cn.warn(Gs),null)}))()}restoreFromUrlToken(){var t=this;return ln((function*(){return t._conversationsManager?t._conversationsManager.restoreFromUrlToken():(Cn.warn(Gs),null)}))()}getCurrentTicketId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getCurrentTicketId())!==null&&t!==void 0?t:null}getWidgetSessionId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getWidgetSessionId())!==null&&t!==void 0?t:null}Ln(){var t;(t=this._conversationsManager)==null||t.setIdentity()}Fn(){var t;(t=this._conversationsManager)==null||t.clearIdentity()}}},uk={logs:class{constructor(t){var e;this.Pa=!1,this.Oa=!1,this.Gt=ot("[logs]"),this.La=[],this.Fa=0,this.Aa=0,this.Na=!1,this._instance=t,this._instance&&(e=this._instance.config.logs)!=null&&e.captureConsoleLogs&&(this.Pa=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(t){var e,n=(e=t.logs)==null?void 0:e.captureConsoleLogs;!Re(n)&&n&&(this.Pa=!0,this.loadIfEnabled())}reset(){this.La=[],this.ii&&(clearTimeout(this.ii),this.ii=void 0),this.Fa=0,this.Aa=0,this.Na=!1}loadIfEnabled(){if(this.Pa&&!this.Oa){var t=pe?.__PosthogExtensions__;if(t){var e=t.loadExternalDependency;e?e(this._instance,"logs",(n=>{var r;n||(r=t.logs)==null||!r.initializeLogs?this.Gt.error("Could not load logs script",n):(t.logs.initializeLogs(this._instance),this.Oa=!0)})):this.Gt.error(Uh)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(t){var e,n,r,o,u,c;if(this._instance.is_capturing())if(t&&t.body){var f=(e=(n=this._instance.config.logs)==null?void 0:n.flushIntervalMs)!==null&&e!==void 0?e:3e3,h=(r=(o=this._instance.config.logs)==null?void 0:o.maxLogsPerInterval)!==null&&r!==void 0?r:1e3,g=Date.now();if(f>g-this.Aa||(this.Aa=g,this.Fa=0,this.Na=!1),h>this.Fa){this.Fa++;var m=(function(v,_){var b=v.level||"info",{text:x,number:E}=U0[b]||_D,M=String(Date.now())+"000000",R={};_.distinctId&&(R.posthogDistinctId=_.distinctId),_.sessionId&&(R.sessionId=_.sessionId),_.currentUrl&&(R["url.full"]=_.currentUrl),_.screenName&&(R["screen.name"]=_.screenName),_.appState&&(R["app.state"]=_.appState),_.activeFeatureFlags&&_.activeFeatureFlags.length>0&&(R.feature_flags=_.activeFeatureFlags);var q=ne({},R,v.attributes||{}),F={timeUnixNano:M,observedTimeUnixNano:M,severityNumber:E,severityText:x,body:{stringValue:v.body},attributes:V0(q)};return v.trace_id&&(F.traceId=v.trace_id),v.span_id&&(F.spanId=v.span_id),se(v.trace_flags)||(F.flags=v.trace_flags),F})(t,this.Da());this.La.push({record:m}),((u=(c=this._instance.config.logs)==null?void 0:c.maxBufferSize)!==null&&u!==void 0?u:100)>this.La.length?this.$a():this.flushLogs()}else this.Na||(this.Gt.warn("captureLog dropping logs: exceeded "+h+" logs per "+f+"ms"),this.Na=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.qa||(this.qa={trace:(t,e)=>this.captureLog({body:t,level:"trace",attributes:e}),debug:(t,e)=>this.captureLog({body:t,level:"debug",attributes:e}),info:(t,e)=>this.captureLog({body:t,level:"info",attributes:e}),warn:(t,e)=>this.captureLog({body:t,level:"warn",attributes:e}),error:(t,e)=>this.captureLog({body:t,level:"error",attributes:e}),fatal:(t,e)=>this.captureLog({body:t,level:"fatal",attributes:e})}),this.qa}flushLogs(t){if(this.ii&&(clearTimeout(this.ii),this.ii=void 0),this.La.length!==0){var e=this.La;this.La=[];var n=this._instance.config.logs,r=ne({"service.name":n?.serviceName||"unknown_service"},n?.environment&&{"deployment.environment":n.environment},n?.serviceVersion&&{"service.version":n.serviceVersion},n?.resourceAttributes),o=(function(c,f,h,g){return{resourceLogs:[{resource:{attributes:V0(f)},scopeLogs:[{scope:{name:h,version:g},logRecords:c}]}]}})(e.map((c=>c.record)),r,wt.LIB_NAME,wt.LIB_VERSION),u=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.pn({method:"POST",url:u,data:o,compression:"best-available",batchKey:"logs",transport:t})}}$a(){var t,e;this.ii||(this.ii=setTimeout((()=>{this.ii=void 0,this.flushLogs()}),(t=(e=this._instance.config.logs)==null?void 0:e.flushIntervalMs)!==null&&t!==void 0?t:3e3))}Da(){var t,e={};if(e.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:n}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);e.sessionId=n}if(pe!=null&&(t=pe.location)!=null&&t.href&&(e.currentUrl=pe.location.href),this._instance.featureFlags){var r=this._instance.featureFlags.getFlags();r&&r.length>0&&(e.activeFeatureFlags=r)}return e}}},ck=ne({},tc,W3,ek,tk,nk,ik,rk,sk,ak,ok,lk,uk);An.__defaultExtensionClasses=ne({},ck);var SS=(function(){wt.SDK_DIST_CHANNEL="npm";var t=Ro[Gr]=new An;return(function(){function e(){e.done||(e.done=!0,rS=!1,Ze(Ro,(function(n){n._dom_loaded()})))}ae!=null&&ae.addEventListener?ae.readyState==="complete"?e():dt(ae,"DOMContentLoaded",e,{capture:!1}):B&&re.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),t})();const ES=qi("alistigo:analytics");let bp=!1;const fk="https://eu.i.posthog.com";function dk(t,e){const n="phc_pgy5guec4WCmTXH2b5bsWQE32PUQB7wnubrpMCb2hgFU";if(!bp)try{SS.init(n,{api_host:fk,persistence:"memory",autocapture:!1,capture_pageview:!1,loaded:()=>{ES.info({version:e,locale:t},"PostHog initialized")}}),bp=!0}catch(r){ES.error({err:r},"PostHog init failed")}}function hk(t){bp&&SS.capture("widget_displayed",t)}class Zi extends Error{constructor(e){super(e),this.name="ListError"}}class nc extends Zi{constructor(e){super(`ListElement not found: ${e}`),this.name="ListElementNotFoundError"}}const pk=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function gk(t){return typeof t=="string"&&pk.test(t)}for(var Lt=[],Sp=0;Sp<256;++Sp)Lt.push((Sp+256).toString(16).slice(1));function xS(t,e=0){return(Lt[t[e+0]]+Lt[t[e+1]]+Lt[t[e+2]]+Lt[t[e+3]]+"-"+Lt[t[e+4]]+Lt[t[e+5]]+"-"+Lt[t[e+6]]+Lt[t[e+7]]+"-"+Lt[t[e+8]]+Lt[t[e+9]]+"-"+Lt[t[e+10]]+Lt[t[e+11]]+Lt[t[e+12]]+Lt[t[e+13]]+Lt[t[e+14]]+Lt[t[e+15]]).toLowerCase()}function mk(t,e=0){var n=xS(t,e);if(!gk(n))throw TypeError("Stringified UUID is invalid");return n}var ic,vk=new Uint8Array(16);function yk(){if(!ic&&(ic=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ic))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ic(vk)}var TS=null,wS=null,Hn=0;function _k(t,e,n){t=t||{};var r=0,o=e||new Uint8Array(16),u=t.random||(t.rng||yk)(),c=t.msecs!==void 0?t.msecs:Date.now(),f=t.seq!==void 0?t.seq:null,h=wS,g=TS;return c>Hn&&t.msecs===void 0&&(Hn=c,f!==null&&(h=null,g=null)),f!==null&&(f>2147483647&&(f=2147483647),h=f>>>19&4095,g=f&524287),(h===null||g===null)&&(h=u[6]&127,h=h<<8|u[7],g=u[8]&63,g=g<<8|u[9],g=g<<5|u[10]>>>3),c+1e4>Hn&&f===null?++g>524287&&(g=0,++h>4095&&(h=0,Hn++)):Hn=c,wS=h,TS=g,o[r++]=Hn/1099511627776&255,o[r++]=Hn/4294967296&255,o[r++]=Hn/16777216&255,o[r++]=Hn/65536&255,o[r++]=Hn/256&255,o[r++]=Hn&255,o[r++]=h>>>4&15|112,o[r++]=h&255,o[r++]=g>>>13&63|128,o[r++]=g>>>5&255,o[r++]=g<<3&255|u[10]&7,o[r++]=u[11],o[r++]=u[12],o[r++]=u[13],o[r++]=u[14],o[r++]=u[15],e||xS(o)}function bk(t){let e;const n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=e&255,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=e&255,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=e&255,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=e&255,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=e&255,n}var Qe="0123456789abcdefghjkmnpqrstvwxyz",fe=new Uint8Array([255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,10,11,12,13,14,15,16,17,255,18,19,255,20,21,255,22,23,24,25,26,255,27,28,29,30,31,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255]);function Ep(t){const e=new Array(26).fill("");if(t.length!==16)throw new Error(`Invalid length. Expected 16 bytes, got ${t.length}. Input: ${t}`);return e[0]=Qe[(t[0]&224)>>5],e[1]=Qe[t[0]&31],e[2]=Qe[(t[1]&248)>>3],e[3]=Qe[(t[1]&7)<<2|(t[2]&192)>>6],e[4]=Qe[(t[2]&62)>>1],e[5]=Qe[(t[2]&1)<<4|(t[3]&240)>>4],e[6]=Qe[(t[3]&15)<<1|(t[4]&128)>>7],e[7]=Qe[(t[4]&124)>>2],e[8]=Qe[(t[4]&3)<<3|(t[5]&224)>>5],e[9]=Qe[t[5]&31],e[10]=Qe[(t[6]&248)>>3],e[11]=Qe[(t[6]&7)<<2|(t[7]&192)>>6],e[12]=Qe[(t[7]&62)>>1],e[13]=Qe[(t[7]&1)<<4|(t[8]&240)>>4],e[14]=Qe[(t[8]&15)<<1|(t[9]&128)>>7],e[15]=Qe[(t[9]&124)>>2],e[16]=Qe[(t[9]&3)<<3|(t[10]&224)>>5],e[17]=Qe[t[10]&31],e[18]=Qe[(t[11]&248)>>3],e[19]=Qe[(t[11]&7)<<2|(t[12]&192)>>6],e[20]=Qe[(t[12]&62)>>1],e[21]=Qe[(t[12]&1)<<4|(t[13]&240)>>4],e[22]=Qe[(t[13]&15)<<1|(t[14]&128)>>7],e[23]=Qe[(t[14]&124)>>2],e[24]=Qe[(t[14]&3)<<3|(t[15]&224)>>5],e[25]=Qe[t[15]&31],e.join("")}function AS(t){if(t.length!==26)throw new Error(`Invalid length. Expected 26 bytes, got ${t.length}. Input: ${t}`);const n=new TextEncoder().encode(t);if(fe[n[0]]===255||fe[n[1]]===255||fe[n[2]]===255||fe[n[3]]===255||fe[n[4]]===255||fe[n[5]]===255||fe[n[6]]===255||fe[n[7]]===255||fe[n[8]]===255||fe[n[9]]===255||fe[n[10]]===255||fe[n[11]]===255||fe[n[12]]===255||fe[n[13]]===255||fe[n[14]]===255||fe[n[15]]===255||fe[n[16]]===255||fe[n[17]]===255||fe[n[18]]===255||fe[n[19]]===255||fe[n[20]]===255||fe[n[21]]===255||fe[n[22]]===255||fe[n[23]]===255||fe[n[24]]===255||fe[n[25]]===255)throw new Error("Invalid base32 character");const r=new Uint8Array(16);return r[0]=fe[n[0]]<<5|fe[n[1]],r[1]=fe[n[2]]<<3|fe[n[3]]>>2,r[2]=(fe[n[3]]&3)<<6|fe[n[4]]<<1|fe[n[5]]>>4,r[3]=(fe[n[5]]&15)<<4|fe[n[6]]>>1,r[4]=(fe[n[6]]&1)<<7|fe[n[7]]<<2|fe[n[8]]>>3,r[5]=(fe[n[8]]&7)<<5|fe[n[9]],r[6]=fe[n[10]]<<3|fe[n[11]]>>2,r[7]=(fe[n[11]]&3)<<6|fe[n[12]]<<1|fe[n[13]]>>4,r[8]=(fe[n[13]]&15)<<4|fe[n[14]]>>1,r[9]=(fe[n[14]]&1)<<7|fe[n[15]]<<2|fe[n[16]]>>3,r[10]=(fe[n[16]]&7)<<5|fe[n[17]],r[11]=fe[n[18]]<<3|fe[n[19]]>>2,r[12]=(fe[n[19]]&3)<<6|fe[n[20]]<<1|fe[n[21]]>>4,r[13]=(fe[n[21]]&15)<<4|fe[n[22]]>>1,r[14]=(fe[n[22]]&1)<<7|fe[n[23]]<<2|fe[n[24]]>>3,r[15]=(fe[n[24]]&7)<<5|fe[n[25]],r}function Sk(t){if(t.length>63)return!1;let e,n,r;for(n=0,r=t.length;n<r;n+=1){e=t.charCodeAt(n);const o=e>96&&e<123,u=e===95;if((n===0||n===r-1)&&!o||!(o||u))return!1}return!0}var Ek=class extends Error{constructor(t){super(`Invalid prefix "${t}". Must be at most 63 ASCII letters [a-z_]`),this.name="InvalidPrefixError"}},xk=class extends Error{constructor(t,e){super(`Invalid TypeId. Prefix mismatch. Expected ${t}, got ${e}`),this.name="PrefixMismatchError"}},Tk=class extends Error{constructor(t){super(`Invalid TypeId. Prefix cannot be empty when there's a separator: ${t}`),this.name="EmptyPrefixError"}},CS=class extends Error{constructor(t){super(`Invalid length. Suffix should have 26 characters, got ${t}`),this.name="InvalidSuffixLengthError"}},wk=class extends Error{constructor(t){super(`Invalid suffix. First character "${t}" must be in the range [0-7]`),this.name="InvalidSuffixCharacterError"}},Ak=class extends Error{constructor(t,e){super(`Cannot convert TypeID of type ${t} to type ${e}`),this.name="TypeIDConversionError"}};function MS(t="",e=""){if(!Sk(t))throw new Ek(t);let n;if(e)n=e;else{const r=new Uint8Array(16);_k(void 0,r),n=Ep(r)}if(n.length!==26)throw new CS(n.length);if(n[0]>"7")throw new wk(n[0]);return AS(n),t===""?n:`${t}_${n}`}function Ck(t,e){let n,r;const o=t.lastIndexOf("_");if(o===-1)n="",r=t;else if(n=t.substring(0,o),r=t.substring(o+1),!n)throw new Tk(t);if(!r)throw new CS(0);if(e&&n!==e)throw new xk(e,n);return MS(n,r)}function OS(t){const e=t.lastIndexOf("_");return e===-1?"":t.substring(0,e)}function RS(t){const e=t.lastIndexOf("_");return e===-1?t:t.substring(e+1)}var Qi=class{constructor(t,e=""){this.prefix=t,this.suffix=e;const n=MS(t,e);this.prefix=OS(n),this.suffix=RS(n)}getType(){return this.prefix}getSuffix(){return this.suffix}asType(t){const e=this;if(e.prefix!==t)throw new Ak(e.prefix,t);return e}toUUIDBytes(){return AS(this.suffix)}toUUID(){return mk(this.toUUIDBytes())}toString(){return this.prefix===""?this.suffix:`${this.prefix}_${this.suffix}`}static fromString(t,e){const n=Ck(t,e);return new Qi(OS(n),RS(n))}static fromUUIDBytes(t,e){const n=Ep(e);return new Qi(t,n)}static fromUUID(t,e){const n=Ep(bk(e));return new Qi(t,n)}};function sc(t="",e=""){return new Qi(t,e)}function Mk(){return sc("lse")}function xp(t){return Qi.fromString(t,"lse")}function rc(){return sc("lev")}function Ok(t){return Qi.fromString(t,"lev")}function DS(){return sc("lst")}function Tp(t){return Qi.fromString(t,"lst")}function Rk(t){const e=new Date(t);if(Number.isNaN(e.getTime()))throw new Zi(`Invalid Timestamp: "${t}" does not parse as a valid date`);return t}function ac(){return new Date().toISOString()}class No{#e;#s;#n;#t;constructor(e){this.#e=e,this.#s=void 0,this.#n=new Map,this.#t=[]}get id(){return this.#e}get title(){return this.#s}get elements(){return[...this.#n.values()]}static create(e){const n=e.listId??DS(),r=new No(n),o={type:"ListCreated",listEventId:rc(),listId:n,actorId:e.actorId,timestamp:ac(),...e.title!==void 0?{title:e.title}:{}};return r.#i(o),r.#t.push(o),{list:r,event:o}}static rehydrate(e,n){const r=new No(e);for(const o of n)r.#i(o);return r}addListElement(e){const n=Mk(),r={type:"ListElementAdded",listEventId:rc(),listId:this.#e,actorId:e.actorId,timestamp:ac(),listElementId:n,content:e.content};return this.#i(r),this.#t.push(r),r}deleteListElement(e){const n=e.listElementId.toString();if(!this.#n.has(n))throw new nc(n);const r={type:"ListElementDeleted",listEventId:rc(),listId:this.#e,actorId:e.actorId,timestamp:ac(),listElementId:e.listElementId};return this.#i(r),this.#t.push(r),r}exportListDocument(e){const n={type:"ListExported",listEventId:rc(),listId:this.#e,actorId:e.actorId,timestamp:ac(),format:"json-ld"};return this.#i(n),this.#t.push(n),n}getUncommittedEvents(){return[...this.#t]}markEventsAsCommitted(){this.#t.length=0}#i(e){({ListCreated:r=>{this.#s=r.title},ListElementAdded:r=>{this.#n.set(r.listElementId.toString(),{id:r.listElementId,content:r.content,addedAt:r.timestamp})},ListElementDeleted:r=>{this.#n.delete(r.listElementId.toString())},ListExported:r=>{}})[e.type](e)}}function Dk(){return sc("act")}function kk(t){return Qi.fromString(t,"act")}const kS=2e3;function LS(t){const e=t.trim();if(e.length===0)throw new Zi("ListElementContent cannot be empty");if(e.length>kS)throw new Zi(`ListElementContent exceeds maximum length of ${kS} characters`);return e}const Lk={"@vocab":"https://schema.org/",alistigo:"https://alistigo.ai/vocab/"},Nk="1.0.0";function zk(t){const e={"alistigo:listEventId":t.listEventId.toString(),"alistigo:listId":t.listId.toString(),"alistigo:actorId":t.actorId.toString(),"alistigo:timestamp":t.timestamp};switch(t.type){case"ListCreated":return{...e,"alistigo:eventType":"ListCreated",...t.title!==void 0?{name:t.title}:{}};case"ListElementAdded":return{...e,"alistigo:eventType":"ListElementAdded","alistigo:listElementId":t.listElementId.toString(),name:t.content};case"ListElementDeleted":return{...e,"alistigo:eventType":"ListElementDeleted","alistigo:listElementId":t.listElementId.toString()};case"ListExported":return{...e,"alistigo:eventType":"ListExported"}}}function jk(t){const e={listEventId:Ok(t["alistigo:listEventId"]),listId:Tp(t["alistigo:listId"]),actorId:kk(t["alistigo:actorId"]),timestamp:Rk(t["alistigo:timestamp"])};switch(t["alistigo:eventType"]){case"ListCreated":{const n=t;return{...e,type:"ListCreated",...n.name!==void 0?{title:n.name}:{}}}case"ListElementAdded":{const n=t;return{...e,type:"ListElementAdded",listElementId:xp(n["alistigo:listElementId"]),content:LS(n.name)}}case"ListElementDeleted":return{...e,type:"ListElementDeleted",listElementId:xp(t["alistigo:listElementId"])};case"ListExported":return{...e,type:"ListExported",format:"json-ld"}}}const oc={serialize(t,e){const n=e?.["alistigo:listEventLog"]??[],r=t.getUncommittedEvents().map(zk),o=t.elements.map((c,f)=>({"@type":"ListItem","alistigo:listElementId":c.id.toString(),position:f+1,name:c.content})),u={"@context":Lk,"@type":"ItemList","alistigo:listId":t.id.toString(),"alistigo:schemaVersion":Nk,itemListElement:o,"alistigo:listEventLog":[...n,...r]};return t.title!==void 0&&(u.name=t.title),u},deserialize(t){const e=Tp(t["alistigo:listId"]),n=t["alistigo:listEventLog"].map(jk);return No.rehydrate(e,n)}},lc=qi("alistigo:claude-storage"),zo=t=>`alistigo-${t.toString()}`;class Uk{get storage(){const e=window.storage;if(!e)throw new Error("ClaudeArtifactListRepository requires window.storage — use isClaudeArtifactContext() before instantiating");return e}async load(e){try{lc.debug({key:zo(e)},"loading from claude storage");const n=await this.storage.get(zo(e)),r=JSON.parse(n.value);return oc.deserialize(r)}catch(n){lc.debug({err:n},"load from claude storage returned nothing (key may not exist)");return}}async save(e){const n=await this.loadDocument(e.id),r=oc.serialize(e,n);await this.storage.set(zo(e.id),JSON.stringify(r)),lc.debug({key:zo(e.id)},"saved to claude storage")}async loadDocument(e){try{const n=await this.storage.get(zo(e));return JSON.parse(n.value)}catch(n){lc.debug({err:n},"loadDocument from claude storage returned nothing (key may not exist)");return}}}function Bk(){return typeof window<"u"&&"storage"in window&&typeof window.storage?.get=="function"}function Vk(t){return{ok:!0,value:t}}function Ys(t){return{ok:!1,error:t}}const uc=qi("alistigo:service");class Ik{store;constructor(e){this.store=e}async createList(e,n,r){try{const o=r??DS();uc.debug({listId:o.toString(),title:n},"createList");const{list:u}=No.create({actorId:e,listId:o,...n!==void 0?{title:n}:{}});return await this.#e(u,o)}catch(o){if(o instanceof Zi)return Ys(o);throw o}}async addListElement(e,n,r){try{uc.debug({listId:e.toString(),content:n},"addListElement");const o=await this.store.load(e);if(!o)return Ys(new nc(e.toString()));const u=LS(n);return o.addListElement({actorId:r,listId:e,content:u}),await this.#e(o,e)}catch(o){if(o instanceof Zi)return Ys(o);throw o}}async deleteListElement(e,n,r){try{uc.debug({listId:e.toString(),elementId:n.toString()},"deleteListElement");const o=await this.store.load(e);return o?(o.deleteListElement({actorId:r,listId:e,listElementId:n}),await this.#e(o,e)):Ys(new nc(e.toString()))}catch(o){if(o instanceof Zi)return Ys(o);throw o}}async loadDocument(e){return this.store.loadDocument(e)}async exportListDocument(e,n){try{const r=await this.store.load(e);return r?(r.exportListDocument({actorId:n,listId:e}),await this.#e(r,e)):Ys(new nc(e.toString()))}catch(r){if(r instanceof Zi)return Ys(r);throw r}}async#e(e,n){await this.store.save(e),e.markEventsAsCommitted();const r=await this.store.loadDocument(n);return uc.debug({listId:n.toString(),elementCount:r?.itemListElement.length},"document saved"),Vk(r)}}function NS(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function qk(...t){return e=>{let n=!1;const r=t.map(o=>{const u=NS(o,e);return!n&&typeof u=="function"&&(n=!0),u});if(n)return()=>{for(let o=0;o<r.length;o++){const u=r[o];typeof u=="function"?u():NS(t[o],null)}}}}var Pk=Symbol.for("react.lazy"),cc=p5[" use ".trim().toString()];function Hk(t){return typeof t=="object"&&t!==null&&"then"in t}function zS(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Pk&&"_payload"in t&&Hk(t._payload)}function Fk(t){const e=Gk(t),n=Y.forwardRef((r,o)=>{let{children:u,...c}=r;zS(u)&&typeof cc=="function"&&(u=cc(u._payload));const f=Y.Children.toArray(u),h=f.find(Xk);if(h){const g=h.props.children,m=f.map(v=>v===h?Y.Children.count(g)>1?Y.Children.only(null):Y.isValidElement(g)?g.props.children:null:v);return ve.jsx(e,{...c,ref:o,children:Y.isValidElement(g)?Y.cloneElement(g,void 0,m):null})}return ve.jsx(e,{...c,ref:o,children:u})});return n.displayName=`${t}.Slot`,n}var $k=Fk("Slot");function Gk(t){const e=Y.forwardRef((n,r)=>{let{children:o,...u}=n;if(zS(o)&&typeof cc=="function"&&(o=cc(o._payload)),Y.isValidElement(o)){const c=Zk(o),f=Kk(u,o.props);return o.type!==Y.Fragment&&(f.ref=r?qk(r,c):c),Y.cloneElement(o,f)}return Y.Children.count(o)>1?Y.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Yk=Symbol("radix.slottable");function Xk(t){return Y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Yk}function Kk(t,e){const n={...e};for(const r in e){const o=t[r],u=e[r];/^on[A-Z]/.test(r)?o&&u?n[r]=(...f)=>{const h=u(...f);return o(...f),h}:o&&(n[r]=o):r==="style"?n[r]={...o,...u}:r==="className"&&(n[r]=[o,u].filter(Boolean).join(" "))}return{...t,...n}}function Zk(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function jS(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=jS(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function US(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=jS(t))&&(r&&(r+=" "),r+=e);return r}const BS=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,VS=US,Qk=(t,e)=>n=>{var r;if(e?.variants==null)return VS(t,n?.class,n?.className);const{variants:o,defaultVariants:u}=e,c=Object.keys(o).map(g=>{const m=n?.[g],v=u?.[g];if(m===null)return null;const _=BS(m)||BS(v);return o[g][_]}),f=n&&Object.entries(n).reduce((g,m)=>{let[v,_]=m;return _===void 0||(g[v]=_),g},{}),h=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((g,m)=>{let{class:v,className:_,...b}=m;return Object.entries(b).every(x=>{let[E,M]=x;return Array.isArray(M)?M.includes({...u,...f}[E]):{...u,...f}[E]===M})?[...g,v,_]:g},[]);return VS(t,c,h,n?.class,n?.className)},wp="-",Jk=t=>{const e=eL(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:c=>{const f=c.split(wp);return f[0]===""&&f.length!==1&&f.shift(),IS(f,e)||Wk(c)},getConflictingClassGroupIds:(c,f)=>{const h=n[c]||[];return f&&r[c]?[...h,...r[c]]:h}}},IS=(t,e)=>{if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),o=r?IS(t.slice(1),r):void 0;if(o)return o;if(e.validators.length===0)return;const u=t.join(wp);return e.validators.find(({validator:c})=>c(u))?.classGroupId},qS=/^\[(.+)\]$/,Wk=t=>{if(qS.test(t)){const e=qS.exec(t)[1],n=e?.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},eL=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return nL(Object.entries(t.classGroups),n).forEach(([u,c])=>{Ap(c,r,u,e)}),r},Ap=(t,e,n,r)=>{t.forEach(o=>{if(typeof o=="string"){const u=o===""?e:PS(e,o);u.classGroupId=n;return}if(typeof o=="function"){if(tL(o)){Ap(o(r),e,n,r);return}e.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([u,c])=>{Ap(c,PS(e,u),n,r)})})},PS=(t,e)=>{let n=t;return e.split(wp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},tL=t=>t.isThemeGetter,nL=(t,e)=>e?t.map(([n,r])=>{const o=r.map(u=>typeof u=="string"?e+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([c,f])=>[e+c,f])):u);return[n,o]}):t,iL=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const o=(u,c)=>{n.set(u,c),e++,e>t&&(e=0,r=n,n=new Map)};return{get(u){let c=n.get(u);if(c!==void 0)return c;if((c=r.get(u))!==void 0)return o(u,c),c},set(u,c){n.has(u)?n.set(u,c):o(u,c)}}},HS="!",sL=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,o=e[0],u=e.length,c=f=>{const h=[];let g=0,m=0,v;for(let M=0;M<f.length;M++){let R=f[M];if(g===0){if(R===o&&(r||f.slice(M,M+u)===e)){h.push(f.slice(m,M)),m=M+u;continue}if(R==="/"){v=M;continue}}R==="["?g++:R==="]"&&g--}const _=h.length===0?f:f.substring(m),b=_.startsWith(HS),x=b?_.substring(1):_,E=v&&v>m?v-m:void 0;return{modifiers:h,hasImportantModifier:b,baseClassName:x,maybePostfixModifierPosition:E}};return n?f=>n({className:f,parseClassName:c}):c},rL=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},aL=t=>({cache:iL(t.cacheSize),parseClassName:sL(t),...Jk(t)}),oL=/\s+/,lL=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=e,u=[],c=t.trim().split(oL);let f="";for(let h=c.length-1;h>=0;h-=1){const g=c[h],{modifiers:m,hasImportantModifier:v,baseClassName:_,maybePostfixModifierPosition:b}=n(g);let x=!!b,E=r(x?_.substring(0,b):_);if(!E){if(!x){f=g+(f.length>0?" "+f:f);continue}if(E=r(_),!E){f=g+(f.length>0?" "+f:f);continue}x=!1}const M=rL(m).join(":"),R=v?M+HS:M,q=R+E;if(u.includes(q))continue;u.push(q);const F=o(E,x);for(let K=0;K<F.length;++K){const U=F[K];u.push(R+U)}f=g+(f.length>0?" "+f:f)}return f};function uL(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=FS(e))&&(r&&(r+=" "),r+=n);return r}const FS=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=FS(t[r]))&&(n&&(n+=" "),n+=e);return n};function cL(t,...e){let n,r,o,u=c;function c(h){const g=e.reduce((m,v)=>v(m),t());return n=aL(g),r=n.cache.get,o=n.cache.set,u=f,f(h)}function f(h){const g=r(h);if(g)return g;const m=lL(h,n);return o(h,m),m}return function(){return u(uL.apply(null,arguments))}}const tt=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},$S=/^\[(?:([a-z-]+):)?(.+)\]$/i,fL=/^\d+\/\d+$/,dL=new Set(["px","full","screen"]),hL=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pL=/\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$/,gL=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mL=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yi=t=>Xr(t)||dL.has(t)||fL.test(t),Ji=t=>Kr(t,"length",wL),Xr=t=>!!t&&!Number.isNaN(Number(t)),Cp=t=>Kr(t,"number",Xr),jo=t=>!!t&&Number.isInteger(Number(t)),yL=t=>t.endsWith("%")&&Xr(t.slice(0,-1)),we=t=>$S.test(t),Wi=t=>hL.test(t),_L=new Set(["length","size","percentage"]),bL=t=>Kr(t,_L,GS),SL=t=>Kr(t,"position",GS),EL=new Set(["image","url"]),xL=t=>Kr(t,EL,CL),TL=t=>Kr(t,"",AL),Uo=()=>!0,Kr=(t,e,n)=>{const r=$S.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},wL=t=>pL.test(t)&&!gL.test(t),GS=()=>!1,AL=t=>mL.test(t),CL=t=>vL.test(t),ML=cL(()=>{const t=tt("colors"),e=tt("spacing"),n=tt("blur"),r=tt("brightness"),o=tt("borderColor"),u=tt("borderRadius"),c=tt("borderSpacing"),f=tt("borderWidth"),h=tt("contrast"),g=tt("grayscale"),m=tt("hueRotate"),v=tt("invert"),_=tt("gap"),b=tt("gradientColorStops"),x=tt("gradientColorStopPositions"),E=tt("inset"),M=tt("margin"),R=tt("opacity"),q=tt("padding"),F=tt("saturate"),K=tt("scale"),U=tt("sepia"),Q=tt("skew"),P=tt("space"),I=tt("translate"),$=()=>["auto","contain","none"],ee=()=>["auto","hidden","clip","visible","scroll"],le=()=>["auto",we,e],ie=()=>[we,e],he=()=>["",yi,Ji],ye=()=>["auto",Xr,we],L=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],A=()=>["solid","dashed","dotted","double","none"],N=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",we],ue=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>[Xr,we];return{cacheSize:500,separator:":",theme:{colors:[Uo],spacing:[yi,Ji],blur:["none","",Wi,we],brightness:T(),borderColor:[t],borderRadius:["none","","full",Wi,we],borderSpacing:ie(),borderWidth:he(),contrast:T(),grayscale:te(),hueRotate:T(),invert:te(),gap:ie(),gradientColorStops:[t],gradientColorStopPositions:[yL,Ji],inset:le(),margin:le(),opacity:T(),padding:ie(),saturate:T(),scale:T(),sepia:te(),skew:T(),space:ie(),translate:ie()},classGroups:{aspect:[{aspect:["auto","square","video",we]}],container:["container"],columns:[{columns:[Wi]}],"break-after":[{"break-after":ue()}],"break-before":[{"break-before":ue()}],"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:[...L(),we]}],overflow:[{overflow:ee()}],"overflow-x":[{"overflow-x":ee()}],"overflow-y":[{"overflow-y":ee()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",jo,we]}],basis:[{basis:le()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",we]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",jo,we]}],"grid-cols":[{"grid-cols":[Uo]}],"col-start-end":[{col:["auto",{span:["full",jo,we]},we]}],"col-start":[{"col-start":ye()}],"col-end":[{"col-end":ye()}],"grid-rows":[{"grid-rows":[Uo]}],"row-start-end":[{row:["auto",{span:[jo,we]},we]}],"row-start":[{"row-start":ye()}],"row-end":[{"row-end":ye()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",we]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",we]}],gap:[{gap:[_]}],"gap-x":[{"gap-x":[_]}],"gap-y":[{"gap-y":[_]}],"justify-content":[{justify:["normal",...J()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...J(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...J(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[q]}],px:[{px:[q]}],py:[{py:[q]}],ps:[{ps:[q]}],pe:[{pe:[q]}],pt:[{pt:[q]}],pr:[{pr:[q]}],pb:[{pb:[q]}],pl:[{pl:[q]}],m:[{m:[M]}],mx:[{mx:[M]}],my:[{my:[M]}],ms:[{ms:[M]}],me:[{me:[M]}],mt:[{mt:[M]}],mr:[{mr:[M]}],mb:[{mb:[M]}],ml:[{ml:[M]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",we,e]}],"min-w":[{"min-w":[we,e,"min","max","fit"]}],"max-w":[{"max-w":[we,e,"none","full","min","max","fit","prose",{screen:[Wi]},Wi]}],h:[{h:[we,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[we,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[we,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[we,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Wi,Ji]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Cp]}],"font-family":[{font:[Uo]}],"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",we]}],"line-clamp":[{"line-clamp":["none",Xr,Cp]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",yi,we]}],"list-image":[{"list-image":["none",we]}],"list-style-type":[{list:["none","disc","decimal",we]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",yi,Ji]}],"underline-offset":[{"underline-offset":["auto",yi,we]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ie()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we]}],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",we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L(),SL]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bL]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},xL]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[f]}],"border-w-x":[{"border-x":[f]}],"border-w-y":[{"border-y":[f]}],"border-w-s":[{"border-s":[f]}],"border-w-e":[{"border-e":[f]}],"border-w-t":[{"border-t":[f]}],"border-w-r":[{"border-r":[f]}],"border-w-b":[{"border-b":[f]}],"border-w-l":[{"border-l":[f]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...A(),"hidden"]}],"divide-x":[{"divide-x":[f]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[f]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:A()}],"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:["",...A()]}],"outline-offset":[{"outline-offset":[yi,we]}],"outline-w":[{outline:[yi,Ji]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[yi,Ji]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Wi,TL]}],"shadow-color":[{shadow:[Uo]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...N(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":N()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",Wi,we]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[v]}],saturate:[{saturate:[F]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[F]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",we]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",we]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",we]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[K]}],"scale-x":[{"scale-x":[K]}],"scale-y":[{"scale-y":[K]}],rotate:[{rotate:[jo,we]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[Q]}],"skew-y":[{"skew-y":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",we]}],accent:[{accent:["auto",t]}],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",we]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ie()}],"scroll-mx":[{"scroll-mx":ie()}],"scroll-my":[{"scroll-my":ie()}],"scroll-ms":[{"scroll-ms":ie()}],"scroll-me":[{"scroll-me":ie()}],"scroll-mt":[{"scroll-mt":ie()}],"scroll-mr":[{"scroll-mr":ie()}],"scroll-mb":[{"scroll-mb":ie()}],"scroll-ml":[{"scroll-ml":ie()}],"scroll-p":[{"scroll-p":ie()}],"scroll-px":[{"scroll-px":ie()}],"scroll-py":[{"scroll-py":ie()}],"scroll-ps":[{"scroll-ps":ie()}],"scroll-pe":[{"scroll-pe":ie()}],"scroll-pt":[{"scroll-pt":ie()}],"scroll-pr":[{"scroll-pr":ie()}],"scroll-pb":[{"scroll-pb":ie()}],"scroll-pl":[{"scroll-pl":ie()}],"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",we]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[yi,Ji,Cp]}],stroke:[{stroke:[t,"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"]}}});const OL=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),YS=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();var RL={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const DL=Y.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:u,iconNode:c,...f},h)=>Y.createElement("svg",{ref:h,...RL,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:YS("lucide",o),...f},[...c.map(([g,m])=>Y.createElement(g,m)),...Array.isArray(u)?u:[u]]));const XS=(t,e)=>{const n=Y.forwardRef(({className:r,...o},u)=>Y.createElement(DL,{ref:u,iconNode:e,className:YS(`lucide-${OL(t)}`,r),...o}));return n.displayName=`${t}`,n};const kL=XS("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);const LL=XS("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Mp=Y.createContext({});function Op(t){const e=Y.useRef(null);return e.current===null&&(e.current=t()),e.current}const Bo=Y.createContext(null),Rp=Y.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class NL extends Y.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function zL({children:t,isPresent:e}){const n=Y.useId(),r=Y.useRef(null),o=Y.useRef({width:0,height:0,top:0,left:0}),{nonce:u}=Y.useContext(Rp);return Y.useInsertionEffect(()=>{const{width:c,height:f,top:h,left:g}=o.current;if(e||!r.current||!c||!f)return;r.current.dataset.motionPopId=n;const m=document.createElement("style");return u&&(m.nonce=u),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(`
|
|
34
|
+
[data-motion-pop-id="${n}"] {
|
|
35
|
+
position: absolute !important;
|
|
36
|
+
width: ${c}px !important;
|
|
37
|
+
height: ${f}px !important;
|
|
38
|
+
top: ${h}px !important;
|
|
39
|
+
left: ${g}px !important;
|
|
40
|
+
}
|
|
41
|
+
`),()=>{document.head.removeChild(m)}},[e]),ve.jsx(NL,{isPresent:e,childRef:r,sizeRef:o,children:Y.cloneElement(t,{ref:r})})}const jL=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:u,mode:c})=>{const f=Op(UL),h=Y.useId(),g=Y.useCallback(v=>{f.set(v,!0);for(const _ of f.values())if(!_)return;r&&r()},[f,r]),m=Y.useMemo(()=>({id:h,initial:e,isPresent:n,custom:o,onExitComplete:g,register:v=>(f.set(v,!1),()=>f.delete(v))}),u?[Math.random(),g]:[n,g]);return Y.useMemo(()=>{f.forEach((v,_)=>f.set(_,!1))},[n]),Y.useEffect(()=>{!n&&!f.size&&r&&r()},[n]),c==="popLayout"&&(t=ve.jsx(zL,{isPresent:n,children:t})),ve.jsx(Bo.Provider,{value:m,children:t})};function UL(){return new Map}function KS(t=!0){const e=Y.useContext(Bo);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=e,u=Y.useId();Y.useEffect(()=>{t&&o(u)},[t]);const c=Y.useCallback(()=>t&&r&&r(u),[u,r,t]);return!n&&r?[!1,c]:[!0]}function BL(){return VL(Y.useContext(Bo))}function VL(t){return t===null?!0:t.isPresent}const fc=t=>t.key||"";function ZS(t){const e=[];return Y.Children.forEach(t,n=>{Y.isValidElement(n)&&e.push(n)}),e}const Dp=typeof window<"u",QS=Dp?Y.useLayoutEffect:Y.useEffect,IL=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:u="sync",propagate:c=!1})=>{const[f,h]=KS(c),g=Y.useMemo(()=>ZS(t),[t]),m=c&&!f?[]:g.map(fc),v=Y.useRef(!0),_=Y.useRef(g),b=Op(()=>new Map),[x,E]=Y.useState(g),[M,R]=Y.useState(g);QS(()=>{v.current=!1,_.current=g;for(let K=0;K<M.length;K++){const U=fc(M[K]);m.includes(U)?b.delete(U):b.get(U)!==!0&&b.set(U,!1)}},[M,m.length,m.join("-")]);const q=[];if(g!==x){let K=[...g];for(let U=0;U<M.length;U++){const Q=M[U],P=fc(Q);m.includes(P)||(K.splice(U,0,Q),q.push(Q))}u==="wait"&&q.length&&(K=q),R(ZS(K)),E(g);return}const{forceRender:F}=Y.useContext(Mp);return ve.jsx(ve.Fragment,{children:M.map(K=>{const U=fc(K),Q=c&&!f?!1:g===M||m.includes(U),P=()=>{if(b.has(U))b.set(U,!0);else return;let I=!0;b.forEach($=>{$||(I=!1)}),I&&(F?.(),R(_.current),c&&h?.(),r&&r())};return ve.jsx(jL,{isPresent:Q,initial:!v.current||n?void 0:!1,custom:Q?void 0:e,presenceAffectsLayout:o,mode:u,onExitComplete:Q?void 0:P,children:K},U)})})},dn=t=>t;let JS=dn;const qL={useManualTiming:!1};function PL(t){let e=new Set,n=new Set,r=!1,o=!1;const u=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function f(g){u.has(g)&&(h.schedule(g),t()),g(c)}const h={schedule:(g,m=!1,v=!1)=>{const b=v&&r?e:n;return m&&u.add(g),b.has(g)||b.add(g),g},cancel:g=>{n.delete(g),u.delete(g)},process:g=>{if(c=g,r){o=!0;return}r=!0,[e,n]=[n,e],e.forEach(f),e.clear(),r=!1,o&&(o=!1,h.process(g))}};return h}const dc=["read","resolveKeyframes","update","preRender","render","postRender"],HL=40;function WS(t,e){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},u=()=>n=!0,c=dc.reduce((R,q)=>(R[q]=PL(u),R),{}),{read:f,resolveKeyframes:h,update:g,preRender:m,render:v,postRender:_}=c,b=()=>{const R=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(R-o.timestamp,HL),1),o.timestamp=R,o.isProcessing=!0,f.process(o),h.process(o),g.process(o),m.process(o),v.process(o),_.process(o),o.isProcessing=!1,n&&e&&(r=!1,t(b))},x=()=>{n=!0,r=!0,o.isProcessing||t(b)};return{schedule:dc.reduce((R,q)=>{const F=c[q];return R[q]=(K,U=!1,Q=!1)=>(n||x(),F.schedule(K,U,Q)),R},{}),cancel:R=>{for(let q=0;q<dc.length;q++)c[dc[q]].cancel(R)},state:o,steps:c}}const{schedule:nt,cancel:es,state:Nt,steps:kp}=WS(typeof requestAnimationFrame<"u"?requestAnimationFrame:dn,!0),eE=Y.createContext({strict:!1}),tE={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"]},Zr={};for(const t in tE)Zr[t]={isEnabled:e=>tE[t].some(n=>!!e[n])};function FL(t){for(const e in t)Zr[e]={...Zr[e],...t[e]}}const $L=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 hc(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||$L.has(t)}let nE=t=>!hc(t);function GL(t){t&&(nE=e=>e.startsWith("on")?!hc(e):t(e))}try{GL(require("@emotion/is-prop-valid").default)}catch{}function YL(t,e,n){const r={};for(const o in t)o==="values"&&typeof t.values=="object"||(nE(o)||n===!0&&hc(o)||!e&&!hc(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}function XL(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>t(...r);return new Proxy(n,{get:(r,o)=>o==="create"?t:(e.has(o)||e.set(o,t(o)),e.get(o))})}const pc=Y.createContext({});function Vo(t){return typeof t=="string"||Array.isArray(t)}function gc(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Lp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Np=["initial",...Lp];function mc(t){return gc(t.animate)||Np.some(e=>Vo(t[e]))}function iE(t){return!!(mc(t)||t.variants)}function KL(t,e){if(mc(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Vo(n)?n:void 0,animate:Vo(r)?r:void 0}}return t.inherit!==!1?e:{}}function ZL(t){const{initial:e,animate:n}=KL(t,Y.useContext(pc));return Y.useMemo(()=>({initial:e,animate:n}),[sE(e),sE(n)])}function sE(t){return Array.isArray(t)?t.join(" "):t}const QL=Symbol.for("motionComponentSymbol");function Qr(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function JL(t,e,n){return Y.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Qr(n)&&(n.current=r))},[e])}const zp=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),rE="data-"+zp("framerAppearId"),{schedule:jp}=WS(queueMicrotask,!1),aE=Y.createContext({});function WL(t,e,n,r,o){var u,c;const{visualElement:f}=Y.useContext(pc),h=Y.useContext(eE),g=Y.useContext(Bo),m=Y.useContext(Rp).reducedMotion,v=Y.useRef(null);r=r||h.renderer,!v.current&&r&&(v.current=r(t,{visualState:e,parent:f,props:n,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:m}));const _=v.current,b=Y.useContext(aE);_&&!_.projection&&o&&(_.type==="html"||_.type==="svg")&&eN(v.current,n,o,b);const x=Y.useRef(!1);Y.useInsertionEffect(()=>{_&&x.current&&_.update(n,g)});const E=n[rE],M=Y.useRef(!!E&&!(!((u=window.MotionHandoffIsComplete)===null||u===void 0)&&u.call(window,E))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,E)));return QS(()=>{_&&(x.current=!0,window.MotionIsMounted=!0,_.updateFeatures(),jp.render(_.render),M.current&&_.animationState&&_.animationState.animateChanges())}),Y.useEffect(()=>{_&&(!M.current&&_.animationState&&_.animationState.animateChanges(),M.current&&(queueMicrotask(()=>{var R;(R=window.MotionHandoffMarkAsComplete)===null||R===void 0||R.call(window,E)}),M.current=!1))}),_}function eN(t,e,n,r){const{layoutId:o,layout:u,drag:c,dragConstraints:f,layoutScroll:h,layoutRoot:g}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:oE(t.parent)),t.projection.setOptions({layoutId:o,layout:u,alwaysMeasureLayout:!!c||f&&Qr(f),visualElement:t,animationType:typeof u=="string"?u:"both",initialPromotionConfig:r,layoutScroll:h,layoutRoot:g})}function oE(t){if(t)return t.options.allowProjection!==!1?t.projection:oE(t.parent)}function tN({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:o}){var u,c;t&&FL(t);function f(g,m){let v;const _={...Y.useContext(Rp),...g,layoutId:nN(g)},{isStatic:b}=_,x=ZL(g),E=r(g,b);if(!b&&Dp){iN();const M=sN(_);v=M.MeasureLayout,x.visualElement=WL(o,E,_,e,M.ProjectionNode)}return ve.jsxs(pc.Provider,{value:x,children:[v&&x.visualElement?ve.jsx(v,{visualElement:x.visualElement,..._}):null,n(o,g,JL(E,x.visualElement,m),E,b,x.visualElement)]})}f.displayName=`motion.${typeof o=="string"?o:`create(${(c=(u=o.displayName)!==null&&u!==void 0?u:o.name)!==null&&c!==void 0?c:""})`}`;const h=Y.forwardRef(f);return h[QL]=o,h}function nN({layoutId:t}){const e=Y.useContext(Mp).id;return e&&t!==void 0?e+"-"+t:t}function iN(t,e){Y.useContext(eE).strict}function sN(t){const{drag:e,layout:n}=Zr;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const rN=["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 Up(t){return typeof t!="string"||t.includes("-")?!1:!!(rN.indexOf(t)>-1||/[A-Z]/u.test(t))}function lE(t){const e=[{},{}];return t?.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function Bp(t,e,n,r){if(typeof e=="function"){const[o,u]=lE(r);e=e(n!==void 0?n:t.custom,o,u)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[o,u]=lE(r);e=e(n!==void 0?n:t.custom,o,u)}return e}const Vp=t=>Array.isArray(t),aN=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),oN=t=>Vp(t)?t[t.length-1]||0:t,Pt=t=>!!(t&&t.getVelocity);function vc(t){const e=Pt(t)?t.get():t;return aN(e)?e.toValue():e}function lN({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,o,u){const c={latestValues:uN(r,o,u,t),renderState:e()};return n&&(c.onMount=f=>n({props:r,current:f,...c}),c.onUpdate=f=>n(f)),c}const uE=t=>(e,n)=>{const r=Y.useContext(pc),o=Y.useContext(Bo),u=()=>lN(t,e,r,o);return n?u():Op(u)};function uN(t,e,n,r){const o={},u=r(t,{});for(const _ in u)o[_]=vc(u[_]);let{initial:c,animate:f}=t;const h=mc(t),g=iE(t);e&&g&&!h&&t.inherit!==!1&&(c===void 0&&(c=e.initial),f===void 0&&(f=e.animate));let m=n?n.initial===!1:!1;m=m||c===!1;const v=m?f:c;if(v&&typeof v!="boolean"&&!gc(v)){const _=Array.isArray(v)?v:[v];for(let b=0;b<_.length;b++){const x=Bp(t,_[b]);if(x){const{transitionEnd:E,transition:M,...R}=x;for(const q in R){let F=R[q];if(Array.isArray(F)){const K=m?F.length-1:0;F=F[K]}F!==null&&(o[q]=F)}for(const q in E)o[q]=E[q]}}}return o}const Jr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xs=new Set(Jr),cE=t=>e=>typeof e=="string"&&e.startsWith(t),fE=cE("--"),cN=cE("var(--"),Ip=t=>cN(t)?fN.test(t.split("/*")[0].trim()):!1,fN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,dE=(t,e)=>e&&typeof t=="number"?e.transform(t):t,_i=(t,e,n)=>n>e?e:n<t?t:n,Wr={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Io={...Wr,transform:t=>_i(0,1,t)},yc={...Wr,default:1},qo=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ts=qo("deg"),Wn=qo("%"),be=qo("px"),dN=qo("vh"),hN=qo("vw"),hE={...Wn,parse:t=>Wn.parse(t)/100,transform:t=>Wn.transform(t*100)},pN={borderWidth:be,borderTopWidth:be,borderRightWidth:be,borderBottomWidth:be,borderLeftWidth:be,borderRadius:be,radius:be,borderTopLeftRadius:be,borderTopRightRadius:be,borderBottomRightRadius:be,borderBottomLeftRadius:be,width:be,maxWidth:be,height:be,maxHeight:be,top:be,right:be,bottom:be,left:be,padding:be,paddingTop:be,paddingRight:be,paddingBottom:be,paddingLeft:be,margin:be,marginTop:be,marginRight:be,marginBottom:be,marginLeft:be,backgroundPositionX:be,backgroundPositionY:be},gN={rotate:ts,rotateX:ts,rotateY:ts,rotateZ:ts,scale:yc,scaleX:yc,scaleY:yc,scaleZ:yc,skew:ts,skewX:ts,skewY:ts,distance:be,translateX:be,translateY:be,translateZ:be,x:be,y:be,z:be,perspective:be,transformPerspective:be,opacity:Io,originX:hE,originY:hE,originZ:be},pE={...Wr,transform:Math.round},qp={...pN,...gN,zIndex:pE,size:be,fillOpacity:Io,strokeOpacity:Io,numOctaves:pE},mN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vN=Jr.length;function yN(t,e,n){let r="",o=!0;for(let u=0;u<vN;u++){const c=Jr[u],f=t[c];if(f===void 0)continue;let h=!0;if(typeof f=="number"?h=f===(c.startsWith("scale")?1:0):h=parseFloat(f)===0,!h||n){const g=dE(f,qp[c]);if(!h){o=!1;const m=mN[c]||c;r+=`${m}(${g}) `}n&&(e[c]=g)}}return r=r.trim(),n?r=n(e,o?"":r):o&&(r="none"),r}function Pp(t,e,n){const{style:r,vars:o,transformOrigin:u}=t;let c=!1,f=!1;for(const h in e){const g=e[h];if(Xs.has(h)){c=!0;continue}else if(fE(h)){o[h]=g;continue}else{const m=dE(g,qp[h]);h.startsWith("origin")?(f=!0,u[h]=m):r[h]=m}}if(e.transform||(c||n?r.transform=yN(e,t.transform,n):r.transform&&(r.transform="none")),f){const{originX:h="50%",originY:g="50%",originZ:m=0}=u;r.transformOrigin=`${h} ${g} ${m}`}}const _N={offset:"stroke-dashoffset",array:"stroke-dasharray"},bN={offset:"strokeDashoffset",array:"strokeDasharray"};function SN(t,e,n=1,r=0,o=!0){t.pathLength=1;const u=o?_N:bN;t[u.offset]=be.transform(-r);const c=be.transform(e),f=be.transform(n);t[u.array]=`${c} ${f}`}function gE(t,e,n){return typeof t=="string"?t:be.transform(e+n*t)}function EN(t,e,n){const r=gE(e,t.x,t.width),o=gE(n,t.y,t.height);return`${r} ${o}`}function Hp(t,{attrX:e,attrY:n,attrScale:r,originX:o,originY:u,pathLength:c,pathSpacing:f=1,pathOffset:h=0,...g},m,v){if(Pp(t,g,v),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:_,style:b,dimensions:x}=t;_.transform&&(x&&(b.transform=_.transform),delete _.transform),x&&(o!==void 0||u!==void 0||b.transform)&&(b.transformOrigin=EN(x,o!==void 0?o:.5,u!==void 0?u:.5)),e!==void 0&&(_.x=e),n!==void 0&&(_.y=n),r!==void 0&&(_.scale=r),c!==void 0&&SN(_,c,f,h,!1)}const Fp=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),mE=()=>({...Fp(),attrs:{}}),$p=t=>typeof t=="string"&&t.toLowerCase()==="svg";function vE(t,{style:e,vars:n},r,o){Object.assign(t.style,e,o&&o.getProjectionStyles(r));for(const u in n)t.style.setProperty(u,n[u])}const yE=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"]);function _E(t,e,n,r){vE(t,e,void 0,r);for(const o in e.attrs)t.setAttribute(yE.has(o)?o:zp(o),e.attrs[o])}const _c={};function xN(t){Object.assign(_c,t)}function bE(t,{layout:e,layoutId:n}){return Xs.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!_c[t]||t==="opacity")}function Gp(t,e,n){var r;const{style:o}=t,u={};for(const c in o)(Pt(o[c])||e.style&&Pt(e.style[c])||bE(c,t)||((r=n?.getValue(c))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(u[c]=o[c]);return u}function SE(t,e,n){const r=Gp(t,e,n);for(const o in t)if(Pt(t[o])||Pt(e[o])){const u=Jr.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[u]=t[o]}return r}function TN(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const EE=["x","y","width","height","cx","cy","r"],wN={useVisualState:uE({scrapeMotionValuesFromProps:SE,createRenderState:mE,onUpdate:({props:t,prevProps:e,current:n,renderState:r,latestValues:o})=>{if(!n)return;let u=!!t.drag;if(!u){for(const f in o)if(Xs.has(f)){u=!0;break}}if(!u)return;let c=!e;if(e)for(let f=0;f<EE.length;f++){const h=EE[f];t[h]!==e[h]&&(c=!0)}c&&nt.read(()=>{TN(n,r),nt.render(()=>{Hp(r,o,$p(n.tagName),t.transformTemplate),_E(n,r)})})}})},AN={useVisualState:uE({scrapeMotionValuesFromProps:Gp,createRenderState:Fp})};function xE(t,e,n){for(const r in e)!Pt(e[r])&&!bE(r,n)&&(t[r]=e[r])}function CN({transformTemplate:t},e){return Y.useMemo(()=>{const n=Fp();return Pp(n,e,t),Object.assign({},n.vars,n.style)},[e])}function MN(t,e){const n=t.style||{},r={};return xE(r,n,t),Object.assign(r,CN(t,e)),r}function ON(t,e){const n={},r=MN(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}function RN(t,e,n,r){const o=Y.useMemo(()=>{const u=mE();return Hp(u,e,$p(r),t.transformTemplate),{...u.attrs,style:{...u.style}}},[e]);if(t.style){const u={};xE(u,t.style,t),o.style={...u,...o.style}}return o}function DN(t=!1){return(n,r,o,{latestValues:u},c)=>{const h=(Up(n)?RN:ON)(r,u,c,n),g=YL(r,typeof n=="string",t),m=n!==Y.Fragment?{...g,...h,ref:o}:{},{children:v}=r,_=Y.useMemo(()=>Pt(v)?v.get():v,[v]);return Y.createElement(n,{...m,children:_})}}function kN(t,e){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const c={...Up(r)?wN:AN,preloadedFeatures:t,useRender:DN(o),createVisualElement:e,Component:r};return tN(c)}}function TE(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function bc(t,e,n){const r=t.getProps();return Bp(r,e,n!==void 0?n:r.custom,t)}function Yp(t,e){return t?t[e]||t.default||t:void 0}const wE=new Set(["width","height","top","left","right","bottom",...Jr]);let Sc;function LN(){Sc=void 0}const ei={now:()=>(Sc===void 0&&ei.set(Nt.isProcessing||qL.useManualTiming?Nt.timestamp:performance.now()),Sc),set:t=>{Sc=t,queueMicrotask(LN)}};function Xp(t,e){t.indexOf(e)===-1&&t.push(e)}function Kp(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Zp{constructor(){this.subscriptions=[]}add(e){return Xp(this.subscriptions,e),()=>Kp(this.subscriptions,e)}notify(e,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](e,n,r);else for(let u=0;u<o;u++){const c=this.subscriptions[u];c&&c(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function AE(t,e){return e?t*(1e3/e):0}const CE=30,NN=t=>!isNaN(parseFloat(t));class zN{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const u=ei.now();this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=ei.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=NN(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Zp);const r=this.events[e].add(n);return e==="change"?()=>{r(),nt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=ei.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>CE)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,CE);return AE(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Po(t,e){return new zN(t,e)}function jN(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Po(n))}function UN(t,e){const n=bc(t,e);let{transitionEnd:r={},transition:o={},...u}=n||{};u={...u,...r};for(const c in u){const f=oN(u[c]);jN(t,c,f)}}function BN(t){return!!(Pt(t)&&t.add)}function Qp(t,e){const n=t.getValue("willChange");if(BN(n))return n.add(e)}function ME(t){return t.props[rE]}function Jp(t){let e;return()=>(e===void 0&&(e=t()),e)}const VN=Jp(()=>window.ScrollTimeline!==void 0);class IN{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=n}attachTimeline(e,n){const r=this.animations.map(o=>{if(VN()&&o.attachTimeline)return o.attachTimeline(e);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,u)=>{o&&o(),this.animations[u].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class qN extends IN{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}const bi=t=>t*1e3,Si=t=>t/1e3;function Wp(t){return typeof t=="function"}function OE(t,e){t.timeline=e,t.onfinish=null}const eg=t=>Array.isArray(t)&&typeof t[0]=="number",PN={linearEasing:void 0};function HN(t,e){const n=Jp(t);return()=>{var r;return(r=PN[e])!==null&&r!==void 0?r:n()}}const Ec=HN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ea=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},RE=(t,e,n=10)=>{let r="";const o=Math.max(Math.round(e/n),2);for(let u=0;u<o;u++)r+=t(ea(0,o-1,u))+", ";return`linear(${r.substring(0,r.length-2)})`};function DE(t){return!!(typeof t=="function"&&Ec()||!t||typeof t=="string"&&(t in tg||Ec())||eg(t)||Array.isArray(t)&&t.every(DE))}const Ho=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,tg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ho([0,.65,.55,1]),circOut:Ho([.55,0,1,.45]),backIn:Ho([.31,.01,.66,-.59]),backOut:Ho([.33,1.53,.69,.99])};function kE(t,e){if(t)return typeof t=="function"&&Ec()?RE(t,e):eg(t)?Ho(t):Array.isArray(t)?t.map(n=>kE(n,e)||tg.easeOut):tg[t]}const LE=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,FN=1e-7,$N=12;function GN(t,e,n,r,o){let u,c,f=0;do c=e+(n-e)/2,u=LE(c,r,o)-t,u>0?n=c:e=c;while(Math.abs(u)>FN&&++f<$N);return c}function Fo(t,e,n,r){if(t===e&&n===r)return dn;const o=u=>GN(u,0,1,t,n);return u=>u===0||u===1?u:LE(o(u),e,r)}const NE=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,zE=t=>e=>1-t(1-e),jE=Fo(.33,1.53,.69,.99),ng=zE(jE),UE=NE(ng),BE=t=>(t*=2)<1?.5*ng(t):.5*(2-Math.pow(2,-10*(t-1))),ig=t=>1-Math.sin(Math.acos(t)),VE=zE(ig),IE=NE(ig),qE=t=>/^0[^.\s]+$/u.test(t);function YN(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||qE(t):!0}const $o=t=>Math.round(t*1e5)/1e5,sg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function XN(t){return t==null}const KN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rg=(t,e)=>n=>!!(typeof n=="string"&&KN.test(n)&&n.startsWith(t)||e&&!XN(n)&&Object.prototype.hasOwnProperty.call(n,e)),PE=(t,e,n)=>r=>{if(typeof r!="string")return r;const[o,u,c,f]=r.match(sg);return{[t]:parseFloat(o),[e]:parseFloat(u),[n]:parseFloat(c),alpha:f!==void 0?parseFloat(f):1}},ZN=t=>_i(0,255,t),ag={...Wr,transform:t=>Math.round(ZN(t))},Ks={test:rg("rgb","red"),parse:PE("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+ag.transform(t)+", "+ag.transform(e)+", "+ag.transform(n)+", "+$o(Io.transform(r))+")"};function QN(t){let e="",n="",r="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const og={test:rg("#"),parse:QN,transform:Ks.transform},ta={test:rg("hsl","hue"),parse:PE("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Wn.transform($o(e))+", "+Wn.transform($o(n))+", "+$o(Io.transform(r))+")"},Ht={test:t=>Ks.test(t)||og.test(t)||ta.test(t),parse:t=>Ks.test(t)?Ks.parse(t):ta.test(t)?ta.parse(t):og.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Ks.transform(t):ta.transform(t)},JN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function WN(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(sg))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(JN))===null||n===void 0?void 0:n.length)||0)>0}const HE="number",FE="color",ez="var",tz="var(",$E="${}",nz=/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 Go(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},o=[];let u=0;const f=e.replace(nz,h=>(Ht.test(h)?(r.color.push(u),o.push(FE),n.push(Ht.parse(h))):h.startsWith(tz)?(r.var.push(u),o.push(ez),n.push(h)):(r.number.push(u),o.push(HE),n.push(parseFloat(h))),++u,$E)).split($E);return{values:n,split:f,indexes:r,types:o}}function GE(t){return Go(t).values}function YE(t){const{split:e,types:n}=Go(t),r=e.length;return o=>{let u="";for(let c=0;c<r;c++)if(u+=e[c],o[c]!==void 0){const f=n[c];f===HE?u+=$o(o[c]):f===FE?u+=Ht.transform(o[c]):u+=o[c]}return u}}const iz=t=>typeof t=="number"?0:t;function sz(t){const e=GE(t);return YE(t)(e.map(iz))}const ns={test:WN,parse:GE,createTransformer:YE,getAnimatableNone:sz},rz=new Set(["brightness","contrast","saturate","opacity"]);function az(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(sg)||[];if(!r)return t;const o=n.replace(r,"");let u=rz.has(e)?1:0;return r!==n&&(u*=100),e+"("+u+o+")"}const oz=/\b([a-z-]*)\(.*?\)/gu,lg={...ns,getAnimatableNone:t=>{const e=t.match(oz);return e?e.map(az).join(" "):t}},lz={...qp,color:Ht,backgroundColor:Ht,outlineColor:Ht,fill:Ht,stroke:Ht,borderColor:Ht,borderTopColor:Ht,borderRightColor:Ht,borderBottomColor:Ht,borderLeftColor:Ht,filter:lg,WebkitFilter:lg},ug=t=>lz[t];function XE(t,e){let n=ug(t);return n!==lg&&(n=ns),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const uz=new Set(["auto","none","0"]);function cz(t,e,n){let r=0,o;for(;r<t.length&&!o;){const u=t[r];typeof u=="string"&&!uz.has(u)&&Go(u).values.length&&(o=t[r]),r++}if(o&&n)for(const u of e)t[u]=XE(n,o)}const KE=t=>t===Wr||t===be,ZE=(t,e)=>parseFloat(t.split(", ")[e]),QE=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return ZE(o[1],e);{const u=r.match(/^matrix\((.+)\)$/u);return u?ZE(u[1],t):0}},fz=new Set(["x","y","z"]),dz=Jr.filter(t=>!fz.has(t));function hz(t){const e=[];return dz.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const na={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:QE(4,13),y:QE(5,14)};na.translateX=na.x,na.translateY=na.y;const Zs=new Set;let cg=!1,fg=!1;function JE(){if(fg){const t=Array.from(Zs).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const o=hz(r);o.length&&(n.set(r,o),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([u,c])=>{var f;(f=r.getValue(u))===null||f===void 0||f.set(c)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}fg=!1,cg=!1,Zs.forEach(t=>t.complete()),Zs.clear()}function WE(){Zs.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(fg=!0)})}function pz(){WE(),JE()}class dg{constructor(e,n,r,o,u,c=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=o,this.element=u,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Zs.add(this),cg||(cg=!0,nt.read(WE),nt.resolveKeyframes(JE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:o}=this;for(let u=0;u<e.length;u++)if(e[u]===null)if(u===0){const c=o?.get(),f=e[e.length-1];if(c!==void 0)e[0]=c;else if(r&&n){const h=r.readValue(n,f);h!=null&&(e[0]=h)}e[0]===void 0&&(e[0]=f),o&&c===void 0&&o.set(e[0])}else e[u]=e[u-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Zs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Zs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const e1=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),gz=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mz(t){const e=gz.exec(t);if(!e)return[,];const[,n,r,o]=e;return[`--${n??r}`,o]}function t1(t,e,n=1){const[r,o]=mz(t);if(!r)return;const u=window.getComputedStyle(e).getPropertyValue(r);if(u){const c=u.trim();return e1(c)?parseFloat(c):c}return Ip(o)?t1(o,e,n+1):o}const n1=t=>e=>e.test(t),i1=[Wr,be,Wn,ts,hN,dN,{test:t=>t==="auto",parse:t=>t}],s1=t=>i1.find(n1(t));class r1 extends dg{constructor(e,n,r,o,u){super(e,n,r,o,u,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let h=0;h<e.length;h++){let g=e[h];if(typeof g=="string"&&(g=g.trim(),Ip(g))){const m=t1(g,n.current);m!==void 0&&(e[h]=m),h===e.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!wE.has(r)||e.length!==2)return;const[o,u]=e,c=s1(o),f=s1(u);if(c!==f)if(KE(c)&&KE(f))for(let h=0;h<e.length;h++){const g=e[h];typeof g=="string"&&(e[h]=parseFloat(g))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let o=0;o<e.length;o++)YN(e[o])&&r.push(o);r.length&&cz(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=na[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&e.getValue(r,o).jump(o,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const u=n.getValue(r);u&&u.jump(this.measuredOrigin,!1);const c=o.length-1,f=o[c];o[c]=na[r](n.measureViewportBox(),window.getComputedStyle(n.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([h,g])=>{n.getValue(h).set(g)}),this.resolveNoneKeyframes()}}const a1=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ns.test(t)||t==="0")&&!t.startsWith("url("));function vz(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function yz(t,e,n,r){const o=t[0];if(o===null)return!1;if(e==="display"||e==="visibility")return!0;const u=t[t.length-1],c=a1(o,e),f=a1(u,e);return!c||!f?!1:vz(t)||(n==="spring"||Wp(n))&&r}const _z=t=>t!==null;function xc(t,{repeat:e,repeatType:n="loop"},r){const o=t.filter(_z),u=e&&n!=="loop"&&e%2===1?0:o.length-1;return!u||r===void 0?o[u]:r}const bz=40;class o1{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:u=0,repeatType:c="loop",...f}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ei.now(),this.options={autoplay:e,delay:n,type:r,repeat:o,repeatDelay:u,repeatType:c,...f},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>bz?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&pz(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=ei.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:u,delay:c,onComplete:f,onUpdate:h,isGenerator:g}=this.options;if(!g&&!yz(e,r,o,u))if(c)this.options.duration=0;else{h&&h(xc(e,this.options,n)),f&&f(),this.resolveFinishedPromise();return}const m=this.initPlayback(e,n);m!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const hg=2e4;function l1(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<hg;)e+=n,r=t.next(e);return e>=hg?1/0:e}const ft=(t,e,n)=>t+(e-t)*n;function pg(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Sz({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let o=0,u=0,c=0;if(!e)o=u=c=n;else{const f=n<.5?n*(1+e):n+e-n*e,h=2*n-f;o=pg(h,f,t+1/3),u=pg(h,f,t),c=pg(h,f,t-1/3)}return{red:Math.round(o*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:r}}function Tc(t,e){return n=>n>0?e:t}const gg=(t,e,n)=>{const r=t*t,o=n*(e*e-r)+r;return o<0?0:Math.sqrt(o)},Ez=[og,Ks,ta],xz=t=>Ez.find(e=>e.test(t));function u1(t){const e=xz(t);if(!e)return!1;let n=e.parse(t);return e===ta&&(n=Sz(n)),n}const c1=(t,e)=>{const n=u1(t),r=u1(e);if(!n||!r)return Tc(t,e);const o={...n};return u=>(o.red=gg(n.red,r.red,u),o.green=gg(n.green,r.green,u),o.blue=gg(n.blue,r.blue,u),o.alpha=ft(n.alpha,r.alpha,u),Ks.transform(o))},Tz=(t,e)=>n=>e(t(n)),Yo=(...t)=>t.reduce(Tz),mg=new Set(["none","hidden"]);function wz(t,e){return mg.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Az(t,e){return n=>ft(t,e,n)}function vg(t){return typeof t=="number"?Az:typeof t=="string"?Ip(t)?Tc:Ht.test(t)?c1:Oz:Array.isArray(t)?f1:typeof t=="object"?Ht.test(t)?c1:Cz:Tc}function f1(t,e){const n=[...t],r=n.length,o=t.map((u,c)=>vg(u)(u,e[c]));return u=>{for(let c=0;c<r;c++)n[c]=o[c](u);return n}}function Cz(t,e){const n={...t,...e},r={};for(const o in n)t[o]!==void 0&&e[o]!==void 0&&(r[o]=vg(t[o])(t[o],e[o]));return o=>{for(const u in r)n[u]=r[u](o);return n}}function Mz(t,e){var n;const r=[],o={color:0,var:0,number:0};for(let u=0;u<e.values.length;u++){const c=e.types[u],f=t.indexes[c][o[c]],h=(n=t.values[f])!==null&&n!==void 0?n:0;r[u]=h,o[c]++}return r}const Oz=(t,e)=>{const n=ns.createTransformer(e),r=Go(t),o=Go(e);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?mg.has(t)&&!o.values.length||mg.has(e)&&!r.values.length?wz(t,e):Yo(f1(Mz(r,o),o.values),n):Tc(t,e)};function d1(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?ft(t,e,n):vg(t)(t,e)}const Rz=5;function h1(t,e,n){const r=Math.max(e-Rz,0);return AE(n-t(r),e-r)}const ht={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},yg=.001;function Dz({duration:t=ht.duration,bounce:e=ht.bounce,velocity:n=ht.velocity,mass:r=ht.mass}){let o,u,c=1-e;c=_i(ht.minDamping,ht.maxDamping,c),t=_i(ht.minDuration,ht.maxDuration,Si(t)),c<1?(o=g=>{const m=g*c,v=m*t,_=m-n,b=_g(g,c),x=Math.exp(-v);return yg-_/b*x},u=g=>{const v=g*c*t,_=v*n+n,b=Math.pow(c,2)*Math.pow(g,2)*t,x=Math.exp(-v),E=_g(Math.pow(g,2),c);return(-o(g)+yg>0?-1:1)*((_-b)*x)/E}):(o=g=>{const m=Math.exp(-g*t),v=(g-n)*t+1;return-yg+m*v},u=g=>{const m=Math.exp(-g*t),v=(n-g)*(t*t);return m*v});const f=5/t,h=Lz(o,u,f);if(t=bi(t),isNaN(h))return{stiffness:ht.stiffness,damping:ht.damping,duration:t};{const g=Math.pow(h,2)*r;return{stiffness:g,damping:c*2*Math.sqrt(r*g),duration:t}}}const kz=12;function Lz(t,e,n){let r=n;for(let o=1;o<kz;o++)r=r-t(r)/e(r);return r}function _g(t,e){return t*Math.sqrt(1-e*e)}const Nz=["duration","bounce"],zz=["stiffness","damping","mass"];function p1(t,e){return e.some(n=>t[n]!==void 0)}function jz(t){let e={velocity:ht.velocity,stiffness:ht.stiffness,damping:ht.damping,mass:ht.mass,isResolvedFromDuration:!1,...t};if(!p1(t,zz)&&p1(t,Nz))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,u=2*_i(.05,1,1-(t.bounce||0))*Math.sqrt(o);e={...e,mass:ht.mass,stiffness:o,damping:u}}else{const n=Dz(t);e={...e,...n,mass:ht.mass},e.isResolvedFromDuration=!0}return e}function g1(t=ht.visualDuration,e=ht.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:o}=n;const u=n.keyframes[0],c=n.keyframes[n.keyframes.length-1],f={done:!1,value:u},{stiffness:h,damping:g,mass:m,duration:v,velocity:_,isResolvedFromDuration:b}=jz({...n,velocity:-Si(n.velocity||0)}),x=_||0,E=g/(2*Math.sqrt(h*m)),M=c-u,R=Si(Math.sqrt(h/m)),q=Math.abs(M)<5;r||(r=q?ht.restSpeed.granular:ht.restSpeed.default),o||(o=q?ht.restDelta.granular:ht.restDelta.default);let F;if(E<1){const U=_g(R,E);F=Q=>{const P=Math.exp(-E*R*Q);return c-P*((x+E*R*M)/U*Math.sin(U*Q)+M*Math.cos(U*Q))}}else if(E===1)F=U=>c-Math.exp(-R*U)*(M+(x+R*M)*U);else{const U=R*Math.sqrt(E*E-1);F=Q=>{const P=Math.exp(-E*R*Q),I=Math.min(U*Q,300);return c-P*((x+E*R*M)*Math.sinh(I)+U*M*Math.cosh(I))/U}}const K={calculatedDuration:b&&v||null,next:U=>{const Q=F(U);if(b)f.done=U>=v;else{let P=0;E<1&&(P=U===0?bi(x):h1(F,U,Q));const I=Math.abs(P)<=r,$=Math.abs(c-Q)<=o;f.done=I&&$}return f.value=f.done?c:Q,f},toString:()=>{const U=Math.min(l1(K),hg),Q=RE(P=>K.next(U*P).value,U,30);return U+"ms "+Q}};return K}function m1({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:u=500,modifyTarget:c,min:f,max:h,restDelta:g=.5,restSpeed:m}){const v=t[0],_={done:!1,value:v},b=I=>f!==void 0&&I<f||h!==void 0&&I>h,x=I=>f===void 0?h:h===void 0||Math.abs(f-I)<Math.abs(h-I)?f:h;let E=n*e;const M=v+E,R=c===void 0?M:c(M);R!==M&&(E=R-v);const q=I=>-E*Math.exp(-I/r),F=I=>R+q(I),K=I=>{const $=q(I),ee=F(I);_.done=Math.abs($)<=g,_.value=_.done?R:ee};let U,Q;const P=I=>{b(_.value)&&(U=I,Q=g1({keyframes:[_.value,x(_.value)],velocity:h1(F,I,_.value),damping:o,stiffness:u,restDelta:g,restSpeed:m}))};return P(0),{calculatedDuration:null,next:I=>{let $=!1;return!Q&&U===void 0&&($=!0,K(I),P(I)),U!==void 0&&I>=U?Q.next(I-U):(!$&&K(I),_)}}}const Uz=Fo(.42,0,1,1),Bz=Fo(0,0,.58,1),v1=Fo(.42,0,.58,1),Vz=t=>Array.isArray(t)&&typeof t[0]!="number",Iz={linear:dn,easeIn:Uz,easeInOut:v1,easeOut:Bz,circIn:ig,circInOut:IE,circOut:VE,backIn:ng,backInOut:UE,backOut:jE,anticipate:BE},y1=t=>{if(eg(t)){JS(t.length===4);const[e,n,r,o]=t;return Fo(e,n,r,o)}else if(typeof t=="string")return Iz[t];return t};function qz(t,e,n){const r=[],o=n||d1,u=t.length-1;for(let c=0;c<u;c++){let f=o(t[c],t[c+1]);if(e){const h=Array.isArray(e)?e[c]||dn:e;f=Yo(h,f)}r.push(f)}return r}function Pz(t,e,{clamp:n=!0,ease:r,mixer:o}={}){const u=t.length;if(JS(u===e.length),u===1)return()=>e[0];if(u===2&&e[0]===e[1])return()=>e[1];const c=t[0]===t[1];t[0]>t[u-1]&&(t=[...t].reverse(),e=[...e].reverse());const f=qz(e,r,o),h=f.length,g=m=>{if(c&&m<t[0])return e[0];let v=0;if(h>1)for(;v<t.length-2&&!(m<t[v+1]);v++);const _=ea(t[v],t[v+1],m);return f[v](_)};return n?m=>g(_i(t[0],t[u-1],m)):g}function Hz(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const o=ea(0,e,r);t.push(ft(n,1,o))}}function Fz(t){const e=[0];return Hz(e,t.length-1),e}function $z(t,e){return t.map(n=>n*e)}function Gz(t,e){return t.map(()=>e||v1).splice(0,t.length-1)}function wc({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const o=Vz(r)?r.map(y1):y1(r),u={done:!1,value:e[0]},c=$z(n&&n.length===e.length?n:Fz(e),t),f=Pz(c,e,{ease:Array.isArray(o)?o:Gz(e,o)});return{calculatedDuration:t,next:h=>(u.value=f(h),u.done=h>=t,u)}}const Yz=t=>{const e=({timestamp:n})=>t(n);return{start:()=>nt.update(e,!0),stop:()=>es(e),now:()=>Nt.isProcessing?Nt.timestamp:ei.now()}},Xz={decay:m1,inertia:m1,tween:wc,keyframes:wc,spring:g1},Kz=t=>t/100;class bg extends o1{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:h}=this.options;h&&h()};const{name:n,motionValue:r,element:o,keyframes:u}=this.options,c=o?.KeyframeResolver||dg,f=(h,g)=>this.onKeyframesResolved(h,g);this.resolver=new c(u,f,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:u,velocity:c=0}=this.options,f=Wp(n)?n:Xz[n]||wc;let h,g;f!==wc&&typeof e[0]!="number"&&(h=Yo(Kz,d1(e[0],e[1])),e=[0,100]);const m=f({...this.options,keyframes:e});u==="mirror"&&(g=f({...this.options,keyframes:[...e].reverse(),velocity:-c})),m.calculatedDuration===null&&(m.calculatedDuration=l1(m));const{calculatedDuration:v}=m,_=v+o,b=_*(r+1)-o;return{generator:m,mirroredGenerator:g,mapPercentToKeyframes:h,calculatedDuration:v,resolvedDuration:_,totalDuration:b}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:I}=this.options;return{done:!0,value:I[I.length-1]}}const{finalKeyframe:o,generator:u,mirroredGenerator:c,mapPercentToKeyframes:f,keyframes:h,calculatedDuration:g,totalDuration:m,resolvedDuration:v}=r;if(this.startTime===null)return u.next(0);const{delay:_,repeat:b,repeatType:x,repeatDelay:E,onUpdate:M}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-m/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const R=this.currentTime-_*(this.speed>=0?1:-1),q=this.speed>=0?R<0:R>m;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let F=this.currentTime,K=u;if(b){const I=Math.min(this.currentTime,m)/v;let $=Math.floor(I),ee=I%1;!ee&&I>=1&&(ee=1),ee===1&&$--,$=Math.min($,b+1),$%2&&(x==="reverse"?(ee=1-ee,E&&(ee-=E/v)):x==="mirror"&&(K=c)),F=_i(0,1,ee)*v}const U=q?{done:!1,value:h[0]}:K.next(F);f&&(U.value=f(U.value));let{done:Q}=U;!q&&g!==null&&(Q=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Q);return P&&o!==void 0&&(U.value=xc(h,this.options,o)),M&&M(U.value),P&&this.finish(),U}get duration(){const{resolved:e}=this;return e?Si(e.calculatedDuration):0}get time(){return Si(this.currentTime)}set time(e){e=bi(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Si(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Yz,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=e(u=>this.tick(u))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Zz=new Set(["opacity","clipPath","filter","transform"]);function Qz(t,e,n,{delay:r=0,duration:o=300,repeat:u=0,repeatType:c="loop",ease:f="easeInOut",times:h}={}){const g={[e]:n};h&&(g.offset=h);const m=kE(f,o);return Array.isArray(m)&&(g.easing=m),t.animate(g,{delay:r,duration:o,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"})}const Jz=Jp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ac=10,Wz=2e4;function e4(t){return Wp(t.type)||t.type==="spring"||!DE(t.ease)}function t4(t,e){const n=new bg({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const o=[];let u=0;for(;!r.done&&u<Wz;)r=n.sample(u),o.push(r.value),u+=Ac;return{times:void 0,keyframes:o,duration:u-Ac,ease:"linear"}}const _1={anticipate:BE,backInOut:UE,circInOut:IE};function n4(t){return t in _1}class b1 extends o1{constructor(e){super(e);const{name:n,motionValue:r,element:o,keyframes:u}=this.options;this.resolver=new r1(u,(c,f)=>this.onKeyframesResolved(c,f),n,r,o),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:r=300,times:o,ease:u,type:c,motionValue:f,name:h,startTime:g}=this.options;if(!f.owner||!f.owner.current)return!1;if(typeof u=="string"&&Ec()&&n4(u)&&(u=_1[u]),e4(this.options)){const{onComplete:v,onUpdate:_,motionValue:b,element:x,...E}=this.options,M=t4(e,E);e=M.keyframes,e.length===1&&(e[1]=e[0]),r=M.duration,o=M.times,u=M.ease,c="keyframes"}const m=Qz(f.owner.current,h,e,{...this.options,duration:r,times:o,ease:u});return m.startTime=g??this.calcStartTime(),this.pendingTimeline?(OE(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:v}=this.options;f.set(xc(e,this.options,n)),v&&v(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:r,times:o,type:c,ease:u,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Si(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Si(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=bi(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return dn;const{animation:r}=n;OE(r,e)}return dn}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:o,type:u,ease:c,times:f}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:g,onUpdate:m,onComplete:v,element:_,...b}=this.options,x=new bg({...b,keyframes:r,duration:o,type:u,ease:c,times:f,isGenerator:!0}),E=bi(this.time);g.setWithVelocity(x.sample(E-Ac).value,x.sample(E).value,Ac)}const{onStop:h}=this.options;h&&h(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:o,repeatType:u,damping:c,type:f}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:g}=n.owner.getProps();return Jz()&&r&&Zz.has(r)&&!h&&!g&&!o&&u!=="mirror"&&c!==0&&f!=="inertia"}}const i4={type:"spring",stiffness:500,damping:25,restSpeed:10},s4=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),r4={type:"keyframes",duration:.8},a4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},o4=(t,{keyframes:e})=>e.length>2?r4:Xs.has(t)?t.startsWith("scale")?s4(e[1]):i4:a4;function l4({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:u,repeatType:c,repeatDelay:f,from:h,elapsed:g,...m}){return!!Object.keys(m).length}const Sg=(t,e,n,r={},o,u)=>c=>{const f=Yp(r,t)||{},h=f.delay||r.delay||0;let{elapsed:g=0}=r;g=g-bi(h);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...f,delay:-g,onUpdate:_=>{e.set(_),f.onUpdate&&f.onUpdate(_)},onComplete:()=>{c(),f.onComplete&&f.onComplete()},name:t,motionValue:e,element:u?void 0:o};l4(f)||(m={...m,...o4(t,m)}),m.duration&&(m.duration=bi(m.duration)),m.repeatDelay&&(m.repeatDelay=bi(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let v=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(v=!0)),v&&!u&&e.get()!==void 0){const _=xc(m.keyframes,f);if(_!==void 0)return nt.update(()=>{m.onUpdate(_),m.onComplete()}),new qN([])}return!u&&b1.supports(m)?new b1(m):new bg(m)};function u4({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function S1(t,e,{delay:n=0,transitionOverride:r,type:o}={}){var u;let{transition:c=t.getDefaultTransition(),transitionEnd:f,...h}=e;r&&(c=r);const g=[],m=o&&t.animationState&&t.animationState.getState()[o];for(const v in h){const _=t.getValue(v,(u=t.latestValues[v])!==null&&u!==void 0?u:null),b=h[v];if(b===void 0||m&&u4(m,v))continue;const x={delay:n,...Yp(c||{},v)};let E=!1;if(window.MotionHandoffAnimation){const R=ME(t);if(R){const q=window.MotionHandoffAnimation(R,v,nt);q!==null&&(x.startTime=q,E=!0)}}Qp(t,v),_.start(Sg(v,_,b,t.shouldReduceMotion&&wE.has(v)?{type:!1}:x,t,E));const M=_.animation;M&&g.push(M)}return f&&Promise.all(g).then(()=>{nt.update(()=>{f&&UN(t,f)})}),g}function Eg(t,e,n={}){var r;const o=bc(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:u=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(u=n.transitionOverride);const c=o?()=>Promise.all(S1(t,o,n)):()=>Promise.resolve(),f=t.variantChildren&&t.variantChildren.size?(g=0)=>{const{delayChildren:m=0,staggerChildren:v,staggerDirection:_}=u;return c4(t,e,m+g,v,_,n)}:()=>Promise.resolve(),{when:h}=u;if(h){const[g,m]=h==="beforeChildren"?[c,f]:[f,c];return g().then(()=>m())}else return Promise.all([c(),f(n.delay)])}function c4(t,e,n=0,r=0,o=1,u){const c=[],f=(t.variantChildren.size-1)*r,h=o===1?(g=0)=>g*r:(g=0)=>f-g*r;return Array.from(t.variantChildren).sort(f4).forEach((g,m)=>{g.notify("AnimationStart",e),c.push(Eg(g,e,{...u,delay:n+h(m)}).then(()=>g.notify("AnimationComplete",e)))}),Promise.all(c)}function f4(t,e){return t.sortNodePosition(e)}function d4(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const o=e.map(u=>Eg(t,u,n));r=Promise.all(o)}else if(typeof e=="string")r=Eg(t,e,n);else{const o=typeof e=="function"?bc(t,e,n.custom):e;r=Promise.all(S1(t,o,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const h4=Np.length;function E1(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?E1(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<h4;n++){const r=Np[n],o=t.props[r];(Vo(o)||o===!1)&&(e[r]=o)}return e}const p4=[...Lp].reverse(),g4=Lp.length;function m4(t){return e=>Promise.all(e.map(({animation:n,options:r})=>d4(t,n,r)))}function v4(t){let e=m4(t),n=x1(),r=!0;const o=h=>(g,m)=>{var v;const _=bc(t,m,h==="exit"?(v=t.presenceContext)===null||v===void 0?void 0:v.custom:void 0);if(_){const{transition:b,transitionEnd:x,...E}=_;g={...g,...E,...x}}return g};function u(h){e=h(t)}function c(h){const{props:g}=t,m=E1(t.parent)||{},v=[],_=new Set;let b={},x=1/0;for(let M=0;M<g4;M++){const R=p4[M],q=n[R],F=g[R]!==void 0?g[R]:m[R],K=Vo(F),U=R===h?q.isActive:null;U===!1&&(x=M);let Q=F===m[R]&&F!==g[R]&&K;if(Q&&r&&t.manuallyAnimateOnMount&&(Q=!1),q.protectedKeys={...b},!q.isActive&&U===null||!F&&!q.prevProp||gc(F)||typeof F=="boolean")continue;const P=y4(q.prevProp,F);let I=P||R===h&&q.isActive&&!Q&&K||M>x&&K,$=!1;const ee=Array.isArray(F)?F:[F];let le=ee.reduce(o(R),{});U===!1&&(le={});const{prevResolvedValues:ie={}}=q,he={...ie,...le},ye=N=>{I=!0,_.has(N)&&($=!0,_.delete(N)),q.needsAnimating[N]=!0;const J=t.getValue(N);J&&(J.liveStyle=!1)};for(const N in he){const J=le[N],te=ie[N];if(b.hasOwnProperty(N))continue;let ue=!1;Vp(J)&&Vp(te)?ue=!TE(J,te):ue=J!==te,ue?J!=null?ye(N):_.add(N):J!==void 0&&_.has(N)?ye(N):q.protectedKeys[N]=!0}q.prevProp=F,q.prevResolvedValues=le,q.isActive&&(b={...b,...le}),r&&t.blockInitialAnimation&&(I=!1),I&&(!(Q&&P)||$)&&v.push(...ee.map(N=>({animation:N,options:{type:R}})))}if(_.size){const M={};_.forEach(R=>{const q=t.getBaseTarget(R),F=t.getValue(R);F&&(F.liveStyle=!0),M[R]=q??null}),v.push({animation:M})}let E=!!v.length;return r&&(g.initial===!1||g.initial===g.animate)&&!t.manuallyAnimateOnMount&&(E=!1),r=!1,E?e(v):Promise.resolve()}function f(h,g){var m;if(n[h].isActive===g)return Promise.resolve();(m=t.variantChildren)===null||m===void 0||m.forEach(_=>{var b;return(b=_.animationState)===null||b===void 0?void 0:b.setActive(h,g)}),n[h].isActive=g;const v=c(h);for(const _ in n)n[_].protectedKeys={};return v}return{animateChanges:c,setActive:f,setAnimateFunction:u,getState:()=>n,reset:()=>{n=x1(),r=!0}}}function y4(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!TE(e,t):!1}function Qs(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function x1(){return{animate:Qs(!0),whileInView:Qs(),whileHover:Qs(),whileTap:Qs(),whileDrag:Qs(),whileFocus:Qs(),exit:Qs()}}class is{constructor(e){this.isMounted=!1,this.node=e}update(){}}class _4 extends is{constructor(e){super(e),e.animationState||(e.animationState=v4(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();gc(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let b4=0;class S4 extends is{constructor(){super(...arguments),this.id=b4++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e);n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const E4={animation:{Feature:_4},exit:{Feature:S4}},Fn={x:!1,y:!1};function T1(){return Fn.x||Fn.y}function x4(t){return t==="x"||t==="y"?Fn[t]?null:(Fn[t]=!0,()=>{Fn[t]=!1}):Fn.x||Fn.y?null:(Fn.x=Fn.y=!0,()=>{Fn.x=Fn.y=!1})}const xg=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Xo(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function Ko(t){return{point:{x:t.pageX,y:t.pageY}}}const T4=t=>e=>xg(e)&&t(e,Ko(e));function Zo(t,e,n,r){return Xo(t,e,T4(n),r)}const w1=(t,e)=>Math.abs(t-e);function w4(t,e){const n=w1(t.x,e.x),r=w1(t.y,e.y);return Math.sqrt(n**2+r**2)}class A1{constructor(e,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:u=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=wg(this.lastMoveEventInfo,this.history),_=this.startEvent!==null,b=w4(v.offset,{x:0,y:0})>=3;if(!_&&!b)return;const{point:x}=v,{timestamp:E}=Nt;this.history.push({...x,timestamp:E});const{onStart:M,onMove:R}=this.handlers;_||(M&&M(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,v)},this.handlePointerMove=(v,_)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=Tg(_,this.transformPagePoint),nt.update(this.updatePoint,!0)},this.handlePointerUp=(v,_)=>{this.end();const{onEnd:b,onSessionEnd:x,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=wg(v.type==="pointercancel"?this.lastMoveEventInfo:Tg(_,this.transformPagePoint),this.history);this.startEvent&&b&&b(v,M),x&&x(v,M)},!xg(e))return;this.dragSnapToOrigin=u,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const c=Ko(e),f=Tg(c,this.transformPagePoint),{point:h}=f,{timestamp:g}=Nt;this.history=[{...h,timestamp:g}];const{onSessionStart:m}=n;m&&m(e,wg(f,this.history)),this.removeListeners=Yo(Zo(this.contextWindow,"pointermove",this.handlePointerMove),Zo(this.contextWindow,"pointerup",this.handlePointerUp),Zo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),es(this.updatePoint)}}function Tg(t,e){return e?{point:e(t.point)}:t}function C1(t,e){return{x:t.x-e.x,y:t.y-e.y}}function wg({point:t},e){return{point:t,delta:C1(t,M1(e)),offset:C1(t,A4(e)),velocity:C4(e,.1)}}function A4(t){return t[0]}function M1(t){return t[t.length-1]}function C4(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const o=M1(t);for(;n>=0&&(r=t[n],!(o.timestamp-r.timestamp>bi(e)));)n--;if(!r)return{x:0,y:0};const u=Si(o.timestamp-r.timestamp);if(u===0)return{x:0,y:0};const c={x:(o.x-r.x)/u,y:(o.y-r.y)/u};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}const O1=1e-4,M4=1-O1,O4=1+O1,R1=.01,R4=0-R1,D4=0+R1;function hn(t){return t.max-t.min}function k4(t,e,n){return Math.abs(t-e)<=n}function D1(t,e,n,r=.5){t.origin=r,t.originPoint=ft(e.min,e.max,t.origin),t.scale=hn(n)/hn(e),t.translate=ft(n.min,n.max,t.origin)-t.originPoint,(t.scale>=M4&&t.scale<=O4||isNaN(t.scale))&&(t.scale=1),(t.translate>=R4&&t.translate<=D4||isNaN(t.translate))&&(t.translate=0)}function Qo(t,e,n,r){D1(t.x,e.x,n.x,r?r.originX:void 0),D1(t.y,e.y,n.y,r?r.originY:void 0)}function k1(t,e,n){t.min=n.min+e.min,t.max=t.min+hn(e)}function L4(t,e,n){k1(t.x,e.x,n.x),k1(t.y,e.y,n.y)}function L1(t,e,n){t.min=e.min-n.min,t.max=t.min+hn(e)}function Jo(t,e,n){L1(t.x,e.x,n.x),L1(t.y,e.y,n.y)}function N4(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?ft(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?ft(n,t,r.max):Math.min(t,n)),t}function N1(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function z4(t,{top:e,left:n,bottom:r,right:o}){return{x:N1(t.x,n,o),y:N1(t.y,e,r)}}function z1(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function j4(t,e){return{x:z1(t.x,e.x),y:z1(t.y,e.y)}}function U4(t,e){let n=.5;const r=hn(t),o=hn(e);return o>r?n=ea(e.min,e.max-r,t.min):r>o&&(n=ea(t.min,t.max-o,e.min)),_i(0,1,n)}function B4(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ag=.35;function V4(t=Ag){return t===!1?t=0:t===!0&&(t=Ag),{x:j1(t,"left","right"),y:j1(t,"top","bottom")}}function j1(t,e,n){return{min:U1(t,e),max:U1(t,n)}}function U1(t,e){return typeof t=="number"?t:t[e]||0}const B1=()=>({translate:0,scale:1,origin:0,originPoint:0}),ia=()=>({x:B1(),y:B1()}),V1=()=>({min:0,max:0}),mt=()=>({x:V1(),y:V1()});function Mn(t){return[t("x"),t("y")]}function I1({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function I4({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function q4(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Cg(t){return t===void 0||t===1}function Mg({scale:t,scaleX:e,scaleY:n}){return!Cg(t)||!Cg(e)||!Cg(n)}function Js(t){return Mg(t)||q1(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function q1(t){return P1(t.x)||P1(t.y)}function P1(t){return t&&t!=="0%"}function Cc(t,e,n){const r=t-n,o=e*r;return n+o}function H1(t,e,n,r,o){return o!==void 0&&(t=Cc(t,o,r)),Cc(t,n,r)+e}function Og(t,e=0,n=1,r,o){t.min=H1(t.min,e,n,r,o),t.max=H1(t.max,e,n,r,o)}function F1(t,{x:e,y:n}){Og(t.x,e.translate,e.scale,e.originPoint),Og(t.y,n.translate,n.scale,n.originPoint)}const $1=.999999999999,G1=1.0000000000001;function P4(t,e,n,r=!1){const o=n.length;if(!o)return;e.x=e.y=1;let u,c;for(let f=0;f<o;f++){u=n[f],c=u.projectionDelta;const{visualElement:h}=u.options;h&&h.props.style&&h.props.style.display==="contents"||(r&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ra(t,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),c&&(e.x*=c.x.scale,e.y*=c.y.scale,F1(t,c)),r&&Js(u.latestValues)&&ra(t,u.latestValues))}e.x<G1&&e.x>$1&&(e.x=1),e.y<G1&&e.y>$1&&(e.y=1)}function sa(t,e){t.min=t.min+e,t.max=t.max+e}function Y1(t,e,n,r,o=.5){const u=ft(t.min,t.max,o);Og(t,e,n,u,r)}function ra(t,e){Y1(t.x,e.x,e.scaleX,e.scale,e.originX),Y1(t.y,e.y,e.scaleY,e.scale,e.originY)}function X1(t,e){return I1(q4(t.getBoundingClientRect(),e))}function H4(t,e,n){const r=X1(t,n),{scroll:o}=e;return o&&(sa(r.x,o.offset.x),sa(r.y,o.offset.y)),r}const K1=({current:t})=>t?t.ownerDocument.defaultView:null,F4=new WeakMap;class $4{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=mt(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=m=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ko(m).point)},u=(m,v)=>{const{drag:_,dragPropagation:b,onDragStart:x}=this.getProps();if(_&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=x4(_),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Mn(M=>{let R=this.getAxisMotionValue(M).get()||0;if(Wn.test(R)){const{projection:q}=this.visualElement;if(q&&q.layout){const F=q.layout.layoutBox[M];F&&(R=hn(F)*(parseFloat(R)/100))}}this.originPoint[M]=R}),x&&nt.postRender(()=>x(m,v)),Qp(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},c=(m,v)=>{const{dragPropagation:_,dragDirectionLock:b,onDirectionLock:x,onDrag:E}=this.getProps();if(!_&&!this.openDragLock)return;const{offset:M}=v;if(b&&this.currentDirection===null){this.currentDirection=G4(M),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",v.point,M),this.updateAxis("y",v.point,M),this.visualElement.render(),E&&E(m,v)},f=(m,v)=>this.stop(m,v),h=()=>Mn(m=>{var v;return this.getAnimationState(m)==="paused"&&((v=this.getAxisMotionValue(m).animation)===null||v===void 0?void 0:v.play())}),{dragSnapToOrigin:g}=this.getProps();this.panSession=new A1(e,{onSessionStart:o,onStart:u,onMove:c,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,contextWindow:K1(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:u}=this.getProps();u&&nt.postRender(()=>u(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:o}=this.getProps();if(!r||!Mc(e,o,this.currentDirection))return;const u=this.getAxisMotionValue(e);let c=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(c=N4(c,this.constraints[e],this.elastic[e])),u.set(c)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,u=this.constraints;n&&Qr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=z4(o.layoutBox,n):this.constraints=!1,this.elastic=V4(r),u!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Mn(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=B4(o.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Qr(e))return!1;const r=e.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const u=H4(r,o.root,this.visualElement.getTransformPagePoint());let c=j4(o.layout.layoutBox,u);if(n){const f=n(I4(c));this.hasMutatedConstraints=!!f,f&&(c=I1(f))}return c}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:u,dragSnapToOrigin:c,onDragTransitionEnd:f}=this.getProps(),h=this.constraints||{},g=Mn(m=>{if(!Mc(m,n,this.currentDirection))return;let v=h&&h[m]||{};c&&(v={min:0,max:0});const _=o?200:1e6,b=o?40:1e7,x={type:"inertia",velocity:r?e[m]:0,bounceStiffness:_,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...u,...v};return this.startAxisValueAnimation(m,x)});return Promise.all(g).then(f)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Qp(this.visualElement,e),r.start(Sg(e,r,0,n,this.visualElement,!1))}stopAnimation(){Mn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Mn(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Mn(n=>{const{drag:r}=this.getProps();if(!Mc(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,u=this.getAxisMotionValue(n);if(o&&o.layout){const{min:c,max:f}=o.layout.layoutBox[n];u.set(e[n]-ft(c,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Qr(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Mn(c=>{const f=this.getAxisMotionValue(c);if(f&&this.constraints!==!1){const h=f.get();o[c]=U4({min:h,max:h},this.constraints[c])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Mn(c=>{if(!Mc(c,e,null))return;const f=this.getAxisMotionValue(c),{min:h,max:g}=this.constraints[c];f.set(ft(h,g,o[c]))})}addListeners(){if(!this.visualElement.current)return;F4.set(this.visualElement,this);const e=this.visualElement.current,n=Zo(e,"pointerdown",h=>{const{drag:g,dragListener:m=!0}=this.getProps();g&&m&&this.start(h)}),r=()=>{const{dragConstraints:h}=this.getProps();Qr(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,u=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),nt.read(r);const c=Xo(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:g})=>{this.isDragging&&g&&(Mn(m=>{const v=this.getAxisMotionValue(m);v&&(this.originPoint[m]+=h[m].translate,v.set(v.get()+h[m].translate))}),this.visualElement.render())}));return()=>{c(),n(),u(),f&&f()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:u=!1,dragElastic:c=Ag,dragMomentum:f=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:u,dragElastic:c,dragMomentum:f}}}function Mc(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function G4(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Y4 extends is{constructor(e){super(e),this.removeGroupControls=dn,this.removeListeners=dn,this.controls=new $4(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dn}unmount(){this.removeGroupControls(),this.removeListeners()}}const Z1=t=>(e,n)=>{t&&nt.postRender(()=>t(e,n))};class X4 extends is{constructor(){super(...arguments),this.removePointerDownListener=dn}onPointerDown(e){this.session=new A1(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:K1(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Z1(e),onStart:Z1(n),onMove:r,onEnd:(u,c)=>{delete this.session,o&&nt.postRender(()=>o(u,c))}}}mount(){this.removePointerDownListener=Zo(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Oc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Q1(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Wo={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(be.test(t))t=parseFloat(t);else return t;const n=Q1(t,e.target.x),r=Q1(t,e.target.y);return`${n}% ${r}%`}},K4={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,o=ns.parse(t);if(o.length>5)return r;const u=ns.createTransformer(t),c=typeof o[0]!="number"?1:0,f=n.x.scale*e.x,h=n.y.scale*e.y;o[0+c]/=f,o[1+c]/=h;const g=ft(f,h,.5);return typeof o[2+c]=="number"&&(o[2+c]/=g),typeof o[3+c]=="number"&&(o[3+c]/=g),u(o)}};class Z4 extends Y.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:u}=e;xN(Q4),u&&(n.group&&n.group.add(u),r&&r.register&&o&&r.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),Oc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:o,isPresent:u}=this.props,c=r.projection;return c&&(c.isPresent=u,o||e.layoutDependency!==n||n===void 0?c.willUpdate():this.safeToRemove(),e.isPresent!==u&&(u?c.promote():c.relegate()||nt.postRender(()=>{const f=c.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),jp.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function J1(t){const[e,n]=KS(),r=Y.useContext(Mp);return ve.jsx(Z4,{...t,layoutGroup:r,switchLayoutGroup:Y.useContext(aE),isPresent:e,safeToRemove:n})}const Q4={borderRadius:{...Wo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Wo,borderTopRightRadius:Wo,borderBottomLeftRadius:Wo,borderBottomRightRadius:Wo,boxShadow:K4};function J4(t,e,n){const r=Pt(t)?t:Po(t);return r.start(Sg("",r,e,n)),r.animation}function W4(t){return t instanceof SVGElement&&t.tagName!=="svg"}const ej=(t,e)=>t.depth-e.depth;class tj{constructor(){this.children=[],this.isDirty=!1}add(e){Xp(this.children,e),this.isDirty=!0}remove(e){Kp(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ej),this.isDirty=!1,this.children.forEach(e)}}function nj(t,e){const n=ei.now(),r=({timestamp:o})=>{const u=o-n;u>=e&&(es(r),t(u-e))};return nt.read(r,!0),()=>es(r)}const W1=["TopLeft","TopRight","BottomLeft","BottomRight"],ij=W1.length,ex=t=>typeof t=="string"?parseFloat(t):t,tx=t=>typeof t=="number"||be.test(t);function sj(t,e,n,r,o,u){o?(t.opacity=ft(0,n.opacity!==void 0?n.opacity:1,rj(r)),t.opacityExit=ft(e.opacity!==void 0?e.opacity:1,0,aj(r))):u&&(t.opacity=ft(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let c=0;c<ij;c++){const f=`border${W1[c]}Radius`;let h=nx(e,f),g=nx(n,f);if(h===void 0&&g===void 0)continue;h||(h=0),g||(g=0),h===0||g===0||tx(h)===tx(g)?(t[f]=Math.max(ft(ex(h),ex(g),r),0),(Wn.test(g)||Wn.test(h))&&(t[f]+="%")):t[f]=g}(e.rotate||n.rotate)&&(t.rotate=ft(e.rotate||0,n.rotate||0,r))}function nx(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const rj=ix(0,.5,VE),aj=ix(.5,.95,dn);function ix(t,e,n){return r=>r<t?0:r>e?1:n(ea(t,e,r))}function sx(t,e){t.min=e.min,t.max=e.max}function On(t,e){sx(t.x,e.x),sx(t.y,e.y)}function rx(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ax(t,e,n,r,o){return t-=e,t=Cc(t,1/n,r),o!==void 0&&(t=Cc(t,1/o,r)),t}function oj(t,e=0,n=1,r=.5,o,u=t,c=t){if(Wn.test(e)&&(e=parseFloat(e),e=ft(c.min,c.max,e/100)-c.min),typeof e!="number")return;let f=ft(u.min,u.max,r);t===u&&(f-=e),t.min=ax(t.min,e,n,f,o),t.max=ax(t.max,e,n,f,o)}function ox(t,e,[n,r,o],u,c){oj(t,e[n],e[r],e[o],e.scale,u,c)}const lj=["x","scaleX","originX"],uj=["y","scaleY","originY"];function lx(t,e,n,r){ox(t.x,e,lj,n?n.x:void 0,r?r.x:void 0),ox(t.y,e,uj,n?n.y:void 0,r?r.y:void 0)}function ux(t){return t.translate===0&&t.scale===1}function cx(t){return ux(t.x)&&ux(t.y)}function fx(t,e){return t.min===e.min&&t.max===e.max}function cj(t,e){return fx(t.x,e.x)&&fx(t.y,e.y)}function dx(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function hx(t,e){return dx(t.x,e.x)&&dx(t.y,e.y)}function px(t){return hn(t.x)/hn(t.y)}function gx(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class fj{constructor(){this.members=[]}add(e){Xp(this.members,e),e.scheduleRender()}remove(e){if(Kp(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(o=>e===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const u=this.members[o];if(u.isPresent!==!1){r=u;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function dj(t,e,n){let r="";const o=t.x.translate/e.x,u=t.y.translate/e.y,c=n?.z||0;if((o||u||c)&&(r=`translate3d(${o}px, ${u}px, ${c}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:g,rotate:m,rotateX:v,rotateY:_,skewX:b,skewY:x}=n;g&&(r=`perspective(${g}px) ${r}`),m&&(r+=`rotate(${m}deg) `),v&&(r+=`rotateX(${v}deg) `),_&&(r+=`rotateY(${_}deg) `),b&&(r+=`skewX(${b}deg) `),x&&(r+=`skewY(${x}deg) `)}const f=t.x.scale*e.x,h=t.y.scale*e.y;return(f!==1||h!==1)&&(r+=`scale(${f}, ${h})`),r||"none"}const Ws={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},el=typeof window<"u"&&window.MotionDebug!==void 0,Rg=["","X","Y","Z"],hj={visibility:"hidden"},mx=1e3;let pj=0;function Dg(t,e,n,r){const{latestValues:o}=e;o[t]&&(n[t]=o[t],e.setStaticValue(t,0),r&&(r[t]=0))}function vx(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=ME(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:u}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",nt,!(o||u))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&vx(r)}function yx({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(c={},f=e?.()){this.id=pj++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,el&&(Ws.totalNodes=Ws.resolvedTargetDeltas=Ws.recalculatedProjection=0),this.nodes.forEach(vj),this.nodes.forEach(Ej),this.nodes.forEach(xj),this.nodes.forEach(yj),el&&window.MotionDebug.record(Ws)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new tj)}addEventListener(c,f){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Zp),this.eventHandlers.get(c).add(f)}notifyListeners(c,...f){const h=this.eventHandlers.get(c);h&&h.notify(...f)}hasListeners(c){return this.eventHandlers.has(c)}mount(c,f=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=W4(c),this.instance=c;const{layoutId:h,layout:g,visualElement:m}=this.options;if(m&&!m.current&&m.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),f&&(g||h)&&(this.isLayoutDirty=!0),t){let v;const _=()=>this.root.updateBlockedByResize=!1;t(c,()=>{this.root.updateBlockedByResize=!0,v&&v(),v=nj(_,250),Oc.hasAnimatedSinceResize&&(Oc.hasAnimatedSinceResize=!1,this.nodes.forEach(bx))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&m&&(h||g)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:_,hasRelativeTargetChanged:b,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||m.getDefaultTransition()||Mj,{onLayoutAnimationStart:M,onLayoutAnimationComplete:R}=m.getProps(),q=!this.targetLayout||!hx(this.targetLayout,x)||b,F=!_&&b;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||F||_&&(q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(v,F);const K={...Yp(E,"layout"),onPlay:M,onComplete:R};(m.shouldReduceMotion||this.options.layoutRoot)&&(K.delay=0,K.type=!1),this.startAnimation(K)}else _||bx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,es(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(Tj),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&vx(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const v=this.path[m];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:f,layout:h}=this.options;if(f===void 0&&!h)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(_x);return}this.isUpdating||this.nodes.forEach(bj),this.isUpdating=!1,this.nodes.forEach(Sj),this.nodes.forEach(gj),this.nodes.forEach(mj),this.clearAllSnapshots();const f=ei.now();Nt.delta=_i(0,1e3/60,f-Nt.timestamp),Nt.timestamp=f,Nt.isProcessing=!0,kp.update.process(Nt),kp.preRender.process(Nt),kp.render.process(Nt),Nt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,jp.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(_j),this.sharedNodes.forEach(wj)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,nt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){nt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=mt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(f=!1),f){const h=r(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:h,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!o)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!cx(this.projectionDelta),h=this.getTransformTemplate(),g=h?h(this.latestValues,""):void 0,m=g!==this.prevTransformTemplateValue;c&&(f||Js(this.latestValues)||m)&&(o(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const f=this.measurePageBox();let h=this.removeElementScroll(f);return c&&(h=this.removeTransform(h)),Oj(h),{animationId:this.root.animationId,measuredBox:f,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:f}=this.options;if(!f)return mt();const h=f.measureViewportBox();if(!(((c=this.scroll)===null||c===void 0?void 0:c.wasRoot)||this.path.some(Rj))){const{scroll:m}=this.root;m&&(sa(h.x,m.offset.x),sa(h.y,m.offset.y))}return h}removeElementScroll(c){var f;const h=mt();if(On(h,c),!((f=this.scroll)===null||f===void 0)&&f.wasRoot)return h;for(let g=0;g<this.path.length;g++){const m=this.path[g],{scroll:v,options:_}=m;m!==this.root&&v&&_.layoutScroll&&(v.wasRoot&&On(h,c),sa(h.x,v.offset.x),sa(h.y,v.offset.y))}return h}applyTransform(c,f=!1){const h=mt();On(h,c);for(let g=0;g<this.path.length;g++){const m=this.path[g];!f&&m.options.layoutScroll&&m.scroll&&m!==m.root&&ra(h,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Js(m.latestValues)&&ra(h,m.latestValues)}return Js(this.latestValues)&&ra(h,this.latestValues),h}removeTransform(c){const f=mt();On(f,c);for(let h=0;h<this.path.length;h++){const g=this.path[h];if(!g.instance||!Js(g.latestValues))continue;Mg(g.latestValues)&&g.updateSnapshot();const m=mt(),v=g.measurePageBox();On(m,v),lx(f,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,m)}return Js(this.latestValues)&&lx(f,this.latestValues),f}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}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!==Nt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var f;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==h;if(!(c||g&&this.isSharedProjectionDirty||this.isProjectionDirty||!((f=this.parent)===null||f===void 0)&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:_}=this.options;if(!(!this.layout||!(v||_))){if(this.resolvedRelativeTargetAt=Nt.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mt(),this.relativeTargetOrigin=mt(),Jo(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),On(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=mt(),this.targetWithTransforms=mt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),L4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):On(this.target,this.layout.layoutBox),F1(this.target,this.targetDelta)):On(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mt(),this.relativeTargetOrigin=mt(),Jo(this.relativeTargetOrigin,this.target,b.target),On(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}el&&Ws.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Mg(this.parent.latestValues)||q1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var c;const f=this.getLead(),h=!!this.resumingFrom||this!==f;let g=!0;if((this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty)&&(g=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===Nt.timestamp&&(g=!1),g)return;const{layout:m,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||v))return;On(this.layoutCorrected,this.layout.layoutBox);const _=this.treeScale.x,b=this.treeScale.y;P4(this.layoutCorrected,this.treeScale,this.path,h),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=mt());const{target:x}=f;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(rx(this.prevProjectionDelta.x,this.projectionDelta.x),rx(this.prevProjectionDelta.y,this.projectionDelta.y)),Qo(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==_||this.treeScale.y!==b||!gx(this.projectionDelta.x,this.prevProjectionDelta.x)||!gx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x)),el&&Ws.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var f;if((f=this.options.visualElement)===null||f===void 0||f.scheduleRender(),c){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ia(),this.projectionDelta=ia(),this.projectionDeltaWithTransform=ia()}setAnimationOrigin(c,f=!1){const h=this.snapshot,g=h?h.latestValues:{},m={...this.latestValues},v=ia();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const _=mt(),b=h?h.source:void 0,x=this.layout?this.layout.source:void 0,E=b!==x,M=this.getStack(),R=!M||M.members.length<=1,q=!!(E&&!R&&this.options.crossfade===!0&&!this.path.some(Cj));this.animationProgress=0;let F;this.mixTargetDelta=K=>{const U=K/1e3;Sx(v.x,c.x,U),Sx(v.y,c.y,U),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jo(_,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Aj(this.relativeTarget,this.relativeTargetOrigin,_,U),F&&cj(this.relativeTarget,F)&&(this.isProjectionDirty=!1),F||(F=mt()),On(F,this.relativeTarget)),E&&(this.animationValues=m,sj(m,g,this.latestValues,U,q,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(es(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=nt.update(()=>{Oc.hasAnimatedSinceResize=!0,this.currentAnimation=J4(0,mx,{...c,onUpdate:f=>{this.mixTargetDelta(f),c.onUpdate&&c.onUpdate(f)},onComplete:()=>{c.onComplete&&c.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 c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(mx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:f,target:h,layout:g,latestValues:m}=c;if(!(!f||!h||!g)){if(this!==c&&this.layout&&g&&Ax(this.options.animationType,this.layout.layoutBox,g.layoutBox)){h=this.target||mt();const v=hn(this.layout.layoutBox.x);h.x.min=c.target.x.min,h.x.max=h.x.min+v;const _=hn(this.layout.layoutBox.y);h.y.min=c.target.y.min,h.y.max=h.y.min+_}On(f,h),ra(f,m),Qo(this.projectionDeltaWithTransform,this.layoutCorrected,f,m)}}registerSharedNode(c,f){this.sharedNodes.has(c)||this.sharedNodes.set(c,new fj),this.sharedNodes.get(c).add(f);const g=f.options.initialPromotionConfig;f.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(f):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:f}=this.options;return f?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:f}=this.options;return f?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:f,preserveFollowOpacity:h}={}){const g=this.getStack();g&&g.promote(this,h),c&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let f=!1;const{latestValues:h}=c;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(f=!0),!f)return;const g={};h.z&&Dg("z",c,g,this.animationValues);for(let m=0;m<Rg.length;m++)Dg(`rotate${Rg[m]}`,c,g,this.animationValues),Dg(`skew${Rg[m]}`,c,g,this.animationValues);c.render();for(const m in g)c.setStaticValue(m,g[m]),this.animationValues&&(this.animationValues[m]=g[m]);c.scheduleRender()}getProjectionStyles(c){var f,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return hj;const g={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,g.opacity="",g.pointerEvents=vc(c?.pointerEvents)||"",g.transform=m?m(this.latestValues,""):"none",g;const v=this.getLead();if(!this.projectionDelta||!this.layout||!v.target){const E={};return this.options.layoutId&&(E.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,E.pointerEvents=vc(c?.pointerEvents)||""),this.hasProjected&&!Js(this.latestValues)&&(E.transform=m?m({},""):"none",this.hasProjected=!1),E}const _=v.animationValues||v.latestValues;this.applyTransformsToTarget(),g.transform=dj(this.projectionDeltaWithTransform,this.treeScale,_),m&&(g.transform=m(_,g.transform));const{x:b,y:x}=this.projectionDelta;g.transformOrigin=`${b.origin*100}% ${x.origin*100}% 0`,v.animationValues?g.opacity=v===this?(h=(f=_.opacity)!==null&&f!==void 0?f:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:_.opacityExit:g.opacity=v===this?_.opacity!==void 0?_.opacity:"":_.opacityExit!==void 0?_.opacityExit:0;for(const E in _c){if(_[E]===void 0)continue;const{correct:M,applyTo:R}=_c[E],q=g.transform==="none"?_[E]:M(_[E],v);if(R){const F=R.length;for(let K=0;K<F;K++)g[R[K]]=q}else g[E]=q}return this.options.layoutId&&(g.pointerEvents=v===this?vc(c?.pointerEvents)||"":"none"),g}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var f;return(f=c.currentAnimation)===null||f===void 0?void 0:f.stop()}),this.root.nodes.forEach(_x),this.root.sharedNodes.clear()}}}function gj(t){t.updateLayout()}function mj(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=t.layout,{animationType:u}=t.options,c=n.source!==t.layout.source;u==="size"?Mn(v=>{const _=c?n.measuredBox[v]:n.layoutBox[v],b=hn(_);_.min=r[v].min,_.max=_.min+b}):Ax(u,n.layoutBox,r)&&Mn(v=>{const _=c?n.measuredBox[v]:n.layoutBox[v],b=hn(r[v]);_.max=_.min+b,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[v].max=t.relativeTarget[v].min+b)});const f=ia();Qo(f,r,n.layoutBox);const h=ia();c?Qo(h,t.applyTransform(o,!0),n.measuredBox):Qo(h,r,n.layoutBox);const g=!cx(f);let m=!1;if(!t.resumeFrom){const v=t.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:_,layout:b}=v;if(_&&b){const x=mt();Jo(x,n.layoutBox,_.layoutBox);const E=mt();Jo(E,r,b.layoutBox),hx(x,E)||(m=!0),v.options.layoutRoot&&(t.relativeTarget=E,t.relativeTargetOrigin=x,t.relativeParent=v)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:h,layoutDelta:f,hasLayoutChanged:g,hasRelativeTargetChanged:m})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function vj(t){el&&Ws.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function yj(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function _j(t){t.clearSnapshot()}function _x(t){t.clearMeasurements()}function bj(t){t.isLayoutDirty=!1}function Sj(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function bx(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Ej(t){t.resolveTargetDelta()}function xj(t){t.calcProjection()}function Tj(t){t.resetSkewAndRotation()}function wj(t){t.removeLeadSnapshot()}function Sx(t,e,n){t.translate=ft(e.translate,0,n),t.scale=ft(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ex(t,e,n,r){t.min=ft(e.min,n.min,r),t.max=ft(e.max,n.max,r)}function Aj(t,e,n,r){Ex(t.x,e.x,n.x,r),Ex(t.y,e.y,n.y,r)}function Cj(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Mj={duration:.45,ease:[.4,0,.1,1]},xx=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Tx=xx("applewebkit/")&&!xx("chrome/")?Math.round:dn;function wx(t){t.min=Tx(t.min),t.max=Tx(t.max)}function Oj(t){wx(t.x),wx(t.y)}function Ax(t,e,n){return t==="position"||t==="preserve-aspect"&&!k4(px(e),px(n),.2)}function Rj(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const Dj=yx({attachResizeListener:(t,e)=>Xo(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),kg={current:void 0},Cx=yx({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!kg.current){const t=new Dj({});t.mount(window),t.setOptions({layoutScroll:!0}),kg.current=t}return kg.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),kj={pan:{Feature:X4},drag:{Feature:Y4,ProjectionNode:Cx,MeasureLayout:J1}};function Lj(t,e,n){var r;if(t instanceof Element)return[t];if(typeof t=="string"){let o=document;const u=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(t);return u?Array.from(u):[]}return Array.from(t)}function Mx(t,e){const n=Lj(t),r=new AbortController,o={passive:!0,...e,signal:r.signal};return[n,o,()=>r.abort()]}function Ox(t){return e=>{e.pointerType==="touch"||T1()||t(e)}}function Nj(t,e,n={}){const[r,o,u]=Mx(t,n),c=Ox(f=>{const{target:h}=f,g=e(f);if(typeof g!="function"||!h)return;const m=Ox(v=>{g(v),h.removeEventListener("pointerleave",m)});h.addEventListener("pointerleave",m,o)});return r.forEach(f=>{f.addEventListener("pointerenter",c,o)}),u}function Rx(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,u=r[o];u&&nt.postRender(()=>u(e,Ko(e)))}class zj extends is{mount(){const{current:e}=this.node;e&&(this.unmount=Nj(e,n=>(Rx(this.node,n,"Start"),r=>Rx(this.node,r,"End"))))}unmount(){}}class jj extends is{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{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=Yo(Xo(this.node.current,"focus",()=>this.onFocus()),Xo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Dx=(t,e)=>e?t===e?!0:Dx(t,e.parentElement):!1,Uj=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Bj(t){return Uj.has(t.tagName)||t.tabIndex!==-1}const tl=new WeakSet;function kx(t){return e=>{e.key==="Enter"&&t(e)}}function Lg(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Vj=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=kx(()=>{if(tl.has(n))return;Lg(n,"down");const o=kx(()=>{Lg(n,"up")}),u=()=>Lg(n,"cancel");n.addEventListener("keyup",o,e),n.addEventListener("blur",u,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function Lx(t){return xg(t)&&!T1()}function Ij(t,e,n={}){const[r,o,u]=Mx(t,n),c=f=>{const h=f.currentTarget;if(!Lx(f)||tl.has(h))return;tl.add(h);const g=e(f),m=(b,x)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",_),!(!Lx(b)||!tl.has(h))&&(tl.delete(h),typeof g=="function"&&g(b,{success:x}))},v=b=>{m(b,n.useGlobalTarget||Dx(h,b.target))},_=b=>{m(b,!1)};window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",_,o)};return r.forEach(f=>{!Bj(f)&&f.getAttribute("tabindex")===null&&(f.tabIndex=0),(n.useGlobalTarget?window:f).addEventListener("pointerdown",c,o),f.addEventListener("focus",g=>Vj(g,o),o)}),u}function Nx(t,e,n){const{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),u=r[o];u&&nt.postRender(()=>u(e,Ko(e)))}class qj extends is{mount(){const{current:e}=this.node;e&&(this.unmount=Ij(e,n=>(Nx(this.node,n,"Start"),(r,{success:o})=>Nx(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ng=new WeakMap,zg=new WeakMap,Pj=t=>{const e=Ng.get(t.target);e&&e(t)},Hj=t=>{t.forEach(Pj)};function Fj({root:t,...e}){const n=t||document;zg.has(n)||zg.set(n,{});const r=zg.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(Hj,{root:t,...e})),r[o]}function $j(t,e,n){const r=Fj(e);return Ng.set(t,n),r.observe(t),()=>{Ng.delete(t),r.unobserve(t)}}const Gj={some:0,all:1};class Yj extends is{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:u}=e,c={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Gj[o]},f=h=>{const{isIntersecting:g}=h;if(this.isInView===g||(this.isInView=g,u&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:m,onViewportLeave:v}=this.node.getProps(),_=g?m:v;_&&_(h)};return $j(this.node.current,c,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Xj(e,n))&&this.startObserver()}unmount(){}}function Xj({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Kj={inView:{Feature:Yj},tap:{Feature:qj},focus:{Feature:jj},hover:{Feature:zj}},Zj={layout:{ProjectionNode:Cx,MeasureLayout:J1}},jg={current:null},zx={current:!1};function Qj(){if(zx.current=!0,!!Dp)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>jg.current=t.matches;t.addListener(e),e()}else jg.current=!1}const Jj=[...i1,Ht,ns],Wj=t=>Jj.find(n1(t)),jx=new WeakMap;function eU(t,e,n){for(const r in e){const o=e[r],u=n[r];if(Pt(o))t.addValue(r,o);else if(Pt(u))t.addValue(r,Po(o,{owner:t}));else if(u!==o)if(t.hasValue(r)){const c=t.getValue(r);c.liveStyle===!0?c.jump(o):c.hasAnimated||c.set(o)}else{const c=t.getStaticValue(r);t.addValue(r,Po(c!==void 0?c:o,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Ux=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tU{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:u,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=dg,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 b=ei.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,nt.render(this.render,!1,!0))};const{latestValues:h,renderState:g,onUpdate:m}=c;this.onUpdate=m,this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=g,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=f,this.blockInitialAnimation=!!u,this.isControllingVariants=mc(n),this.isVariantNode=iE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:v,..._}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in _){const x=_[b];h[b]!==void 0&&Pt(x)&&x.set(h[b],!1)}}mount(e){this.current=e,jx.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((n,r)=>this.bindToMotionValue(r,n)),zx.current||Qj(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:jg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){jx.delete(this.current),this.projection&&this.projection.unmount(),es(this.notifyUpdate),es(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Xs.has(e),o=n.on("change",f=>{this.latestValues[e]=f,this.props.onUpdate&&nt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),u=n.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{o(),u(),c&&c(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Zr){const n=Zr[e];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[e]&&o&&r(this.props)&&(this.features[e]=new o(this)),this.features[e]){const u=this.features[e];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):mt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ux.length;r++){const o=Ux[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const u="on"+o,c=e[u];c&&(this.propEventSubscriptions[o]=this.on(o,c))}this.prevMotionValues=eU(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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 n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Po(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let o=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return o!=null&&(typeof o=="string"&&(e1(o)||qE(o))?o=parseFloat(o):!Wj(o)&&ns.test(n)&&(o=XE(e,n)),this.setBaseTarget(e,Pt(o)?o.get():o)),Pt(o)?o.get():o}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const c=Bp(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);c&&(o=c[e])}if(r&&o!==void 0)return o;const u=this.getBaseTargetFromProps(this.props,e);return u!==void 0&&!Pt(u)?u:this.initialValues[e]!==void 0&&o===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Zp),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Bx extends tU{constructor(){super(...arguments),this.KeyframeResolver=r1}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Pt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function nU(t){return window.getComputedStyle(t)}class iU extends Bx{constructor(){super(...arguments),this.type="html",this.renderInstance=vE}readValueFromInstance(e,n){if(Xs.has(n)){const r=ug(n);return r&&r.default||0}else{const r=nU(e),o=(fE(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return X1(e,n)}build(e,n,r){Pp(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return Gp(e,n,r)}}class sU extends Bx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=mt}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Xs.has(n)){const r=ug(n);return r&&r.default||0}return n=yE.has(n)?n:zp(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return SE(e,n,r)}build(e,n,r){Hp(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,o){_E(e,n,r,o)}mount(e){this.isSVGTag=$p(e.tagName),super.mount(e)}}const rU=(t,e)=>Up(t)?new sU(e):new iU(e,{allowProjection:t!==Y.Fragment}),aU=kN({...E4,...Kj,...kj,...Zj},rU),oU=XL(aU);function Ug(...t){return ML(US(t))}const lU=Qk("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--radius)] text-sm font-medium transition-[background,color,opacity] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary-9)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg)] disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-[var(--color-primary-9)] text-[var(--color-primary-fg)] hover:bg-[var(--color-primary-10)]",ghost:"bg-transparent text-[var(--color-fg)] hover:bg-[var(--color-bg-subtle)]",outline:"border border-[var(--color-border)] bg-transparent text-[var(--color-fg)] hover:bg-[var(--color-bg-subtle)]",danger:"bg-[var(--color-danger-9)] text-white hover:bg-[var(--color-danger-10)]"},size:{default:"h-11 px-4",sm:"h-9 px-3",icon:"h-11 w-11"}},defaultVariants:{variant:"default",size:"default"}}),Vx=Y.forwardRef(function({className:t,variant:e,size:n,asChild:r=!1,type:o="button",...u},c){return ve.jsx(r?$k:"button",{ref:c,type:r?void 0:o,className:Ug(lU({variant:e,size:n}),t),...u})}),uU=Y.forwardRef(function({className:t,type:e="text",...n},r){return ve.jsx("input",{ref:r,type:e,className:Ug("flex h-11 w-full rounded-[var(--radius)] border border-[var(--color-border)] bg-[var(--color-bg)] px-3 py-2 text-base text-[var(--color-fg)] placeholder:text-[var(--color-fg-muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary-9)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg)] disabled:cursor-not-allowed disabled:opacity-50",t),...n})});function cU({onAdd:t,disabled:e=!1}){const{_:n}=my(),[r,o]=Y.useState(""),u=r.trim(),c=!e&&u.length>0;function f(h){h.preventDefault(),c&&(t(u),o(""))}return ve.jsxs("form",{onSubmit:f,className:"flex items-center gap-2",children:[ve.jsx(uU,{"aria-label":n({id:"qmt9HO"}),value:r,onChange:h=>o(h.target.value),disabled:e,placeholder:n({id:"hyVJ2f"})}),ve.jsx(Vx,{type:"submit",disabled:!c,children:ve.jsx(ad,{id:"m16xKo"})})]})}const Ix=Dk(),Rc=qi("alistigo:provider"),qx=Y.createContext(null),Px=Y.createContext(null),Hx=Y.createContext(null);function fU({service:t,listId:e,initialDocument:n,children:r}){const[o,u]=Y.useState(n),[c,f]=Y.useState(!1),h=Y.useMemo(()=>({doc:o,setDoc:u}),[o]),g=Y.useMemo(()=>({service:t,listId:e}),[t,e]),m=Y.useMemo(()=>({isPending:c,setIsPending:f}),[c]);return ve.jsx(qx.Provider,{value:h,children:ve.jsx(Px.Provider,{value:g,children:ve.jsx(Hx.Provider,{value:m,children:r})})})}function Fx(){const t=Y.useContext(qx);if(t==null)throw new Error("Must be inside <AlistigoProvider>.");return t}function dU(){const t=Y.useContext(Px);if(t==null)throw new Error("Must be inside <AlistigoProvider>.");return t}function $x(){const t=Y.useContext(Hx);if(t==null)throw new Error("Must be inside <AlistigoProvider>.");return t}function hU(){return Fx().doc}function pU(){return $x().isPending}function gU(){const{setDoc:t}=Fx(),{service:e,listId:n}=dU(),{setIsPending:r}=$x(),o=Y.useRef(t);return o.current=t,Y.useMemo(()=>({addElement:u=>{r(!0),e.addListElement(n,u,Ix).then(c=>{c.ok?(Rc.debug("element added"),o.current(c.value)):Rc.error({error:c.error},"addElement failed")}).finally(()=>r(!1))},deleteElement:u=>{r(!0),Promise.resolve().then(()=>{const c=xp(u);return e.deleteListElement(n,c,Ix)}).then(c=>{c.ok?(Rc.debug({elementId:u},"element deleted"),o.current(c.value)):Rc.error({error:c.error,elementId:u},"deleteElement failed")}).finally(()=>r(!1))}}),[e,n,r])}function mU({children:t,className:e}){const n=pU();return ve.jsxs("div",{"data-testid":"alistigo-app",className:Ug("mx-auto flex min-h-dvh w-full max-w-md flex-col gap-4 bg-[var(--color-bg)] px-4 py-6 text-[var(--color-fg)]",e),children:[ve.jsx("span",{"aria-hidden":"true","data-testid":"action-pending","data-state":n?"pending":"idle",className:"sr-only"}),t]})}function vU({message:t}){return ve.jsxs("div",{"data-testid":"empty-state",className:"flex flex-col items-center gap-2 rounded-[var(--radius)] border border-dashed border-[var(--color-border)] px-4 py-12 text-center text-[var(--color-fg-muted)]",children:[ve.jsx(kL,{"aria-hidden":"true",className:"size-10"}),ve.jsx("p",{className:"text-sm",children:t??ve.jsx(ad,{id:"WH8Wi7"})})]})}function yU({listItem:t,onDelete:e}){const{_:n}=my(),r=BL(),o=t["alistigo:listElementId"],u=t.name;return ve.jsxs(oU.li,{layout:!0,initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,x:-16},transition:{duration:.2,ease:"easeOut"},"data-deleting":r?void 0:"true",className:"flex items-center justify-between gap-2 rounded-[var(--radius)] border border-[var(--color-border)] bg-[var(--color-bg)] px-3 py-2 text-[var(--color-fg)]",children:[ve.jsx("span",{className:"flex-1 truncate",children:u}),ve.jsx(Vx,{variant:"ghost",size:"icon","aria-label":n({id:"6ZGXNs",values:{text:u}}),onClick:()=>e(o,t.position),children:ve.jsx(LL,{"aria-hidden":"true",className:"size-5"})})]})}function _U({items:t,onDelete:e}){return t.length===0?ve.jsx(vU,{}):ve.jsx("ul",{className:"flex flex-col gap-2",children:ve.jsx(IL,{initial:!1,children:t.map(n=>ve.jsx(yU,{listItem:n,onDelete:e},n["alistigo:listElementId"]))})})}const er=qi("alistigo:local-storage"),nl=t=>`alistigo:list:${t.toString()}`;class Gx{async load(e){try{const n=localStorage.getItem(nl(e));if(n==null)return;er.debug({key:nl(e)},"loading from localStorage");const r=JSON.parse(n);return oc.deserialize(r)}catch(n){er.error({err:n},"failed to load from localStorage");return}}async save(e){try{const n=await this.loadDocument(e.id),r=oc.serialize(e,n);localStorage.setItem(nl(e.id),JSON.stringify(r)),er.debug({key:nl(e.id)},"saved to localStorage")}catch(n){er.error({err:n},"failed to save to localStorage")}}async loadDocument(e){try{const n=localStorage.getItem(nl(e));return n==null?void 0:JSON.parse(n)}catch(n){er.error({err:n},"failed to load document from localStorage");return}}async seedIfEmpty(e){const n=`alistigo:list:${e["alistigo:listId"]}`;try{localStorage.getItem(n)==null&&(localStorage.setItem(n,JSON.stringify(e)),er.info({key:n},"document seeded (first run)"))}catch(r){er.error({err:r},"failed to seed localStorage")}}}function bU(){const t=hU(),e=gU();return ve.jsxs(ve.Fragment,{children:[ve.jsx("h1",{className:"text-xl font-semibold tracking-tight",children:t.name??ve.jsx(ad,{id:"wja8aL"})}),ve.jsx(cU,{onAdd:e.addElement}),ve.jsx(_U,{items:t.itemListElement,onDelete:e.deleteElement})]})}const Bg=qi("alistigo:artifact-list");function SU({initialDocument:t}){const e=Y.useMemo(()=>{const c=Bk()?"claude-artifact":"localStorage";return Bg.info({ctx:c},"storage context detected"),c==="claude-artifact"?new Uk:new Gx},[]),n=Y.useMemo(()=>new Ik(e),[e]),r=Y.useMemo(()=>Tp(t["alistigo:listId"]),[t]),[o,u]=Y.useState(void 0);return Y.useEffect(()=>{(e instanceof Gx?e.seedIfEmpty(t):Promise.resolve()).then(()=>n.loadDocument(r)).then(f=>{Bg.info({listId:r.toString()},"app mounted"),u(f??t)}).catch(f=>{Bg.error({err:f},"failed to load document")})},[e,t,n,r]),o?ve.jsx(fU,{service:n,listId:r,initialDocument:o,children:ve.jsx(mU,{children:ve.jsx(bU,{})})}):null}const EU=JSON.parse('{"6ZGXNs":["Delete \\"",["text"],"\\""],"WH8Wi7":["No elements yet."],"hyVJ2f":["Add an element…"],"m16xKo":["Add"],"qmt9HO":["Add element"],"wja8aL":["Untitled"]}'),Dc="en",xU=new Set(["ar","fa","he","ur"]);let Yx=!1;function TU(){if(Yx)return;Yx=!0,nd.load(Dc,EU),nd.activate(Dc);const t=document.documentElement;t.setAttribute("lang",Dc),t.setAttribute("dir",xU.has(Dc)?"rtl":"ltr")}function yV(t){}function wU(t){return typeof t=="string"?document.querySelector(t):t}function AU(t){if(t!==void 0){const n=document.querySelector(t);if(n instanceof HTMLElement)return n;console.error(`[Alistigo] Container "${t}" not found, appending default`)}const e=document.createElement("div");return document.body.appendChild(e),e}function CU(){return{"@context":{"@vocab":"https://schema.org/",alistigo:"https://alistigo.ai/vocab/"},"@type":"ItemList","alistigo:listId":"lst_01jx0000000000000000000000","alistigo:schemaVersion":"1.0.0",name:"My List",itemListElement:[],"alistigo:listEventLog":[]}}const Xx=qi("alistigo:artifact-list"),Kx="en",Vg=new Map;function MU(){return typeof window<"u"&&"storage"in window?"window.storage":typeof localStorage<"u"?"localStorage":"none"}function OU(t,e){return typeof t=="string"?t:`#${e.id||"(element)"}`}function RU(t){const e=Vg.get(t);if(e!==void 0)return e;const n=WR.createRoot(t);return Vg.set(t,n),n}function DU(t,e){const n=e.document??CU();RU(t).render(Y.createElement(Y.StrictMode,null,Y.createElement(S5,{i18n:nd},Y.createElement(GR,{fallback:Y.createElement(Y.Fragment,null)},Y.createElement(SU,{key:n["alistigo:listId"],initialDocument:n})))))}function Zx(t,e={}){if(document.readyState==="loading"){console.info("[Alistigo] mount() called before DOM is ready — deferring to DOMContentLoaded"),document.addEventListener("DOMContentLoaded",()=>Zx(t,e),{once:!0});return}const n=wU(t);if(n==null)throw Xx.error({selector:String(t)},"container not found"),new Error(`Alistigo.mount: container not found: ${String(t)}`);const r=!Vg.has(n);OU(t,n),Xx.info({selector:String(t)},"mount called"),TU(),dk(Kx,Jf.version),DU(n,e),r&&hk({locale:Kx,storageType:MU(),version:Jf.version})}let Ig;function kU(){const t=document.getElementById("alistigo-document");if(t?.textContent?.trim())try{return JSON.parse(t.textContent)}catch{console.error("[Alistigo] Failed to parse #alistigo-document");return}}function LU(){const t=document.getElementById("alistigo-config");if(t===null)return{};try{return JSON.parse(t.textContent??"{}")}catch{return console.error("[Alistigo] Failed to parse #alistigo-config:",t.textContent),{}}}function Qx(){const t=LU();Ig||(Ig=AU(t.container));const e=kU()??t.document,{container:n,document:r,...o}=t,u=e!==void 0?{...o,document:e}:o;Zx(Ig,u)}const Jx=qi("alistigo:monitoring");let Wx=!1;function NU(t){const e="https://e92925b34700c5718c6543f490c177ef@o4504027306000384.ingest.us.sentry.io/4511535019720704";if(!Wx)try{qR({dsn:e,release:`alistigo-artifact-list@${t}`,environment:"production",tracesSampleRate:0}),Wx=!0,Jx.info({release:`alistigo-artifact-list@${t}`},"Sentry initialized")}catch(n){Jx.error({err:n},"Sentry init failed")}}n5("error"),NU(Jf.version),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Qx):Qx()}));
|
|
42
|
+
//# sourceMappingURL=index.umd.js.map
|