vendor: 11,714 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./createServer-DhnTDN1o-BYpA31eJ.js","./circular-CQhXdaDf-BGwvH2Ro.js","./index-B4uNxEQM-BYk_9lyM.js","./OperationList-BLs6s-B5-q3tKNpPV.js","./SchemaView-4O1vTlqQ-X-AX1EVW.js","./ClaudeLogo-Bj5xHYE8-ea5k12mm.js","./Pagination-BPbCGb91-DvNywXSo.js","./Card-B-A18nrb.js","./SchemaList-CCZQsdBh-BkPYKIAO.js","./Toc-C5p7YHhw-DcI44-ct.js","./MdxPage-DQa0PJ-t-B_ZxfcEd.js","./best-practices-D-wvrZRV.js","./list-building-sFTs5N8T.js","./getting-started-PhOlj_qs.js","./engagement-optimization-C6N8SIE5.js","./email-design-Cxg-Ne-7.js","./deliverability-B6l7eowN.js","./compliance-legal-DrFrl--F.js","./advanced-strategies-XoGg44OB.js","./graphql-ChdNCCLP.js","./javascript-wDzz0qaB.js","./typescript-BPQ3VLAy.js","./jsx-g9-lgVsj.js","./tsx-COt5Ahok.js","./php-BFaTaxCn.js","./html-GMplVEZG.js","./css-DPfMkruS.js","./xml-sdJ4AIDG.js","./java-CylS5w8V.js","./sql-DZS_n2p1.js","./json-Cp-IABpG.js","./ruby-B7fw6oWC.js","./cpp-I1joW8b8.js","./c-BIGW1oBm.js","./shellscript-Yzrsuije.js","./yaml-Buea-lGh.js","./elixir-CDX3lj18.js"])))=>i.map(i=>d[i]); 2function oq(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function QM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a0={exports:{}},Sf={};/** 3 * @license React 4 * react-jsx-runtime.production.js 5 * 6 * Copyright (c) Meta Platforms, Inc. and affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var bO;function iq(){if(bO)return Sf;bO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var i=null;if(o!==void 0&&(i=""+o),a.key!==void 0&&(i=""+a.key),"key"in a){o={};for(var l in a)l!=="key"&&(o[l]=a[l])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:i,ref:a!==void 0?a:null,props:o}}return Sf.Fragment=t,Sf.jsx=n,Sf.jsxs=n,Sf}var vO;function sq(){return vO||(vO=1,a0.exports=iq()),a0.exports}var M=sq();const lq=[{type:"category",label:"Documentation",icon:"book-text",items:[{type:"category",label:"Getting Started",icon:"sparkles",items:["/docs/first-steps"]},{type:"category",label:"Account Settings",icon:"settings-2",items:["/docs/account-settings/adding-and-editing-users","/docs/account-settings/updating-my-company-profile","/docs/account-settings/finding-your-client-id","/docs/account-settings/setting-your-timezone","/docs/account-settings/changing-your-language","/docs/account-settings/multi-factor-authentication-mfa","/docs/account-settings/cant-sign-in","/docs/account-settings/reset-email-not-arriving","/docs/account-settings/configuring-your-brand","/docs/account-settings/exports","/docs/account-settings/canceling-your-account","/docs/account-settings/personal-access-tokens"]},{type:"category",label:"Senders",collapsible:!0,icon:"mail",items:["docs/senders/getting-started-authentication-senders","docs/senders/managing-senders","docs/senders/authenticating-domains","docs/senders/tracking-and-bounce-domains","docs/senders/adding-dns-records","docs/senders/understanding-spf-dkim-dmarc"]},{type:"category",label:"Campaigns Creation",collapsible:!0,icon:"mail",items:["docs/campaign-creation/creating-campaigns","docs/campaign-creation/duplicating-campaigns","docs/campaign-creation/deleting-a-campaign-draft","docs/campaign-creation/using-the-email-designer","docs/campaign-creation/creating-mobile-and-desktop-campaign-versions","docs/campaign-creation/adding-a-video-to-a-campaign","docs/campaign-creation/adding-pdf-attachments","docs/campaign-creation/adding-a-calendar-link-to-a-campaign","docs/campaign-creation/creating-effective-preheaders","docs/campaign-creation/integrating-survey-forms","docs/campaign-creation/adding-unsubscribe-links","docs/campaign-creation/adding-your-physical-address","docs/campaign-creation/testing-your-campaign","docs/campaign-creation/creating-ab-tests-campaigns","docs/campaign-creation/uploading-to-the-file-manager","docs/campaign-creation/adding-rss-feeds","docs/campaign-creation/create-utm-tracking-links"]},{type:"category",label:"Personalization",collapsible:!0,icon:"user",items:["docs/personalization/using-dynamic-content","docs/personalization/adding-merge-tags-to-a-campaign","docs/personalization/display-conditions","docs/personalization/using-merge-tags-and-fallbacks","docs/personalization/adding-a-date-merge-tag"]},{type:"category",label:"AI Assistant",collapsible:!0,icon:"bot",items:["docs/ai/creating-content-with-ai","docs/ai/creating-subject-lines-with-ai","docs/ai/creating-email-preheaders-with-ai"]},{type:"category",label:"Automations",collapsible:!0,icon:"workflow",items:["docs/automations/understanding-email-automation","docs/automations/creating-an-automated-welcome-email","docs/automations/creating-an-automation-with-branching-conditions","docs/automations/creating-a-looping-automation","docs/automations/tracking-customer-journeys-with-custom-attributes"]},{type:"category",label:"Audience Building",collapsible:!0,icon:"book-plus",items:["docs/audience-building/working-with-forms","docs/audience-building/configuring-recaptcha","docs/audience-building/creating-landing-pages","docs/audience-building/creating-popups","docs/audience-building/configuring-opt-in-emails","docs/audience-building/subscriber-preference-center"]},{type:"category",label:"Audience",collapsible:!0,icon:"contact",items:["docs/audience/managing-contact-lists","docs/audience/importing-contacts-into-your-lists","docs/audience/updating-contact-information","docs/audience/removing-a-contact","docs/audience/adding-attributes-to-your-list","docs/audience/creating-dynamic-segments","docs/audience/segmenting-by-engagement","docs/audience/creating-a-confirmation-campaign","docs/audience/using-tags-to-track-engagement","docs/audience/contact-status","docs/audience/suppression-lists","docs/audience/exporting-a-contact-list","docs/audience/deleting-lists","docs/audience-building/default-sender-address-and-language","docs/audience-building/subscription-confirmation-email"]},{type:"category",label:"Analytics",collapsible:!0,icon:"chart-spline",items:["docs/analytics/understanding-campaign-reports","docs/analytics/tracking-campaign-performance","docs/analytics/email-click-rates","docs/analytics/open-rates","docs/analytics/email-bounces","docs/analytics/tracking-click-rate-activity"]},{type:"category",label:"Email Templates",collapsible:!0,icon:"layout-template",items:["docs/email-templates/working-with-smart-templates","docs/email-templates/saving-campaigns-as-templates","docs/email-templates/managing-email-templates","docs/email-templates/deleting-a-template","docs/email-templates/importing-your-html-code"]},{type:"category",label:"Integrations",collapsible:!0,icon:"layout-template",items:["docs/integrations/connecting-cakemail-with-zapier"]},{type:"category",label:"Email API",collapsible:!0,icon:"code",items:["docs/email-api/getting-started-with-the-email-api"]},{type:"category",label:"Partners",collapsible:!0,icon:"layout-template",items:["docs/partners/customizing-your-default-reseller-domain","docs/partners/system-email-customization","docs/partners/client-template-sharing","docs/partners/managing-client-features"]},{type:"category",label:"Delivery Troubleshooting",collapsible:!0,icon:"shield-ellipsis",items:["docs/delivery-troubleshooting/email-deliverability","docs/delivery-troubleshooting/gmail-yahoo-sender-requirements","docs/delivery-troubleshooting/test-email-links-not-working","docs/delivery-troubleshooting/role-based-emails","docs/delivery-troubleshooting/missing-emails","docs/delivery-troubleshooting/under-review-warnings","docs/delivery-troubleshooting/spam-and-promotions-tab","docs/delivery-troubleshooting/email-opens","docs/delivery-troubleshooting/image-display-issues","docs/delivery-troubleshooting/account-suspensions","docs/delivery-troubleshooting/delivery-delays","docs/delivery-troubleshooting/domain-blacklisting","docs/delivery-troubleshooting/feedback-loops","docs/delivery-troubleshooting/email-bounces","docs/delivery-troubleshooting/sender-reputation","docs/delivery-troubleshooting/preventing-draft-loss"]},{type:"category",label:"Billing",collapsible:!0,icon:"credit-card",items:["docs/billing/choosing-your-plan","docs/billing/protecting-your-information","docs/billing/managing-your-billing"]}]},{type:"category",label:"Best Practices",icon:"shield-check",items:[{type:"doc",icon:"shield-check",label:"Best Practices Overview",file:"/best-practices"},{type:"category",label:"Getting Started",icon:"sparkles",link:"best-practices/getting-started",items:["best-practices/getting-started/email-marketing-fundamentals-a-beginners-guide","best-practices/getting-started/benefits-of-using-an-email-marketing-provider","best-practices/getting-started/creating-your-first-email-template-a-beginners-guide","best-practices/getting-started/glossary-of-email-marketing-terms"]},{type:"category",label:"List Building",icon:"book-user",link:"best-practices/list-building",items:["best-practices/list-building/building-a-quality-email-list-best-practices","best-practices/list-building/how-to-build-your-email-list-the-right-way","best-practices/list-building/email-list-growth-strategies-to-attract-new-subscribers","best-practices/list-building/list-hygiene-maintaining-a-healthy-email-database","best-practices/list-building/double-opt-in-how-to-build-higher-quality-lists","best-practices/list-building/why-purchased-email-lists-hurt-your-business"]},{type:"category",label:"Email Design",icon:"wand-sparkles",link:"/best-practices/email-design",items:["best-practices/email-design/email-design-checklist","best-practices/email-design/email-design-balancing-text-and-images-for-results","best-practices/email-design/why-image-only-emails-hurt-deliverability-and-engagement"]},{type:"category",label:"Deliverability",icon:"shield-check",link:"/best-practices/deliverability",items:["best-practices/deliverability/email-deliverability-optimization-complete-guide","best-practices/deliverability/choosing-the-right-sender-email-address","best-practices/deliverability/avoiding-noreply-email-addresses","best-practices/deliverability/why-you-should-use-your-own-domain-for-sending","best-practices/deliverability/how-to-avoid-spam-traps-and-protect-your-reputation","best-practices/deliverability/how-to-reduce-spam-complaints-prevention-strategies","best-practices/deliverability/dedicated-ip-addresses-when-and-why-you-need-one"]},{type:"category",label:"Engagement Optimization",icon:"heart",link:"/best-practices/engagement-optimization",items:["best-practices/engagement-optimization/email-subject-line-best-practices","best-practices/engagement-optimization/how-to-improve-email-open-rates-expert-tips","best-practices/engagement-optimization/how-to-increase-email-engagement-proven-strategies","best-practices/engagement-optimization/optimal-send-times-and-frequency-maximize-engagement","best-practices/engagement-optimization/re-engagement-campaigns-win-back-inactive-subscribers","best-practices/engagement-optimization/email-marketing-benchmarks-what-are-good-open-rates"]},{type:"category",label:"Compliance & Legal",icon:"wand-sparkles",link:"/best-practices/compliance-legal",items:["best-practices/compliance-legal/global-email-compliance-understanding-anti-spam-laws","best-practices/compliance-legal/can-spam-compliance-essential-requirements","best-practices/compliance-legal/casl-compliance-canad
10as-anti-spam-law-explained","best-practices/compliance-legal/gdpr-and-email-marketing-what-you-need-to-know","best-practices/compliance-legal/required-email-content-for-legal-compliance","best-practices/compliance-legal/permission-based-email-marketing-why-it-matters","best-practices/compliance-legal/email-permission-legal-requirements-and-best-practices","best-practices/compliance-legal/why-you-should-never-sell-your-email-list"]},{type:"category",label:"Advanced Strategies",icon:"wand-sparkles",link:"/best-practices/advanced-strategies",items:["best-practices/advanced-strategies/email-content-strategy-planning-successful-campaigns","best-practices/advanced-strategies/sending-email-campaigns-tips-and-recommendations","best-practices/advanced-strategies/email-sender-reputation-how-to-build-and-maintain","best-practices/advanced-strategies/how-to-change-your-sender-email-address"]}]},{type:"category",label:"Developer Guides",icon:"book",items:[{type:"category",label:"Cakemail API",icon:"book",items:["guides/getting-started-ng-api","guides/managing-your-contacts","guides/sending-your-first-campaign","guides/managing-your-users","guides/using-templates","guides/automating-your-emails"]},{type:"category",label:"Webhooks",icon:"webhook",items:["guides/using-webhooks","guides/webhook-event-catalog","guides/webhook-compliance-events"]},{type:"category",label:"Email API",icon:"mail",items:["guides/getting-started-email-api","guides/sending-emails-rest-api","guides/sending-emails-smtp","guides/email-api-reference"]},{type:"category",label:"Partner API",icon:"handshake",items:["guides/working-as-a-partner","guides/login-to-cakemail-next-gen-from-inside-your-app"]},{type:"category",label:"API Clients",icon:"code",items:["guides/next-gen-api-v10A"]},{type:"category",label:"Classic API",icon:"code",items:["guides/classic-api-compatibility"]}]},{type:"category",label:"API Reference",icon:"code",collapsed:!0,items:[{type:"link",to:"/api",label:"API Reference"}]},{type:"category",label:"Resources and Support",icon:"life-buoy",link:"resources-support/changelog/next-gen-api-v123",items:[{type:"category",label:"Support Resources",icon:"life-buoy",collapsed:!1,items:[{type:"link",icon:"book",label:"Contact Support",to:"https://www.cakemail.com/contact-us"},{type:"link",icon:"book",label:"Status Page",to:"https://status.cakemail.com/"},{type:"link",icon:"book",label:"Product Release Notes",to:"https://www.cakemail.com/releases"}]},{type:"category",label:"API Changelog",icon:"scroll-text",items:["resources-support/changelog/next-gen-api-v123","resources-support/changelog/next-gen-api-v122","resources-support/changelog/next-gen-api-v119","resources-support/changelog/next-gen-api-v118","resources-support/changelog/next-gen-api-v117","resources-support/changelog/next-gen-api-v115","resources-support/changelog/next-gen-api-v114","resources-support/changelog/next-gen-api-v113","resources-support/changelog/next-gen-api-v112","resources-support/changelog/next-gen-api-v111","resources-support/changelog/next-gen-api-v110","resources-support/changelog/next-gen-api-v19","resources-support/changelog/next-gen-api-v18","resources-support/changelog/next-gen-api-v17","resources-support/changelog/next-gen-api-v16","resources-support/changelog/next-gen-api-v15","resources-support/changelog/next-gen-api-v14","resources-support/changelog/next-gen-api-v13","resources-support/changelog/next-gen-api-v12","resources-support/changelog/next-gen-api-v11","resources-support/changelog/next-gen-api-v10"]},{type:"category",label:"Partner API",icon:"handshake",items:["guides/working-as-a-partner","guides/login-to-cakemail-next-gen-from-inside-your-app"]},{type:"category",label:"API Clients",icon:"code",items:["guides/next-gen-api-v10A"]},{type:"category",label:"Classic API",icon:"code",items:["guides/classic-api-compatibility"]}]}],cq={basePath:"/en",canonicalUrlOrigin:"https://docs.cakemail.com",defaults:{apis:{expandAllTags:!1}}},uq={title:"Help Center | Cakemail",logo:{src:{light:"/logo-light.svg",dark:"/logo-dark.svg"},alt:"Cakemail",width:"130px"},showPoweredBy:!1},dq={title:"%s | Cakemail Help Center",description:"Cakemail Help Center",logo:"https://docs.cakemail.com/en/logo-light.svg",favicon:"/en/favicon.ico"};var o0={exports:{}},vt={};/** 11 * @license React 12 * react.production.js 13 * 14 * Copyright (c) Meta Platforms, Inc. and affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var _O;function fq(){if(_O)return vt;_O=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),g=Symbol.iterator;function y(V){return V===null||typeof V!="object"?null:(V=g&&V[g]||V["@@iterator"],typeof V=="function"?V:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function S(V,G,L){this.props=V,this.context=G,this.refs=C,this.updater=L||v}S.prototype.isReactComponent={},S.prototype.setState=function(V,G){if(typeof V!="object"&&typeof V!="function"&&V!=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,V,G,"setState")},S.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function A(){}A.prototype=S.prototype;function k(V,G,L){this.props=V,this.context=G,this.refs=C,this.updater=L||v}var N=k.prototype=new A;N.constructor=k,x(N,S.prototype),N.isPureReactComponent=!0;var O=Array.isArray;function I(){}var D={H:null,A:null,T:null,S:null},U=Object.prototype.hasOwnProperty;function J(V,G,L){var de=L.ref;return{$$typeof:e,type:V,key:G,ref:de!==void 0?de:null,props:L}}function P(V,G){return J(V.type,G,V.props)}function X(V){return typeof V=="object"&&V!==null&&V.$$typeof===e}function K(V){var G={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(L){return G[L]})}var Q=/\/+/g;function ne(V,G){return typeof V=="object"&&V!==null&&V.key!=null?K(""+V.key):G.toString(36)}function ae(V){switch(V.status){case"fulfilled":return V.value;case"rejected":throw V.reason;default:switch(typeof V.status=="string"?V.then(I,I):(V.status="pending",V.then(function(G){V.status==="pending"&&(V.status="fulfilled",V.value=G)},function(G){V.status==="pending"&&(V.status="rejected",V.reason=G)})),V.status){case"fulfilled":return V.value;case"rejected":throw V.reason}}throw V}function H(V,G,L,de,_e){var Ce=typeof V;(Ce==="undefined"||Ce==="boolean")&&(V=null);var he=!1;if(V===null)he=!0;else switch(Ce){case"bigint":case"string":case"number":he=!0;break;case"object":switch(V.$$typeof){case e:case t:he=!0;break;case p:return he=V._init,H(he(V._payload),G,L,de,_e)}}if(he)return _e=_e(V),he=de===""?"."+ne(V,0):de,O(_e)?(L="",he!=null&&(L=he.replace(Q,"$&/")+"/"),H(_e,G,L,"",function(nt){return nt}
vendor: 5,355 bytes, lines 18-23
18)):_e!=null&&(X(_e)&&(_e=P(_e,L+(_e.key==null||V&&V.key===_e.key?"":(""+_e.key).replace(Q,"$&/")+"/")+he)),G.push(_e)),1;he=0;var Be=de===""?".":de+":";if(O(V))for(var qe=0;qe<V.length;qe++)de=V[qe],Ce=Be+ne(de,qe),he+=H(de,G,L,Ce,_e);else if(qe=y(V),typeof qe=="function")for(V=qe.call(V),qe=0;!(de=V.next()).done;)de=de.value,Ce=Be+ne(de,qe++),he+=H(de,G,L,Ce,_e);else if(Ce==="object"){if(typeof V.then=="function")return H(ae(V),G,L,de,_e);throw G=String(V),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return he}function re(V,G,L){if(V==null)return V;var de=[],_e=0;return H(V,de,"","",function(Ce){return G.call(L,Ce,_e++)}),de}function ee(V){if(V._status===-1){var G=V._result;G=G(),G.then(function(L){(V._status===0||V._status===-1)&&(V._status=1,V._result=L)},function(L){(V._status===0||V._status===-1)&&(V._status=2,V._result=L)}),V._status===-1&&(V._status=0,V._result=G)}if(V._status===1)return V._result.default;throw V._result}var ge=typeof reportError=="function"?reportError:function(V){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof V=="object"&&V!==null&&typeof V.message=="string"?String(V.message):String(V),error:V});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",V);return}console.error(V)},B={map:re,forEach:function(V,G,L){re(V,function(){G.apply(this,arguments)},L)},count:function(V){var G=0;return re(V,function(){G++}),G},toArray:function(V){return re(V,function(G){return G})||[]},only:function(V){if(!X(V))throw Error("React.Children.only expected to receive a single React element child.");return V}};return vt.Activity=h,vt.Children=B,vt.Component=S,vt.Fragment=n,vt.Profiler=a,vt.PureComponent=k,vt.StrictMode=r,vt.Suspense=c,vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,vt.__COMPILER_RUNTIME={__proto__:null,c:function(V){return D.H.useMemoCache(V)}},vt.cache=function(V){return function(){return V.apply(null,arguments)}},vt.cacheSignal=function(){return null},vt.cloneElement=function(V,G,L){if(V==null)throw Error("The argument must be a React element, but you passed "+V+".");var de=x({},V.props),_e=V.key;if(G!=null)for(Ce in G.key!==void 0&&(_e=""+G.key),G)!U.call(G,Ce)||Ce==="key"||Ce==="__self"||Ce==="__source"||Ce==="ref"&&G.ref===void 0||(de[Ce]=G[Ce]);var Ce=arguments.length-2;if(Ce===1)de.children=L;else if(1<Ce){for(var he=Array(Ce),Be=0;Be<Ce;Be++)he[Be]=arguments[Be+2];de.children=he}return J(V.type,_e,de)},vt.createContext=function(V){return V={$$typeof:i,_currentValue:V,_currentValue2:V,_threadCount:0,Provider:null,Consumer:null},V.Provider=V,V.Consumer={$$typeof:o,_context:V},V},vt.createElement=function(V,G,L){var de,_e={},Ce=null;if(G!=null)for(de in G.key!==void 0&&(Ce=""+G.key),G)U.call(G,de)&&de!=="key"&&de!=="__self"&&de!=="__source"&&(_e[de]=G[de]);var he=arguments.length-2;if(he===1)_e.children=L;else if(1<he){for(var Be=Array(he),qe=0;qe<he;qe++)Be[qe]=arguments[qe+2];_e.children=Be}if(V&&V.defaultProps)for(de in he=V.defaultProps,he)_e[de]===void 0&&(_e[de]=he[de]);return J(V,Ce,_e)},vt.createRef=function(){return{current:null}},vt.forwardRef=function(V){return{$$typeof:l,render:V}},vt.isValidElement=X,vt.lazy=function(V){return{$$typeof:p,_payload:{_status:-1,_result:V},_init:ee}},vt.memo=function(V,G){return{$$typeof:d,type:V,compare:G===void 0?null:G}},vt.startTransition=function(V){var G=D.T,L={};D.T=L;try{var de=V(),_e=D.S;_e!==null&&_e(L,de),typeof de=="object"&&de!==null&&typeof de.then=="function"&&de.then(I,ge)}catch(Ce){ge(Ce)}finally{G!==null&&L.types!==null&&(G.types=L.types),D.T=G}},vt.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},vt.use=function(V){return D.H.use(V)},vt.useActionState=function(V,G,L){return D.H.useActionState(V,G,L)},vt.useCallback=function(V,G){return D.H.useCallback(V,G)},vt.useContext=function(V){return D.H.useContext(V)},vt.useDebugValue=function(){},vt.useDeferredValue=function(V,G){return D.H.useDeferredValue(V,G)},vt.useEffect=function(V,G){return D.H.useEffect(V,G)},vt.useEffectEvent=function(V){return D.H.useEffectEvent(V)},vt.useId=function(){return D.H.useId()},vt.useImperativeHandle=function(V,G,L){return D.H.useImperativeHandle(V,G,L)},vt.useInsertionEffect=function(V,G){return D.H.useInsertionEffect(V,G)},vt.useLayoutEffect=function(V,G){return D.H.useLayoutEffect(V,G)},vt.useMemo=function(V,G){return D.H.useMemo(V,G)},vt.useOptimistic=function(V,G){return D.H.useOptimistic(V,G)},vt.useReducer=function(V,G,L){return D.H.useReducer(V,G,L)},vt.useRef=function(V){return D.H.useRef(V)},vt.useState=function(V){return D.H.useState(V)},vt.useSyncExternalStore=function(V,G,L){return D.H.useSyncExternalStore(V,G,L)},vt.useTransition=function(){return D.H.useTransition()},vt.version="19.2.4",vt}var EO;function bS(){return EO||(EO=1,o0.exports=fq()),o0.exports}var b=bS();const ce=QM(b),od=oq({__proto__:null,default:ce},[b]);/** 19 * @license lucide-react v0.563.0 - ISC 20 * 21 * This source code is licensed under the ISC license. 22 * See the LICENSE file in the root directory of this source tree. 23 */const XM=(...e)=>
vendor: 5,458 bytes, lines 23-103
23e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 24 * @license lucide-react v0.563.0 - ISC 25 * 26 * This source code is licensed under the ISC license. 27 * See the LICENSE file in the root directory of this source tree. 28 */const pq=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** 29 * @license lucide-react v0.563.0 - ISC 30 * 31 * This source code is licensed under the ISC license. 32 * See the LICENSE file in the root directory of this source tree. 33 */const hq=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/** 34 * @license lucide-react v0.563.0 - ISC 35 * 36 * This source code is licensed under the ISC license. 37 * See the LICENSE file in the root directory of this source tree. 38 */const xO=e=>{const t=hq(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** 39 * @license lucide-react v0.563.0 - ISC 40 * 41 * This source code is licensed under the ISC license. 42 * See the LICENSE file in the root directory of this source tree. 43 */var mq={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"};/** 44 * @license lucide-react v0.563.0 - ISC 45 * 46 * This source code is licensed under the ISC license. 47 * See the LICENSE file in the root directory of this source tree. 48 */const gq=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** 49 * @license lucide-react v0.563.0 - ISC 50 * 51 * This source code is licensed under the ISC license. 52 * See the LICENSE file in the root directory of this source tree. 53 */const yq=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:i,...l},c)=>b.createElement("svg",{ref:c,...mq,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:XM("lucide",a),...!o&&!gq(l)&&{"aria-hidden":"true"},...l},[...i.map(([d,p])=>b.createElement(d,p)),...Array.isArray(o)?o:[o]]));/** 54 * @license lucide-react v0.563.0 - ISC 55 * 56 * This source code is licensed under the ISC license. 57 * See the LICENSE file in the root directory of this source tree. 58 */const Ze=(e,t)=>{const n=b.forwardRef(({className:r,...a},o)=>b.createElement(yq,{ref:o,iconNode:t,className:XM(`lucide-${pq(xO(e))}`,`lucide-${e}`,r),...a}));return n.displayName=xO(e),n};/** 59 * @license lucide-react v0.563.0 - ISC 60 * 61 * This source code is licensed under the ISC license. 62 * See the LICENSE file in the root directory of this source tree. 63 */const bq=[["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M9 10h6",key:"9gxzsh"}]],vq=Ze("book-plus",bq);/** 64 * @license lucide-react v0.563.0 - ISC 65 * 66 * This source code is licensed under the ISC license. 67 * See the LICENSE file in the root directory of this source tree. 68 */const _q=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]],Eq=Ze("book-text",_q);/** 69 * @license lucide-react v0.563.0 - ISC 70 * 71 * This source code is licensed under the ISC license. 72 * See the LICENSE file in the root directory of this source tree. 73 */const xq=[["path",{d:"M15 13a3 3 0 1 0-6 0",key:"10j68g"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}]],wq=Ze("book-user",xq);/** 74 * @license lucide-react v0.563.0 - ISC 75 * 76 * This source code is licensed under the ISC license. 77 * See the LICENSE file in the root directory of this source tree. 78 */const Tq=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],Cf=Ze("book",Tq);/** 79 * @license lucide-react v0.563.0 - ISC 80 * 81 * This source code is licensed under the ISC license. 82 * See the LICENSE file in the root directory of this source tree. 83 */const Sq=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Cq=Ze("bot",Sq);/** 84 * @license lucide-react v0.563.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 */const Aq=[["path",{d:"M16 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-3",key:"1kt8lf"}],["path",{d:"M8 21H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3",key:"gduv9"}]],kq=Ze("brackets",Aq);/** 89 * @license lucide-react v0.563.0 - ISC 90 * 91 * This source code is licensed under the ISC license. 92 * See the LICENSE file in the root directory of this source tree. 93 */const Nq=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7",key:"lw07rv"}]],Rq=Ze("chart-spline",Nq);/** 94 * @license lucide-react v0.563.0 - ISC 95 * 96 * This source code is licensed under the ISC license. 97 * See the LICENSE file in the root directory of this source tree. 98 */const Oq=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Xp=Ze("check",Oq);/** 99 * @license lucide-react v0.563.0 - ISC 100 * 101 * This source code is licensed under the ISC license. 102 * See the LICENSE file in the root directory of this source tree. 103 */const Dq=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}
103]],Tb=Ze("chevron-down",Dq);/** 104 * @license lucide-react v0.563.0 - ISC 105 * 106 * This source code is licensed under the ISC license. 107 * See the LICENSE file in the root directory of this source tree. 108 */const Iq=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],vS=Ze("chevron-right",Iq);/** 109 * @license lucide-react v0.563.0 - ISC 110 * 111 * This source code is licensed under the ISC license. 112 * See the LICENSE file in the root directory of this source tree. 113 */const Lq=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],$q=Ze("chevron-up",Lq);/** 114 * @license lucide-react v0.563.0 - ISC 115 * 116 * This source code is licensed under the ISC license. 117 * See the LICENSE file in the root directory of this source tree. 118 */const Pq=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],Mq=Ze("chevrons-down-up",Pq);/** 119 * @license lucide-react v0.563.0 - ISC 120 * 121 * This source code is licensed under the ISC license. 122 * See the LICENSE file in the root directory of this source tree. 123 */const jq=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],zq=Ze("chevrons-up-down",jq);/** 124 * @license lucide-react v0.563.0 - ISC 125 * 126 * This source code is licensed under the ISC license. 127 * See the LICENSE file in the root directory of this source tree. 128 */const Bq=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Uq=Ze("circle-alert",Bq);/** 129 * @license lucide-react v0.563.0 - ISC 130 * 131 * This source code is licensed under the ISC license. 132 * See the LICENSE file in the root directory of this source tree. 133 */const Fq=[["path",{d:"M12 2a10 10 0 0 1 7.38 16.75",key:"175t95"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}],["path",{d:"M2.5 8.875a10 10 0 0 0-.5 3",key:"1vce0s"}],["path",{d:"M2.83 16a10 10 0 0 0 2.43 3.4",key:"o3fkw4"}],["path",{d:"M4.636 5.235a10 10 0 0 1 .891-.857",key:"1szpfk"}],["path",{d:"M8.644 21.42a10 10 0 0 0 7.631-.38",key:"9yhvd4"}]],Hq=Ze("circle-fading-arrow-up",Fq);/** 134 * @license lucide-react v0.563.0 - ISC 135 * 136 * This source code is licensed under the ISC license. 137 * See the LICENSE file in the root directory of this source tree. 138 */const Gq=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],wO=Ze("circle-minus",Gq);/** 139 * @license lucide-react v0.563.0 - ISC 140 * 141 * This source code is licensed under the ISC license. 142 * See the LICENSE file in the root directory of this source tree. 143 */const Vq=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],uw=Ze("circle-plus",Vq);/** 144 * @license lucide-react v0.563.0 - ISC 145 * 146 * This source code is licensed under the ISC license. 147 * See the LICENSE file in the root directory of this source tree. 148 */const qq=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Yq=Ze("circle-play",qq);/** 149 * @license lucide-react v0.563.0 - ISC 150 * 151 * This source code is licensed under the ISC license. 152 * See the LICENSE file in the root directory of this source tree. 153 */const Wq=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Zq=Ze("circle-x",Wq);/** 154 * @license lucide-react v0.563.0 - ISC 155 * 156 * This source code is licensed under the ISC license. 157 * See the LICENSE file in the root directory of this source tree. 158 */const Kq=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],JM=Ze("circle",Kq);/** 159 * @license lucide-react v0.563.0 - ISC 160 * 161 * This source code is licensed under the ISC license. 162 * See the LICENSE file in the root directory of this source tree. 163 */const Qq=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],ru=Ze("code",Qq);/** 164 * @license lucide-react v0.563.0 - ISC 165 * 166 * This source code is licensed under the ISC license. 167 * See the LICENSE file in the root directory of this source tree. 168 */const Xq=[["path",{d:"M16 2v2",key:"scm5qe"}],["path",{d:"M7 22v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2",key:"1waht3"}],["path",{d:"M8 2v2",key:"pbkmx"}
168],["circle",{cx:"12",cy:"11",r:"3",key:"itu57m"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]],Jq=Ze("contact",Xq);/** 169 * @license lucide-react v0.563.0 - ISC 170 * 171 * This source code is licensed under the ISC license. 172 * See the LICENSE file in the root directory of this source tree. 173 */const e7=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],_S=Ze("copy",e7);/** 174 * @license lucide-react v0.563.0 - ISC 175 * 176 * This source code is licensed under the ISC license. 177 * See the LICENSE file in the root directory of this source tree. 178 */const t7=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],n7=Ze("corner-down-left",t7);/** 179 * @license lucide-react v0.563.0 - ISC 180 * 181 * This source code is licensed under the ISC license. 182 * See the LICENSE file in the root directory of this source tree. 183 */const r7=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],a7=Ze("corner-down-right",r7);/** 184 * @license lucide-react v0.563.0 - ISC 185 * 186 * This source code is licensed under the ISC license. 187 * See the LICENSE file in the root directory of this source tree. 188 */const o7=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],i7=Ze("credit-card",o7);/** 189 * @license lucide-react v0.563.0 - ISC 190 * 191 * This source code is licensed under the ISC license. 192 * See the LICENSE file in the root directory of this source tree. 193 */const s7=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],e2=Ze("download",s7);/** 194 * @license lucide-react v0.563.0 - ISC 195 * 196 * This source code is licensed under the ISC license. 197 * See the LICENSE file in the root directory of this source tree. 198 */const l7=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],t2=Ze("external-link",l7);/** 199 * @license lucide-react v0.563.0 - ISC 200 * 201 * This source code is licensed under the ISC license. 202 * See the LICENSE file in the root directory of this source tree. 203 */const c7=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],u7=Ze("eye-off",c7);/** 204 * @license lucide-react v0.563.0 - ISC 205 * 206 * This source code is licensed under the ISC license. 207 * See the LICENSE file in the root directory of this source tree. 208 */const d7=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],f7=Ze("eye",d7);/** 209 * @license lucide-react v0.563.0 - ISC 210 * 211 * This source code is licensed under the ISC license. 212 * See the LICENSE file in the root directory of this source tree. 213 */const p7=[["path",{d:"M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1",key:"1q9hii"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],h7=Ze("file-input",p7);/** 214 * @license lucide-react v0.563.0 - ISC 215 * 216 * This source code is licensed under the ISC license. 217 * See the LICENSE file in the root directory of this source tree. 218 */const m7=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],g7=Ze("file-text",m7);/** 219 * @license lucide-react v0.563.0 - ISC 220 * 221 * This source code is licensed under the ISC license. 222 * See the LICENSE file in the root directory of this source tree. 223 */const y7=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],b7=Ze("globe",y7);/** 224 * @license lucide-react v0.563.0 - ISC 225 * 226 * This source code is licensed under the ISC license. 227 * See the LICENSE file in the root directory of this source tree. 228 */const v7=[["path",{d:"M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3",key:"11za1p"}],["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M19 22v-6",key:"qhmiwi"}]],TO=Ze("grid-2x2-plus",v7);/** 229 * @license lucide-react v0.563.0 - ISC 230 * 231 * This source code is licensed under the ISC license. 232 * See the LICENSE file in the root directory of this source tree. 233 */const _7=[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]],SO=Ze("handshake",_7);/** 234 * @license lucide-react v0.563.0 - ISC 235 * 236 * This source code is licensed under the ISC license. 237 * See the LICENSE file in the root directory of this source tree. 238 */const E7=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],x7=Ze("heart",E7);/** 239 * @license lucide-react v0.563.0 - ISC 240 * 241 * This source code is licensed under the ISC license. 242 * See the LICENSE file in the root directory of this source tree. 243 */const w7=[["path",{d:"M13.5 8h-3",key:"xvov4w"}],["path",{d:"m15 2-1 2h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h3",key:"16uttc"}],["path",{d:"M16.899 22A5 5 0 0 0 7.1 22",key:"1d0ppr"}],["path",{d:"m9 2 3 6",key:"1o7bd9"}],["circle",{cx:"12",cy:"15",r:"3",key:"g36mzq"}]],T7=Ze("id-card-lanyard",w7);/** 244 * @license lucide-react v0.563.0 - ISC 245 * 246 * This source code is licensed under the ISC license. 247 * See the LICENSE file in the root directory of this source tree. 248 */const S7=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],CO=Ze("info",S7);/** 249 * @license lucide-react v0.563.0 - ISC 250 * 251 * This source code is licensed under the ISC license. 252 * See the LICENSE file in the root directory of this source tree. 253 */const C7=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],i0=Ze("layout-template",C7);/** 254 * @license lucide-react v0.563.0 - ISC 255 * 256 * This source code is licensed under the ISC license. 257 * See the LICENSE file in the root directory of this source tree. 258 */const A7=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]],AO=Ze("life-buoy",A7);/** 259 * @license lucide-react v0.563.0 - ISC 260 * 261 * This source code is licensed under the ISC license. 262 * See the LICENSE file in the root directory of this source tree. 263 */const k7=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],N7=Ze("lightbulb",k7);/** 264 * @license lucide-react v0.563.0 - ISC 265 * 266 * This source code is licensed under the ISC license. 267 * See the LICENSE file in the root directory of this source tree. 268 */const R7=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],O7=Ze("link",R7);/** 269 * @license lucide-react v0.563.0 - ISC 270 * 271 * This source code is licensed under the ISC license. 272 * See the LICENSE file in the root directory of this source tree. 273 */const D7=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],n2=Ze("loader-circle",D7);/** 274 * @license lucide-react v0.563.0 - ISC 275 * 276 * This source code is licensed under the ISC license. 277 * See the LICENSE file in the root directory of this source tree. 278 */const I7=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],L7=Ze("lock",I7);/** 279 * @license lucide-react v0.563.0 - ISC 280 * 281 * This source code is licensed under the ISC license. 282 * See the LICENSE file in the root directory of this source tree. 283 */const $7=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],s0=Ze("mail",$7);/** 284 * @license lucide-react v0.563.0 - ISC 285 * 286 * This source code is licensed under the ISC license. 287 * See the LICENSE file in the root directory of this source tree. 288 */const P7=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],M7=Ze("menu",P7);/** 289 * @license lucide-react v0.563.0 - ISC 290 * 291 * This source code is licensed under the ISC license. 292 * See the LICENSE file in the root directory of this source tree. 293 */const j7=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],z7=Ze("moon",j7);/** 294 * @license lucide-react v0.563.0 - ISC 295 * 296 * This source code is licensed under the ISC license. 297 * See the LICENSE file in the root directory of this source tree. 298 */const B7=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],U7=Ze("panel-left",B7);/** 299 * @license lucide-react v0.563.0 - ISC 300 * 301 * This source code is licensed under the ISC license. 302 * See the LICENSE file in the root directory of this source tree. 303 */const F7=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],cp=Ze("paperclip",F7);/** 304 * @license lucide-react v0.563.0 - ISC 305 * 306 * This source code is licensed under the ISC license. 307 * See the LICENSE file in the root directory of this source tree. 308 */const H7=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],G7=Ze("play",H7);/** 309 * @license lucide-react v0.563.0 - ISC 310 * 311 * This source code is licensed under the ISC license. 312 * See the LICENSE file in the root directory of this source tree. 313 */const V7=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 8h8",key:"1jbsf9"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h6",key:"1vyc9m"}]],kO=Ze("scan-text",V7);/** 314 * @license lucide-react v0.563.0 - ISC 315 * 316 * This source code is licensed under the ISC license. 317 * See the LICENSE file in the root directory of this source tree. 318 */const q7=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],Y7=Ze("scroll-text",q7);/** 319 * @license lucide-react v0.563.0 - ISC 320 * 321 * This source code is licensed under the ISC license. 322 * See the LICENSE file in the root directory of this source tree. 323 */const W7=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Sb=Ze("search",W7);/** 324 * @license lucide-react v0.563.0 - ISC 325 * 326 * This source code is licensed under the ISC license. 327 * See the LICENSE file in the root directory of this source tree. 328 */const Z7=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}
328]],K7=Ze("send",Z7);/** 329 * @license lucide-react v0.563.0 - ISC 330 * 331 * This source code is licensed under the ISC license. 332 * See the LICENSE file in the root directory of this source tree. 333 */const Q7=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],X7=Ze("settings-2",Q7);/** 334 * @license lucide-react v0.563.0 - ISC 335 * 336 * This source code is licensed under the ISC license. 337 * See the LICENSE file in the root directory of this source tree. 338 */const J7=[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]],eY=Ze("shapes",J7);/** 339 * @license lucide-react v0.563.0 - ISC 340 * 341 * This source code is licensed under the ISC license. 342 * See the LICENSE file in the root directory of this source tree. 343 */const tY=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],nY=Ze("shield-alert",tY);/** 344 * @license lucide-react v0.563.0 - ISC 345 * 346 * This source code is licensed under the ISC license. 347 * See the LICENSE file in the root directory of this source tree. 348 */const rY=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],l0=Ze("shield-check",rY);/** 349 * @license lucide-react v0.563.0 - ISC 350 * 351 * This source code is licensed under the ISC license. 352 * See the LICENSE file in the root directory of this source tree. 353 */const aY=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]],oY=Ze("shield-ellipsis",aY);/** 354 * @license lucide-react v0.563.0 - ISC 355 * 356 * This source code is licensed under the ISC license. 357 * See the LICENSE file in the root directory of this source tree. 358 */const iY=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
358],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],NO=Ze("sparkles",iY);/** 359 * @license lucide-react v0.563.0 - ISC 360 * 361 * This source code is licensed under the ISC license. 362 * See the LICENSE file in the root directory of this source tree. 363 */const sY=[["path",{d:"m10 9-3 3 3 3",key:"1oro0q"}],["path",{d:"m14 15 3-3-3-3",key:"bz13h7"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]],lY=Ze("square-code",sY);/** 364 * @license lucide-react v0.563.0 - ISC 365 * 366 * This source code is licensed under the ISC license. 367 * See the LICENSE file in the root directory of this source tree. 368 */const cY=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],uY=Ze("sun",cY);/** 369 * @license lucide-react v0.563.0 - ISC 370 * 371 * This source code is licensed under the ISC license. 372 * See the LICENSE file in the root directory of this source tree. 373 */const dY=[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M16 12H3",key:"1a2rj7"}],["path",{d:"M16 19H3",key:"zzsher"}],["path",{d:"M21 5h.01",key:"wa75ra"}],["path",{d:"M21 12h.01",key:"msek7k"}],["path",{d:"M21 19h.01",key:"qvbq2j"}]],fY=Ze("table-of-contents",dY);/** 374 * @license lucide-react v0.563.0 - ISC 375 * 376 * This source code is licensed under the ISC license. 377 * See the LICENSE file in the root directory of this source tree. 378 */const pY=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],hY=Ze("trash",pY);/** 379 * @license lucide-react v0.563.0 - ISC 380 * 381 * This source code is licensed under the ISC license. 382 * See the LICENSE file in the root directory of this source tree. 383 */const mY=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],gY=Ze("triangle-alert",mY);/** 384 * @license lucide-react v0.563.0 - ISC 385 * 386 * This source code is licensed under the ISC license. 387 * See the LICENSE file in the root directory of this source tree. 388 */const yY=[["path",{d:"M15 7h2a5 5 0 0 1 0 10h-2m-6 0H7A5 5 0 0 1 7 7h2",key:"1re2ne"}]],bY=Ze("unlink-2",yY);/** 389 * @license lucide-react v0.563.0 - ISC 390 * 391 * This source code is licensed under the ISC license. 392 * See the LICENSE file in the root directory of this source tree. 393 */const vY=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],_Y=Ze("unlink",vY);/** 394 * @license lucide-react v0.563.0 - ISC 395 * 396 * This source code is licensed under the ISC license. 397 * See the LICENSE file in the root directory of this source tree. 398 */const EY=[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]],xY=Ze("unplug",EY);/** 399 * @license lucide-react v0.563.0 - ISC 400 * 401 * This source code is licensed under the ISC license. 402 * See the LICENSE file in the root directory of this source tree. 403 */const wY=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],TY=Ze("user",wY);/** 404 * @license lucide-react v0.563.0 - ISC 405 * 406 * This source code is licensed under the ISC license. 407 * See the LICENSE file in the root directory of this source tree. 408 */const SY=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],c0=Ze("wand-sparkles",SY);/** 409 * @license lucide-react v0.563.0 - ISC 410 * 411 * This source code is licensed under the ISC license. 412 * See the LICENSE file in the root directory of this source tree. 413 */const CY=[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]],AY=Ze("webhook",CY);/** 414 * @license lucide-react v0.563.0 - ISC 415 * 416 * This source code is licensed under the ISC license. 417 * See the LICENSE file in the root directory of this source tree.
418 */const kY=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],NY=Ze("workflow",kY);/** 419 * @license lucide-react v0.563.0 - ISC 420 * 421 * This source code is licensed under the ISC license. 422 * See the LICENSE file in the root directory of this source tree. 423 */const RY=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Cb=Ze("x",RY);function OY(){const[e,t]=b.useState(!1),[n,r]=b.useState("en"),a=[{code:"en",name:"English",path:"/en"},{code:"es",name:"Español",path:"/es"},{code:"fr",name:"Français",path:"/fr"},{code:"fr-ca",name:"Français (CA)",path:"/fr-ca"}];b.useEffect(()=>{if(typeof window>"u")return;const i=window.location.pathname;i.startsWith("/fr-qc")?r("fr-qc"):i.startsWith("/fr-ca")?r("fr-ca"):i.startsWith("/fr")?r("fr"):i.startsWith("/es")?r("es"):r("en")},[]);const o=i=>{if(typeof window>"u")return;const c=window.location.pathname.replace(/^\/(en|es|fr|fr-ca|fr-qc)\//,"");window.location.href=i+"/"+c};return M.jsxs("div",{className:"relative order-2",children:[M.jsxs("button",{type:"button",onClick:()=>t(!e),className:"flex items-center gap-2 px-3 py-2 text-sm hover:bg-gray-100 dark:hover:bg-gray-700 rounded-full border border-gray-200 dark:border-gray-700",children:[M.jsx(b7,{className:"w-4 h-4 mr-2"}),a.find(i=>i.code===n)?.name||"English",M.jsx(Tb,{className:"w-3 h-3"})]}),e&&M.jsx("div",{className:"absolute right-0 top-full mt-2 w-40 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl shadow-lg z-50",children:a.map(i=>M.jsx("button",{onClick:()=>{o(i.path),t(!1)},className:`w-full text-left px-4 py-2 text-sm hover:bg-gray-100 dark:hover:bg-gray-700 ${n===i.co
423de?"bg-gray-50 dark:bg-gray-900/20 font-medium text-cyan-700 dark:font-medium dark:text-cyan-400":""}`,children:i.name},i.code))})]})}const DY={getHead:()=>M.jsxs(M.Fragment,{children:[M.jsx("script",{src:"/en/scripts/posthog-init.js"}),M.jsx("script",{src:"/en/scripts/posthog-pageleave.js"})]}),events:{location:({from:e,to:t})=>{e&&typeof window<"u"&&typeof document<"u"&&(console.log("PostHog tracking navigation:",{from:e.pathname,to:t.pathname}),window.posthog&&window.posthog.capture&&(window.posthog.capture("$pageview",{$current_url:window.location.href,$pathname:t.pathname,$title:document.title,$referrer:e.pathname}),console.log("ð PostHog pageview tracked:",t.pathname)))}}};var RO={exports:{}},Af={};/** 424 * @license React 425 * react-jsx-runtime.production.js 426 * 427 * Copyright (c) Meta Platforms, Inc. and affiliates. 428 * 429 * This source code is licensed under the MIT license found in the 430 * LICENSE file in the root directory of this source tree. 431 */var OO;function IY(){if(OO)return Af;OO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var i=null;if(o!==void 0&&(i=""+o),a.key!==void 0&&(i=""+a.key),"key"in a){o={};for(var l in a)l!=="key"&&(o[l]=a[l])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:i,ref:a!==void 0?a:null,props:o}}return Af.Fragment=t,Af.jsx=n,Af.jsxs=n,Af}var DO;function LY(){return DO||(DO=1,RO.exports=IY()),RO.exports}var E=LY(),id=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},$Y={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},PY=class{#e=$Y;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,n){return this.#e.setTimeout(t,n)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,n){return this.#e.setInterval(t,n)}clearInterval(t){this.#e.clearInterval(t)}},Bl=new PY;function MY(e){setTimeout(e,0)}var Zl=typeof window>"u"||"Deno"in globalThis;function Ir(){}function jY(e,t){return typeof e=="function"?e(t):e}function dw(e){return typeof e=="number"&&e>=0&&e!==1/0}function r2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Vs(e,t){return typeof e=="function"?e(t):e}function go(e,t){return typeof e=="function"?e(t):e}function IO(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:i,stale:l}=e;if(i){if(r){if(t.queryHash!==ES(i,t.options))return!1}else if(!Tp(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||o&&!o(t))}function LO(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Kl(t.options.mutationKey)!==Kl(o))return!1}else if(!Tp(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function ES(e,t){return(t?.queryKeyHashFn||Kl)(e)}function Kl(e){return JSON.stringify(e,(t,n)=>fw(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Tp(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Tp(e[n],t[n])):!1}var zY=Object.prototype.hasOwnProperty;function a2(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=$O(e)&&$O(t);if(!r&&!(fw(e)&&fw(t)))return t;const a=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),i=o.length,l=r?new Array(i):{};let c=0;for(let d=0;d<i;d++){const p=r?d:o[d],h=e[p],g=t[p];if(h===g){l[p]=h,(r?d<a:zY.call(e,p))&&c++;continue}if(h===null||g===null||typeof h!="object"||typeof g!="object"){l[p]=g;continue}const y=a2(h,g,n+1);l[p]=y,y===h&&c++}return a===i&&c===a?e:l}function py(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function $O(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function fw(e){if(!PO(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!PO(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function PO(e){return Object.prototype.toString.call(e)==="[object Object]"}function BY(e){return new Promise(t=>{Bl.setTimeout(t,e)})}function pw(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?a2(e,t):t}function UY(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function FY(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var xS=Symbol();function o2(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===xS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function wS(e,t){return typeof e=="function"?e(...t):!!e}function HY(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??=t(),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var GY=class extends id{#e;#t;#n;constructor(){super(),this.#n=t=>{if(!Zl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 13,532 bytes, line 431
431this.listeners.forEach(n=>{n(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},TS=new GY;function hw(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}function VY(e){let t;if(e.then(n=>(t=n,n),Ir)?.catch(Ir),t!==void 0)return{data:t}}var qY=MY;function YY(){let e=[],t=0,n=l=>{l()},r=l=>{l()},a=qY;const o=l=>{t?e.push(l):a(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&a(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||i()}return c},batchCalls:l=>(...c)=>{o(()=>{l(...c)})},schedule:o,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{a=l}}}var Sr=YY(),WY=class extends id{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(!Zl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(n=>{n(t)}))}isOnline(){return this.#e}},hy=new WY;function ZY(e){return Math.min(1e3*2**e,3e4)}function i2(e){return(e??"online")==="online"?hy.isOnline():!0}var mw=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function s2(e){let t=!1,n=0,r;const a=hw(),o=()=>a.status!=="pending",i=x=>{if(!o()){const C=new mw(x);g(C),e.onCancel?.(C)}},l=()=>{t=!0},c=()=>{t=!1},d=()=>TS.isFocused()&&(e.networkMode==="always"||hy.isOnline())&&e.canRun(),p=()=>i2(e.networkMode)&&e.canRun(),h=x=>{o()||(r?.(),a.resolve(x))},g=x=>{o()||(r?.(),a.reject(x))},y=()=>new Promise(x=>{r=C=>{(o()||d())&&x(C)},e.onPause?.()}).then(()=>{r=void 0,o()||e.onContinue?.()}),v=()=>{if(o())return;let x;const C=n===0?e.initialPromise:void 0;try{x=C??e.fn()}catch(S){x=Promise.reject(S)}Promise.resolve(x).then(h).catch(S=>{if(o())return;const A=e.retry??(Zl?0:3),k=e.retryDelay??ZY,N=typeof k=="function"?k(n,S):k,O=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,S);if(t||!O){g(S);return}n++,e.onFail?.(n,S),BY(N).then(()=>d()?void 0:y()).then(()=>{t?g(S):v()})})};return{promise:a,status:()=>a.status,cancel:i,continue:()=>(r?.(),a),cancelRetry:l,continueRetry:c,canStart:p,start:()=>(p()?v():y().then(v),a)}}var l2=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),dw(this.gcTime)&&(this.#e=Bl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Zl?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Bl.clearTimeout(this.#e),this.#e=void 0)}},KY=class extends l2{#e;#t;#n;#a;#r;#o;#s;constructor(t){super(),this.#s=!1,this.#o=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#a=t.client,this.#n=this.#a.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=jO(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(t){if(this.options={...this.#o,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=jO(this.options);n.data!==void 0&&(this.setState(MO(n.data,n.dataUpdatedAt)),this.#e=n)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,n){const r=pw(this.state.data,t,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),r}setState(t,n){this.#i({type:"setState",state:t,setStateOptions:n})}cancel(t){const n=this.#r?.promise;return this.#r?.cancel(t),n?n.then(Ir).catch(Ir):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(t=>go(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xS||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Vs(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!r2(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(t,n){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){const l=this.observers.find(c=>c.options.queryFn);l&&this.setOptions(l.options)}const r=new AbortController,a=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#s=!0,r.signal)})},o=()=>{const l=o2(this.options,n),c=(()=>{const d={client:this.#a,queryKey:this.queryKey,meta:this.meta};return a(d),d})();return this.#s=!1,this.options.persister?this.options.persister(l,c,this):l(c)},i=(()=>{const l={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return a(l),l})();this.options.behavior?.onFetch(i,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==i.fetchOptions?.meta)&&this.#i({type:"fetch",meta:i.fetchOptions?.meta}),this.#r=s2({initialPromise:n?.initialPromise,fn:i.fetchFn,onCancel:l=>{l instanceof mw&&l.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(l,c)=>{this.#i({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const l=await this.#r.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#n.config.onSuccess?.(l,this),this.#n.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof mw){if(l.silent)return this.#r.promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw this.#i({type:"error",error:l}),this.#n.config.onError?.(l,this),this.#n.config.onSettled?.(this.state.data,l,this),l}finally{this.scheduleGc()}}#i(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...c2(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...MO(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=t.manual?a:void 0,a;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Sr.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function c2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:i2(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function MO(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function jO(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var u2=class extends id{constructor(t,n){super(),this.options=n,this.#e=t,this.#i=null,this.#s=hw(),this.bindMethods(),this.setOptions(n)}#e;#t=void 0;#n=void 0;#a=void 0;#r;#o;#s;#i;#m;#f;#p;#c;#u;#l;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),zO(this.#t,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return gw(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return gw(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#E(),this.#t.removeObserver(this)}setOptions(t){const n=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof go(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#t.setOptions(this.options),n._defaulted&&!py(this.options,n)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const a=this.hasListeners();a&&BO(this.#t,r,this.options,n)&&this.#d(),this.updateResult(),a&&(this.#t!==r||go(this.options.enabled,this.#t)!==go(n.enabled,this.#t)||Vs(this.options.staleTime,this.#t)!==Vs(n.staleTime,this.#t))&&this.#g();const o=this.#y();a&&(this.#t!==r||go(this.options.enabled,this.#t)!==go(n.enabled,this.#t)||o!==this.#l)&&this.#b(o)}getOptimisticResult(t){const n=this.#e.getQueryCache().build(this.#e,t),r=this.createResult(n,t);return XY(this,r)&&(this.#a=r,this.#o=this.options,this.#r=this.#t.state),r}getCurrentResult(){return this.#a}trackResult(t,n){return new Proxy(t,{get:(r,a)=>(this.trackProp(a),n?.(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){this.#h.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=this.#e.defaultQueryOptions(t),r=this.#e.getQueryCache().build(this.#e,n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return this.#d({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#d(t){this.#x();let n=this.#t.fetch(this.options,t);return t?.throwOnError||(n=n.catch(Ir)),n}#g(){this.#_();const t=Vs(this.options.staleTime,this.#t);if(Zl||this.#a.isStale||!dw(t))return;const n=r2(this.#a.dataUpdatedAt,t)+1;this.#c=Bl.setTimeout(()=>{this.#a.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(t){this.#E(),this.#l=t,!(Zl||go(this.options.enabled,this.#t)===!1||!dw(this.#l)||this.#l===0)&&(this.#u=Bl.setInterval(()=>{(this.options.refetchIntervalInBackground||TS.isFocused())&&this.#d()},this.#l))}#v(){this.#g(),this.#b(this.#y())}#_(){this.#c&&(Bl.clearTimeout(this.#c),this.#c=void 0)}#E(){this.#u&&(Bl.clearInterval(this.#u),this.#u=void 0)}createResult(t,n){const r=this.#t,a=this.options,o=this.#a,i=this.#r,l=this.#o,c=t!==r?t.state:this.#n,{state:d}=t;let p={...d},h=!1,g;if(n._optimisticResults){const D=this.hasListeners(),U=!D&&zO(t,n),J=D&&BO(t,r,n,a);(U||J)&&(p={...p,...c2(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:y,errorUpdatedAt:v,status:x}=p;g=p.data;let C=!1;if(n.placeholderData!==void 0&&g===void 0&&x==="pending"){let D;o?.isPlaceholderData&&n.placeholderData===l?.placeholderData?(D=o.data,C=!0):D=typeof n.placeholderData=="function"?n.placeholderData(this.#p?.state.data,this.#p):n.placeholderData,D!==void 0&&(x="success",g=pw(o?.data,D,n),h=!0)}if(n.select&&g!==void 0&&!C)if(o&&g===i?.data&&n.select===this.#m)g=this.#f;else try{this.#m=n.select,g=n.select(g),g=pw(o?.data,g,n),this.#f=g,this.#i=null}catch(D){this.#i=D}this.#i&&(y=this.#i,g=this.#f,v=Date.now(),x="error");const S=p.fetchStatus==="fetching",A=x==="pending",k=x==="error",N=A&&S,O=g!==void 0,I={status:x,fetchStatus:p.fetchStatus,isPending:A,isSuccess:x==="success",isError:k,isInitialLoading:N,isLoading:N,data:g,dataUpdatedAt:p.dataUpdatedAt,error:y,errorUpdatedAt:v,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdate
431Count:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>c.dataUpdateCount||p.errorUpdateCount>c.errorUpdateCount,isFetching:S,isRefetching:S&&!A,isLoadingError:k&&!O,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:k&&O,isStale:SS(t,n),refetch:this.refetch,promise:this.#s,isEnabled:go(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const D=I.data!==void 0,U=I.status==="error"&&!D,J=K=>{U?K.reject(I.error):D&&K.resolve(I.data)},P=()=>{const K=this.#s=I.promise=hw();J(K)},X=this.#s;switch(X.status){case"pending":t.queryHash===r.queryHash&&J(X);break;case"fulfilled":(U||I.data!==X.value)&&P();break;case"rejected":(!U||I.error!==X.reason)&&P();break}}return I}updateResult(){const t=this.#a,n=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#o=this.options,this.#r.data!==void 0&&(this.#p=this.#t),py(n,t))return;this.#a=n;const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!this.#h.size)return!0;const i=new Set(o??this.#h);return this.options.throwOnError&&i.add("error"),Object.keys(this.#a).some(l=>{const c=l;return this.#a[c]!==t[c]&&i.has(c)})};this.#w({listeners:r()})}#x(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const n=this.#t;this.#t=t,this.#n=t.state,this.hasListeners()&&(n?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#w(t){Sr.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(this.#a)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function QY(e,t){return go(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function zO(e,t){return QY(e,t)||e.state.data!==void 0&&gw(e,t,t.refetchOnMount)}function gw(e,t,n){if(go(t.enabled,e)!==!1&&Vs(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&SS(e,t)}return!1}function BO(e,t,n,r){return(e!==t||go(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&SS(e,n)}function SS(e,t){return go(t.enabled,e)!==!1&&e.isStaleByTime(Vs(t.staleTime,e))}function XY(e,t){return!py(e.getCurrentResult(),t)}var d2=b.createContext(void 0),Jp=e=>{const t=b.useContext(d2);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},JY=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(d2.Provider,{value:e,children:t})),f2=b.createContext(!1),eW=()=>b.useContext(f2);f2.Provider;function tW(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var nW=b.createContext(tW()),rW=()=>b.useContext(nW),aW=(e,t,n)=>{const r=n?.state.error&&typeof e.throwOnError=="function"?wS(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},oW=e=>{b.useEffect(()=>{e.clearReset()},[e])},iW=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||wS(n,[e.error,r])),sW=(e,t)=>t.state.data===void 0,lW=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},cW=(e,t)=>e.isLoading&&e.isFetching&&!t,uW=(e,t)=>e?.suspense&&t.isPending,UO=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function p2(e,t,n){const r=eW(),a=rW(),o=Jp(n),i=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(i);const l=o.getQueryCache().get(i.queryHash);i._optimisticResults=r?"isRestoring":"optimistic",lW(i),aW(i,a,l),oW(a);const c=!o.getQueryCache().get(i.queryHash),[d]=b.useState(()=>new t(o,i)),p=d.getOptimisticResult(i),h=!r&&e.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(g=>{const y=h?d.subscribe(Sr.batchCalls(g)):Ir;return d.updateResult(),y},[d,h]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),b.useEffect(()=>{d.setOptions(i)},[i,d]),uW(i,p))throw UO(i,d,a);if(iW({result:p,errorResetBoundary:a,throwOnError:i.throwOnError,query:l,suspense:i.suspense}))throw p.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(i,p),i.experimental_prefetchInRender&&!Zl&&cW(p,r)&&(c?UO(i,d,a):l?.promise)?.catch(Ir).finally(()=>{d.updateResult()}),i.notifyOnChangeProps?p:d.trackResult(p)}function eh(e,t){return p2(e,u2,t)}function CS(e,t){return p2({...e,enabled:!0,suspense:!0,throwOnError:sW,placeholderData:void 0},u2,t)}function Xn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Qa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function yw({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Ab(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function h2(e,t,n="/"){return dW(e,t,n,!1)}function dW(e,t,n,r){let a=typeof t=="string"?Ab(t):t,o=Fo(a.pathname||"/",n);if(o==null)return null;let i=m2(e);fW(i);let l=null;for(let c=0;l==null&&c<i.length;++c){let d=y2(o);l=EW(i[c],d,r)}return l}function m2(e,t=[],n=[],r="",a=!1){let o=(i,l,c=a,d)=>{let p={relativePath:d===void 0?i.path||"":d,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&c)return;Xn(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}
431" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let h=Xi([r,p.relativePath]),g=n.concat(p);i.children&&i.children.length>0&&(Xn(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),m2(i.children,t,g,h,c)),!(i.path==null&&!i.index)&&t.push({path:h,score:vW(h,i.index),routesMeta:g})};return e.forEach((i,l)=>{if(i.path===""||!i.path?.includes("?"))o(i,l);else for(let c of g2(i.path))o(i,l,!0,c)}),t}function g2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let i=g2(r.join("/")),l=[];return l.push(...i.map(c=>c===""?o:[o,c].join("/"))),a&&l.push(...i),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function fW(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:_W(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var pW=/^:[\w-]+$/,hW=3,mW=2,gW=1,yW=10,bW=-2,FO=e=>e==="*";function vW(e,t){let n=e.split("/"),r=n.length;return n.some(FO)&&(r+=bW),t&&(r+=mW),n.filter(a=>!FO(a)).reduce((a,o)=>a+(pW.test(o)?hW:o===""?gW:yW),r)}function _W(e,t){return e.length===t.length&&e.slice(0,-1).every((n,r)=>n===t[r])?e[e.length-1]-t[t.length-1]:0}function EW(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",i=[];for(let l=0;l<r.length;++l){let c=r[l],d=l===r.length-1,p=o==="/"?t:t.slice(o.length)||"/",h=di({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},p),g=c.route;if(!h&&d&&n&&!r[r.length-1].route.index&&(h=di({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},p)),!h)return null;
431Object.assign(a,h.params),i.push({params:a,pathname:Xi([o,h.pathname]),pathnameBase:AW(Xi([o,h.pathnameBase])),route:g}),h.pathnameBase!=="/"&&(o=Xi([o,h.pathnameBase]))}return i}function xW(e,t={}){let n=e;n.endsWith("*")&&n!=="*"&&!n.endsWith("/*")&&(Qa(!1,`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`),n=n.replace(/\*$/,"/*"));const r=n.startsWith("/")?"/":"",a=i=>i==null?"":typeof i=="string"?i:String(i),o=n.split(/\/+/).map((i,l,c)=>{if(l===c.length-1&&i==="*")return a(t["*"]);const d=i.match(/^:([\w-]+)(\??)(.*)/);if(d){const[,p,h,g]=d;let y=t[p];return Xn(h==="?"||y!=null,`Missing ":${p}" param`),encodeURIComponent(a(y))+g}return i.replace(/\?$/g,"")}).filter(i=>!!i);return r+o.join("/")}function di(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=wW(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((c,{paramName:d,isOptional:p},h)=>{if(d==="*"){let y=l[h]||"";i=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const g=l[h];return p&&!g?c[d]=void 0:c[d]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:i,pattern:e}}function wW(e,t=!1,n=!0){Qa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,i,l)=>(r.push({paramName:i,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function y2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Qa(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Fo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var TW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function SW(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Ab(e):e,o;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?o=HO(n.substring(1),"/"):o=HO(n,t)):o=t,{pathname:o,search:kW(r),hash:NW(a)}}function HO(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function u0(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function CW(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function AS(e){let t=CW(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function kS(e,t,n,r=!1){let a;typeof e=="string"?a=Ab(e):(a={...e},Xn(!a.pathname||!a.pathname.includes("?"),u0("?","pathname","search",a)),Xn(!a.pathname||!a.pathname.includes("#"),u0("#","pathname","hash",a)),Xn(!a.search||!a.search.includes("#"),u0("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,l;if(i==null)l=n;else{let h=t.length-1;if(!r&&i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),h-=1;a.pathname=g.join("/")}l=h>=0?t[h]:"/"}let c=SW(a,l),d=i&&i!=="/"&&i.endsWith("/"),p=(o||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||p)&&(c.pathname+="/"),c}var Xi=e=>e.join("/").replace(/\/\/+/g,"/"),AW=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kW=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NW=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,b2=(e,t=302)=>{let n=t;typeof n=="number"?n={status:n}:typeof n.status>"u"&&(n.status=302);let r=new Headers(n.headers);return r.set("Location",e),new Response(null,{...n,headers:r})},RW=class{constructor(t,n,r,a=!1){this.status=t,this.statusText=n||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function NS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function v2(e){return e.map(t=>
431t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var _2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function E2(e,t){let n=e;if(typeof n!="string"||!TW.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(_2)try{let o=new URL(window.location.href),i=n.startsWith("//")?new URL(o.protocol+n):new URL(n),l=Fo(i.pathname,t);i.origin===o.origin&&l!=null?n=l+i.search+i.hash:a=!0}catch{Qa(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var x2=["POST","PUT","PATCH","DELETE"];new Set(x2);var OW=["GET",...x2];new Set(OW);var DW={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},uc=b.createContext(null);uc.displayName="DataRouter";var th=b.createContext(null);th.displayName="DataRouterState";var w2=b.createContext(!1);function IW(){return b.useContext(w2)}var RS=b.createContext({isTransitioning:!1});RS.displayName="ViewTransition";var T2=b.createContext(new Map);T2.displayName="Fetchers";var LW=b.createContext(null);LW.displayName="Await";var Ja=b.createContext(null);Ja.displayName="Navigation";var nh=b.createContext(null);nh.displayName="Location";var Co=b.createContext({outlet:null,matches:[],isDataRoute:!1});Co.displayName="Route";var OS=b.createContext(null);OS.displayName="RouteError";var S2="REACT_ROUTER_ERROR",$W="REDIRECT",PW="ROUTE_ERROR_RESPONSE";function MW(e){if(e.startsWith(`${S2}:${$W}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function jW(e){if(e.startsWith(`${S2}:${PW}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new RW(t.status,t.statusText,t.data)}catch{}}function C2(e,{relative:t}={}){Xn(dc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=b.useContext(Ja),{hash:a,pathname:o,search:i}=rh(e,{relative:t}),l=o;return n!=="/"&&(l=o==="/"?n:Xi([n,o])),r.createHref({pathname:l,search:i,hash:a})}function dc(){return b.useContext(nh)!=null}function Sn(){return Xn(dc(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(nh).location}function zW(e){Xn(dc(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=Sn();return b.useMemo(()=>di(e,y2(t)),[t,e])}var A2="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function k2(e){b.useContext(Ja).static||b.useLayoutEffect(e)}function sd(){let{isDataRoute:e}=b.useContext(Co);return e?JW():BW()}function BW(){Xn(dc(),"useNavigate() may be used only in the context of a <Router> component.");let e=b.useContext(uc),{basename:t,navigator:n}=b.useContext(Ja),{matches:r}=b.useContext(Co),{pathname:a}=Sn(),o=JSON.stringify(AS(r)),i=b.useRef(!1);return k2(()=>{i.current=!0}),b.useCallback((l,c={})=>{if(Qa(i.current,A2),!i.current)return;if(typeof l=="number"){n.go(l);return}let d=kS(l,JSON.parse(o),a,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Xi([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,o,a,e])}var UW=b.createContext(null);function FW(e){let t=b.useContext(Co).outlet;return b.useMemo(()=>t&&b.createElement(UW.Provider,{value:e},t),[t,e])}function DS(){let{matches:e}=b.useContext(Co),t=e[e.length-1];return t?t.params:{}}function rh(e,{relative:t}={}){let{matches:n}=b.useContext(Co),{pathname:r}=Sn(),a=JSON.stringify(AS(n));return b.useMemo(()=>kS(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function HW(e,t,n,r,a){Xn(dc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=b.useContext(Ja),{matches:i}=b.useContext(Co),l=i[i.length-1],c=l?l.params:{},d=l?l.pathname:"/",p=l?l.pathnameBase:"/",h=l&&l.route;{let A=h&&h.path||"";D2(d,!h||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 432 433Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let g=Sn(),y;y=g;let v=y.pathname||"/",x=v;if(p!=="/"){let A=p.replace(/^\//,"").split("/");x="/"+v.replace(/^\//,"").split("/").slice(A.length).join("/")}let C=h2(e,{pathname:x});Qa(h||C!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Qa(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let S=WW(C&&C.map(A=>Object.assign({},A,{params:Object.assign({},c,A.params),pathname:Xi([p,o.encodeLocation?o.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?p:Xi([p,o.encodeLocation?o.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),i,n,r,a);return t&&S?b.createElement(nh.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},S):S}function GW(){let e=O2(),t=NS(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=b.createElement(b.Fragment,null,b.createElement("p",null,"ð¿ Hey developer ð"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:o},"ErrorBoundary")," or"," ",b.createElement("code",{style:o},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application
433Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:a},n):null,i)}var VW=b.createElement(GW,null),N2=class extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){this.props.onError?this.props.onError(t,n):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const r=jW(t.digest);r&&(t=r)}let n=t!==void 0?b.createElement(Co.Provider,{value:this.props.routeContext},b.createElement(OS.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?b.createElement(qW,{error:t},n):n}};N2.contextType=w2;var d0=new WeakMap;function qW({children:e,error:t}){let{basename:n}=b.useContext(Ja);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=MW(t.digest);if(r){let a=d0.get(t);if(a)throw a;let o=E2(r.location,n);if(_2&&!d0.get(t))if(o.isExternal||r.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:r.replace}));throw d0.set(t,i),i}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function YW({routeContext:e,match:t,children:n}){let r=b.useContext(uc);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),b.createElement(Co.Provider,{value:e},n)}function WW(e,t=[],n=null,r=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,i=n?.errors;if(i!=null){let p=o.findIndex(h=>h.route.id&&i?.[h.route.id]!==void 0);Xn(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,p+1))}let l=!1,c=-1;if(n)for(let p=0;p<o.length;p++){let h=o[p];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=p),h.route.id){let{loaderData:g,errors:y}=n,v=h.route.loader&&!g.hasOwnProperty(h.route.id)&&(!y||y[h.route.id]===void 0);if(h.route.lazy||v){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}let d=n&&r?(p,h)=>{r(p,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:v2(n.matches),errorInfo:h})}:void 0;return o.reduceRight((p,h,g)=>{let y,v=!1,x=null,C=null;n&&(y=i&&h.route.id?i[h.route.id]:void 0,x=h.route.errorElement||VW,l&&(c<0&&g===0?(D2("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,C=null):c===g&&(v=!0,C=h.route.hydrateFallbackElement||null)));let S=t.concat(o.slice(0,g+1)),A=()=>{let k;return y?k=x:v?k=C:h.route.Component?k=b.createElement(h.route.Component,null):h.route.element?k=h.route.element:k=p,b.createElement(YW,{match:h,routeContext:{outlet:p,matches:S,isDataRoute:n!=null},children:k})};return n&&(h.route.ErrorBoundary||h.route.errorElement||g===0)?b.createElement(N2,{location:n.location,revalidation:n.revalidation,component:x,error:y,children:A(),routeContext:{outlet:null,matches:S,isDataRoute:!0},onError:d}):A()},null)}function IS(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function R2(e){let t=b.useContext(uc);return Xn(t,IS(e)),t}function LS(e){let t=b.useContext(th);return Xn(t,IS(e)),t}function ZW(e){let t=b.useContext(Co);return Xn(t,IS(e)),t}function $S(e){let t=ZW(e),n=t.matches[t.matches.length-1];return Xn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function KW(){return $S("useRouteId")}function PS(){return LS("useNavigation").navigation}function O2(){let e=b.useContext(OS),t=LS("useRouteError"),n=$S("useRouteError");return e!==void 0?e:t.errors?.[n]}var QW=0;function XW(e){let{router:t,basename:n}=R2("useBlocker"),r=LS("useBlocker"),[a,o]=b.useState(""),i=b.useCallback(l=>{if(typeof e!="function")return!!e;if(n==="/")return e(l);let{currentLocation:c,nextLocation:d,historyAction:p}=l;return e({currentLocation:{...c,pathname:Fo(c.pathname,n)||c.pathname},nextLocation:{...d,pathname:Fo(d.pathname,n)||d.pathname},historyAction:p})},[n,e]);return b.useEffect(()=>{let l=String(++QW);return o(l),()=>t.deleteBlocker(l)},[t]),b.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&r.blockers.has(a)?r.blockers.get(a):DW}function JW(){let{router:e}=R2("useNavigate"),t=$S("useNavigate"),n=b.useRef(!1);return k2(()=>{n.current=!0}),b.useCallback(async(r,a={})=>{Qa(n.current,A2),n.current&&(typeof r=="number"?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...a}))},[e,t])}var GO={};function D2(e,t,n){!t&&!GO[e]&&(GO[e]=!0,Qa(!1,n))}var VO={};function qO(e,t){!e&&!VO[t]&&(VO[t]=!0,console.warn(t))}var eZ="useOptimistic",YO=od[eZ],tZ=()=>{};function nZ(e){return YO?YO(e):[e,tZ]}var rZ=class{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}};function aZ({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){r=IW()||r;let[a,o]=b.useState(e.state),[i,l]=nZ(a),[c,d]=b.useState(),[p,h]=b.useState({isTransitioning:!1}),[g,y]=b.useState(),[v,x]=b.useState(),[C,S]=b.useState(),A=b.useRef(new Map),k=b.useCallback((D,{deletedFetchers:U,newErrors:J,flushSync:P,viewTransitionOpts:X})=>{J&&n&&Object.values(J).forEach(Q=>n(Q,{location:D.location,params:D.matches[0]?.params??{},unstable_pattern:v2(D.matches)}
433)),D.fetchers.forEach((Q,ne)=>{Q.data!==void 0&&A.current.set(ne,Q.data)}),U.forEach(Q=>A.current.delete(Q)),qO(P===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let K=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(qO(X==null||K,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!X||!K){t&&P?t(()=>o(D)):r===!1?o(D):b.startTransition(()=>{r===!0&&l(Q=>WO(Q,D)),o(D)});return}if(t&&P){t(()=>{v&&(g?.resolve(),v.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:X.currentLocation,nextLocation:X.nextLocation})});let Q=e.window.document.startViewTransition(()=>{t(()=>o(D))});Q.finished.finally(()=>{t(()=>{y(void 0),x(void 0),d(void 0),h({isTransitioning:!1})})}),t(()=>x(Q));return}v?(g?.resolve(),v.skipTransition(),S({state:D,currentLocation:X.currentLocation,nextLocation:X.nextLocation})):(d(D),h({isTransitioning:!0,flushSync:!1,currentLocation:X.currentLocation,nextLocation:X.nextLocation}))},[e.window,t,v,g,r,l,n]);b.useLayoutEffect(()=>e.subscribe(k),[e,k]),b.useEffect(()=>{p.isTransitioning&&!p.flushSync&&y(new rZ)},[p]),b.useEffect(()=>{if(g&&c&&e.window){let D=c,U=g.promise,J=e.window.document.startViewTransition(async()=>{r===!1?o(D):b.startTransition(()=>{r===!0&&l(P=>WO(P,D)),o(D)}),await U});J.finished.finally(()=>{y(void 0),x(void 0),d(void 0),h({isTransitioning:!1})}),x(J)}},[c,g,e.window,r,l]),b.useEffect(()=>{g&&c&&i.location.key===c.location.key&&g.resolve()},[g,v,i.location,c]),b.useEffect(()=>{!p.isTransitioning&&C&&(d(C.state),h({isTransitioning:!0,flushSync:!1,currentLocation:C.currentLocation,nextLocation:C.nextLocation}),S(void 0))},[p.isTransitioning,C]);let N=b.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:D=>e.navigate(D),push:(D,U,J)=>e.navigate(D,{state:U,preventScrollReset:J?.preventScrollReset}),replace:(D,U,J)=>e.navigate(D,{replace:!0,state:U,preventScrollReset:J?.preventScrollReset})}),[e]),O=e.basename||"/",I=b.useMemo(()=>({router:e,navigator:N,static:!1,basename:O,onError:n}),[e,N,O,n]);return b.createElement(b.Fragment,null,b.createElement(uc.Provider,{value:I},b.createElement(th.Provider,{value:i},b.createElement(T2.Provider,{value:A.current},b.createElement(RS.Provider,{value:p},b.createElement(lZ,{basename:O,location:i.location,navigationType:i.historyAction,navigator:N,unstable_useTransitions:r},b.createElement(oZ,{routes:e.routes,future:e.future,state:i,onError:n})))))),null)}function WO(e,t){return{...e,navigation:t.navigation.state!=="idle"?t.navigation:e.navigation,revalidation:t.revalidation!=="idle"?t.revalidation:e.revalidation,actionData:t.navigation.state!=="submitting"?t.actionData:e.actionData,fetchers:t.fetchers}}var oZ=b.memo(iZ);function iZ({routes:e,future:t,state:n,onError:r}){return HW(e,void 0,n,r,t)}function sZ({to:e,replace:t,state:n,relative:r}){Xn(dc(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=b.useContext(Ja);Qa(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=b.useContext(Co),{pathname:i}=Sn(),l=sd(),c=kS(e,AS(o),i,r==="path"),d=JSON.stringify(c);return b.useEffect(()=>{l(JSON.parse(d),{replace:t,state:n,relative:r})},[l,d,r,t,n]),null}function ah(e){return FW(e.context)}function lZ({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1,unstable_useTransitions:i}){Xn(!dc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:l,navigator:a,static:o,unstable_useTransitions:i,future:{}}),[l,a,o,i]);typeof n=="string"&&(n=Ab(n));let{pathname:d="/",search:p="",hash:h="",state:g=null,key:y="default"}=n,v=b.useMemo(()=>{let x=Fo(d,l);return x==null?null:{location:{pathname:x,search:p,hash:h,state:g,key:y},navigationType:r}},[l,d,p,h,g,y,r]);
433return Qa(v!=null,`<Router basename="${l}"> is not able to match the URL "${d}${p}${h}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:b.createElement(Ja.Provider,{value:c},b.createElement(nh.Provider,{children:t,value:v}))}var Vg="get",qg="application/x-www-form-urlencoded";function kb(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function cZ(e){return kb(e)&&e.tagName.toLowerCase()==="button"}function uZ(e){return kb(e)&&e.tagName.toLowerCase()==="form"}function dZ(e){return kb(e)&&e.tagName.toLowerCase()==="input"}function fZ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function pZ(e,t){return e.button===0&&(!t||t==="_self")&&!fZ(e)}function bw(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function hZ(e,t){let n=bw(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(o=>{n.append(a,o)})}),n}var Jm=null;function mZ(){if(Jm===null)try{new FormData(document.createElement("form"),0),Jm=!1}catch{Jm=!0}return Jm}var gZ=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function f0(e){return e!=null&&!gZ.has(e)?(Qa(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${qg}"`),null):e}function yZ(e,t){let n,r,a,o,i;if(uZ(e)){let l=e.getAttribute("action");r=l?Fo(l,t):null,n=e.getAttribute("method")||Vg,a=f0(e.getAttribute("enctype"))||qg,o=new FormData(e)}else if(cZ(e)||dZ(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||l.getAttribute("action");if(r=c?Fo(c,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Vg,a=f0(e.getAttribute("formenctype"))||f0(l.getAttribute("enctype"))||qg,o=new FormData(l,e),!mZ()){let{name:d,type:p,value:h}=e;if(p==="image"){let g=d?`${d}.`:"";o.append(`${g}x`,"0"),o.append(`${g}y`,"0")}else d&&o.append(d,h)}}else{if(kb(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Vg,r=null,a=qg,i=e}return o&&a==="text/plain"&&(i=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function MS(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}var bZ=new Set([100,101,204,205]);function vZ(e,t,n,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:a.pathname==="/"?a.pathname=`_root.${r}`:t&&Fo(a.pathname,t)==="/"?a.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${r}`,a}async function _Z(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function EZ(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function xZ(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let i=await _Z(o,n);return i.links?i.links():[]}return[]}));return CZ(r.flat(1).filter(EZ).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function ZO(e,t,n,r,a,o){let i=(c,d)=>n[d]?c.route.id!==n[d].route.id:!0,l=(c,d)=>n[d].pathname!==c.pathname||n[d].route.path?.endsWith("*")&&n[d].params["*"]!==c.params["*"];return o==="assets"?t.filter((c,d)=>i(c,d)||l(c,d)):o==="data"?t.filter((c,d)=>{let p=r.routes[c.route.id];if(!p||!p.hasLoader)return!1;if(i(c,d)||l(c,d))return!0;
433if(c.route.shouldRevalidate){let h=c.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function wZ(e,t,{includeHydrateFallback:n}={}){return TZ(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function TZ(e){return[...new Set(e)]}function SZ(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function CZ(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(SZ(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function I2(){let e=b.useContext(uc);return MS(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function AZ(){let e=b.useContext(th);return MS(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var jS=b.createContext(void 0);jS.displayName="FrameworkContext";function L2(){let e=b.useContext(jS);return MS(e,"You must render this element inside a <HydratedRouter> element"),e}function kZ(e,t){let n=b.useContext(jS),[r,a]=b.useState(!1),[o,i]=b.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:d,onMouseLeave:p,onTouchStart:h}=t,g=b.useRef(null);b.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let x=S=>{S.forEach(A=>{i(A.isIntersecting)})},C=new IntersectionObserver(x,{threshold:.5});return g.current&&C.observe(g.current),()=>{C.disconnect()}}},[e]),b.useEffect(()=>{if(r){let x=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(x)}}},[r]);let y=()=>{a(!0)},v=()=>{a(!1),i(!1)};return n?e!=="intent"?[o,g,{}]:[o,g,{onFocus:kf(l,y),onBlur:kf(c,v),onMouseEnter:kf(d,y),onMouseLeave:kf(p,v),onTouchStart:kf(h,y)}]:[!1,g,{}]}function kf(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function NZ({page:e,...t}){let{router:n}=I2(),r=b.useMemo(()=>h2(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?b.createElement(OZ,{page:e,matches:r,...t}):null}function RZ(e){let{manifest:t,routeModules:n}=L2(),[r,a]=b.useState([]);return b.useEffect(()=>{let o=!1;return xZ(e,t,n).then(i=>{o||a(i)}),()=>{o=!0}},[e,t,n]),r}function OZ({page:e,matches:t,...n}){let r=Sn(),{future:a,manifest:o,routeModules:i}=L2(),{basename:l}=I2(),{loaderData:c,matches:d}=AZ(),p=b.useMemo(()=>ZO(e,t,d,o,r,"data"),[e,t,d,o,r]),h=b.useMemo(()=>ZO(e,t,d,o,r,"assets"),[e,t,d,o,r]),g=b.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let x=new Set,C=!1;if(t.forEach(A=>{let k=o.routes[A.route.id];!k||!k.hasLoader||(!p.some(N=>N.route.id===A.route.id)&&A.route.id in c&&i[A.route.id]?.shouldRevalidate||k.hasClientLoader?C=!0:x.add(A.route.id))}),x.size===0)return[];let S=vZ(e,l,a.unstable_trailingSlashAwareDataRequests,"data");return C&&x.size>0&&S.searchParams.set("_routes",t.filter(A=>x.has(A.route.id)).map(A=>A.route.id).join(",")),[S.pathname+S.search]},[l,a.unstable_trailingSlashAwareDataRequests,c,r,o,p,t,e,i]),y=b.useMemo(()=>wZ(h,o),[h,o]),v=RZ(h);return b.createElement(b.Fragment,null,g.map(x=>b.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),y.map(x=>b.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),v.map(({key:x,link:C})=>b.createElement("link",{key:x,nonce:n.nonce,...C,crossOrigin:C.crossOrigin??n.crossOrigin})))}function DZ(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var IZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{IZ&&(window.__reactRouterVersion="7.13.0")}catch{}var $2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ld=b.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:o,state:i,target:l,to:c,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:h,...g},y){let{basename:v,unstable_useTransitions:x}=b.useContext(Ja),C=typeof c=="string"&&$2.test(c),S=E2(c,v);c=S.to;let A=C2(c,{relative:r}),[k,N,O]=kZ(n,g),I=PZ(c,{replace:o,state:i,target:l,preventScrollReset:d,relative:r,viewTransition:p,unstable_defaultShouldRevalidate:h,unstable_useTransitions:x});function D(J){e&&e(J),J.defaultPrevented||I(J)}let U=b.createElement("a",{...g,...O,href:S.absoluteURL||A,onClick:S.isExternal||a?e:D,ref:DZ(y,N),target:l,"data-discover":!C&&t==="render"?"true":void 0});return k&&!C?b.createElement(b.Fragment,null,U,b.createElement(NZ,{page:A})):U});ld.displayName="Link";var oh=b.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:o,viewTransition:i,children:l,...c},d){let p=rh(o,{relative:c.relative}),h=Sn(),g=b.useContext(th),{navigator:y,basename:v}=b.useContext(Ja),x=g!=null&&FZ(p)&&i===!0,C=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,S=h.pathname,A=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;t||(S=S.toLowerCase(),A=A?A.toLowerCase():null,C=C.toLowerCase()),A&&v&&(A=Fo(A,v)||A);const k=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let N=S===C||!r&&S.startsWith(C)&&S.charAt(k)==="/",O=A!=null&&(A===C||!r&&A.startsWith(C)&&A.charAt(C.length)==="/"),I={isActive:N,isPending:O,isTransitioning:x},D=N?e:void 0,U;typeof n=="function"?U=n(I):U=[n,N?"active":null,O?"pending":null,x?"transitioning":null].filter(
433Boolean).join(" ");let J=typeof a=="function"?a(I):a;return b.createElement(ld,{...c,"aria-current":D,className:U,ref:d,style:J,to:o,viewTransition:i},typeof l=="function"?l(I):l)});oh.displayName="NavLink";var LZ=b.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:i=Vg,action:l,onSubmit:c,relative:d,preventScrollReset:p,viewTransition:h,unstable_defaultShouldRevalidate:g,...y},v)=>{let{unstable_useTransitions:x}=b.useContext(Ja),C=BZ(),S=UZ(l,{relative:d}),A=i.toLowerCase()==="get"?"get":"post",k=typeof l=="string"&&$2.test(l),N=O=>{if(c&&c(O),O.defaultPrevented)return;O.preventDefault();let I=O.nativeEvent.submitter,D=I?.getAttribute("formmethod")||i,U=()=>C(I||O.currentTarget,{fetcherKey:t,method:D,navigate:n,replace:a,state:o,relative:d,preventScrollReset:p,viewTransition:h,unstable_defaultShouldRevalidate:g});x&&n!==!1?b.startTransition(()=>U()):U()};return b.createElement("form",{ref:v,method:A,action:S,onSubmit:r?c:N,...y,"data-discover":!k&&e==="render"?"true":void 0})});LZ.displayName="Form";function $Z(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function P2(e){let t=b.useContext(uc);return Xn(t,$Z(e)),t}function PZ(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:i,unstable_defaultShouldRevalidate:l,unstable_useTransitions:c}={}){let d=sd(),p=Sn(),h=rh(e,{relative:o});return b.useCallback(g=>{if(pZ(g,t)){g.preventDefault();let y=n!==void 0?n:yw(p)===yw(h),v=()=>d(e,{replace:y,state:r,preventScrollReset:a,relative:o,viewTransition:i,unstable_defaultShouldRevalidate:l});c?b.startTransition(()=>v()):v()}},[p,d,h,n,r,t,e,a,o,i,l,c])}function MZ(e){Qa(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=b.useRef(bw(e)),n=b.useRef(!1),r=Sn(),a=b.useMemo(()=>hZ(r.search,n.current?null:t.current),[r.search]),o=sd(),i=b.useCallback((l,c)=>{const d=bw(typeof l=="function"?l(new URLSearchParams(a)):l);n.current=!0,o("?"+d,c)},[o,a]);return[a,i]}var jZ=0,zZ=()=>`__${String(++jZ)}__`;function BZ(){let{router:e}=P2("useSubmit"),{basename:t}=b.useContext(Ja),n=KW(),r=e.fetch,a=e.navigate;return b.useCallback(async(o,i={})=>{let{action:l,method:c,encType:d,formData:p,body:h}=yZ(o,t);if(i.navigate===!1){let g=i.fetcherKey||zZ();await r(g,n,i.action||l,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:p,body:h,formMethod:i.method||c,formEncType:i.encType||d,flushSync:i.flushSync})}else await a(i.action||l,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:p,body:h,formMethod:i.method||c,formEncType:i.encType||d,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[r,a,t,n])}function UZ(e,{relative:t}={}){let{basename:n}=b.useContext(Ja),r=b.useContext(Co);Xn(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...rh(e||".",{relative:t})},i=Sn();if(e==null){o.search=i.search;let l=new URLSearchParams(o.search),c=l.getAll("index");if(c.some(d=>d==="")){l.delete("index"),c.filter(p=>p).forEach(p=>l.append("index",p));let d=l.toString();o.search=d?`?${d}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Xi([n,o.pathname])),yw(o)}function FZ(e,{relative:t}={}){let n=b.useContext(RS);Xn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=P2("useViewTransitionState"),a=rh(e,{relative:t});if(!n.isTransitioning)return!1;let o=Fo(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Fo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return di(a.pathname,i)!=null||di(a.pathname,o)!=null}const KO=e=>{let t;const n=new Set,r=(l,c)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const p=t;t=c??(typeof d!="object"||d===null)?d:Object.assign({}
433,t,d),n.forEach(h=>h(t,p))}},a=()=>t,o={setState:r,getState:a,getInitialState:()=>i,subscribe:l=>(n.add(l),()=>n.delete(l))},i=t=e(r,a,o);return o},M2=(e=>e?KO(e):KO),HZ=e=>e;function j2(e,t=HZ){const n=ce.useSyncExternalStore(e.subscribe,ce.useCallback(()=>t(e.getState()),[e,t]),ce.useCallback(()=>t(e.getInitialState()),[e,t]));return ce.useDebugValue(n),n}const GZ=e=>{const t=M2(e),n=r=>j2(t,r);return Object.assign(n,t),n},Nb=(e=>GZ);function Rb(e,t){let n;try{n=e()}catch{return}return{getItem:r=>{var a;const o=l=>l===null?null:JSON.parse(l,void 0),i=(a=n.getItem(r))!=null?a:null;return i instanceof Promise?i.then(o):o(i)},setItem:(r,a)=>n.setItem(r,JSON.stringify(a,void 0)),removeItem:r=>n.removeItem(r)}}const vw=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return vw(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return vw(r)(n)}}}},VZ=(e,t)=>(n,r,a)=>{let o={storage:Rb(()=>window.localStorage),partialize:C=>C,version:0,merge:(C,S)=>({...S,...C}),...t},i=!1,l=0;const c=new Set,d=new Set;let p=o.storage;if(!p)return e((...C)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...C)},r,a);const h=()=>{const C=o.partialize({...r()});return p.setItem(o.name,{state:C,version:o.version})},g=a.setState;a.setState=(C,S)=>(g(C,S),h());const y=e((...C)=>(n(...C),h()),r,a);a.getInitialState=()=>y;let v;const x=()=>{var C,S;if(!p)return;const A=++l;i=!1,c.forEach(N=>{var O;return N((O=r())!=null?O:y)});const k=((S=o.onRehydrateStorage)==null?void 0:S.call(o,(C=r())!=null?C:y))||void 0;return vw(p.getItem.bind(p))(o.name).then(N=>{if(N)if(typeof N.version=="number"&&N.version!==o.version){if(o.migrate){const O=o.migrate(N.state,N.version);return O instanceof Promise?O.then(I=>[!0,I]):[!0,O]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,N.state];return[!1,void 0]}).then(N=>{var O;if(A!==l)return;const[I,D]=N;if(v=o.merge(D,(O=r())!=null?O:y),n(v,!0),I)return h()}).then(()=>{A===l&&(k?.(v,void 0),v=r(),i=!0,d.forEach(N=>N(v)))}).catch(N=>{A===l&&k?.(void 0,N)})};return a.persist={setOptions:C=>{o={...o,...C},C.storage&&(p=C.storage)},clearStorage:()=>{p?.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>x(),hasHydrated:()=>i,onHydrate:C=>(c.add(C),()=>{c.delete(C)}),onFinishHydration:C=>(d.add(C),()=>{d.delete(C)})},o.skipHydration||x(),v||y},Ob=VZ,z2=e=>{const t=n=>{n.key===e.persist.getOptions().name&&n.newValue&&e.persist.rehydrate()};if(!(typeof window>"u"))return window.addEventListener("storage",t),()=>{window.removeEventListener("storage",t)}},B2=Nb()(Ob(e=>({isAuthenticated:!1,isPending:!0,profile:null,providerData:null,setAuthenticationPending:()=>e(()=>({isAuthenticated:!1,isPending:!1,profile:null,providerData:null})),setLoggedOut:()=>e(()=>({isAuthenticated:!1,isPending:!1,profile:null,providerData:null})),setLoggedIn:({profile:t,providerData:n})=>e(()=>({isAuthenticated:!0,isPending:!1,profile:t,providerData:n}))}),{merge:(e,t)=>({...t,isPending:!1,...typeof e=="object"?e:{}}),name:"auth-state",storage:Rb(()=>localStorage)}));z2(B2);const my=B2;globalThis.__ZUDOKU_CONTEXT??=b.createContext(void 0);const U2=globalThis.__ZUDOKU_CONTEXT;function F2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=F2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function H2(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=F2(e))&&(r&&(r+=" "),r+=t);return r}const QO=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,gy=H2,hi=(e,t)=>n=>{var r;if(t?.variants==null)return gy(e,n?.class,n?.className);const{variants:a,defaultVariants:o}=t,i=Object.keys(a).map(d=>{const p=n?.[d],h=o?.[d];if(p===null)return null;const g=QO(p)||QO(h);return a[d][g]}),l=n&&Object.entries(n).reduce((d,p)=>{let[h,g]=p;return g===void 0||(d[h]=g),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,p)=>{let{class:h,className:g,...y}=p;return Object.entries(y).every(v=>{let[x,C]=v;return Array.isArray(C)?C.includes({...o,...l}[x]):{...o,...l}[x]===C})?[...d,h,g]:d},[]);return gy(e,i,c,n?.class,n?.className)},qZ=e=>/^-?\d+$/.test(e)?{type:"index",value:Number(e)}:{type:"label",value:e},YZ=e=>
433e.split("/").filter(Boolean),WZ=(e,t,n,r)=>{switch(e.type){case"index":return(e.value<0?r+e.value:e.value)===n;case"label":return t.label?.toLowerCase()===e.value.toLowerCase()}},XO=(e,t)=>{if(!t)return;if(t==="/")return{parentItems:e,isRoot:!0};const n=YZ(t).map(qZ);if(n.length===0)return;let r=e;for(let a=0;a<n.length;a++){const o=n[a];if(!o)return;const i=r.findIndex((c,d)=>WZ(o,c,d,r.length));if(i===-1)return;const l=r[i];if(!l)return;if(a===n.length-1)return{item:l,parentItems:r,index:i};if(l.type!=="category")return;r=l.items}},ZZ=["doc","link","category","section"],eg=e=>ZZ.some(t=>t===e.type),G2=e=>e.map(t=>t.type==="category"?{...t,items:G2(t.items)}:{...t}),JO=(e,t)=>{if(!t)return e;const n=e.split("/").filter(Boolean),r=n[0];if(!r)return e;if(!Number.isNaN(Number(r)))return n.length>1?void 0:e;if(r.toLowerCase()===t.toLowerCase())return n.slice(1).join("/")||"/";if(!(n.length>1))return e},KZ=(e,t,n)=>{const r=G2(e),a=[];for(const o of t){const i=JO(o.match,n);if(i===void 0)continue;const l=XO(r,i);if(!l){a.push(`Rule target "${o.match}" not found`);continue}if(l.isRoot){o.type==="sort"?r.sort((c,d)=>eg(c)&&eg(d)?o.by(c,d):0):a.push(`Rule type "${o.type}" cannot target the root level`);continue}switch(o.type){case"remove":l.parentItems.splice(l.index,1);break;case"modify":l.parentItems[l.index]={...l.item,...o.set};break;case"insert":{const c=o.position==="after"?1:0;l.parentItems.splice(l.index+c,0,...o.items);break}case"sort":{const c=l.item.type==="category"?l.item.items:void 0;c?c.sort((d,p)=>eg(d)&&eg(p)?o.by(d,p):0):a.push(`Sort target "${o.match}" is not a category`);break}case"move":{const c=JO(o.to,n);if(c===void 0)break;const[d]=l.parentItems.splice(l.index,1);if(!d)break;const p=XO(r,c);if(!p||p.isRoot){a.push(`Move target "${o.to}" not found`),l.parentItems.splice(l.index,0,d);break}const h=o.position==="after"?1:0;p.parentItems.splice(p.index+h,0,d);break}}}return{result:r,warnings:a}},V2=Object.freeze({API_IDENTITIES:["api-identities"]}),QZ=()=>{const e=Jp();return{invalidateCache:b.useCallback(t=>e.invalidateQueries({queryKey:V2[t]}),[e])}},XZ="no-dehydrate",JZ=/^(\w+:\/\/[^/?]+)?([^?]*)(\?.*)?$/,eK=e=>e.filter(t=>t!=null&&t!==!1&&(typeof t=="string"||typeof t=="number")).map(t=>`${t}`).filter(t=>t),tK=e=>{const t=e.join("/"),[,n="",r=""]=t.match(JZ)??[];return{prefix:n,pathname:r.split("/").filter(a=>a!=="")}},nK=e=>{const{prefix:t,pathname:n}=e;let r=t;return n.length>0?(r?r+="/":r="/",r+=n.join("/")):r||(r="/"),r},Tn=(...e)=>{const t=eK(e),n=tK(t);return nK(n)},Db=(e,t)=>{for(const n of e){const r=Ib(n,t);if(r!==void 0)return r}},Ib=(e,t,n=[])=>{const r=t(e,n);if(r!==void 0)return r;if(e.type==="category")for(const a of e.items){const o=Ib(a,t,[...n,e]);if(o!==void 0)return o}},_w=e=>{switch(e.type){case"doc":case"custom-page":return Tn(e.path);case"link":return e.to;case"category":return e.link?Tn(e.link.path):void 0;default:return}},q2=e=>{switch(e.type){case"doc":case"custom-page":return Tn(e.path);case"link":return e.to;case"category":return e.link?.path?Tn(e.link.path):Ib(e,t=>{if(t.type!=="category"&&t.type!=="separator"&&t.type!=="section"&&t.type!=="filter")return q2(t)})??"";default:return""}},Uze=()=>{const e=Sn(),{navigation:t}=Lb();return Db(t,n=>{if(n.type==="doc"&&Tn(n.path)===e.pathname)return n})},rK=e=>{const t=Sn();return Ib(e,n=>{switch(n.type){case"category":return n.link&&Tn(n.link.path)===t.pathname?!0:void 0;case"custom-page":case"doc":return Tn(n.path)===t.pathname?!0:void 0;default:return}})},Fze=()=>{const e=Sn().pathname,{navigation:t}=Lb();let n,r,a=!1;return Db(t,o=>{if(o.type==="separator"||o.type==="section"||o.type==="filter")return;const i=o.type==="doc"?Tn(o.path):o.type==="category"&&o.link?Tn(o.link.path):void 0;if(i){if(a)return r={label:o.label,id:i},!0;e===i?a=!0:n={label:o.label,id:i}}}),{prev:n,next:r}},Yg=hi("relative flex items-center gap-2 px-(--padding-nav-item) my-px py-1.5 rounded-lg hover:bg-accent tabular-nums",{variants:{isActive:{true:"bg-accent font-medium",false:"text-foreground/80"},isMuted:{true:"text-foreground/30",false:""},isPending:{true:"bg-accent animate-pulse",false:""}},defaultVariants:{isActive:!1}}),Y2=(e,t)=>["separator","section","filter"].includes(e.type)||e.label?.toLowerCase().includes(t.toLowerCase())?!0:e.type==="category"?e.items.some(n=>Y2(n,t)):!1,zS=({auth:e,context:t,filterQuery:n})=>r=>r.type==="filter"?!0:n?.trim()&&!Y2(r,n)?!1:typeof r.display=="function"?r.display({context:t,auth:e}):r.display==="hide"||!r.label?!1:r.display==="auth"&&e.isAuthenticated||r.display==="anon"&&!e.isAuthenticated||!r.display||r.display==="always",Hn=()=>{const e=b.useContext(U2);if(!e)throw new Error("useZudoku must be used within a ZudokuProvider.");return e},aK=()=>{const{getApiIdentities:e}=Hn(),{isAuthenticated:t}=my(),{invalidateCache:n}=QZ();return b.useEffect(()=>{t||n("API_IDENTITIES")},[t,n]),eh({queryFn:e,queryKey:V2.API_IDENTITIES})},oK=e=>{const t=new Set,n=r=>{for(const a of r){const o=_w(a)?.split("?").at(0)?.split("#").at(0);o&&t.add(o),a.type==="category"&&n(a.items)}};return n(e),[...t]},Lb=()=>{const e=Hn(),{getPluginNavigation:t,navigation:n,navigationRules:r}=e,a=Sn();b.useRef(new Set);const o=Db(n,(c,d)=>
vendor: 4,521 bytes, line 433
433{if(c.type!=="link"&&_w(c)===a.pathname)return d.at(0)??c}),{data:i}=CS({queryFn:()=>t(a.pathname),queryKey:["plugin-navigation",a.pathname]});let l=o;if(!o&&i.length>0){const c=oK(i);l=n.flatMap(d=>{const p=_w(d);return p?[{item:d,path:p}]:[]}).sort((d,p)=>p.path.length-d.path.length).find(({path:d})=>c.some(p=>di({path:d,end:!1},p)??di({path:p,end:!1},d)))?.item}return{navigation:b.useMemo(()=>{const c=[...l?.type==="category"?l.items:[],...i];if(l?.label&&r.length>0){const{result:d}=KZ(c,r,l?.label);return d}return c},[l,i,r]),topNavItem:l}},iK=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},sK=(e,t)=>({classGroupId:e,validator:t}),W2=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),yy="-",eD=[],lK="arbitrary..",cK=e=>{const t=dK(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return uK(a);const o=a.split(yy),i=o[0]===""&&o.length>1?1:0;return Z2(o,i,t)},getConflictingClassGroupIds:(a,o)=>{if(o){const i=r[a],l=n[a];return i?l?iK(l,i):i:l||eD}return n[a]||eD}}},Z2=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],a=n.nextPart.get(r);if(a){const c=Z2(e,t+1,a);if(c)return c}const o=n.validators;if(o===null)return;const i=t===0?e.join(yy):e.slice(t).join(yy),l=o.length;for(let c=0;c<l;c++){const d=o[c];if(d.validator(i))return d.classGroupId}},uK=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?lK+r:void 0})(),dK=e=>{const{theme:t,classGroups:n}=e;return fK(n,t)},fK=(e,t)=>{const n=W2();for(const r in e){const a=e[r];BS(a,n,r,t)}return n},BS=(e,t,n,r)=>{const a=e.length;for(let o=0;o<a;o++){const i=e[o];pK(i,t,n,r)}},pK=(e,t,n,r)=>{if(typeof e=="string"){hK(e,t,n);return}if(typeof e=="function"){mK(e,t,n,r);return}gK(e,t,n,r)},hK=(e,t,n)=>{const r=e===""?t:K2(t,e);r.classGroupId=n},mK=(e,t,n,r)=>{if(yK(e)){BS(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(sK(n,e))},gK=(e,t,n,r)=>{const a=Object.entries(e),o=a.length;for(let i=0;i<o;i++){const[l,c]=a[i];BS(c,K2(t,l),n,r)}},K2=(e,t)=>{let n=e;const r=t.split(yy),a=r.length;for(let o=0;o<a;o++){const i=r[o];let l=n.nextPart.get(i);l||(l=W2(),n.nextPart.set(i,l)),n=l}return n},yK=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,bK=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(o,i)=>{n[o]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let i=n[o];if(i!==void 0)return i;if((i=r[o])!==void 0)return a(o,i),i},set(o,i){o in n?n[o]=i:a(o,i)}}},Ew="!",tD=":",vK=[],nD=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),_K=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const o=[];let i=0,l=0,c=0,d;const p=a.length;for(let x=0;x<p;x++){const C=a[x];if(i===0&&l===0){if(C===tD){o.push(a.slice(c,x)),c=x+1;continue}if(C==="/"){d=x;continue}}C==="["?i++:C==="]"?i--:C==="("?l++:C===")"&&l--}const h=o.length===0?a:a.slice(c);let g=h,y=!1;h.endsWith(Ew)?(g=h.slice(0,-1),y=!0):h.startsWith(Ew)&&(g=h.slice(1),y=!0);const v=d&&d>c?d-c:void 0;return nD(o,y,g,v)};if(t){const a=t+tD,o=r;r=i=>i.startsWith(a)?o(i.slice(a.length)):nD(vK,!1,i,void 0,!0)}if(n){const a=r;r=o=>n({className:o,parseClassName:a})}return r},EK=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let a=[];for(let o=0;o<n.length;o++){const i=n[o],l=i[0]==="[",c=t.has(i);l||c?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(i)):a.push(i)}return a.length>0&&(a.sort(),r.push(...a)),r}},xK=e=>({cache:bK(e.cacheSize),parseClassName:_K(e),sortModifiers:EK(e),...cK(e)}),wK=/\s+/,TK=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:o}=t,i=[],l=e.trim().split(wK);let c="";for(let d=l.length-1;d>=0;d-=1){const p=l[d],{isExternal:h,modifiers:g,hasImportantModifier:y,baseClassName:v,maybePostfixModifierPosition:x}=n(p);if(h){c=p+(c.length>0?" "+c:c);continue}let C=!!x,S=r(C?v.substring(0,x):v);if(!S){if(!C){c=p+(c.length>0?" "+c:c);continue}if(S=r(v),!S){c=p+(c.length>0?" "+c:c);continue}C=!1}const A=g.length===0?"":g.length===1?g[0]:o(g).join(":"),k=y?A+Ew:A,N=k+S;if(i.indexOf(N)>-1)continue;i.push(N);const O=a(S,C);for(let I=0;I<O.length;++I){const D=O[I];i.push(k+D)}c=p+(c.length>0?" "+c:c)}return c},SK=(...e)=>{let t=0,n,r,a="";for(;t<e.length;
vendor: 4,123 bytes, line 433
433)(n=e[t++])&&(r=Q2(n))&&(a&&(a+=" "),a+=r);return a},Q2=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Q2(e[r]))&&(n&&(n+=" "),n+=t);return n},CK=(e,...t)=>{let n,r,a,o;const i=c=>{const d=t.reduce((p,h)=>h(p),e());return n=xK(d),r=n.cache.get,a=n.cache.set,o=l,l(c)},l=c=>{const d=r(c);if(d)return d;const p=TK(c,n);return a(c,p),p};return o=i,(...c)=>o(SK(...c))},AK=[],_r=e=>{const t=n=>n[e]||AK;return t.isThemeGetter=!0,t},X2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,J2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,kK=/^\d+\/\d+$/,NK=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,RK=/\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$/,OK=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,DK=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,IK=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,au=e=>kK.test(e),Rt=e=>!!e&&!Number.isNaN(Number(e)),Ns=e=>!!e&&Number.isInteger(Number(e)),p0=e=>e.endsWith("%")&&Rt(e.slice(0,-1)),ji=e=>NK.test(e),LK=()=>!0,$K=e=>RK.test(e)&&!OK.test(e),ej=()=>!1,PK=e=>DK.test(e),MK=e=>IK.test(e),jK=e=>!Je(e)&&!et(e),zK=e=>cd(e,rj,ej),Je=e=>X2.test(e),Ol=e=>cd(e,aj,$K),h0=e=>cd(e,GK,Rt),rD=e=>cd(e,tj,ej),BK=e=>cd(e,nj,MK),tg=e=>cd(e,oj,PK),et=e=>J2.test(e),Nf=e=>ud(e,aj),UK=e=>ud(e,VK),aD=e=>ud(e,tj),FK=e=>ud(e,rj),HK=e=>ud(e,nj),ng=e=>ud(e,oj,!0),cd=(e,t,n)=>{const r=X2.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ud=(e,t,n=!1)=>{const r=J2.exec(e);return r?r[1]?t(r[1]):n:!1},tj=e=>e==="position"||e==="percentage",nj=e=>e==="image"||e==="url",rj=e=>e==="length"||e==="size"||e==="bg-size",aj=e=>e==="length",GK=e=>e==="number",VK=e=>e==="family-name",oj=e=>e==="shadow",qK=()=>{const e=_r("color"),t=_r("font"),n=_r("text"),r=_r("font-weight"),a=_r("tracking"),o=_r("leading"),i=_r("breakpoint"),l=_r("container"),c=_r("spacing"),d=_r("radius"),p=_r("shadow"),h=_r("inset-shadow"),g=_r("text-shadow"),y=_r("drop-shadow"),v=_r("blur"),x=_r("perspective"),C=_r("aspect"),S=_r("ease"),A=_r("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...N(),et,Je],I=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],U=()=>[et,Je,c],J=()=>[au,"full","auto",...U()],P=()=>[Ns,"none","subgrid",et,Je],X=()=>["auto",{span:["full",Ns,et,Je]},Ns,et,Je],K=()=>[Ns,"auto",et,Je],Q=()=>["auto","min","max","fr",et,Je],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...U()],re=()=>[au,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],ee=()=>[e,et,Je],ge=()=>[...N(),aD,rD,{position:[et,Je]}],B=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",FK,zK,{size:[et,Je]}],G=()=>[p0,Nf,Ol],L=()=>["","none","full",d,et,Je],de=()=>["",Rt,Nf,Ol],_e=()=>["solid","dashed","dotted","double"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[Rt,p0,aD,rD],Be=()=>["","none",v,et,Je],qe=()=>["none",Rt,et,Je],nt=()=>["none",Rt,et,Je],dt=()=>[Rt,et,Je],lt=()=>[au,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ji],breakpoint:[ji],color:[LK],container:[ji],"drop-shadow":[ji],ease:["in","out","in-out"],font:[jK],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ji],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ji],shadow:[ji],spacing:["px",Rt],text:[ji],"text-shadow":[ji],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",au,Je,et,C]}
vendor: 12,920 bytes, line 433
433],container:["container"],columns:[{columns:[Rt,Je,et,l]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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"],sr:["sr-only","not-sr-only"],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:O()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{start:J()}],end:[{end:J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[Ns,"auto",et,Je]}],basis:[{basis:[au,"full","auto",l,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Rt,au,"auto","initial","none",Je]}],grow:[{grow:["",Rt,et,Je]}],shrink:[{shrink:["",Rt,et,Je]}],order:[{order:[Ns,"first","last","none",et,Je]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:re()}],w:[{w:[l,"screen",...re()]}],"min-w":[{"min-w":[l,"screen","none",...re()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...re()]}],h:[{h:["screen","lh",...re()]}],"min-h":[{"min-h":["screen","lh","none",...re()]}],"max-h":[{"max-h":["screen","lh",...re()]}],"font-size":[{text:["base",n,Nf,Ol]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,et,h0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",p0,Je]}],"font-family":[{font:[UK,Je,t]}],"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:[a,et,Je]}],"line-clamp":[{"line-clamp":[Rt,"none",et,h0]}],leading:[{leading:[o,...U()]}],"list-image":[{"list-image":["none",et,Je]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",et,Je]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ee()}],"text-color":[{text:ee()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._e(),"wavy"]}],"text-decoration-thickness":[{decoration:[Rt,"from-font","auto",et,Ol]}],"text-decoration-color":[{decoration:ee()}],"underline-offset":[{"underline-offset":[Rt,"auto",et,Je]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",et,Je]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",et,Je]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:B()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ns,et,Je],radial:["",et,Je],conic:[Ns,et,Je]},HK,BK]}],"bg-color":[{bg:ee()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:ee()}],"gradient-via":[{via:ee()}],"gradient-to":[{to:ee()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":de()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._e(),"hidden","none"]}],"divide-style":[{divide:[..._e(),"hidden","none"]}],"border-color":[{border:ee()}],"border-color-x":[{"border-x":ee()}],"border-color-y":[{"border-y":ee()}],"border-color-s":[{"border-s":ee()}],"border-color-e":[{"border-e":ee()}],"border-color-t":[{"border-t":ee()}],"border-color-r":[{"border-r":ee()}],"border-color-b":[{"border-b":ee()}],"border-color-l":[{"border-l":ee()}],"divide-color":[{divide:ee()}],"outline-style":[{outline:[..._e(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Rt,et,Je]}],"outline-w":[{outline:["",Rt,Nf,Ol]}],"outline-color":[{outline:ee()}],shadow:[{shadow:["","none",p,ng,tg]}],"shadow-color":[{shadow:ee()}],"inset-shadow":[{"inset-shadow":["none",h,ng,tg]}],"inset-shadow-color":[{"inset-shadow":ee()}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ee()}],"ring-offset-w":[{"ring-offset":[Rt,Ol]}],"ring-offset-color":[{"ring-offset":ee()}],"inset-ring-w":[{"inset-ring":de()}],"inset-ring-color":[{"inset-ring":ee()}],"text-shadow":[{"text-shadow":["none",g,ng,tg]}],"text-shadow-color":[{"text-shadow":ee()}],opacity:[{opacity:[Rt,et,Je]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ce()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Rt]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":ee()}],"mask-image-linear-to-color":[{"mask-linear-to":ee()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":ee()}],"mask-image-t-to-color":[{"mask-t-to":ee()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":ee()}],"mask-image-r-to-color":[{"mask-r-to":ee()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":ee()}],"mask-image-b-to-color":[{"mask-b-to":ee()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":ee()}],"mask-image-l-to-color":[{"mask-l-to":ee()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":ee()}],"mask-image-x-to-color":[{"mask-x-to":ee()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":ee()}],"mask-image-y-to-color":[{"mask-y-to":ee()}],"mask-image-radial":[{"mask-radial":[et,Je]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":ee()}],"mask-image-radial-to-color":[{"mask-radial-to":ee()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[Rt]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":ee()}],"mask-image-conic-to-color":[{"mask-conic-to":ee()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:B()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",et,Je]}],filter:[{filter:["","none",et,Je]}],blur:[{blur:Be()}],brightness:[{brightness:[Rt,et,Je]}],contrast:[{contrast:[Rt,et,Je]}],"drop-shadow":[{"drop-shadow":["","none",y,ng,tg]}],"drop-shadow-color":[{"drop-shadow":ee()}],grayscale:[{grayscale:["",Rt,et,Je]}],"hue-rotate":[{"hue-rotate":[Rt,et,Je]}],invert:[{invert:["",Rt,et,Je]}],saturate:[{saturate:[Rt,et,Je]}],sepia:[{sepia:["",Rt,et,Je]}],"backdrop-filter":[{"backdrop-filter":["","none",et,Je]}],"backdrop-blur":[{"backdrop-blur":Be()}],"backdrop-brightness":[{"backdrop-brightness":[Rt,et,Je]}],"backdrop-contrast":[{"backdrop-contrast":[Rt,et,Je]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Rt,et,Je]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Rt,et,Je]}],"backdrop-invert":[{"backdrop-invert":["",Rt,et,Je]}],"backdrop-opacity":[{"backdrop-opacity":[Rt,et,Je]}],"backdrop-saturate":[{"backdrop-saturate":[Rt,et,Je]}],"backdrop-sepia":[{"backdrop-sepia":["",Rt,et,Je]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",et,Je]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Rt,"initial",et,Je]}],ease:[{ease:["linear","initial",S,et,Je]}],delay:[{delay:[Rt,et,Je]}],animate:[{animate:["none",A,et,Je]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,et,Je]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:qe()}],"rotate-x":[{"rotate-x":qe()}],"rotate-y":[{"rotate-y":qe()}],"rotate-z":[{"rotate-z":qe()}],scale:[{scale:nt()}],"scale-x":[{"scale-x":nt()}],"scale-y":[{"scale-y":nt()}],"scale-z":[{"scale-z":nt()}],"scale-3d":["scale-3d"],skew:[{skew:dt()}],"skew-x":[{"skew-x":dt()}],"skew-y":[{"skew-y":dt()}],transform:[{transform:[et,Je,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:lt()}],"translate-x":[{"translate-x":lt()}],"translate-y":[{"translate-y":lt()}],"translate-z":[{"translate-z":lt()}],"translate-none":["translate-none"],accent:[{accent:ee()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ee()}
vendor: 4,545 bytes, line 433
433],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",et,Je]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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",et,Je]}],fill:[{fill:["none",...ee()]}],"stroke-w":[{stroke:[Rt,Nf,Ol,h0]}],stroke:[{stroke:["none",...ee()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},YK=CK(qK);function xe(...e){return YK(H2(e))}const WK="modulepreload",ZK=function(e,t){return new URL(e,t).href},oD={}
433,z=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let i=function(p){return Promise.all(p.map(h=>Promise.resolve(h).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};const l=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");a=i(n.map(p=>{if(p=ZK(p,r),p in oD)return;oD[p]=!0;const h=p.endsWith(".css"),g=h?'[rel="stylesheet"]':"";if(!!r)for(let x=l.length-1;x>=0;x--){const C=l[x];if(C.href===p&&(!h||C.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${p}"]${g}`))return;const v=document.createElement("link");if(v.rel=h?"stylesheet":WK,h||(v.as="script"),v.crossOrigin="",v.href=p,d&&v.setAttribute("nonce",d),document.head.appendChild(v),h)return new Promise((x,C)=>{v.addEventListener("load",x),v.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${p}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return a.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},ij=(e=2e3)=>{const[t,n]=b.useState(!1),r=b.useCallback(a=>{navigator.clipboard.writeText(a),n(!0),setTimeout(()=>n(!1),e)},[e]);return[t,r]},KK={typescript:{pattern:/^(ts|typescript)$/,icon:b.lazy(()=>z(()=>import("./typescript-C26xdBDC-BcIknMKY.js"),[],import.meta.url)),width:15},javascript:{pattern:/^(js|javascript)$/,icon:b.lazy(()=>z(()=>import("./javascript-CcmIpL4G-CpFj8mD1.js"),[],import.meta.url))},react:{pattern:/^(react|tsx|jsx)$/,icon:b.lazy(()=>z(()=>import("./react-DHpVpxRv-3LGIMkq5.js"),[],import.meta.url)),width:22},markdown:{pattern:/^(md|markdown)$/,icon:b.lazy(()=>z(()=>import("./markdown-DYGWCmGQ-L5S8-RgC.js"),[],import.meta.url)),width:22},mdx:{pattern:/^mdx$/,icon:b.lazy(()=>z(()=>import("./mdx-CHwYvXd4-e7Ouo-ym.js"),[],import.meta.url)),width:28},java:{pattern:/^(java)$/,icon:b.lazy(()=>z(()=>import("./java-CVLzHfb1-C9Y6ytuc.js"),[],import.meta.url)),width:22},json:{pattern:/^jsonc?$/,icon:b.lazy(()=>z(()=>import("./json-4AyP4uiY-SclDil2S.js"),[],import.meta.url))},yaml:{pattern:/^yaml$/,icon:b.lazy(()=>z(()=>import("./yaml-BGsJItKv-Dryy69ot.js"),[],import.meta.url))},toml:{pattern:/^toml$/,icon:b.lazy(()=>z(()=>import("./toml-Co9mpdct-DpK6lTIW.js"),[],import.meta.url))},shell:{pattern:/^(shell|bash|sh|zsh|term|terminal|ansi)$/,icon:b.lazy(()=>z(()=>import("./shell-HUv9oVtp-C_weN2yP.js"),[],import.meta.url))},python:{pattern:/^(py|python)$/,icon:b.lazy(()=>z(()=>import("./python-QIQAE5Ei-BYLJdcXL.js"),[],import.meta.url))},csharp:{pattern:/^(cs|csharp|vb)$/,icon:b.lazy(()=>z(()=>import("./csharp-D8MIL50B-1eJ4kiaI.js"),[],import.meta.url)),width:20},rust:{pattern:/^(rs|rust)$/,icon:b.lazy(()=>z(()=>import("./rust-DYnLHAi2-wl_b5pu8.js"),[],import.meta.url)),width:20},ruby:{pattern:/^(rb|ruby)$/,icon:b.lazy(()=>z(()=>import("./ruby-B2dU8Ny5-Cz5-UybU.js"),[],import.meta.url))},php:{pattern:/^php$/,icon:b.lazy(()=>z(()=>import("./php-rQXzo7K_-DZzG-eNT.js"),[],import.meta.url)),width:24},html:{pattern:/^html?$/,icon:b.lazy(()=>z(()=>import("./html-MGnI2uzP-BkthLD56.js"),[],import.meta.url)),width:15},css:{pattern:/^css$/,icon:b.lazy(()=>z(()=>import("./css-Bt6hr1td-TTSKkq_7.js"),[],import.meta.url))},objectivec:{pattern:/^(objc|objectivec)$/,icon:b.lazy(()=>z(()=>import("./objectivec-HZY8shkd-ZOd8Ohfr.js"),[],import.meta.url)),width:16},swift:{pattern:/^swift$/,icon:b.lazy(()=>z(()=>import("./swift-B4z6ig1Z-Bne9Ship.js"),[],import.meta.url))},go:{pattern:/^go$/,icon:b.lazy(()=>z(()=>import("./go-D2VsmIOS-CYSf4wmo.js"),[],import.meta.url)),width:28},xml:{pattern:/^xml$/,icon:b.lazy(()=>z(()=>import("./xml-BQOOC04j-D-M5x3Zp.js"),[],import.meta.url))},kotlin:{pattern:/^(kt|kotlin)$/,icon:b.lazy(()=>z(()=>import("./kotlin-v2plddBQ-CgGpO8ei.js"),[],import.meta.url)),width:14},graphql:{pattern:/^(gql|graphql)$/,icon:b.lazy(()=>z(()=>import("./graphql-BtA6M4m5-CtmpuHj7.js"),[],import.meta.url))},zig:{pattern:/^zig$/,icon:b.lazy(()=>z(()=>import("./zig-CUV2sTct-DfHZLt6_.js"),[],import.meta.url)),width:28},scala:{pattern:/^scala$/,icon:b.lazy(()=>z(()=>import("./scala-CeKInBR8-CD9EvKhr.js"),[],import.meta.url)),width:18},dart:{pattern:/^dart$/,icon:b.lazy(()=>z(()=>import("./dart-B0vy1jWB-DUmi8B86.js"),[],import.meta.url)),width:20},ocaml:{pattern:/^ocaml$/,icon:b.lazy(()=>z(()=>import("./ocaml-DqsdDdwb-DtaoRjha.js"),[],import.meta.url)),width:20},c:{pattern:/^c$/,icon:b.lazy(()=>z(()=>import("./c-B-NUhs61-CtPainAk.js"),[],import.meta.url)),width:20},cpp:{pattern:/^(cpp|c\+\+)$/,icon:b.lazy(()=>z(()=>import("./cpp-79Paht7T-CVcwvEYF.js"),[],import.meta.url)),width:20},commonlisp:{pattern:/^(clisp|common-lisp|lisp|cl|commonlisp)$/,icon:b.lazy(()=>z(()=>import("./commonlisp-De080z23-BnH7XVxN.js"),[],import.meta.url)),width:18},elixir:{pattern:/^elixir$/,icon:b.lazy(()=>z(()=>import("./elixir-Ds8r0sF8-CKIxB7CM.js"),[],import.meta.url)),width:18},powershell:{pattern:/^(pshell|powershell|ps1)$/,icon:b.lazy(()=>z(()=>import("./powershell-CQje9pm1-B-MSFatF.js"),[],import.meta.url)),width:18}},QK=({language:e})=>
433{if(!e)return null;const t=Object.values(KK).find(r=>r.pattern.test(e));if(!t)return null;const n=t.width??18;return E.jsx(b.Suspense,{fallback:E.jsx("div",{style:{width:n,height:"1em"}}),children:E.jsx(t.icon,{className:"h-auto",style:{width:n}})})},US=({children:e,title:t="Code",language:n,showCopy:r="hover",showLanguageIndicator:a,showLineNumbers:o,...i})=>{const[l,c]=ij(),d=b.useRef(null);return e?E.jsxs("div",{className:xe("border code-block-wrapper relative group rounded-xl overflow-hidden",o&&"line-numbers",i.className),children:[E.jsxs("div",{className:"border-b flex items-center py-1 font-sans bg-black/2",children:[E.jsxs("div",{className:"flex items-center gap-1.5 flex-1 text-sm w-full px-3",children:[E.jsx(QK,{language:n}),t]})," ",r!=="never"&&E.jsx("button",{type:"button","aria-label":"Copy code",title:"Copy code",className:xe("transition p-1.5 mx-1 rounded-lg",!l&&"hover:bg-accent hover:brightness-95"),disabled:l,onClick:()=>{d.current?.textContent&&c(d.current.textContent)},children:l?E.jsx(Xp,{className:"text-emerald-600",size:14}):E.jsx(_S,{size:14})})]}),E.jsx("div",{className:"code-block text-sm not-prose scrollbar [&_code]:px-3 [&_code]:py-2",ref:d,children:e})]}):null};function iD(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ra(...e){return t=>{let n=!1;const r=e.map(a=>{const o=iD(a,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let a=0;a<r.length;a++){const o=r[a];typeof o=="function"?o():iD(e[a],null)}}}}function Pt(...e){return b.useCallback(ra(...e),e)}var XK=Symbol.for("react.lazy"),by=od[" use ".trim().toString()];function JK(e){return typeof e=="object"&&e!==null&&"then"in e}function sj(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===XK&&"_payload"in e&&JK(e._payload)}function lj(e){const t=eQ(e),n=b.forwardRef((r,a)=>{let{children:o,...i}=r;sj(o)&&typeof by=="function"&&(o=by(o._payload));const l=b.Children.toArray(o),c=l.find(nQ);if(c){const d=c.props.children,p=l.map(h=>h===c?b.Children.count(d)>1?b.Children.only(null):b.isValidElement(d)?d.props.children:null:h);return M.jsx(t,{...i,ref:a,children:b.isValidElement(d)?b.cloneElement(d,void 0,p):null})}return M.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}var ih=lj("Slot");function eQ(e){const t=b.forwardRef((n,r)=>{let{children:a,...o}=n;if(sj(a)&&typeof by=="function"&&(a=by(a._payload)),b.isValidElement(a)){const i=aQ(a),l=rQ(o,a.props);return a.type!==b.Fragment&&(l.ref=r?ra(r,i):i),b.cloneElement(a,l)}return b.Children.count(a)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tQ=Symbol("radix.slottable");function nQ(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===tQ}function rQ(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...l)=>{const c=o(...l);return a(...l),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function aQ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const oQ=hi("not-prose inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline",expand:"flex gap-1.5 border bg-transparent roun
433ded-xl text-muted-foreground hover:text-foreground"},size:{default:"h-9 px-4 py-2",xs:"h-6 rounded-md px-2 text-xs",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",xl:"h-14 rounded-lg px-10 text-lg",icon:"size-9","icon-xxs":"size-6","icon-xs":"size-7","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),Xa=b.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...a},o)=>{const i=r?ih:"button";return E.jsx(i,{type:r?void 0:"button",className:xe(oQ({variant:t,size:n,className:e})),ref:o,...a})});Xa.displayName="Button";const cj=({children:e,fullHeight:t,language:n,showCopy:r="hover",showCopyText:a,showLanguageIndicator:o=!0,showLineNumbers:i,...l})=>{const[c,d]=b.useState(!1),p=b.useRef(null);return e?E.jsxs("div",{className:xe("code-block-wrapper relative group bg-muted/50",i&&"line-numbers",t&&"h-full"),children:[E.jsx("div",{className:"relative overflow-auto",children:E.jsx("div",{className:xe("code-block text-sm not-prose scrollbar [&>pre]:overflow-x-auto [&_code]:p-2",t&&"h-full [&>pre]:h-full",l.className),ref:p,children:e})}),o&&E.jsx("span",{className:xe("absolute top-1.5 end-3 text-[11px]! font-mono text-muted-foreground transition group-hover:opacity-0 pointer-events-none",r==="always"&&"hidden"),children:n}),r!=="never"&&E.jsxs(Xa,{type:"button",variant:"outline",size:"icon-xs",className:xe("absolute top-2 end-2 p-2",r==="hover"&&"opacity-0 group-hover:opacity-100",a&&"flex gap-2 items-center font-medium"),disabled:c,onClick:()=>{p.current?.textContent&&(d(!0),navigator.clipboard.writeText(p.current.textContent),setTimeout(()=>d(!1),2e3))},children:[c?E.jsx(Xp,{className:"shrink-0 text-emerald-600 dark:text-emerald-300",size:13,strokeWidth:2.5,absoluteStrokeWidth:!0}):E.jsx(_S,{className:"shrink-0",size:13}),a&&"Copy"]})]}):null};var Hze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Gze(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}function uj(e,t,n){if(e)return;const r=t;throw new Sp(r,n)}let Sp=class extends Error{developerHint;title;constructor(t,{developerHint:n,title:r,cause:a}={}){super(t,{cause:a}),this.name="ZudokuError",this.title=r,this.developerHint=n}};function sD(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const i=n.slice(a,r).trim();(i||!o)&&t.push(i),a=r+1,r=n.indexOf(",",a)}return t}function FS(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const iQ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sQ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lQ={};function lD(e,t){return(lQ.jsx?sQ:iQ).test(e)}const cQ=/[ \t\n\f\r]/g;function $b(e){return typeof e=="object"?e.type==="text"?cD(e.value):!1:cD(e)}function cD(e){return e.replace(cQ,"")===""}let lh=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};lh.prototype.normal={};lh.prototype.property={};lh.prototype.space=void 0;function dj(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new lh(n,r,t)}function xw(e){return e.toLowerCase()}let ka=class{constructor(t,n){this.attribute=n,this.property=t}};ka.prototype.attribute="";ka.prototype.booleanish=!1;ka.prototype.boolean=!1;ka.prototype.commaOrSpaceSeparated=!1;ka.prototype.commaSeparated=!1;ka.prototype.defined=!1;ka.prototype.mustUseProperty=!1;ka.prototype.number=!1;ka.prototype.overloadedBoolean=!1;ka.prototype.property="";ka.prototype.spaceSeparated=!1;ka.prototype.space=void 0;let uQ=0;const wt=fc(),sr=fc(),fj=fc(),Pe=fc(),bn=fc(),Pu=fc(),Ua=fc();function fc(){return 2**++uQ}const ww=Object.freeze(Object.defineProperty({__proto__:null,boolean:wt,booleanish:sr,commaOrSpaceSeparated:Ua,commaSeparated:Pu,number:Pe,overloadedBoolean:fj,spaceSeparated:bn},Symbol.toStringTag,{value:"Module"})),m0=Object.keys(ww);let HS=class extends ka{constructor(t,n,r,a){let o=-1;if(super(t,n),uD(this,"space",a),typeof r=="number")for(;++o<m0.length;){const i=m0[o];uD(this,m0[o],(r&ww[i])===ww[i])}}};HS.prototype.defined=!0;function uD(e,t,n){n&&(e[t]=n)}function dd(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new HS(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[xw(r)]=r,n[xw(o.attribute)]=r}return new lh(t,n,e.space)}const pj=dd({properties:{ariaActiveDescendant:null,ariaAtomic:sr,ariaAutoComplete:null,ariaBusy:sr,ariaChecked:sr,ariaColCount:Pe,ariaColIndex:Pe,ariaColSpan:Pe,ariaControl
vendor: 5,434 bytes, line 433
433s:bn,ariaCurrent:null,ariaDescribedBy:bn,ariaDetails:null,ariaDisabled:sr,ariaDropEffect:bn,ariaErrorMessage:null,ariaExpanded:sr,ariaFlowTo:bn,ariaGrabbed:sr,ariaHasPopup:null,ariaHidden:sr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:bn,ariaLevel:Pe,ariaLive:null,ariaModal:sr,ariaMultiLine:sr,ariaMultiSelectable:sr,ariaOrientation:null,ariaOwns:bn,ariaPlaceholder:null,ariaPosInSet:Pe,ariaPressed:sr,ariaReadOnly:sr,ariaRelevant:null,ariaRequired:sr,ariaRoleDescription:bn,ariaRowCount:Pe,ariaRowIndex:Pe,ariaRowSpan:Pe,ariaSelected:sr,ariaSetSize:Pe,ariaSort:null,ariaValueMax:Pe,ariaValueMin:Pe,ariaValueNow:Pe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function hj(e,t){return t in e?e[t]:t}function mj(e,t){return hj(e,t.toLowerCase())}const dQ=dd({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Pu,acceptCharset:bn,accessKey:bn,action:null,allow:null,allowFullScreen:wt,allowPaymentRequest:wt,allowUserMedia:wt,alt:null,as:null,async:wt,autoCapitalize:null,autoComplete:bn,autoFocus:wt,autoPlay:wt,blocking:bn,capture:null,charSet:null,checked:wt,cite:null,className:bn,cols:Pe,colSpan:null,content:null,contentEditable:sr,controls:wt,controlsList:bn,coords:Pe|Pu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:wt,defer:wt,dir:null,dirName:null,disabled:wt,download:fj,draggable:sr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:wt,formTarget:null,headers:bn,height:Pe,hidden:wt,high:Pe,href:null,hrefLang:null,htmlFor:bn,httpEquiv:bn,id:null,imageSizes:null,imageSrcSet:null,inert:wt,inputMode:null,integrity:null,is:null,isMap:wt,itemId:null,itemProp:bn,itemRef:bn,itemScope:wt,itemType:bn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:wt,low:Pe,manifest:null,max:null,maxLength:Pe,media:null,method:null,min:null,minLength:Pe,multiple:wt,muted:wt,name:null,nonce:null,noModule:wt,noValidate:wt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:wt,optimum:Pe,pattern:null,ping:bn,placeholder:null,playsInline:wt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:wt,referrerPolicy:null,rel:bn,required:wt,reversed:wt,rows:Pe,rowSpan:Pe,sandbox:bn,scope:null,scoped:wt,seamless:wt,selected:wt,shadowRootClonable:wt,shadowRootDelegatesFocus:wt,shadowRootMode:null,shape:null,size:Pe,sizes:null,slot:null,span:Pe,spellCheck:sr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Pe,step:null,style:null,tabIndex:Pe,target:null,title:null,translate:null,type:null,typeMustMatch:wt,useMap:null,value:sr,width:Pe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:bn,axis:null,background:null,bgColor:null,border:Pe,borderColor:null,bottomMargin:Pe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:wt,declare:wt,event:null,face:null,frame:null,frameBorder:null,hSpace:Pe,leftMargin:Pe,link:null,longDesc:null,lowSrc:null,marginHeight:Pe,marginWidth:Pe,noResize:wt,noHref:wt,noShade:wt,noWrap:wt,object:null,profile:null,prompt:null,rev:null,rightMargin:Pe,rules:null,scheme:null,scrolling:sr,standby:null,summary:null,text:null,topMargin:Pe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Pe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:wt,disableRemotePlayback:wt,prefix:null,property:null,results:Pe,security:null,unselectable:null},space:"html",transform:mj}),fQ=dd({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
433dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ua,accentHeight:Pe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Pe,amplitude:Pe,arabicForm:null,ascent:Pe,attributeName:null,attributeType:null,azimuth:Pe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Pe,by:null,calcMode:null,capHeight:Pe,className:bn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
433dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Pe,diffuseConstant:Pe,direction:null,display:null,dur:null,divisor:Pe,dominantBaseline:null,download:wt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Pe,enableBackground:null,end:null,event:null,exponent:Pe,externalResourcesRequired:null,fill:null,fillOpacity:Pe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Pu,g2:Pu,glyphName:Pu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Pe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Pe,horizOriginX:Pe,horizOriginY:Pe,id:null,ideographic:Pe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Pe,k:Pe,k1:Pe,k2:Pe,k3:Pe,k4:Pe,kernelMatrix:Ua,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Pe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Pe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Pe,overlineThickness:Pe,paintOrder:null,panose1:null,path:null,pathLength:Pe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:bn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Pe,pointsAtY:Pe,pointsAtZ:Pe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ua,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ua,rev:Ua,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ua,requiredFeatures:Ua,requiredFonts:Ua,requiredFormats:Ua,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Pe,specularExponent:Pe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Pe,strikethroughThickness:Pe,string:null,stroke:null,strokeDashArray:Ua,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Pe,strokeOpacity:Pe,strokeWidth:null,style:null,surfaceScale:Pe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ua,tabIndex:Pe,tableValues:null,target:null,targetX:Pe,targetY:Pe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ua,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Pe,underlineThickness:Pe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Pe,values:null,vAlphabetic:Pe,vMathematical:Pe,vectorEffect:null,vHanging:Pe,vIdeographic:Pe,version:null,vertAdvY:Pe,vertOriginX:Pe,vertOriginY:Pe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Pe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hj}),gj=dd({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 6,916 bytes, lines 433-434
433,space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),yj=dd({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:mj}),bj=dd({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),pQ={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},hQ=/[A-Z]/g,dD=/-[a-z]/g,mQ=/^data[-\w.:]+$/i;function gQ(e,t){const n=xw(t);let r=t,a=ka;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&mQ.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(dD,bQ);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!dD.test(o)){let i=o.replace(hQ,yQ);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}a=HS}return new a(r,t)}function yQ(e){return"-"+e.toLowerCase()}function bQ(e){return e.charAt(1).toUpperCase()}const vQ=dj([pj,dQ,gj,yj,bj],"html"),GS=dj([pj,fQ,gj,yj,bj],"svg");function fD(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function VS(e){return e.join(" ").trim()}var ou={},g0,pD;function _Q(){if(pD)return g0;pD=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,l=/^\s+|\s+$/g,c=` 434`,d="/",p="*",h="",g="comment",y="declaration";g0=function(x,C){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];C=C||{};var S=1,A=1;function k(Q){var ne=Q.match(t);ne&&(S+=ne.length);var ae=Q.lastIndexOf(c);A=~ae?Q.length-ae:A+Q.length}function N(){var Q={line:S,column:A};return function(ne){return ne.position=new O(Q),U(),ne}}function O(Q){this.start=Q,this.end={line:S,column:A},this.source=C.source}O.prototype.content=x;function I(Q){var ne=new Error(C.source+":"+S+":"+A+": "+Q);if(ne.reason=Q,ne.filename=C.source,ne.line=S,ne.column=A,ne.source=x,!C.silent)throw ne}function D(Q){var ne=Q.exec(x);if(ne){var ae=ne[0];return k(ae),x=x.slice(ae.length),ne}}function U(){D(n)}function J(Q){var ne;for(Q=Q||[];ne=P();)ne!==!1&&Q.push(ne);return Q}function P(){var Q=N();if(!(d!=x.charAt(0)||p!=x.charAt(1))){for(var ne=2;h!=x.charAt(ne)&&(p!=x.charAt(ne)||d!=x.charAt(ne+1));)++ne;if(ne+=2,h===x.charAt(ne-1))return I("End of comment missing");var ae=x.slice(2,ne-2);return A+=2,k(ae),x=x.slice(ne),A+=2,Q({type:g,comment:ae})}}function X(){var Q=N(),ne=D(r);if(ne){if(P(),!D(a))return I("property missing ':'");var ae=D(o),H=Q({type:y,property:v(ne[0].replace(e,h)),value:ae?v(ae[0].replace(e,h)):h});return D(i),H}}function K(){var Q=[];J(Q);for(var ne;ne=X();)ne!==!1&&(Q.push(ne),J(Q));return Q}return U(),K()};function v(x){return x?x.replace(l,h):h}return g0}var hD;function EQ(){if(hD)return ou;hD=1;var e=ou&&ou.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ou,"__esModule",{value:!0}),ou.default=n;var t=e(_Q());function n(r,a){var o=null;if(!r||typeof r!="string")return o;var i=(0,t.default)(r),l=typeof a=="function";return i.forEach(function(c){if(c.type==="declaration"){var d=c.property,p=c.value;l?a(d,p,c):p&&(o=o||{},o[d]=p)}}),o}return ou}var Rf={},mD;function xQ(){if(mD)return Rf;mD=1,Object.defineProperty(Rf,"__esModule",{value:!0}),Rf.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(d){return!d||n.test(d)||e.test(d)},i=function(d,p){return p.toUpperCase()},l=function(d,p){return"".concat(p,"-")},c=function(d,p){return p===void 0&&(p={}),o(d)?d:(d=d.toLowerCase(),p.reactCompat?d=d.replace(a,l):d=d.replace(r,l),d.replace(t,i))};return Rf.camelCase=c,Rf}var Of,gD;function wQ(){if(gD)return Of;gD=1;var e=Of&&Of.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(EQ()),n=xQ();function r(a,o){var i={};return!a||typeof a!="string"||(0,t.default)(a,function(l,c){l&&c&&(i[(0,n.camelCase)(l,o)]=c)}),i}return r.default=r,Of=r,Of}var TQ=wQ();const SQ=sh(TQ),Pb=vj("end"),mi=vj("start");function vj(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function CQ(e){const t=mi(e),n=Pb(e);if(t&&n)return{start:t,end:n}}function up(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?yD(e.position):"start"in e||"end"in e?yD(e):"line"in e||"column"in e?Tw(e):""}function Tw(e){return bD(e&&e.line)+":"+bD(e&&e.column)}function yD(e){return Tw(e&&e.start)+"-"+Tw(e&&e.end)}function bD(e){return e&&typeof e=="number"?e:1}let aa=class extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",o={},i=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?a=t:!o.cause&&t&&(i=!0,a=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?o.ruleId=r:(o.source=r.slice(0,c),o.ruleId=r.slice(c+1))}if(!o.place&&o.ancestors&&o.ancestors){const c=o.ancestors[o.ancestors.length-1];c&&(o.place=c.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=l?l.line:void 0,this.name=up(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}};aa.prototype.file="";aa.prototype.name="";aa.prototype.reason="";aa.prototype.message="";aa.prototype.stack="";aa.prototype.column=void 0;aa.prototype.line=void 0;aa.prototype.ancestors=void 0;aa.prototype.cause=void 0;aa.prototype.fatal=void 0;aa.prototype.place=void 0;aa.prototype.ruleId=void 0;aa.prototype.source=void 0;const qS={}.hasOwnProperty,AQ=new Map,kQ=/[A-Z]/g,NQ=new Set(["table","tbody","thead","tfoot","tr"]),RQ=new Set(["td","th"]),_j="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function YS(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=jQ(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 5,220 bytes, line 434
434if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=MQ(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?GS:vQ,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Ej(a,e,void 0);return o&&typeof o!="string"?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function Ej(e,t,n){if(t.type==="element")return OQ(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return DQ(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return LQ(e,t,n);if(t.type==="mdxjsEsm")return IQ(e,t);if(t.type==="root")return $Q(e,t,n);if(t.type==="text")return PQ(e,t)}function OQ(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=GS,e.schema=a),e.ancestors.push(t);const o=wj(e,t.tagName,!1),i=zQ(e,t);let l=ZS(e,t);return NQ.has(t.tagName)&&(l=l.filter(function(c){return typeof c=="string"?!$b(c):!0})),xj(e,i,o,t),WS(i,l),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}function DQ(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Cp(e,t.position)}function IQ(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Cp(e,t.position)}function LQ(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=GS,e.schema=a),e.ancestors.push(t);const o=t.name===null?e.Fragment:wj(e,t.name,!0),i=BQ(e,t),l=ZS(e,t);return xj(e,i,o,t),WS(i,l),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}function $Q(e,t,n){const r={};return WS(r,ZS(e,t)),e.create(t,e.Fragment,r,n)}function PQ(e,t){return t.value}function xj(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function WS(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function MQ(e,t,n){return r;function r(a,o,i,l){const c=Array.isArray(i.children)?n:t;return l?c(o,i,l):c(o,i)}}function jQ(e,t){return n;function n(r,a,o,i){const l=Array.isArray(o.children),c=mi(r);return t(a,o,i,l,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function zQ(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&qS.call(t.properties,a)){const o=UQ(e,a,t.properties[a]);if(o){const[i,l]=o;e.tableCellAlignToStyle&&i==="align"&&typeof l=="string"&&RQ.has(t.tagName)?r=l:n[i]=l}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function BQ(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else Cp(e,t.position);else{const a=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const i=r.value.data.estree.body[0];i.type,o=e.evaluater.evaluateExpression(i.expression)}else Cp(e,t.position);else o=r.value===null?!0:r.value;n[a]=o}return n}function ZS(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:AQ;for(;++r<t.children.length;){const o=t.children[r];let i;if(e.passKeys){const c=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(c){const d=a.get(c)||0;i=c+"-"+d,a.set(c,d+1)}}const l=Ej(e,o,i);l!==void 0&&n.push(l)}return n}function UQ(e,t,n){const r=gQ(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?FS(n):VS(n)),r.property==="style"){let a=typeof n=="object"?n:FQ(e,String(n));return e.stylePropertyNameCase==="css"&&(a=HQ(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?pQ[r.property]||r.property:r.attribute,n]}}function FQ(e,t){try{return SQ(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new aa("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=_j+"#cannot-parse-style-attribute",a}}function wj(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let o=-1,i;for(;++o<a.length;){const l=lD(a[o])?{type:"Identifier",name:a[o]}:{type:"Literal",value:a[o]};i=i?{type:"MemberExpression",object:i,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}r=i}else r=lD(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return qS.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Cp(e)}function Cp(e,t){const n=new aa("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=_j+"#cannot-handle-mdx-estrees-without-createevaluater",n}function HQ(e){const t={};let n;
434for(n in e)qS.call(e,n)&&(t[GQ(n)]=e[n]);return t}function GQ(e){let t=e.replace(kQ,VQ);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function VQ(e){return"-"+e.toLowerCase()}const Mb=(function(e){if(e==null)return ZQ;if(typeof e=="function")return jb(e);if(typeof e=="object")return Array.isArray(e)?qQ(e):YQ(e);if(typeof e=="string")return WQ(e);throw new Error("Expected function, string, or object as test")});function qQ(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Mb(e[n]);return jb(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function YQ(e){const t=e;return jb(n);function n(r){const a=r;let o;for(o in e)if(a[o]!==t[o])return!1;return!0}}function WQ(e){return jb(t);function t(n){return n&&n.type===e}}function jb(e){return t;function t(n,r,a){return!!(KQ(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function ZQ(){return!0}function KQ(e){return e!==null&&typeof e=="object"&&"type"in e}const Tj=[],QQ=!0,Sw=!1,XQ="skip";function Sj(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const o=Mb(a),i=r?-1:1;l(e,void 0,[])();function l(c,d,p){const h=c&&typeof c=="object"?c:{};if(typeof h.type=="string"){const y=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(c.type+(y?"<"+y+">":""))+")"})}return g;function g(){let y=Tj,v,x,C;if((!t||o(c,d,p[p.length-1]||void 0))&&(y=JQ(n(c,p)),y[0]===Sw))return y;if("children"in c&&c.children){const S=c;if(S.children&&y[0]!==XQ)for(x=(r?S.children.length:-1)+i,C=p.concat(S);x>-1&&x<S.children.length;){const A=S.children[x];if(v=l(A,x,C)(),v[0]===Sw)return v;x=typeof v[1]=="number"?v[1]:x+i}}return y}}}function JQ(e){return Array.isArray(e)?e:typeof e=="number"?[QQ,e]:e==null?Tj:[e]}function fd(e,t,n,r){let a,o,i;typeof t=="function"&&typeof n!="function"?(o=void 0,i=t,a=n):(o=t,i=n,a=r),Sj(e,o,l,a);function l(c,d){const p=d[d.length-1],h=p?p.children.indexOf(c):void 0;return i(c,h,p)}}const vD={}.hasOwnProperty;function KS(e,t){const n=t||{};function r(a,...o){let i=r.invalid;const l=r.handlers;if(a&&vD.call(a,e)){const c=String(a[e]);i=vD.call(l,c)?l[c]:r.unknown}if(i)return i.call(this,a,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Cj=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];function vy(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}let Lr=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function eX(e){return QS(e)}function QS(e){return Array.isArray(e)?tX(e):e instanceof RegExp?e:typeof e=="object"?nX(e):e}function tX(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=QS(e[n]);return t}function nX(e){let t={};for(let n in e)t[n]=QS(e[n]);return t}function Aj(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function kj(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?kj(e.substring(0,e.length-1)):e.substr(~t+1)}var y0=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,rg=class{static hasCaptures(t){return t===null?!1:(y0.lastIndex=0,y0.test(t))}static replaceCaptures(t,n,r){return t.replace(y0,(a,o,i,l)=>{let c=r[parseInt(o||i,10)];if(c){let d=n.substring(c.start,c.end);for(;d[0]===".";)d=d.substring(1);switch(l){case"downcase":return d.toLowerCase();case"upcase":return d.toUpperCase();default:return d}}else return a})}};function Nj(e,t){return e<t?-1:e>t?1:0}function Rj(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let a=0;a<n;a++){let o=Nj(e[a],t[a]);if(o!==0)return o}return 0}return n-r}function _D(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Oj(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Dj=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const n=this.fn(t);return this.cache.set(t,n),n}},_y=class{constructor(t,n,r){this._colorMap=t,this._defaults=n,this._root=r}static createFromRawTheme(t,n){return this.createFromParsedTheme(oX(t),n)}static createFromParsedTheme(t,n){return sX(t,n)}_cachedMatchRoot=new Dj(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const n=t.scopeName,r=this._cachedMatchRoot.get(n).find(a=>rX(t.parent,a.parentScopes));return r?new Ij(r.fontStyle,r.foreground,r.background):null}},b0=class Wg{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Wg(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Wg(n,t[r]);return n}push(t){return new Wg(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}
vendor: 40,933 bytes, lines 434-436
434toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function rX(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!aX(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function aX(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Ij=class{constructor(t,n,r){this.fontStyle=t,this.foregroundId=n,this.backgroundId=r}};function oX(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,o=t.length;a<o;a++){let i=t[a];if(!i.settings)continue;let l;if(typeof i.scope=="string"){let h=i.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),l=h.split(",")}else Array.isArray(i.scope)?l=i.scope:l=[""];let c=-1;if(typeof i.settings.fontStyle=="string"){c=0;let h=i.settings.fontStyle.split(" ");for(let g=0,y=h.length;g<y;g++)switch(h[g]){case"italic":c=c|1;break;case"bold":c=c|2;break;case"underline":c=c|4;break;case"strikethrough":c=c|8;break}}let d=null;typeof i.settings.foreground=="string"&&_D(i.settings.foreground)&&(d=i.settings.foreground);let p=null;typeof i.settings.background=="string"&&_D(i.settings.background)&&(p=i.settings.background);for(let h=0,g=l.length;h<g;h++){let y=l[h].trim().split(" "),v=y[y.length-1],x=null;y.length>1&&(x=y.slice(0,y.length-1),x.reverse()),n[r++]=new iX(v,x,a,c,d,p)}}return n}var iX=class{constructor(t,n,r,a,o,i){this.scope=t,this.parentScopes=n,this.index=r,this.fontStyle=a,this.foreground=o,this.background=i}},ea=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(ea||{});function sX(e,t){e.sort((c,d)=>{let p=Nj(c.scope,d.scope);return p!==0||(p=Rj(c.parentScopes,d.parentScopes),p!==0)?p:c.index-d.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let c=e.shift();c.fontStyle!==-1&&(n=c.fontStyle),c.foreground!==null&&(r=c.foreground),c.background!==null&&(a=c.background)}let o=new lX(t),i=new Ij(n,o.getId(r),o.getId(a)),l=new uX(new Cw(0,null,-1,0,0),[]);for(let c=0,d=e.length;c<d;c++){let p=e[c];l.insert(0,p.scope,p.parentScopes,p.fontStyle,o.getId(p.foreground),o.getId(p.background))}return new _y(o,i,l)}var lX=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let n=0,r=t.length;n<r;n++)this._color2id[t[n]]=n,this._id2color[n]=t[n]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let n=this._color2id[t];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return n=++this._lastColorId,this._color2id[t]=n,this._id2color[n]=t,n}getColorMap(){return this._id2color.slice(0)}},cX=Object.freeze([]),Cw=class Lj{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,o){this.scopeDepth=t,this.parentScopes=n||cX,this.fontStyle=r,this.foreground=a,this.background=o}clone(){return new Lj(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},uX=class Aw{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const o=n.parentScopes[a].length-t.parentScopes[r].length;if(o!==0)return o;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,o;if(r===-1?(a=t,o=""):(a=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Aw._cmpBySpecificity),n}insert(t,n,r,a,o,i){if(n===""){this._doInsertHere(t,r,a,o,i);return}let l=n.indexOf("."),c,d;l===-1?(c=n,d=""):(c=n.substring(0,l),d=n.substring(l+1));let p;this._children.hasOwnProperty(c)?p=this._children[c]:(p=new Aw(this._mainRule.clone(),Cw.cloneArr(this._rulesWithParentScopes)),this._children[c]=p),p.insert(t+1,d,r,a,o,i)}_doInsertHere(t,n,r,a,o){if(n===null){this._mainRule.acceptOverwrite(t,r,a,o);return}for(let i=0,l=this._rulesWithParentScopes.length;i<l;i++){let c=this._rulesWithParentScopes[i];if(Rj(c.parentScopes,n)===0){c.acceptOverwrite(t,r,a,o);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Cw(t,n,r,a,o))}},Ku=class fo{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=fo.getLanguageId(t),r=fo.getTokenType(t),a=fo.getFontStyle(t),o=fo.getForeground(t),i=fo.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:o,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,a,o,i,l){let c=fo.getLanguageId(t),d=fo.getTokenType(t),p=fo.containsBalancedBrackets(t)?1:0,h=fo.getFontStyle(t),g=fo.getForeground(t),y=fo.getBackground(t);return n!==0&&(c=n),r!==8&&(d=r),a!==null&&(p=a?1:0),o!==-1&&(h=o),i!==0&&(g=i),l!==0&&(y=l),(c<<0|d<<8|p<<10|h<<11|g<<15|y<<24)>>>0}};function Ey(e,t){const n=[],r=dX(e);let a=r.next();for(;a!==null;){let c=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let d=i();if(n.push({matcher:d,priority:c}),a!==",")break;a=r.next()}return n;function o(){if(a==="-"){a=r.next();const c=o();return d=>!!c&&!c(d)}if(a==="("){a=r.next();const c=l();return a===")"&&(a=r.next()),c}if(ED(a)){const c=[];do c.push(a),a=r.next();while(ED(a));return d=>t(c,d)}return null}function i(){const c=[];let d=o();for(;d;)c.push(d),d=o();return p=>c.every(h=>h(p))}function l(){const c=[];let d=i();for(;d&&(c.push(d),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");d=i()}return p=>c.some(h=>h(p))}}function ED(e){return!!e&&!!e.match(/[\w\.:]+/)}function dX(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function $j(e){typeof e.dispose=="function"&&e.dispose()}var Ap=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},fX=class{constructor(t,n){this.scopeName=t,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},pX=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const n=t.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(t))}},hX=class{constructor(t,n){this.repo=t,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ap(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const n=new pX;for(const r of t)mX(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof Ap){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function mX(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Ap?Zg({baseGrammar:o,selfGrammar:a},r):kw(e.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},r);const i=n.injections(e.scopeName);if(i)for(const l of i)r.add(new Ap(l))}function kw(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];xy([r],t,n)}}function Zg(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&xy(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&xy(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function xy(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?Aj({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&xy(r.patterns,{...t,repository:a},n);const o=r.include;if(!o)continue;const i=Pj(o);switch(i.kind){case 0:Zg({...t,selfGrammar:t.baseGrammar},n);break;case 1:Zg(t,n);break;case 2:kw(i.ruleName,{...t,repository:a},n);break;case 3:case 4:const l=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(l){const c={baseGrammar:t.baseGrammar,selfGrammar:l,repository:a};i.kind===4?kw(i.ruleName,c,n):Zg(c,n)}else i.kind===4?n.add(new fX(i.scopeName,i.ruleName)):n.add(new Ap(i.scopeName));break}}}var gX=class{kind=0},yX=class{kind=1},bX=class{constructor(t){this.ruleName=t}kind=2},vX=class{constructor(t){this.scopeName=t}kind=3},_X=class{constructor(t,n){this.scopeName=t,this.ruleName=n}kind=4};function Pj(e){if(e==="$base")return new gX;if(e==="$self")return new yX;const t=e.indexOf("#");if(t===-1)return new vX(e);if(t===0)return new bX(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new _X(n,r)}}var EX=/\\(\d+)/,xD=/\\(\d+)/g,xX=-1,Mj=-2,ch=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,n,r,a){this.$location=t,this.id=n,this._name=r||null,this._nameIsCapturing=rg.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=rg.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${kj(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,n){return!this._nameIsCapturing||this._name===null||t===null||n===null?this._name:rg.replaceCaptures(this._name,t,n)}getContentName(t,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:rg.replaceCaptures(this._contentName,t,n)}},wX=class extends ch{retokenizeCapturedWithRuleId;constructor(e,t,n,r,a){super(e,t,n,r),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},TX=class extends ch{_match;captures;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,null),this._match=new kp(a,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Np,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},wD=class extends ch{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,a),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Np,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Nw=class extends ch{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,o,i,l,c,d,p){super(t,n,r,a),this._begin=new kp(o,this.id),this.beginCaptures=i,this._end=new kp(l||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=d||!1,this.patterns=p.patterns,this.hasMissingPatterns=p.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,a)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Np;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},wy=class extends ch{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,n,r,a,o,i,l,c,d){super(t,n,r,a),this._begin=new kp(o,this.id),this.beginCaptures=i,this.whileCaptures=c,this._while=new kp(l,Mj),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Np;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,a){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,a)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Np,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"ï¿¿"),this._cachedCompiledWhilePatterns}},jj=class Kr{static createCaptureRule(t,n,r,a,o){return t.registerRule(i=>new wX(n,i,r,a,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new TX(t.$vscodeTextmateLocation,t.id,t.name,t.match,Kr._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Aj({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new wD(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Kr._compilePatterns(o,n,r))}return t.while?new wy(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Kr._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Kr._compileCaptures(t.whileCaptures||t.captures,n,r),Kr._compilePatterns(t.patterns,n,r)):new Nw(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Kr._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Kr._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Kr._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let o=0;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const l=parseInt(i,10);l>o&&(o=l)}for(let i=0;i<=o;i++)a[i]=null;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const l=parseInt(i,10);let c=0;t[i].patterns&&(c=Kr.getCompiledRuleId(t[i],n,r)),a[l]=Kr.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,c)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let o=0,i=t.length;o<i;o++){const l=t[o];let c=-1;if(l.include){const d=Pj(l.include);switch(d.kind){case 0:case 1:c=Kr.getCompiledRuleId(r[l.include],n,r);break;case 2:let p=r[d.ruleName];p&&(c=Kr.getCompiledRuleId(p,n,r));break;case 3:case 4:const h=d.scopeName,g=d.kind===4?d.ruleName:null,y=n.getExternalGrammar(h,r);if(y)if(g){let v=y.repository[g];v&&(c=Kr.getCompiledRuleId(v,n,y.repository))}else c=Kr.getCompiledRuleId(y.repository.$self,n,y.repository);break}}else c=Kr.getCompiledRuleId(l,n,r);if(c!==-1){const d=n.getRule(c);let p=!1;if((d instanceof wD||d instanceof Nw||d instanceof wy)&&d.hasMissingPatterns&&d.patterns.length===0&&(p=!0),p)continue;a.push(c)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},kp=class zj{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let a=0,o=[],i=!1;for(let l=0;l<r;l++)if(t.charAt(l)==="\\"&&l+1<r){const c=t.charAt(l+1);c==="z"?(o.push(t.substring(a,l)),o.push("$(?!\\n)(?<!\\n)"),a=l+2):(c==="A"||c==="G")&&(i=!0),l++}this.hasAnchor=i,a===0?this.source=t:(o.push(t.substring(a,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=EX.test(this.source):this.hasBackReferences=!1}clone(){return new zj(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(a=>t.substring(a.start,a.end));return xD.lastIndex=0,this.source.replace(xD,(a,o)=>Oj(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],a=[],o,i,l,c;for(o=0,i=this.source.length;o<i;o++)l=this.source.charAt(o),t[o]=l,n[o]=l,r[o]=l,a[o]=l,l==="\\"&&o+1<i&&(c=this.source.charAt(o+1),c==="A"?(t[o+1]="ï¿¿",n[o+1]="ï¿¿",r[o+1]="A",a[o+1]="A"):c==="G"?(t[o+1]="ï¿¿",n[o+1]="G",r[o+1]="ï¿¿",a[o+1]="G"):(t[o+1]=c,n[o+1]=c,r[o+1]=c,a[o+1]=c),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Np=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,n){this._items[t].source!==n&&(this._disposeCaches(),this._items[t].setSource(n))}compile(t){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new TD(t,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,n,r){let a=this._items.map(o=>o.resolveAnchors(n,r));return new TD(t,a,this._items.map(o=>o.ruleId))}},TD=class{constructor(t,n,r){this.regExps=n,this.rules=r,this.scanner=t.createOnigScanner(n)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let n=0,r=this.rules.length;n<r;n++)t.push(" - "+this.rules[n]+": "+this.regExps[n]);return t.join(` 435`)}findNextMatchSync(t,n,r){const a=this.scanner.findNextMatchSync(t,n,r);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}},v0=class{constructor(t,n){this.languageId=t,this.tokenType=n}},SX=class Rw{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new v0(t,8),this._embeddedLanguagesMatcher=new CX(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Rw._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new v0(0,0);_getBasicScopeAttributes=new Dj(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new v0(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Rw.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},CX=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const n=t.map(([r,a])=>Oj(r));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const n=t.match(this.scopesRegExp);if(n)return this.values.get(n[1])}},SD=class{constructor(t,n){this.stack=t,this.stoppedEarly=n}};function Bj(e,t,n,r,a,o,i,l){const c=t.content.length;let d=!1,p=-1;if(i){const y=AX(e,t,n,r,a,o);a=y.stack,r=y.linePos,n=y.isFirstLine,p=y.anchorPosition}const h=Date.now();for(;!d;){if(l!==0&&Date.now()-h>l)return new SD(a,!0);g()}return new SD(a,!1);function g(){const y=kX(e,t,n,r,a,p);if(!y){o.produce(a,c),d=!0;return}const v=y.captureIndices,x=y.matchedRuleId,C=v&&v.length>0?v[0].end>r:!1;if(x===xX){const S=a.getRule(e);o.produce(a,v[0].start),a=a.withContentNameScopesList(a.nameScopesList),Qf(e,t,n,a,o,S.endCaptures,v),o.produce(a,v[0].end);const A=a;if(a=a.parent,p=A.getAnchorPos(),!C&&A.getEnterPos()===r){a=A,o.produce(a,c),d=!0;return}}else{const S=e.getRule(x);o.produce(a,v[0].start);const A=a,k=S.getName(t.content,v),N=a.contentNameScopesList.pushAttributed(k,e);if(a=a.push(x,r,p,v[0].end===c,null,N,N),S instanceof Nw){const O=S;Qf(e,t,n,a,o,O.beginCaptures,v),o.produce(a,v[0].end),p=v[0].end;const I=O.getContentName(t.content,v),D=N.pushAttributed(I,e);if(a=a.withContentNameScopesList(D),O.endHasBackReferences&&(a=a.withEndRule(O.getEndWithResolvedBackReferences(t.content,v))),!C&&A.hasSameRuleAs(a)){a=a.pop(),o.produce(a,c),d=!0;return}}else if(S instanceof wy){const O=S;Qf(e,t,n,a,o,O.beginCaptures,v),o.produce(a,v[0].end),p=v[0].end;const I=O.getContentName(t.content,v),D=N.pushAttributed(I,e);if(a=a.withContentNameScopesList(D),O.whileHasBackReferences&&(a=a.withEndRule(O.getWhileWithResolvedBackReferences(t.content,v))),!C&&A.hasSameRuleAs(a)){a=a.pop(),o.produce(a,c),d=!0;return}}else if(Qf(e,t,n,a,o,S.captures,v),o.produce(a,v[0].end),a=a.pop(),!C){a=a.safePop(),o.produce(a,c),d=!0;return}}v[0].end>r&&(r=v[0].end,n=!1)}}function AX(e,t,n,r,a,o){let i=a.beginRuleCapturedEOL?0:-1;const l=[];for(let c=a;c;c=c.pop()){const d=c.getRule(e);d instanceof wy&&l.push({rule:d,stack:c})}for(let c=l.pop();c;c=l.pop()){const{ruleScanner:d,findOptions:p}=OX(c.rule,e,c.stack.endRule,n,r===i),h=d.findNextMatchSync(t,r,p);if(h){if(h.ruleId!==Mj){a=c.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(o.produce(c.stack,h.captureIndices[0].start),Qf(e,t,n,c.stack,o,c.rule.whileCaptures,h.captureIndices),o.produce(c.stack,h.captureIndices[0].end),i=h.captureIndices[0].end,h.captureIndices[0].end>r&&(r=h.captureIndices[0].end,n=!1))}else{a=c.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:i,isFirstLine:n}}function kX(e,t,n,r,a,o){const i=NX(e,t,n,r,a,o),l=e.getInjections();if(l.length===0)return i;const c=RX(l,e,t,n,r,a,o);if(!c)return i;if(!i)return c;const d=i.captureIndices[0].start,p=c.captureIndices[0].start;return p<d||c.priorityMatch&&p===d?c:i}function NX(e,t,n,r,a,o){const i=a.getRule(e),{ruleScanner:l,findOptions:c}=Uj(i,e,a.endRule,n,r===o),d=l.findNextMatchSync(t,r,c);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function RX(e,t,n,r,a,o,i){let l=Number.MAX_VALUE,c=null,d,p=0;const h=o.contentNameScopesList.getScopeNames();for(let g=0,y=e.length;g<y;g++){const v=e[g];if(!v.matcher(h))continue;const x=t.getRule(v.ruleId),{ruleScanner:C,findOptions:S}=Uj(x,t,null,r,a===i),A=C.findNextMatchSync(n,a,S);if(!A)continue;const k=A.captureIndices[0].start;if(!(k>=l)&&(l=k,c=A.captureIndices,d=A.ruleId,p=v.priority,l===a))break}return c?{priorityMatch:p===-1,captureIndices:c,matchedRuleId:d}:null}function Uj(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function OX(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function Qf(e,t,n,r,a,o,i){if(o.length===0)return;const l=t.content,c=Math.min(o.length,i.length),d=[],p=i[0].end;for(let h=0;h<c;h++){const g=o[h];if(g===null)continue;const y=i[h];if(y.length===0)continue;if(y.start>p)break;for(;d.length>0&&d[d.length-1].endPos<=y.start;)a.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?a.produceFromScopes(d[d.length-1].scopes,y.start):a.produce(r,y.start),g.retokenizeCapturedWithRuleId){const x=g.getName(l,i),C=r.contentNameScopesList.pushAttributed(x,e),S=g.getContentName(l,i),A=C.pushAttributed(S,e),k=r.push(g.retokenizeCapturedWithRuleId,y.start,-1,!1,null,C,A),N=e.createOnigString(l.substring(0,y.end));Bj(e,N,n&&y.start===0,y.start,k,a,!1,0),$j(N);continue}const v=g.getName(l,i);if(v!==null){const x=(d.length>0?d[d.length-1].scopes:r.contentNameScopesList).pushAttributed(v,e);d.push(new DX(x,y.end))}}for(;d.length>0;)a.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var DX=class{scopes;endPos;constructor(t,n){this.scopes=t,this.endPos=n}};function IX(e,t,n,r,a,o,i,l){return new $X(e,t,n,r,a,o,i,l)}function CD(e,t,n,r,a){const o=Ey(t,Ty),i=jj.getCompiledRuleId(n,r,a.repository);for(const l of o)e.push({debugSelector:t,matcher:l.matcher,ruleId:i,grammar:a,priority:l.priority})}function Ty(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(LX(t[a],r))return n=a+1,!0;return!1})}function LX(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var $X=class{constructor(t,n,r,a,o,i,l,c){if(this._rootScopeName=t,this.balancedBracketSelectors=i,this._onigLib=c,this._basicScopeAttributesProvider=new SX(r,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=AD(n,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const d of Object.keys(o)){const p=Ey(d,Ty);for(const h of p)this._tokenTypeMatchers.push({matcher:h.matcher,type:o[d]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},n=[],r=this._rootScopeName,a=t.lookup(r);if(a){const o=a.injections;if(o)for(let l in o)CD(n,l,o[l],this,a);const i=this._grammarRepository.injections(r);i&&i.forEach(l=>{const c=this.getExternalGrammar(l);if(c){const d=c.injectionSelector;d&&CD(n,d,c,this,c)}})}return n.sort((o,i)=>o.priority-i.priority),n}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const n=++this._lastRuleId,r=t(n);return this._ruleId2desc[n]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,n){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=AD(r,n&&n.$base),this._includedGrammars[t]}}tokenizeLine(t,n,r=0){const a=this._tokenize(t,n,!1,r);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(t,n,r=0){const a=this._tokenize(t,n,!0,r);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(t,n,r,a){this._rootId===-1&&(this._rootId=jj.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!n||n===Ow.NULL){o=!0;const p=this._basicScopeAttributesProvider.getDefaultAttributes(),h=this.themeProvider.getDefaults(),g=Ku.set(0,p.languageId,p.tokenType,null,h.fontStyle,h.foregroundId,h.backgroundId),y=this.getRule(this._rootId).getName(null,null);let v;y?v=dp.createRootAndLookUpScopeName(y,g,this):v=dp.createRoot("unknown",g),n=new Ow(null,this._rootId,-1,-1,!1,null,v,v)}else o=!1,n.reset();t=t+` 436`;const i=this.createOnigString(t),l=i.content.length,c=new MX(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),d=Bj(this,i,o,0,n,c,!0,a);return $j(i),{lineLength:l,lineTokens:c,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function AD(e,t){return e=eX(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var dp=class ri{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=t?.scopePath??null;for(const o of n)a=b0.push(a,o.scopeNames),r=new ri(r,a,o.encodedTokenAttributes);return r}static createRoot(t,n){return new ri(null,new b0(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),o=new b0(null,t),i=r.themeProvider.themeMatch(o),l=ri.mergeAttributes(n,a,i);return new ri(null,o,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return ri.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let a=-1,o=0,i=0;return r!==null&&(a=r.fontStyle,o=r.foregroundId,i=r.backgroundId),Ku.set(t,n.languageId,n.tokenType,null,a,o,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return ri._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const o of r)a=ri._pushAttributed(a,o,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),o=t.scopePath.push(n),i=r.themeProvider.themeMatch(o),l=ri.mergeAttributes(t.tokenAttributes,a,i);return new ri(t,o,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},Ow=class Pl{constructor(t,n,r,a,o,i,l,c){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=l,this.contentNameScopesList=c,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new Pl(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Pl._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?dp.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){Pl._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,o,i,l){return new Pl(this,t,n,r,a,o,i,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new Pl(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=dp.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new Pl(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,dp.fromExtension(r,n.contentNameScopesList))}},PX=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,n){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Ey(r,Ty).map(a=>a.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>Ey(r,Ty).map(a=>a.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const n of this.unbalancedBracketScopes)if(n(t))return!1;for(const n of this.balancedBracketScopes)if(n(t))return!0;return this.allowAny}},MX=class{constructor(t,n,r,a){this.balancedBracketSelectors=a,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,n){this.produceFromScopes(t.contentNameScopesList,n)}produceFromScopes(t,n){if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let a=t?.tokenAttributes??0,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=t?.getScopeNames()??[];for(const l of this._tokenTypeOverrides)l.matcher(i)&&(a=Ku.set(a,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(i))}if(o&&(a=Ku.set(a,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=n;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=n;return}const r=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:r}),this._lastTokenEndIndex=n}getResult(t,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let a=0,o=this._binaryTokens.length;a<o;a++)r[a]=this._binaryTokens[a];return r}},jX=class{constructor(t,n){this._onigLib=n,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,n){this._rawGrammars.set(t.scopeName,t),n&&this._injectionGrammars.set(t.scopeName,n)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,n,r,a,o){if(!this._grammars.has(t)){let i=this._rawGrammars.get(t);if(!i)return null;this._grammars.set(t,IX(t,i,n,r,a,o,this,this._onigLib))}return this._grammars.get(t)}},zX=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new jX(_y.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(_y.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new PX(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,o){const i=new hX(this._syncRegistry,t);for(;i.Q.length>0;)i.Q.map(l=>this._loadSingleGrammar(l.scopeName)),i.processQueue();return this._grammarForScopeName(t,n,r,a,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,o)}},Dw=Ow.NULL;let uh=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};uh.prototype.normal={};uh.prototype.property={};uh.prototype.space=void 0;function Fj(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new uh(n,r,t)}function Iw(e){return e.toLowerCase()}let Na=class{constructor(t,n){this.attribute=n,this.property=t}};Na.prototype.attribute="";Na.prototype.booleanish=!1;Na.prototype.boolean=!1;Na.prototype.commaOrSpaceSeparated=!1;Na.prototype.commaSeparated=!1;Na.prototype.defined=!1;Na.prototype.mustUseProperty=!1;Na.prototype.number=!1;Na.prototype.overloadedBoolean=!1;Na.prototype.property="";Na.prototype.spaceSeparated=!1;
vendor: 4,680 bytes, line 436
436Na.prototype.space=void 0;let BX=0;const At=pc(),lr=pc(),Lw=pc(),Me=pc(),vn=pc(),Mu=pc(),Fa=pc();function pc(){return 2**++BX}const $w=Object.freeze(Object.defineProperty({__proto__:null,boolean:At,booleanish:lr,commaOrSpaceSeparated:Fa,commaSeparated:Mu,number:Me,overloadedBoolean:Lw,spaceSeparated:vn},Symbol.toStringTag,{value:"Module"})),_0=Object.keys($w);let XS=class extends Na{constructor(t,n,r,a){let o=-1;if(super(t,n),kD(this,"space",a),typeof r=="number")for(;++o<_0.length;){const i=_0[o];kD(this,_0[o],(r&$w[i])===$w[i])}}};XS.prototype.defined=!0;function kD(e,t,n){n&&(e[t]=n)}function pd(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new XS(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Iw(r)]=r,n[Iw(o.attribute)]=r}return new uh(t,n,e.space)}const Hj=pd({properties:{ariaActiveDescendant:null,ariaAtomic:lr,ariaAutoComplete:null,ariaBusy:lr,ariaChecked:lr,ariaColCount:Me,ariaColIndex:Me,ariaColSpan:Me,ariaControls:vn,ariaCurrent:null,ariaDescribedBy:vn,ariaDetails:null,ariaDisabled:lr,ariaDropEffect:vn,ariaErrorMessage:null,ariaExpanded:lr,ariaFlowTo:vn,ariaGrabbed:lr,ariaHasPopup:null,ariaHidden:lr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vn,ariaLevel:Me,ariaLive:null,ariaModal:lr,ariaMultiLine:lr,ariaMultiSelectable:lr,ariaOrientation:null,ariaOwns:vn,ariaPlaceholder:null,ariaPosInSet:Me,ariaPressed:lr,ariaReadOnly:lr,ariaRelevant:null,ariaRequired:lr,ariaRoleDescription:vn,ariaRowCount:Me,ariaRowIndex:Me,ariaRowSpan:Me,ariaSelected:lr,ariaSetSize:Me,ariaSort:null,ariaValueMax:Me,ariaValueMin:Me,ariaValueNow:Me,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Gj(e,t){return t in e?e[t]:t}function Vj(e,t){return Gj(e,t.toLowerCase())}const UX=pd({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Mu,acceptCharset:vn,accessKey:vn,action:null,allow:null,allowFullScreen:At,allowPaymentRequest:At,allowUserMedia:At,alt:null,as:null,async:At,autoCapitalize:null,autoComplete:vn,autoFocus:At,autoPlay:At,blocking:vn,capture:null,charSet:null,checked:At,cite:null,className:vn,cols:Me,colSpan:null,content:null,contentEditable:lr,controls:At,controlsList:vn,coords:Me|Mu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:At,defer:At,dir:null,dirName:null,disabled:At,download:Lw,draggable:lr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:At,formTarget:null,headers:vn,height:Me,hidden:Lw,high:Me,href:null,hrefLang:null,htmlFor:vn,httpEquiv:vn,id:null,imageSizes:null,imageSrcSet:null,inert:At,inputMode:null,integrity:null,is:null,isMap:At,itemId:null,itemProp:vn,itemRef:vn,itemScope:At,itemType:vn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:At,low:Me,manifest:null,max:null,maxLength:Me,media:null,method:null,min:null,minLength:Me,multiple:At,muted:At,name:null,nonce:null,noModule:At,noValidate:At,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:At,optimum:Me,pattern:null,ping:vn,placeholder:null,playsInl
436ine:At,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:At,referrerPolicy:null,rel:vn,required:At,reversed:At,rows:Me,rowSpan:Me,sandbox:vn,scope:null,scoped:At,seamless:At,selected:At,shadowRootClonable:At,shadowRootDelegatesFocus:At,shadowRootMode:null,shape:null,size:Me,sizes:null,slot:null,span:Me,spellCheck:lr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Me,step:null,style:null,tabIndex:Me,target:null,title:null,translate:null,type:null,typeMustMatch:At,useMap:null,value:lr,width:Me,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:vn,axis:null,background:null,bgColor:null,border:Me,borderColor:null,bottomMargin:Me,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:At,declare:At,event:null,face:null,frame:null,frameBorder:null,hSpace:Me,leftMargin:Me,link:null,longDesc:null,lowSrc:null,marginHeight:Me,marginWidth:Me,noResize:At,noHref:At,noShade:At,noWrap:At,object:null,profile:null,prompt:null,rev:null,rightMargin:Me,rules:null,scheme:null,scrolling:lr,standby:null,summary:null,text:null,topMargin:Me,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Me,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:At,disableRemotePlayback:At,prefix:null,property:null,results:Me,security:null,unselectable:null},space:"html",transform:Vj}),FX=pd({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
436-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Fa,accentHeight:Me,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Me,amplitude:Me,arabicForm:null,ascent:Me,attributeName:null,attributeType:null,azimuth:Me,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Me,by:null,calcMode:null,capHeight:Me,className:vn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Me,diffuseConstant:Me,direction:null,display:null,dur:null,divisor:Me,dominantBaseline:null,download:At,dx:null,dy:null,edgeMode:null,editable:null,elevation:Me,enableBackground:null,end:null,event:null,exponent:Me,externalResourcesRequired:null,fill:null,fillOpacity:Me,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Mu,g2:Mu,glyphName:Mu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Me,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Me,horizOriginX:Me,horizOriginY:Me,id:null,ideographic:Me,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Me,k:Me,k1:Me,k2:Me,k3:Me,k4:
436Me,kernelMatrix:Fa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Me,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Me,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Me,overlineThickness:Me,paintOrder:null,panose1:null,path:null,pathLength:Me,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Me,pointsAtY:Me,pointsAtZ:Me,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Fa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Fa,rev:Fa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Fa,requiredFeatures:Fa,requiredFonts:Fa,requiredFormats:Fa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Me,specularExponent:Me,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Me,strikethroughThickness:Me,string:null,stroke:null,strokeDashArray:Fa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Me,strokeOpacity:Me,strokeWidth:null,style:null,surfaceScale:Me,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Fa,tabIndex:Me,tableValues:null,target:null,targetX:Me,targetY:Me,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Fa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Me,underlineThickness:Me,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Me,values:null,vAlphabetic:Me,vMathematical:Me,vectorEffect:null,vHanging:Me,vIdeographic:Me,version:null,vertAdvY:Me,vertOriginX:Me,vertOriginY:Me,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Me,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Gj}),qj=pd({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 2,543 bytes, line 436
436,space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Yj=pd({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Vj}),Wj=pd({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),HX=/[A-Z]/g,ND=/-[a-z]/g,GX=/^data[-\w.:]+$/i;function VX(e,t){const n=Iw(t);let r=t,a=Na;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&GX.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(ND,YX);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!ND.test(o)){let i=o.replace(HX,qX);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}a=XS}return new a(r,t)}function qX(e){return"-"+e.toLowerCase()}function YX(e){return e.charAt(1).toUpperCase()}const WX=Fj([Hj,UX,qj,Yj,Wj],"html"),Zj=Fj([Hj,FX,qj,Yj,Wj],"svg"),ZX=/["&'<>`]/g,KX=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,QX=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,XX=/[|\\{}()[\]^$+*?.]/g,RD=new WeakMap;function JX(e,t){if(e=e.replace(t.subset?eJ(t.subset):ZX,r),t.subset||t.escapeOnly)return e;return e.replace(KX,n).replace(QX,r);function n(a,o,i){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,i.charCodeAt(o+2),t)}function r(a,o,i){return t.format(a.charCodeAt(0),i.charCodeAt(o+1),t)}}function eJ(e){let t=RD.get(e);return t||(t=tJ(e),RD.set(e,t)),t}function tJ(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(XX,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const nJ=/[\dA-Fa-f]/;function rJ(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!nJ.test(String.fromCharCode(t))?r:r+";"}const aJ=/\d/;function oJ(e,t,n){const r="&#"+String(e);return n&&t&&!aJ.test(String.fromCharCode(t))?r:r+";"}const iJ=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","
436sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],E0={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"Â¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"Â",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"Ã",Aacute:"Ã",Acirc:"Ã",Atilde:"Ã",Auml:"Ã",Aring:"Ã
",AElig:"Ã",Ccedil:"Ã",Egrave:"Ã",Eacute:"Ã",Ecirc:"Ã",Euml:"Ã",Igrave:"Ã",Iacute:"Ã",Icirc:"Ã",Iuml:"Ã",ETH:"Ã",Ntilde:"Ã",Ograve:"Ã",Oacute:"Ã",Ocirc:"Ã",Otilde:"Ã",Ouml:"Ã",times:"Ã",Oslash:"Ã",Ugrave:"Ã",Uacute:"Ã",Ucirc:"Ã",Uuml:"Ã",Yacute:"Ã",THORN:"Ã",szlig:"Ã",agrave:"à ",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"Ã¥",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"Ã",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"Æ",Alpha:"Î",Beta:"Î",Gamma:"Î",Delta:"Î",Epsilon:"Î",Zeta:"Î",Eta:"Î",Theta:"Î",Iota:"Î",Kappa:"Î",Lambda:"Î",Mu:"Î",Nu:"Î",Xi:"Î",Omicron:"Î",Pi:"Î ",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Î¥",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"Ï",rho:"Ï",sigmaf:"Ï",sigma:"Ï",tau:"Ï",upsilon:"Ï
",phi:"Ï",chi:"Ï",psi:"Ï",omega:"Ï",thetasym:"Ï",upsih:"Ï",piv:"Ï",bull:"â¢",hellip:"â¦",prime:"â²",Prime:"â³",oline:"â¾",frasl:"â",weierp:"â",image:"â",real:"â",trade:"â¢",alefsym:"âµ",larr:"â",uarr:"â",rarr:"â",darr:"â",harr:"â",crarr:"âµ",lArr:"â",uArr:"â",rArr:"â",dArr:"â",hArr:"â",forall:"â",part:"â",exist:"â",empty:"â
",nabla:"â",isin:"â",notin:"â",ni:"â",prod:"â",sum:"â",minus:"â",lowast:"â",radic:"â",prop:"â",infin:"â",ang:"â ",and:"â§",or:"â¨",cap:"â©",cup:"âª",int:"â«",there4:"â´",sim:"â¼",cong:"â
",asymp:"â",ne:"â ",equiv:"â¡",le:"â¤",ge:"â¥",sub:"â",sup:"â",nsub
vendor: 37,341 bytes, lines 436-445
436:"â",sube:"â",supe:"â",oplus:"â",otimes:"â",perp:"â¥",sdot:"â ",lceil:"â",rceil:"â",lfloor:"â",rfloor:"â",lang:"â©",rang:"âª",loz:"â",spades:"â ",clubs:"â£",hearts:"â¥",diams:"â¦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Å",oelig:"Å",Scaron:"Å ",scaron:"Å¡",Yuml:"Ÿ",circ:"Ë",tilde:"Ë",ensp:"â",emsp:"â",thinsp:"â",zwnj:"â",zwj:"â",lrm:"â",rlm:"â",ndash:"â",mdash:"â",lsquo:"â",rsquo:"â",sbquo:"â",ldquo:"â",rdquo:"â",bdquo:"â",dagger:"â ",Dagger:"â¡",permil:"â°",lsaquo:"â¹",rsaquo:"âº",euro:"â¬"},sJ=["cent","copy","divide","gt","lt","not","para","times"],Kj={}.hasOwnProperty,Pw={};let ag;for(ag in E0)Kj.call(E0,ag)&&(Pw[E0[ag]]=ag);const lJ=/[^\dA-Za-z]/;function cJ(e,t,n,r){const a=String.fromCharCode(e);if(Kj.call(Pw,a)){const o=Pw[a],i="&"+o;return n&&iJ.includes(o)&&!sJ.includes(o)&&(!r||t&&t!==61&&lJ.test(String.fromCharCode(t)))?i:i+";"}return""}function uJ(e,t,n){let r=rJ(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=cJ(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const o=oJ(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function ju(e,t){return JX(e,Object.assign({format:uJ},t))}const dJ=/^>|^->|<!--|-->|--!>|<!-$/g,fJ=[">"],pJ=["<",">"];function hJ(e,t,n,r){return r.settings.bogusComments?"<?"+ju(e.value,Object.assign({},r.settings.characterReferences,{subset:fJ}))+">":"<!--"+e.value.replace(dJ,a)+"-->";function a(o){return ju(o,Object.assign({},r.settings.characterReferences,{subset:pJ}))}}function mJ(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const Ar=Xj(1),Qj=Xj(-1),gJ=[];function Xj(e){return t;function t(n,r,a){const o=n?n.children:gJ;let i=(r||0)+e,l=o[i];if(!a)for(;l&&$b(l);)i+=e,l=o[i];return l}}const yJ={}.hasOwnProperty;function Jj(e){return t;function t(n,r,a){return yJ.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const JS=Jj({body:vJ,caption:x0,colgroup:x0,dd:wJ,dt:xJ,head:x0,html:bJ,li:EJ,optgroup:TJ,option:SJ,p:_J,rp:OD,rt:OD,tbody:AJ,td:DD,tfoot:kJ,th:DD,thead:CJ,tr:NJ});function x0(e,t,n){const r=Ar(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&$b(r.value.charAt(0)))}function bJ(e,t,n){const r=Ar(n,t);return!r||r.type!=="comment"}function vJ(e,t,n){const r=Ar(n,t);return!r||r.type!=="comment"}function _J(e,t,n){const r=Ar(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function EJ(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&r.tagName==="li"}function xJ(e,t,n){const r=Ar(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function wJ(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function OD(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function TJ(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function SJ(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function CJ(e,t,n){const r=Ar(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function AJ(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function kJ(e,t,n){return!Ar(n,t)}function NJ(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function DD(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const RJ=Jj({body:IJ,colgroup:LJ,head:DJ,html:OJ,tbody:$J});function OJ(e){const t=Ar(e,-1);return!t||t.type!=="comment"}function DJ(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function IJ(e){const t=Ar(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&$b(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function LJ(e,t,n){const r=Qj(n,t),a=Ar(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&JS(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function $J(e,t,n){const r=Qj(n,t),a=Ar(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&JS(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const og={name:[[` 437\f\r &/=>`.split(""),` 438\f\r "&'/=>\``.split("")],[`\0 439\f\r "&'/<=>`.split(""),`\0 440\f\r "&'/<=>\``.split("")]],unquoted:[[` 441\f\r &>`.split(""),`\0 442\f\r "&'<=>\``.split("")],[`\0 443\f\r "&'<=>\``.split(""),`\0 444\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function PJ(e,t,n,r){const a=r.schema,o=a.space==="svg"?!1:r.settings.omitOptionalTags;let i=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const l=[];let c;a.space==="html"&&e.tagName==="svg"&&(r.schema=Zj);const d=MJ(r,e.properties),p=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,p&&(i=!1),(d||!o||!RJ(e,t,n))&&(l.push("<",e.tagName,d?" "+d:""),i&&(a.space==="svg"||r.settings.closeSelfClosing)&&(c=d.charAt(d.length-1),(!r.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(p),!i&&(!o||!JS(e,t,n))&&l.push("</"+e.tagName+">"),l.join("")}function MJ(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const o=jJ(e,a,t[a]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function jJ(e,t,n){const r=VX(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let i=e.quote,l;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const c=ju(r.attribute,Object.assign({},e.settings.characterReferences,{subset:og.name[a][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?FS:VS)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(l=ju(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:og.unquoted[a][o]}))),l!==n&&(e.settings.quoteSmart&&vy(n,i)>vy(n,e.alternative)&&(i=e.alternative),l=i+ju(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?og.single:og.double)[a][o],attribute:!0}))+i),c+(l&&"="+l))}const zJ=["<","&"];function ez(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:ju(e.value,Object.assign({},r.settings.characterReferences,{subset:zJ}))}function BJ(e,t,n,r){return r.settings.allowDangerousHtml?e.value:ez(e,t,n,r)}function UJ(e,t,n,r){return r.all(e)}const FJ=KS("type",{invalid:HJ,unknown:GJ,handlers:{comment:hJ,doctype:mJ,element:PJ,raw:BJ,root:UJ,text:ez}});function HJ(e){throw new Error("Expected node, not `"+e+"`")}function GJ(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const VJ={},qJ={},YJ=[];function WJ(e,t){const n=t||VJ,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:ZJ,all:KJ,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Cj,characterReferences:n.characterReferences||qJ,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Zj:WX,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function ZJ(e,t,n){return FJ(e,t,n,this)}function KJ(e){const t=[],n=e&&e.children||YJ;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function Sy(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[a]=o:a===r&&Object.assign(n,o);return n}function qs(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function QJ(e){return Array.isArray(e)?e:[e]}async function tz(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function e1(e){return!e||["plaintext","txt","text","plain"].includes(e)}function nz(e){return e==="ansi"||e1(e)}function t1(e){return e==="none"}function XJ(e){return t1(e)}function rz(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function zb(e,t=!1){if(e.length===0)return[["",0]];const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let o=0;o<n.length;o+=2){const i=t?n[o]+(n[o+1]||""):n[o];a.push([i,r]),r+=n[o].length,r+=n[o+1]?.length||0}return a}function JJ(e){const t=zb(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=a,i=0;for(const l of t){if(o<l.length)break;o-=l.length,i++}return{line:i,character:o}}function r(a,o){let i=0;for(let l=0;l<a;l++)i+=t[l].length;return i+=o,i}return{lines:t,indexToPos:n,posToIndex:r}}const n1="light-dark()",eee=["color","background-color"];function tee(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function nee(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const o=n.filter(i=>a.offset<i&&i<a.offset+a.content.length).map(i=>i-a.offset).sort((i,l)=>i-l);return o.length?tee(a,o):a})):e}function ree(e,t,n,r,a="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(p=>Cy(e.variants[p])),l=new Set(i.flatMap(p=>Object.keys(p))),c={},d=(p,h)=>{const g=h==="color"?"":h==="background-color"?"-bg":`-${h}`;return n+t[p]+(h==="color"?"":g)};return i.forEach((p,h)=>{for(const g of l){const y=p[g]||"inherit";if(h===0&&r&&eee.includes(g))if(r===n1&&i.length>1){const v=t.findIndex(A=>A==="light"),x=t.findIndex(A=>A==="dark");if(v===-1||x===-1)throw new Lr('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const C=i[v][g]||"inherit",S=i[x][g]||"inherit";c[g]=`light-dark(${C}, ${S})`,a==="css-vars"&&(c[d(h,g)]=y)}else c[g]=y;else a==="css-vars"&&(c[d(h,g)]=y)}}),o.htmlStyle=c,o}function Cy(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&ea.Italic&&(t["font-style"]="italic"),e.fontStyle&ea.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&ea.Underline&&n.push("underline"),e.fontStyle&ea.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function Mw(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const az=new WeakMap;function Bb(e,t){az.set(e,t)}function Rp(e){return az.get(e)}let Ub=class oz{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new oz(Object.fromEntries(QJ(n).map(r=>[r,Dw])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,a]=t;this.lang=r,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return aee(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function aee(e){const t=[],n=new Set;function r(a){if(n.has(a))return;n.add(a);const o=a?.nameScopesList?.scopeName;o&&t.push(o),a.parent&&r(a.parent)}return r(e),t}function oee(e,t){if(!(e instanceof Ub))throw new Lr("Invalid grammar state");return e.getInternalStack(t)}function iee(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(i){if(typeof i=="number"){if(i<0||i>n.source.length)throw new Lr(`Invalid decoration offset: ${i}. Code length: ${n.source.length}`);return{...a.indexToPos(i),offset:i}}else{const l=a.lines[i.line];if(l===void 0)throw new Lr(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${a.lines.length}`);let c=i.character;if(c<0&&(c=l.length+c),c<0||c>l.length)throw new Lr(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${l.length}`);return{...i,character:c,offset:a.posToIndex(i.line,c)}}};const a=JJ(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));see(o),e.set(n.meta,{decorations:o,converter:a,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const r=t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return nee(n,r)},code(n){if(!this.options.decorations?.length)return;const r=t(this),a=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(a.length!==r.converter.lines.length)throw new Lr(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(p,h,g,y){const v=a[p];let x="",C=-1,S=-1;if(h===0&&(C=0),g===0&&(S=0),g===Number.POSITIVE_INFINITY&&(S=v.children.length),C===-1||S===-1)for(let k=0;k<v.children.length;k++)x+=iz(v.children[k]),C===-1&&x.length===h&&(C=k+1),S===-1&&x.length===g&&(S=k+1);if(C===-1)throw new Lr(`Failed to find start index for decoration ${JSON.stringify(y.start)}`);if(S===-1)throw new Lr(`Failed to find end index for decoration ${JSON.stringify(y.end)}`);const A=v.children.slice(C,S);if(!y.alwaysWrap&&A.length===v.children.length)l(v,y,"line");else if(!y.alwaysWrap&&A.length===1&&A[0].type==="element")l(A[0],y,"token");else{const k={type:"element",tagName:"span",properties:{},children:A};l(k,y,"wrapper"),v.children.splice(C,A.length,k)}}function i(p,h){a[p]=l(a[p],h,"line")}function l(p,h,g){const y=h.properties||{},v=h.transform||(x=>x);return p.tagName=h.tagName||"span",p.properties={...p.properties,...y,class:p.properties.class},h.properties?.class&&rz(p,h.properties.class),p=v(p,g)||p,p}const c=[],d=r.decorations.sort((p,h)=>h.start.offset-p.start.offset||p.end.offset-h.end.offset);for(const p of d){const{start:h,end:g}=p;if(h.line===g.line)o(h.line,h.character,g.character,p);else if(h.line<g.line){o(h.line,h.character,Number.POSITIVE_INFINITY,p);for(let y=h.line+1;y<g.line;y++)c.unshift(()=>i(y,p));o(g.line,0,g.character,p)}}c.forEach(p=>p())}}}function see(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Lr(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],o=n.start.offset<=a.start.offset&&a.start.offset<n.end.offset,i=n.start.offset<a.end.offset&&a.end.offset<=n.end.offset,l=a.start.offset<=n.start.offset&&n.start.offset<a.end.offset,c=a.start.offset<n.end.offset&&n.end.offset<=a.end.offset;if(o||i||l||c){if(o&&i||l&&c||l&&n.start.offset===n.end.offset||i&&a.start.offset===a.end.offset)continue;throw new Lr(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function iz(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(iz).join(""):""}const lee=[iee()];function Ay(e){const t=cee(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...lee]}function cee(e){const t=[],n=[],r=[];for(const a of e)switch(a.enforce){case"pre":t.push(a);break;case"post":n.push(a);break;default:r.push(a)}return{pre:t,post:n,normal:r}}var Ul=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],w0={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function uee(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function ID(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function dee(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)w0[r]&&t.push({type:"setDecoration",value:w0[r]});else if(r<=29){const a=w0[r-20];a&&(t.push({type:"resetDecoration",value:a}),a==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Ul[r-30]}});else if(r===38){const a=ID(e);a&&t.push({type:"setForegroundColor",value:a})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Ul[r-40]}});else if(r===48){const a=ID(e);a&&t.push({type:"setBackgroundColor",value:a})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Ul[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ul[r-100+8]}})}return t}function fee(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let o=0;do{const i=uee(r,o),l=i.sequence?r.substring(o,i.startPosition):r.substring(o);if(l.length>0&&a.push({value:l,foreground:e,background:t,decorations:new Set(n)}),i.sequence){const c=dee(i.sequence);for(const d of c)d.type==="resetAll"?(e=null,t=null,n.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&n.delete(d.value);for(const d of c)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&n.add(d.value)}o=i.position}while(o<r.length);return a}}}var pee={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function hee(e=pee){function t(l){return e[l]}function n(l){return`#${l.map(c=>Math.max(0,Math.min(c,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let d=0;d<Ul.length;d++)r.push(t(Ul[d]));let l=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let p=0;p<6;p++)for(let h=0;h<6;h++)r.push(n([l[d],l[p],l[h]]));let c=8;for(let d=0;d<24;d++,c+=10)r.push(n([c,c,c]));return r}function o(l){return a()[l]}function i(l){switch(l.type){case"named":return t(l.name);case"rgb":return n(l.rgb);case"table":return o(l.index)}}return{value:i}}const mee={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function gee(e,t,n){const r=Sy(e,n),a=zb(t),o=Object.fromEntries(Ul.map(c=>{const d=`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`,p=e.colors?.[d];return[c,p||mee[c]]})),i=hee(o),l=fee();return a.map(c=>l.parse(c[0]).map(d=>{let p,h;d.decorations.has("reverse")?(p=d.background?i.value(d.background):e.bg,h=d.foreground?i.value(d.foreground):e.fg):(p=d.foreground?i.value(d.foreground):e.fg,h=d.background?i.value(d.background):void 0),p=qs(p,r),h=qs(h,r),d.decorations.has("dim")&&(p=yee(p));let g=ea.None;return d.decorations.has("bold")&&(g|=ea.Bold),d.decorations.has("italic")&&(g|=ea.Italic),d.decorations.has("underline")&&(g|=ea.Underline),d.decorations.has("strikethrough")&&(g|=ea.Strikethrough),{content:d.value,offset:c[1],color:p,bgColor:h,fontStyle:g}}))}function yee(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const r=t[1];if(r.length===8){const a=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${a}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const a=r[0],o=r[1],i=r[2],l=r[3],c=Math.round(Number.parseInt(`${l}${l}`,16)/2).toString(16).padStart(2,"0");return`#${a}${a}${o}${o}${i}${i}${c}`}else if(r.length===3){const a=r[0],o=r[1],i=r[2];return`#${a}${a}${o}${o}${i}${i}80`}}}const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function r1(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n,a=e.resolveLangAlias(n.lang||"text");if(e1(a)||t1(r))return zb(t).map(c=>[{content:c[0],offset:c[1]}]);const{theme:o,colorMap:i}=e.setTheme(r);if(a==="ansi")return gee(o,t,n);const l=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==l.name)throw new Lr(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Lr(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return vee(t,l,o,i,n)}function bee(...e){if(e.length===2)return Rp(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=r;if(e1(a)||t1(o))throw new Lr("Plain language does not have grammar state");if(a==="ansi")throw new Lr("ANSI language does not have grammar state");const{theme:i,colorMap:l}=t.setTheme(o),c=t.getLanguage(a);return new Ub(a1(n,c,i,l,r).stateStack,c.name,i.name)}function vee(e,t,n,r,a){const o=a1(e,t,n,r,a),i=new Ub(o.stateStack,t.name,n.name);return Bb(o.tokens,i),o.tokens}function a1(e,t,n,r,a){const o=Sy(n,a),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:l=500}=a,c=zb(e);let d=a.grammarState?oee(a.grammarState,n.name)??Dw:a.grammarContextCode!=null?a1(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:Dw,p=[];const h=[];for(let g=0,y=c.length;g<y;g++){const[v,x]=c[g];if(v===""){p=[],h.push([]);continue}if(i>0&&v.length>=i){p=[],h.push([{content:v,offset:x,color:"",fontStyle:0}]);continue}let C,S,A;a.includeExplanation&&(C=t.tokenizeLine(v,d,l),S=C.tokens,A=0);const k=t.tokenizeLine2(v,d,l),N=k.tokens.length/2;for(let O=0;O<N;O++){const I=k.tokens[2*O],D=O+1<N?k.tokens[2*O+2]:v.length;if(I===D)continue;const U=k.tokens[2*O+1],J=qs(r[Ku.getForeground(U)],o),P=Ku.getFontStyle(U),X={content:v.substring(I,D),offset:x+I,color:J,fontStyle:P};if(a.includeExplanation){const K=[];if(a.includeExplanation!=="scopeName")for(const ne of n.settings){let ae;switch(typeof ne.scope){case"string":ae=ne.scope.split(/,/).map(H=>H.trim());break;case"object":ae=ne.scope;break;default:continue}K.push({settings:ne,selectors:ae.map(H=>H.split(/ /))})}X.explanation=[];let Q=0;for(;I+Q<D;){const ne=S[A],ae=v.substring(ne.startIndex,ne.endIndex);Q+=ae.length,X.explanation.push({content:ae,scopes:a.includeExplanation==="scopeName"?_ee(ne.scopes):Eee(K,ne.scopes)}),A+=1}}p.push(X)}h.push(p),p=[],d=k.ruleStack}return{tokens:h,stateStack:d}}function _ee(e){return e.map(t=>({scopeName:t}))}function Eee(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];n[r]={scopeName:o,themeMatches:wee(e,o,t.slice(0,r))}}return n}function LD(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function xee(e,t,n){if(!LD(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)LD(e[r],n[a])&&(r-=1),a-=1;return r===-1}function wee(e,t,n){const r=[];for(const{selectors:a,settings:o}of e)for(const i of a)if(xee(i,t,n)){r.push(o);break}return r}function sz(e,t,n){const r=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),a=r.map(c=>{const d=r1(e,t,{...n,theme:c.theme}),p=Rp(d),h=typeof c.theme=="string"?c.theme:c.theme.name;return{tokens:d,state:p,theme:h}}),o=Tee(...a.map(c=>c.tokens)),i=o[0].map((c,d)=>c.map((p,h)=>{const g={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(g.explanation=p.explanation),o.forEach((y,v)=>{const{content:x,explanation:C,offset:S,...A}=y[d][h];g.variants[r[v].color]=A}),g})),l=a[0].state?new Ub(Object.fromEntries(a.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),a[0].state.lang):void 0;return l&&Bb(i,l),i}function Tee(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(c=>c[r]),o=t.map(()=>[]);t.forEach((c,d)=>c.push(o[d]));const i=a.map(()=>0),l=a.map(c=>c[0]);for(;l.every(c=>c);){const c=Math.min(...l.map(d=>d.content.length));for(let d=0;d<n;d++){const p=l[d];p.content.length===c?(o[d].push(p),i[d]+=1,l[d]=a[d][i[d]]):(o[d].push({...p,content:p.content.slice(0,c)}),l[d]={...p,content:p.content.slice(c),offset:p.offset+c})}}}return t}function ky(e,t,n){let r,a,o,i,l,c;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:p="--shiki-",colorsRendering:h="css-vars"}=n,g=Object.entries(n.themes).filter(S=>S[1]).map(S=>({color:S[0],theme:S[1]})).sort((S,A)=>S.color===d?-1:A.color===d?1:0);if(g.length===0)throw new Lr("`themes` option must not be empty");const y=sz(e,t,n);if(c=Rp(y),d&&n1!==d&&!g.find(S=>S.color===d))throw new Lr(`\`themes\` option must contain the defaultColor key \`${d}\``);const v=g.map(S=>e.getTheme(S.theme)),x=g.map(S=>S.color);o=y.map(S=>S.map(A=>ree(A,x,p,d,h))),c&&Bb(o,c);const C=g.map(S=>Sy(S.theme,n));a=$D(g,v,C,p,d,"fg",h),r=$D(g,v,C,p,d,"bg",h),i=`shiki-themes ${v.map(S=>S.name).join(" ")}`,l=d?void 0:[a,r].join(";")}else if("theme"in n){const d=Sy(n.theme,n);o=r1(e,t,n);const p=e.getTheme(n.theme);r=qs(p.bg,d),a=qs(p.fg,d),i=p.name,c=Rp(o)}else throw new Lr("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:r,themeName:i,rootStyle:l,grammarState:c}}function $D(e,t,n,r,a,o,i){return e.map((l,c)=>{const d=qs(t[c][o],n[c])||"inherit",p=`${r+l.color}${o==="bg"?"-bg":""}:${d}`;if(c===0&&a){if(a===n1&&e.length>1){const h=e.findIndex(x=>x.color==="light"),g=e.findIndex(x=>x.color==="dark");if(h===-1||g===-1)throw new Lr('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const y=qs(t[h][o],n[h])||"inherit",v=qs(t[g][o],n[g])||"inherit";return`light-dark(${y}, ${v});${p}`}return d}return i==="css-vars"?p:null}).filter(l=>!!l).join(";")}function Ny(e,t,n,r={meta:{},options:n,codeToHast:(a,o)=>Ny(e,a,o),codeToTokens:(a,o)=>ky(e,a,o)}){let a=t;for(const v of Ay(n))a=v.preprocess?.call(r,a,n)||a;let{tokens:o,fg:i,bg:l,themeName:c,rootStyle:d,grammarState:p}=ky(e,a,n);const{mergeWhitespaces:h=!0,mergeSameStyleTokens:g=!1}=n;h===!0?o=Cee(o):h==="never"&&(o=Aee(o)),g&&(o=kee(o));const y={...r,get source(){return a}};for(const v of Ay(n))o=v.tokens?.call(y,o)||o;return See(o,{...n,fg:i,bg:l,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??d},y,p)}function See(e,t,n,r=Rp(e)){const a=Ay(t),o=[],i={type:"root",children:[]},{structure:l="classic",tabindex:c="0"}=t,d={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?d.style=t.rootStyle:d.style=`background-color:${t.bg};color:${t.fg}`),c!==!1&&c!=null&&(d.tabindex=c.toString());for(const[x,C]of Object.entries(t.meta||{}))x.startsWith("_")||(d[x]=C);let p={type:"element",tagName:"pre",properties:d,children:[],data:t.data},h={type:"element",tagName:"code",properties:{},children:o};const g=[],y={...n,structure:l,addClassToHast:rz,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return p},get code(){return h},get lines(){return g}};if(e.forEach((x,C)=>{C&&(l==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&o.push({type:"text",value:` 445`}));let S={type:"element",tagName:"span",properties:{class:"line"},children:[]},A=0;for(const k of x){let N={type:"element",tagName:"span",properties:{...k.htmlAttrs},children:[{type:"text",value:k.content}]};const O=Mw(k.htmlStyle||Cy(k));O&&(N.properties.style=O);for(const I of a)N=I?.span?.call(y,N,C+1,A,S,k)||N;l==="inline"?i.children.push(N):l==="classic"&&S.children.push(N),A+=k.content.length}if(l==="classic"){for(const k of a)S=k?.line?.call(y,S,C+1)||S;g.push(S),o.push(S)}else l==="inline"&&g.push(S)}),l==="classic"){for(const x of a)h=x?.code?.call(y,h)||h;p.children.push(h);for(const x of a)p=x?.pre?.call(y,p)||p;i.children.push(p)}else if(l==="inline"){const x=[];let C={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const A of i.children)A.type==="element"&&A.tagName==="br"?(x.push(C),C={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(A.type==="element"||A.type==="text")&&C.children.push(A);x.push(C);let S={type:"element",tagName:"code",properties:{},children:x};for(const A of a)S=A?.code?.call(y,S)||S;i.children=[];for(let A=0;A<S.children.length;A++){A>0&&i.children.push({type:"element",tagName:"br",properties:{},children:[]});const k=S.children[A];k.type==="element"&&i.children.push(...k.children)}}let v=i;for(const x of a)v=x?.root?.call(y,v)||v;return r&&Bb(v,r),v}function Cee(e){return e.map(t=>{const n=[];let r="",a;return t.forEach((o,i)=>{const l=!(o.fontStyle&&(o.fontStyle&ea.Underline||o.fontStyle&ea.Strikethrough));l&&o.content.match(/^\s+$/)&&t[i+1]?(a===void 0&&(a=o.offset),r+=o.content):r?(l?n.push({...o,offset:a,content:r+o.content}):n.push({content:r,offset:a},o),a=void 0,r=""):n.push(o)}),n})}function Aee(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,a,o,i]=r;if(!a&&!i)return n;const l=[{...n,offset:n.offset+a.length,content:o}];return a&&l.unshift({content:a,offset:n.offset}),i&&l.push({content:i,offset:n.offset+a.length+o.length}),l}))}function kee(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const a=n[n.length-1],o=Mw(a.htmlStyle||Cy(a)),i=Mw(r.htmlStyle||Cy(r)),l=a.fontStyle&&(a.fontStyle&ea.Underline||a.fontStyle&ea.Strikethrough),c=r.fontStyle&&(r.fontStyle&ea.Underline||r.fontStyle&ea.Strikethrough);!l&&!c&&o===i?a.content+=r.content:n.push({...r})}return n})}const Nee=WJ;function Ree(e,t,n){const r={meta:{},options:n,codeToHast:(o,i)=>Ny(e,o,i),codeToTokens:(o,i)=>ky(e,o,i)};let a=Nee(Ny(e,t,n,r));for(const o of Ay(n))a=o.postprocess?.call(r,a,n)||a;return a}const PD={light:"#333333",dark:"#bbbbbb"},MD={light:"#fffffe",dark:"#1e1e1e"},jD="__shiki_resolved";function o1(e){if(e?.[jD])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const l=t.settings?t.settings.find(c=>!c.name&&!c.scope):void 0;l?.settings?.foreground&&(r=l.settings.foreground),l?.settings?.background&&(n=l.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?PD.light:PD.dark),n||(n=t.type==="light"?MD.light:MD.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0;const o=new Map;function i(l){if(o.has(l))return o.get(l);a+=1;const c=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${c}`]?i(l):(o.set(l,c),c)}t.settings=t.settings.map(l=>{const c=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),d=l.settings?.background&&!l.settings.background.startsWith("#");if(!c&&!d)return l;const p={...l,settings:{...l.settings}};if(c){const h=i(l.settings.foreground);t.colorReplacements[h]=l.settings.foreground,p.settings.foreground=h}if(d){const h=i(l.settings.background);t.colorReplacements[h]=l.settings.background,p.settings.background=h}return p});for(const l of Object.keys(t.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!t.colors[l]?.startsWith("#")){const c=i(t.colors[l]);t.colorReplacements[c]=t.colors[l],t.colors[l]=c}return Object.defineProperty(t,jD,{enumerable:!1,writable:!1,value:!0}),t}async function lz(e){return Array.from(new Set((await Promise.all(e.filter(t=>!nz(t)).map(async t=>await tz(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function cz(e){return(await Promise.all(e.map(async t=>XJ(t)?null:o1(await tz(t))))).filter(t=>!!t)}let Oee=3;function Dee(e,t=3){t>Oee||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let ku=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function uz(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new ku(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class Iee extends zX{constructor(t,n,r,a={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=o1(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=_y.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=uz(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),r=n.filter(([a,o])=>!o);if(r.length){const a=n.filter(([o,i])=>i?(i.embeddedLanguages||i.embeddedLangs)?.some(l=>r.map(([c])=>c).includes(l)):!1).filter(o=>!r.includes(o));throw new ku(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${a.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[a,o]of n)this._resolver.addLanguage(o);for(const[a,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const r of n)this._langGraph.set(r,this._langMap.get(r))}}class Lee{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)}
445,n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let a=1;a<=n.length;a++){const o=n.slice(0,a).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let Df=0;function $ee(e){Df+=1,e.warnings!==!1&&Df>=10&&Df%10===0&&console.warn(`[Shiki] ${Df} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new ku("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(o1),a=new Lee(e.engine,n),o=new Iee(a,r,n,e.langAlias);let i;function l(k){return uz(k,e.langAlias)}function c(k){S();const N=o.getGrammar(typeof k=="string"?k:k.name);if(!N)throw new ku(`Language \`${k}\` not found, you may need to load it first`);return N}function d(k){if(k==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};S();const N=o.getTheme(k);if(!N)throw new ku(`Theme \`${k}\` not found, you may need to load it first`);return N}function p(k){S();const N=d(k);i!==k&&(o.setTheme(N),i=k);const O=o.getColorMap();return{theme:N,colorMap:O}}function h(){return S(),o.getLoadedThemes()}function g(){return S(),o.getLoadedLanguages()}function y(...k){S(),o.loadLanguages(k.flat(1))}async function v(...k){return y(await lz(k))}function x(...k){S();for(const N of k.flat(1))o.loadTheme(N)}async function C(...k){return S(),x(await cz(k))}function S(){if(t)throw new ku("Shiki instance has been disposed")}function A(){t||(t=!0,o.dispose(),Df-=1)}return{setTheme:p,getTheme:d,getLanguage:c,getLoadedThemes:h,getLoadedLanguages:g,resolveLangAlias:l,loadLanguage:v,loadLanguageSync:y,loadTheme:C,loadThemeSync:x,dispose:A,[Symbol.dispose]:A}}async function Pee(e){e.engine||Dee("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([cz(e.themes||[]),lz(e.langs||[]),e.engine]);return $ee({...e,themes:t,langs:n,engine:r})}async function Mee(e){const t=await Pee(e);return{getLastGrammarState:(...n)=>bee(t,...n),codeToTokensBase:(n,r)=>r1(t,n,r),codeToTokensWithThemes:(n,r)=>sz(t,n,r),codeToTokens:(n,r)=>ky(t,n,r),codeToHast:(n,r)=>Ny(t,n,r),codeToHtml:(n,r)=>Ree(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function dz(e){return"children"in e?fz(e):"value"in e?e.value:""}function jee(e){return e.type==="text"?e.value:"children"in e?fz(e):""}function fz(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=jee(e.children[t]);return n.join("")}const zee={"tailing-curly-colon":(e,t)=>{const n=dz(t),r=n.match(/(.+)\{:([\w-]+)\}$/);if(r)return{type:"inline",code:r[1]??n,lang:r.at(2)}}},zD="language-",Bee=(e,t)=>{const n=t.children[0];if(!n||n.type!=="element"||n.tagName!=="code"||!n.properties)return;const r=n.properties.className,a=Array.isArray(r)?r.find(o=>typeof o=="string"&&o.startsWith(zD)):void 0;return{type:"pre",lang:typeof a=="string"?a.slice(zD.length):void 0,code:dz(n),meta:n.data?.meta??n.properties.metastring?.toString()??""}},Uee="language-";function Fee(e,t){const{addLanguageClass:n=!1,parseMetaString:r,cache:a,defaultLanguage:o,fallbackLanguage:i,onError:l,stripEndNewline:c=!0,inline:d=!1,lazy:p=!1,...h}=t;function g(y,v,x="",C={}){const S=`${y}:${x}:${v}`,A=a?.get(S);if(A)return A;const k={...h,lang:y,meta:{...h.meta,...C,__raw:x}};n&&(k.transformers=[...k.transformers??[],{name:"rehype-shiki:code-language-class",code(N){return this.addClassToHast(N,`${Uee}${y}`),N}}]),c&&v.endsWith(` 446`)&&(v=v.slice(0,-1));try{const N=e.codeToHast(v,k);return a?.set(S,N),N}catch(N){if(l)l(N);else throw N}}return y=>{const v=[];
446if(fd(y,"element",(x,C,S)=>{let A;if(!S||C==null)return;if(x.tagName==="pre")A=Bee;else if(x.tagName==="code"&&d)A=zee[d];else return;const k=A(y,x);if(!k)return;let N,O=!1;if(k.lang?e.getLoadedLanguages().includes(k.lang)||nz(k.lang)?N=k.lang:p?(O=!0,N=k.lang):i&&(N=i):N=o,!N)return;const I=k.meta?r?.(k.meta,x,y):void 0,D=U=>{const J=g(U,k.code,k.meta,I??{});if(J){if(k.type==="inline"){const P=J.children[0];P.type==="element"&&P.tagName==="pre"&&(P.tagName="span")}S.children[C]=J}};if(O)try{v.push(e.loadLanguage(N).then(()=>D(N)).catch(U=>{if(i)D(i);else if(l)l(U);else throw U}))}catch(U){if(i)return D(i);if(l)l(U);else throw U}else D(N);return"skip"}),v.length>0){async function x(){await Promise.all(v)}return x()}}}function Hee(e){if(!e)return null;const t=e.match(/\{([\d,-]+)\}/);return t?t[1].split(",").flatMap(n=>{const r=n.split("-").map(a=>Number.parseInt(a,10));return r.length===1?[r[0]]:Array.from({length:r[1]-r[0]+1},(a,o)=>r[0]+o)}):null}const BD=Symbol("highlighted-lines");function Gee(e={}){const{className:t="highlighted",zeroIndexed:n=!1}=e;return{name:"@shikijs/transformers:meta-highlight",line(r,a){if(!this.options.meta?.__raw)return;const o=this.meta;o[BD]??=Hee(this.options.meta.__raw);const i=o[BD]??[],l=n?a-1:a;return i.includes(l)&&this.addClassToHast(r,t),r}}}function Vee(e){return e?Array.from(e.matchAll(/\/((?:\\.|[^/])+)\//g)).map(t=>t[1].replace(/\\(.)/g,"$1")):[]}function qee(e={}){const{className:t="highlighted-word"}=e;return{name:"@shikijs/transformers:meta-word-highlight",preprocess(n,r){if(!this.options.meta?.__raw)return;const a=Vee(this.options.meta.__raw);r.decorations||=[];for(const o of a){const i=Yee(n,o);for(const l of i)r.decorations.push({start:l,end:l+o.length,properties:{class:t}})}}}}function Yee(e,t){const n=[];let r=0;for(;;){const a=e.indexOf(t,r);if(a===-1||a>=e.length||a<r)break;n.push(a),r=a+t.length}return n}function hd(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function Wee(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const i1=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Pr=String.raw;function md(e,t){if(e==null)throw new Error(t??"Value expected");return e}const pz=Pr`\[\^?`,hz=`c.? | C(?:-.?)?|${Pr`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Pr`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Pr`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Pr`o\{[^\}]*\}?`}|${Pr`\d{1,3}`}`,s1=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,ig=new RegExp(Pr` 447 \\ (?: 448 ${hz} 449 | [gk]<[^>]*>? 450 | [gk]'[^']*'? 451 | . 452 ) 453 | \( (?: 454 \? (?: 455 [:=!>({] 456 | <[=!] 457 | <[^>]*> 458 | '[^']*' 459 | ~\|? 460 | #(?:[^)\\]|\\.?)* 461 | [^:)]*[:)] 462 )? 463 | \*[^\)]*\)? 464 )? 465 | (?:${s1.source})+ 466 | ${pz} 467 | . 468`.replace(/\s+/g,""),"gsu"),T0=new RegExp(Pr` 469 \\ (?: 470 ${hz} 471 | . 472 ) 473 | \[:(?:\^?\p{Alpha}+|\^):\] 474 | ${pz} 475 | && 476 | . 477`.replace(/\s+/g,""),"gsu");function Zee(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=hte(n.flags),a=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX(){return a.at(-1)},numOpenGroups:0,popModX(){a.pop()},pushModX(h){a.push(h)},replaceCurrentModX(h){a[a.length-1]=h},singleline:n.rules.singleline};let i=[],l;for(ig.lastIndex=0;l=ig.exec(e);){const h=Kee(o,e,l[0],ig.lastIndex);h.tokens?i.push(...h.tokens):h.token&&i.push(h.token),h.lastIndex!==void 0&&(ig.lastIndex=h.lastIndex)}const c=[];let d=0;i.filter(h=>h.type==="GroupOpen").forEach(h=>{h.kind==="capturing"?h.number=++d:h.raw==="("&&c.push(h)}),d||c.forEach((h,g)=>{h.kind="capturing",h.number=g+1});const p=d||c.length;return{tokens:i.map(h=>h.type==="EscapedNumber"?gte(h,p):h).flat(),flags:r}}function Kee(e,t,n,r){const[a,o]=n;if(n==="["||n==="[^"){const i=Qee(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(a==="\\"){if("AbBGyYzZ".includes(o))return{token:UD(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:ste(n)}}
vendor: 9,871 bytes, lines 477-478
477if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:gz(n)}}if(o==="K")return{token:yz("keep",n)};if(o==="N"||o==="R")return{token:Fl("newline",n,{negate:o==="N"})};if(o==="O")return{token:Fl("any",n)};if(o==="X")return{token:Fl("text_segment",n)};const i=mz(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(a==="("){if(o==="*")return{token:dte(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:ute(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:vu("group",n)};if(n==="(?>")return{token:vu("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:vu(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:vu("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:vu("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:ate(n)}}if(e.getCurrentModX()){if(n==="#"){const i=t.indexOf(` 478`,r);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(n)){const i=/\s+/y;return i.lastIndex=r,{lastIndex:i.exec(t)?i.lastIndex:r}}}if(n===".")return{token:Fl("dot",n)};if(n==="^"||n==="$"){const i=e.singleline?{"^":Pr`\A`,$:Pr`\Z`}[n]:n;return{token:UD(i,n)}}return n==="|"?{token:Jee(n)}:s1.test(n)?{tokens:yte(n)}:{token:Wi(hd(n),n)}}function Qee(e,t,n){const r=[FD(t[1]==="^",t)];let a=1,o;for(T0.lastIndex=n;o=T0.exec(e);){const i=o[0];if(i[0]==="["&&i[1]!==":")a++,r.push(FD(i[1]==="^",i));else if(i==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(Wi(93,i));else if(a--,r.push(ete(i)),!a)break}else{const l=Xee(i);Array.isArray(l)?r.push(...l):r.push(l)}}return{tokens:r,lastIndex:T0.lastIndex||e.length}}function Xee(e){if(e[0]==="\\")return mz(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!i1.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return Fl("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?tte(e):e==="&&"?nte(e):Wi(hd(e),e)}function mz(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return cte(e);if("dDhHsSwW".includes(n))return fte(e);if(e.startsWith(Pr`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return pte(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{const r=e.split(/\\x/).slice(1).map(i=>parseInt(i,16)),a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),o=new TextEncoder;return[...a].map(i=>{const l=[...o.encode(i)].map(c=>`\\x${c.toString(16)}`).join("");return Wi(hd(i),l)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return Wi(mte(e),e);if(HD.has(n))return Wi(HD.get(n),e);if(/\d/.test(n))return rte(t,e);if(e==="\\")throw new Error(Pr`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Wi(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function Jee(e){return{type:"Alternator",raw:e}}function UD(e,t){return{type:"Assertion",kind:e,raw:t}}function gz(e){return{type:"Backreference",raw:e}}function Wi(e,t){return{type:"Character",value:e,raw:t}}function ete(e){return{type:"CharacterClassClose",raw:e}}function tte(e){return{type:"CharacterClassHyphen",raw:e}}function nte(e){return{type:"CharacterClassIntersector",raw:e}}function FD(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function Fl(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function yz(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:md(n.flags),raw:t}}function rte(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function ate(e){return{type:"GroupClose",raw:e}}function vu(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function ote(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function ite(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function ste(e){return{type:"Subroutine",raw:e}}const lte=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),HD=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function cte(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return Wi(hd(t.toUpperCase())-64,e)}function ute(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??="";const a=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=VD(n),i=VD(r),l={};if(o&&(l.enable=o),i&&(l.disable=i),e.endsWith(")"))return t.replaceCurrentModX(a),yz("flags",e,{flags:l});if(e.endsWith(":"))return t.pushModX(a),t.numOpenGroups++,vu("group",e,{...(o||i)&&{flags:l}});throw new Error(`Unexpected flag modifier "${e}"`)}function dte(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:r,args:a}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const o=a?a.split(",").filter(p=>p!=="").map(p=>/^[+-]?\d+$/.test(p)?+p:p):[],[i,l,c]=o,d=lte.has(n)?n.toLowerCase():"custom";switch(d){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof i=="string")throw new Error(`Named callout argument must be a number "${i}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(o.length===2&&(typeof l=="number"||!/^[<>X]$/.test(l)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${l}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${i}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(typeof l=="number"||!/^(?:[<>!=]=|[<>])$/.test(l))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${l}"`);if(typeof c=="string"&&!/^[A-Za-z_]\w*$/.test(c))throw new Error(`Named callout argument three must be a tag or number "${c}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${d}"`)}return ote(d,r??null,a?.split(",")??null,e)}function GD(e){let t=null,n,r;if(e[0]==="{"){const{minStr:a,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,i=1e5;if(+a>i||o&&+o>i)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+a,r=o===void 0?+a:o===""?1/0:+o,n>r&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=e[0]==="+"?1:0,r=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return ite(t,n,r,e)}function fte(e){const t=e[1].toLowerCase();return Fl({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function pte(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return Fl("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function VD(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function hte(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){const r=e[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(e.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[n+2]==="g"?"grapheme":"word",n+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return t}function mte(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function gte(e,t){const{raw:n,inCharClass:r}=e,a=n.slice(1);if(!r&&(a!=="0"&&a.length===1||a[0]!=="0"&&+a<=t))return[gz(n)];const o=[],i=a.match(/^[0-7]+|\d/g);for(let l=0;l<i.length;l++){const c=i[l];let d;if(l===0&&c!=="8"&&c!=="9"){if(d=parseInt(c,8),d>127)throw new Error(Pr`Octal encoded byte above 177 unsupported "${n}"`)}else d=hd(c);o.push(Wi(d,(l===0?"\\":"")+c))}return o}function yte(e){const t=[],n=new RegExp(s1,"gy");let r;for(;r=n.exec(e);){const a=r[0];if(a[0]==="{"){const o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(a);if(o){const{min:i,max:l}=o.groups;if(+i>
vendor: 1,346 bytes, line 478
478+l&&a.endsWith("?")){n.lastIndex--,t.push(GD(a.slice(0,-1)));continue}}}t.push(GD(a))}return t}function bz(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(r=>t[r]===n[r])}function bte(e){return vte.has(e.type)}const vte=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function vz(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=Zee(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),a=(g,y)=>{const v=r.tokens[o.nextIndex];switch(o.parent=g,o.nextIndex++,v.type){case"Alternator":return Ql();case"Assertion":return _te(v);case"Backreference":return Ete(v,o);case"Character":return Fb(v.value,{useLastValid:!!y.isCheckingRangeEnd});case"CharacterClassHyphen":return xte(v,o,y);case"CharacterClassOpen":return wte(v,o,y);case"CharacterSet":return Tte(v,o);case"Directive":return Rte(v.kind,{flags:v.flags});case"GroupOpen":return Ste(v,o,y);case"NamedCallout":return Dte(v.kind,v.tag,v.arguments);case"Quantifier":return Cte(v,o);
vendor: 2,018 bytes, line 478
478case"Subroutine":return Ate(v,o);default:throw new Error(`Unexpected token type "${v.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:a},i=Lte(Ote(r.flags));let l=i.body[0];for(;o.nextIndex<r.tokens.length;){const g=a(l,{});g.type==="Alternative"?(i.body.push(g),l=g):l.body.push(g)}const{capturingGroups:c,hasNumberedRef:d,namedGroupsByName:p,subroutines:h}=o;if(d&&p.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:g}of h)if(typeof g=="number"){if(g>c.length)throw new Error("Subroutine uses a group number that's not defined");g&&(c[g-1].isSubroutined=!0)}else if(p.has(g)){if(p.get(g).length>1)throw new Error(Pr`Subroutine uses a duplicate group name "\g<${g}>"`);p.get(g)[0].isSubroutined=!0}else throw new Error(Pr`Subroutine uses a group name that's not defined "\g<${g}>"`);return i}function _te({kind:e}){return jw(md({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===Pr`\B`||e===Pr`\Y`})}function Ete({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),a=(o,i=!1)=>{const l=t.capturingGroups.length;let c=!1;if(o>l)if(t.skipBackrefValidation)c=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,zw(i?l+1-o:o,{orphan:c})};if(n){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(o)return a(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${e}"`);
vendor: 18,522 bytes, lines 478-575
478if(!t.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${e}"`);return zw(r)}return a(+r)}function xte(e,t,n){const{tokens:r,walk:a}=t,o=t.parent,i=o.body.at(-1),l=r[t.nextIndex];if(!n.isCheckingRangeEnd&&i&&i.type!=="CharacterClass"&&i.type!=="CharacterClassRange"&&l&&l.type!=="CharacterClassOpen"&&l.type!=="CharacterClassClose"&&l.type!=="CharacterClassIntersector"){const c=a(o,{...n,isCheckingRangeEnd:!0});if(i.type==="Character"&&c.type==="Character")return o.body.pop(),Nte(i,c);throw new Error("Invalid character class range")}return Fb(hd("-"))}function wte({negate:e},t,n){const{tokens:r,walk:a}=t,o=r[t.nextIndex],i=[Kg()];let l=WD(o);for(;l.type!=="CharacterClassClose";){if(l.type==="CharacterClassIntersector")i.push(Kg()),t.nextIndex++;else{const d=i.at(-1);d.body.push(a(d,n))}l=WD(r[t.nextIndex],o)}const c=Kg({negate:e});return i.length===1?c.body=i[0].body:(c.kind="intersection",c.body=i.map(d=>d.body.length===1?d.body[0]:d)),t.nextIndex++,c}function Tte({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:a,skipPropertyNameValidation:o,unicodePropertyMap:i}=r;if(e==="property"){const l=Hb(n);if(i1.has(l)&&!i?.has(l))e="posix",n=l;else return _u(n,{negate:t,normalizeUnknownPropertyNames:a,skipPropertyNameValidation:o,unicodePropertyMap:i})}return e==="posix"?Ite(n,{negate:t}):Bw(e,{negate:t})}function Ste(e,t,n){const{tokens:r,capturingGroups:a,namedGroupsByName:o,skipLookbehindValidation:i,walk:l}=t,c=$te(e),d=c.type==="AbsenceFunction",p=YD(c),h=p&&c.negate;if(c.type==="CapturingGroup"&&(a.push(c),c.name&&Wee(o,c.name,[]).push(c)),d&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let g=ZD(r[t.nextIndex]);for(;g.type!=="GroupClose";){if(g.type==="Alternator")c.body.push(Ql()),t.nextIndex++;else{const y=c.body.at(-1),v=l(y,{...n,isInAbsenceFunction:n.isInAbsenceFunction||d,isInLookbehind:n.isInLookbehind||p,isInNegLookbehind:n.isInNegLookbehind||h});if(y.body.push(v),(p||n.isInLookbehind)&&!i){const x="Lookbehind includes a pattern not allowed by Oniguruma";if(h||n.isInNegLookbehind){if(qD(v)||v.type==="CapturingGroup")throw new Error(x)}else if(qD(v)||YD(v)&&v.negate)throw new Error(x)}}g=ZD(r[t.nextIndex])}return t.nextIndex++,c}function Cte({kind:e,min:t,max:n},r){const a=r.parent,o=a.body.at(-1);if(!o||!bte(o))throw new Error("Quantifier requires a repeatable token");const i=Ez(e,t,n,o);return a.body.pop(),i}function Ate({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let a=e.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(a);if(o){const l=+o.groups.num,c=n.length;if(t.hasNumberedRef=!0,a={"":l,"+":c+l,"-":c+1-l}[o.groups.sign],a<1)throw new Error("Invalid subroutine number")}else a==="0"&&(a=0);const i=xz(a);return r.push(i),i}function kte(e,t){return{type:"AbsenceFunction",kind:e,body:dh(t?.body)}}function Ql(e){return{type:"Alternative",body:wz(e?.body)}}function jw(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!t?.negate),n}function zw(e,t){const n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function _z(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!Pte(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:dh(t?.body)}}function Fb(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:e}}function Kg(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:wz(e?.body)}}function Nte(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function Bw(e,t){const n=!!t?.negate,r={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(r.negate=n),(e==="text_segment"||e==="newline"&&!n)&&(r.variableLength=!0),r}function Rte(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:md(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function Ote(e){return{type:"Flags",...e}}function Mo(e){const t=e?.atomic,n=e?.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:dh(e?.body)}}function jl(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:dh(e?.body)}}function Dte(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function Ite(e,t){const n=!!t?.negate;if(!i1.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function Ez(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function Lte(e,t){return{type:"Regex",body:dh(t?.body),flags:e}}function xz(e){return{type:"Subroutine",ref:e}}function _u(e,t){const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=n.unicodePropertyMap?.get(Hb(e));if(!r){if(n.normalizeUnknownPropertyNames)r=Mte(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Pr`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function $te({flags:e,kind:t,name:n,negate:r,number:a}){switch(t){case"absence_repeater":return kte("repeater");case"atomic":return Mo({atomic:!0});case"capturing":return _z(a,{name:n});case"group":return Mo({flags:e});case"lookahead":case"lookbehind":return jl({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function dh(e){if(e===void 0)e=[Ql()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function wz(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function qD(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function YD(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function Pte(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function Mte(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function Hb(e){return e.replace(/[- _]+/g,"").toLowerCase()}function WD(e,t){return md(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function ZD(e){return md(e,"Unclosed group")}function fp(e,t,n=null){function r(o,i){for(let l=0;l<o.length;l++){const c=a(o[l],i,l,o);l=Math.max(-1,l+c)}}function a(o,i=null,l=null,c=null){let d=0,p=!1;const h={node:o,parent:i,key:l,container:c,root:e,remove(){sg(c).splice(Math.max(0,iu(l)+d),1),d--,p=!0},removeAllNextSiblings(){return sg(c).splice(iu(l)+1)},removeAllPrevSiblings(){const S=iu(l)+d;return d-=S,sg(c).splice(0,Math.max(0,S))},replaceWith(S,A={}){const k=!!A.traverse;c?c[Math.max(0,iu(l)+d)]=S:md(i,"Can't replace root node")[l]=S,k&&a(S,i,l,c),p=!0},replaceWithMultiple(S,A={}){const k=!!A.traverse;if(sg(c).splice(Math.max(0,iu(l)+d),1,...S),d+=S.length-1,k){let N=0;for(let O=0;O<S.length;O++)N+=a(S[O],i,iu(l)+O+N,c)}p=!0},skip(){p=!0}},{type:g}=o,y=t["*"],v=t[g],x=typeof y=="function"?y:y?.enter,C=typeof v=="function"?v:v?.enter;if(x?.(h,n),C?.(h,n),!p)switch(g){case"AbsenceFunction":case"CapturingGroup":case"Group":r(o.body,o);break;case"Alternative":case"CharacterClass":r(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":a(o.min,o,"min"),a(o.max,o,"max");break;case"LookaroundAssertion":r(o.body,o);break;case"Quantifier":a(o.body,o,"body");break;case"Regex":r(o.body,o),a(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${g}"`)}return v?.exit?.(h,n),y?.exit?.(h,n),d}return a(e),e}function sg(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function iu(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const jte=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function zte(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Bte(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const wo=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function l1(e,t,n,r){const a=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let i=0,l="";for(const c of e.matchAll(a)){const{0:d,groups:{$skip:p}}=c;if(!p&&(!r||r===wo.DEFAULT==!i)){n instanceof Function?l+=n(c,{context:i?wo.CHAR_CLASS:wo.DEFAULT,negated:o[o.length-1]}):l+=n;continue}d[0]==="["?(i++,o.push(d[1]==="^")):d==="]"&&i&&(i--,o.pop()),l+=d}return l}function Tz(e,t,n,r){l1(e,t,n,r)}function Ute(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const a=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=n;let o=0,i;for(;i=a.exec(e);){const{0:l,groups:{$skip:c}}=i;if(!c&&(!r||r===wo.DEFAULT==!o))return i;l==="["?o++:l==="]"&&o&&o--,a.lastIndex==i.index&&a.lastIndex++}return null}function lg(e,t,n){return!!Ute(e,t,0,n)}function Fte(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,a=0,o=1,i;for(;i=n.exec(e);){const[l]=i;if(l==="[")a++;else if(a)l==="]"&&a--;else if(l==="(")o++;else if(l===")"&&(o--,!o)){r=i.index;break}}return e.slice(t,r)}const KD=new RegExp(String.raw`(?<noncapturingStart>${jte})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function Hte(e,t){const n=t?.hiddenCaptures??[];let r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const a="(?>",o="(?:(?=(",i=[0],l=[];let c=0,d=0,p=NaN,h;do{h=!1;let g=0,y=0,v=!1,x;for(KD.lastIndex=Number.isNaN(p)?0:p+o.length;x=KD.exec(e);){const{0:C,index:S,groups:{capturingStart:A,noncapturingStart:k}}=x;if(C==="[")g++;else if(g)C==="]"&&g--;else if(C===a&&!v)p=S,v=!0;else if(v&&k)y++;else if(A)v?y++:(c++,i.push(c+d));else if(C===")"&&v){if(!y){d++;const N=c+d;if(e=`${e.slice(0,p)}${o}${e.slice(p+a.length,S)}))<$$${N}>)${e.slice(S+1)}`,h=!0,l.push(N),zte(n,N),r.size){const O=new Map;r.forEach((I,D)=>{O.set(D>=N?D+1:D,I.map(U=>U>=N?U+1:U))}),r=O}break}y--}}}while(h);return n.push(...l),e=l1(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:g,groups:{backrefNum:y,wrappedBackrefNum:v}})=>{if(y){const x=+y;if(x>i.length-1)throw new Error(`Backref "${g}" greater than number of captures`);return`\\${i[x]}`}return`\\${v}`},wo.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const Sz=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,S0=new RegExp(String.raw` 479\\(?: \d+ 480 | c[A-Za-z] 481 | [gk]<[^>]+> 482 | [pPu]\{[^\}]+\} 483 | u[A-Fa-f\d]{4} 484 | x[A-Fa-f\d]{2} 485 ) 486| \((?: \? (?: [:=!>] 487 | <(?:[=!]|[^>]+>) 488 | [A-Za-z\-]+: 489 | \(DEFINE\) 490 ))? 491| (?<qBase>${Sz})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 492| \\?. 493`.replace(/\s+/g,""),"gsu");function Gte(e){if(!new RegExp(`${Sz}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,a="",o=0,i;for(S0.lastIndex=0;i=S0.exec(e);){const{0:l,index:c,groups:{qBase:d,qMod:p,invalidQ:h}}=i;if(l==="[")o||(r=c),o++;else if(l==="]")o?o--:r=null;else if(!o)if(p==="+"&&a&&!a.startsWith("(")){if(h)throw new Error(`Invalid quantifier "${l}"`);let g=-1;if(/^\{\d+\}$/.test(d))e=Bte(e,c+d.length,p,"");else{if(a===")"||a==="]"){const y=a===")"?n:r;if(y===null)throw new Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,y)}(?>${e.slice(y,c)}${d})${e.slice(c+l.length)}`}else e=`${e.slice(0,c-a.length)}(?>${a}${d})${e.slice(c+l.length)}`;g+=4}S0.lastIndex+=g}else l[0]==="("?t.push(c):l===")"&&(n=t.length?t.pop():null);a=l}return{pattern:e}}const vo=String.raw,Vte=vo`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Uw=vo`\(\?R=(?<rDepth>[^\)]+)\)|${Vte}`,Gb=vo`\(\?<(?![=!])(?<captureName>[^>]+)>`,Cz=vo`${Gb}|(?<unnamed>\()(?!\?)`,Dl=new RegExp(vo`${Gb}|${Uw}|\(\?|\\?.`,"gsu"),C0="Cannot use multiple overlapping recursions";function qte(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let a=t?.captureTransfers??new Map;if(!new RegExp(Uw,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:n};if(r==="plugin"&&lg(e,vo`\(\?\(DEFINE\)`,wo.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],i=lg(e,vo`\\[1-9]`,wo.DEFAULT),l=new Map,c=[];let d=!1,p=0,h=0,g;for(Dl.lastIndex=0;g=Dl.exec(e);){const{0:y,groups:{captureName:v,rDepth:x,gRNameOrNum:C,gRDepth:S}}=g;if(y==="[")p++;else if(p)y==="]"&&p--;else if(x){if(QD(x),d)throw new Error(C0);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const A=e.slice(0,g.index),k=e.slice(Dl.lastIndex);if(lg(k,Uw,wo.DEFAULT))throw new Error(C0);const N=+x-1;e=XD(A,k,N,!1,n,o,h),a=eI(a,A,N,o.length,0,h);break}else if(C){QD(S);let A=!1;for(const K of c)if(K.name===C||K.num===+C){if(A=!0,K.hasRecursedWithin)throw new Error(C0);break}if(!A)throw new Error(vo`Recursive \g cannot be used outside the referenced group "${r==="external"?C:vo`\g<${C}&R=${S}>`}"`);const k=l.get(C),N=Fte(e,k);if(i&&lg(N,vo`${Gb}|\((?!\?)`,wo.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const O=e.slice(k,g.index),I=N.slice(O.length+y.length),D=o.length,U=+S-1,J=XD(O,I,U,!0,n,o,h);a=eI(a,O,U,o.length-D,D,h);const P=e.slice(0,k),X=e.slice(k+N.length);e=`${P}${J}${X}`,Dl.lastIndex+=J.length-y.length-O.length-I.length,c.forEach(K=>K.hasRecursedWithin=!0),d=!0}else if(v)h++,l.set(String(h),Dl.lastIndex),l.set(v,Dl.lastIndex),c.push({num:h,name:v});else if(y[0]==="("){const A=y==="(";A&&(h++,l.set(String(h),Dl.lastIndex)),c.push(A?{num:h}:{})}else y===")"&&c.pop()}return n.push(...o),{pattern:e,captureTransfers:a,hiddenCaptures:n}}function QD(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function XD(e,t,n,r,a,o,i){const l=new Set;r&&Tz(e+t,Gb,({groups:{captureName:d}})=>{l.add(d)},wo.DEFAULT);const c=[n,r?l:null,a,o,i];return`${e}${JD(`(?:${e}`,"forward",...c)}(?:)${JD(`${t})`,"backward",...c)}${t}`}function JD(e,t,n,r,a,o,i){const l=d=>t==="forward"?d+2:n-d+2-1;let c="";for(let d=0;d<n;d++){const p=l(d);c+=l1(e,vo`${Cz}|\\k<(?<backref>[^>]+)>`,({0:h,groups:{captureName:g,unnamed:y,backref:v}})=>{if(v&&r&&!r.has(v))return h;const x=`_$${p}`;if(y||g){const C=i+o.length+1;return o.push(C),Yte(a,C),y?h:`(?<${g}${x}>`}return vo`\k<${v}${x}>`},wo.DEFAULT)}return c}function Yte(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function eI(e,t,n,r,a,o){if(e.size&&r){let i=0;Tz(t,Cz,()=>i++,wo.DEFAULT);const l=o-i+a,c=new Map;return e.forEach((d,p)=>{const h=(r-i*n)/n,g=i*n,y=p>l+i?p+r:p,v=[];for(const x of d)if(x<=l)v.push(x);else if(x>l+i+h)v.push(x+r);else if(x<=l+i)for(let C=0;C<=n;C++)v.push(x+i*C);else for(let C=0;C<=n;C++)v.push(x+g+h*C);c.set(y,v)}),c}return e}var wr=String.fromCodePoint,_t=String.raw,Ji={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("[[]]","v")}catch{return!1}return!0})()};Ji.bugFlagVLiteralHyphenIsRange=Ji.unicodeSets?(()=>{try{new RegExp(_t`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Ji.bugNestedClassIgnoresNegation=Ji.unicodeSets&&new RegExp("[[^a]]","v").test("a");function Ry(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function Op(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function Fw(e,t){return tI[e]>=tI[t]}function Wte(e,t){if(e==null)throw new Error(t??"Value expected");return e}var tI={ES2025:2025,ES2024:2024,ES2018:2018},Zte={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Az(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!Zte[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=Ji.flagGroups?"ES2025":Ji.unicodeSets?"ES2024":"ES2018"),t}var Kte="[ -\r ]",Qte=new Set([wr(304),wr(305)]),zi=_t`[\p{L}\p{M}\p{N}\p{Pc}]`;function kz(e){if(Qte.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),a=ene.get(n),o=Xte.get(n),i=Jte.get(n);return[...r].length===1&&t.add(r),i&&t.add(i),a&&t.add(a),t.add(n),o&&t.add(o),[...t]}var c1=new Map(`C Other 494Cc Control cntrl 495Cf Format 496Cn Unassigned 497Co Private_Use 498Cs Surrogate 499L Letter 500LC Cased_Letter 501Ll Lowercase_Letter 502Lm Modifier_Letter 503Lo Other_Letter 504Lt Titlecase_Letter 505Lu Uppercase_Letter 506M Mark Combining_Mark 507Mc Spacing_Mark 508Me Enclosing_Mark 509Mn Nonspacing_Mark 510N Number 511Nd Decimal_Number digit 512Nl Letter_Number 513No Other_Number 514P Punctuation punct 515Pc Connector_Punctuation 516Pd Dash_Punctuation 517Pe Close_Punctuation 518Pf Final_Punctuation 519Pi Initial_Punctuation 520Po Other_Punctuation 521Ps Open_Punctuation 522S Symbol 523Sc Currency_Symbol 524Sk Modifier_Symbol 525Sm Math_Symbol 526So Other_Symbol 527Z Separator 528Zl Line_Separator 529Zp Paragraph_Separator 530Zs Space_Separator 531ASCII 532ASCII_Hex_Digit AHex 533Alphabetic Alpha 534Any 535Assigned 536Bidi_Control Bidi_C 537Bidi_Mirrored Bidi_M 538Case_Ignorable CI 539Cased 540Changes_When_Casefolded CWCF 541Changes_When_Casemapped CWCM 542Changes_When_Lowercased CWL 543Changes_When_NFKC_Casefolded CWKCF 544Changes_When_Titlecased CWT 545Changes_When_Uppercased CWU 546Dash 547Default_Ignorable_Code_Point DI 548Deprecated Dep 549Diacritic Dia 550Emoji 551Emoji_Component EComp 552Emoji_Modifier EMod 553Emoji_Modifier_Base EBase 554Emoji_Presentation EPres 555Extended_Pictographic ExtPict 556Extender Ext 557Grapheme_Base Gr_Base 558Grapheme_Extend Gr_Ext 559Hex_Digit Hex 560IDS_Binary_Operator IDSB 561IDS_Trinary_Operator IDST 562ID_Continue IDC 563ID_Start IDS 564Ideographic Ideo 565Join_Control Join_C 566Logical_Order_Exception LOE 567Lowercase Lower 568Math 569Noncharacter_Code_Point NChar 570Pattern_Syntax Pat_Syn 571Pattern_White_Space Pat_WS 572Quotation_Mark QMark 573Radical 574Regional_Indicator RI 575Sentence_Terminal STerm
576Soft_Dotted SD 577Terminal_Punctuation Term 578Unified_Ideograph UIdeo 579Uppercase Upper 580Variation_Selector VS 581White_Space space 582XID_Continue XIDC 583XID_Start XIDS`.split(/\s/).map(e=>[Hb(e),e])),Xte=new Map([["s",wr(383)],[wr(383),"s"]]),Jte=new Map([[wr(223),wr(7838)],[wr(107),wr(8490)],[wr(229),wr(8491)],[wr(969),wr(8486)]]),ene=new Map([Ls(453),Ls(456),Ls(459),Ls(498),...A0(8072,8079),...A0(8088,8095),...A0(8104,8111),Ls(8124),Ls(8140),Ls(8188)]),tne=new Map([["alnum",_t`[\p{Alpha}\p{Nd}]`],["alpha",_t`\p{Alpha}`],["ascii",_t`\p{ASCII}`],["blank",_t`[\p{Zs}\t]`],["cntrl",_t`\p{Cc}`],["digit",_t`\p{Nd}`],["graph",_t`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",_t`\p{Lower}`],["print",_t`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",_t`[\p{P}\p{S}]`],["space",_t`\p{space}`],["upper",_t`\p{Upper}`],["word",_t`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",_t`\p{AHex}`]]);function nne(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Ls(e){const t=wr(e);return[t.toLowerCase(),t]}function A0(e,t){return nne(e,t).map(n=>Ls(n))}var Nz=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function rne(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};Rz(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Fw(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};fp(e,ane,r);const a={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},o={currentFlags:a,prevFlags:null,globalFlags:a,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};fp(e,one,o);const i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return fp(e,ine,i),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var ane={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:a}=e;if(a==="repeater"){const o=Mo();o.body[0].body.push(jl({negate:!0,body:r}),_u("Any"));const i=Mo();i.body[0].body.push(Ez("greedy",0,1/0,o)),n(Wn(i,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const a=e.body.filter(o=>o.kind==="flags");for(let o=n+1;o<t.body.length;o++){const i=t.body[o];Op(r,i,[]).push(...a)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const n=Dz(t.get(e));if(n){const r=Mo({flags:n});r.body[0].body=e.body,e.body=[Wn(r,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:a,remove:o,replaceWith:i},l){const{kind:c,negate:d}=e,{asciiWordBoundaries:p,avoidSubclass:h,supportedGNodes:g,wordIsAscii:y}=l;if(c==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${d?"Y":"y"}"`);if(c==="line_end")i(Wn(jl({body:[Ql({body:[jw("string_end")]}),Ql({body:[Fb(10)]})]}),t));else if(c==="line_start")i(Wn(Bi(_t`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c==="search_start")if(g.has(e))a.flags.sticky=!0,o();else{const v=r[n-1];if(v&&fne(v))i(Wn(jl({negate:!0}),t));else{if(h)throw new Error(_t`Uses "\G" in a way that requires a subclass`);i($s(jw("string_start"),t)),l.strategy="clip_search"}}else if(!(c==="string_end"||c==="string_start"))if(c==="string_end_newline")i(Wn(Bi(_t`(?=\n?\z)`),t));else if(c==="word_boundary"){if(!y&&!p){const v=`(?:(?<=${zi})(?!${zi})|(?<!${zi})(?=${zi}))`,x=`(?:(?<=${zi})(?=${zi})|(?<!${zi})(?!${zi}))`;i(Wn(Bi(d?x:v),t))}}else throw new Error(`Unexpected assertion kind "${c}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!N0(n)&&(n=k0(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!N0(r)&&(r=k0(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){if(t.kind==="intersection"){const r=Kg({body:[e]});n(Wn(r,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:a,digitIsAscii:o,spaceIsAscii:i,wordIsAscii:l}){const{kind:c,negate:d,value:p}=e;
vendor: 19,396 bytes, lines 583-586
583if(o&&(c==="digit"||p==="digit")){n($s(Bw("digit",{negate:d}),t));return}if(i&&(c==="space"||p==="space")){n(Wn(R0(Bi(Kte),d),t));return}if(l&&(c==="word"||p==="word")){n($s(Bw("word",{negate:d}),t));return}if(c==="any")n($s(_u("Any"),t));else if(c==="digit")n($s(_u("Nd",{negate:d}),t));else if(c!=="dot")if(c==="text_segment"){if(r==="strict")throw new Error(_t`Use of "\X" requires non-strict accuracy`);const h="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",g=_t`\p{RI}{2}|${h}(?:\u200D${h})*`;n(Wn(Bi(_t`(?>\r\n|${a?_t`\p{RGI_Emoji}`:g}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c==="hex")n($s(_u("AHex",{negate:d}),t));else if(c==="newline")n(Wn(Bi(d?`[^ 584]`:`(?>\r 585?|[ 586\v\f \u2028\u2029])`),t));else if(c==="posix")if(!a&&(p==="graph"||p==="print")){if(r==="strict")throw new Error(`POSIX class "${p}" requires min target ES2024 or non-strict accuracy`);let h={graph:"!-~",print:" -~"}[p];d&&(h=`\0-${wr(h.codePointAt(0)-1)}${wr(h.codePointAt(2)+1)}-ô¿¿`),n(Wn(Bi(`[${h}]`),t))}else n(Wn(R0(Bi(tne.get(p)),d),t));else if(c==="property")c1.has(Hb(p))||(e.key="sc");else if(c==="space")n($s(_u("space",{negate:d}),t));else if(c==="word")n(Wn(R0(Bi(zi),d),t));else throw new Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:a,removeAllPrevSiblings:o,removeAllNextSiblings:i}){const{kind:l,flags:c}=e;if(l==="flags")if(!c.enable&&!c.disable)r();else{const d=Mo({flags:c});d.body[0].body=i(),a(Wn(d,t),{traverse:!0})}else if(l==="keep"){const d=n.body[0],p=n.body.length===1&&bz(d,{type:"Group"})&&d.body[0].body.length===1?d.body[0]:n;if(t.parent!==p||p.body.length>1)throw new Error(_t`Uses "\K" in a way that's unsupported`);const h=jl({behind:!0});h.body[0].body=o(),a(Wn(h,t))}else throw new Error(`Unexpected directive kind "${l}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if(r==="fail")n(Wn(jl({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=Mo();t.body[0].body.push(e.body),e.body=Wn(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,a=!1;for(const o of e.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const i=Lz(o.body);i?(r=!0,Array.isArray(i)?n.push(...i):n.push(i)):a=!0}r&&!a&&n.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(_t`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!N0(n)&&(n=k0(n,t),e.ref=n)}},one={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:a}=e;r||n.set(e,[...t.get(a).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:a,groupsByName:o,multiplexCapturesToLeftByRef:i,openRefs:l,reffedNodesByReferencer:c}){const d=a.get(e);if(d&&l.has(e.number)){const h=$s(nI(e.number),t);c.set(h,l.get(e.number)),n(h);return}l.set(e.number,e),i.set(e.number,[]),e.name&&Op(i,e.name,[]);const p=i.get(e.name??e.number);for(let h=0;h<p.length;h++){const g=p[h];if(d===g.node||d&&d===g.origin||e===g.origin){p.splice(h,1);break}}if(i.get(e.number).push({node:e,origin:d}),e.name&&i.get(e.name).push({node:e,origin:d}),e.name){const h=Op(o,e.name,new Map);let g=!1;if(d)g=!0;else for(const y of h.values())if(!y.hasDuplicateNameToRemove){g=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:g})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Ry(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:a,ref:o}=e;if(a){let p=t;for(;(p=p.parent)&&!(p.type==="CapturingGroup"&&(p.name===o||p.number===o)););r.reffedNodesByReferencer.set(e,p);return}const i=r.subroutineRefMap.get(o),l=o===0,c=l?nI(0):Oz(i,r.groupOriginByCopy,null);let d=c;if(!l){const p=Dz(cne(i,g=>g.type==="Group"&&!!g.flags)),h=p?Ry(r.globalFlags,p):r.globalFlags;sne(h,r.currentFlags)||(d=Mo({flags:une(h)}),d.body[0].body.push(c))}n(Wn(d,t),{traverse:!l})}},ine={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const a=r.reffedNodesByReferencer.get(e).filter(o=>lne(o,e));if(!a.length)n(Wn(jl({negate:!0}),t));else if(a.length>1){const o=Mo({atomic:!0,body:a.reverse().map(i=>Ql({body:[zw(i.number)]}))});n(Wn(o,t))}else e.ref=a[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const a=_z();e.body.at(-1).body.push(a)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Rz(e){fp(e,{"*"({node:t,parent:n}){t.parent=n}})}function sne(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function lne(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=Iz(n.parent);for(const a of r){if(a===n)break;if(a===e||$z(a,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function Oz(e,t,n,r){const a=Array.isArray(e)?[]:{};for(const[o,i]of Object.entries(e))o==="parent"?a.parent=Array.isArray(n)?r:n:i&&typeof i=="object"?a[o]=Oz(i,t,a,n):(o==="type"&&i==="CapturingGroup"&&t.set(a,t.get(e)??e),a[o]=i);return a}function nI(e){const t=xz(e);return t.isRecursive=!0,t}function cne(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function k0(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function Dz(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(a=>{r.enable?.[a]&&(delete n.disable[a],n.enable[a]=!0),r.disable?.[a]&&(n.disable[a]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function une({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function Iz(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Lz(e){const t=e.find(n=>n.kind==="search_start"||pne(n,{negate:!1})||!dne(n));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const n=[];for(const r of t.body){const a=Lz(r.body);if(!a)return null;Array.isArray(a)?n.push(...a):n.push(a)}return n}return null}function $z(e,t){const n=Iz(e)??[];for(const r of n)if(r===t||$z(r,t))return!0;return!1}function dne({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function fne(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function pne(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&bz(e.body[0],{type:"Assertion",kind:"search_start"})}function N0(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Bi(e,t){const n=vz(e,{...t,unicodePropertyMap:c1}).body;return n.length>1||n[0].body.length>1?Mo({body:n}):n[0].body[0]}function R0(e,t){return e.negate=t,e}function $s(e,t){return e.parent=t,e}function Wn(e,t){return Rz(e),e.parent=t,e}function hne(e,t){const n=Az(t),r=Fw(n.target,"ES2024"),a=Fw(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,l=null;if(!a){const y=[e.flags.ignoreCase];fp(e,mne,{getCurrentModI:()=>y.at(-1),popModI(){y.pop()},pushModI(v){y.push(v)},setHasCasedChar(){y.at(-1)?i=!0:l=!0}})}const c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!l)};let d=e;const p={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:d,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!a&&i&&l),useFlagMods:a,useFlagV:r,verbose:n.verbose};function h(y){return p.lastNode=d,d=y,Wte(gne[y.type],`Unexpected node type "${y.type}"`)(y,p,h)}const g={pattern:e.body.map(h).join("|"),flags:h(e.flags),options:{...e.options}};return r||(delete g.options.force.v,g.options.disable.v=!0,g.options.unicodeSetsPlugin=null),g._captureTransfers=new Map,g._hiddenCaptures=[],p.captureMap.forEach((y,v)=>{y.hidden&&g._hiddenCaptures.push(v),y.transferTo&&Op(g._captureTransfers,y.transferTo,[]).push(v)}),g}var mne={"*":{enter({node:e},t){if(aI(e)){const n=t.getCurrentModI();t.pushModI(e.flags?Ry({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){aI(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){u1(wr(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),Pz(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&Nz.has(e.value)&&t.setHasCasedChar()}},gne={Alternative({body:e},t,n){return e.map(n).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?_t`\B`:_t`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){const{body:r,name:a,number:o}=e,i={ignoreCase:t.currentFlags.ignoreCase},l=t.originMap.get(e);return l&&(i.hidden=!0,o>l.number&&(i.transferTo=l.number)),t.captureMap.set(o,i),`(${a?`?<${a}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=wr(e),r=su(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&u1(n)){const a=kz(n);return t.inCharClass?a.join(""):a.length>1?`[${a.join("")}]`:a[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:a,parent:o}=e;let{body:i}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");Ji.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(oI)&&(i=[Fb(45),...i.filter(d=>!oI(d))]);const l=()=>`[${a?"^":""}${i.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Ji.bugNestedClassIgnoresNegation)&&!a){const p=i.filter(h=>h.type==="CharacterClass"&&h.kind==="union"&&h.negate);if(p.length){const h=Mo(),g=h.body[0];return h.parent=o,g.parent=h,i=i.filter(y=>!p.includes(y)),e.body=i,i.length?(e.parent=g,g.body.push(e)):h.body.pop(),p.forEach(y=>{const v=Ql({body:[y]});y.parent=v,v.parent=h,h.body.push(v)}),n(h)}}t.inCharClass=!0;const d=l();return t.inCharClass=!1,d}const c=i[0];if(r==="union"&&!a&&c&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&!(Ji.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&o.kind==="intersection"&&i.length===1&&c.type!=="CharacterClassRange"))return i.map(n).join("");if(!t.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return l()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,a={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=su(n,a),i=su(r,a),l=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const c=Pz(e);Ene(c).forEach(d=>{l.add(Array.isArray(d)?`${su(d[0],a)}-${su(d[1],a)}`:su(d,a))})}return`${o}-${i}${[...l].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},a){if(e==="dot")return a.currentFlags.dotAll?a.appliedGlobalFlags.dotAll||a.useFlagMods?".":"[^]":_t`[^\n]`;if(e==="digit")return t?_t`\D`:_t`\d`;if(e==="property"){if(a.useAppliedIgnoreCase&&a.currentFlags.ignoreCase&&Nz.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?_t`\P`:_t`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?_t`\W`:_t`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:n,parent:r},a,o){const i=a.currentFlags;n&&(a.currentFlags=Ry(i,n));const l=t.map(o).join("|"),c=!a.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!a.useFlagMods||!n)?l:`(?${xne(e,n,a.useFlagMods)}${l})`;return a.currentFlags=i,c},LookaroundAssertion({body:e,kind:t,negate:n},r,a){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(a).join("|")})`},Quantifier(e,t,n){return n(e.body)+wne(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return t===0?`(?R=${r})`:_t`\g<${t}&R=${r}>`}},yne=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),bne=new Set(["-","\\","]","^","["]),vne=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),rI=new Map([[9,_t`\t`],[10,_t`\n`],[11,_t`\v`],[12,_t`\f`],[13,_t`\r`],[8232,_t`\u2028`],[8233,_t`\u2029`],[65279,_t`\uFEFF`]]),_ne=/^\p{Cased}$/u;function u1(e){return _ne.test(e)}function Pz(e,t){const n=!!t?.firstOnly,r=e.min.value,a=e.max.value,o=[];if(r<65&&(a===65535||a>=131071)||r===65536&&a>=131071)return o;for(let i=r;i<=a;i++){const l=wr(i);if(!u1(l))continue;const c=kz(l).filter(d=>{const p=d.codePointAt(0);return p<r||p>a});if(c.length&&(o.push(...c),n))break}return o}function su(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(rI.has(e))return rI.get(e);if(e<32||e>126&&e<160||e>262143||t&&Tne(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const a=n?r?vne:bne:yne,o=wr(e);return(a.has(o)?"\\":"")+o}function Ene(e){const t=e.map(a=>a.codePointAt(0)).sort((a,o)=>a-o),n=[];let r=null;for(let a=0;a<t.length;a++)t[a+1]===t[a]+1?r??=t[a]:r===null?n.push(t[a]):(n.push([r,t[a]]),r=null);return n}function xne(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:a,disable:o}=t;r=(a?.ignoreCase?"i":"")+(a?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${r}:`}function wne({kind:e,max:t,min:n}){let r;return!n&&t===1?r="?":!n&&t===1/0?r="*":n===1&&t===1/0?r="+":n===t?r=`{${n}}`:r=`{${n},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[e]}function aI({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function Tne(e){return e>47&&e<58}function oI({type:e,value:t}){return e==="Character"&&t===45}var Sne=class Hw extends RegExp{#e=new Map;#t=null;#n;#a=null;#r=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,n,r){const a=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw new Error("Cannot provide options when copying a regexp");const o=t;super(o,n),this.#n=o.source,o instanceof Hw&&(this.#e=o.#e,this.#a=o.#a,this.#r=o.#r,this.rawOptions=o.rawOptions)}else{const o={hiddenCaptures:[],strategy:null,transfers:[],...r};super(a?"":t,n),this.#n=t,this.#e=Ane(o.hiddenCaptures,o.transfers),this.#r=o.strategy,this.rawOptions=r??{}}a||(this.#t=this)}exec(t){if(!this.#t){const{lazyCompile:a,...o}=this.rawOptions;this.#t=new Hw(this.#n,this.flags,o)}const n=this.global||this.sticky,r=this.lastIndex;if(this.#r==="clip_search"&&n&&r){this.lastIndex=0;const a=this.#o(t.slice(r));return a&&(Cne(a,r,t,this.hasIndices),this.lastIndex+=r),a}return this.#o(t)}#o(t){this.#t.lastIndex=this.lastIndex;const n=super.exec.call(this.#t,t);if(this.lastIndex=this.#t.lastIndex,!n||!this.#e.size)return n;const r=[...n];n.length=1;let a;this.hasIndices&&(a=[...n.indices],n.indices.length=1);const o=[0];for(let i=1;i<r.length;i++){const{hidden:l,transferTo:c}=this.#e.get(i)??{};if(l?o.push(null):(o.push(n.length),n.push(r[i]),this.hasIndices&&n.indices.push(a[i])),c&&r[i]!==void 0){const d=o[c];if(!d)throw new Error(`Invalid capture transfer to "${d}"`);if(n[d]=r[i],this.hasIndices&&(n.indices[d]=a[i]),n.groups){this.#a||(this.#a=kne(this.source));const p=this.#a.get(c);p&&(n.groups[p]=r[i],this.hasIndices&&(n.indices.groups[p]=a[i]))}}}return n}};function Cne(e,t,n,r){if(e.index+=t,e.input=n,r){const a=e.indices;for(let i=0;i<a.length;i++){const l=a[i];l&&(a[i]=[l[0]+t,l[1]+t])}const o=a.groups;o&&Object.keys(o).forEach(i=>{const l=o[i];l&&(o[i]=[l[0]+t,l[1]+t])})}}function Ane(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,a]of t)for(const o of a)Op(n,o,{}).transferTo=r;return n}function kne(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,a=0,o;for(;o=t.exec(e);){const{0:i,groups:{capture:l,name:c}}=o;i==="["?r++:r?i==="]"&&r--:l&&(a++,c&&n.set(a,c))}return n}function Nne(e,t){const n=Rne(e,t);return n.options?new Sne(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Rne(e,t){const n=Az(t),r=vz(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:c1}),a=rne(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=hne(a,n),i=qte(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),l=Gte(i.pattern),c=Hte(l.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),d={pattern:c.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const p=c.hiddenCaptures.sort((v,x)=>v-x),h=Array.from(c.captureTransfers),g=a._strategy,y=d.pattern.length>=n.lazyCompileLength;(p.length||h.length||g||y)&&(d.options={...p.length&&{hiddenCaptures:p},...h.length&&{transfers:h},...g&&{strategy:g},...y&&{lazyCompile:y}})}return d}const iI=4294967295;let One=class{constructor(t,n={}){this.patterns=t,this.options=n;const{forgiving:r=!1,cache:a,regexConstructor:o}=n;
586if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(i=>{if(typeof i!="string")return i;const l=a?.get(i);if(l){if(l instanceof RegExp)return l;if(r)return null;throw l}try{const c=o(i);return a?.set(i,c),c}catch(c){if(a?.set(i,c),r)return null;throw c}})}regexps;findNextMatchSync(t,n,r){const a=typeof t=="string"?t:t.content,o=[];function i(l,c,d=0){return{index:l,captureIndices:c.indices.map(p=>p==null?{start:iI,end:iI,length:0}:{start:p[0]+d,end:p[1]+d,length:p[1]-p[0]})}}for(let l=0;l<this.regexps.length;l++){const c=this.regexps[l];if(c)try{c.lastIndex=n;const d=c.exec(a);if(!d)continue;if(d.index===n)return i(l,d,0);o.push([l,d,0])}catch(d){if(this.options.forgiving)continue;throw d}}if(o.length){const l=Math.min(...o.map(c=>c[1].index));for(const[c,d,p]of o)if(d.index===l)return i(c,d,p)}return null}};function Dne(e,t){return Nne(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function Ine(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=n=>Dne(n,{target:t.target}),{createScanner(n){return new One(n,t)},createString(n){return{content:n}}}}const Mz="overflow-x-auto scrollbar not-inline",Lne=Ine({forgiving:!0}),$ne=Mee({engine:Lne,langAlias:{markup:"html",svg:"xml",mathml:"xml",atom:"xml",ssml:"xml",rss:"xml",webmanifest:"json"}}),Pne=await $ne,Oy={themes:{light:"github-light",dark:"github-dark"},defaultColor:!1,defaultLanguage:"text",fallbackLanguage:"text",inline:"tailing-curly-colon",addLanguageClass:!0,transformers:[Gee(),qee()],parseMetaString:e=>{const t=e.matchAll(/([a-z0-9]+)(?:=(["'])(.*?)\2|=(.*?)(?:\s|$)|(?:\s|$))/gi);return Object.fromEntries(Array.from(t).map(n=>{const r=n[1],a=n[3]||n[4]||!0;return[r,a]}))}},Mne=()=>e=>{fd(e,"element",(t,n,r)=>{if(t.tagName!=="code")return;const a=r?.type==="element"&&r.tagName==="pre";t.properties.inline=JSON.stringify(!a),a&&(t.properties={...t.properties,...structuredClone(r.properties),class:xe(t.properties.class,r.properties.class)},r.properties={})})},jne=(e=Oy.themes,t=Pne)=>[[Fee,t,{...Oy,themes:e}],Mne],jz=(e,t,n="text",r=Oy.themes)=>{const a=e.codeToHast(t,{lang:n,...Oy,themes:r});return YS(a,{Fragment:b.Fragment,jsx:E.jsx,jsxs:E.jsxs,components:{code:o=>b.createElement("code",{...o,className:xe(o.className,Mz)})}})},zz=b.memo(({code:e,children:t,embedded:n,...r})=>{const{syntaxHighlighting:a}=Hn().options;uj(a?.highlighter,"Highlighter not found");const o=jz(a.highlighter,e??t,r.language,a.themes);return n?E.jsx(cj,{...r,children:o}):E.jsx(US,{...r,children:o})});zz.displayName="SyntaxHighlight";var zne=(e,t,n,r,a,o,i,l)=>{let c=document.documentElement,d=["light","dark"];function p(y){(Array.isArray(e)?e:[e]).forEach(v=>{let x=v==="class",C=x&&o?a.map(S=>o[S]||S):a;x?(c.classList.remove(...C),c.classList.add(o&&o[y]?o[y]:y)):c.setAttribute(v,y)}),h(y)}function h(y){l&&d.includes(y)&&(c.style.colorScheme=y)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)p(r);else try{let y=localStorage.getItem(t)||n,v=i&&y==="system"?g():y;p(v)}catch{}},sI=["light","dark"],Bz="(prefers-color-scheme: dark)",Bne=typeof window>"u",d1=b.createContext(void 0),Une={setTheme:e=>{},themes:[]},f1=()=>{var e;return(e=b.useContext(d1))!=null?e:Une},Fne=e=>b.useContext(d1)?b.createElement(b.Fragment,null,e.children):b.createElement(Gne,{...e}),Hne=["light","dark"],Gne=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:a="theme",themes:o=Hne,defaultTheme:i=n?"system":"light",attribute:l="data-theme",value:c,children:d,nonce:p,scriptProps:h})=>{let[g,y]=b.useState(()=>qne(a,i)),[v,x]=b.useState(()=>g==="system"?O0():g),C=c?Object.values(c):o,S=b.useCallback(O=>{let I=O;if(!I)return;O==="system"&&n&&(I=O0());let D=c?c[I]:I,U=t?Yne(p):null,J=document.documentElement,P=X=>{X==="class"?(J.classList.remove(...C),D&&J.classList.add(D)):X.startsWith("data-")&&(D?J.setAttribute(X,D):J.removeAttribute(X))};if(Array.isArray(l)?l.forEach(P):P(l),r){let X=sI.includes(i)?i:null,K=sI.includes(I)?I:X;J.style.colorScheme=K}U?.()},[p]),A=b.useCallback(O=>{let I=typeof O=="function"?O(g):O;y(I);try{localStorage.setItem(a,I)}catch{}},[g]),k=b.useCallback(O=>{let I=O0(O);x(I),g==="system"&&n&&!e&&S("system")},[g,e]);b.useEffect(()=>{let O=window.matchMedia(Bz);return O.addListener(k),k(O),()=>O.removeListener(k)},[k]),b.useEffect(()=>{let O=I=>{I.key===a&&(I.newValue?y(I.newValue):A(i))};return window.addEventListener("storage",O),()=>window.removeEventListener("storage",O)},[A]),b.useEffect(()=>{S(e??g)},[e,g]);let N=b.useMemo(()=>({theme:g,setTheme:A,forcedTheme:e,resolvedTheme:g==="system"?v:g,themes:n?[...o,"system"]:o,systemTheme:n?v:void 0}),[g,A,e,v,n,o]);return b.createElement(d1.Provider,{value:N},b.createElement(Vne,{forcedTheme:e,storageKey:a,attribute:l,enableSystem:n,enableColorScheme:r,defaultTheme:i,value:c,themes:o,nonce:p,scriptProps:h}),d)},Vne=b.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultTheme:o,value:i,themes:l,nonce:c,scriptProps:d})=>
586{let p=JSON.stringify([n,t,o,e,l,i,r,a]).slice(1,-1);return b.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(${zne.toString()})(${p})`}})}),qne=(e,t)=>{if(Bne)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},Yne=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},O0=e=>(e||(e=window.matchMedia(Bz)),e.matches?"dark":"light");const Wne=e=>"events"in e&&typeof e.events=="object",Uz=e=>"getProfileMenuItems"in e&&typeof e.getProfileMenuItems=="function",lI=e=>"getRoutes"in e&&typeof e.getRoutes=="function",Zne=e=>"signUp"in e&&typeof e.signUp=="function",Kne=e=>"renderSearch"in e&&typeof e.renderSearch=="function",Qne=e=>"initialize"in e&&typeof e.initialize=="function",Xne=e=>"getHead"in e&&typeof e.getHead=="function",Jne=e=>"getMdxComponents"in e&&typeof e.getMdxComponents=="function",ere=e=>"getIdentities"in e&&typeof e.getIdentities=="function",tre=e=>"transformConfig"in e&&typeof e.transformConfig=="function",nre={note:{border:"border-gray-300 dark:border-zinc-800",bg:"bg-gray-100 dark:bg-zinc-800/50",iconColor:"text-gray-600 dark:text-zinc-300",titleColor:"text-gray-600 dark:text-zinc-300",textColor:"text-gray-600 dark:text-zinc-300 [&_a]:hover:text-gray-700 [&_a]:dark:hover:text-zinc-400",Icon:CO},tip:{border:"border-green-500 dark:border-green-800",bg:"bg-green-200/25 dark:bg-green-950/70",iconColor:"text-green-600 dark:text-green-200",titleColor:"text-green-700 dark:text-green-200",textColor:"text-green-600 dark:text-green-50 [&_a]:hover:text-green-700 [&_a]:dark:hover:text-green-300",Icon:N7},info:{border:"border-blue-400 dark:border-blue-900/60",bg:"bg-blue-50 dark:bg-blue-950/40",iconColor:"text-blue-400 dark:text-blue-200",titleColor:"text-blue-700 dark:text-blue-200",textColor:"text-blue-600 dark:text-blue-100 [&_a]:hover:text-blue-800 [&_a]:dark:hover:text-blue-300",Icon:CO},caution:{border:"border-yellow-400 dark:border-yellow-400/25",bg:"bg-yellow-100/60 dark:bg-yellow-400/10",iconColor:"text-yellow-500 dark:text-yellow-300",titleColor:"text-yellow-600 dark:text-yellow-300",textColor:"text-yellow-700 dark:text-yellow-200 [&_a]:hover:text-yellow-800 [&_a]:dark:hover:text-yellow-300",Icon:gY},danger:{border:"border-rose-400 dark:border-rose-800",bg:"bg-rose-50 dark:bg-rose-950/40",iconColor:"text-rose-400 dark:text-rose-300",titleColor:"text-rose-800 dark:text-rose-300",textColor:"text-rose-700 dark:text-rose-100 [&_a]:hover:text-rose-800 [&_a]:dark:hover:text-rose-300",Icon:nY}},Ps=({type:e,children:t,title:n,className:r,icon:a=!0})=>{const{border:o,bg:i,iconColor:l,titleColor:c,textColor:d,Icon:p}=nre[e];return E.jsxs("div",{className:xe("not-prose rounded-md border p-4 text-md my-2",a&&"grid grid-cols-[min-content_1fr] items-baseline grid-rows-[fit-content_1fr] gap-x-4 gap-y-2",!a&&n&&"flex flex-col gap-2","[&_a]:underline [&_a]:decoration-current [&_a]:decoration-from-font [&_a]:underline-offset-4 hover:[&_a]:decoration-1","[&_.code-block-wrapper]:border","[&_ul]:list-disc [&_ol]:list-decimal [&_ul]:ps-4 [&_ul>li]:ps-1 [&_ul>li]:my-1",a&&n&&"items-center",o,i,r),children:[a&&E.jsx(p,{className:xe(n?"align-middle":"translate-y-1",l),size:20,"aria-hidden":"true"}),n&&E.jsx("h3",{className:xe("font-medium",c),children:n}),E.jsx("div",{className:xe(a&&"col-start-2",!n&&a&&"row-start-1",d,"overflow-x-auto"),children:t})]})},rre=({refetchOnWindowFocus:e}={})=>{const{authentication:t}=Hn();return eh({refetchOnWindowFocus:e,queryKey:["refresh-user-profile"],enabled:typeof t<"u"&&typeof t?.refreshUserProfile=="function",queryFn:()=>t?.refreshUserProfile?.()})},Ks=()=>{const{authentication:e}=Hn(),t=my(),n=typeof e<"u",r=sd();return rre(),{isAuthEnabled:n,...t,login:async a=>{if(!n)throw new Error("Authentication is not enabled.");await e.signIn({navigate:r},{...a,redirectTo:a?.redirectTo??window.location.href})},logout:async()=>
586{if(!n)throw new Error("Authentication is not enabled.");await e.signOut({navigate:r}),r("/",{replace:!0})},signup:async a=>{if(!n)throw new Error("Authentication is not enabled.");await e.signUp({navigate:r},{...a,redirectTo:a?.redirectTo??window.location.href})},requestEmailVerification:async a=>{if(!n)throw new Error("Authentication is not enabled.");await e.requestEmailVerification?.({navigate:r},{...a,redirectTo:a?.redirectTo??window.location.href})}}},Gw={},Fz=ce.createContext(Gw);function Hz(e){const t=ce.useContext(Fz);return ce.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function are(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(Gw):e.components||Gw:t=Hz(e.components),ce.createElement(Fz.Provider,{value:t},e.children)}const ore=()=>{const e=Sn(),t=sd(),[n,r]=MZ(),a=DS();return{location:e,navigate:t,params:a,searchParams:n,setSearchParams:r}},ire=hi("not-prose inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline",expand:"flex gap-1.5 border bg-transparent rounded-xl text-muted-foreground hover:text-foreground"},size:{default:"h-9 px-4 py-2",xs:"h-6 rounded-md px-2 text-xs",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",xl:"h-14 roun
586ded-lg px-10 text-lg",icon:"size-9","icon-xxs":"size-6","icon-xs":"size-7","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),zr=b.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...a},o)=>{const i=r?ih:"button";return E.jsx(i,{type:r?void 0:"button",className:xe(ire({variant:t,size:n,className:e})),ref:o,...a})});zr.displayName="Button";function We(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function sre(e,t){const n=b.createContext(t),r=o=>{const{children:i,...l}=o,c=b.useMemo(()=>l,Object.values(l));return M.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function a(o){const i=b.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,a]}function eo(e,t=[]){let n=[];function r(o,i){const l=b.createContext(i),c=n.length;n=[...n,i];const d=h=>{const{scope:g,children:y,...v}=h,x=g?.[e]?.[c]||l,C=b.useMemo(()=>v,Object.values(v));return M.jsx(x.Provider,{value:C,children:y})};d.displayName=o+"Provider";function p(h,g){const y=g?.[e]?.[c]||l,v=b.useContext(y);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${o}\``)}return[d,p]}const a=()=>{const o=n.map(i=>b.createContext(i));return function(l){const c=l?.[e]||o;return b.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return a.scopeName=e,[r,lre(a,...t)]}function lre(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const i=r.reduce((l,{useScope:c,scopeName:d})=>{const h=c(o)[`__scope${d}`];return{...l,...h}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Vr=globalThis?.document?b.useLayoutEffect:()=>{},cre=od[" useInsertionEffect ".trim().toString()]||Vr;function Ho({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,o,i]=ure({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:a;{const p=b.useRef(e!==void 0);b.useEffect(()=>{const h=p.current;h!==l&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,r])}const d=b.useCallback(p=>{if(l){const h=dre(p)?p(e):p;h!==e&&i.current?.(h)}else o(p)},[l,e,o,i]);return[c,d]}function ure({defaultProp:e,onChange:t}){const[n,r]=b.useState(e),a=b.useRef(n),o=b.useRef(t);return cre(()=>{o.current=t},[t]),b.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,r,o]}function dre(e){return typeof e=="function"}var D0={exports:{}},Zr={};/** 587 * @license React 588 * react-dom.production.js 589 * 590 * Copyright (c) Meta Platforms, Inc. and affiliates. 591 * 592 * This source code is licensed under the MIT license found in the 593 * LICENSE file in the root directory of this source tree. 594 */var cI;function fre(){if(cI)return Zr;cI=1;var e=bS();function t(c){var d="https://react.dev/errors/"+c;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)d+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+c+"; visit "+d+" 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(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function o(c,d,p){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:h==null?null:""+h,children:c,containerInfo:d,implementation:p}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(c,d){if(c==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Zr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Zr.createPortal=function(c,d){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return o(c,d,null,p)},Zr.flushSync=function(c){var d=i.T,p=r.p;try{if(i.T=null,r.p=2,c)return c()}finally{i.T=d,r.p=p,r.d.f()}},Zr.preconnect=function(c,d){typeof c=="string"&&(d?(d=d.crossOrigin,d=typeof d=="str
594ing"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(c,d))},Zr.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},Zr.preinit=function(c,d){if(typeof c=="string"&&d&&typeof d.as=="string"){var p=d.as,h=l(p,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,y=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;p==="style"?r.d.S(c,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:h,integrity:g,fetchPriority:y}):p==="script"&&r.d.X(c,{crossOrigin:h,integrity:g,fetchPriority:y,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Zr.preinitModule=function(c,d){if(typeof c=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=l(d.as,d.crossOrigin);r.d.M(c,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(c)},Zr.preload=function(c,d){if(typeof c=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,h=l(p,d.crossOrigin);r.d.L(c,p,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Zr.preloadModule=function(c,d){if(typeof c=="string")if(d){var p=l(d.as,d.crossOrigin);r.d.m(c,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(c)},Zr.requestFormReset=function(c){r.d.r(c)},Zr.unstable_batchedUpdates=function(c,d){return c(d)},Zr.useFormState=function(c,d,p){return i.H.useFormState(c,d,p)},Zr.useFormStatus=function(){return i.H.useHostTransitionStatus()},Zr.version="19.2.4",Zr}var uI;function Gz(){if(uI)return D0.exports;uI=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),D0.exports=fre(),D0.exports}var gd=Gz();const pre=QM(gd);function Vw(e){const t=hre(e),n=b.forwardRef((r,a)=>{const{children:o,...i}=r,l=b.Children.toArray(o),c=l.find(gre);if(c){const d=c.props.children,p=l.map(h=>h===c?b.Children.count(d)>1?b.Children.only(null):b.isValidElement(d)?d.props.children:null:h);return M.jsx(t,{...i,ref:a,children:b.isValidElement(d)?b.cloneElement(d,void 0,p):null})}return M.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}function hre(e){const t=b.forwardRef((n,r)=>{const{children:a,...o}=n;if(b.isValidElement(a)){const i=bre(a),l=yre(o,a.props);return a.type!==b.Fragment&&(l.ref=r?ra(r,i):i),b.cloneElement(a,l)}return b.Children.count(a)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var mre=Symbol("radix.slottable");function gre(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===mre}function yre(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...l)=>{const c=o(...l);return a(...l),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function bre(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var vre=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],st=vre.reduce((e,t)=>{const n=Vw(`Primitive.${t}`),r=b.forwardRef((a,o)=>{const{asChild:i,...l}=a,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),M.jsx(c,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Vz(e,t){e&&gd.flushSync(()=>e.dispatchEvent(t))}function p1(e){const t=e+"CollectionProvider",[n,r]=eo(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=x=>{const{scope:C,children:S}=x,A=ce.useRef(null),k=ce.useRef(new Map).current;return M.jsx(a,{scope:C,itemMap:k,collectionRef:A,children:S})};i.displayName=t;const l=e+"CollectionSlot",c=Vw(l),d=ce.forwardRef((x,C)=>{const{scope:S,children:A}=x,k=o(l,S),N=Pt(C,k.collectionRef);return M.jsx(c,{ref:N,children:A})});d.displayName=l;const p=e+"CollectionItemSlot",h="data-radix-collection-item",g=Vw(p),y=ce.forwardRef((x,C)=>{const{scope:S,children:A,...k}=x,N=ce.useRef(null),O=Pt(C,N),I=o(p,S);return ce.useEffect(()=>(I.itemMap.set(N,{ref:N,...k}),()=>void I.itemMap.delete(N))),M.jsx(g,{[h]:"",ref:O,children:A})});y.displayName=p;function v(x){const C=o(e+"CollectionConsumer",x);return ce.useCallback(()=>{const A=C.collectionRef.current;if(!A)return[];const k=Array.from(A.querySelectorAll(`[${h}]`));return Array.from(C.itemMap.values()).sort((I,D)=>k.indexOf(I.ref.current)-k.indexOf(D.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:i,Slot:d,ItemSlot:y},v,r]}var _re=b.createContext(void 0);function Vb(e){const t=b.useContext(_re);return e||t||"ltr"}function Go(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>t.current?.(...n),[])}function Ere(e,t=globalThis?.document){const n=Go(e);b.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var xre="DismissableLayer",qw="dismissableLayer.update",wre="dismissableLayer.pointerDownOutside",Tre="dismissableLayer.focusOutside",dI,qz=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yd=b.forwardRef((e,t)=>
vendor: 5,307 bytes, line 594
594{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:l,...c}=e,d=b.useContext(qz),[p,h]=b.useState(null),g=p?.ownerDocument??globalThis?.document,[,y]=b.useState({}),v=Pt(t,D=>h(D)),x=Array.from(d.layers),[C]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),S=x.indexOf(C),A=p?x.indexOf(p):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,N=A>=S,O=Are(D=>{const U=D.target,J=[...d.branches].some(P=>P.contains(U));!N||J||(a?.(D),i?.(D),D.defaultPrevented||l?.())},g),I=kre(D=>{const U=D.target;[...d.branches].some(P=>P.contains(U))||(o?.(D),i?.(D),D.defaultPrevented||l?.())},g);return Ere(D=>{A===d.layers.size-1&&(r?.(D),!D.defaultPrevented&&l&&(D.preventDefault(),l()))},g),b.useEffect(()=>{if(p)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(dI=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),fI(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=dI)}},[p,g,n,d]),b.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),fI())},[p,d]),b.useEffect(()=>{const D=()=>y({});return document.addEventListener(qw,D),()=>document.removeEventListener(qw,D)},[]),M.jsx(st.div,{...c,ref:v,style:{pointerEvents:k?N?"auto":"none":void 0,...e.style},onFocusCapture:We(e.onFocusCapture,I.onFocusCapture),onBlurCapture:We(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:We(e.onPointerDownCapture,O.onPointerDownCapture)})});yd.displayName=xre;var Sre="DismissableLayerBranch",Cre=b.forwardRef((e,t)=>{const n=b.useContext(qz),r=b.useRef(null),a=Pt(t,r);return b.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),M.jsx(st.div,{...e,ref:a})});Cre.displayName=Sre;function Are(e,t=globalThis?.document){const n=Go(e),r=b.useRef(!1),a=b.useRef(()=>{});return b.useEffect(()=>{const o=l=>{if(l.target&&!r.current){let c=function(){Yz(wre,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}else t.removeEventListener("click",a.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function kre(e,t=globalThis?.document){const n=Go(e),r=b.useRef(!1);return b.useEffect(()=>{const a=o=>{o.target&&!r.current&&Yz(Tre,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function fI(){const e=new CustomEvent(qw);document.dispatchEvent(e)}function Yz(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Vz(a,o):a.dispatchEvent(o)}var I0=0;function qb(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??pI()),document.body.insertAdjacentElement("beforeend",e[1]??pI()),I0++,()=>{I0===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),I0--}},[])}function pI(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var L0="focusScope.autoFocusOnMount",$0="focusScope.autoFocusOnUnmount",hI={bubbles:!1,cancelable:!0},Nre="FocusScope",fh=b.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[l,c]=b.useState(null),d=Go(a),p=Go(o),h=b.useRef(null),g=Pt(t,x=>c(x)),y=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(r){let x=function(k){if(y.paused||!l)return;const N=k.target;l.contains(N)?h.current=N:Ms(h.current,{select:!0})},C=function(k){if(y.paused||!l)return;const N=k.relatedTarget;N!==null&&(l.contains(N)||Ms(h.current,{select:!0}))},S=function(k){if(document.activeElement===document.body)for(const O of k)O.removedNodes.length>0&&Ms(l)};document.addEventListener("focusin",x),document.addEventListener("focusout",C);const A=new MutationObserver(S);return l&&A.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",C),A.disconnect()}}},[r,l,y.paused]),b.useEffect(()=>{if(l){gI.add(y);const x=document.activeElement;if(!l.contains(x)){const S=new CustomEvent(L0,hI);l.addEventListener(L0,d),l.dispatchEvent(S),S.defaultPrevented||(Rre($re(Wz(l)),{select:!0}),document.activeElement===x&&Ms(l))}return()=>{l.removeEventListener(L0,d),setTimeout(()=>{const S=new CustomEvent($0,hI);l.addEventListener($0,p),l.dispatchEvent(S),S.defaultPrevented||Ms(x??document.body,{select:!0}),l.removeEventListener($0,p),gI.remove(y)},0)}}},[l,d,p,y]);const v=b.useCallback(x=>{if(!n&&!r||y.paused)return;const C=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,S=document.activeElement;if(C&&S){const A=x.currentTarget,[k,N]=Ore(A);
vendor: 13,951 bytes, line 594
594k&&N?!x.shiftKey&&S===N?(x.preventDefault(),n&&Ms(k,{select:!0})):x.shiftKey&&S===k&&(x.preventDefault(),n&&Ms(N,{select:!0})):S===A&&x.preventDefault()}},[n,r,y.paused]);return M.jsx(st.div,{tabIndex:-1,...i,ref:g,onKeyDown:v})});fh.displayName=Nre;function Rre(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ms(r,{select:t}),document.activeElement!==n)return}function Ore(e){const t=Wz(e),n=mI(t,e),r=mI(t.reverse(),e);return[n,r]}function Wz(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function mI(e,t){for(const n of e)if(!Dre(n,{upTo:t}))return n}function Dre(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ire(e){return e instanceof HTMLInputElement&&"select"in e}function Ms(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ire(e)&&t&&e.select()}}var gI=Lre();function Lre(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=yI(e,t),e.unshift(t)},remove(t){e=yI(e,t),e[0]?.resume()}}}function yI(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function $re(e){return e.filter(t=>t.tagName!=="A")}var Pre=od[" useId ".trim().toString()]||(()=>{}),Mre=0;function fr(e){const[t,n]=b.useState(Pre());return Vr(()=>{n(r=>r??String(Mre++))},[e]),e||(t?`radix-${t}`:"")}const jre=["top","right","bottom","left"],Qs=Math.min,Ya=Math.max,Dy=Math.round,cg=Math.floor,ci=e=>({x:e,y:e}),zre={left:"right",right:"left",bottom:"top",top:"bottom"},Bre={start:"end",end:"start"};function Yw(e,t,n){return Ya(e,Qs(t,n))}function ts(e,t){return typeof e=="function"?e(t):e}function ns(e){return e.split("-")[0]}function bd(e){return e.split("-")[1]}function h1(e){return e==="x"?"y":"x"}function m1(e){return e==="y"?"height":"width"}const Ure=new Set(["top","bottom"]);function li(e){return Ure.has(ns(e))?"y":"x"}function g1(e){return h1(li(e))}function Fre(e,t,n){n===void 0&&(n=!1);const r=bd(e),a=g1(e),o=m1(a);let i=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Iy(i)),[i,Iy(i)]}function Hre(e){const t=Iy(e);return[Ww(e),t,Ww(t)]}function Ww(e){return e.replace(/start|end/g,t=>Bre[t])}const bI=["left","right"],vI=["right","left"],Gre=["top","bottom"],Vre=["bottom","top"];function qre(e,t,n){switch(e){case"top":case"bottom":return n?t?vI:bI:t?bI:vI;case"left":case"right":return t?Gre:Vre;default:return[]}}function Yre(e,t,n,r){const a=bd(e);let o=qre(ns(e),n==="start",r);return a&&(o=o.map(i=>i+"-"+a),t&&(o=o.concat(o.map(Ww)))),o}function Iy(e){return e.replace(/left|right|bottom|top/g,t=>zre[t])}function Wre(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zz(e){return typeof e!="number"?Wre(e):{top:e,right:e,bottom:e,left:e}}function Ly(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function _I(e,t,n){let{reference:r,floating:a}=e;const o=li(t),i=g1(t),l=m1(i),c=ns(t),d=o==="y",p=r.x+r.width/2-a.width/2,h=r.y+r.height/2-a.height/2,g=r[l]/2-a[l]/2;let y;switch(c){case"top":y={x:p,y:r.y-a.height};break;case"bottom":y={x:p,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:h};break;case"left":y={x:r.x-a.width,y:h};break;default:y={x:r.x,y:r.y}}switch(bd(t)){case"start":y[i]-=g*(n&&d?-1:1);break;case"end":y[i]+=g*(n&&d?-1:1);break}return y}async function Zre(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:o,rects:i,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:g=!1,padding:y=0}=ts(t,e),v=Zz(y),C=l[g?h==="floating"?"reference":"floating":h],S=Ly(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(C)))==null||n?C:C.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:d,rootBoundary:p,strategy:c})),A=h==="floating"?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),N=await(o.isElement==null?void 0:o.isElement(k))?await(o.getScale==null?void 0:o.getScale(k))||{x:1,y:1}:{x:1,y:1},O=Ly(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:A,offsetParent:k,strategy:c}):A);return{top:(S.top-O.top+v.top)/N.y,bottom:(O.bottom-S.bottom+v.bottom)/N.y,left:(S.left-O.left+v.left)/N.x,right:(O.right-S.right+v.right)/N.x}}const Kre=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,l=o.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:p,y:h}=_I(d,r,c),g=r,y={},v=0;for(let C=0;C<l.length;C++){var x;const{name:S,fn:A}=l[C],{x:k,y:N,data:O,reset:I}=await A({x:p,y:h,initialPlacement:r,placement:g,strategy:a,middlewareData:y,rects:d,platform:{...i,detectOverflow:(x=i.detectOverflow)!=null?x:Zre},elements:{reference:e,floating:t}});p=k??p,h=N??h,y={...y,[S]:{...y[S],...O}},I&&v<=50&&(v++,typeof I=="object"&&(I.placement&&(g=I.placement),I.rects&&(d=I.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:a}):I.rects),{x:p,y:h}=_I(d,g,c)),C=-1)}return{x:p,y:h,placement:g,strategy:a,middlewareData:y}},Qre=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:l,middlewareData:c}=t,{element:d,padding:p=0}=ts(e,t)||{};if(d==null)return{};const h=Zz(p),g={x:n,y:r},y=g1(a),v=m1(y),x=await i.getDimensions(d),C=y==="y",S=C?"top":"left",A=C?"bottom":"right",k=C?"clientHeight":"clientWidth",N=o.reference[v]+o.reference[y]-g[y]-o.floating[v],O=g[y]-o.reference[y],I=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let D=I?I[k]:0;(!D||!await(i.isElement==null?void 0:i.isElement(I)))&&(D=l.floating[k]||o.floating[v]);const U=N/2-O/2,J=D/2-x[v]/2-1,P=Qs(h[S],J),X=Qs(h[A],J),K=P,Q=D-x[v]-X,ne=D/2-x[v]/2+U,ae=Yw(K,ne,Q),H=!c.arrow&&bd(a)!=null&&ne!==ae&&o.reference[v]/2-(ne<K?P:X)-x[v]/2<0,re=H?ne<K?ne-K:ne-Q:0;return{[y]:g[y]+re,data:{[y]:ae,centerOffset:ne-ae-re,...H&&{alignmentOffset:re}},reset:H}}}),Xre=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,...C}=ts(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const S=ns(a),A=li(l),k=ns(l)===l,N=await(c.isRTL==null?void 0:c.isRTL(d.floating)),O=g||(k||!x?[Iy(l)]:Hre(l)),I=v!=="none";!g&&I&&O.push(...Yre(l,x,v,N));const D=[l,...O],U=await c.detectOverflow(t,C),J=[];let P=((r=o.flip)==null?void 0:r.overflows)||[];if(p&&J.push(U[S]),h){const ne=Fre(a,i,N);J.push(U[ne[0]],U[ne[1]])}if(P=[...P,{placement:a,overflows:J}],!J.every(ne=>ne<=0)){var X,K;const ne=(((X=o.flip)==null?void 0:X.index)||0)+1,ae=D[ne];if(ae&&(!(h==="alignment"?A!==li(ae):!1)||P.every(ee=>li(ee.placement)===A?ee.overflows[0]>0:!0)))return{data:{index:ne,overflows:P},reset:{placement:ae}};let H=(K=P.filter(re=>re.overflows[0]<=0).sort((re,ee)=>re.overflows[1]-ee.overflows[1])[0])==null?void 0:K.placement;if(!H)switch(y){case"bestFit":{var Q;const re=(Q=P.filter(ee=>{if(I){const ge=li(ee.placement);return ge===A||ge==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(ge=>ge>0).reduce((ge,B)=>ge+B,0)]).sort((ee,ge)=>ee[1]-ge[1])[0])==null?void 0:Q[0];re&&(H=re);break}case"initialPlacement":H=l;break}if(a!==H)return{reset:{placement:H}}}return{}}}};function EI(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xI(e){return jre.some(t=>e[t]>=0)}const Jre=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:a="referenceHidden",...o}=ts(e,t);switch(a){case"referenceHidden":{const i=await r.detectOverflow(t,{...o,elementContext:"reference"}),l=EI(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:xI(l)}}}case"escaped":{const i=await r.detectOverflow(t,{...o,altBoundary:!0}),l=EI(i,n.floating);return{data:{escapedOffsets:l,escaped:xI(l)}}}default:return{}}}}},Kz=new Set(["left","top"]);async function eae(e,t){const{placement:n,platform:r,elements:a}=e,o=await(r.isRTL==null?void 0:r.isRTL(a.floating)),i=ns(n),l=bd(n),c=li(n)==="y",d=Kz.has(i)?-1:1,p=o&&c?-1:1,h=ts(t,e);let{mainAxis:g,crossAxis:y,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof v=="number"&&(y=l==="end"?v*-1:v),c?{x:y*p,y:g*d}:{x:g*d,y:y*p}}const tae=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:l}=t,c=await eae(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:a+c.x,y:o+c.y,data:{...c,placement:i}}}}},nae=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a,platform:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:S=>{let{x:A,y:k}=S;return{x:A,y:k}}},...d}=ts(e,t),p={x:n,y:r},h=await o.detectOverflow(t,d),g=li(ns(a)),y=h1(g);let v=p[y],x=p[g];if(i){const S=y==="y"?"top":"left",A=y==="y"?"bottom":"right",k=v+h[S],N=v-h[A];v=Yw(k,v,N)}if(l){const S=g==="y"?"top":"left",A=g==="y"?"bottom":"right",k=x+h[S],N=x-h[A];x=Yw(k,x,N)}const C=c.fn({...t,[y]:v,[g]:x});return{...C,data:{x:C.x-n,y:C.y-r,enabled:{[y]:i,[g]:l}}}}}},rae=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=ts(e,t),p={x:n,y:r},h=li(a),g=h1(h);let y=p[g],v=p[h];const x=ts(l,t),C=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(c){const k=g==="y"?"height":"width",N=o.reference[g]-o.floating[k]+C.mainAxis,O=o.reference[g]+o.reference[k]-C.mainAxis;y<N?y=N:y>O&&(y=O)}if(d){var S,A;const k=g==="y"?"width":"height",N=Kz.has(ns(a)),O=o.reference[h]-o.floating[k]+(N&&((S=i.offset)==null?void 0:S[h])||0)+(N?0:C.crossAxis),I=o.reference[h]+o.reference[k]+(N?0:((A=i.offset)==null?void 0:A[h])||0)-(N?C.crossAxis:0);v<O?v=O:v>I&&(v=I)}return{[g]:y,[h]:v}}}},aae=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:i,elements:l}=t,{apply:c=()=>{},...d}=ts(e,t),p=await i.detectOverflow(t,d),h=ns(a),g=bd(a),y=li(a)==="y",{width:v,height:x}=o.floating;let C,S;h==="top"||h==="bottom"?(C=h,S=g===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(S=h,C=g==="end"?"top":"bottom");const A=x-p.top-p.bottom,k=v-p.left-p.right,N=Qs(x-p[C],A),O=Qs(v-p[S],k),I=!t.middlewareData.shift;let D=N,U=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(U=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=A),I&&!g){const P=Ya(p.left,0),X=Ya(p.right,0),K=Ya(p.top,0),Q=Ya(p.bottom,0);y?U=v-2*(P!==0||X!==0?P+X:Ya(p.left,p.right)):D=x-2*(K!==0||Q!==0?K+Q:Ya(p.top,p.bottom))}await c({...t,availableWidth:U,availableHeight:D});const J=await i.getDimensions(l.floating);return v!==J.width||x!==J.height?{reset:{rects:!0}}:{}}}};function Yb(){return typeof window<"u"}function vd(e){return Qz(e)?(e.nodeName||"").toLowerCase():"#document"}function Za(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function gi(e){var t;return(t=(Qz(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qz(e){return Yb()?e instanceof Node||e instanceof Za(e).Node:!1}function Vo(e){return Yb()?e instanceof Element||e instanceof Za(e).Element:!1}function fi(e){return Yb()?e instanceof HTMLElement||e instanceof Za(e).HTMLElement:!1}function wI(e){return!Yb()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Za(e).ShadowRoot}const oae=new Set(["inline","contents"]);function ph(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=qo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!oae.has(a)}const iae=new Set(["table","td","th"]);function sae(e){return iae.has(vd(e))}const lae=[":popover-open",":modal"];function Wb(e){return lae.some(t=>{try{return e.matches(t)}catch{return!1}})}const cae=["transform","translate","scale","rotate","perspective"],uae=["transform","translate","scale","rotate","perspective","filter"],dae=["paint","layout","strict","content"];function y1(e){const t=b1(),n=Vo(e)?qo(e):e;return cae.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||uae.some(r=>(n.willChange||"").includes(r))||dae.some(r=>(n.contain||"").includes(r))}function fae(e){let t=Xs(e);for(;fi(t)&&!Qu(t);){if(y1(t))return t;if(Wb(t))return null;t=Xs(t)}return null}function b1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const pae=new Set(["html","body","#document"]);function Qu(e){return pae.has(vd(e))}function qo(e){return Za(e).getComputedStyle(e)}function Zb(e){return Vo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xs(e){if(vd(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wI(e)&&e.host||gi(e);return wI(t)?t.host:t}function Xz(e){const t=Xs(e);return Qu(t)?e.ownerDocument?e.ownerDocument.body:e.body:fi(t)&&ph(t)?t:Xz(t)}function Dp(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Xz(e),o=a===((r=e.ownerDocument)==null?void 0:r.body),i=Za(a);if(o){const l=Zw(i);
vendor: 4,193 bytes, line 594
594return t.concat(i,i.visualViewport||[],ph(a)?a:[],l&&n?Dp(l):[])}return t.concat(a,Dp(a,[],n))}function Zw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jz(e){const t=qo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=fi(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,l=Dy(n)!==o||Dy(r)!==i;return l&&(n=o,r=i),{width:n,height:r,$:l}}function v1(e){return Vo(e)?e:e.contextElement}function zu(e){const t=v1(e);if(!fi(t))return ci(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=Jz(t);let i=(o?Dy(n.width):n.width)/r,l=(o?Dy(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const hae=ci(0);function eB(e){const t=Za(e);return!b1()||!t.visualViewport?hae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mae(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Za(e)?!1:t}function Xl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=v1(e);let i=ci(1);t&&(r?Vo(r)&&(i=zu(r)):i=zu(e));const l=mae(o,n,r)?eB(o):ci(0);let c=(a.left+l.x)/i.x,d=(a.top+l.y)/i.y,p=a.width/i.x,h=a.height/i.y;if(o){const g=Za(o),y=r&&Vo(r)?Za(r):r;let v=g,x=Zw(v);for(;x&&r&&y!==v;){const C=zu(x),S=x.getBoundingClientRect(),A=qo(x),k=S.left+(x.clientLeft+parseFloat(A.paddingLeft))*C.x,N=S.top+(x.clientTop+parseFloat(A.paddingTop))*C.y;c*=C.x,d*=C.y,p*=C.x,h*=C.y,c+=k,d+=N,v=Za(x),x=Zw(v)}}return Ly({width:p,height:h,x:c,y:d})}function Kb(e,t){const n=Zb(e).scrollLeft;return t?t.left+n:Xl(gi(e)).left+n}function tB(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Kb(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function gae(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=a==="fixed",i=gi(r),l=t?Wb(t.floating):!1;if(r===i||l&&o)return n;let c={scrollLeft:0,scrollTop:0},d=ci(1);const p=ci(0),h=fi(r);if((h||!h&&!o)&&((vd(r)!=="body"||ph(i))&&(c=Zb(r)),fi(r))){const y=Xl(r);d=zu(r),p.x=y.x+r.clientLeft,p.y=y.y+r.clientTop}const g=i&&!h&&!o?tB(i,c):ci(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+p.x+g.x,y:n.y*d.y-c.scrollTop*d.y+p.y+g.y}}function yae(e){return Array.from(e.getClientRects())}function bae(e){const t=gi(e),n=Zb(e),r=e.ownerDocument.body,a=Ya(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Ya(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Kb(e);const l=-n.scrollTop;return qo(r).direction==="rtl"&&(i+=Ya(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:l}}const TI=25;function vae(e,t){const n=Za(e),r=gi(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,l=0,c=0;if(a){o=a.width,i=a.height;const p=b1();(!p||p&&t==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}const d=Kb(r);if(d<=0){const p=r.ownerDocument,h=p.body,g=getComputedStyle(h),y=p.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(r.clientWidth-h.clientWidth-y);v<=TI&&(o-=v)}else d<=TI&&(o+=d);return{width:o,height:i,x:l,y:c}}const _ae=new Set(["absolute","fixed"]);function Eae(e,t){const n=Xl(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=fi(e)?zu(e):ci(1),i=e.clientWidth*o.x,l=e.clientHeight*o.y,c=a*o.x,d=r*o.y;return{width:i,height:l,x:c,y:d}}function SI(e,t,n){let r;if(t==="viewport")r=vae(e,n);else if(t==="document")r=bae(gi(e));else if(Vo(t))r=Eae(t,n);else{const a=eB(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Ly(r)}function nB(e,t){const n=Xs(e);return n===t||!Vo(n)||Qu(n)?!1:qo(n).position==="fixed"||nB(n,t)}function xae(e,t){const n=t.get(e);if(n)return n;let r=Dp(e,[],!1).filter(l=>Vo(l)&&vd(l)!=="body"),a=null;const o=qo(e).position==="fixed";let i=o?Xs(e):e;for(;Vo(i)&&!Qu(i);){const l=qo(i),c=y1(i);!c&&l.position==="fixed"&&(a=null),(o?!c&&!a:!c&&l.position==="static"&&!!a&&_ae.has(a.position)||ph(i)&&!c&&nB(e,i))?r=r.filter(p=>p!==i):a=l,i=Xs(i)}return t.set(e,r),r}function wae(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const i=[...n==="clippingAncestors"?Wb(t)?[]:xae(t,this._c):[].concat(n),r],l=i[0],c=i.reduce((d,p)=>{const h=SI(t,p,a);return d.top=Ya(h.top,d.top),d.right=Qs(h.right,d.right),d.bottom=Qs(h.bottom,d.bottom),d.left
vendor: 9,944 bytes, line 594
594=Ya(h.left,d.left),d},SI(t,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Tae(e){const{width:t,height:n}=Jz(e);return{width:t,height:n}}function Sae(e,t,n){const r=fi(t),a=gi(t),o=n==="fixed",i=Xl(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const c=ci(0);function d(){c.x=Kb(a)}if(r||!r&&!o)if((vd(t)!=="body"||ph(a))&&(l=Zb(t)),r){const y=Xl(t,!0,o,t);c.x=y.x+t.clientLeft,c.y=y.y+t.clientTop}else a&&d();o&&!r&&a&&d();const p=a&&!r&&!o?tB(a,l):ci(0),h=i.left+l.scrollLeft-c.x-p.x,g=i.top+l.scrollTop-c.y-p.y;return{x:h,y:g,width:i.width,height:i.height}}function P0(e){return qo(e).position==="static"}function CI(e,t){if(!fi(e)||qo(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return gi(e)===n&&(n=n.ownerDocument.body),n}function rB(e,t){const n=Za(e);if(Wb(e))return n;if(!fi(e)){let a=Xs(e);for(;a&&!Qu(a);){if(Vo(a)&&!P0(a))return a;a=Xs(a)}return n}let r=CI(e,t);for(;r&&sae(r)&&P0(r);)r=CI(r,t);return r&&Qu(r)&&P0(r)&&!y1(r)?n:r||fae(e)||n}const Cae=async function(e){const t=this.getOffsetParent||rB,n=this.getDimensions,r=await n(e.floating);return{reference:Sae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Aae(e){return qo(e).direction==="rtl"}const kae={convertOffsetParentRelativeRectToViewportRelativeRect:gae,getDocumentElement:gi,getClippingRect:wae,getOffsetParent:rB,getElementRects:Cae,getClientRects:yae,getDimensions:Tae,getScale:zu,isElement:Vo,isRTL:Aae};function aB(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Nae(e,t){let n=null,r;const a=gi(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),o();const d=e.getBoundingClientRect(),{left:p,top:h,width:g,height:y}=d;if(l||t(),!g||!y)return;const v=cg(h),x=cg(a.clientWidth-(p+g)),C=cg(a.clientHeight-(h+y)),S=cg(p),k={rootMargin:-v+"px "+-x+"px "+-C+"px "+-S+"px",threshold:Ya(0,Qs(1,c))||1};let N=!0;function O(I){const D=I[0].intersectionRatio;if(D!==c){if(!N)return i();D?i(!1,D):r=setTimeout(()=>{i(!1,1e-7)},1e3)}D===1&&!aB(d,e.getBoundingClientRect())&&i(),N=!1}try{n=new IntersectionObserver(O,{...k,root:a.ownerDocument})}catch{n=new IntersectionObserver(O,k)}n.observe(e)}return i(!0),o}function Rae(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=v1(e),p=a||o?[...d?Dp(d):[],...Dp(t)]:[];p.forEach(S=>{a&&S.addEventListener("scroll",n,{passive:!0}),o&&S.addEventListener("resize",n)});const h=d&&l?Nae(d,n):null;let g=-1,y=null;i&&(y=new ResizeObserver(S=>{let[A]=S;A&&A.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var k;(k=y)==null||k.observe(t)})),n()}),d&&!c&&y.observe(d),y.observe(t));let v,x=c?Xl(e):null;c&&C();function C(){const S=Xl(e);x&&!aB(x,S)&&n(),x=S,v=requestAnimationFrame(C)}return n(),()=>{var S;p.forEach(A=>{a&&A.removeEventListener("scroll",n),o&&A.removeEventListener("resize",n)}),h?.(),(S=y)==null||S.disconnect(),y=null,c&&cancelAnimationFrame(v)}}const Oae=tae,Dae=nae,Iae=Xre,Lae=aae,$ae=Jre,AI=Qre,Pae=rae,Mae=(e,t,n)=>{const r=new Map,a={platform:kae,...n},o={...a.platform,_c:r};return Kre(e,t,{...a,platform:o})};var jae=typeof document<"u",zae=function(){},Qg=jae?b.useLayoutEffect:zae;function $y(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!$y(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const o=a[r];if(!(o==="_owner"&&e.$$typeof)&&!$y(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function oB(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kI(e,t){const n=oB(e);return Math.round(t*n)/n}function M0(e){const t=b.useRef(e);return Qg(()=>{t.current=e}),t}function Bae(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:i}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[p,h]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,y]=b.useState(r);$y(g,r)||y(r);const[v,x]=b.useState(null),[C,S]=b.useState(null),A=b.useCallback(ee=>{ee!==I.current&&(I.current=ee,x(ee))},[]),k=b.useCallback(ee=>{ee!==D.current&&(D.current=ee,S(ee))},[]),N=o||v,O=i||C,I=b.useRef(null),D=b.useRef(null),U=b.useRef(p),J=c!=null,P=M0(c),X=M0(a),K=M0(d),Q=b.useCallback(()=>{if(!I.current||!D.current)return;const ee={placement:t,strategy:n,middleware:g};X.current&&(ee.platform=X.current),Mae(I.current,D.current,ee).then(ge=>{const B={...ge,isPositioned:K.current!==!1};ne.current&&!$y(U.current,B)&&(U.current=B,gd.flushSync(()=>{h(B)}))})},[g,t,n,X,K]);Qg(()=>{d===!1&&U.current.isPositioned&&(U.current.isPositioned=!1,h(ee=>({...ee,isPositioned:!1})))},[d]);const ne=b.useRef(!1);Qg(()=>(ne.current=!0,()=>{ne.current=!1}),[]),Qg(()=>{if(N&&(I.current=N),O&&(D.current=O),N&&O){if(P.current)return P.current(N,O,Q);Q()}},[N,O,Q,P,J]);const ae=b.useMemo(()=>({reference:I,floating:D,setReference:A,setFloating:k}),[A,k]),H=b.useMemo(()=>({reference:N,floating:O}),[N,O]),re=b.useMemo(()=>{const ee={position:n,left:0,top:0};if(!H.floating)return ee;const ge=kI(H.floating,p.x),B=kI(H.floating,p.y);return l?{...ee,transform:"translate("+ge+"px, "+B+"px)",...oB(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ge,top:B}},[n,l,H.floating,p.x,p.y]);return b.useMemo(()=>({...p,update:Q,refs:ae,elements:H,floatingStyles:re}),[p,Q,ae,H,re])}const Uae=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?AI({element:r.current,padding:a}).fn(n):{}:r?AI({element:r,padding:a}).fn(n):{}}}},Fae=(e,t)=>({...Oae(e),options:[e,t]}),Hae=(e,t)=>({...Dae(e),options:[e,t]}),Gae=(e,t)=>({...Pae(e),options:[e,t]}),Vae=(e,t)=>({...Iae(e),options:[e,t]}),qae=(e,t)=>({...Lae(e),options:[e,t]}),Yae=(e,t)=>({...$ae(e),options:[e,t]}),Wae=(e,t)=>({...Uae(e),options:[e,t]});var Zae="Arrow",iB=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return M.jsx(st.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:M.jsx("polygon",{points:"0,0 30,0 15,10"})})});iB.displayName=Zae;var Kae=iB;function _1(e){const[t,n]=b.useState(void 0);return Vr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let i,l;if("borderBoxSize"in o){const c=o.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,l=d.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var E1="Popper",[sB,tl]=eo(E1),[Qae,lB]=sB(E1),cB=e=>{const{__scopePopper:t,children:n}=e,[r,a]=b.useState(null);return M.jsx(Qae,{scope:t,anchor:r,onAnchorChange:a,children:n})};cB.displayName=E1;var uB="PopperAnchor",dB=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=lB(uB,n),i=b.useRef(null),l=Pt(t,i),c=b.useRef(null);return b.useEffect(()=>{const d=c.current;c.current=r?.current||i.current,d!==c.current&&o.onAnchorChange(c.current)}),r?null:M.jsx(st.div,{...a,ref:l})});dB.displayName=uB;var x1="PopperContent",[Xae,Jae]=sB(x1),fB=b.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:o="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:p=0,sticky:h="partial",hideWhenDetached:g=!1,updatePositionStrategy:y="optimized",onPlaced:v,...x}=e,C=lB(x1,n),[S,A]=b.useState(null),k=Pt(t,he=>A(he)),[N,O]=b.useState(null),I=_1(N),D=I?.width??0,U=I?.height??0,J=r+(o!=="center"?"-"+o:""),P=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},X=Array.isArray(d)?d:[d],K=X.length>0,Q={padding:P,boundary:X.filter(toe),altBoundary:K},{refs:ne,floatingStyles:ae,placement:H,isPositioned:re,middlewareData:ee}=Bae({strategy:"fixed",placement:J,whileElementsMounted:(...he)=>Rae(...he,{animationFrame:y==="always"}),elements:{reference:C.anchor},middleware:[Fae({mainAxis:a+U,alignmentAxis:i}),c&&Hae({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Gae():void 0,...Q}),c&&Vae({...Q}),qae({...Q,apply:({elements:he,rects:Be,availableWidth:qe,availableHeight:nt})=>{const{width:dt,height:lt}=Be.reference,Zt=he.floating.style;Zt.setProperty("--radix-popper-available-width",`${qe}px`),Zt.setProperty("--radix-popper-available-height",`${nt}px`),Zt.setProperty("--radix-popper-anchor-width",`${dt}px`),Zt.setProperty("--radix-popper-anchor-height",`${lt}px`)}}),N&&Wae({element:N,padding:l}),noe({arrowWidth:D,arrowHeight:U}),g&&Yae({strategy:"referenceHidden",...Q})]}),[ge,B]=mB(H),V=Go(v);Vr(()=>{re&&V?.()},[re,V]);const G=ee.arrow?.x,L=ee.arrow?.y,de=ee.arrow?.centerOffset!==0,[_e,Ce]=b.useState();return Vr(()=>{S&&Ce(window.getComputedStyle(S).zIndex)},[S]),M.jsx("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:re?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_e,"--radix-popper-transform-origin":[ee.transformOrigin?.x,ee.transformOrigin?.y].join(" "),...ee.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:M.jsx(Xae,{scope:n,placedSide:ge,onArrowChange:O,arrowX:G,arrowY:L,shouldHideArrow:de,children:M.jsx(st.div,{"data-side":ge,"data-align":B,...x,ref:k,style:{...x.style,animation:re?void 0:"none"}})})})});fB.displayName=x1;var pB="PopperArrow",eoe={top:"bottom",right:"left",bottom:"top",left:"r
594ight"},hB=b.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,o=Jae(pB,r),i=eoe[o.placedSide];return M.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:M.jsx(Kae,{...a,ref:n,style:{...a.style,display:"block"}})})});hB.displayName=pB;function toe(e){return e!==null}var noe=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:a}=t,i=a.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,p]=mB(n),h={start:"0%",center:"50%",end:"100%"}[p],g=(a.arrow?.x??0)+l/2,y=(a.arrow?.y??0)+c/2;let v="",x="";return d==="bottom"?(v=i?h:`${g}px`,x=`${-c}px`):d==="top"?(v=i?h:`${g}px`,x=`${r.floating.height+c}px`):d==="right"?(v=`${-c}px`,x=i?h:`${y}px`):d==="left"&&(v=`${r.floating.width+c}px`,x=i?h:`${y}px`),{data:{x:v,y:x}}}});function mB(e){const[t,n="center"]=e.split("-");return[t,n]}var hh=cB,mh=dB,Qb=fB,Xb=hB,roe="Portal",_d=b.forwardRef((e,t)=>{const{container:n,...r}=e,[a,o]=b.useState(!1);Vr(()=>o(!0),[]);const i=n||a&&globalThis?.document?.body;return i?pre.createPortal(M.jsx(st.div,{...r,ref:t}),i):null});_d.displayName=roe;function aoe(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var ha=e=>{const{present:t,children:n}=e,r=ooe(t),a=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),o=Pt(r.ref,ioe(a));return typeof n=="function"||r.isPresent?b.cloneElement(a,{ref:o}):null};ha.displayName="Presence";function ooe(e){const[t,n]=b.useState(),r=b.useRef(null),a=b.useRef(e),o=b.useRef("none"),i=e?"mounted":"unmounted",[l,c]=aoe(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const d=ug(r.current);o.current=l==="mounted"?d:"none"},[l]),Vr(()=>{const d=r.current,p=a.current;if(p!==e){const g=o.current,y=ug(d);e?c("MOUNT"):y==="none"||d?.display==="none"?c("UNMOUNT"):c(p&&g!==y?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),Vr(()=>{if(t){let d;const p=t.ownerDocument.defaultView??window,h=y=>{const x=ug(r.current).includes(CSS.escape(y.animationName));if(y.target===t&&x&&(c("ANIMATION_END"),!a.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",d=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},g=y=>{y.target===t&&(o.current=ug(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{p.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:b.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function ug(e){return e?.animationName||"none"}function ioe(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var j0="rovingFocusGroup.onEntryFocus",soe={bubbles:!1,cancelable:!0},gh="RovingFocusGroup",[Kw,gB,loe]=p1(gh),[coe,Jb]=eo(gh,[loe]),[uoe,doe]=coe(gh),yB=b.forwardRef((e,t)=>M.jsx(Kw.Provider,{scope:e.__scopeRovingFocusGroup,children:M.jsx(Kw.Slot,{scope:e.__scopeRovingFocusGroup,children:M.jsx(foe,{...e,ref:t})})}));yB.displayName=gh;var foe=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:p=!1,...h}=e,g=b.useRef(null),y=Pt(t,g),v=Vb(o),[x,C]=Ho({prop:i,defaultProp:l??null,onChange:c,caller:gh}),[S,A]=b.useState(!1),k=Go(d),N=gB(n),O=b.useRef(!1),[I,D]=b.useState(0);return b.useEffect(()=>{const U=g.current;
vendor: 9,211 bytes, line 594
594if(U)return U.addEventListener(j0,k),()=>U.removeEventListener(j0,k)},[k]),M.jsx(uoe,{scope:n,orientation:r,dir:v,loop:a,currentTabStopId:x,onItemFocus:b.useCallback(U=>C(U),[C]),onItemShiftTab:b.useCallback(()=>A(!0),[]),onFocusableItemAdd:b.useCallback(()=>D(U=>U+1),[]),onFocusableItemRemove:b.useCallback(()=>D(U=>U-1),[]),children:M.jsx(st.div,{tabIndex:S||I===0?-1:0,"data-orientation":r,...h,ref:y,style:{outline:"none",...e.style},onMouseDown:We(e.onMouseDown,()=>{O.current=!0}),onFocus:We(e.onFocus,U=>{const J=!O.current;if(U.target===U.currentTarget&&J&&!S){const P=new CustomEvent(j0,soe);if(U.currentTarget.dispatchEvent(P),!P.defaultPrevented){const X=N().filter(H=>H.focusable),K=X.find(H=>H.active),Q=X.find(H=>H.id===x),ae=[K,Q,...X].filter(Boolean).map(H=>H.ref.current);_B(ae,p)}}O.current=!1}),onBlur:We(e.onBlur,()=>A(!1))})})}),bB="RovingFocusGroupItem",vB=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:o,children:i,...l}=e,c=fr(),d=o||c,p=doe(bB,n),h=p.currentTabStopId===d,g=gB(n),{onFocusableItemAdd:y,onFocusableItemRemove:v,currentTabStopId:x}=p;return b.useEffect(()=>{if(r)return y(),()=>v()},[r,y,v]),M.jsx(Kw.ItemSlot,{scope:n,id:d,focusable:r,active:a,children:M.jsx(st.span,{tabIndex:h?0:-1,"data-orientation":p.orientation,...l,ref:t,onMouseDown:We(e.onMouseDown,C=>{r?p.onItemFocus(d):C.preventDefault()}),onFocus:We(e.onFocus,()=>p.onItemFocus(d)),onKeyDown:We(e.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){p.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const S=moe(C,p.orientation,p.dir);if(S!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let k=g().filter(N=>N.focusable).map(N=>N.ref.current);if(S==="last")k.reverse();else if(S==="prev"||S==="next"){S==="prev"&&k.reverse();const N=k.indexOf(C.currentTarget);k=p.loop?goe(k,N+1):k.slice(N+1)}setTimeout(()=>_B(k))}}),children:typeof i=="function"?i({isCurrentTabStop:h,hasTabStop:x!=null}):i})})});vB.displayName=bB;var poe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function hoe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function moe(e,t,n){const r=hoe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return poe[r]}function _B(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function goe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var EB=yB,xB=vB;function yoe(e){const t=boe(e),n=b.forwardRef((r,a)=>{const{children:o,...i}=r,l=b.Children.toArray(o),c=l.find(_oe);if(c){const d=c.props.children,p=l.map(h=>h===c?b.Children.count(d)>1?b.Children.only(null):b.isValidElement(d)?d.props.children:null:h);return M.jsx(t,{...i,ref:a,children:b.isValidElement(d)?b.cloneElement(d,void 0,p):null})}return M.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}function boe(e){const t=b.forwardRef((n,r)=>{const{children:a,...o}=n;if(b.isValidElement(a)){const i=xoe(a),l=Eoe(o,a.props);return a.type!==b.Fragment&&(l.ref=r?ra(r,i):i),b.cloneElement(a,l)}return b.Children.count(a)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var voe=Symbol("radix.slottable");function _oe(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===voe}function Eoe(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...l)=>{const c=o(...l);return a(...l),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function xoe(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var woe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},lu=new WeakMap,dg=new WeakMap,fg={},z0=0,wB=function(e){return e&&(e.host||wB(e.parentNode))},Toe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=wB(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Soe=function(e,t,n,r){var a=Toe(t,Array.isArray(e)?e:[e]);fg[n]||(fg[n]=new WeakMap);var o=fg[n],i=[],l=new Set,c=new Set(a),d=function(h){!h||l.has(h)||(l.add(h),d(h.parentNode))};a.forEach(d);var p=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(g){if(l.has(g))p(g);else try{var y=g.getAttribute(r),v=y!==null&&y!=="false",x=(lu.get(g)||0)+1,C=(o.get(g)||0)+1;lu.set(g,x),o.set(g,C),i.push(g),x===1&&v&&dg.set(g,!0),C===1&&g.setAttribute(n,"true"),v||g.setAttribute(r,"true")}catch(S){console.error("aria-hidden: cannot operate on ",g,S)}})};return p(t),l.clear(),z0++,function(){i.forEach(function(h){var g=lu.get(h)-1,y=o.get(h)-1;lu.set(h,g),o.set(h,y),g||(dg.has(h)||h.removeAttribute(r),dg.delete(h)),y||h.removeAttribute(n)}),z0--,z0||(lu=new WeakMap,lu=new WeakMap,dg=new WeakMap,fg={})}},ev=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=woe(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),Soe(r,a,n,"aria-hidden")):function(){return null}},si=function(){return si=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},si.apply(this,arguments)};function TB(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function Coe(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Xg="right-scroll-bar-position",Jg="width-before-scroll-bar",Aoe="with-scroll-bars-hidden",koe="--removed-body-scroll-bar-size";function B0(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Noe(e,t){var n=b.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var Roe=typeof window<"u"?b.useLayoutEffect:b.useEffect,NI=new WeakMap;function Ooe(e,t){var n=Noe(null,function(r){return e.forEach(function(a){return B0(a,r)})});return Roe(function(){var r=NI.get(n);if(r){var a=new Set(r),o=new Set(e),i=n.current;a.forEach(function(l){o.has(l)||B0(l,null)}),o.forEach(function(l){a.has(l)||B0(l,i)})}NI.set(n,e)},[e]),n}function Doe(e){return e}function Ioe(e,t){t===void 0&&(t=Doe);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var i=t(o,r);return n.push(i),function(){n=n.filter(function(l){return l!==i})}},assignSyncMedium:function(o){for(r=!0;n.length;){var i=n;n=[],i.forEach(o)}n={push:function(l){return o(l)},filter:function(){return n}}},assignMedium:function(o){r=!0;var i=[];if(n.length){var l=n;n=[],l.forEach(o),i=n}var c=function(){var p=i;i=[],p.forEach(o)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(p){i.push(p),d()},filter:function(p){return i=i.filter(p),n}}}};return a}function Loe(e){e===void 0&&(e={});var t=Ioe(null);return t.options=si({async:!0,ssr:!1},e),t}var SB=function(e){var t=e.sideCar,n=TB(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return b.createElement(r,si({},n))};SB.isSideCarExport=!0;function $oe(e,t){return e.useMedium(t),SB}var CB=Loe(),U0=function(){},tv=b.forwardRef(function(e,t){var n=b.useRef(null),r=b.useState({onScrollCapture:U0,onWheelCapture:U0,onTouchMoveCapture:U0}),a=r[0],o=r[1],i=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,p=e.enabled,h=e.shards,g=e.sideCar,y=e.noRelative,v=e.noIsolation,x=e.inert,C=e.allowPinchZoom,S=e.as,A=S===void 0?"div":S,k=e.gapMode,N=TB(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=g,I=Ooe([n,t]),D=si(si({},N),a);return b.createElement(b.Fragment,null,p&&b.createElement(O,{sideCar:CB,removeScrollBar:d,shards:h,noRelative:y,noIsolation:v,inert:x,setCallbacks:o,allowPinchZoom:!!C,lockRef:n,gapMode:k}),i?b.cloneElement(b.Children.only(l),si(si({},D),{ref:I})):b.createElement(A,si({},D,{className:c,ref:I}),l))});tv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};tv.classNames={fullWidth:Jg,zeroRight:Xg};var Poe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};
vendor: 5,009 bytes, lines 594-634
594function Moe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Poe();return t&&e.setAttribute("nonce",t),e}function joe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function zoe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Boe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Moe())&&(joe(t,n),zoe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Uoe=function(){var e=Boe();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},AB=function(){var e=Uoe(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},Foe={left:0,top:0,right:0,gap:0},F0=function(e){return parseInt(e||"",10)||0},Hoe=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[F0(n),F0(r),F0(a)]},Goe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Foe;var t=Hoe(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Voe=AB(),Bu="data-scroll-locked",qoe=function(e,t,n,r){var a=e.left,o=e.top,i=e.right,l=e.gap;return n===void 0&&(n="margin"),` 595 .`.concat(Aoe,` { 596 overflow: hidden `).concat(r,`; 597 padding-right: `).concat(l,"px ").concat(r,`; 598 } 599 body[`).concat(Bu,`] { 600 overflow: hidden `).concat(r,`; 601 overscroll-behavior: contain; 602 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 603 padding-left: `.concat(a,`px; 604 padding-top: `).concat(o,`px; 605 padding-right: `).concat(i,`px; 606 margin-left:0; 607 margin-top:0; 608 margin-right: `).concat(l,"px ").concat(r,`; 609 `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),` 610 } 611 612 .`).concat(Xg,` { 613 right: `).concat(l,"px ").concat(r,`; 614 } 615 616 .`).concat(Jg,` { 617 margin-right: `).concat(l,"px ").concat(r,`; 618 } 619 620 .`).concat(Xg," .").concat(Xg,` { 621 right: 0 `).concat(r,`; 622 } 623 624 .`).concat(Jg," .").concat(Jg,` { 625 margin-right: 0 `).concat(r,`; 626 } 627 628 body[`).concat(Bu,`] { 629 `).concat(koe,": ").concat(l,`px; 630 } 631`)},RI=function(){var e=parseInt(document.body.getAttribute(Bu)||"0",10);return isFinite(e)?e:0},Yoe=function(){b.useEffect(function(){return document.body.setAttribute(Bu,(RI()+1).toString()),function(){var e=RI()-1;e<=0?document.body.removeAttribute(Bu):document.body.setAttribute(Bu,e.toString())}},[])},Woe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;Yoe();var o=b.useMemo(function(){return Goe(a)},[a]);return b.createElement(Voe,{styles:qoe(o,!t,a,n?"":"!important")})},Qw=!1;if(typeof window<"u")try{var pg=Object.defineProperty({},"passive",{get:function(){return Qw=!0,!0}});window.addEventListener("test",pg,pg),window.removeEventListener("test",pg,pg)}catch{Qw=!1}var cu=Qw?{passive:!1}:!1,Zoe=function(e){return e.tagName==="TEXTAREA"},kB=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Zoe(e)&&n[t]==="visible")},Koe=function(e){return kB(e,"overflowY")},Qoe=function(e){return kB(e,"overflowX")},OI=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=NB(e,r);if(a){var o=RB(e,r),i=o[1],l=o[2];if(i>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Xoe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Joe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},NB=function(e,t){return e==="v"?Koe(t):Qoe(t)},RB=function(e,t){return e==="v"?Xoe(t):Joe(t)},eie=function(e,t){return e==="h"&&t==="rtl"?-1:1},tie=function(e,t,n,r,a){var o=eie(e,window.getComputedStyle(t).direction),i=o*r,l=n.target,c=t.contains(l),d=!1,p=i>0,h=0,g=0;do{if(!l)break;var y=RB(e,l),v=y[0],x=y[1],C=y[2],S=x-C-o*v;(v||S)&&NB(e,l)&&(h+=S,g+=v);var A=l.parentNode;l=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(p&&Math.abs(h)<1||!p&&Math.abs(g)<1)&&(d=!0),d},hg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},DI=function(e){return[e.deltaX,e.deltaY]},II=function(e){return e&&"current"in e?e.current:e},nie=function(e,t){return e[0]===t[0]&&e[1]===t[1]},rie=function(e){return` 632 .block-interactivity-`.concat(e,` {pointer-events: none;} 633 .allow-interactivity-`).concat(e,` {pointer-events: all;} 634`)},aie=0,uu=[];function oie(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),a=b.useState(aie++)[0],o=b.useState(AB)[0],i=b.useRef(e);b.useEffect(function(){i.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var x=Coe([e.lockRef.current],(e.shards||[]).map(II),!0).filter(
vendor: 23,344 bytes, line 634
634Boolean);return x.forEach(function(C){return C.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),x.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=b.useCallback(function(x,C){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!i.current.allowPinchZoom;var S=hg(x),A=n.current,k="deltaX"in x?x.deltaX:A[0]-S[0],N="deltaY"in x?x.deltaY:A[1]-S[1],O,I=x.target,D=Math.abs(k)>Math.abs(N)?"h":"v";if("touches"in x&&D==="h"&&I.type==="range")return!1;var U=OI(D,I);if(!U)return!0;if(U?O=D:(O=D==="v"?"h":"v",U=OI(D,I)),!U)return!1;if(!r.current&&"changedTouches"in x&&(k||N)&&(r.current=O),!O)return!0;var J=r.current||O;return tie(J,C,x,J==="h"?k:N)},[]),c=b.useCallback(function(x){var C=x;if(!(!uu.length||uu[uu.length-1]!==o)){var S="deltaY"in C?DI(C):hg(C),A=t.current.filter(function(O){return O.name===C.type&&(O.target===C.target||C.target===O.shadowParent)&&nie(O.delta,S)})[0];if(A&&A.should){C.cancelable&&C.preventDefault();return}if(!A){var k=(i.current.shards||[]).map(II).filter(Boolean).filter(function(O){return O.contains(C.target)}),N=k.length>0?l(C,k[0]):!i.current.noIsolation;N&&C.cancelable&&C.preventDefault()}}},[]),d=b.useCallback(function(x,C,S,A){var k={name:x,delta:C,target:S,should:A,shadowParent:iie(S)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(N){return N!==k})},1)},[]),p=b.useCallback(function(x){n.current=hg(x),r.current=void 0},[]),h=b.useCallback(function(x){d(x.type,DI(x),x.target,l(x,e.lockRef.current))},[]),g=b.useCallback(function(x){d(x.type,hg(x),x.target,l(x,e.lockRef.current))},[]);b.useEffect(function(){return uu.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:g}),document.addEventListener("wheel",c,cu),document.addEventListener("touchmove",c,cu),document.addEventListener("touchstart",p,cu),function(){uu=uu.filter(function(x){return x!==o}),document.removeEventListener("wheel",c,cu),document.removeEventListener("touchmove",c,cu),document.removeEventListener("touchstart",p,cu)}},[]);var y=e.removeScrollBar,v=e.inert;return b.createElement(b.Fragment,null,v?b.createElement(o,{styles:rie(a)}):null,y?b.createElement(Woe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function iie(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const sie=$oe(CB,oie);var yh=b.forwardRef(function(e,t){return b.createElement(tv,si({},e,{ref:t,sideCar:sie}))});yh.classNames=tv.classNames;var Xw=["Enter"," "],lie=["ArrowDown","PageUp","Home"],OB=["ArrowUp","PageDown","End"],cie=[...lie,...OB],uie={ltr:[...Xw,"ArrowRight"],rtl:[...Xw,"ArrowLeft"]},die={ltr:["ArrowLeft"],rtl:["ArrowRight"]},bh="Menu",[Ip,fie,pie]=p1(bh),[hc,DB]=eo(bh,[pie,tl,Jb]),vh=tl(),IB=Jb(),[LB,nl]=hc(bh),[hie,_h]=hc(bh),$B=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:a,onOpenChange:o,modal:i=!0}=e,l=vh(t),[c,d]=b.useState(null),p=b.useRef(!1),h=Go(o),g=Vb(a);return b.useEffect(()=>{const y=()=>{p.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>p.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),M.jsx(hh,{...l,children:M.jsx(LB,{scope:t,open:n,onOpenChange:h,content:c,onContentChange:d,children:M.jsx(hie,{scope:t,onClose:b.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:p,dir:g,modal:i,children:r})})})};$B.displayName=bh;var mie="MenuAnchor",w1=b.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,a=vh(n);return M.jsx(mh,{...a,...r,ref:t})});w1.displayName=mie;var T1="MenuPortal",[gie,PB]=hc(T1,{forceMount:void 0}),MB=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:a}=e,o=nl(T1,t);return M.jsx(gie,{scope:t,forceMount:n,children:M.jsx(ha,{present:n||o.open,children:M.jsx(_d,{asChild:!0,container:a,children:r})})})};MB.displayName=T1;var So="MenuContent",[yie,S1]=hc(So),jB=b.forwardRef((e,t)=>{const n=PB(So,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,o=nl(So,e.__scopeMenu),i=_h(So,e.__scopeMenu);return M.jsx(Ip.Provider,{scope:e.__scopeMenu,children:M.jsx(ha,{present:r||o.open,children:M.jsx(Ip.Slot,{scope:e.__scopeMenu,children:i.modal?M.jsx(bie,{...a,ref:t}):M.jsx(vie,{...a,ref:t})})})})}),bie=b.forwardRef((e,t)=>{const n=nl(So,e.__scopeMenu),r=b.useRef(null),a=Pt(t,r);return b.useEffect(()=>{const o=r.current;if(o)return ev(o)},[]),M.jsx(C1,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:We(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),vie=b.forwardRef((e,t)=>{const n=nl(So,e.__scopeMenu);return M.jsx(C1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),_ie=yoe("MenuContent.ScrollLock"),C1=b.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:h,onInteractOutside:g,onDismiss:y,disableOutsideScroll:v,...x}=e,C=nl(So,n),S=_h(So,n),A=vh(n),k=IB(n),N=fie(n),[O,I]=b.useState(null),D=b.useRef(null),U=Pt(t,D,C.onContentChange),J=b.useRef(0),P=b.useRef(""),X=b.useRef(0),K=b.useRef(null),Q=b.useRef("right"),ne=b.useRef(0),ae=v?yh:b.Fragment,H=v?{as:_ie,allowPinchZoom:!0}:void 0,re=ge=>{const B=P.current+ge,V=N().filter(he=>!he.disabled),G=document.activeElement,L=V.find(he=>he.ref.current===G)?.textValue,de=V.map(he=>he.textValue),_e=Die(de,B,L),Ce=V.find(he=>he.textValue===_e)?.ref.current;(function he(Be){P.current=Be,window.clearTimeout(J.current),Be!==""&&(J.current=window.setTimeout(()=>he(""),1e3))})(B),Ce&&setTimeout(()=>Ce.focus())};b.useEffect(()=>()=>window.clearTimeout(J.current),[]),qb();const ee=b.useCallback(ge=>Q.current===K.current?.side&&Lie(ge,K.current?.area),[]);return M.jsx(yie,{scope:n,searchRef:P,onItemEnter:b.useCallback(ge=>{ee(ge)&&ge.preventDefault()},[ee]),onItemLeave:b.useCallback(ge=>{ee(ge)||(D.current?.focus(),I(null))},[ee]),onTriggerLeave:b.useCallback(ge=>{ee(ge)&&ge.preventDefault()},[ee]),pointerGraceTimerRef:X,onPointerGraceIntentChange:b.useCallback(ge=>{K.current=ge},[]),children:M.jsx(ae,{...H,children:M.jsx(fh,{asChild:!0,trapped:a,onMountAutoFocus:We(o,ge=>{ge.preventDefault(),D.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:M.jsx(yd,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:h,onInteractOutside:g,onDismiss:y,children:M.jsx(EB,{asChild:!0,...k,dir:S.dir,orientation:"vertical",loop:r,currentTabStopId:O,onCurrentTabStopIdChange:I,onEntryFocus:We(c,ge=>{S.isUsingKeyboardRef.current||ge.preventDefault()}),preventScrollOnEntryFocus:!0,children:M.jsx(Qb,{role:"menu","aria-orientation":"vertical","data-state":tU(C.open),"data-radix-menu-content":"",dir:S.dir,...A,...x,ref:U,style:{outline:"none",...x.style},onKeyDown:We(x.onKeyDown,ge=>{const V=ge.target.closest("[data-radix-menu-content]")===ge.currentTarget,G=ge.ctrlKey||ge.altKey||ge.metaKey,L=ge.key.length===1;V&&(ge.key==="Tab"&&ge.preventDefault(),!G&&L&&re(ge.key));const de=D.current;if(ge.target!==de||!cie.includes(ge.key))return;ge.preventDefault();const Ce=N().filter(he=>!he.disabled).map(he=>he.ref.current);OB.includes(ge.key)&&Ce.reverse(),Rie(Ce)}),onBlur:We(e.onBlur,ge=>{ge.currentTarget.contains(ge.target)||(window.clearTimeout(J.current),P.current="")}),onPointerMove:We(e.onPointerMove,Lp(ge=>{const B=ge.target,V=ne.current!==ge.clientX;if(ge.currentTarget.contains(B)&&V){const G=ge.clientX>ne.current?"right":"left";Q.current=G,ne.current=ge.clientX}}))})})})})})})});jB.displayName=So;var Eie="MenuGroup",A1=b.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return M.jsx(st.div,{role:"group",...r,ref:t})});A1.displayName=Eie;var xie="MenuLabel",zB=b.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return M.jsx(st.div,{...r,ref:t})});zB.displayName=xie;var Py="MenuItem",LI="menu.itemSelect",nv=b.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...a}=e,o=b.useRef(null),i=_h(Py,e.__scopeMenu),l=S1(Py,e.__scopeMenu),c=Pt(t,o),d=b.useRef(!1),p=()=>{const h=o.current;if(!n&&h){const g=new CustomEvent(LI,{bubbles:!0,cancelable:!0});h.addEventListener(LI,y=>r?.(y),{once:!0}),Vz(h,g),g.defaultPrevented?d.current=!1:i.onClose()}};return M.jsx(BB,{...a,ref:c,disabled:n,onClick:We(e.onClick,p),onPointerDown:h=>{e.onPointerDown?.(h),d.current=!0},onPointerUp:We(e.onPointerUp,h=>{d.current||h.currentTarget?.click()}),onKeyDown:We(e.onKeyDown,h=>{const g=l.searchRef.current!=="";n||g&&h.key===" "||Xw.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});nv.displayName=Py;var BB=b.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:a,...o}=e,i=S1(Py,n),l=IB(n),c=b.useRef(null),d=Pt(t,c),[p,h]=b.useState(!1),[g,y]=b.useState("");return b.useEffect(()=>{const v=c.current;v&&y((v.textContent??"").trim())},[o.children]),M.jsx(Ip.ItemSlot,{scope:n,disabled:r,textValue:a??g,children:M.jsx(xB,{asChild:!0,...l,focusable:!r,children:M.jsx(st.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...o,ref:d,onPointerMove:We(e.onPointerMove,Lp(v=>{r?i.onItemLeave(v):(i.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:We(e.onPointerLeave,Lp(v=>i.onItemLeave(v))),onFocus:We(e.onFocus,()=>h(!0)),onBlur:We(e.onBlur,()=>h(!1))})})})}),wie="MenuCheckboxItem",UB=b.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...a}=e;return M.jsx(qB,{scope:e.__scopeMenu,checked:n,children:M.jsx(nv,{role:"menuitemcheckbox","aria-checked":My(n)?"mixed":n,...a,ref:t,"data-state":R1(n),onSelect:We(a.onSelect,()=>r?.(My(n)?!0:!n),{checkForDefaultPrevented:!1})})})});UB.displayName=wie;var FB="MenuRadioGroup",[Tie,Sie]=hc(FB,{value:void 0,onValueChange:()=>{}}),HB=b.forwardRef((e,t)=>{const{value:n,onValueChange:r,...a}=e,o=Go(r);return M.jsx(Tie,{scope:e.__scopeMenu,value:n,onValueChange:o,children:M.jsx(A1,{...a,ref:t})})});HB.displayName=FB;var GB="MenuRadioItem",VB=b.forwardRef((e,t)=>{const{value:n,...r}=e,a=Sie(GB,e.__scopeMenu),o=n===a.value;return M.jsx(qB,{scope:e.__scopeMenu,checked:o,children:M.jsx(nv,{role:"menuitemradio","aria-checked":o,...r,ref:t,"data-state":R1(o),onSelect:We(r.onSelect,()=>a.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});VB.displayName=GB;var k1="MenuItemIndicator",[qB,Cie]=hc(k1,{checked:!1}),YB=b.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...a}=e,o=Cie(k1,n);return M.jsx(ha,{present:r||My(o.checked)||o.checked===!0,children:M.jsx(st.span,{...a,ref:t,"data-state":R1(o.checked)})})});YB.displayName=k1;var Aie="MenuSeparator",WB=b.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return M.jsx(st.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});WB.displayName=Aie;var kie="MenuArrow",ZB=b.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,a=vh(n);return M.jsx(Xb,{...a,...r,ref:t})});ZB.displayName=kie;var N1="MenuSub",[Nie,KB]=hc(N1),QB=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:a}=e,o=nl(N1,t),i=vh(t),[l,c]=b.useState(null),[d,p]=b.useState(null),h=Go(a);return b.useEffect(()=>(o.open===!1&&h(!1),()=>h(!1)),[o.open,h]),M.jsx(hh,{...i,children:M.jsx(LB,{scope:t,open:r,onOpenChange:h,content:d,onContentChange:p,children:M.jsx(Nie,{scope:t,contentId:fr(),triggerId:fr(),trigger:l,onTriggerChange:c,children:n})})})};QB.displayName=N1;var Xf="MenuSubTrigger",XB=b.forwardRef((e,t)=>{const n=nl(Xf,e.__scopeMenu),r=_h(Xf,e.__scopeMenu),a=KB(Xf,e.__scopeMenu),o=S1(Xf,e.__scopeMenu),i=b.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=o,d={__scopeMenu:e.__scopeMenu},p=b.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return b.useEffect(()=>p,[p]),b.useEffect(()=>{const h=l.current;return()=>{window.clearTimeout(h),c(null)}},[l,c]),M.jsx(w1,{asChild:!0,...d,children:M.jsx(BB,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":tU(n.open),...e,ref:ra(t,a.onTriggerChange),onClick:h=>{e.onClick?.(h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:We(e.onPointerMove,Lp(h=>{o.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(o.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:We(e.onPointerLeave,Lp(h=>{p();const g=n.content?.getBoundingClientRect();if(g){const y=n.content?.dataset.side,v=y==="right",x=v?-5:5,C=g[v?"left":"right"],S=g[v?"right":"left"];o.onPointerGraceIntentChange({area:[{x:h.clientX+x,y:h.clientY},{x:C,y:g.top},{x:S,y:g.top},{x:S,y:g.bottom},{x:C,y:g.bottom}],side:y}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(h),h.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:We(e.onKeyDown,h=>{const g=o.searchRef.current!=="";e.disabled||g&&h.key===" "||uie[r.dir].includes(h.key)&&(n.onOpenChange(!0),n.content?.focus(),h.preventDefault())})})})});XB.displayName=Xf;var JB="MenuSubContent",eU=b.forwardRef((e,t)=>{const n=PB(So,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,o=nl(So,e.__scopeMenu),i=_h(So,e.__scopeMenu),l=KB(JB,e.__scopeMenu),c=b.useRef(null),d=Pt(t,c);return M.jsx(Ip.Provider,{scope:e.__scopeMenu,children:M.jsx(ha,{present:r||o.open,children:M.jsx(Ip.Slot,{scope:e.__scopeMenu,children:M.jsx(C1,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:d,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{i.isUsingKeyboardRef.current&&c.current?.focus(),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:We(e.onFocusOutside,p=>{p.target!==l.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:We(e.onEscapeKeyDown,p=>{i.onClose(),p.preventDefault()}),onKeyDown:We(e.onKeyDown,p=>{const h=p.currentTarget.contains(p.target),g=die[i.dir].includes(p.key);h&&g&&(o.onOpenChange(!1),l.trigger?.focus(),p.preventDefault())})})})})})});eU.displayName=JB;function tU(e){return e?"open":"closed"}function My(e){return e==="indeterminate"}function R1(e){return My(e)?"indeterminate":e?"checked":"unchecked"}function Rie(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Oie(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Die(e,t,n){const a=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=Oie(e,Math.max(o,0));a.length===1&&(i=i.filter(d=>d!==n));const c=i.find(d=>d.toLowerCase().startsWith(a.toLowerCase()));return c!==n?c:void 0}function Iie(e,t){const{x:n,y:r}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const l=t[o],c=t[i],d=l.x,p=l.y,h=c.x,g=c.y;p>r!=g>r&&n<(h-d)*(r-p)/(g-p)+d&&(a=!a)}return a}function Lie(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Iie(n,t)}function Lp(e){return t=>t.pointerType==="mouse"?e(t):void 0}var $ie=$B,Pie=w1,Mie=MB,jie=jB,zie=A1,Bie=zB,Uie=nv,Fie=UB,Hie=HB,Gie=VB,Vie=YB,qie=WB,Yie=ZB,Wie=QB,Zie=XB,Kie=eU,rv="DropdownMenu",[Qie,DBe]=eo(rv,[DB]),oa=DB(),[Xie,nU]=Qie(rv),rU=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:a,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,c=oa(t),d=b.useRef(null),[p,h]=Ho({prop:a,defaultProp:o??!1,onChange:i,caller:rv});return M.jsx(Xie,{scope:t,triggerId:fr(),triggerRef:d,contentId:fr(),open:p,onOpenChange:h,onOpenToggle:b.useCallback(()=>h(g=>!g),[h]),modal:l,children:M.jsx($ie,{...c,open:p,onOpenChange:h,dir:r,modal:l,children:n})})};rU.displayName=rv;var aU="DropdownMenuTrigger",oU=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,o=nU(aU,n),i=oa(n);return M.jsx(Pie,{asChild:!0,...i,children:M.jsx(st.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:ra(t,o.triggerRef),onPointerDown:We(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(o.onOpenToggle(),o.open||l.preventDefault())}),onKeyDown:We(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&o.onOpenToggle(),l.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});oU.displayName=aU;var Jie="DropdownMenuPortal",iU=e=>{const{__scopeDropdownMenu:t,...n}=e,r=oa(t);return M.jsx(Mie,{...r,...n})};iU.displayName=Jie;var sU="DropdownMenuContent",lU=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=nU(sU,n),o=oa(n),i=b.useRef(!1);return M.jsx(jie,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...r,ref:t,onCloseAutoFocus:We(e.onCloseAutoFocus,l=>{i.current||a.triggerRef.current?.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:We(e.onInteractOutside,l=>{const c=l.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,p=c.button===2||d;(!a.modal||p)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});lU.displayName=sU;var ese="DropdownMenuGroup",cU=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=oa(n);return M.jsx(zie,{...a,...r,ref:t})});cU.displayName=ese;var tse="DropdownMenuLabel",uU=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=oa(n);return M.jsx(Bie,{...a,...r,ref:t})});uU.displayName=tse;var nse="DropdownMenuItem",dU=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=oa(n);return M.jsx(Uie,{...a,...r,ref:t})});dU.displayName=nse;var rse="DropdownMenuCheckboxItem",ase=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=oa(n);return M.jsx(Fie,{...a,...r,ref:t})});ase.displayName=rse;var ose="DropdownMenuRadioGroup",ise=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=oa(n);return M.jsx(Hie,{...a,...r,ref:t})});ise.displayName=ose;var sse="DropdownMenuRadioItem",lse=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=oa(n);return M.jsx(Gie,{...a,...r,ref:t})});lse.displayName=sse;var cse="DropdownMenuItemIndicator",use=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=oa(n);return M.jsx(Vie,{...a,...r,ref:t})});use.displayName=cse;var dse="DropdownMenuSeparator",fU=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=oa(n);return M.jsx(qie,{...a,...r,ref:t})});fU.displayName=dse;var fse="DropdownMenuArrow",pse=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=oa(n);return M.jsx(Yie,{...a,...r,ref:t})});pse.displayName=fse;var hse=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:a,defaultOpen:o}=e,i=oa(t),[l,c]=Ho({prop:r,defaultProp:o??!1,onChange:a,caller:"DropdownMenuSub"});return M.jsx(Wie,{...i,open:l,onOpenChange:c,children:n})},mse="DropdownMenuSubTrigger",pU=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=oa(n);return M.jsx(Zie,{...a,...r,ref:t})});pU.displayName=mse;var gse="DropdownMenuSubContent",hU=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=oa(n);return M.jsx(Kie,{...a,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});hU.displayName=gse;var mU=rU,gU=oU,O1=iU,yU=lU,yse=cU,bU=uU,vU=dU,_U=fU,bse=hse,vse=pU,_se=hU;function Ese({...e}){return E.jsx(mU,{"data-slot":"dropdown-menu",...e})}function xse({...e}){return E.jsx(O1,{"data-slot":"dropdown-menu-portal",...e})}function wse({...e}){return E.jsx(gU,{"data-slot":"dropdown-menu-trigger",...e})}function Tse({className:e,sideOffset:t=4,...n}){return E.jsx(O1,{children:E.jsx(yU,{"data-slot":"dropdown-menu-content",sideOffset:t,className:xe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function Sse({className:e,inset:t,variant:n="default",...r}){return E.jsx(vU,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:xe("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function Cse({className:e,inset:t,...n}){return E.jsx(bU,{"data-slot":"dropdown-menu-label","data-inset":t,className:xe("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function H0({className:e,...t}){return E.jsx(_U,{"data-slot":"dropdown-menu-separator",className:xe("bg-border -mx-1 my-1 h-px",e),...t})}function Ase({...e}){return E.jsx(bse,{"data-slot":"dropdown-menu-sub",...e})}function kse({className:e,inset:t,children:n,...r}){return E.jsxs(vse,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:xe("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,E.jsx(vS,{className:"ml-auto size-4"})]})}function Nse({className:e,...t}){return E.jsx(_se,{"data-slot":"dropdown-menu-sub-content",className:xe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
634de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}const Rse=()=>()=>{},Xu=e=>b.useSyncExternalStore(Rse,()=>"client",()=>"server")==="client"?e.children:e.fallback;var Ose=Symbol.for("react.lazy"),jy=od[" use ".trim().toString()];function Dse(e){return typeof e=="object"&&e!==null&&"then"in e}function EU(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ose&&"_payload"in e&&Dse(e._payload)}function Ise(e){const t=Lse(e),n=b.forwardRef((r,a)=>{let{children:o,...i}=r;EU(o)&&typeof jy=="function"&&(o=jy(o._payload));const l=b.Children.toArray(o),c=l.find(Pse);if(c){const d=c.props.children,p=l.map(h=>h===c?b.Children.count(d)>1?b.Children.only(null):b.isValidElement(d)?d.props.children:null:h);return M.jsx(t,{...i,ref:a,children:b.isValidElement(d)?b.cloneElement(d,void 0,p):null})}return M.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}function Lse(e){const t=b.forwardRef((n,r)=>{let{children:a,...o}=n;if(EU(a)&&typeof jy=="function"&&(a=jy(a._payload)),b.isValidElement(a)){const i=jse(a),l=Mse(o,a.props);return a.type!==b.Fragment&&(l.ref=r?ra(r,i):i),b.cloneElement(a,l)}return b.Children.count(a)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $se=Symbol("radix.slottable");function Pse(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$se}function Mse(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...l)=>{const c=o(...l);return a(...l),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function jse(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zse=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Bse=zse.reduce((e,t)=>{const n=Ise(`Primitive.${t}`),r=b.forwardRef((a,o)=>{const{asChild:i,...l}=a,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),M.jsx(c,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Use=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Fse="VisuallyHidden",Eh=b.forwardRef((e,t)=>M.jsx(Bse.span,{...e,ref:t,style:{...Use,...e.style}}));Eh.displayName=Fse;var Hse=Symbol.for("react.lazy"),zy=od[" use ".trim().toString()];function Gse(e){return typeof e=="object"&&e!==null&&"then"in e}function xU(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Hse&&"_payload"in e&&Gse(e._payload)}function Vse(e){const t=qse(e),n=b.forwardRef((r,a)=>{let{children:o,...i}=r;xU(o)&&typeof zy=="function"&&(o=zy(o._payload));const l=b.Children.toArray(o),c=l.find(Wse);if(c){const d=c.props.children,p=l.map(h=>h===c?b.Children.count(d)>1?b.Children.only(null):b.isValidElement(d)?d.props.children:null:h);return M.jsx(t,{...i,ref:a,children:b.isValidElement(d)?b.cloneElement(d,void 0,p):null})}return M.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}function qse(e){const t=b.forwardRef((n,r)=>{let{children:a,...o}=n;if(xU(a)&&typeof zy=="function"&&(a=zy(a._payload)),b.isValidElement(a)){const i=Kse(a),l=Zse(o,a.props);return a.type!==b.Fragment&&(l.ref=r?ra(r,i):i),b.cloneElement(a,l)}return b.Children.count(a)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Yse=Symbol("radix.slottable");function Wse(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Yse}function Zse(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...l)=>{const c=o(...l);return a(...l),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}
vendor: 4,303 bytes, line 634
634:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function Kse(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Qse=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Xse=Qse.reduce((e,t)=>{const n=Vse(`Primitive.${t}`),r=b.forwardRef((a,o)=>{const{asChild:i,...l}=a,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),M.jsx(c,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Jse="Separator",$I="horizontal",ele=["horizontal","vertical"],wU=b.forwardRef((e,t)=>{const{decorative:n,orientation:r=$I,...a}=e,o=tle(r)?r:$I,l=n?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return M.jsx(Xse.div,{"data-orientation":o,...l,...a,ref:t})});wU.displayName=Jse;function tle(e){return ele.includes(e)}var nle=wU;function rle(e){const t=ale(e),n=b.forwardRef((r,a)=>{const{children:o,...i}=r,l=b.Children.toArray(o),c=l.find(ile);if(c){const d=c.props.children,p=l.map(h=>h===c?b.Children.count(d)>1?b.Children.only(null):b.isValidElement(d)?d.props.children:null:h);return M.jsx(t,{...i,ref:a,children:b.isValidElement(d)?b.cloneElement(d,void 0,p):null})}return M.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}function ale(e){const t=b.forwardRef((n,r)=>{const{children:a,...o}=n;if(b.isValidElement(a)){const i=lle(a),l=sle(o,a.props);return a.type!==b.Fragment&&(l.ref=r?ra(r,i):i),b.cloneElement(a,l)}return b.Children.count(a)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ole=Symbol("radix.slottable");function ile(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ole}function sle(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...l)=>{const c=o(...l);return a(...l),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function lle(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var av="Dialog",[TU,IBe]=eo(av),[cle,Zo]=TU(av),SU=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,l=b.useRef(null),c=b.useRef(null),[d,p]=Ho({prop:r,defaultProp:a??!1,onChange:o,caller:av});return M.jsx(cle,{scope:t,triggerRef:l,contentRef:c,contentId:fr(),titleId:fr(),descriptionId:fr(),open:d,onOpenChange:p,onOpenToggle:b.useCallback(()=>p(h=>!h),[p]),modal:i,children:n})};SU.displayName=av;var CU="DialogTrigger",AU=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Zo(CU,n),o=Pt(t,a.triggerRef);return M.jsx(st.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":L1(a.open),...r,ref:o,onClick:We(e.onClick,a.onOpenToggle)})});AU.displayName=CU;var D1="DialogPortal",[ule,kU]=TU(D1,{forceMount:void 0}),NU=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=Zo(D1,t);return M.jsx(ule,{scope:t,forceMount:n,children:b.Children.map(r,i=>M.jsx(ha,{present:n||o.open,children:M.jsx(_d,{asChild:!0,container:a,children:i})}))})};NU.displayName=D1;var By="DialogOverlay",RU=b.forwardRef((e,t)=>{const n=kU(By,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Zo(By,e.__scopeDialog);return o.modal?M.jsx(ha,{present:r||o.open,children:M.jsx(fle,{...a,ref:t})}):null});RU.displayName=By;var dle=rle("DialogOverlay.RemoveScroll"),fle=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Zo(By,n);return M.jsx(yh,{as:dle,allowPinchZoom:!0,shards:[a.contentRef],children:M.jsx(st.div,{"data-state":L1(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Jl="DialogContent",OU=b.forwardRef((e,t)=>{const n=kU(Jl,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Zo(Jl,e.__scopeDialog);return M.jsx(ha,{present:r||o.open,children:o.modal?M.jsx(ple,{...a,ref:t}):M.jsx(hle,{...a,ref:t})})});OU.displayName=Jl;var ple=b.forwardRef((e,t)=>
vendor: 7,644 bytes, lines 634-640
634{const n=Zo(Jl,e.__scopeDialog),r=b.useRef(null),a=Pt(t,n.contentRef,r);return b.useEffect(()=>{const o=r.current;if(o)return ev(o)},[]),M.jsx(DU,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:We(e.onCloseAutoFocus,o=>{o.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:We(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&o.preventDefault()}),onFocusOutside:We(e.onFocusOutside,o=>o.preventDefault())})}),hle=b.forwardRef((e,t)=>{const n=Zo(Jl,e.__scopeDialog),r=b.useRef(!1),a=b.useRef(!1);return M.jsx(DU,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(r.current||n.triggerRef.current?.focus(),o.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const i=o.target;n.triggerRef.current?.contains(i)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})}),DU=b.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,l=Zo(Jl,n),c=b.useRef(null),d=Pt(t,c);return qb(),M.jsxs(M.Fragment,{children:[M.jsx(fh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:M.jsx(yd,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":L1(l.open),...i,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),M.jsxs(M.Fragment,{children:[M.jsx(mle,{titleId:l.titleId}),M.jsx(yle,{contentRef:c,descriptionId:l.descriptionId})]})]})}),I1="DialogTitle",IU=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Zo(I1,n);return M.jsx(st.h2,{id:a.titleId,...r,ref:t})});IU.displayName=I1;var LU="DialogDescription",$U=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Zo(LU,n);return M.jsx(st.p,{id:a.descriptionId,...r,ref:t})});$U.displayName=LU;var PU="DialogClose",MU=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Zo(PU,n);return M.jsx(st.button,{type:"button",...r,ref:t,onClick:We(e.onClick,()=>a.onOpenChange(!1))})});MU.displayName=PU;function L1(e){return e?"open":"closed"}var jU="DialogTitleWarning",[LBe,zU]=sre(jU,{contentName:Jl,titleName:I1,docsSlug:"dialog"}),mle=({titleId:e})=>{const t=zU(jU),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 635 636If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 637 638For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return b.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},gle="DialogDescriptionWarning",yle=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zU(gle).contentName}}.`;return b.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},$1=SU,BU=AU,P1=NU,M1=RU,j1=OU,z1=IU,UU=$U,ble=MU;function vle(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const FU=ce.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),xh=()=>{const e=ce.useContext(FU);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};vle(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not( 639[data-state=closed] 640){opacity:0}
640[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function _le(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function Ele(){return B1(/^Mac/)}function xle(){return B1(/^iPhone/)}function PI(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function wle(){return B1(/^iPad/)||Ele()&&navigator.maxTouchPoints>1}function HU(){return xle()||wle()}function B1(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const Tle=24,Sle=typeof window<"u"?b.useLayoutEffect:b.useEffect;function MI(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const G0=typeof document<"u"&&window.visualViewport;function jI(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function GU(e){for(jI(e)&&(e=e.parentElement);e&&!jI(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const Cle=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let mg=0,zI;function Ale(e={}){let{isDisabled:t}=e;Sle(()=>{if(!t)return mg++,mg===1&&HU()&&(zI=kle()),()=>{mg--,mg===0&&zI?.()}},[t])}function kle(){let e,t=0,n=h=>{e=GU(h.target),!(e===document.documentElement&&e===document.body)&&(t=h.changedTouches[0].pageY)},r=h=>{if(!e||e===document.documentElement||e===document.body){h.preventDefault();return}let g=h.changedTouches[0].pageY,y=e.scrollTop,v=e.scrollHeight-e.clientHeight;v!==0&&((y<=0&&g>t||y>=v&&g<t)&&h.preventDefault(),t=g)},a=h=>{let g=h.target;Jw(g)&&g!==document.activeElement&&(h.preventDefault(),g.style.transform="translateY(-2000px)",g.focus(),requestAnimationFrame(()=>{g.style.transform=""}))},o=h=>{let g=h.target;Jw(g)&&(g.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{g.style.transform="",G0&&(G0.height<window.innerHeight?requestAnimationFrame(()=>{BI(g)}):G0.addEventListener("resize",()=>BI(g),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},l=window.pageXOffset,c=window.pageYOffset,d=MI(Nle(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let p=MI(If(document,"touchstart",n,{passive:!1,capture:!0}),If(document,"touchmove",r,{passive:!1,capture:!0}),If(document,"touchend",a,{passive:!1,capture:!0}),If(document,"focus",o,!0),If(window,"scroll",i));return()=>{d(),p(),window.scrollTo(l,c)}}function Nle(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function If(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function BI(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=GU(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,a=e.getBoundingClientRect().top,o=e.getBoundingClientRect().bottom;const i=n.getBoundingClientRect().bottom+Tle;o>i&&(n.scrollTop+=a-r)}e=n.parentElement}}function Jw(e){return e instanceof HTMLInputElement&&!Cle.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Rle(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ole(...e){return t=>e.forEach(n=>Rle(n,t))}function VU(...e){return b.useCallback(Ole(...e),e)}const qU=new WeakMap;function Er(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([a,o])=>{if(a.startsWith("--")){e.style.setProperty(a,o);return}r[a]=e.style[a],e.style[a]=o}),!n&&qU.set(e,r)}function Dle(e,t){if(!e||!(e instanceof HTMLElement))return;let n=qU.get(e);n&&(e.style[t]=n[t])}const dr=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function gg(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let a=r.match(/^matrix3d\((.+)\)$/);return a?parseFloat(a[1].split(", ")[dr(t)?13:12]):(a=r.match(/^matrix\((.+)\)$/),a?parseFloat(a[1].split(", ")[dr(t)?5:4]):null)}function Ile(e){return 8*(Math.log(e+1)-2)}function V0(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function Lle(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const In={DURATION:.5,EASE:[.32,.72,0,1]},YU=.4,$le=.25,Ple=100,WU=8,Il=16,eT=26,q0="vaul-dragging";function ZU(e){const t=ce.useRef(e);return ce.useEffect(()=>{t.current=e}),ce.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function Mle({defaultProp:e,onChange:t}){const n=ce.useState(e),[r]=n,a=ce.useRef(r),o=ZU(t);return ce.useEffect(()=>{a.current!==r&&(o(r),a.current=r)},[r,a,o]),n}function KU({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=Mle({defaultProp:t,onChange:n}),o=e!==void 0,i=o?e:r,l=ZU(n),c=ce.useCallback(d=>
640{if(o){const p=typeof d=="function"?d(e):d;p!==e&&l(p)}else a(d)},[o,e,a,l]);return[i,c]}function jle({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:a,fadeFromIndex:o,onSnapPointChange:i,direction:l="bottom",container:c,snapToSequentialPoint:d}){const[p,h]=KU({prop:e,defaultProp:n?.[0],onChange:t}),[g,y]=ce.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);ce.useEffect(()=>{function D(){y({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",D),()=>window.removeEventListener("resize",D)},[]);const v=ce.useMemo(()=>p===n?.[n.length-1]||null,[n,p]),x=ce.useMemo(()=>{var D;return(D=n?.findIndex(U=>U===p))!=null?D:null},[n,p]),C=n&&n.length>0&&(o||o===0)&&!Number.isNaN(o)&&n[o]===p||!n,S=ce.useMemo(()=>{const D=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var U;return(U=n?.map(J=>{const P=typeof J=="string";let X=0;if(P&&(X=parseInt(J,10)),dr(l)){const Q=P?X:g?J*D.height:0;return g?l==="bottom"?D.height-Q:-D.height+Q:Q}const K=P?X:g?J*D.width:0;return g?l==="right"?D.width-K:-D.width+K:K}))!=null?U:[]},[n,g,c]),A=ce.useMemo(()=>x!==null?S?.[x]:null,[S,x]),k=ce.useCallback(D=>{var U;const J=(U=S?.findIndex(P=>P===D))!=null?U:null;i(J),Er(r.current,{transition:`transform ${In.DURATION}s cubic-bezier(${In.EASE.join(",")})`,transform:dr(l)?`translate3d(0, ${D}px, 0)`:`translate3d(${D}px, 0, 0)`}),S&&J!==S.length-1&&o!==void 0&&J!==o&&J<o?Er(a.current,{transition:`opacity ${In.DURATION}s cubic-bezier(${In.EASE.join(",")})`,opacity:"0"}):Er(a.current,{transition:`opacity ${In.DURATION}s cubic-bezier(${In.EASE.join(",")})`,opacity:"1"}),h(n?.[Math.max(J,0)])},[r.current,n,S,o,a,h]);ce.useEffect(()=>{if(p||e){var D;const U=(D=n?.findIndex(J=>J===e||J===p))!=null?D:-1;S&&U!==-1&&typeof S[U]=="number"&&k(S[U])}},[p,e,n,S,k]);function N({draggedDistance:D,closeDrawer:U,velocity:J,dismissible:P}){if(o===void 0)return;const X=l==="bottom"||l==="right"?(A??0)-D:(A??0)+D,K=x===o-1,Q=x===0,ne=D>0;if(K&&Er(a.current,{transition:`opacity ${In.DURATION}s cubic-bezier(${In.EASE.join(",")})`}),!d&&J>2&&!ne){P?U():k(S[0]);return}if(!d&&J>2&&ne&&S&&n){k(S[n.length-1]);return}const ae=S?.reduce((re,ee)=>typeof re!="number"||typeof ee!="number"?re:Math.abs(ee-X)<Math.abs(re-X)?ee:re),H=dr(l)?window.innerHeight:window.innerWidth;if(J>YU&&Math.abs(D)<H*.4){const re=ne?1:-1;if(re>0&&v&&n){k(S[n.length-1]);return}if(Q&&re<0&&P&&U(),x===null)return;k(S[x+re]);return}k(ae)}function O({draggedDistance:D}){if(A===null)return;const U=l==="bottom"||l==="right"?A-D:A+D;(l==="bottom"||l==="right")&&U<S[S.length-1]||(l==="top"||l==="left")&&U>S[S.length-1]||Er(r.current,{transform:dr(l)?`translate3d(0, ${U}px, 0)`:`translate3d(${U}px, 0, 0)`})}function I(D,U){if(!n||typeof x!="number"||!S||o===void 0)return null;const J=x===o-1;if(x>=o&&U)return 0;if(J&&!U)return 1;if(!C&&!J)return null;const P=J?x+1:x-1,X=J?S[P]-S[P-1]:S[P+1]-S[P],K=D/Math.abs(X);return J?1-K:K}return{isLastSnapPoint:v,activeSnapPoint:p,shouldFade:C,getPercentageDragged:I,setActiveSnapPoint:h,activeSnapPointIndex:x,onRelease:N,onDrag:O,snapPointsOffset:S}}const zle=()=>()=>{};function Ble(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:a}=xh(),o=ce.useRef(null),i=b.useMemo(()=>document.body.style.backgroundColor,[]);function l(){return(window.innerWidth-eT)/window.innerWidth}ce.useEffect(()=>{if(t&&n){o.current&&clearTimeout(o.current);const c=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!c)return;Lle(r&&!a?V0(document.body,{background:"black"}):zle,V0(c,{transformOrigin:dr(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${In.DURATION}s`,transitionTimingFunction:`cubic-bezier(${In.EASE.join(",")})`}));const d=V0(c,{borderRadius:`${WU}px`,overflow:"hidden",...dr(e)?{transform:`scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${l()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}}
640);return()=>{d(),o.current=window.setTimeout(()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")},In.DURATION*1e3)}}},[t,n,i])}let Lf=null;function Ule({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:a,noBodyStyles:o}){const[i,l]=ce.useState(()=>typeof window<"u"?window.location.href:""),c=ce.useRef(0),d=ce.useCallback(()=>{if(PI()&&Lf===null&&e&&!o){Lf={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:h,innerHeight:g}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-h}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const y=g-window.innerHeight;y&&c.current>=g&&(document.body.style.top=`${-(c.current+y)}px`)}),300)}},[e]),p=ce.useCallback(()=>{if(PI()&&Lf!==null&&!o){const h=-parseInt(document.body.style.top,10),g=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Lf),window.requestAnimationFrame(()=>{if(a&&i!==window.location.href){l(window.location.href);return}window.scrollTo(g,h)}),Lf=null}},[i]);return ce.useEffect(()=>{function h(){c.current=window.scrollY}return h(),window.addEventListener("scroll",h),()=>{window.removeEventListener("scroll",h)}},[]),ce.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||p()}},[t,p]),ce.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&d(),t||window.setTimeout(()=>{p()},500)):p())},[e,r,i,t,n,d,p]),{restorePositionSetting:p}}function Fle({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:a,snapPoints:o,shouldScaleBackground:i=!1,setBackgroundColorOnScale:l=!0,closeThreshold:c=$le,scrollLockTimeout:d=Ple,dismissible:p=!0,handleOnly:h=!1,fadeFromIndex:g=o&&o.length-1,activeSnapPoint:y,setActiveSnapPoint:v,fixed:x,modal:C=!0,onClose:S,nested:A,noBodyStyles:k=!1,direction:N="bottom",defaultOpen:O=!1,disablePreventScroll:I=!0,snapToSequentialPoint:D=!1,preventScrollRestoration:U=!1,repositionInputs:J=!0,onAnimationEnd:P,container:X,autoFocus:K=!1}){var Q,ne;const[ae=!1,H]=KU({defaultProp:O,prop:e,onChange:pt=>{t?.(pt),!pt&&!A&&we(),setTimeout(()=>{P?.(pt)},In.DURATION*1e3),pt&&!C&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),pt||(document.body.style.pointerEvents="auto")}}),[re,ee]=ce.useState(!1),[ge,B]=ce.useState(!1),[V,G]=ce.useState(!1),L=ce.useRef(null),de=ce.useRef(null),_e=ce.useRef(null),Ce=ce.useRef(null),he=ce.useRef(null),Be=ce.useRef(!1),qe=ce.useRef(null),nt=ce.useRef(0),dt=ce.useRef(!1),lt=ce.useRef(!O),Zt=ce.useRef(0),Qe=ce.useRef(null),Ge=ce.useRef(((Q=Qe.current)==null?void 0:Q.getBoundingClientRect().height)||0),en=ce.useRef(((ne=Qe.current)==null?void 0:ne.getBoundingClientRect().width)||0),tr=ce.useRef(0),sa=ce.useCallback(pt=>{o&&pt===Fe.length-1&&(de.current=new Date)},[]),{activeSnapPoint:Pn,activeSnapPointIndex:Y,setActiveSnapPoint:oe,onRelease:be,snapPointsOffset:Fe,onDrag:Re,shouldFade:Oe,getPercentageDragged:ie}=jle({snapPoints:o,activeSnapPointProp:y,setActiveSnapPointProp:v,drawerRef:Qe,fadeFromIndex:g,overlayRef:L,onSnapPointChange:sa,direction:N,container:X,snapToSequentialPoint:D});Ale({isDisabled:!ae||ge||!C||V||!re||!J||!I});const{restorePositionSetting:we}=Ule({isOpen:ae,modal:C,nested:A??!1,hasBeenOpened:re,preventScrollRestoration:U,noBodyStyles:k});function Ie(){return(window.innerWidth-eT)/window.innerWidth}function rt(pt){var Nt,Yt;!p&&!o||Qe.current&&!Qe.current.contains(pt.target)||(Ge.current=((Nt=Qe.current)==null?void 0:Nt.getBoundingClientRect().height)||0,en.current=((Yt=Qe.current)==null?void 0:Yt.getBoundingClientRect().width)||0,B(!0),_e.current=new Date,HU()&&window.addEventListener("touchend",()=>Be.current=!1,{once:!0}),pt.target.setPointerCapture(pt.pointerId),nt.current=dr(N)?pt.pageY:pt.pageX)}function yt(pt,Nt){var Yt;let St=pt;const tn=(Yt=window.getSelection())==null?void 0:Yt.toString(),Mn=Qe.current?gg(Qe.current,N):null,jn=new Date;if(St.tagName==="SELECT"||St.hasAttribute("data-vaul-no-drag")||St.closest("[data-vaul-no-drag]"))return!1;if(N==="right"||N==="left")return!0;
640if(de.current&&jn.getTime()-de.current.getTime()<500)return!1;if(Mn!==null&&(N==="bottom"?Mn>0:Mn<0))return!0;if(tn&&tn.length>0)return!1;if(he.current&&jn.getTime()-he.current.getTime()<d&&Mn===0||Nt)return he.current=jn,!1;for(;St;){if(St.scrollHeight>St.clientHeight){if(St.scrollTop!==0)return he.current=new Date,!1;if(St.getAttribute("role")==="dialog")return!0}St=St.parentNode}return!0}function Kt(pt){if(Qe.current&&ge){const Nt=N==="bottom"||N==="right"?1:-1,Yt=(nt.current-(dr(N)?pt.pageY:pt.pageX))*Nt,St=Yt>0,tn=o&&!p&&!St;if(tn&&Y===0)return;const Mn=Math.abs(Yt),jn=document.querySelector("[data-vaul-drawer-wrapper]"),Da=N==="bottom"||N==="top"?Ge.current:en.current;let br=Mn/Da;const Yr=ie(Mn,St);if(Yr!==null&&(br=Yr),tn&&br>=1||!Be.current&&!yt(pt.target,St))return;if(Qe.current.classList.add(q0),Be.current=!0,Er(Qe.current,{transition:"none"}),Er(L.current,{transition:"none"}),o&&Re({draggedDistance:Yt}),St&&!o){const ma=Ile(Yt),vi=Math.min(ma*-1,0)*Nt;Er(Qe.current,{transform:dr(N)?`translate3d(0, ${vi}px, 0)`:`translate3d(${vi}px, 0, 0)`});return}const Wr=1-br;if((Oe||g&&Y===g-1)&&(r?.(pt,br),Er(L.current,{opacity:`${Wr}`,transition:"none"},!0)),jn&&L.current&&i){const ma=Math.min(Ie()+br*(1-Ie()),1),vi=8-br*8,W=Math.max(0,14-br*14);Er(jn,{borderRadius:`${vi}px`,transform:dr(N)?`scale(${ma}) translate3d(0, ${W}px, 0)`:`scale(${ma}) translate3d(${W}px, 0, 0)`,transition:"none"},!0)}if(!o){const ma=Mn*Nt;Er(Qe.current,{transform:dr(N)?`translate3d(0, ${ma}px, 0)`:`translate3d(${ma}px, 0, 0)`})}}}ce.useEffect(()=>{window.requestAnimationFrame(()=>{lt.current=!0})},[]),ce.useEffect(()=>{var pt;function Nt(){if(!Qe.current||!J)return;const Yt=document.activeElement;if(Jw(Yt)||dt.current){var St;const tn=((St=window.visualViewport)==null?void 0:St.height)||0,Mn=window.innerHeight;let jn=Mn-tn;const Da=Qe.current.getBoundingClientRect().height||0,br=Da>Mn*.8;tr.current||(tr.current=Da);const Yr=Qe.current.getBoundingClientRect().top;if(Math.abs(Zt.current-jn)>60&&(dt.current=!dt.current),o&&o.length>0&&Fe&&Y){const Wr=Fe[Y]||0;jn+=Wr}if(Zt.current=jn,Da>tn||dt.current){const Wr=Qe.current.getBoundingClientRect().height;let ma=Wr;Wr>tn&&(ma=tn-(br?Yr:eT)),x?Qe.current.style.height=`${Wr-Math.max(jn,0)}px`:Qe.current.style.height=`${Math.max(ma,tn-Yr)}px`}else _le()||(Qe.current.style.height=`${tr.current}px`);o&&o.length>0&&!dt.current?Qe.current.style.bottom="0px":Qe.current.style.bottom=`${Math.max(jn,0)}px`}}return(pt=window.visualViewport)==null||pt.addEventListener("resize",Nt),()=>{var Yt;return(Yt=window.visualViewport)==null?void 0:Yt.removeEventListener("resize",Nt)}},[Y,o,Fe]);function an(pt){zt(),S?.(),pt||H(!1),setTimeout(()=>{o&&oe(o[0])},In.DURATION*1e3)}function Cn(){if(!Qe.current)return;const pt=document.querySelector("[data-vaul-drawer-wrapper]"),Nt=gg(Qe.current,N);Er(Qe.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${In.DURATION}s cubic-bezier(${In.EASE.join(",")})`}),Er(L.current,{transition:`opacity ${In.DURATION}s cubic-bezier(${In.EASE.join(",")})`,opacity:"1"}),i&&Nt&&Nt>0&&ae&&Er(pt,{borderRadius:`${WU}px`,overflow:"hidden",...dr(N)?{transform:`scale(${Ie()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Ie()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${In.DURATION}s`,transitionTimingFunction:`cubic-bezier(${In.EASE.join(",")})`},!0)}function zt(){!ge||!Qe.current||(Qe.current.classList.remove(q0),Be.current=!1,B(!1),Ce.current=new Date)}function Gn(pt){if(!ge||!Qe.current)return;Qe.current.classList.remove(q0),Be.current=!1,B(!1),Ce.current=new Date;const Nt=gg(Qe.current,N);
640if(!pt||!yt(pt.target,!1)||!Nt||Number.isNaN(Nt)||_e.current===null)return;const Yt=Ce.current.getTime()-_e.current.getTime(),St=nt.current-(dr(N)?pt.pageY:pt.pageX),tn=Math.abs(St)/Yt;if(tn>.05&&(G(!0),setTimeout(()=>{G(!1)},200)),o){be({draggedDistance:St*(N==="bottom"||N==="right"?1:-1),closeDrawer:an,velocity:tn,dismissible:p}),a?.(pt,!0);return}if(N==="bottom"||N==="right"?St>0:St<0){Cn(),a?.(pt,!0);return}if(tn>YU){an(),a?.(pt,!1);return}var Mn;const jn=Math.min((Mn=Qe.current.getBoundingClientRect().height)!=null?Mn:0,window.innerHeight);var Da;const br=Math.min((Da=Qe.current.getBoundingClientRect().width)!=null?Da:0,window.innerWidth),Yr=N==="left"||N==="right";if(Math.abs(Nt)>=(Yr?br:jn)*c){an(),a?.(pt,!1);return}a?.(pt,!0),Cn()}ce.useEffect(()=>(ae&&(Er(document.documentElement,{scrollBehavior:"auto"}),de.current=new Date),()=>{Dle(document.documentElement,"scrollBehavior")}),[ae]);function Bt(pt){const Nt=pt?(window.innerWidth-Il)/window.innerWidth:1,Yt=pt?-Il:0;qe.current&&window.clearTimeout(qe.current),Er(Qe.current,{transition:`transform ${In.DURATION}s cubic-bezier(${In.EASE.join(",")})`,transform:dr(N)?`scale(${Nt}) translate3d(0, ${Yt}px, 0)`:`scale(${Nt}) translate3d(${Yt}px, 0, 0)`}),!pt&&Qe.current&&(qe.current=setTimeout(()=>{const St=gg(Qe.current,N);Er(Qe.current,{transition:"none",transform:dr(N)?`translate3d(0, ${St}px, 0)`:`translate3d(${St}px, 0, 0)`})},500))}function la(pt,Nt){if(Nt<0)return;const Yt=(window.innerWidth-Il)/window.innerWidth,St=Yt+Nt*(1-Yt),tn=-Il+Nt*Il;Er(Qe.current,{transform:dr(N)?`scale(${St}) translate3d(0, ${tn}px, 0)`:`scale(${St}) translate3d(${tn}px, 0, 0)`,transition:"none"})}function Nr(pt,Nt){const Yt=dr(N)?window.innerHeight:window.innerWidth,St=Nt?(Yt-Il)/Yt:1,tn=Nt?-Il:0;Nt&&Er(Qe.current,{transition:`transform ${In.DURATION}s cubic-bezier(${In.EASE.join(",")})`,transform:dr(N)?`scale(${St}) translate3d(0, ${tn}px, 0)`:`scale(${St}) translate3d(${tn}px, 0, 0)`})}return ce.useEffect(()=>{C||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[C]),ce.createElement($1,{defaultOpen:O,onOpenChange:pt=>{!p&&!pt||(pt?ee(!0):an(!0),H(pt))},open:ae},ce.createElement(FU.Provider,{value:{activeSnapPoint:Pn,snapPoints:o,setActiveSnapPoint:oe,drawerRef:Qe,overlayRef:L,onOpenChange:t,onPress:rt,onRelease:Gn,onDrag:Kt,dismissible:p,shouldAnimate:lt,handleOnly:h,isOpen:ae,isDragging:ge,shouldFade:Oe,closeDrawer:an,onNestedDrag:la,onNestedOpenChange:Bt,onNestedRelease:Nr,keyboardIsOpen:dt,modal:C,snapPointsOffset:Fe,activeSnapPointIndex:Y,direction:N,shouldScaleBackground:i,setBackgroundColorOnScale:l,noBodyStyles:k,container:X,autoFocus:K}},n))}const QU=ce.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:a,shouldFade:o,isOpen:i,modal:l,shouldAnimate:c}=xh(),d=VU(t,n),p=r&&r.length>0;if(!l)return null;const h=ce.useCallback(g=>a(g),[a]);return ce.createElement(M1,{onMouseUp:h,ref:d,"data-vaul-overlay":"","data-vaul-snap-points":i&&p?"true":"false","data-vaul-snap-points-overlay":i&&o?"true":"false","data-vaul-animate":c?.current?"true":"false",...e})});QU.displayName="Drawer.Overlay";const XU=ce.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},a){const{drawerRef:o,onPress:i,onRelease:l,onDrag:c,keyboardIsOpen:d,snapPointsOffset:p,activeSnapPointIndex:h,modal:g,isOpen:y,direction:v,snapPoints:x,container:C,handleOnly:S,shouldAnimate:A,autoFocus:k}=xh(),[N,O]=ce.useState(!1),I=VU(a,o),D=ce.useRef(null),U=ce.useRef(null),J=ce.useRef(!1),P=x&&x.length>0;Ble();const X=(Q,ne,ae=0)=>{if(J.current)return!0;const H=Math.abs(Q.y),re=Math.abs(Q.x),ee=re>H,ge=["bottom","right"].includes(ne)?1:-1;if(ne==="left"||ne==="right"){if(!(Q.x*ge<0)&&re>=0&&re<=ae)return ee}else if(!(Q.y*ge<0)&&H>=0&&H<=ae)return!ee;return J.current=!0,!0};ce.useEffect(()=>{P&&window.requestAnimationFrame(()=>{O(!0)})},[]);function K(Q){D.current=null,J.current=!1,l(Q)}return ce.createElement(j1,{"data-vaul-drawer-direction":v,"data-vaul-drawer":"","data-vaul-delayed-snap-points":N?"true":"false","data-vaul-snap-points":y&&P?"true":"false","data-vaul-custom-container":C?"true":"false","data-vaul-animate":A?.current?"true":"false",...r,ref:I,style:p&&p.length>0?{"--snap-point-height":`${p[h??0]}px`,...t}:t,onPointerDown:Q=>{S||(r.onPointerDown==null||r.onPointerDown.call(r,Q),D.current={x:Q.pageX,y:Q.pageY},i(Q))},onOpenAutoFocus:Q=>{n?.(Q),k||Q.preventDefault()},onPointerDownOutside:Q=>{if(e?.(Q),!g||Q.defaultPrevented){Q.preventDefault();return}d.current&&(d.current=!1)},onFocusOutside:Q=>{if(!g){Q.preventDefault();return}},onPointerMove:Q=>
640{if(U.current=Q,S||(r.onPointerMove==null||r.onPointerMove.call(r,Q),!D.current))return;const ne=Q.pageY-D.current.y,ae=Q.pageX-D.current.x,H=Q.pointerType==="touch"?10:2;X({x:ae,y:ne},v,H)?c(Q):(Math.abs(ae)>H||Math.abs(ne)>H)&&(D.current=null)},onPointerUp:Q=>{r.onPointerUp==null||r.onPointerUp.call(r,Q),D.current=null,J.current=!1,l(Q)},onPointerOut:Q=>{r.onPointerOut==null||r.onPointerOut.call(r,Q),K(U.current)},onContextMenu:Q=>{r.onContextMenu==null||r.onContextMenu.call(r,Q),U.current&&K(U.current)}})});XU.displayName="Drawer.Content";const Hle=250,Gle=120,Vle=ce.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:a,isDragging:o,snapPoints:i,activeSnapPoint:l,setActiveSnapPoint:c,dismissible:d,handleOnly:p,isOpen:h,onPress:g,onDrag:y}=xh(),v=ce.useRef(null),x=ce.useRef(!1);function C(){if(x.current){k();return}window.setTimeout(()=>{S()},Gle)}function S(){if(o||e||x.current){k();return}if(k(),!i||i.length===0){d||a();return}if(l===i[i.length-1]&&d){a();return}const N=i.findIndex(I=>I===l);if(N===-1)return;const O=i[N+1];c(O)}function A(){v.current=window.setTimeout(()=>{x.current=!0},Hle)}function k(){v.current&&window.clearTimeout(v.current),x.current=!1}return ce.createElement("div",{onClick:C,onPointerCancel:k,onPointerDown:N=>{p&&g(N),A()},onPointerMove:N=>{p&&y(N)},ref:r,"data-vaul-drawer-visible":h?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},ce.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});Vle.displayName="Drawer.Handle";function qle(e){const t=xh(),{container:n=t.container,...r}=e;return ce.createElement(P1,{container:n,...r})}const mr={Root:Fle,Content:XU,Overlay:QU,Trigger:BU,Portal:qle,Title:z1,Description:UU},JU=({shouldScaleBackground:e=!0,...t})=>E.jsx(mr.Root,{shouldScaleBackground:e,...t});JU.displayName="Drawer";const Yle=mr.Trigger,Wle=mr.Portal,eF=b.forwardRef(({className:e,...t},n)=>E.jsx(mr.Overlay,{ref:n,className:xe("fixed inset-0 z-50 bg-black/80",e),...t}));eF.displayName=mr.Overlay.displayName;const U1=b.forwardRef(({className:e,children:t,hideBar:n=!0,...r},a)=>E.jsxs(Wle,{children:[E.jsx(eF,{}),E.jsxs(mr.Content,{ref:a,className:xe("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...r,children:[!n&&E.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));U1.displayName="DrawerContent";const F1=b.forwardRef(({className:e,...t},n)=>E.jsx(mr.Title,{ref:n,className:xe("text-lg font-semibold leading-none tracking-tight",e),...t}));F1.displayName=mr.Title.displayName;const Zle=b.forwardRef(({className:e,...t},n)=>E.jsx(mr.Description,{ref:n,className:xe("text-sm text-muted-foreground",e),...t}));Zle.displayName=mr.Description.displayName;const H1=({size:e=16})=>E.jsx(n2,{size:e,className:"animate-spin"}),Kle=hi("grid gap-0.5 rounded-lg border text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 w-full relative group/alert",{variants:{variant:{default:"bg-card text-card-foreground",info:"bg-blue-50 text-blue-700 border-blue-200 dark:bg-blue-900/45 dark:text-blue-200 dark:border-blue-900/75",destructive:"text-destructive bg-card bg-destructive/5 border-destructive/20 *:data-[slot=alert-description]:text-destructive *:[svg]:text-current",warning:"text-warning-foreground bg-card bg-warning/5 border-warning/50 *:data-[slot=alert-description]:text-warning-foreground *:[svg]:text-current"},fit:{default:"px-2.5 py-2",loose:"p-4"}},defaultVariants:{variant:"default",fit:"default"}});function G1({className:e,fit:t,variant:n,...r}){return E.jsx("div",{"data-slot":"alert",role:"alert",className:xe(Kle({variant:n,fit:t}),e),...r})}function tF({className:e,...t}){return E.jsx("div",{"data-slot":"alert-title",className:xe("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",e),...t})}function nF({className:e,...t}){return E.jsx("div",{"data-slot":"alert-description",className:xe("text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",e),...t})}let Y0=null;const Qle=()=>(Y0||(Y0=z(()=>import("./__vite-optional-peer-dep_mermaid_zudoku-BIHI7g3E.js"),[],import.meta.url).then(e=>
vendor: 4,454 bytes, line 640
640e.default).catch(e=>{throw new Error("Mermaid is not installed. Please install it with: npm install mermaid",{cause:e})})),Y0),Xle=({chart:e,config:t,...n})=>{const r=b.useId(),a=f1(),{data:o,error:i,isPending:l}=eh({queryKey:["mermaid",e,t,a.resolvedTheme],queryFn:async()=>{const c=await Qle();c.initialize({theme:a.resolvedTheme==="dark"?"dark":"base",...t});const{svg:d}=await c.render(r,e);return d},enabled:typeof window<"u",retry:!1});return i?E.jsxs(G1,{className:"flex flex-col gap-2",variant:"destructive",children:[E.jsx(tF,{children:"Mermaid Error"}),E.jsx(nF,{className:"overflow-auto wrap-break-word whitespace-pre-wrap font-mono text-xs",children:i.message})]}):l?E.jsx(H1,{}):E.jsx("div",{...n,dangerouslySetInnerHTML:{__html:o}})};var Jle=Symbol("radix.slottable");function ece(e){const t=({children:n})=>M.jsx(M.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Jle,t}var tce=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),nce="VisuallyHidden",rF=b.forwardRef((e,t)=>M.jsx(st.span,{...e,ref:t,style:{...tce,...e.style}}));rF.displayName=nce;var rce=rF,[ov,$Be]=eo("Tooltip",[tl]),iv=tl(),aF="TooltipProvider",ace=700,tT="tooltip.open",[oce,V1]=ov(aF),oF=e=>{const{__scopeTooltip:t,delayDuration:n=ace,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:o}=e,i=b.useRef(!0),l=b.useRef(!1),c=b.useRef(0);return b.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),M.jsx(oce,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:b.useCallback(d=>{l.current=d},[]),disableHoverableContent:a,children:o})};oF.displayName=aF;var $p="Tooltip",[ice,wh]=ov($p),iF=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a,onOpenChange:o,disableHoverableContent:i,delayDuration:l}=e,c=V1($p,e.__scopeTooltip),d=iv(t),[p,h]=b.useState(null),g=fr(),y=b.useRef(0),v=i??c.disableHoverableContent,x=l??c.delayDuration,C=b.useRef(!1),[S,A]=Ho({prop:r,defaultProp:a??!1,onChange:D=>{D?(c.onOpen(),document.dispatchEvent(new CustomEvent(tT))):c.onClose(),o?.(D)},caller:$p}),k=b.useMemo(()=>S?C.current?"delayed-open":"instant-open":"closed",[S]),N=b.useCallback(()=>{window.clearTimeout(y.current),y.current=0,C.current=!1,A(!0)},[A]),O=b.useCallback(()=>{window.clearTimeout(y.current),y.current=0,A(!1)},[A]),I=b.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{C.current=!0,A(!0),y.current=0},x)},[x,A]);return b.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),M.jsx(hh,{...d,children:M.jsx(ice,{scope:t,contentId:g,open:S,stateAttribute:k,trigger:p,onTriggerChange:h,onTriggerEnter:b.useCallback(()=>{c.isOpenDelayedRef.current?I():N()},[c.isOpenDelayedRef,I,N]),onTriggerLeave:b.useCallback(()=>{v?O():(window.clearTimeout(y.current),y.current=0)},[O,v]),onOpen:N,onClose:O,disableHoverableContent:v,children:n})})};iF.displayName=$p;var nT="TooltipTrigger",sF=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=wh(nT,n),o=V1(nT,n),i=iv(n),l=b.useRef(null),c=Pt(t,l,a.onTriggerChange),d=b.useRef(!1),p=b.useRef(!1),h=b.useCallback(()=>d.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),M.jsx(mh,{asChild:!0,...i,children:M.jsx(st.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:c,onPointerMove:We(e.onPointerMove,g=>{g.pointerType!=="touch"&&!p.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),p.current=!0)}),onPointerLeave:We(e.onPointerLeave,()=>{a.onTriggerLeave(),p.current=!1}),onPointerDown:We(e.onPointerDown,()=>{a.open&&a.onClose(),d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:We(e.onFocus,()=>{d.current||a.onOpen()}),onBlur:We(e.onBlur,a.onClose),onClick:We(e.onClick,a.onClose)})})});sF.displayName=nT;var q1="TooltipPortal",[sce,lce]=ov(q1,{forceMount:void 0}),lF=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:a}=e,o=wh(q1,t);return M.jsx(sce,{scope:t,forceMount:n,children:M.jsx(ha,{present:n||o.open,children:M.jsx(_d,{asChild:!0,container:a,children:r})})})};lF.displayName=q1;var Ju="TooltipContent",cF=b.forwardRef((e,t)=>
vendor: 4,285 bytes, line 640
640{const n=lce(Ju,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...o}=e,i=wh(Ju,e.__scopeTooltip);return M.jsx(ha,{present:r||i.open,children:i.disableHoverableContent?M.jsx(uF,{side:a,...o,ref:t}):M.jsx(cce,{side:a,...o,ref:t})})}),cce=b.forwardRef((e,t)=>{const n=wh(Ju,e.__scopeTooltip),r=V1(Ju,e.__scopeTooltip),a=b.useRef(null),o=Pt(t,a),[i,l]=b.useState(null),{trigger:c,onClose:d}=n,p=a.current,{onPointerInTransitChange:h}=r,g=b.useCallback(()=>{l(null),h(!1)},[h]),y=b.useCallback((v,x)=>{const C=v.currentTarget,S={x:v.clientX,y:v.clientY},A=pce(S,C.getBoundingClientRect()),k=hce(S,A),N=mce(x.getBoundingClientRect()),O=yce([...k,...N]);l(O),h(!0)},[h]);return b.useEffect(()=>()=>g(),[g]),b.useEffect(()=>{if(c&&p){const v=C=>y(C,p),x=C=>y(C,c);return c.addEventListener("pointerleave",v),p.addEventListener("pointerleave",x),()=>{c.removeEventListener("pointerleave",v),p.removeEventListener("pointerleave",x)}}},[c,p,y,g]),b.useEffect(()=>{if(i){const v=x=>{const C=x.target,S={x:x.clientX,y:x.clientY},A=c?.contains(C)||p?.contains(C),k=!gce(S,i);A?g():k&&(g(),d())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,p,i,d,g]),M.jsx(uF,{...e,ref:o})}),[uce,dce]=ov($p,{isInside:!1}),fce=ece("TooltipContent"),uF=b.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:i,...l}=e,c=wh(Ju,n),d=iv(n),{onClose:p}=c;return b.useEffect(()=>(document.addEventListener(tT,p),()=>document.removeEventListener(tT,p)),[p]),b.useEffect(()=>{if(c.trigger){const h=g=>{g.target?.contains(c.trigger)&&p()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,p]),M.jsx(yd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:p,children:M.jsxs(Qb,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[M.jsx(fce,{children:r}),M.jsx(uce,{scope:n,isInside:!0,children:M.jsx(rce,{id:c.contentId,role:"tooltip",children:a||r})})]})})});cF.displayName=Ju;var dF="TooltipArrow",fF=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=iv(n);return dce(dF,n).isInside?null:M.jsx(Xb,{...a,...r,ref:t})});fF.displayName=dF;function pce(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,a,o)){case o:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function hce(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function mce(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function gce(e,t){const{x:n,y:r}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const l=t[o],c=t[i],d=l.x,p=l.y,h=c.x,g=c.y;p>r!=g>r&&n<(h-d)*(r-p)/(g-p)+d&&(a=!a)}return a}function yce(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),bce(t)}function bce(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(a.y-i.y)>=(o.y-i.y)*(a.x-i.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const o=n[n.length-1],i=n[n.length-2];if((o.x-i.x)*(a.y-i.y)>=(o.y-i.y)*(a.x-i.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var vce=oF,_ce=iF,Ece=sF,xce=lF,wce=cF,Tce=fF;const ec=xe;var sv="Collapsible",[Sce,PBe]=eo(sv),[Cce,Y1]=Sce(sv),pF=b.forwardRef((e,t)=>
vendor: 4,371 bytes, line 640
640{const{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:o,onOpenChange:i,...l}=e,[c,d]=Ho({prop:r,defaultProp:a??!1,onChange:i,caller:sv});return M.jsx(Cce,{scope:n,disabled:o,contentId:fr(),open:c,onOpenToggle:b.useCallback(()=>d(p=>!p),[d]),children:M.jsx(st.div,{"data-state":Q1(c),"data-disabled":o?"":void 0,...l,ref:t})})});pF.displayName=sv;var hF="CollapsibleTrigger",W1=b.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,a=Y1(hF,n);return M.jsx(st.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Q1(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...r,ref:t,onClick:We(e.onClick,a.onOpenToggle)})});W1.displayName=hF;var Z1="CollapsibleContent",K1=b.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=Y1(Z1,e.__scopeCollapsible);return M.jsx(ha,{present:n||a.open,children:({present:o})=>M.jsx(Ace,{...r,ref:t,present:o})})});K1.displayName=Z1;var Ace=b.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:a,...o}=e,i=Y1(Z1,n),[l,c]=b.useState(r),d=b.useRef(null),p=Pt(t,d),h=b.useRef(0),g=h.current,y=b.useRef(0),v=y.current,x=i.open||l,C=b.useRef(x),S=b.useRef(void 0);return b.useEffect(()=>{const A=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(A)},[]),Vr(()=>{const A=d.current;if(A){S.current=S.current||{transitionDuration:A.style.transitionDuration,animationName:A.style.animationName},A.style.transitionDuration="0s",A.style.animationName="none";const k=A.getBoundingClientRect();h.current=k.height,y.current=k.width,C.current||(A.style.transitionDuration=S.current.transitionDuration,A.style.animationName=S.current.animationName),c(r)}},[i.open,r]),M.jsx(st.div,{"data-state":Q1(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!x,...o,ref:p,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:x&&a})});function Q1(e){return e?"open":"closed"}var mF=pF,kce=W1,Nce=K1;const gF=b.forwardRef(({className:e,type:t,...n},r)=>E.jsx("input",{type:t,className:xe("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));gF.displayName="Input";const Rce=b.forwardRef(({className:e,...t},n)=>E.jsx("textarea",{className:xe("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Rce.displayName="Textarea";const Oce=hi("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",warning:"border-transparent bg-warning text-warning-foreground [a&]:hover:bg-warning/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",muted:"bg-muted text-muted-foreground "}},defaultVariants:{variant:"default"}});function Dce({className:e,variant:t,asChild:n=!1,...r}){const a=n?ih:"span";return E.jsx(a,{"data-slot":"badge",className:xe(Oce({variant:t}),e),...r})}const Ice=({children:e})=>E.jsx("div",{className:"stepper",children:e});var W0,UI;function Lce(){if(UI)return W0;UI=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(o,i){if(o===i)return!0;
640if(o&&i&&typeof o=="object"&&typeof i=="object"){if(o.constructor!==i.constructor)return!1;var l,c,d;if(Array.isArray(o)){if(l=o.length,l!=i.length)return!1;for(c=l;c--!==0;)if(!a(o[c],i[c]))return!1;return!0}var p;if(t&&o instanceof Map&&i instanceof Map){if(o.size!==i.size)return!1;for(p=o.entries();!(c=p.next()).done;)if(!i.has(c.value[0]))return!1;for(p=o.entries();!(c=p.next()).done;)if(!a(c.value[1],i.get(c.value[0])))return!1;return!0}if(n&&o instanceof Set&&i instanceof Set){if(o.size!==i.size)return!1;for(p=o.entries();!(c=p.next()).done;)if(!i.has(c.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(i)){if(l=o.length,l!=i.length)return!1;for(c=l;c--!==0;)if(o[c]!==i[c])return!1;return!0}if(o.constructor===RegExp)return o.source===i.source&&o.flags===i.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof i.valueOf=="function")return o.valueOf()===i.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof i.toString=="function")return o.toString()===i.toString();if(d=Object.keys(o),l=d.length,l!==Object.keys(i).length)return!1;for(c=l;c--!==0;)if(!Object.prototype.hasOwnProperty.call(i,d[c]))return!1;if(e&&o instanceof Element)return!1;for(c=l;c--!==0;)if(!((d[c]==="_owner"||d[c]==="__v"||d[c]==="__o")&&o.$$typeof)&&!a(o[d[c]],i[d[c]]))return!1;return!0}return o!==o&&i!==i}return W0=function(o,i){try{return a(o,i)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}},W0}var $ce=Lce();const Pce=sh($ce);var Z0,FI;function Mce(){if(FI)return Z0;FI=1;var e=function(t,n,r,a,o,i,l,c){if(!t){var d;if(n===void 0)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[r,a,o,i,l,c],h=0;d=new Error(n.replace(/%s/g,function(){return p[h++]})),d.name="Invariant Violation"}throw d.framesToPop=1,d}};return Z0=e,Z0}var jce=Mce();const HI=sh(jce);var GI,VI;function zce(){return VI||(VI=1,GI=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(a!==void 0)return!!a;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var d=o[c];if(!l(d))return!1;var p=e[d],h=t[d];if(a=n?n.call(r,p,h,d):void 0,a===!1||a===void 0&&p!==h)return!1}return!0}),GI}var Bce=zce();const Uce=sh(Bce);var yF=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(yF||{}),K0={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},qI=Object.values(yF),X1={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Fce=Object.entries(X1).reduce((e,[t,n])=>(e[n]=t,e),{}),Bo="data-rh",Uu={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Fu=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},Hce=e=>{let t=Fu(e,"title");const n=Fu(e,Uu.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Fu(e,Uu.DEFAULT_TITLE);return t||r||void 0},Gce=e=>Fu(e,Uu.ON_CHANGE_CLIENT_STATE)||(()=>{}),Q0=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),Vce=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const a=Object.keys(r);for(let o=0;o<a.length;o+=1){const i=a[o].toLowerCase();if(e.indexOf(i)!==-1&&r[i])return n.concat(r)}}return n},[]),qce=e=>console&&typeof console.warn=="function"&&console.warn(e),$f=(e,t,n)=>{const r={};return n.filter(a=>Array.isArray(a[e])?!0:(typeof a[e]<"u"&&qce(`Helmet: ${e} should be of type "Array". Instead found type "${typeof a[e]}"`),!1)).map(a=>a[e]).reverse().reduce((a,o)=>{const i={};o.filter(c=>{let d;const p=Object.keys(c);for(let g=0;g<p.length;g+=1){const y=p[g],v=y.toLowerCase();t.indexOf(v)!==-1&&!(d==="rel"&&c[d].toLowerCase()==="canonical")&&!(v==="rel"&&c[v].toLowerCase()==="stylesheet")&&(d=v),t.indexOf(y)!==-1&&(y==="innerHTML"||y==="cssText"||y==="itemprop")&&(d=y)}if(!d||!c[d])return!1;const h=c[d].toLowerCase();return r[d]||(r[d]={}
640),i[d]||(i[d]={}),r[d][h]?!1:(i[d][h]=!0,!0)}).reverse().forEach(c=>a.push(c));const l=Object.keys(i);for(let c=0;c<l.length;c+=1){const d=l[c],p={...r[d],...i[d]};r[d]=p}return a},[]).reverse()},Yce=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},Wce=e=>({baseTag:Vce(["href"],e),bodyAttributes:Q0("bodyAttributes",e),defer:Fu(e,Uu.DEFER),encode:Fu(e,Uu.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Q0("htmlAttributes",e),linkTags:$f("link",["rel","href"],e),metaTags:$f("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:$f("noscript",["innerHTML"],e),onChangeClientState:Gce(e),scriptTags:$f("script",["src","innerHTML"],e),styleTags:$f("style",["cssText"],e),title:Hce(e),titleAttributes:Q0("titleAttributes",e),prioritizeSeoTags:Yce(e,Uu.PRIORITIZE_SEO_TAGS)}),bF=e=>Array.isArray(e)?e.join(""):e,Zce=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},X0=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(Zce(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},YI=(e,t)=>({...e,[t]:void 0}),Kce=["noscript","script","style"],rT=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),vF=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),Qce=(e,t,n,r)=>{const a=vF(n),o=bF(t);return a?`<${e} ${Bo}="true" ${a}>${rT(o,r)}</${e}>`:`<${e} ${Bo}="true">${rT(o,r)}</${e}>`},Xce=(e,t,n=!0)=>t.reduce((r,a)=>{const o=a,i=Object.keys(o).filter(d=>!(d==="innerHTML"||d==="cssText")).reduce((d,p)=>{const h=typeof o[p]>"u"?p:`${p}="${rT(o[p],n)}"`;return d?`${d} ${h}`:h},""),l=o.innerHTML||o.cssText||"",c=Kce.indexOf(e)===-1;return`${r}<${e} ${Bo}="true" ${i}${c?"/>":`>${l}</${e}>`}`},""),_F=(e,t={})=>Object.keys(e).reduce((n,r)=>{const a=X1[r];return n[a||r]=e[r],n},t),Jce=(e,t,n)=>{const r={key:t,[Bo]:!0},a=_F(n,r);return[ce.createElement("title",a,t)]},ey=(e,t)=>t.map((n,r)=>{const a={key:r,[Bo]:!0};return Object.keys(n).forEach(o=>{const i=X1[o]||o;if(i==="innerHTML"||i==="cssText"){const l=n.innerHTML||n.cssText;a.dangerouslySetInnerHTML={__html:l}}else a[i]=n[o]}),ce.createElement(e,a)}),ho=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>Jce(e,t.title,t.titleAttributes),toString:()=>Qce(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>_F(t),toString:()=>vF(t)};default:return{toComponent:()=>ey(e,t),toString:()=>Xce(e,t,n)}}},eue=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const a=X0(e,K0.meta),o=X0(t,K0.link),i=X0(n,K0.script);return{priorityMethods:{toComponent:()=>[...ey("meta",a.priority),...ey("link",o.priority),...ey("script",i.priority)],toString:()=>`${ho("meta",a.priority,r)} ${ho("link",o.priority,r)} ${ho("script",i.priority,r)}`},metaTags:a.default,linkTags:o.default,scriptTags:i.default}},tue=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:a,noscriptTags:o,styleTags:i,title:l="",titleAttributes:c,prioritizeSeoTags:d}=e;let{linkTags:p,metaTags:h,scriptTags:g}=e,y={toComponent:()=>{},toString:()=>""};return d&&({priorityMethods:y,linkTags:p,metaTags:h,scriptTags:g}=eue(e)),{priority:y,base:ho("base",t,r),bodyAttributes:ho("bodyAttributes",n,r),htmlAttributes:ho("htmlAttributes",a,r),link:ho("link",p,r),meta:ho("meta",h,r),noscript:ho("noscript",o,r),script:ho("script",g,r),style:ho("style",i,r),title:ho("title",{title:l,titleAttributes:c},r)}},aT=tue,yg=[],EF=!!(typeof window<"u"&&window.document&&window.document.createElement),oT=class{instances=[];canUseDOM=EF;context;value={setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?yg:this.instances,add:t=>{(this.canUseDOM?yg:this.instances).push(t)},remove:t=>{const n=(this.canUseDOM?yg:this.instances).indexOf(t);(this.canUseDOM?yg:this.instances).splice(n,1)}}};constructor(t,n){this.context=t,this.canUseDOM=n||!1,n||(t.helmet=aT({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},nue={},xF=ce.createContext(nue),wF=class TF extends b.Component{static canUseDOM=EF;helmetData;constructor(t){super(t),this.helmetData=new oT(this.props.context||{},TF.canUseDOM)}render(){return ce.createElement(xF.Provider,{value:this.helmetData.value},this.props.children)}},du=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Bo}]`),a=[].slice.call(r),o=[];let i;return t&&t.length&&t.forEach(l=>{const c=document.createElement(e);for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d))if(d==="innerHTML")c.innerHTML=l.innerHTML;else if(d==="cssText")c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{const p=d,h=typeof l[p]>"u"?"":l[p];c.setAttribute(d,h)}c.setAttribute(Bo,"true"),a.some((d,p)=>(i=p,c.isEqualNode(d)))?a.splice(i,1):o.push(c)}),a.forEach(l=>l.parentNode?.removeChild(l)),o.forEach(l=>n.appendChild(l)),{oldTags:a,newTags:o}},iT=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Bo),a=r?r.split(","):[],o=[...a],i=Object.keys(t);for(const l of i){const c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),a.indexOf(l)===-1&&a.push(l);const d=o.indexOf(l);d!==-1&&o.splice(d,1)}for(let l=o.length-1;l>=0;l-=1)n.removeAttribute(o[l]);a.length===o.length?n.removeAttribute(Bo):n.getAttribute(Bo)!==i.join(",")&&n.setAttribute(Bo,i.join(","))},rue=(e,t)=>
640{typeof e<"u"&&document.title!==e&&(document.title=bF(e)),iT("title",t)},WI=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:a,linkTags:o,metaTags:i,noscriptTags:l,onChangeClientState:c,scriptTags:d,styleTags:p,title:h,titleAttributes:g}=e;iT("body",r),iT("html",a),rue(h,g);const y={baseTag:du("base",n),linkTags:du("link",o),metaTags:du("meta",i),noscriptTags:du("noscript",l),scriptTags:du("script",d),styleTags:du("style",p)},v={},x={};Object.keys(y).forEach(C=>{const{newTags:S,oldTags:A}=y[C];S.length&&(v[C]=S),A.length&&(x[C]=y[C].oldTags)}),t&&t(),c(e,v,x)},Pf=null,aue=e=>{Pf&&cancelAnimationFrame(Pf),e.defer?Pf=requestAnimationFrame(()=>{WI(e,()=>{Pf=null})}):(WI(e),Pf=null)},oue=aue,ZI=class extends b.Component{rendered=!1;shouldComponentUpdate(e){return!Uce(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=Wce(e.get().map(a=>{const o={...a.props};return delete o.context,o}));wF.canUseDOM?oue(r):aT&&(n=aT(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},J1=class extends b.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!Pce(YI(this.props,"helmetData"),YI(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return HI(qI.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${qI.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),HI(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return ce.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:a,...o}=r.props,i=Object.keys(o).reduce((c,d)=>(c[Fce[d]||d]=o[d],c),{});let{type:l}=r;
640switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(r,a),l){case"Symbol(react.fragment)":t=this.mapChildrenToProps(a,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,i,a);break;default:t=this.mapObjectTypeChildren(r,t,i,a);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof oT)){const a=r;r=new oT(a.context,!0),delete n.helmetData}return r?ce.createElement(ZI,{...n,context:r.value}):ce.createElement(xF.Consumer,null,a=>ce.createElement(ZI,{...n,context:a}))}};const SF=b.createContext({activeAnchor:"",setActiveAnchor:()=>{},observe:()=>{},unobserve:()=>{}}),eC=()=>b.use(SF),iue=()=>{const e=b.useRef(null),{observe:t,unobserve:n}=eC();return b.useEffect(()=>{const r=e.current;if(r)return t(r),()=>n(r)},[t,n]),{ref:b.useCallback(r=>{r&&(e.current=r)},[])}},sue=({children:e})=>{const[t,n]=b.useState(""),r=b.useRef(null),a=b.useRef(new Set),o=b.useRef(new Set);b.useEffect(()=>(r.current=new IntersectionObserver(c=>{for(const d of c)d.isIntersecting&&d.target.id&&n(d.target.id)},{rootMargin:"0px 0px -80% 0px",threshold:.75}),o.current.forEach(c=>{a.current.add(c),r.current?.observe(c)}),o.current.clear(),()=>r.current?.disconnect()),[]),b.useEffect(()=>{const c=a.current,d=()=>{const p=window.scrollY===0,h=window.innerHeight+window.scrollY>=document.body.scrollHeight;if(p)n("");else if(h){const g=Array.from(c).pop()?.id??"";n(g)}};return document.addEventListener("scroll",d),()=>{c.clear(),document.removeEventListener("scroll",d)}},[]);const i=b.useMemo(()=>({observe:c=>{if(c){if(!r.current){o.current.add(c);return}a.current.add(c),r.current.observe(c)}},unobserve:c=>{c&&(o.current.delete(c),a.current.delete(c),r.current?.unobserve(c))}}),[]),l=b.useMemo(()=>({activeAnchor:t,setActiveAnchor:n,...i}),[t,i]);return E.jsx(SF,{value:l,children:e})},lue=hi("group relative",{variants:{level:{6:"text-md",5:"text-lg",4:"text-xl",3:"text-xl font-semibold",2:"text-2xl font-bold",1:"text-4xl font-extrabold"}},defaultVariants:{level:1}}),cue=e=>{switch(e){case 1:return"h1";case 2:return"h2";case 3:return"h3";case 4:return"h4";case 5:return"h5";case 6:return"h6";default:return"h1"}},Vi=({level:e,children:t,id:n,className:r,registerNavigationAnchor:a,...o})=>{const i=cue(e??1),{ref:l}=iue();return E.jsxs(i,{className:lue({className:r,level:e}),ref:a?l:void 0,id:n,...o,children:[t,n&&E.jsx("a",{href:`#${n}`,className:"ms-[0.33em] rounded text-[0.8em] text-muted-foreground p-0.5 -m-0.5 opacity-0 group-hover:opacity-50 hover:text-primary hover:!opacity-100 transition-opacity duration-200 inline-flex items-center align-middle","aria-label":`Link to ${n}`,children:E.jsx(O7,{className:"size-[0.75em] min-w-4 min-h-4"})})]})},J0={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},uue={};function tC(e,t){const n=uue,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return CF(e,r,a)}function CF(e,t,n){if(due(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return KI(e.children,t,n)}return Array.isArray(e)?KI(e,t,n):""}function KI(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=CF(e[a],t,n);return r.join("")}function due(e){return!!(e&&typeof e=="object")}const QI=typeof document<"u"&&document.createElement("i");function nC(e){const t="&"+e+";";QI.innerHTML=t;const n=QI.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ka(e,t,n,r){const a=e.length;let o=0,i;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)i=r.slice(o,o+1e4),i.unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function yo(e,t){return e.length>0?(Ka(e,e.length,0,t),e):t}const XI={}.hasOwnProperty;function AF(e){const t={};let n=-1;for(;++n<e.length;)fue(t,e[n]);return t}function fue(e,t){let n;for(n in t){const r=(XI.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){XI.call(r,o)||(r[o]=[]);const i=a[o];pue(r[o],Array.isArray(i)?i:i?[i]:[])}}}function pue(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ka(e,0,0,r)}function kF(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Uo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fa=rl(/[A-Za-z]/),na=rl(/[\dA-Za-z]/),hue=rl(/[#-'*+\--9=?A-Z^-~]/);function Uy(e){return e!==null&&(e<32||e===127)}const sT=rl(/\d/),mue=rl(/[\dA-Fa-f]/),gue=rl(/[!-/:-@[-`{-~]/);function ft(e){return e!==null&&e<-2}function gn(e){return e!==null&&(e<0||e===32)}function Dt(e){return e===-2||e===-1||e===32}const lv=rl(/\p{P}|\p{S}/u),tc=rl(/\s/);function rl(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ed(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let i="";if(o===37&&na(e.charCodeAt(n+1))&&na(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(i=String.fromCharCode(o));else if(o>55295&&o<57344){const l=e.charCodeAt(n+1);o<56320&&l>56319&&l<57344?(i=String.fromCharCode(o,l),a=1):i="�"}else i=String.fromCharCode(o);
vendor: 13,002 bytes, line 640
640i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+a+1,i=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function qt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return i;function i(c){return Dt(c)?(e.enter(n),l(c)):t(c)}function l(c){return Dt(c)&&o++<a?(e.consume(c),l):(e.exit(n),t(c))}}const yue={tokenize:bue};function bue(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),qt(e,t,"linePrefix")}function a(l){return e.enter("paragraph"),o(l)}function o(l){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,i(l)}function i(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return ft(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),i)}}const vue={tokenize:_ue},JI={tokenize:Eue};function _ue(e){const t=this,n=[];let r=0,a,o,i;return l;function l(k){if(r<n.length){const N=n[r];return t.containerState=N[1],e.attempt(N[0].continuation,c,d)(k)}return d(k)}function c(k){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&A();const N=t.events.length;let O=N,I;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){I=t.events[O][1].end;break}S(r);let D=N;for(;D<t.events.length;)t.events[D][1].end={...I},D++;return Ka(t.events,O+1,0,t.events.slice(N)),t.events.length=D,d(k)}return l(k)}function d(k){if(r===n.length){if(!a)return g(k);if(a.currentConstruct&&a.currentConstruct.concrete)return v(k);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(JI,p,h)(k)}function p(k){return a&&A(),S(r),g(k)}function h(k){return t.parser.lazy[t.now().line]=r!==n.length,i=t.now().offset,v(k)}function g(k){return t.containerState={},e.attempt(JI,y,v)(k)}function y(k){return r++,n.push([t.currentConstruct,t.containerState]),g(k)}function v(k){if(k===null){a&&A(),S(0),e.consume(k);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:o}),x(k)}function x(k){if(k===null){C(e.exit("chunkFlow"),!0),S(0),e.consume(k);return}return ft(k)?(e.consume(k),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(k),x)}function C(k,N){const O=t.sliceStream(k);if(N&&O.push(null),k.previous=o,o&&(o.next=k),o=k,a.defineSkip(k.start),a.write(O),t.parser.lazy[k.start.line]){let I=a.events.length;for(;I--;)if(a.events[I][1].start.offset<i&&(!a.events[I][1].end||a.events[I][1].end.offset>i))return;const D=t.events.length;let U=D,J,P;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if(J){P=t.events[U][1].end;break}J=!0}for(S(r),I=D;I<t.events.length;)t.events[I][1].end={...P},I++;Ka(t.events,U+1,0,t.events.slice(D)),t.events.length=I}}function S(k){let N=n.length;for(;N-- >k;){const O=n[N];t.containerState=O[1],O[0].exit.call(t,e)}n.length=k}function A(){a.write([null]),o=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Eue(e,t,n){return qt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ed(e){if(e===null||gn(e)||tc(e))return 1;if(lv(e))return 2}function cv(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const lT={name:"attention",resolveAll:xue,tokenize:wue};function xue(e,t){let n=-1,r,a,o,i,l,c,d,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},g={...e[n][1].start};eL(h,-c),eL(g,c),i={type:c>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},l={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:g},o={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:c>1?"strong":"emphasis",start:{...i.start},end:{...l.end}},e[r][1].end={...i.start},e[n][1].start={...l.end},d=[],e[r][1].end.offset-e[r][1].start.offset&&(d=yo(d,[["enter",e[r][1],t],["exit",e[r][1],t]])),d=yo(d,[["enter",a,t],["enter",i,t],["exit",i,t],["enter",o,t]]),d=yo(d,cv(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),d=yo(d,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,d=yo(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Ka(e,r-1,n-r+3,d),n=r+d.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function wue(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=ed(r);let o;return i;function i(c){return o=c,e.enter("attentionSequence"),l(c)}function l(c){if(c===o)return e.consume(c),l;const d=e.exit("attentionSequence"),p=ed(c),h=!p||p===2&&a||n.includes(c),g=!a||a===2&&p||n.includes(r);return d._open=!!(o===42?h:h&&(a||!g)),d._close=!!(o===42?g:g&&(p||!h)),t(c)}}function eL(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Tue={name:"autolink",tokenize:Sue};function Sue(e,t,n){let r=0;return a;function a(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(y){return fa(y)?(e.consume(y),i):y===64?n(y):d(y)}function i(y){return y===43||y===45||y===46||na(y)?(r=1,l(y)):d(y)}function l(y){return y===58?(e.consume(y),r=0,c):(y===43||y===45||y===46||na(y))&&r++<32?(e.consume(y),l):(r=0,d(y))}function c(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||Uy(y)?n(y):(e.consume(y),c)}function d(y){return y===64?(e.consume(y),p):hue(y)?(e.consume(y),d):n(y)}function p(y){return na(y)?h(y):n(y)}function h(y){return y===46?(e.consume(y),r=0,p):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):g(y)}function g(y){if((y===45||na(y))&&r++<63){const v=y===45?g:h;return e.consume(y),v}return n(y)}}const uv={partial:!0,tokenize:Cue};function Cue(e,t,n){return r;function r(o){return Dt(o)?qt(e,a,"linePrefix")(o):a(o)}function a(o){return o===null||ft(o)?t(o):n(o)}}const NF={continuation:{tokenize:kue},exit:Nue,name:"blockQuote",tokenize:Aue};function Aue(e,t,n){const r=this;return a;function a(i){if(i===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),o}return n(i)}function o(i){return Dt(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function kue(e,t,n){const r=this;return a;function a(i){return Dt(i)?qt(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)}function o(i){return e.attempt(NF,t,n)(i)}}function Nue(e){e.exit("blockQuote")}const RF={name:"characterEscape",tokenize:Rue};function Rue(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),a}function a(o){return gue(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const OF={name:"characterReference",tokenize:Oue};function Oue(e,t,n){const r=this;let a=0,o,i;return l;function l(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),c}function c(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),o=31,i=na,p(h))}function d(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=mue,p):(e.enter("characterReferenceValue"),o=7,i=sT,p(h))}function p(h){if(h===59&&a){const g=e.exit("characterReferenceValue");return i===na&&!nC(r.sliceSerialize(g))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(h)&&a++<o?(e.consume(h),p):n(h)}}const tL={partial:!0,tokenize:Iue},nL={concrete:!0,name:"codeFenced",tokenize:Due};function Due(e,t,n){const r=this,a={partial:!0,tokenize:O};let o=0,i=0,l;return c;function c(I){return d(I)}function d(I){const D=r.events[r.events.length-1];return o=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,l=I,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(I)}function p(I){return I===l?(i++,e.consume(I),p):i<3?n(I):(e.exit("codeFencedFenceSequence"),Dt(I)?qt(e,h,"whitespace")(I):h(I))}function h(I){return I===null||ft(I)?(e.exit("codeFencedFence"),r.interrupt?t(I):e.check(tL,x,N)(I)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(I))}function g(I){return I===null||ft(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(I)):Dt(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),qt(e,y,"whitespace")(I)):I===96&&I===l?n(I):(e.consume(I),g)}function y(I){return I===null||ft(I)?h(I):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(I))}function v(I){return I===null||ft(I)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(I)):I===96&&I===l?n(I):(e.consume(I),v)}function x(I){return e.attempt(a,N,C)(I)}function C(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),S}function S(I){return o>0&&Dt(I)?qt(e,A,"linePrefix",o+1)(I):A(I)}function A(I){return I===null||ft(I)?e.check(tL,x,N)(I):(e.enter("codeFlowValue"),k(I))}function k(I){return I===null||ft(I)?(e.exit("codeFlowValue"),A(I)):(e.consume(I),k)}function N(I){return e.exit("codeFenced"),t(I)}function O(I,D,U){let J=0;return P;function P(ae){return I.enter("lineEnding"),I.consume(ae),I.exit("lineEnding"),X}function X(ae){return I.enter("codeFencedFence"),Dt(ae)?qt(I,K,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ae):K(ae)}function K(ae){return ae===l?(I.enter("codeFencedFenceSequence"),Q(ae)):U(ae)}function Q(ae){return ae===l?(J++,I.consume(ae),Q):J>=i?(I.exit("codeFencedFenceSequence"),Dt(ae)?qt(I,ne,"whitespace")(ae):ne(ae)):U(ae)}function ne(ae){return ae===null||ft(ae)?(I.exit("codeFencedFence"),D(ae)):U(ae)}}}function Iue(e,t,n){const r=this;return a;function a(i){return i===null?n(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o)}function o(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}const ex={name:"codeIndented",tokenize:$ue},Lue={partial:!0,tokenize:Pue};function $ue(e,t,n){const r=this;return a;function a(d){return e.enter("codeIndented"),qt(e,o,"linePrefix",5)(d)}function o(d){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?i(d):n(d)}function i(d){return d===null?c(d):ft(d)?e.attempt(Lue,i,c)(d):(e.enter("codeFlowValue"),l(d))}function l(d){return d===null||ft(d)?(e.exit("codeFlowValue"),i(d)):(e.consume(d),l)}function c(d){return e.exit("codeIndented"),t(d)}}function Pue(e,t,n){const r=this;return a;function a(i){return r.parser.lazy[r.now().line]?n(i):ft(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a):qt(e,o,"linePrefix",5)(i)}function o(i){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):ft(i)?a(i):n(i)}}const Mue={name:"codeText",previous:zue,resolve:jue,tokenize:Bue};function jue(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function zue(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Bue(e,t,n){let r=0,a,o;return i;function i(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),r++,l):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(o=e.enter("codeTextSequence"),a=0,p(h)):ft(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("co
640deTextData"),d(h))}function d(h){return h===null||h===32||h===96||ft(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),d)}function p(h){return h===96?(e.consume(h),a++,p):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(o.type="codeTextData",d(h))}}class Uue{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&Mf(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Mf(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Mf(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Mf(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Mf(this.left,n.reverse())}}}function Mf(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function DF(e){const t={};let n=-1,r,a,o,i,l,c,d;const p=new Uue(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(r=p.get(n),n&&r[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,o=0,o<c.length&&c[o][1].type==="lineEndingBlank"&&(o+=2),o<c.length&&c[o][1].type==="content"))for(;++o<c.length&&c[o][1].type!=="content";)c[o][1].type==="chunkText"&&(c[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Fue(p,n)),n=t[n],d=!0);else if(r[1]._container){for(o=n,a=void 0;o--;)if(i=p.get(o),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(a&&(p.get(a)[1].type="lineEndingBlank"),i[1].type="lineEnding",a=o);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;a&&(r[1].end={...p.get(a)[1].start},l=p.slice(a,n),l.unshift(r),p.splice(a,n-a+1,l))}}return Ka(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!d}function Fue(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const o=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const l=i.events,c=[],d={};let p,h,g=-1,y=n,v=0,x=0;const C=[x];for(;y;){for(;e.get(++a)[1]!==y;);o.push(a),y._tokenizer||(p=r.sliceStream(y),y.next||p.push(null),h&&i.defineSkip(y.start),y._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(p),y._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),h=y,y=y.next}for(y=n;++g<l.length;)l[g][0]==="exit"&&l[g-1][0]==="enter"&&l[g][1].type===l[g-1][1].type&&l[g][1].start.line!==l[g][1].end.line&&(x=g+1,C.push(x),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(i.events=[],y?(y._tokenizer=void 0,y.previous=void 0):C.pop(),g=C.length;g--;){const S=l.slice(C[g],C[g+1]),A=o.pop();c.push([A,A+S.length-1]),e.splice(A,2,S)}for(c.reverse(),g=-1;++g<c.length;)d[v+c[g][0]]=v+c[g][1],v+=c[g][1]-c[g][0]-1;return d}const Hue={resolve:Vue,tokenize:que},Gue={partial:!0,tokenize:Yue};function Vue(e){return DF(e),e}function que(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(l)}function a(l){return l===null?o(l):ft(l)?e.check(Gue,i,o)(l):(e.consume(l),a)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function i(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function Yue(e,t,n){const r=this;return a;function a(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),qt(e,o,"linePrefix")}function o(i){if(i===null||ft(i))return n(i);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function IF(e,t,n,r,a,o,i,l,c){const d=c||Number.POSITIVE_INFINITY;let p=0;return h;function h(S){return S===60?(e.enter(r),e.enter(a),e.enter(o),e.consume(S),e.exit(o),g):S===null||S===32||S===41||Uy(S)?n(S):(e.enter(r),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),x(S))}function g(S){return S===62?(e.enter(o),e.consume(S),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===62?(e.exit("chunkString"),e.exit(l),g(S)):S===null||S===60||ft(S)?n(S):(e.consume(S),S===92?v:y)}function v(S){return S===60||S===62||S===92?(e.consume(S),y):y(S)}function x(S){return!p&&(S===null||S===41||gn(S))?(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(r),t(S)):p<d&&S===40?(e.consume(S),p++,x):S===41?(e.consume(S),p--,x):S===null||S===32||S===40||Uy(S)?n(S):(e.consume(S),S===92?C:x)}
vendor: 16,936 bytes, line 640
640function C(S){return S===40||S===41||S===92?(e.consume(S),x):x(S)}}function LF(e,t,n,r,a,o){const i=this;let l=0,c;return d;function d(y){return e.enter(r),e.enter(a),e.consume(y),e.exit(a),e.enter(o),p}function p(y){return l>999||y===null||y===91||y===93&&!c||y===94&&!l&&"_hiddenFootnoteSupport"in i.parser.constructs?n(y):y===93?(e.exit(o),e.enter(a),e.consume(y),e.exit(a),e.exit(r),t):ft(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||y===91||y===93||ft(y)||l++>999?(e.exit("chunkString"),p(y)):(e.consume(y),c||(c=!Dt(y)),y===92?g:h)}function g(y){return y===91||y===92||y===93?(e.consume(y),l++,h):h(y)}}function $F(e,t,n,r,a,o){let i;return l;function l(g){return g===34||g===39||g===40?(e.enter(r),e.enter(a),e.consume(g),e.exit(a),i=g===40?41:g,c):n(g)}function c(g){return g===i?(e.enter(a),e.consume(g),e.exit(a),e.exit(r),t):(e.enter(o),d(g))}function d(g){return g===i?(e.exit(o),c(i)):g===null?n(g):ft(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),qt(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===i||g===null||ft(g)?(e.exit("chunkString"),d(g)):(e.consume(g),g===92?h:p)}function h(g){return g===i||g===92?(e.consume(g),p):p(g)}}function pp(e,t){let n;return r;function r(a){return ft(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Dt(a)?qt(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const Wue={name:"definition",tokenize:Kue},Zue={partial:!0,tokenize:Que};function Kue(e,t,n){const r=this;let a;return o;function o(y){return e.enter("definition"),i(y)}function i(y){return LF.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function l(y){return a=Uo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),c):n(y)}function c(y){return gn(y)?pp(e,d)(y):d(y)}function d(y){return IF(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function p(y){return e.attempt(Zue,h,h)(y)}function h(y){return Dt(y)?qt(e,g,"whitespace")(y):g(y)}function g(y){return y===null||ft(y)?(e.exit("definition"),r.parser.defined.push(a),t(y)):n(y)}}function Que(e,t,n){return r;function r(l){return gn(l)?pp(e,a)(l):n(l)}function a(l){return $F(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return Dt(l)?qt(e,i,"whitespace")(l):i(l)}function i(l){return l===null||ft(l)?t(l):n(l)}}const Xue={name:"hardBreakEscape",tokenize:Jue};function Jue(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),a}function a(o){return ft(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const ede={name:"headingAtx",resolve:tde,tokenize:nde};function tde(e,t){let n=e.length-2,r=3,a,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ka(e,r,n-r+1,[["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t]])),e}function nde(e,t,n){let r=0;return a;function a(p){return e.enter("atxHeading"),o(p)}function o(p){return e.enter("atxHeadingSequence"),i(p)}function i(p){return p===35&&r++<6?(e.consume(p),i):p===null||gn(p)?(e.exit("atxHeadingSequence"),l(p)):n(p)}function l(p){return p===35?(e.enter("atxHeadingSequence"),c(p)):p===null||ft(p)?(e.exit("atxHeading"),t(p)):Dt(p)?qt(e,l,"whitespace")(p):(e.enter("atxHeadingText"),d(p))}function c(p){return p===35?(e.consume(p),c):(e.exit("atxHeadingSequence"),l(p))}function d(p){return p===null||p===35||gn(p)?(e.exit("atxHeadingText"),l(p)):(e.consume(p),d)}}const rde=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],rL=["pre","script","style","textarea"],ade={concrete:!0,name:"htmlFlow",resolveTo:sde,tokenize:lde},ode={partial:!0,tokenize:ude},ide={partial:!0,tokenize:cde};function sde(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function lde(e,t,n){const r=this;let a,o,i,l,c;return d;function d(L){return p(L)}function p(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),h}function h(L){return L===33?(e.consume(L),g):L===47?(e.consume(L),o=!0,x):L===63?(e.consume(L),a=3,r.interrupt?t:B):fa(L)?(e.consume(L),i=String.fromCharCode(L),C):n(L)}function g(L){return L===45?(e.consume(L),a=2,y):L===91?(e.consume(L),a=5,l=0,v):fa(L)?(e.consume(L),a=4,r.interrupt?t:B):n(L)}function y(L){return L===45?(e.consume(L),r.interrupt?t:B):n(L)}function v(L){const de="CDATA[";return L===de.charCodeAt(l++)?(e.consume(L),l===de.length?r.interrupt?t:K:v):n(L)}function x(L){return fa(L)?(e.consume(L),i=String.fromCharCode(L),C):n(L)}function C(L){if(L===null||L===47||L===62||gn(L)){const de=L===47,_e=i.toLowerCase();return!de&&!o&&rL.includes(_e)?(a=1,r.interrupt?t(L):K(L)):rde.includes(i.toLowerCase())?(a=6,de?(e.consume(L),S):r.interrupt?t(L):K(L)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(L):o?A(L):k(L))}return L===45||na(L)?(e.consume(L),i+=String.fromCharCode(L),C):n(L)}function S(L){return L===62?(e.consume(L),r.interrupt?t:K):n(L)}function A(L){return Dt(L)?(e.consume(L),A):P(L)}function k(L){return L===47?(e.consume(L),P):L===58||L===95||fa(L)?(e.consume(L),N):Dt(L)?(e.consume(L),k):P(L)}function N(L){return L===45||L===46||L===58||L===95||na(L)?(e.consume(L),N):O(L)}function O(L){return L===61?(e.consume(L),I):Dt(L)?(e.consume(L),O):k(L)}function I(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),c=L,D):Dt(L)?(e.consume(L),I):U(L)}function D(L){return L===c?(e.consume(L),c=null,J):L===null||ft(L)?n(L):(e.consume(L),D)}function U(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||gn(L)?O(L):(e.consume(L),U)}function J(L){return L===47||L===62||Dt(L)?k(L):n(L)}function P(L){return L===62?(e.consume(L),X):n(L)}function X(L){return L===null||ft(L)?K(L):Dt(L)?(e.consume(L),X):n(L)}function K(L){return L===45&&a===2?(e.consume(L),H):L===60&&a===1?(e.consume(L),re):L===62&&a===4?(e.consume(L),V):L===63&&a===3?(e.consume(L),B):L===93&&a===5?(e.consume(L),ge):ft(L)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(ode,G,Q)(L)):L===null||ft(L)?(e.exit("htmlFlowData"),Q(L)):(e.consume(L),K)}function Q(L){return e.check(ide,ne,G)(L)}function ne(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),ae}function ae(L){return L===null||ft(L)?Q(L):(e.enter("htmlFlowData"),K(L))}function H(L){return L===45?(e.consume(L),B):K(L)}function re(L){return L===47?(e.consume(L),i="",ee):K(L)}function ee(L){if(L===62){const de=i.toLowerCase();return rL.includes(de)?(e.consume(L),V):K(L)}return fa(L)&&i.length<8?(e.consume(L),i+=String.fromCharCode(L),ee):K(L)}function ge(L){return L===93?(e.consume(L),B):K(L)}function B(L){return L===62?(e.consume(L),V):L===45&&a===2?(e.consume(L),B):K(L)}function V(L){return L===null||ft(L)?(e.exit("htmlFlowData"),G(L)):(e.consume(L),V)}function G(L){return e.exit("htmlFlow"),t(L)}}function cde(e,t,n){const r=this;return a;function a(i){return ft(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o):n(i)}function o(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}function ude(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(uv,t,n)}}const dde={name:"htmlText",tokenize:fde};function fde(e,t,n){const r=this;let a,o,i;return l;function l(B){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(B),c}function c(B){return B===33?(e.consume(B),d):B===47?(e.consume(B),O):B===63?(e.consume(B),k):fa(B)?(e.consume(B),U):n(B)}function d(B){return B===45?(e.consume(B),p):B===91?(e.consume(B),o=0,v):fa(B)?(e.consume(B),A):n(B)}function p(B){return B===45?(e.consume(B),y):n(B)}function h(B){return B===null?n(B):B===45?(e.consume(B),g):ft(B)?(i=h,re(B)):(e.consume(B),h)}function g(B){return B===45?(e.consume(B),y):h(B)}function y(B){return B===62?H(B):B===45?g(B):h(B)}function v(B){const V="CDATA[";return B===V.charCodeAt(o++)?(e.consume(B),o===V.length?x:v):n(B)}function x(B){return B===null?n(B):B===93?(e.consume(B),C):ft(B)?(i=x,re(B)):(e.consume(B),x)}function C(B){return B===93?(e.consume(B),S):x(B)}function S(B){return B===62?H(B):B===93?(e.consume(B),S):x(B)}function A(B){return B===null||B===62?H(B):ft(B)?(i=A,re(B)):(e.consume(B),A)}function k(B){return B===null?n(B):B===63?(e.consume(B),N):ft(B)?(i=k,re(B)):(e.consume(B),k)}function N(B){return B===62?H(B):k(B)}function O(B){return fa(B)?(e.consume(B),I):n(B)}function I(B){return B===45||na(B)?(e.consume(B),I):D(B)}function D(B){return ft(B)?(i=D,re(B)):Dt(B)?(e.consume(B),D):H(B)}function U(B){return B===45||na(B)?(e.consume(B),U):B===47||B===62||gn(B)?J(B):n(B)}function J(B){return B===47?(e.consume(B),H):B===58||B===95||fa(B)?(e.consume(B),P):ft(B)?(i=J,re(B)):Dt(B)?(e.consume(B),J):H(B)}function P(B){return B===45||B===46||B===58||B===95||na(B)?(e.consume(B),P):X(B)}function X(B){return B===61?(e.consume(B),K):ft(B)?(i=X,re(B)):Dt(B)?(e.consume(B),X):J(B)}function K(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(e.consume(B),a=B,Q):ft(B)?(i=K,re(B)):Dt(B)?(e.consume(B),K):(e.consume(B),ne)}function Q(B){return B===a?(e.consume(B),a=void 0,ae):B===null?n(B):ft(B)?(i=Q,re(B)):(e.consume(B),Q)}function ne(B){return B===null||B===34||B===39||B===60||B===61||B===96?n(B):B===47||B===62||gn(B)?J(B):(e.consume(B),ne)}function ae(B){return B===47||B===62||gn(B)?J(B):n(B)}function H(B){return B===62?(e.consume(B),e.exit("htmlTextData"),e.exit("htmlText"),t):n(B)}function re(B){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),ee}function ee(B){return Dt(B)?qt(e,ge,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):ge(B)}function ge(B){return e.enter("htmlTextData"),i(B)}}const rC={name:"labelEnd",resolveAll:gde,resolveTo:yde,tokenize:bde},pde={tokenize:vde},hde={tokenize:_de},mde={tokenize:Ede};function gde(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&Ka(e,0,e.length,n),e}function yde(e,t){let n=e.length,r=0,a,o,i,l;for(;n--;)if(a=e[n][1],o){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(i){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(o=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(i=n);const c={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[o][1].start},end:{...e[i][1].end}},p={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[i-2][1].start}};return l=[["enter",c,t],["enter",d,t]],l=yo(l,e.slice(o+1,o+r+3)),l=yo(l,[["enter",p,t]]),l=yo(l,cv(t.parser.constructs.insideSpan.null,e.slice(o+r+4,i-3),t)),l=yo(l,[["exit",p,t],e[i-2],e[i-1],["exit",d,t]]),l=yo(l,e.slice(i+1)),l=yo(l,[["exit",c,t]]),Ka(e,o,e.length,l),e}function bde(e,t,n){const r=this;let a=r.events.length,o,i;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){o=r.events[a][1];break}return l;function l(g){return o?o._inactive?h(g):(i=r.parser.defined.includes(Uo(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),c):n(g)}function c(g){return g===40?e.attempt(pde,p,i?p:h)(g):g===91?e.attempt(hde,p,i?d:h)(g):i?p(g):h(g)}function d(g){return e.attempt(mde,p,h)(g)}function p(g){return t(g)}function h(g){return o._balanced=!0,n(g)}}function vde(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),a}function a(h){return gn(h)?pp(e,o)(h):o(h)}function o(h){return h===41?p(h):IF(e,i,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function i(h){return gn(h)?pp(e,c)(h):p(h)}function l(h){return n(h)}function c(h){return h===34||h===39||h===40?$F(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):p(h)}function d(h){return gn(h)?pp(e,p)(h):p(h)}function p(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function _de(e,t,n){const r=this;return a;function a(l){return LF.call(r,e,o,i,"reference","referenceMarker","referenceString")(l)}function o(l){return r.parser.defined.includes(Uo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function i(l){return n(l)}}function Ede(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),a}function a(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const xde={name:"labelStartImage",resolveAll:rC.resolveAll,tokenize:wde};function wde(e,t,n){const r=this;return a;function a(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),i):n(l)}function i(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const Tde={name:"labelStartLink",resolveAll:rC.resolveAll,tokenize:Sde};function Sde(e,t,n){const r=this;return a;function a(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),o}function o(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(i):t(i)}}const tx={name:"lineEnding",tokenize:Cde};function Cde(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),qt(e,t,"linePrefix")}}const ty={name:"thematicBreak",tokenize:Ade};function Ade(e,t,n){let r=0,a;return o;function o(d){return e.enter("thematicBreak"),i(d)}function i(d){return a=d,l(d)}function l(d){return d===a?(e.enter("thematicBreakSequence"),c(d)):r>=3&&(d===null||ft(d))?(e.exit("thematicBreak"),t(d)):n(d)}function c(d){return d===a?(e.consume(d),r++,c):(e.exit("thematicBreakSequence"),Dt(d)?qt(e,l,"whitespace")(d):l(d))}}const Ta={continuation:{tokenize:Ode},exit:Ide,name:"list",tokenize:Rde},kde={partial:!0,tokenize:Lde},Nde={partial:!0,tokenize:Dde};function Rde(e,t,n){const r=this,a=r.events[r.events.length-1];let o=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,i=0;return l;function l(y){const v=r.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!r.containerState.marker||y===r.containerState.marker:sT(y)){if(r.containerState.type||(r.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(ty,n,d)(y):d(y);if(!r.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(y)}return n(y)}function c(y){return sT(y)&&++i<10?(e.consume(y),c):(!r.interrupt||i<2)&&(r.containerState.marker?y===r.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),d(y)):n(y)}function d(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||y,e.check(uv,r.interrupt?n:p,e.attempt(kde,g,h))}function p(y){return r.containerState.initialBlankLine=!0,o++,g(y)}function h(y){return Dt(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),g):n(y)}function g(y){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function Ode(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(uv,a,o);function a(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,qt(e,t,"listItemIndent",r.containerState.size+1)(l)}function o(l){return r.containerState.furtherBlankLines||!Dt(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
vendor: 8,300 bytes, lines 640-642
640=void 0,i(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Nde,t,i)(l))}function i(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,qt(e,e.attempt(Ta,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Dde(e,t,n){const r=this;return qt(e,a,"listItemIndent",r.containerState.size+1);function a(o){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(o):n(o)}}function Ide(e){e.exit(this.containerState.type)}function Lde(e,t,n){const r=this;return qt(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(o){const i=r.events[r.events.length-1];return!Dt(o)&&i&&i[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const aL={name:"setextUnderline",resolveTo:$de,tokenize:Pde};function $de(e,t){let n=e.length,r,a,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const i={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",o?(e.splice(a,0,["enter",i,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=i,e.push(["exit",i,t]),e}function Pde(e,t,n){const r=this;let a;return o;function o(d){let p=r.events.length,h;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){h=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),a=d,i(d)):n(d)}function i(d){return e.enter("setextHeadingLineSequence"),l(d)}function l(d){return d===a?(e.consume(d),l):(e.exit("setextHeadingLineSequence"),Dt(d)?qt(e,c,"lineSuffix")(d):c(d))}function c(d){return d===null||ft(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const Mde={tokenize:jde};function jde(e){const t=this,n=e.attempt(uv,r,e.attempt(this.parser.constructs.flowInitial,a,qt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Hue,a)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const zde={resolveAll:MF()},Bde=PF("string"),Ude=PF("text");function PF(e){return{resolveAll:MF(e==="text"?Fde:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],o=n.attempt(a,i,l);return i;function i(p){return d(p)?o(p):l(p)}function l(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),c}function c(p){return d(p)?(n.exit("data"),o(p)):(n.consume(p),c)}function d(p){if(p===null)return!0;const h=a[p];let g=-1;if(h)for(;++g<h.length;){const y=h[g];if(!y.previous||y.previous.call(r,r.previous))return!0}return!1}}}function MF(e){return t;function t(n,r){let a=-1,o;for(;++a<=n.length;)o===void 0?n[a]&&n[a][1].type==="data"&&(o=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==o+2&&(n[o][1].end=n[a-1][1].end,n.splice(o+2,a-o-2),a=o+2),o=void 0);return e?e(n,r):n}}function Fde(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let o=a.length,i=-1,l=0,c;for(;o--;){const d=a[o];if(typeof d=="string"){for(i=d.length;d.charCodeAt(i-1)===32;)l++,i--;if(i)break;i=-1}else if(d===-2)c=!0,l++;else if(d!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const d={type:n===e.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?i:r.start._bufferIndex+i,_index:r.start._index+o,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...d.start},r.start.offset===r.end.offset?Object.assign(r,d):(e.splice(n,0,["enter",d,t],["exit",d,t]),n+=2)}n++}return e}const Hde={42:Ta,43:Ta,45:Ta,48:Ta,49:Ta,50:Ta,51:Ta,52:Ta,53:Ta,54:Ta,55:Ta,56:Ta,57:Ta,62:NF},Gde={91:Wue},Vde={[-2]:ex,[-1]:ex,32:ex},qde={35:ede,42:ty,45:[aL,ty],60:ade,61:aL,95:ty,96:nL,126:nL},Yde={38:OF,92:RF},Wde={[-5]:tx,[-4]:tx,[-3]:tx,33:xde,38:OF,42:lT,60:[Tue,dde],91:Tde,92:[Xue,RF],93:rC,95:lT,96:Mue},Zde={null:[lT,zde]},Kde={null:[42,95]},Qde={null:[]},Xde=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Kde,contentInitial:Gde,disable:Qde,document:Hde,flow:qde,flowInitial:Vde,insideSpan:Zde,string:Yde,text:Wde},Symbol.toStringTag,{value:"Module"}));function Jde(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},o=[];let i=[],l=[];const c={attempt:D(O),check:D(I),consume:A,enter:k,exit:N,interrupt:D(I,{interrupt:!0})},d={code:null,containerState:{},defineSkip:x,events:[],now:v,parser:e,previous:null,sliceSerialize:g,sliceStream:y,write:h};let p=t.tokenize.call(d,c);return t.resolveAll&&o.push(t),d;function h(X){return i=yo(i,X),C(),i[i.length-1]!==null?[]:(U(t,0),d.events=cv(o,d.events,d),d.events)}function g(X,K){return tfe(y(X),K)}function y(X){return efe(i,X)}function v(){const{_bufferIndex:X,_index:K,line:Q,column:ne,offset:ae}=r;return{_bufferIndex:X,_index:K,line:Q,column:ne,offset:ae}}function x(X){a[X.line]=X.column,P()}function C(){let X;for(;r._index<i.length;){const K=i[r._index];if(typeof K=="string")for(X=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===X&&r._bufferIndex<K.length;)S(K.charCodeAt(r._bufferIndex));else S(K)}}function S(X){p=p(X)}function A(X){ft(X)?(r.line++,r.column=1,r.offset+=X===-3?2:1,P()):X!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),d.previous=X}function k(X,K){const Q=K||{};return Q.type=X,Q.start=v(),d.events.push(["enter",Q,d]),l.push(Q),Q}function N(X){const K=l.pop();return K.end=v(),d.events.push(["exit",K,d]),K}function O(X,K){U(X,K.from)}function I(X,K){K.restore()}function D(X,K){return Q;function Q(ne,ae,H){let re,ee,ge,B;return Array.isArray(ne)?G(ne):"tokenize"in ne?G([ne]):V(ne);function V(Ce){return he;function he(Be){const qe=Be!==null&&Ce[Be],nt=Be!==null&&Ce.null,dt=[...Array.isArray(qe)?qe:qe?[qe]:[],...Array.isArray(nt)?nt:nt?[nt]:[]];return G(dt)(Be)}}function G(Ce){return re=Ce,ee=0,Ce.length===0?H:L(Ce[ee])}function L(Ce){return he;function he(Be){return B=J(),ge=Ce,Ce.partial||(d.currentConstruct=Ce),Ce.name&&d.parser.constructs.disable.null.includes(Ce.name)?_e():Ce.tokenize.call(K?Object.assign(Object.create(d),K):d,c,de,_e)(Be)}}function de(Ce){return X(ge,B),ae}function _e(Ce){return B.restore(),++ee<re.length?L(re[ee]):H}}}function U(X,K){X.resolveAll&&!o.includes(X)&&o.push(X),X.resolve&&Ka(d.events,K,d.events.length-K,X.resolve(d.events.slice(K),d)),X.resolveTo&&(d.events=X.resolveTo(d.events,d))}function J(){const X=v(),K=d.previous,Q=d.currentConstruct,ne=d.events.length,ae=Array.from(l);return{from:ne,restore:H};function H(){r=X,d.previous=K,d.currentConstruct=Q,d.events.length=ne,l=ae,P()}}function P(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function efe(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let i;if(n===a)i=[e[n].slice(r,o)];else{if(i=e.slice(n,a),r>-1){const l=i[0];typeof l=="string"?i[0]=l.slice(r):i.shift()}o>0&&i.push(e[a].slice(0,o))}return i}function tfe(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const o=e[n];let i;if(typeof o=="string")i=o;else switch(o){case-5:{i="\r";break}case-4:{i=` 641`;break}case-3:{i=`\r 642`;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&a)continue;i=" ";break}default:i=String.fromCharCode(o)}a=o===-2,r.push(i)}return r.join("")}function nfe(e){const t={constructs:AF([Xde,...(e||{}).extensions||[]]),content:n(yue),defined:[],document:n(vue),flow:n(Mde),lazy:{},string:n(Bde),text:n(Ude)};return t;function n(r){return a;function a(o){return Jde(t,r,o)}}}function rfe(e){for(;!DF(e););return e}const oL=/[\0\t\n\r]/g;function afe(){let e=1,t="",n=!0,r;return a;function a(o,i,l){const c=[];let d,p,h,g,y;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(i||void 0).decode(o)),h=0,t="",n&&(o.charCo
vendor: 19,036 bytes, lines 642-646
642deAt(0)===65279&&h++,n=void 0);h<o.length;){if(oL.lastIndex=h,d=oL.exec(o),g=d&&d.index!==void 0?d.index:o.length,y=o.charCodeAt(g),!d){t=o.slice(h);break}if(y===10&&h===g&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),h<g&&(c.push(o.slice(h,g)),e+=g-h),y){case 0:{c.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,c.push(-2);e++<p;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}h=g+1}return l&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const ofe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ife(e){return e.replace(ofe,sfe)}function sfe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),a=r===120||r===88;return kF(n.slice(a?2:1),a?16:10)}return nC(n)||e}const jF={}.hasOwnProperty;function lfe(e,t,n){return typeof t!="string"&&(n=t,t=void 0),cfe(n)(rfe(nfe(n).document().write(afe()(e,t,!0))))}function cfe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Pn),autolinkProtocol:J,autolinkEmail:J,atxHeading:o(Ge),blockQuote:o(nt),characterEscape:J,characterReference:J,codeFenced:o(dt),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(dt,i),codeText:o(lt,i),codeTextData:J,data:J,codeFlowValue:J,definition:o(Zt),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(Qe),hardBreakEscape:o(en),hardBreakTrailing:o(en),htmlFlow:o(tr,i),htmlFlowData:J,htmlText:o(tr,i),htmlTextData:J,image:o(sa),label:i,link:o(Pn),listItem:o(oe),listItemValue:g,listOrdered:o(Y,h),listUnordered:o(Y),paragraph:o(be),reference:L,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(Ge),strong:o(Fe),thematicBreak:o(Oe)},exit:{atxHeading:c(),atxHeadingSequence:O,autolink:c(),autolinkEmail:qe,autolinkProtocol:Be,blockQuote:c(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:_e,characterReferenceMarkerNumeric:_e,characterReferenceValue:Ce,characterReference:he,codeFenced:c(C),codeFencedFence:x,codeFencedFenceInfo:y,codeFencedFenceMeta:v,codeFlowValue:P,codeIndented:c(S),codeText:c(ae),codeTextData:P,data:P,definition:c(),definitionDestinationString:N,definitionLabelString:A,definitionTitleString:k,emphasis:c(),hardBreakEscape:c(K),hardBreakTrailing:c(K),htmlFlow:c(Q),htmlFlowData:P,htmlText:c(ne),htmlTextData:P,image:c(re),label:ge,labelText:ee,lineEnding:X,link:c(H),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:de,resourceDestinationString:B,resourceTitleString:V,resource:G,setextHeading:c(U),setextHeadingLineSequence:D,setextHeadingText:I,strong:c(),thematicBreak:c()}};zF(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ie){let we={type:"root",children:[]};const Ie={stack:[we],tokenStack:[],config:t,enter:l,exit:d,buffer:i,resume:p,data:n},rt=[];let yt=-1;for(;++yt<ie.length;)if(ie[yt][1].type==="listOrdered"||ie[yt][1].type==="listUnordered")if(ie[yt][0]==="enter")rt.push(yt);else{const Kt=rt.pop();yt=a(ie,Kt,yt)}for(yt=-1;++yt<ie.length;){const Kt=t[ie[yt][0]];jF.call(Kt,ie[yt][1].type)&&Kt[ie[yt][1].type].call(Object.assign({sliceSerialize:ie[yt][2].sliceSerialize},Ie),ie[yt][1])}if(Ie.tokenStack.length>0){const Kt=Ie.tokenStack[Ie.tokenStack.length-1];(Kt[1]||iL).call(Ie,void 0,Kt[0])}for(we.position={start:Rs(ie.length>0?ie[0][1].start:{line:1,column:1,offset:0}),end:Rs(ie.length>0?ie[ie.length-2][1].end:{line:1,column:1,offset:0})},yt=-1;++yt<t.transforms.length;)we=t.transforms[yt](we)||we;return we}function a(ie,we,Ie){let rt=we-1,yt=-1,Kt=!1,an,Cn,zt,Gn;for(;++rt<=Ie;){const Bt=ie[rt];switch(Bt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Bt[0]==="enter"?yt++:yt--,Gn=void 0;break}case"lineEndingBlank":{Bt[0]==="enter"&&(an&&!Gn&&!yt&&!zt&&(zt=rt),Gn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Gn=void 0}if(!yt&&Bt[0]==="enter"&&Bt[1].type==="listItemPrefix"||yt===-1&&Bt[0]==="exit"&&(Bt[1].type==="listUnordered"||Bt[1].type==="listOrdered")){if(an){let la=rt;for(Cn=void 0;la--;){const Nr=ie[la];if(Nr[1].type==="lineEnding"||Nr[1].type==="lineEndingBlank"){if(Nr[0]==="exit")continue;Cn&&(ie[Cn][1].type="lineEndingBlank",Kt=!0),Nr[1].type="lineEnding",Cn=la}else if(!(Nr[1].type==="linePrefix"||Nr[1].type==="blockQuotePrefix"||Nr[1].type==="blockQuotePrefixWhitespace"||Nr[1].type==="blockQuoteMarker"||Nr[1].type==="listItemIndent"))break}zt&&(!Cn||zt<Cn)&&(an._spread=!0),an.end=Object.assign({},Cn?ie[Cn][1].start:Bt[1].end),ie.splice(Cn||rt,0,["exit",an,Bt[2]]),rt++,Ie++}if(Bt[1].type==="listItemPrefix"){const la={type:"listItem",_spread:!1,start:Object.assign({},Bt[1].start),end:void 0};an=la,ie.splice(rt,0,["enter",la,Bt[2]]),rt++,Ie++,zt=void 0,Gn=!0}}}return ie[we][1]._spread=Kt,Ie}function o(ie,we){return Ie;function Ie(rt){l.call(this,ie(rt),rt),we&&we.call(this,rt)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(ie,we,Ie){this.stack[this.stack.length-1].children.push(ie),this.stack.push(ie),this.tokenStack.push([we,Ie||void 0]),ie.position={start:Rs(we.start),end:void 0}}function c(ie){return we;function we(Ie){ie&&ie.call(this,Ie),d.call(this,Ie)}}function d(ie,we){const Ie=this.stack.pop(),rt=this.tokenStack.pop();if(rt)rt[0].type!==ie.type&&(we?we.call(this,ie,rt[0]):(rt[1]||iL).call(this,ie,rt[0]));else throw new Error("Cannot close `"+ie.type+"` ("+up({start:ie.start,end:ie.end})+"): itâs not open");Ie.position.end=Rs(ie.end)}function p(){return tC(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function g(ie){if(this.data.expectingFirstListItemValue){const we=this.stack[this.stack.length-2];we.start=Number.parseInt(this.sliceSerialize(ie),10),this.data.expectingFirstListItemValue=void 0}}function y(){const ie=this.resume(),we=this.stack[this.stack.length-1];we.lang=ie}function v(){const ie=this.resume(),we=this.stack[this.stack.length-1];we.meta=ie}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const ie=this.resume(),we=this.stack[this.stack.length-1];we.value=ie.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const ie=this.resume(),we=this.stack[this.stack.length-1];we.value=ie.replace(/(\r?\n|\r)$/g,"")}function A(ie){const we=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=we,Ie.identifier=Uo(this.sliceSerialize(ie)).toLowerCase()}function k(){const ie=this.resume(),we=this.stack[this.stack.length-1];we.title=ie}function N(){const ie=this.resume(),we=this.stack[this.stack.length-1];we.url=ie}function O(ie){const we=this.stack[this.stack.length-1];if(!we.depth){const Ie=this.sliceSerialize(ie).length;we.depth=Ie}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function D(ie){const we=this.stack[this.stack.length-1];we.depth=this.sliceSerialize(ie).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function J(ie){const we=this.stack[this.stack.length-1].children;let Ie=we[we.length-1];(!Ie||Ie.type!=="text")&&(Ie=Re(),Ie.position={start:Rs(ie.start),end:void 0},we.push(Ie)),this.stack.push(Ie)}function P(ie){const we=this.stack.pop();we.value+=this.sliceSerialize(ie),we.position.end=Rs(ie.end)}function X(ie){const we=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ie=we.children[we.children.length-1];Ie.position.end=Rs(ie.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(we.type)&&(J.call(this,ie),P.call(this,ie))}function K(){this.data.atHardBreak=!0}function Q(){const ie=this.resume(),we=this.stack[this.stack.length-1];we.value=ie}function ne(){const ie=this.resume(),we=this.stack[this.stack.length-1];we.value=ie}function ae(){const ie=this.resume(),we=this.stack[this.stack.length-1];we.value=ie}function H(){const ie=this.stack[this.stack.length-1];if(this.data.inReference){const we=this.data.referenceType||"shortcut";ie.type+="Reference",ie.referenceType=we,delete ie.url,delete ie.title}else delete ie.identifier,delete ie.label;this.data.referenceType=void 0}function re(){const ie=this.stack[this.stack.length-1];if(this.data.inReference){const we=this.data.referenceType||"shortcut";ie.type+="Reference",ie.referenceType=we,delete ie.url,delete ie.title}else delete ie.identifier,delete ie.label;this.data.referenceType=void 0}function ee(ie){const we=this.sliceSerialize(ie),Ie=this.stack[this.stack.length-2];Ie.label=ife(we),Ie.identifier=Uo(we).toLowerCase()}function ge(){const ie=this.stack[this.stack.length-1],we=this.resume(),Ie=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ie.type==="link"){const rt=ie.children;Ie.children=rt}else Ie.alt=we}function B(){const ie=this.resume(),we=this.stack[this.stack.length-1];we.url=ie}function V(){const ie=this.resume(),we=this.stack[this.stack.length-1];we.title=ie}function G(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function de(ie){const we=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=we,Ie.identifier=Uo(this.sliceSerialize(ie)).toLowerCase(),this.data.referenceType="full"}function _e(ie){this.data.characterReferenceType=ie.type}function Ce(ie){const we=this.sliceSerialize(ie),Ie=this.data.characterReferenceType;let rt;Ie?(rt=kF(we,Ie==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):rt=nC(we);const yt=this.stack[this.stack.length-1];yt.value+=rt}function he(ie){const we=this.stack.pop();we.position.end=Rs(ie.end)}function Be(ie){P.call(this,ie);const we=this.stack[this.stack.length-1];we.url=this.sliceSerialize(ie)}function qe(ie){P.call(this,ie);const we=this.stack[this.stack.length-1];we.url="mailto:"+this.sliceSerialize(ie)}function nt(){return{type:"blockquote",children:[]}}function dt(){return{type:"code",lang:null,meta:null,value:""}}function lt(){return{type:"inlineCode",value:""}}function Zt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Qe(){return{type:"emphasis",children:[]}}function Ge(){return{type:"heading",depth:0,children:[]}}function en(){return{type:"break"}}function tr(){return{type:"html",value:""}}function sa(){return{type:"image",title:null,url:"",alt:null}}function Pn(){return{type:"link",title:null,url:"",children:[]}}function Y(ie){return{type:"list",ordered:ie.type==="listOrdered",start:null,spread:ie._spread,children:[]}}function oe(ie){return{type:"listItem",spread:ie._spread,checked:null,children:[]}}function be(){return{type:"paragraph",children:[]}}function Fe(){return{type:"strong",children:[]}}function Re(){return{type:"text",value:""}}function Oe(){return{type:"thematicBreak"}}}function Rs(e){return{line:e.line,column:e.column,offset:e.offset}}function zF(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?zF(e,r):ufe(e,r)}}function ufe(e,t){let n;for(n in t)if(jF.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function iL(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+up({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+up({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+up({start:t.start,end:t.end})+") is still open")}function dfe(e){const t=this;t.parser=n;function n(r){return lfe(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ffe(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function pfe(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 643`}]}function hfe(e,t){const n=t.value?t.value+` 644`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function mfe(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gfe(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yfe(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=Ed(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let i,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=o+1,l+=1,e.footnoteCounts.set(r,l);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,c);const d={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,d),e.applyData(t,d)}function bfe(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vfe(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function BF(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),o=a[0];o&&o.type==="text"?o.value="["+o.value:a.unshift({type:"text",value:"["});const i=a[a.length-1];return i&&i.type==="text"?i.value+=r:a.push({type:"text",value:r}),a}function _fe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return BF(e,t);const a={src:Ed(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)}function Efe(e,t){const n={src:Ed(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function xfe(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function wfe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return BF(e,t);const a={href:Ed(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Tfe(e,t){const n={href:Ed(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Sfe(e,t,n){const r=e.all(t),a=n?Cfe(n):UF(t),o={},i=[];if(typeof t.checked=="boolean"){const p=r[0];let h;p&&p.type==="element"&&p.tagName==="p"?h=p:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const p=r[l];(a||l!==0||p.type!=="element"||p.tagName!=="p")&&i.push({type:"text",value:` 645`}),p.type==="element"&&p.tagName==="p"&&!a?i.push(...p.children):i.push(p)}const c=r[r.length-1];c&&(a||c.type!=="element"||c.tagName!=="p")&&i.push({type:"text",value:` 646`});const d={type:"element",tagName:"li",properties:o,children:i};return e.patch(t,d),e.applyData(t,d)}function Cfe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=UF(n[r])}return t}function UF(e){return e.spread??e.children.length>1}function Afe(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const i=r[a];if(i.type==="element"&&i.tagName==="li"&&i.properties&&Array.isArray(i.properties.className)&&i.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function kfe(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Nfe(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Rfe(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ofe(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const i={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],i),a.push(i)}if(n.length>0){const i={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=mi(t.children[1]),c=Pb(t.children[t.children.length-1]);l&&c&&(i.position={start:l,end:c}),a.push(i)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)}function Dfe(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,i=o?o.length:t.children.length;let l=-1;const c=[];for(;++l<i;){const p=t.children[l],h={},g=o?o[l]:void 0;g&&(h.align=g);let y={type:"element",tagName:a,properties:h,children:[]};p&&(y.children=e.all(p),e.patch(p,y),y=e.applyData(p,y)),c.push(y)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,d),e.applyData(t,d)}function Ife(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const sL=9,lL=32;function Lfe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push(cL(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(cL(t.slice(a),a>0,!1)),o.join("")}function cL(e,t,n){let r=0,a=e.length;if(t){let o=e.codePointAt(r);for(;o===sL||o===lL;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(a-1);for(;o===sL||o===lL;)a--,o=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function $fe(e,t){const n={type:"text",value:Lfe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Pfe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Mfe={blockquote:ffe,break:pfe,code:hfe,delete:mfe,emphasis:gfe,footnoteReference:yfe,heading:bfe,html:vfe,imageReference:_fe,image:Efe,inlineCode:xfe,linkReference:wfe,link:Tfe,listItem:Sfe,list:Afe,paragraph:kfe,root:Nfe,strong:Rfe,table:Ofe,tableCell:Ife,tableRow:Dfe,text:$fe,thematicBreak:Pfe,toml:bg,yaml:bg,definition:bg,footnoteDefinition:bg};function bg(){}const FF=-1,dv=0,hp=1,Fy=2,aC=3,oC=4,iC=5,sC=6,HF=7,GF=8,uL=typeof self=="object"?self:globalThis,jfe=(e,t)=>
vendor: 4,334 bytes, line 646
646{const n=(a,o)=>(e.set(o,a),a),r=a=>{if(e.has(a))return e.get(a);const[o,i]=t[a];switch(o){case dv:case FF:return n(i,a);case hp:{const l=n([],a);for(const c of i)l.push(r(c));return l}case Fy:{const l=n({},a);for(const[c,d]of i)l[r(c)]=r(d);return l}case aC:return n(new Date(i),a);case oC:{const{source:l,flags:c}=i;return n(new RegExp(l,c),a)}case iC:{const l=n(new Map,a);for(const[c,d]of i)l.set(r(c),r(d));return l}case sC:{const l=n(new Set,a);for(const c of i)l.add(r(c));return l}case HF:{const{name:l,message:c}=i;return n(new uL[l](c),a)}case GF:return n(BigInt(i),a);case"BigInt":return n(Object(BigInt(i)),a);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:l}=new Uint8Array(i);return n(new DataView(l),i)}}return n(new uL[o](i),a)};return r},dL=e=>jfe(new Map,e)(0),fu="",{toString:zfe}={},{keys:Bfe}=Object,jf=e=>{const t=typeof e;if(t!=="object"||!e)return[dv,t];const n=zfe.call(e).slice(8,-1);switch(n){case"Array":return[hp,fu];case"Object":return[Fy,fu];case"Date":return[aC,fu];case"RegExp":return[oC,fu];case"Map":return[iC,fu];case"Set":return[sC,fu];case"DataView":return[hp,n]}return n.includes("Array")?[hp,n]:n.includes("Error")?[HF,n]:[Fy,n]},vg=([e,t])=>e===dv&&(t==="function"||t==="symbol"),Ufe=(e,t,n,r)=>{const a=(i,l)=>{const c=r.push(i)-1;return n.set(l,c),c},o=i=>{if(n.has(i))return n.get(i);let[l,c]=jf(i);switch(l){case dv:{let p=i;switch(c){case"bigint":l=GF,p=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);p=null;break;case"undefined":return a([FF],i)}return a([l,p],i)}case hp:{if(c){let g=i;return c==="DataView"?g=new Uint8Array(i.buffer):c==="ArrayBuffer"&&(g=new Uint8Array(i)),a([c,[...g]],i)}const p=[],h=a([l,p],i);for(const g of i)p.push(o(g));return h}case Fy:{if(c)switch(c){case"BigInt":return a([c,i.toString()],i);case"Boolean":case"Number":case"String":return a([c,i.valueOf()],i)}if(t&&"toJSON"in i)return o(i.toJSON());const p=[],h=a([l,p],i);for(const g of Bfe(i))(e||!vg(jf(i[g])))&&p.push([o(g),o(i[g])]);return h}case aC:return a([l,i.toISOString()],i);case oC:{const{source:p,flags:h}=i;return a([l,{source:p,flags:h}],i)}case iC:{const p=[],h=a([l,p],i);for(const[g,y]of i)(e||!(vg(jf(g))||vg(jf(y))))&&p.push([o(g),o(y)]);return h}case sC:{const p=[],h=a([l,p],i);for(const g of i)(e||!vg(jf(g)))&&p.push(o(g));return h}}const{message:d}=i;return a([l,{name:c,message:d}],i)};return o},fL=(e,{json:t,lossy:n}={})=>{const r=[];return Ufe(!(t||n),!!t,new Map,r)(e),r},Hy=typeof structuredClone=="function"?((e,t)=>t&&("json"in t||"lossy"in t)?dL(fL(e,t)):structuredClone(e)):(e,t)=>dL(fL(e,t));function Ffe(e,t){const n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Hfe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Gfe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ffe,r=e.options.footnoteBackLabel||Hfe,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[c]);if(!d)continue;const p=e.all(d),h=String(d.identifier).toUpperCase(),g=Ed(h.toLowerCase());let y=0;const v=[],x=e.footnoteCounts.get(h);for(;x!==void 0&&++y<=x;){v.length>0&&v.push({type:"text",value:" "});let A=typeof n=="string"?n:n(c,y);typeof A=="string"&&(A={type:"text",value:A}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+g+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,y),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const C=p[p.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const A=C.children[C.children.length-1];A&&A.type==="text"?A.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...v)}else p.push(...v);const S={type:"element",tagName:"li",properties:{id:t+"fn-"+g},children:e.wrap(p,!0)};e.patch(d,S),l.push(S)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Hy(i),id:"footnote-label"},children:[{type:"text",value:a}]}
vendor: 6,988 bytes, lines 646-652
646,{type:"text",value:` 647`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` 648`}]}}const cT={}.hasOwnProperty,Vfe={};function qfe(e,t){const n=t||Vfe,r=new Map,a=new Map,o=new Map,i={...Mfe,...n.handlers},l={all:d,applyData:Wfe,definitionById:r,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:i,one:c,options:n,patch:Yfe,wrap:Kfe};return fd(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const h=p.type==="definition"?r:a,g=String(p.identifier).toUpperCase();h.has(g)||h.set(g,p)}}),l;function c(p,h){const g=p.type,y=l.handlers[g];if(cT.call(l.handlers,g)&&y)return y(l,p,h);if(l.options.passThrough&&l.options.passThrough.includes(g)){if("children"in p){const{children:v,...x}=p,C=Hy(x);return C.children=l.all(p),C}return Hy(p)}return(l.options.unknownHandler||Zfe)(l,p,h)}function d(p){const h=[];if("children"in p){const g=p.children;let y=-1;for(;++y<g.length;){const v=l.one(g[y],p);if(v){if(y&&g[y-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=pL(v.value)),!Array.isArray(v)&&v.type==="element")){const x=v.children[0];x&&x.type==="text"&&(x.value=pL(x.value))}Array.isArray(v)?h.push(...v):h.push(v)}}}return h}}function Yfe(e,t){e.position&&(t.position=CQ(e))}function Wfe(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const i="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:i}}n.type==="element"&&o&&Object.assign(n.properties,Hy(o)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function Zfe(e,t){const n=t.data||{},r="value"in t&&!(cT.call(n,"hProperties")||cT.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Kfe(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` 649`});++r<e.length;)r&&n.push({type:"text",value:` 650`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 651`}),n}function pL(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function hL(e,t){const n=qfe(e,t),r=n.one(e,void 0),a=Gfe(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&o.children.push({type:"text",value:` 652`},a),o}function Qfe(e,t){return e&&"run"in e?async function(n,r){const a=hL(n,{file:r,...t});await e.run(a,r)}:function(n,r){return hL(n,{file:r,...e||t})}}function mL(e){if(e)throw e}var nx,gL;function Xfe(){if(gL)return nx;gL=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},o=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var d=e.call(c,"constructor"),p=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!d&&!p)return!1;var h;for(h in c);return typeof h>"u"||e.call(c,h)},i=function(c,d){n&&d.name==="__proto__"?n(c,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):c[d.name]=d.newValue},l=function(c,d){if(d==="__proto__")if(e.call(c,d)){if(r)return r(c,d).value}else return;return c[d]};return nx=function c(){var d,p,h,g,y,v,x=arguments[0],C=1,S=arguments.length,A=!1;for(typeof x=="boolean"&&(A=x,x=arguments[1]||{},C=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});C<S;++C)if(d=arguments[C],d!=null)for(p in d)h=l(x,p),g=l(d,p),x!==g&&(A&&g&&(o(g)||(y=a(g)))?(y?(y=!1,v=h&&a(h)?h:[]):v=h&&o(h)?h:{},i(x,{name:p,newValue:c(A,v,g)})):typeof g<"u"&&i(x,{name:p,newValue:g}));return x},nx}var Jfe=Xfe();const rx=sh(Jfe);function uT(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function epe(){const e=[],t={run:n,use:r};return t;function n(...a){let o=-1;const i=a.pop();if(typeof i!="function")throw new TypeError("Expected function as last argument, not "+i);l(null,...a);function l(c,...d){const p=e[++o];let h=-1;if(c){i(c);return}for(;++h<a.length;)(d[h]===null||d[h]===void 0)&&(d[h]=a[h]);a=d,p?tpe(p,l)(...d):i(null,...d)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function tpe(e,t){let n;return r;function r(...i){const l=e.length>i.length;let c;l&&i.push(a);try{c=e.apply(this,i)}catch(d){const p=d;if(l&&n)throw p;return a(p)}l||(c&&c.then&&typeof c.then=="function"?c.then(o,a):c instanceof Error?a(c):o(c))}function a(i,...l){n||(n=!0,t(i,...l))}function o(i){a(null,i)}}const oi={basename:npe,dirname:rpe,extname:ape,join:ope,sep:"/"};function npe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Th(e);let n=0,r=-1,a=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else r<0&&(o=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let i=-1,l=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else i<0&&(o=!0,i=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(r=a):(l=-1,r=i));return n===r?r=i:r<0&&(r=e.length),e.slice(n,r)}function rpe(e){if(Th(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function ape(e){Th(e);let t=e.length,n=-1,r=0,a=-1,o=0,i;for(;t--;){const l=e.codePointAt(t);if(l===47){if(i){r=t+1;break}continue}n<0&&(i=!0,n=t+1),l===46?a<0?a=t:o!==1&&(o=1):a>-1&&(o=-1)}return a<0||n<0||o===0||o===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function ope(...e){let t=-1,n;for(;++t<e.length;)Th(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":ipe(n)}function ipe(e){Th(e);const t=e.codePointAt(0)===47;let n=spe(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function spe(e,t){let n="",r=0,a=-1,o=0,i=-1,l,c;for(;++i<=e.length;){if(i<e.length)l=e.codePointAt(i);else{if(l===47)break;l=47}if(l===47){if(!(a===i-1||o===1))if(a!==i-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),a=i,o=0;continue}}else if(n.length>0){n="",r=0,a=i,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,i):n=e.slice(a+1,i),r=i-a-1;a=i,o=0}else l===46&&o>-1?o++:o=-1}return n}function Th(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const lpe={cwd:cpe};function cpe(){return"/"}function dT(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}
vendor: 5,468 bytes, line 652
652function upe(e){if(typeof e=="string")e=new URL(e);else if(!dT(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return dpe(e)}function dpe(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const ax=["history","path","basename","stem","extname","dirname"];let VF=class{constructor(t){let n;t?dT(t)?n={path:t}:typeof t=="string"||fpe(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":lpe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ax.length;){const o=ax[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let a;for(a in n)ax.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?oi.basename(this.path):void 0}set basename(t){ix(t,"basename"),ox(t,"basename"),this.path=oi.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?oi.dirname(this.path):void 0}set dirname(t){yL(this.basename,"dirname"),this.path=oi.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?oi.extname(this.path):void 0}set extname(t){if(ox(t,"extname"),yL(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=oi.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){dT(t)&&(t=upe(t)),ix(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?oi.basename(this.path,this.extname):void 0}set stem(t){ix(t,"stem"),ox(t,"stem"),this.path=oi.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new aa(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function ox(e,t){if(e&&e.includes(oi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+oi.sep+"`")}function ix(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function yL(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function fpe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ppe=(function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),hpe={}.hasOwnProperty;let mpe=class qF extends ppe{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=epe()}copy(){const t=new qF;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(rx(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(cx("data",this.frozen),this.namespace[t]=n,this):hpe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(cx("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=_g(t),r=this.parser||this.Parser;return sx("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),sx("process",this.parser||this.Parser),lx("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(o,i){const l=_g(t),c=r.parse(l);r.run(c,l,function(p,h,g){if(p||!h||!g)return d(p);const y=h,v=r.stringify(y,g);bpe(v)?g.value=v:g.result=v,d(p,g)});function d(p,h){p||!h?i(p):o?o(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),sx("processSync",this.parser||this.Parser),lx("processSync",this.compiler||this.Compiler),this.process(t,a),vL("processSync","process",n),r;function a(o,i){n=!0,mL(o),r=i}}run(t,n,r){bL(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(i,l){const c=_g(n);a.run(t,c,d);function d(p,h,g){const y=h||t;p?l(p):i?i(y):r(void 0,y,g)}}}runSync(t,n){let r=!1,a;return this.run(t,n,o),vL("runSync","run",r),a;function o(i,l){mL(i),a=l,r=!0}}stringify(t,n){this.freeze();const r=_g(n),a=this.compiler||this.Compiler;return lx("stringify",a),bL(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(cx("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):i(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;
vendor: 5,301 bytes, line 652
652function o(d){if(typeof d=="function")c(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[p,...h]=d;c(p,h)}else i(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function i(d){if(!("plugins"in d)&&!("settings"in d))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(d.plugins),d.settings&&(a.settings=rx(!0,a.settings,d.settings))}function l(d){let p=-1;if(d!=null)if(Array.isArray(d))for(;++p<d.length;){const h=d[p];o(h)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function c(d,p){let h=-1,g=-1;for(;++h<r.length;)if(r[h][0]===d){g=h;break}if(g===-1)r.push([d,...p]);else if(p.length>0){let[y,...v]=p;const x=r[g][1];uT(x)&&uT(y)&&(y=rx(!0,x,y)),r[g]=[d,y,...v]}}}};const gpe=new mpe().freeze();function sx(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function lx(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function cx(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function bL(e){if(!uT(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function vL(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function _g(e){return ype(e)?e:new VF(e)}function ype(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function bpe(e){return typeof e=="string"||vpe(e)}function vpe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _pe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",_L=[],EL={allowDangerousHtml:!0},Epe=/^(https?|ircs?|mailto|xmpp)$/i,xpe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function wpe(e){const t=Tpe(e),n=Spe(e);return Cpe(t.runSync(t.parse(n),n),e)}function Tpe(e){const t=e.rehypePlugins||_L,n=e.remarkPlugins||_L,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...EL}:EL;return gpe().use(dfe).use(n).use(Qfe,r).use(t)}function Spe(e){const t=e.children||"",n=new VF;return typeof t=="string"&&(n.value=t),n}function Cpe(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,o=t.disallowedElements,i=t.skipHtml,l=t.unwrapDisallowed,c=t.urlTransform||Ape;for(const p of xpe)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+_pe+p.id,void 0);return fd(e,d),YS(e,{Fragment:E.Fragment,components:a,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function d(p,h,g){if(p.type==="raw"&&g&&typeof h=="number")return i?g.children.splice(h,1):g.children[h]={type:"text",value:p.value},h;if(p.type==="element"){let y;for(y in J0)if(Object.hasOwn(J0,y)&&Object.hasOwn(p.properties,y)){const v=p.properties[y],x=J0[y];(x===null||x.includes(p.tagName))&&(p.properties[y]=c(String(v||""),y,p))}}if(p.type==="element"){let y=n?!n.includes(p.tagName):o?o.includes(p.tagName):!1;if(!y&&r&&typeof h=="number"&&(y=!r(p,h,g)),y&&g&&typeof h=="number")return l&&p.children?g.children.splice(h,1,...p.children):g.children.splice(h,1),h}}}function Ape(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||Epe.test(e.slice(0,t))?e:""}const YF=-1,fv=0,Gy=1,Vy=2,lC=3,cC=4,uC=5,dC=6,WF=7,ZF=8,xL=typeof self=="object"?self:globalThis,kpe=(e,t)=>{const n=(a,o)=>(e.set(o,a),a),r=a=>{if(e.has(a))return e.get(a);const[o,i]=t[a];switch(o){case fv:case YF:return n(i,a);case Gy:{const l=n([],a);for(const c of i)l.push(r(c));return l}case Vy:{const l=n({},a);for(const[c,d]of i)l[r(c)]=r(d);return l}case lC:return n(new Date(i),a);case cC:{const{source:l,flags:c}=i;return n(new RegExp(l,c),a)}case uC:{const l=n(new Map,a);for(const[c,d]of i)l.set(r(c),r(d));return l}case dC:{const l=n(new Set,a);for(const c of i)l.add(r(c));return l}case WF:{const{name:l,message:c}=i;return n(new xL[l](c),a)}case ZF:return n(BigInt(i),a);case"BigInt":return n(Object(BigInt(i)),a)}return n(new xL[o](i),a)};return r},wL=e=>kpe(new Map,e)(0),pu="",{toString:Npe}={},{keys:Rpe}
vendor: 4,790 bytes, line 652
652=Object,zf=e=>{const t=typeof e;if(t!=="object"||!e)return[fv,t];const n=Npe.call(e).slice(8,-1);switch(n){case"Array":return[Gy,pu];case"Object":return[Vy,pu];case"Date":return[lC,pu];case"RegExp":return[cC,pu];case"Map":return[uC,pu];case"Set":return[dC,pu]}return n.includes("Array")?[Gy,n]:n.includes("Error")?[WF,n]:[Vy,n]},Eg=([e,t])=>e===fv&&(t==="function"||t==="symbol"),Ope=(e,t,n,r)=>{const a=(i,l)=>{const c=r.push(i)-1;return n.set(l,c),c},o=i=>{if(n.has(i))return n.get(i);let[l,c]=zf(i);switch(l){case fv:{let p=i;switch(c){case"bigint":l=ZF,p=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);p=null;break;case"undefined":return a([YF],i)}return a([l,p],i)}case Gy:{if(c)return a([c,[...i]],i);const p=[],h=a([l,p],i);for(const g of i)p.push(o(g));return h}case Vy:{if(c)switch(c){case"BigInt":return a([c,i.toString()],i);case"Boolean":case"Number":case"String":return a([c,i.valueOf()],i)}if(t&&"toJSON"in i)return o(i.toJSON());const p=[],h=a([l,p],i);for(const g of Rpe(i))(e||!Eg(zf(i[g])))&&p.push([o(g),o(i[g])]);return h}case lC:return a([l,i.toISOString()],i);case cC:{const{source:p,flags:h}=i;return a([l,{source:p,flags:h}],i)}case uC:{const p=[],h=a([l,p],i);for(const[g,y]of i)(e||!(Eg(zf(g))||Eg(zf(y))))&&p.push([o(g),o(y)]);return h}case dC:{const p=[],h=a([l,p],i);for(const g of i)(e||!Eg(zf(g)))&&p.push(o(g));return h}}const{message:d}=i;return a([l,{name:c,message:d}],i)};return o},TL=(e,{json:t,lossy:n}={})=>{const r=[];return Ope(!(t||n),!!t,new Map,r)(e),r},SL=typeof structuredClone=="function"?((e,t)=>t&&("json"in t||"lossy"in t)?wL(TL(e,t)):structuredClone(e)):(e,t)=>wL(TL(e,t));let Sh=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};Sh.prototype.property={};Sh.prototype.normal={};Sh.prototype.space=null;function KF(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new Sh(n,r,t)}function Pp(e){return e.toLowerCase()}let Ao=class{constructor(t,n){this.property=t,this.attribute=n}};Ao.prototype.space=null;Ao.prototype.boolean=!1;Ao.prototype.booleanish=!1;Ao.prototype.overloadedBoolean=!1;Ao.prototype.number=!1;Ao.prototype.commaSeparated=!1;Ao.prototype.spaceSeparated=!1;Ao.prototype.commaOrSpaceSeparated=!1;Ao.prototype.mustUseProperty=!1;Ao.prototype.defined=!1;let Dpe=0;const Tt=mc(),cr=mc(),QF=mc(),je=mc(),_n=mc(),Hu=mc(),Ha=mc();function mc(){return 2**++Dpe}const fT=Object.freeze(Object.defineProperty({__proto__:null,boolean:Tt,booleanish:cr,commaOrSpaceSeparated:Ha,commaSeparated:Hu,number:je,overloadedBoolean:QF,spaceSeparated:_n},Symbol.toStringTag,{value:"Module"})),ux=Object.keys(fT);let fC=class extends Ao{constructor(t,n,r,a){let o=-1;if(super(t,n),CL(this,"space",a),typeof r=="number")for(;++o<ux.length;){const i=ux[o];CL(this,ux[o],(r&fT[i])===fT[i])}}};fC.prototype.defined=!0;function CL(e,t,n){n&&(e[t]=n)}const Ipe={}.hasOwnProperty;function xd(e){const t={},n={};let r;for(r in e.properties)if(Ipe.call(e.properties,r)){const a=e.properties[r],o=new fC(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Pp(r)]=r,n[Pp(o.attribute)]=r}return new Sh(t,n,e.space)}const XF=xd({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),JF=xd({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function e4(e,t){return t in e?e[t]:t}function t4(e,t){return e4(e,t.toLowerCase())}const n4=xd({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:t4,properties:{xmlns:null,xmlnsXLink:null}}),r4=xd({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:cr,ariaAutoComplete:null,ariaBusy:cr,ariaChecked:cr,ariaColCount:je,ariaColIndex:je,ariaColSpan:je,ariaControls:_n,ariaCurrent:null,ariaDescribedBy:_n,ariaDetails:null,ariaDisabled:cr,ariaDropEffect:_n,ariaErrorMessage:null,ariaExpanded:cr,ariaFlowTo:_n,ariaGrabbed:cr,ariaHasPopup:null,ariaHidden:cr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_n,ariaLevel:je,ariaLive:null,ariaModal:cr,ariaMultiLine:cr,ariaMultiSelectable:cr,ariaOrientation:null,ariaOwns:_n,ariaPlaceholder:null,ariaPosInSet:je,ariaPressed:cr,ariaReadOnly:cr,ariaRelevant:null,ariaRequired:cr,ariaRoleDescription:_n,ariaRowCount:je,ariaRowIndex:je,ariaRowSpan:je,ariaSelected:cr,ariaSetSize:je,ariaSort:null,ariaValueMax:je,ariaValueMin:je,ariaValueNow:je,ariaValueText:null,role:null}}),Lpe=xd({space:"html",attributes:{acceptcharset:"accept-charset",classname:"
652class",htmlfor:"for",httpequiv:"http-equiv"},transform:t4,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Hu,acceptCharset:_n,accessKey:_n,action:null,allow:null,allowFullScreen:Tt,allowPaymentRequest:Tt,allowUserMedia:Tt,alt:null,as:null,async:Tt,autoCapitalize:null,autoComplete:_n,autoFocus:Tt,autoPlay:Tt,blocking:_n,capture:null,charSet:null,checked:Tt,cite:null,className:_n,cols:je,colSpan:null,content:null,contentEditable:cr,controls:Tt,controlsList:_n,coords:je|Hu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Tt,defer:Tt,dir:null,dirName:null,disabled:Tt,download:QF,draggable:cr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Tt,formTarget:null,headers:_n,height:je,hidden:Tt,high:je,href:null,hrefLang:null,htmlFor:_n,httpEquiv:_n,id:null,imageSizes:null,imageSrcSet:null,inert:Tt,inputMode:null,integrity:null,is:null,isMap:Tt,itemId:null,itemProp:_n,itemRef:_n,itemScope:Tt,itemType:_n,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Tt,low:je,manifest:null,max:null,maxLength:je,media:null,method:null,min:null,minLength:je,multiple:Tt,muted:Tt,name:null,nonce:null,noModule:Tt,noValidate:Tt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Tt,optimum:je,pattern:null,ping:_n,placeholder:null,playsInline:Tt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Tt,referrerPolicy:null,rel:_n,required:Tt,reversed:Tt,rows:je,rowSpan:je,sandbox:_n,scope:null,scoped:Tt,seamless:Tt,selected:Tt,shadowRootClonable:Tt,shadowRootDelegatesFocus:Tt,shadowRootMode:null,shape:null,size:je,sizes:null,slot:null,span:je,spellCheck:cr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:je,step:null,style:null,tabIndex:je,target:null,title:null,translate:null,type:null,typeMustMatch:Tt,useMap:null,value:cr,width:je,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_n,axis:null,background:null,bgColor:null,border:je,borderColor:null,bottomMargin:je,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Tt,declare:Tt,event:null,face:null,frame:null,frameBorder:null,hSpace:je,leftMargin:je,link:null,longDesc:null,lowSrc:null,marginHeight:je,marginWidth:je,noResize:Tt,noHref:Tt,noShade:Tt,noWrap:Tt,object:null,profile:null,prompt:null,rev:null,rightMargin:je,rules:null,scheme:null,scrolling:cr,standby:null,summary:null,text:null,topMargin:je,valueType:null,version:null,vAlign:null,vLink:null,vSpace:je,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Tt,disableRemotePlayback:Tt,prefix:null,property:null,results:je,security:null,unselectable:null}}),$pe=xd({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
652dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:e4,properties:{about:Ha,accentHeight:je,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:je,amplitude:je,arabicForm:null,ascent:je,attributeName:null,attributeType:null,azimuth:je,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:je,by:null,calcMode:null,capHeight:je,className:_n,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
652dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:je,diffuseConstant:je,direction:null,display:null,dur:null,divisor:je,dominantBaseline:null,download:Tt,dx:null,dy:null,edgeMode:null,editable:null,elevation:je,enableBackground:null,end:null,event:null,exponent:je,externalResourcesRequired:null,fill:null,fillOpacity:je,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Hu,g2:Hu,glyphName:Hu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:je,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:je,horizOriginX:je,horizOriginY:je,id:null,ideographic:je,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:je,k:je,k1:je,k2:je,k3:je,k4:je,kernelMatrix:Ha,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:je,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:je,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:je,overlineThickness:je,paintOrder:null,panose1:null,path:null,pathLength:je,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_n,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:je,pointsAtY:je,pointsAtZ:je,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ha,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ha,rev:Ha,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ha,requiredFeatures:Ha,requiredFonts:Ha,requiredFormats:Ha,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:je,specularExponent:je,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:je,strikethroughThickness:je,string:null,stroke:null,strokeDashArray:Ha,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:je,strokeOpacity:je,strokeWidth:null,style:null,surfaceScale:je,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ha,tabIndex:je,tableValues:null,target:null,targetX:je,targetY:je,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ha,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:je,underlineThickness:je,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:je,values:null,vAlphabetic:je,vMathematical:je,vectorEffect:null,vHanging:je,vIdeographic:je,version:null,vertAdvY:je,vertOriginX:je,vertOriginY:je,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:je,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Ppe=/^data[-\w.:]+$/i,AL=/-[a-z]/g,Mpe=/[A-Z]/g;function pC(e,t){const n=Pp(t);let r=t,a=Ao;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ppe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(AL,zpe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!AL.test(o)){let i=o.replace(Mpe,jpe);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}a=fC}return new a(r,t)}function jpe(e){return"-"+e.toLowerCase()}function zpe(e){return e.charAt(1).toUpperCase()}const pv=KF([JF,XF,n4,r4,Lpe],"html"),Ch=KF([JF,XF,n4,r4,$pe],"svg"),kL=/[#.]/g;function Bpe(e,t){const n=e||"",r={};let a=0,o,i;for(;a<n.length;){kL.lastIndex=a;const l=kL.exec(n),c=n.slice(a,l?l.index:n.length);c&&(o?o==="#"?r.id=c:Array.isArray(r.className)?r.className.push(c):r.className=[c]:i=c,a+=c.length),l&&(o=l[0],a++)}return{type:"element",tagName:i||t||"div",properties:r,children:[]}}const pT={}.hasOwnProperty;function a4(e,t,n){const r=n&&Gpe(n);function a(o,i,...l){let c=-1,d;if(o==null){d={type:"root",children:[]};const p=i;l.unshift(p)}else if(d=Bpe(o,t),d.tagName=d.tagName.toLowerCase(),r&&pT.call(r,d.tagName)&&(d.tagName=r[d.tagName]),Upe(i))l.unshift(i);else{let p;for(p in i)pT.call(i,p)&&Fpe(e,d.properties,p,i[p])}for(;++c<l.length;)hT(d.children,l[c]);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return a}function Upe(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;
vendor: 16,154 bytes, lines 652-653
652if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const o=a;for(const i of o)if(typeof i!="number"&&typeof i!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Fpe(e,t,n,r){const a=pC(e,n);let o=-1,i;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;i=r}else typeof r=="boolean"?i=r:typeof r=="string"?a.spaceSeparated?i=fD(r):a.commaSeparated?i=sD(r):a.commaOrSpaceSeparated?i=fD(sD(r).join(" ")):i=NL(a,a.property,r):Array.isArray(r)?i=r.concat():i=a.property==="style"?Hpe(r):String(r);if(Array.isArray(i)){const l=[];for(;++o<i.length;){const c=NL(a,a.property,i[o]);l[o]=c}i=l}if(a.property==="className"&&Array.isArray(t.className)){const l=i;i=t.className.concat(l)}t[a.property]=i}}function hT(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)hT(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?hT(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function NL(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Pp(n)===Pp(t)))return!0}return n}function Hpe(e){const t=[];let n;for(n in e)pT.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function Gpe(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const Vpe=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],qpe=a4(pv,"div"),Ype=a4(Ch,"g",Vpe);function Wpe(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(o){if(typeof o=="number"&&o>-1&&o<=t.length){let i=0;for(;;){let l=n[i];if(l===void 0){const c=RL(t,n[i-1]);l=c===-1?t.length+1:c+1,n[i]=l}if(l>o)return{line:i+1,column:o-(i>0?n[i-1]:0)+1,offset:o};i++}}}function a(o){if(o&&typeof o.line=="number"&&typeof o.column=="number"&&!Number.isNaN(o.line)&&!Number.isNaN(o.column)){for(;n.length<o.line;){const l=n[n.length-1],c=RL(t,l),d=c===-1?t.length+1:c+1;if(l===d)break;n.push(d)}const i=(o.line>1?n[o.line-2]:0)+o.column-1;if(i<n[o.line-1])return i}}}function RL(e,t){const n=e.indexOf("\r",t),r=e.indexOf(` 653`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Hl={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},o4={}.hasOwnProperty,Zpe=Object.prototype;function Kpe(e,t){const n=t||{};return hC({file:n.file||void 0,location:!1,schema:n.space==="svg"?Ch:pv,verbose:n.verbose||!1},e)}function hC(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},ny(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:i4(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const o=String(e.file),i=Wpe(o),l=i.toPoint(0),c=i.toPoint(o.length);n.position={start:l,end:c}}return n}case"#documentType":{const r=t;return n={type:"doctype"},ny(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},ny(e,r,n),n}default:return n=Qpe(e,t),n}}function i4(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=hC(e,t[n]);r.push(a)}return r}function Qpe(e,t){const n=e.schema;e.schema=t.namespaceURI===Hl.svg?Ch:pv;let r=-1;const a={};for(;++r<t.attrs.length;){const i=t.attrs[r],l=(i.prefix?i.prefix+":":"")+i.name;o4.call(Zpe,l)||(a[l]=i.value)}const o=(e.schema.space==="svg"?Ype:qpe)(t.tagName,a,i4(e,t.childNodes));if(ny(e,t,o),o.tagName==="template"){const i=t,l=i.sourceCodeLocation,c=l&&l.startTag&&Nu(l.startTag),d=l&&l.endTag&&Nu(l.endTag),p=hC(e,i.content);c&&d&&e.file&&(p.position={start:c.end,end:d.start}),o.content=p}return e.schema=n,o}function ny(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Xpe(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Xpe(e,t,n){const r=Nu(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const o={};let i;if(n.attrs)for(i in n.attrs)o4.call(n.attrs,i)&&(o[pC(e.schema,i).property]=Nu(n.attrs[i]));n.startTag;const l=Nu(n.startTag),c=n.endTag?Nu(n.endTag):void 0,d={opening:l};c&&(d.closing=c),d.properties=o,t.data={position:d}}}return r}function Nu(e){const t=OL({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=OL({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function OL(e){return e.line&&e.column?e:void 0}const Jpe={},ehe={}.hasOwnProperty,s4=KS("type",{handlers:{root:nhe,element:she,text:ohe,comment:ihe,doctype:ahe}});function the(e,t){const n=(t||Jpe).space;return s4(e,n==="svg"?Ch:pv)}function nhe(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=mC(e.children,n,t),wd(e,n),n}function rhe(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=mC(e.children,n,t),wd(e,n),n}function ahe(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return wd(e,t),t}function ohe(e){const t={nodeName:"#text",value:e.value,parentNode:null};return wd(e,t),t}function ihe(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return wd(e,t),t}function she(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Ch);const a=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&ehe.call(e.properties,o)){const c=lhe(r,o,e.properties[o]);c&&a.push(c)}}const i=r.space,l={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Hl[i],childNodes:[],parentNode:null};return l.childNodes=mC(e.children,l,r),wd(e,l),e.tagName==="template"&&e.content&&(l.content=rhe(e.content,r)),l}function lhe(e,t,n){const r=pC(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?FS(n):VS(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const o=a.name.indexOf(":");o<0?a.prefix="":(a.name=a.name.slice(o+1),a.prefix=r.attribute.slice(0,o)),a.namespace=Hl[r.space]}return a}function mC(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const o=s4(e[r],n);o.parentNode=t,a.push(o)}return a}function wd(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const che=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Nn="�";var j;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(j||(j={}));const wa={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function l4(e){return e>=55296&&e<=57343}function uhe(e){return e>=56320&&e<=57343}function dhe(e,t){return(e-55296)*1024+9216+t}function c4(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function u4(e){return e>=64976&&e<=65007||che.has(e)}var Ee;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Ee||(Ee={}));const fhe=65536;class phe{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=fhe,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:o}=this,i=a+n,l=o+n;return{code:t,startLine:r,endLine:r,startCol:i,endCol:i,startOffset:l,endOffset:l}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(uhe(n))return this.pos++,this._addGap(),dhe(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,j.EOF;return this._err(Ee.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,j.EOF;const r=this.html.charCodeAt(n);return r===j.CARRIAGE_RETURN?j.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,j.EOF;let t=this.html.charCodeAt(this.pos);return t===j.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,j.LINE_FEED):t===j.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,l4(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===j.LINE_FEED||t===j.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){c4(t)?this._err(Ee.controlCharacterInInputStream):u4(t)&&this._err(Ee.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ot;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ot||(Ot={}));function d4(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const f4=new Uint16Array('
vendor: 16,129 bytes, line 653
653áµ<ÃıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms�¦³¹ÃÃligè»ÃäPè»&ä¦cuteè»Ãäreve;äÄiyx}rcè»Ãä;är;ìðraveè»Ãäpha;äacr;äd;æ©Ägp¡on;äf;ìð¸plyFunction;æ¡ingè»Ã
ä
Äcs¾Ãr;ìðign;æildeè»Ãämlè»ÃäÐaceforsuåûþÄÄĢħĪÄcrêòkslash;æÅ¶Ã¶Ã¸;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ìð
pf;ìð¹eve;äcòÄmpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»Â©ä©ÆcpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»Ãärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·Ã²Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ìðpÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ìðÄaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ìð»Æ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»ÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æeÃ¥ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ìðrok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»Ãäcuteè»ÃäÆaiyÓÓÓron;ärcè»Ãä;äot;är;ìðraveè»Ãäement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ìð¼silon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»ÃäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ìðlledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ìð½All;æriertrf;æ±cÃ²×ØJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ìð;æpf;ìð¾eaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ìð¢;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
òکrok;ä¦mpÅÛÛownHumðįqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»ÃäÄiyÜÜrcè»Ãä;äot;ä°r;æraveè»ÃäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lieóÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ìða;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»ÃäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ìðpf;ìðÇ£ß\0ßr;ìð¥rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ìðpf;ìðcr;ìð¦ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ightáÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ìðÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ightáοightáÏf;ìðerÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©Ã²à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ìðnusPlus;æpf;ìðcò੶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«Ã«à«eryThiîà«tedÄGL૸à¬reaterGreateòٳessLesóà©Line;är;ìðÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ìð©ildeè»Ãä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»ÃäÄiyà·à·rcè»Ãä;äblac;ä
r;ìðraveè»ÃäÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ìðenCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ìðªashè»ÃäiŬื฼deè»Ãäes;樷mlè»ÃäerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ìði;ä¦;ä usMinus;ä±ÄipຢàºncareplanÃ¥Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ìð«;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ìðpf;æcr;ìð¬ØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»Â®ä®Æcnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r»ཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ìðortÈDLRUáªá´á¾á
ownArrow»ÐeftArrow»à¢ightArrow»à¿pArrow;ægma;ä£allCircle;æpf;ìðɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ìð®ar;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Tháà¾;æÆ;esááá£ærsetÄ;Eááæqual;æet»áÖHRSacfhiorsá¾ááááá±á¶ááááORNè»ÃäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ìðÄeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ìðipleDot;æÄctáár;ìð¯rok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»ÃärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»Ãä;ä£blac;ä
°r;ìðraveè»Ãäacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ìðÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥ownáϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ìð°ilde;ä
¨mlè»ÃäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ìðpf;ìðcr;ìð±dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;ìðpf;ìðcr;ìð²Èfiosáááár;ìð;äpf;ìðcr;ìð³ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»ÃäÄiyáárc;ä
¶;ä«r;ìðpf;ìðcr;ìð´ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidtèà«a;är;æ¨pf;æ¤cr;ìðµà¯¡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»Ã¡ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»Ã¢ä¢teè»Â´Ì;ä°ligè»Ã¦ä¦Ä;r²áº;ìðraveè»Ã ä ÄepááÄfpáásym;æµÃ¨áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e»ásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢Â»Â¹arr;æ¼Ägpá£á§on;ä
f;ìðÎ;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eááñáingè»Ã¥ä¥Æctyá¡á¦á¨r;ìð¶;äªmpÄ;eáá¯Ã±Êildeè»Ã£ä£mlè»Ã¤ä¤Äciááoninôɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e»árkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰séánoÃµÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ìðgÎcostuvwááá³ááááÆaiuáááÃ°Ý rc;æ¯pÂ»á±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨eÃ¥áÃ¥áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;ìðÄ;táá¡£om»átie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»Â¦ä¦Èceioá¥á¥á¥á¥ r;ìð·mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t»᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æÃ®ÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;ädilè»Ã§ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»Â¸Æptyv;榲tè¢;eá¨á¨®ä¢räƲr;ìð Æceiᨽá©á©y;äckÄ;má©á©æark»á©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáªÂ»à½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it»᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;qÃÃÉá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æÃ®á
eÄmx᫱᫶ent»᫩eóÉǧ᫾\0á¬Ä;dá»á¬ot;æ©nÃ´ÉÆfryá¬á¬á¬;ìðoäÉè©;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ìð¸ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯reãá³uãáµee;æedge;æenè»Â¤ä¤earrowÄlrᯮ᯳eft»á®ight»ᮽeäá¯Äciá°á°oninôǷnt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·ròÎar;楥Èglrsá±á±á±á±ger;æ eth;æ¸Ã²á³hÄ;vá±á±æÂ»à¤Å«á±¡á±§arow;æ¤aãÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»Â°ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ìð¡arÄlrᲳᲵ»à£Â»áÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè÷;oá³§á³°ntimes;ænø᳷cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ìðÊ;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedgåúnÆadhá®áµáµ§ownarrowóá²arpoonÄlrᵲᵶefôᲴighôᲶŢᵿá¶
karo÷à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ìð¹;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·ròЩaòྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´oôá²Äcsá¸á¸uteè»Ã©ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»Ãªäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ìð¢Æ;rsá¹á¹á¹æªaveè»Ã¨ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et»áºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ìðÆalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon»á»;äµÈcsuvỪỳá¼á¼£Äioữḱrc»Ḯɩỹ\0\0á»»ÃÕantÄglá¼á¼tr»á¹ess»ṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯oôÍÄahá½á½;ä·è»Ã°ä°Ämrá½á½lè»Ã«ä«o;æ¬Æcipὡὤὧl;ä¡sôծÄeoὬὴctatioîÕnentialåչৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotseñá¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ìð£lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ìðÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»Â½ä½;æ
è»Â¼ä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»Â¾ä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ìð»à¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlanô٥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ìð¤Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox»â¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ìðÄciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âproøâr;楸qÄlqØ¿âlesóâiÃÙ«Äenâ£ârtneqq;ìâ©ï¸Ã
âªÔAabcefkosyâââ±âµâºâââ¯â¨â½ròΠÈilmrâââârsðáf»â¤ilôکÄdrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it»âlip;æ¦con;æ¹r;ìð¥sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ìðbar;æÆcltâ¯â´â¸r;ìð½asèâ´rok;ä§Äbpââull;æhen»á±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»ÃäÆ;iyݱâ°âµrcè»Ã®ä®;ä¸Äcxâ¼â¿y;äµclè»Â¡ä¡ÄfrÎâ;ìð¦raveè»Ã¬ä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââinÃ¥ÞarÃ´Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§doôâÊ;celpÝââââ¡al;æºÄgrââeróá£Ã£âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ìða;ä¹uestè»Â¿ä¿Äciââr;ìð¾nÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»Ã¯ä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ìð§ath;ä·pf;ìðÇ£â¬\0â±r;ìð¿rcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ìð¨reen;ä¸cy;ä
cy;äpf;ìðcr;ìðà®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼ròà§Ã²Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴raîà¡bda;ä»gÆ;dlà¢ââ;æ¦Ã¥à¢;æª
uoè»Â«ä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤Ã«âp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼Ã¬à¢°Ã¢â©;
vendor: 4,294 bytes, line 653
653ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡aéâ¶arpoonÄduâ¯â´own»Ñp»०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoonóà¾quigarro÷â°hreetimes;æÆ;qsâà¦âºlanôবÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââpproøâot;æqÄgqââ
ôà¦gtòâôà¦iÃলÆilrâ࣡âsht;楼;ìð©Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââròâorneòá´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che»âÈEaesâ»â½ââ;æ¨pÄ;pââæªrox»âÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½rëà£gÆlmrâ¿ââeftÄar০âightá৲apsto;æ¼ightá৽parrowÄlrâ¥â©efôâight;æ¬Æaflâ¶â¹â½r;æ¦
;ìðus;æ¨imes;樴šââst;æÃ¡áÆ;efââá ænge»âarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âròࢨorneòá¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ìðmÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹reÃ¥â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸Ã
â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»Â¯ä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se»â¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»owîÒefôà¤Ã°áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle»á¦r;ìðªo;æ§Æcdn⢯⢴â£roè»ÂµäµÈ;acdá¤â¢½â£â£sôá§ir;æ«°otè»Â·ÆµusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«Ã²âðàªÄdp⣩⣮els;æ§f;ìðÄct⣸⣽r;ìðpos»áÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la»Ëute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
roøà¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»Â ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸uiöà£Äeiâ©â©ar;椨Ãà®istÄ;sà® à®r;ìð«ÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lanô௢iÃ௪Ä;rà®¶âªÂ»à®·ÆAapâªâªâªrò⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹rò⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro÷â«ightarroÃ·âªÆ;qs఻⪺⫪lanôà±Ä;sà±â«´Â»à°¶iÃà±Ä;rవ⫾iÄ;eà°à°¥iäà¶Äptâ¬â¬f;ìðè¬;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlleìà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³uåಥÄ;cà²â¸Ä;eà²â½Ã±à²ÈAaitâ®â®â®â®§ròâ¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow»â®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯uÃ¥àµ
;ìðortÉâ¬
\0\0â¯aráâmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯Ã¥à³¸Ã¥à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°Ã±à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±Ã¬à¯ldeè»Ã±ä±Ã§à±iangleÄlrâ±â±eftÄ;eà°â±Ã±à°¦ightÄ;eà³â±¥Ã±à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»Ã³ä³Äiyâ´¼âµ
rÄ;cáªâµè»Ã´ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ìð¬Í¯âµ¹\0\0âµ¼\0â¶n;äaveè»Ã²ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨ròáªÄirâ¶â¶ r;榾oss;榻nÃ¥à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ìð Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨ròáªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f»ⷿè»Âªäªè»Âºäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§Ã²â¸ashè»Ã¸ä¸l;æiŬⸯ⸴deè»ÃµäµesÄ;aÇ⸺s;樶mlè»Ã¶ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;
vendor: 6,210 bytes, line 653
653astÐâ¹§â¹²àº
è¶;lâ¹â¹®ä¶leìÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ìðÆimo⺨⺰⺴Ä;vâºâº®ä;ämaô੶ne;æÆ;tv⺿â»â»ächfork»´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æÃ¶â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»Â±àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ìð¡ndè»Â£ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷uÃ¥à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾pproøâ½urlyeñà»Ã±à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨iÃà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½ºÃ°â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴ï໻rel;æ°Äciâ¿â¿
r;ìð
;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ìð®pf;ìð¢rime;æcr;ìðÆaeo⿸ããtÄei⿾ã
rnionóڰnt;æ¨stÄ;eããä¿Ã±á¼Ã´à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããròá³Ã²Ïail;æ¤aròᱥar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
iãá
®mptyv;榳gÈ;delà¿ããã;æ¦;榥åà¿uoè»Â»ä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤Ã«âðâ®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶alÃ³à¼Æabrã§ãªã®ròá¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
ì࿲âãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
ánÃ¥á»arôྩt;æÆilrã
©á£ã
®sht;楽;ìð¯Äaoã
·ãrÄduã
½ã
¿Â»Ñ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãaéãarpoonÄduã»ã¿owîã
¾p»áeftÄahããrrowó࿪arpoonóÕightarrows;æquigarro÷ãhreetimes;æg;äingdotseñἲÆahmãããrò࿪aòÕ;æoustÄ;aããæ±che»ãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾rëáÆaflãããr;æ¦;ìð£us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨aròã£Èachqã»ãá¼ã
quo;æºr;ìðÄbuã»ãoÄ;rÈÈÆhirããã reÃ¥ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
quïâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡uÃ¥á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨iÃá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrããëâ¨Ä;oਸ਼਴tè»Â§ä§i;ä»war;椩mÄinã©Ã°nuóñt;æ¶rÄ;oã¶âìð°Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãiäá¤araì⹯è»ÂäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲aròá½Èaeitã¸ãããÄlsã½ãlsetméãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ìð¤aÄdrãÐesÄ;uããæ it»ãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáãñáÆ;esá¨áãetÄ;eá¨ãÃ±á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±Â»á
¼aròá
Ècemtã¹ã¾ãã
r;ìðtmîñiìãaræá¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsiloîỠhé⺯s»â¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦pproøãºurlyeñá¾Ã±á³Æaesãããpproøãqñãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»Â¹ä¹è»Â²ä²è»Â³ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨Ã«â®Ä;oਫ਩war;椪ligè»Ãä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;ärÃ«à¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ìð±Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®pproøáim»á¬sðáÄasãºã®Ã°árnè»Ã¾ä¾Ç¬Ìãâ§esèÃ;bdãããäÄ;aá¤ãr;樱;樰Æepsã¡ã£ãáâ©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ìð¥rk;æ«Ã¡ã¢rime;æ´Æaipããã¤dÃ¥áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown»ᶻeftÄ;eâ ã¾Ã±à¤®;æightÄ;eãªãñáot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ìð;äcy;ärok;ä
§Äioããxôá·headÄlrãã eftarro÷à¡ightarrow»à½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶ròÏar;楣Äcrãã¢uteè»ÃºäºÃ²á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»Ã»ä»;äÆabhã ã ã ròálac;ä
±aòáÄirã ã sht;楾;ìð²raveè»Ã¹ä¹Å¡ã §ã ±rÄlr㠬㠮»à¥Â»álk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær»ã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»Â¨ÍÄgp㡢㡦on;ä
³f;ìð¦Ìadhlsuá
㡸㡽á²ã¢ã¢ ownáá³arpoonÄlrã¢ã¢efôã ighô㠯iÆ;hlã¢ã¢ã¢ä
»áºon»ã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær»㢽op;æng;ä
¯ri;æ¹cr;ìðÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨Â»á Äam㣯㣲rò㢨lè»Ã¼ä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ ròϷarÄ;v㤦㤧櫨;æ«©asèϡÄnr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦appáâothinÃ§áºÆhirã«â»ã¥opô⾵Ä;há·ã¥¢Ã¯ãÄiu㥩ã¥gmáã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦etáãiangleÄlr㦪㦯eft»थight»áy;ä²ashÂ»á¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨aòá©r;ìð³tré㦮suÄbp㧯㧱»à´Â»àµpf;ìð§roð໻tré㦴Äcuã¨ã¨r;ìðÄbpã¨ã¨nÄEeã¦ã¨Â»ã¥¾nÄEeã¦ã¨Â»ã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ìð´pf;ìð¨Ä;eá¹ã©¦atèá¹cr;ìðà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátréár;ìðµÄAaãªãªròÏrò৶;ä¾ÄAa㪡㪤ròθrò৫aðâis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ìð©imÃ¥á²ÄAaã«ã«ròÏròà¨Äcqã«á¸r;ìðÄptáã«réáÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»Ã½ä½;äÄiyã¬ã¬rc;ä
·;änè»Â¥ä¥r;ìð¶cy;äpf;ìðªcr;ìðÄcm㬦㬩y;älè»Ã¿ä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡træáa;ä¶r;ìð·cy;ä¶grarr;æpf;ìð«cr;ìðÄjnã®
ã®;æj;æ
653'.split("").map(e=>e.charCodeAt(0))),hhe=new Uint16Array("Èaglq ��\x1BÉ�\0\0�p;ä¦os;ä§t;ä¾t;ä¼uot;ä¢".split("").map(e=>e.charCodeAt(0)));var dx;const mhe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),ghe=(dx=String.fromCodePoint)!==null&&dx!==void 0?dx:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function yhe(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=mhe.get(e))!==null&&t!==void 0?t:e}var Mr;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Mr||(Mr={}));const bhe=32;var Hs;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Hs||(Hs={}));function mT(e){return e>=Mr.ZERO&&e<=Mr.NINE}function vhe(e){return e>=Mr.UPPER_A&&e<=Mr.UPPER_F||e>=Mr.LOWER_A&&e<=Mr.LOWER_F}function _he(e){return e>=Mr.UPPER_A&&e<=Mr.UPPER_Z||e>=Mr.LOWER_A&&e<=Mr.LOWER_Z||mT(e)}function Ehe(e){return e===Mr.EQUALS||_he(e)}var Dr;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Dr||(Dr={}));var qi;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(qi||(qi={}));let p4=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Dr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=qi.Strict}startEntity(t){this.decodeMode=t,this.state=Dr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Dr.EntityStart:return t.charCodeAt(n)===Mr.NUM?(this.state=Dr.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Dr.NamedEntity,this.stateNamedEntity(t,n));case Dr.NumericStart:return this.stateNumericStart(t,n);case Dr.NumericDecimal:return this.stateNumericDecimal(t,n);case Dr.NumericHex:return this.stateNumericHex(t,n);case Dr.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|bhe)===Mr.LOWER_X?(this.state=Dr.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Dr.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const o=r-n;this.result=this.result*Math.pow(a,o)+parseInt(t.substr(n,o),a),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(mT(a)||vhe(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(mT(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Mr.SEMI)this.consumed+=1;else if(this.decodeMode===qi.Strict)return 0;return this.emitCodePoint(yhe(this.result),this.consumed),this.errors&&(t!==Mr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],o=(a&Hs.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const i=t.charCodeAt(n);if(this.treeIndex=xhe(r,a,this.treeIndex+Math.max(1,o),i),this.treeIndex<0)return this.result===0||this.decodeMode===qi.Attribute&&(o===0||Ehe(i))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],o=(a&Hs.VALUE_LENGTH)>>14,o!==0){if(i===Mr.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==qi.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&Hs.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~Hs.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Dr.NamedEntity:return this.result!==0&&(this.decodeMode!==qi.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Dr.NumericDecimal:return this.emitNumericEntity(0,2);case Dr.NumericHex:return this.emitNumericEntity(0,3);case Dr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Dr.EntityStart:return 0}}};function h4(e){let t="";const n=new p4(e,r=>t+=ghe(r));return function(r,a){let o=0,i=0;for(;(i=r.indexOf("&",i))>=0;){t+=r.slice(o,i),n.startEntity(a);const c=n.write(r,i+1);if(c<0){o=i+n.end();break}o=i+c,i=c===0?o+1:o}const l=t+r.slice(o);return t="",l}}function xhe(e,t,n,r){const a=(t&Hs.BRANCH_LENGTH)>>7,o=t&Hs.JUMP_TABLE;if(a===0)return o!==0&&r===o?n:-1;if(o){const c=r-o;return c<0||c>=a?-1:e[n+c]-1}let i=n,l=i+a-1;for(;i<=l;){const c=i+l>>>1,d=e[c];if(d<r)i=c+1;else if(d>r)l=c-1;else return e[c+a]}return-1}h4(f4);h4(hhe);var De;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(De||(De={}));var Wl;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Wl||(Wl={}));var bo;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(bo||(bo={}));var ue;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="str
653ike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(ue||(ue={}));var T;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(T||(T={}));const whe=new Map([[ue.A,T.A],[ue.ADDRESS,T.ADDRESS],[ue.ANNOTATION_XML,T.ANNOTATION_XML],[ue.APPLET,T.APPLET],[ue.AREA,T.AREA],[ue.ARTICLE,T.ARTICLE],[ue.ASIDE,T.ASIDE],[ue.B,T.B],[ue.BASE,T.BASE],[ue.BASEFONT,T.BASEFONT],[ue.BGSOUND,T.BGSOUND],[ue.BIG,T.BIG],[ue.BLOCKQUOTE,T.BLOCKQUOTE],[ue.BODY,T.BODY],[ue.BR,T.BR],[ue.BUTTON,T.BUTTON],[ue.CAPTION,T.CAPTION],[ue.CENTER,T.CENTER],[ue.CODE,T.CODE],[ue.COL,T.COL],[ue.COLGROUP,T.COLGROUP],[ue.DD,T.DD],[ue.DESC,T.DESC],[ue.DETAILS,T.DETAILS],[ue.DIALOG,T.DIALOG],[ue.DIR,T.DIR],[ue.DIV,T.DIV],[ue.DL,T.DL],[ue.DT,T.DT],[ue.EM,T.EM],[ue.EMBED,T.EMBED],[ue.FIELDSET,T.FIELDSET],[ue.FIGCAPTION,T.FIGCAPTION],[ue.FIGURE,T.FIGURE],[ue.FONT,T.FONT],[ue.FOOTER,T.FOOTER],[ue.FOREIGN_OBJECT,T.FOREIGN_OBJECT],[ue.FORM,T.FORM],[ue.FRAME,T.FRAME],[ue.FRAMESET,T.FRAMESET],[ue.H1,T.H1],[ue.H2,T.H2],[ue.H3,T.H3],[ue.H4,T.H4],[ue.H5,T.H5],[ue.H6,T.H6],[ue.HEAD,T.HEAD],[ue.HEADER,T.HEADER],[ue.HGROUP,T.HGROUP],[ue.HR,T.HR],[ue.HTML,T.HTML],[ue.I,T.I],[ue.IMG,T.IMG],[ue.IMAGE,T.IMAGE],[ue.INPUT,T.INPUT],[ue.IFRAME,T.IFRAME],[ue.KEYGEN,T.KEYGEN],[ue.LABEL,T.LABEL],[ue.LI,T.LI],[ue.LINK,T.LINK],[ue.LISTING,T.LISTING],[ue.MAIN,T.MAIN],[ue.MALIGNMARK,T.MALIGNMARK],[ue.MARQUEE,T.MARQUEE],[ue.MATH,T.MATH],[ue.MENU,T.MENU],[ue.META,T.META],[ue.MGLYPH,T.MGLYPH],[ue.MI,T.MI],[ue.MO,T.MO],[ue.MN,T.MN],[ue.MS,T.MS],[ue.MTEXT,T.MTEXT],[ue.NAV,T.NAV],[ue.NOBR,T.NOBR],[ue.NOFRAMES,T.NOFRAMES],[ue.NOEMBED,T.NOEMBED],[ue.NOSCRIPT,T.NOSCRIPT],[ue.OBJECT,T.OBJECT],[ue.OL,T.OL],[ue.OPTGROUP,T.OPTGROUP],[ue.OPTION,T.OPTION],[ue.P,T.P],[ue.PARAM,T.PARAM],[ue.PLAINTEXT,T.PLAINTEXT],[ue.PRE,T.PRE],[ue.RB,T.RB],[ue.RP,T.RP],[ue.RT,T.RT],[ue.RTC,T.RTC],[ue.RUBY,T.RUBY],[ue.S,T.S],[ue.SCRIPT,T.SCRIPT],[ue.SEARCH,T.SEARCH],[ue.SECTION,T.SECTION],[ue.SELECT,T.SELECT],[ue.SOURCE,T.SOURCE],[ue.SMALL,T.SMALL],[ue.SPAN,T.SPAN],[ue.STRIKE,T.STRIKE],[ue.STRONG,T.STRONG],[ue.STYLE,T.STYLE],[ue.SUB,T.SUB],[ue.SUMMARY,T.SUMMARY],[ue.SUP,T.SUP],[ue.TABLE,T.TABLE],[ue.TBODY,T.TBODY],[ue.TEMPLATE,T.TEMPLATE],[ue.TEXTAREA,T.TEXTAREA],[ue.TFOOT,T.TFOOT],[ue.TD,T.TD],[ue.TH,T.TH],[ue.THEAD,T.THEAD],[ue.TITLE,T.TITLE],[ue.TR,T.TR],[ue.TRACK,T.TRACK],[ue.TT,T.TT],[ue.U,T.U],[ue.UL,T.UL],[ue.SVG,T.SVG],[ue.VAR,T.VAR],[ue.WBR,T.WBR],[ue.XMP,T.XMP]]);function Td(e){var t;return(t=whe.get(e))!==null&&t!==void 0?t:T.UNKNOWN}const $e=T,The={[De.HTML]:new Set([$e.ADDRESS,$e.APPLET,$e.AREA,$e.ARTICLE,$e.ASIDE,$e.BASE,$e.BASEFONT,$e.BGSOUND,$e.BLOCKQUOTE,$e.BODY,$e.BR,$e.BUTTON,$e.CAPTION,$e.CENTER,$e.COL,$e.COLGROUP,$e.DD,$e.DETAILS,$e.DIR,$e.DIV,$e.DL,$e.DT,$e.EMBED,$e.FIELDSET,$e.FIGCAPTION,$e.FIGURE,$e.FOOTER,$e.FORM,$e.FRAME,$e.FRAMESET,$e.H1,$e.H2,$e.H3,$e.H4,$e.H5,$e.H6,$e.HEAD,$e.HEADER,$e.HGROUP,$e.HR,$e.HTML,$e.IFRAME,$e.IMG,$e.INPUT,$e.LI,$e.LINK,$e.LISTING,$e.MAIN,$e.MARQUEE,$e.MENU,$e.META,$e.NAV,$e.NOEMBED,$e.NOFRAMES,$e.NOSCRIPT,$e.OBJECT,$e.OL,$e.P,$e.PARAM,$e.PLAINTEXT,$e.PRE,$e.SCRIPT,$e.SECTION,$e.SELECT,$e.SOURCE,$e.STYLE,$e.SUMMARY,$e.TABLE,$e.TBODY,$e.TD,$e.TEMPLATE,$e.TEXTAREA,$e.TFOOT,$e.TH,$e.THEAD,$e.TITLE,$e.TR,$e.TRACK,$e.UL,$e.WBR,$e.XMP]),[De.MATHML]:new Set([$e.MI,$e.MO,$e.MN,$e.MS,$e.MTEXT,$e.ANNOTATION_XML]),[De.SVG]:new Set([$e.TITLE,$e.FOREIGN_OBJECT,$e.DESC]),[De.XLINK]:new Set,[De.XML]:new Set,[De.XMLNS]:new Set},gT=new Set([$e.H1,$e.H2,$e.H3,$e.H4,$e.H5,$e.H6]);ue.STYLE,ue.SCRIPT,ue.XMP,ue.IFRAME,ue.NOEMBED,ue.NOFRAMES,ue.PLAINTEXT;var F;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(F||(F={}));const Qn={DATA:F.DATA,RCDATA:F.RCDATA,RAWTEXT:F.RAWTEXT,SCRIPT_DATA:F.SCRIPT_DATA,PLAINTEXT:F.PLAINTEXT,CDATA_SECTION:F.CDATA_SECTION};function She(e){return e>=j.DIGIT_0&&e<=j.DIGIT_9}function Jf(e){return e>=j.LATIN_CAPITAL_A&&e<=j.LATIN_CAPITAL_Z}function Che(e){return e>=j.LATIN_SMALL_A&&e<=j.LATIN_SMALL_Z}function js(e){return Che(e)||Jf(e)}function DL(e){return js(e)||She(e)}function xg(e){return e+32}function m4(e){return e===j.SPACE||e===j.LINE_FEED||e===j.TABULATION||e===j.FORM_FEED}function IL(e){return m4(e)||e===j.SOLIDUS||e===j.GREATER_THAN_SIGN}function Ahe(e){return e===j.NULL?Ee.nullCharacterReference:e>1114111?Ee.characterReferenceOutsideUnicodeRange:l4(e)?Ee.surrogateCharacterReference:u4(e)?Ee.noncharacterCharacterReference:c4(e)||e===j.CARRIAGE_RETURN?Ee.controlCharacterReference:null}class khe{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=F.DATA,this.returnState=F.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new phe(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new p4
vendor: 110,479 bytes, line 653
653(f4,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Ee.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(Ee.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=Ahe(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ot.START_TAG,tagName:"",tagID:T.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ot.END_TAG,tagName:"",tagID:T.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ot.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ot.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(d4(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Ee.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Td(t.tagName),t.type===Ot.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Ee.endTagWithAttributes),t.selfClosing&&this._err(Ee.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ot.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ot.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ot.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ot.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=m4(t)?Ot.WHITESPACE_CHARACTER:t===j.NULL?Ot.NULL_CHARACTER:Ot.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ot.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=F.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?qi.Attribute:qi.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===F.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case F.DATA:{this._stateData(t);break}case F.RCDATA:{this._stateRcdata(t);break}case F.RAWTEXT:{this._stateRawtext(t);break}case F.SCRIPT_DATA:{this._stateScriptData(t);break}case F.PLAINTEXT:{this._statePlaintext(t);break}case F.TAG_OPEN:{this._stateTagOpen(t);break}case F.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case F.TAG_NAME:{this._stateTagName(t);break}case F.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case F.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case F.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case F.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case F.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case F.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case F.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case F.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case F.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case F.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case F.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case F.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case F.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case F.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case F.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case F.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case F.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case F.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case F.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case F.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case F.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case F.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case F.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case F.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case F.BOGUS_COMMENT:{this._stateBogusComment(t);break}case F.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case F.COMMENT_START:{this._stateCommentStart(t);break}case F.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case F.COMMENT:{this._stateComment(t);break}case F.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case F.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case F.COMMENT_END:{this._stateCommentEnd(t);break}case F.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case F.DOCTYPE:{this._stateDoctype(t);break}case F.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case F.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case F.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case F.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case F.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case F.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case F.CDATA_SECTION:{this._stateCdataSection(t);break}case F.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case F.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case F.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case F.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case j.LESS_THAN_SIGN:{this.state=F.TAG_OPEN;break}case j.AMPERSAND:{this._startCharacterReference();break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitCodePoint(t);break}case j.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case j.AMPERSAND:{this._startCharacterReference();break}case j.LESS_THAN_SIGN:{this.state=F.RCDATA_LESS_THAN_SIGN;break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Nn);break}case j.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case j.LESS_THAN_SIGN:{this.state=F.RAWTEXT_LESS_THAN_SIGN;break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Nn);break}case j.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case j.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_LESS_THAN_SIGN;break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Nn);break}case j.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case j.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Nn);break}case j.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(js(t))this._createStartTagToken(),this.state=F.TAG_NAME,this._stateTagName(t);else switch(t){case j.EXCLAMATION_MARK:{this.state=F.MARKUP_DECLARATION_OPEN;break}case j.SOLIDUS:{this.state=F.END_TAG_OPEN;break}case j.QUESTION_MARK:{this._err(Ee.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t);break}case j.EOF:{this._err(Ee.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Ee.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=F.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(js(t))this._createEndTagToken(),this.state=F.TAG_NAME,this._stateTagName(t);else switch(t){case j.GREATER_THAN_SIGN:{this._err(Ee.missingEndTagName),this.state=F.DATA;break}case j.EOF:{this._err(Ee.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Ee.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:{this.state=F.BEFORE_ATTRIBUTE_NAME;break}case j.SOLIDUS:{this.state=F.SELF_CLOSING_START_TAG;break}case j.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentTagToken();break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),n.tagName+=Nn;break}case j.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Jf(t)?xg(t):t)}}_stateRcdataLessThanSign(t){t===j.SOLIDUS?this.state=F.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){js(t)?(this.state=F.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=F.BEFORE_ATTRIBUTE_NAME,!1;case j.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=F.SELF_CLOSING_START_TAG,!1;case j.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=F.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===j.SOLIDUS?this.state=F.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){js(t)?(this.state=F.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case j.SOLIDUS:{this.state=F.SCRIPT_DATA_END_TAG_OPEN;break}case j.EXCLAMATION_MARK:{this.state=F.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=F.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){js(t)?(this.state=F.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===j.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===j.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case j.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case j.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Nn);break}case j.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case j.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case j.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(Nn);break}case j.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case j.HYPHEN_MINUS:{this._emitChars("-");break}case j.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case j.GREATER_THAN_SIGN:{this.state=F.SCRIPT_DATA,this._emitChars(">");break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(Nn);break}case j.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===j.SOLIDUS?this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:js(t)?(this._emitChars("<"),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){js(t)?(this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(wa.SCRIPT,!1)&&IL(this.preprocessor.peek(wa.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<wa.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case j.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case j.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Nn);break}case j.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case j.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case j.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Nn);break}case j.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case j.HYPHEN_MINUS:{this._emitChars("-");break}case j.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case j.GREATER_THAN_SIGN:{this.state=F.SCRIPT_DATA,this._emitChars(">");break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Nn);break}case j.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===j.SOLIDUS?(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(wa.SCRIPT,!1)&&IL(this.preprocessor.peek(wa.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<wa.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.SOLIDUS:case j.GREATER_THAN_SIGN:case j.EOF:{this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case j.EQUALS_SIGN:{this._err(Ee.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=F.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:case j.SOLIDUS:case j.GREATER_THAN_SIGN:case j.EOF:{this._leaveAttrName(),this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case j.EQUALS_SIGN:{this._leaveAttrName(),this.state=F.BEFORE_ATTRIBUTE_VALUE;break}case j.QUOTATION_MARK:case j.APOSTROPHE:case j.LESS_THAN_SIGN:{this._err(Ee.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.name+=Nn;break}default:this.currentAttr.name+=String.fromCodePoint(Jf(t)?xg(t):t)}}_stateAfterAttributeName(t){switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.SOLIDUS:{this.state=F.SELF_CLOSING_START_TAG;break}case j.EQUALS_SIGN:{this.state=F.BEFORE_ATTRIBUTE_VALUE;break}case j.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentTagToken();break}case j.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.QUOTATION_MARK:{this.state=F.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case j.APOSTROPHE:{this.state=F.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case j.GREATER_THAN_SIGN:{this._err(Ee.missingAttributeValue),this.state=F.DATA,this.emitCurrentTagToken();break}default:this.state=F.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case j.QUOTATION_MARK:{this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case j.AMPERSAND:{this._startCharacterReference();break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.value+=Nn;break}case j.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case j.APOSTROPHE:{this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case j.AMPERSAND:{this._startCharacterReference();break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.value+=Nn;break}case j.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:{this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break}case j.AMPERSAND:{this._startCharacterReference();break}case j.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.value+=Nn;break}case j.QUOTATION_MARK:case j.APOSTROPHE:case j.LESS_THAN_SIGN:case j.EQUALS_SIGN:case j.GRAVE_ACCENT:{this._err(Ee.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case j.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:{this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break}case j.SOLIDUS:{this._leaveAttrValue(),this.state=F.SELF_CLOSING_START_TAG;break}case j.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break}case j.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this._err(Ee.missingWhitespaceBetweenAttributes),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case j.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=F.DATA,this.emitCurrentTagToken();break}case j.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this._err(Ee.unexpectedSolidusInTag),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case j.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentComment(n);break}case j.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),n.data+=Nn;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(wa.DASH_DASH,!0)?(this._createCommentToken(wa.DASH_DASH.length+1),this.state=F.COMMENT_START):this._consumeSequenceIfMatch(wa.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(wa.DOCTYPE.length+1),this.state=F.DOCTYPE):this._consumeSequenceIfMatch(wa.CDATA_START,!0)?this.inForeignNode?this.state=F.CDATA_SECTION:(this._err(Ee.cdataInHtmlContent),this._createCommentToken(wa.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=F.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Ee.incorrectlyOpenedComment),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case j.HYPHEN_MINUS:{this.state=F.COMMENT_START_DASH;break}case j.GREATER_THAN_SIGN:{this._err(Ee.abruptClosingOfEmptyComment),this.state=F.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=F.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case j.HYPHEN_MINUS:{this.state=F.COMMENT_END;break}case j.GREATER_THAN_SIGN:{this._err(Ee.abruptClosingOfEmptyComment),this.state=F.DATA,this.emitCurrentComment(n);break}case j.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=F.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case j.HYPHEN_MINUS:{this.state=F.COMMENT_END_DASH;break}case j.LESS_THAN_SIGN:{n.data+="<",this.state=F.COMMENT_LESS_THAN_SIGN;break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),n.data+=Nn;break}case j.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case j.EXCLAMATION_MARK:{n.data+="!",this.state=F.COMMENT_LESS_THAN_SIGN_BANG;break}case j.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=F.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===j.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=F.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===j.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=F.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==j.GREATER_THAN_SIGN&&t!==j.EOF&&this._err(Ee.nestedComment),this.state=F.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case j.HYPHEN_MINUS:{this.state=F.COMMENT_END;break}case j.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=F.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case j.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentComment(n);break}case j.EXCLAMATION_MARK:{this.state=F.COMMENT_END_BANG;break}case j.HYPHEN_MINUS:{n.data+="-";break}case j.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=F.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case j.HYPHEN_MINUS:{n.data+="--!",this.state=F.COMMENT_END_DASH;break}case j.GREATER_THAN_SIGN:{this._err(Ee.incorrectlyClosedComment),this.state=F.DATA,this.emitCurrentComment(n);break}case j.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=F.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_NAME;break}case j.GREATER_THAN_SIGN:{this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case j.EOF:{this._err(Ee.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingWhitespaceBeforeDoctypeName),this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Jf(t))this._createDoctypeToken(String.fromCharCode(xg(t))),this.state=F.DOCTYPE_NAME;else switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.NULL:{this._err(Ee.unexpectedNullCharacter),this._createDoctypeToken(Nn),this.state=F.DOCTYPE_NAME;break}case j.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case j.EOF:{this._err(Ee.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=F.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:{this.state=F.AFTER_DOCTYPE_NAME;break}case j.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(n);break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),n.name+=Nn;break}case j.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Jf(t)?xg(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(n);break}case j.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(wa.PUBLIC,!1)?this.state=F.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(wa.SYSTEM,!1)?this.state=F.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Ee.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case j.QUOTATION_MARK:{this._err(Ee.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case j.APOSTROPHE:{this._err(Ee.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case j.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(n);break}case j.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.QUOTATION_MARK:{n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case j.APOSTROPHE:{n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case j.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(n);break}case j.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case j.QUOTATION_MARK:{this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),n.publicId+=Nn;break}case j.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case j.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case j.APOSTROPHE:{this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),n.publicId+=Nn;break}case j.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case j.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:{this.state=F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case j.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(n);break}case j.QUOTATION_MARK:{this._err(Ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case j.APOSTROPHE:{this._err(Ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case j.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=F.DATA;break}case j.QUOTATION_MARK:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case j.APOSTROPHE:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case j.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case j.QUOTATION_MARK:{this._err(Ee.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case j.APOSTROPHE:{this._err(Ee.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case j.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(n);break}case j.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.QUOTATION_MARK:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case j.APOSTROPHE:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case j.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(n);break}case j.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case j.QUOTATION_MARK:{this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),n.systemId+=Nn;break}case j.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case j.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case j.APOSTROPHE:{this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case j.NULL:{this._err(Ee.unexpectedNullCharacter),n.systemId+=Nn;break}case j.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case j.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=F.DATA;break}case j.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case j.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=F.DATA;break}case j.NULL:{this._err(Ee.unexpectedNullCharacter);break}case j.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case j.RIGHT_SQUARE_BRACKET:{this.state=F.CDATA_SECTION_BRACKET;break}case j.EOF:{this._err(Ee.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===j.RIGHT_SQUARE_BRACKET?this.state=F.CDATA_SECTION_END:(this._emitChars("]"),this.state=F.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case j.GREATER_THAN_SIGN:{this.state=F.DATA;break}case j.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=F.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(j.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&DL(this.preprocessor.peek(1))?F.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){DL(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===j.SEMICOLON&&this._err(Ee.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const g4=new Set([T.DD,T.DT,T.LI,T.OPTGROUP,T.OPTION,T.P,T.RB,T.RP,T.RT,T.RTC]),LL=new Set([...g4,T.CAPTION,T.COLGROUP,T.TBODY,T.TD,T.TFOOT,T.TH,T.THEAD,T.TR]),qy=new Set([T.APPLET,T.CAPTION,T.HTML,T.MARQUEE,T.OBJECT,T.TABLE,T.TD,T.TEMPLATE,T.TH]),Nhe=new Set([...qy,T.OL,T.UL]),Rhe=new Set([...qy,T.BUTTON]),$L=new Set([T.ANNOTATION_XML,T.MI,T.MN,T.MO,T.MS,T.MTEXT]),PL=new Set([T.DESC,T.FOREIGN_OBJECT,T.TITLE]),Ohe=new Set([T.TR,T.TEMPLATE,T.HTML]),Dhe=new Set([T.TBODY,T.TFOOT,T.THEAD,T.TEMPLATE,T.HTML]),Ihe=new Set([T.TABLE,T.TEMPLATE,T.HTML]),Lhe=new Set([T.TD,T.TH]);class $he{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=T.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===T.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===De.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==De.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(n<0?0:n)}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(gT,De.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Lhe,De.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Ihe,De.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Dhe,De.HTML)}clearBackToTableRowContext(){this.clearBackTo(Ohe,De.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===T.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===T.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case De.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case De.SVG:{if(PL.has(a))return!1;break}case De.MATHML:{if($L.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,qy)}hasInListItemScope(t){return this.hasInDynamicScope(t,Nhe)}hasInButtonScope(t){return this.hasInDynamicScope(t,Rhe)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case De.HTML:{if(gT.has(n))return!0;if(qy.has(n))return!1;break}case De.SVG:{if(PL.has(n))return!1;break}case De.MATHML:{if($L.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===De.HTML)switch(this.tagIDs[n]){case t:return!0;case T.TABLE:case T.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===De.HTML)switch(this.tagIDs[t]){case T.TBODY:case T.THEAD:case T.TFOOT:return!0;case T.TABLE:case T.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===De.HTML)switch(this.tagIDs[n]){case t:return!0;case T.OPTION:case T.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;g4.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;LL.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&LL.has(this.currentTagId);)this.pop()}}const fx=3;var ii;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ii||(ii={}));const ML={type:ii.Marker};class Phe{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,o=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t);for(let l=0;l<this.entries.length;l++){const c=this.entries[l];if(c.type===ii.Marker)break;const{element:d}=c;if(this.treeAdapter.getTagName(d)===o&&this.treeAdapter.getNamespaceURI(d)===i){const p=this.treeAdapter.getAttrList(d);p.length===a&&r.push({idx:l,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<fx)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<fx)return;const a=new Map(n.map(i=>[i.name,i.value]));let o=0;for(let i=0;i<r.length;i++){const l=r[i];l.attrs.every(c=>a.get(c.name)===c.value)&&(o+=1,o>=fx&&this.entries.splice(l.idx,1))}}insertMarker(){this.entries.unshift(ML)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ii.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ii.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(ML);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ii.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ii.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ii.Element&&n.element===t)}}const zs={createDocument(){return{nodeName:"#document",mode:bo.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(o=>o.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};zs.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(zs.isTextNode(n)){n.value+=t;return}}zs.appendChild(e,zs.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&zs.isTextNode(r)?r.value+=t:zs.insertBefore(e,zs.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},y4="html",Mhe="about:legacy-compat",jhe="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",b4=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],zhe=[...b4,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Bhe=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),v4=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Uhe=[...v4,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function jL(e,t){return t.some(n=>e.startsWith(n))}function Fhe(e){return e.name===y4&&e.publicId===null&&(e.systemId===null||e.systemId===Mhe)}function Hhe(e){if(e.name!==y4)return bo.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===jhe)return bo.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Bhe.has(n))return bo.QUIRKS;let r=t===null?zhe:b4;if(jL(n,r))return bo.QUIRKS;if(r=t===null?v4:Uhe,jL(n,r))return bo.LIMITED_QUIRKS}return bo.NO_QUIRKS}const zL={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Ghe="definitionurl",Vhe="definitionURL",qhe=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Yhe=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:De.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:De.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:De.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:De.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:De.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:De.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:De.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:De.XML}],["xml:space",{prefix:"xml",name:"space",namespace:De.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:De.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:De.XMLNS}]]),Whe=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Zhe=new Set([T.B,T.BIG,T.BLOCKQUOTE,T.BODY,T.BR,T.CENTER,T.CODE,T.DD,T.DIV,T.DL,T.DT,T.EM,T.EMBED,T.H1,T.H2,T.H3,T.H4,T.H5,T.H6,T.HEAD,T.HR,T.I,T.IMG,T.LI,T.LISTING,T.MENU,T.META,T.NOBR,T.OL,T.P,T.PRE,T.RUBY,T.S,T.SMALL,T.SPAN,T.STRONG,T.STRIKE,T.SUB,T.SUP,T.TABLE,T.TT,T.U,T.UL,T.VAR]);function Khe(e){const t=e.tagID;return t===T.FONT&&e.attrs.some(({name:n})=>n===Wl.COLOR||n===Wl.SIZE||n===Wl.FACE)||Zhe.has(t)}function _4(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Ghe){e.attrs[t].name=Vhe;break}}function E4(e){for(let t=0;t<e.attrs.length;t++){const n=qhe.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function gC(e){for(let t=0;t<e.attrs.length;t++){const n=Yhe.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Qhe(e){const t=Whe.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Td(e.tagName))}function Xhe(e,t){return t===De.MATHML&&(e===T.MI||e===T.MO||e===T.MN||e===T.MS||e===T.MTEXT)}function Jhe(e,t,n){if(t===De.MATHML&&e===T.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Wl.ENCODING){const a=n[r].value.toLowerCase();return a===zL.TEXT_HTML||a===zL.APPLICATION_XML}}return t===De.SVG&&(e===T.FOREIGN_OBJECT||e===T.DESC||e===T.TITLE)}function eme(e,t,n,r){return(!r||r===De.HTML)&&Jhe(e,t,n)||(!r||r===De.MATHML)&&Xhe(e,t)}const tme="hidden",nme=8,rme=3;var q;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(q||(q={}));const ame={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},x4=new Set([T.TABLE,T.TBODY,T.TFOOT,T.THEAD,T.TR]),BL={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:zs,onParseError:null};class UL{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=q.INITIAL,this.originalInsertionMode=q.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...BL,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new khe(this.options,this),this.activeFormattingElements=new Phe(this.treeAdapter),this.fragmentContextID=r?Td(this.treeAdapter.getTagName(r)):T.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new $he(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...BL,...n};t??(t=r.treeAdapter.createElement(ue.TEMPLATE,De.HTML,[]));const a=r.treeAdapter.createElement("documentmock",De.HTML,[]),o=new this(r,a,t);return o.fragmentContextID===T.TEMPLATE&&o.tmplInsertionModeStack.unshift(q.IN_TEMPLATE),o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const o=(a=t.location)!==null&&a!==void 0?a:ame,i={code:n,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:r?o.startLine:o.endLine,endCol:r?o.startCol:o.endCol,endOffset:r?o.startOffset:o.endOffset};this.onParseError(i)}onItemPush(t,n,r){var a,o;(o=(a=this.treeAdapter).onItemPush)===null||o===void 0||o.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let o,i;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,i=this.fragmentContextID):{current:o,currentTagId:i}=this.openElements,this._setContextModes(o,i)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===De.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,De.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=q.TEXT}switchToPlaintextParsing(){this.insertionMode=q.TEXT,this.originalInsertionMode=q.IN_BODY,this.tokenizer.state=Qn.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===ue.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==De.HTML))switch(this.fragmentContextID){case T.TITLE:case T.TEXTAREA:{this.tokenizer.state=Qn.RCDATA;break}case T.STYLE:case T.XMP:case T.IFRAME:case T.NOEMBED:case T.NOFRAMES:case T.NOSCRIPT:{this.tokenizer.state=Qn.RAWTEXT;break}case T.SCRIPT:{this.tokenizer.state=Qn.SCRIPT_DATA;break}case T.PLAINTEXT:{this.tokenizer.state=Qn.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(i=>this.treeAdapter.isDocumentTypeNode(i));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,De.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,De.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(ue.HTML,De.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,T.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),o=r?a.lastIndexOf(r):a.length,i=a[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){const{endLine:l,endCol:c,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:l,endCol:c,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),o=n.type===Ot.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===T.SVG&&this.treeAdapter.getTagName(n)===ue.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===De.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===T.MGLYPH||t.tagID===T.MALIGNMARK)&&!this._isIntegrationPoint(r,n,De.HTML)}_processToken(t){switch(t.type){case Ot.CHARACTER:{this.onCharacter(t);break}case Ot.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ot.COMMENT:{this.onComment(t);break}case Ot.DOCTYPE:{this.onDoctype(t);break}case Ot.START_TAG:{this._processStartTag(t);break}case Ot.END_TAG:{this.onEndTag(t);break}case Ot.EOF:{this.onEof(t);break}case Ot.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return eme(t,a,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===ii.Marker||this.openElements.contains(a.element)),r=n<0?t-1:n-1;for(let a=r;a>=0;a--){const o=this.activeFormattingElements.entries[a];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=q.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(T.P),this.openElements.popUntilTagNamePopped(T.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case T.TR:{this.insertionMode=q.IN_ROW;return}case T.TBODY:case T.THEAD:case T.TFOOT:{this.insertionMode=q.IN_TABLE_BODY;return}case T.CAPTION:{this.insertionMode=q.IN_CAPTION;return}case T.COLGROUP:{this.insertionMode=q.IN_COLUMN_GROUP;return}case T.TABLE:{this.insertionMode=q.IN_TABLE;return}case T.BODY:{this.insertionMode=q.IN_BODY;return}case T.FRAMESET:{this.insertionMode=q.IN_FRAMESET;return}case T.SELECT:{this._resetInsertionModeForSelect(t);return}case T.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case T.HTML:{this.insertionMode=this.headElement?q.AFTER_HEAD:q.BEFORE_HEAD;return}case T.TD:case T.TH:{if(t>0){this.insertionMode=q.IN_CELL;return}break}case T.HEAD:{if(t>0){this.insertionMode=q.IN_HEAD;return}break}}this.insertionMode=q.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===T.TEMPLATE)break;if(r===T.TABLE){this.insertionMode=q.IN_SELECT_IN_TABLE;return}}this.insertionMode=q.IN_SELECT}_isElementCausesFosterParenting(t){return x4.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case T.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===De.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case T.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return The[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Lge(this,t);return}switch(this.insertionMode){case q.INITIAL:{Bf(this,t);break}case q.BEFORE_HTML:{mp(this,t);break}case q.BEFORE_HEAD:{gp(this,t);break}case q.IN_HEAD:{yp(this,t);break}case q.IN_HEAD_NO_SCRIPT:{bp(this,t);break}case q.AFTER_HEAD:{vp(this,t);break}case q.IN_BODY:case q.IN_CAPTION:case q.IN_CELL:case q.IN_TEMPLATE:{T4(this,t);break}case q.TEXT:case q.IN_SELECT:case q.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case q.IN_TABLE:case q.IN_TABLE_BODY:case q.IN_ROW:{px(this,t);break}case q.IN_TABLE_TEXT:{R4(this,t);break}case q.IN_COLUMN_GROUP:{Yy(this,t);break}case q.AFTER_BODY:{Wy(this,t);break}case q.AFTER_AFTER_BODY:{ry(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Ige(this,t);return}switch(this.insertionMode){case q.INITIAL:{Bf(this,t);break}case q.BEFORE_HTML:{mp(this,t);break}case q.BEFORE_HEAD:{gp(this,t);break}case q.IN_HEAD:{yp(this,t);break}case q.IN_HEAD_NO_SCRIPT:{bp(this,t);break}case q.AFTER_HEAD:{vp(this,t);break}case q.TEXT:{this._insertCharacters(t);break}case q.IN_TABLE:case q.IN_TABLE_BODY:case q.IN_ROW:{px(this,t);break}case q.IN_COLUMN_GROUP:{Yy(this,t);break}case q.AFTER_BODY:{Wy(this,t);break}case q.AFTER_AFTER_BODY:{ry(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){yT(this,t);return}switch(this.insertionMode){case q.INITIAL:case q.BEFORE_HTML:case q.BEFORE_HEAD:case q.IN_HEAD:case q.IN_HEAD_NO_SCRIPT:case q.AFTER_HEAD:case q.IN_BODY:case q.IN_TABLE:case q.IN_CAPTION:case q.IN_COLUMN_GROUP:case q.IN_TABLE_BODY:case q.IN_ROW:case q.IN_CELL:case q.IN_SELECT:case q.IN_SELECT_IN_TABLE:case q.IN_TEMPLATE:case q.IN_FRAMESET:case q.AFTER_FRAMESET:{yT(this,t);break}case q.IN_TABLE_TEXT:{Uf(this,t);break}case q.AFTER_BODY:{dme(this,t);break}case q.AFTER_AFTER_BODY:case q.AFTER_AFTER_FRAMESET:{fme(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case q.INITIAL:{pme(this,t);break}case q.BEFORE_HEAD:case q.IN_HEAD:case q.IN_HEAD_NO_SCRIPT:case q.AFTER_HEAD:{this._err(t,Ee.misplacedDoctype);break}case q.IN_TABLE_TEXT:{Uf(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Ee.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?$ge(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case q.INITIAL:{Bf(this,t);break}case q.BEFORE_HTML:{hme(this,t);break}case q.BEFORE_HEAD:{gme(this,t);break}case q.IN_HEAD:{Ko(this,t);break}case q.IN_HEAD_NO_SCRIPT:{vme(this,t);break}case q.AFTER_HEAD:{Eme(this,t);break}case q.IN_BODY:{ia(this,t);break}case q.IN_TABLE:{td(this,t);break}case q.IN_TABLE_TEXT:{Uf(this,t);break}case q.IN_CAPTION:{yge(this,t);break}case q.IN_COLUMN_GROUP:{vC(this,t);break}case q.IN_TABLE_BODY:{gv(this,t);break}case q.IN_ROW:{yv(this,t);break}case q.IN_CELL:{_ge(this,t);break}case q.IN_SELECT:{I4(this,t);break}case q.IN_SELECT_IN_TABLE:{xge(this,t);break}case q.IN_TEMPLATE:{Tge(this,t);break}case q.AFTER_BODY:{Cge(this,t);break}case q.IN_FRAMESET:{Age(this,t);break}case q.AFTER_FRAMESET:{Nge(this,t);break}case q.AFTER_AFTER_BODY:{Oge(this,t);break}case q.AFTER_AFTER_FRAMESET:{Dge(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Pge(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case q.INITIAL:{Bf(this,t);break}case q.BEFORE_HTML:{mme(this,t);break}case q.BEFORE_HEAD:{yme(this,t);break}case q.IN_HEAD:{bme(this,t);break}case q.IN_HEAD_NO_SCRIPT:{_me(this,t);break}case q.AFTER_HEAD:{xme(this,t);break}case q.IN_BODY:{mv(this,t);break}case q.TEXT:{sge(this,t);break}case q.IN_TABLE:{Mp(this,t);break}case q.IN_TABLE_TEXT:{Uf(this,t);break}case q.IN_CAPTION:{bge(this,t);break}case q.IN_COLUMN_GROUP:{vge(this,t);break}case q.IN_TABLE_BODY:{bT(this,t);break}case q.IN_ROW:{D4(this,t);break}case q.IN_CELL:{Ege(this,t);break}case q.IN_SELECT:{L4(this,t);break}case q.IN_SELECT_IN_TABLE:{wge(this,t);break}case q.IN_TEMPLATE:{Sge(this,t);break}case q.AFTER_BODY:{P4(this,t);break}case q.IN_FRAMESET:{kge(this,t);break}case q.AFTER_FRAMESET:{Rge(this,t);break}case q.AFTER_AFTER_BODY:{ry(this,t);break}}}onEof(t){switch(this.insertionMode){case q.INITIAL:{Bf(this,t);break}case q.BEFORE_HTML:{mp(this,t);break}case q.BEFORE_HEAD:{gp(this,t);break}case q.IN_HEAD:{yp(this,t);break}case q.IN_HEAD_NO_SCRIPT:{bp(this,t);break}case q.AFTER_HEAD:{vp(this,t);break}case q.IN_BODY:case q.IN_TABLE:case q.IN_CAPTION:case q.IN_COLUMN_GROUP:case q.IN_TABLE_BODY:case q.IN_ROW:case q.IN_CELL:case q.IN_SELECT:case q.IN_SELECT_IN_TABLE:{k4(this,t);break}case q.TEXT:{lge(this,t);break}case q.IN_TABLE_TEXT:{Uf(this,t);break}case q.IN_TEMPLATE:{$4(this,t);break}case q.AFTER_BODY:case q.IN_FRAMESET:case q.AFTER_FRAMESET:case q.AFTER_AFTER_BODY:case q.AFTER_AFTER_FRAMESET:{bC(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===j.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case q.IN_HEAD:case q.IN_HEAD_NO_SCRIPT:case q.AFTER_HEAD:case q.TEXT:case q.IN_COLUMN_GROUP:case q.IN_SELECT:case q.IN_SELECT_IN_TABLE:case q.IN_FRAMESET:case q.AFTER_FRAMESET:{this._insertCharacters(t);break}case q.IN_BODY:case q.IN_CAPTION:case q.IN_CELL:case q.IN_TEMPLATE:case q.AFTER_BODY:case q.AFTER_AFTER_BODY:case q.AFTER_AFTER_FRAMESET:{w4(this,t);break}case q.IN_TABLE:case q.IN_TABLE_BODY:case q.IN_ROW:{px(this,t);break}case q.IN_TABLE_TEXT:{N4(this,t);break}}}}function ome(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):A4(e,t),n}function ime(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function sme(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let o=0,i=a;i!==n;o++,i=a){a=e.openElements.getCommonAncestor(i);const l=e.activeFormattingElements.getElementEntry(i),c=l&&o>=rme;!l||c?(c&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(i)):(i=lme(e,l),r===t&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(i,r),r=i)}return r}function lme(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function cme(e,t,n){const r=e.treeAdapter.getTagName(t),a=Td(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);a===T.TEMPLATE&&o===De.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function ume(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,o=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,a.tagID)}function yC(e,t){for(let n=0;n<nme;n++){const r=ome(e,t);if(!r)break;const a=ime(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const o=sme(e,a,r.element),i=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(o),i&&cme(e,i,o),ume(e,a,r)}}function yT(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function dme(e,t){e._appendCommentNode(t,e.openElements.items[0])}function fme(e,t){e._appendCommentNode(t,e.document)}function bC(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const o=e.openElements.items[1],i=e.treeAdapter.getNodeSourceCodeLocation(o);i&&!i.endTag&&e._setEndLocation(o,t)}}}}function pme(e,t){e._setDocumentType(t);const n=t.forceQuirks?bo.QUIRKS:Hhe(t);Fhe(t)||e._err(t,Ee.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=q.BEFORE_HTML}function Bf(e,t){e._err(t,Ee.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,bo.QUIRKS),e.insertionMode=q.BEFORE_HTML,e._processToken(t)}function hme(e,t){t.tagID===T.HTML?(e._insertElement(t,De.HTML),e.insertionMode=q.BEFORE_HEAD):mp(e,t)}function mme(e,t){const n=t.tagID;(n===T.HTML||n===T.HEAD||n===T.BODY||n===T.BR)&&mp(e,t)}function mp(e,t){e._insertFakeRootElement(),e.insertionMode=q.BEFORE_HEAD,e._processToken(t)}function gme(e,t){switch(t.tagID){case T.HTML:{ia(e,t);break}case T.HEAD:{e._insertElement(t,De.HTML),e.headElement=e.openElements.current,e.insertionMode=q.IN_HEAD;break}default:gp(e,t)}}function yme(e,t){const n=t.tagID;n===T.HEAD||n===T.BODY||n===T.HTML||n===T.BR?gp(e,t):e._err(t,Ee.endTagWithoutMatchingOpenElement)}function gp(e,t){e._insertFakeElement(ue.HEAD,T.HEAD),e.headElement=e.openElements.current,e.insertionMode=q.IN_HEAD,e._processToken(t)}function Ko(e,t){switch(t.tagID){case T.HTML:{ia(e,t);break}case T.BASE:case T.BASEFONT:case T.BGSOUND:case T.LINK:case T.META:{e._appendElement(t,De.HTML),t.ackSelfClosing=!0;break}case T.TITLE:{e._switchToTextParsing(t,Qn.RCDATA);break}case T.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Qn.RAWTEXT):(e._insertElement(t,De.HTML),e.insertionMode=q.IN_HEAD_NO_SCRIPT);break}case T.NOFRAMES:case T.STYLE:{e._switchToTextParsing(t,Qn.RAWTEXT);break}case T.SCRIPT:{e._switchToTextParsing(t,Qn.SCRIPT_DATA);break}case T.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=q.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(q.IN_TEMPLATE);break}case T.HEAD:{e._err(t,Ee.misplacedStartTagForHeadElement);break}default:yp(e,t)}}function bme(e,t){switch(t.tagID){case T.HEAD:{e.openElements.pop(),e.insertionMode=q.AFTER_HEAD;break}case T.BODY:case T.BR:case T.HTML:{yp(e,t);break}case T.TEMPLATE:{gc(e,t);break}default:e._err(t,Ee.endTagWithoutMatchingOpenElement)}}function gc(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==T.TEMPLATE&&e._err(t,Ee.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(T.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Ee.endTagWithoutMatchingOpenElement)}function yp(e,t){e.openElements.pop(),e.insertionMode=q.AFTER_HEAD,e._processToken(t)}function vme(e,t){switch(t.tagID){case T.HTML:{ia(e,t);break}case T.BASEFONT:case T.BGSOUND:case T.HEAD:case T.LINK:case T.META:case T.NOFRAMES:case T.STYLE:{Ko(e,t);break}case T.NOSCRIPT:{e._err(t,Ee.nestedNoscriptInHead);break}default:bp(e,t)}}function _me(e,t){switch(t.tagID){case T.NOSCRIPT:{e.openElements.pop(),e.insertionMode=q.IN_HEAD;break}case T.BR:{bp(e,t);break}default:e._err(t,Ee.endTagWithoutMatchingOpenElement)}}function bp(e,t){const n=t.type===Ot.EOF?Ee.openElementsLeftAfterEof:Ee.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=q.IN_HEAD,e._processToken(t)}function Eme(e,t){switch(t.tagID){case T.HTML:{ia(e,t);break}case T.BODY:{e._insertElement(t,De.HTML),e.framesetOk=!1,e.insertionMode=q.IN_BODY;break}case T.FRAMESET:{e._insertElement(t,De.HTML),e.insertionMode=q.IN_FRAMESET;break}case T.BASE:case T.BASEFONT:case T.BGSOUND:case T.LINK:case T.META:case T.NOFRAMES:case T.SCRIPT:case T.STYLE:case T.TEMPLATE:case T.TITLE:{e._err(t,Ee.abandonedHeadElementChild),e.openElements.push(e.headElement,T.HEAD),Ko(e,t),e.openElements.remove(e.headElement);break}case T.HEAD:{e._err(t,Ee.misplacedStartTagForHeadElement);break}default:vp(e,t)}}function xme(e,t){switch(t.tagID){case T.BODY:case T.HTML:case T.BR:{vp(e,t);break}case T.TEMPLATE:{gc(e,t);break}default:e._err(t,Ee.endTagWithoutMatchingOpenElement)}}function vp(e,t){e._insertFakeElement(ue.BODY,T.BODY),e.insertionMode=q.IN_BODY,hv(e,t)}function hv(e,t){switch(t.type){case Ot.CHARACTER:{T4(e,t);break}case Ot.WHITESPACE_CHARACTER:{w4(e,t);break}case Ot.COMMENT:{yT(e,t);break}case Ot.START_TAG:{ia(e,t);break}case Ot.END_TAG:{mv(e,t);break}case Ot.EOF:{k4(e,t);break}}}function w4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function T4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function wme(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Tme(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Sme(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,De.HTML),e.insertionMode=q.IN_FRAMESET)}function Cme(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,De.HTML)}function Ame(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),gT.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,De.HTML)}function kme(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,De.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Nme(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,De.HTML),n||(e.formElement=e.openElements.current))}function Rme(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===T.LI&&a===T.LI||(n===T.DD||n===T.DT)&&(a===T.DD||a===T.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==T.ADDRESS&&a!==T.DIV&&a!==T.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,De.HTML)}function Ome(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,De.HTML),e.tokenizer.state=Qn.PLAINTEXT}function Dme(e,t){e.openElements.hasInScope(T.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,De.HTML),e.framesetOk=!1}function Ime(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(ue.A);n&&(yC(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,De.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Lme(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,De.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function $me(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(T.NOBR)&&(yC(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,De.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Pme(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,De.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Mme(e,t){e.treeAdapter.getDocumentMode(e.document)!==bo.QUIRKS&&e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,De.HTML),e.framesetOk=!1,e.insertionMode=q.IN_TABLE}function S4(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,De.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function C4(e){const t=d4(e,Wl.TYPE);return t!=null&&t.toLowerCase()===tme}function jme(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,De.HTML),C4(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function zme(e,t){e._appendElement(t,De.HTML),t.ackSelfClosing=!0}function Bme(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._appendElement(t,De.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ume(e,t){t.tagName=ue.IMG,t.tagID=T.IMG,S4(e,t)}function Fme(e,t){e._insertElement(t,De.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Qn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=q.TEXT}function Hme(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Qn.RAWTEXT)}function Gme(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Qn.RAWTEXT)}function FL(e,t){e._switchToTextParsing(t,Qn.RAWTEXT)}function Vme(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,De.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===q.IN_TABLE||e.insertionMode===q.IN_CAPTION||e.insertionMode===q.IN_TABLE_BODY||e.insertionMode===q.IN_ROW||e.insertionMode===q.IN_CELL?q.IN_SELECT_IN_TABLE:q.IN_SELECT}function qme(e,t){e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,De.HTML)}function Yme(e,t){e.openElements.hasInScope(T.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,De.HTML)}function Wme(e,t){e.openElements.hasInScope(T.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(T.RTC),e._insertElement(t,De.HTML)}function Zme(e,t){e._reconstructActiveFormattingElements(),_4(t),gC(t),t.selfClosing?e._appendElement(t,De.MATHML):e._insertElement(t,De.MATHML),t.ackSelfClosing=!0}function Kme(e,t){e._reconstructActiveFormattingElements(),E4(t),gC(t),t.selfClosing?e._appendElement(t,De.SVG):e._insertElement(t,De.SVG),t.ackSelfClosing=!0}function HL(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,De.HTML)}function ia(e,t){switch(t.tagID){case T.I:case T.S:case T.B:case T.U:case T.EM:case T.TT:case T.BIG:case T.CODE:case T.FONT:case T.SMALL:case T.STRIKE:case T.STRONG:{Lme(e,t);break}case T.A:{Ime(e,t);break}case T.H1:case T.H2:case T.H3:case T.H4:case T.H5:case T.H6:{Ame(e,t);break}case T.P:case T.DL:case T.OL:case T.UL:case T.DIV:case T.DIR:case T.NAV:case T.MAIN:case T.MENU:case T.ASIDE:case T.CENTER:case T.FIGURE:case T.FOOTER:case T.HEADER:case T.HGROUP:case T.DIALOG:case T.DETAILS:case T.ADDRESS:case T.ARTICLE:case T.SEARCH:case T.SECTION:case T.SUMMARY:case T.FIELDSET:case T.BLOCKQUOTE:case T.FIGCAPTION:{Cme(e,t);break}case T.LI:case T.DD:case T.DT:{Rme(e,t);break}case T.BR:case T.IMG:case T.WBR:case T.AREA:case T.EMBED:case T.KEYGEN:{S4(e,t);break}case T.HR:{Bme(e,t);break}case T.RB:case T.RTC:{Yme(e,t);break}case T.RT:case T.RP:{Wme(e,t);break}case T.PRE:case T.LISTING:{kme(e,t);break}case T.XMP:{Hme(e,t);break}case T.SVG:{Kme(e,t);break}case T.HTML:{wme(e,t);break}case T.BASE:case T.LINK:case T.META:case T.STYLE:case T.TITLE:case T.SCRIPT:case T.BGSOUND:case T.BASEFONT:case T.TEMPLATE:{Ko(e,t);break}case T.BODY:{Tme(e,t);break}case T.FORM:{Nme(e,t);break}case T.NOBR:{$me(e,t);break}case T.MATH:{Zme(e,t);break}case T.TABLE:{Mme(e,t);break}case T.INPUT:{jme(e,t);break}case T.PARAM:case T.TRACK:case T.SOURCE:{zme(e,t);break}case T.IMAGE:{Ume(e,t);break}case T.BUTTON:{Dme(e,t);break}case T.APPLET:case T.OBJECT:case T.MARQUEE:{Pme(e,t);break}case T.IFRAME:{Gme(e,t);break}case T.SELECT:{Vme(e,t);break}case T.OPTION:case T.OPTGROUP:{qme(e,t);break}case T.NOEMBED:case T.NOFRAMES:{FL(e,t);break}case T.FRAMESET:{Sme(e,t);break}case T.TEXTAREA:{Fme(e,t);break}case T.NOSCRIPT:{e.options.scriptingEnabled?FL(e,t):HL(e,t);break}case T.PLAINTEXT:{Ome(e,t);break}case T.COL:case T.TH:case T.TD:case T.TR:case T.HEAD:case T.FRAME:case T.TBODY:case T.TFOOT:case T.THEAD:case T.CAPTION:case T.COLGROUP:break;default:HL(e,t)}}function Qme(e,t){if(e.openElements.hasInScope(T.BODY)&&(e.insertionMode=q.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Xme(e,t){e.openElements.hasInScope(T.BODY)&&(e.insertionMode=q.AFTER_BODY,P4(e,t))}function Jme(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function ege(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(T.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(T.FORM):n&&e.openElements.remove(n))}function tge(e){e.openElements.hasInButtonScope(T.P)||e._insertFakeElement(ue.P,T.P),e._closePElement()}function nge(e){e.openElements.hasInListItemScope(T.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(T.LI),e.openElements.popUntilTagNamePopped(T.LI))}function rge(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function age(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function oge(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ige(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(ue.BR,T.BR),e.openElements.pop(),e.framesetOk=!1}function A4(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const o=e.openElements.items[a],i=e.openElements.tagIDs[a];if(r===i&&(r!==T.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(o,i))break}}function mv(e,t){switch(t.tagID){case T.A:case T.B:case T.I:case T.S:case T.U:case T.EM:case T.TT:case T.BIG:case T.CODE:case T.FONT:case T.NOBR:case T.SMALL:case T.STRIKE:case T.STRONG:{yC(e,t);break}case T.P:{tge(e);break}case T.DL:case T.UL:case T.OL:case T.DIR:case T.DIV:case T.NAV:case T.PRE:case T.MAIN:case T.MENU:case T.ASIDE:case T.BUTTON:case T.CENTER:case T.FIGURE:case T.FOOTER:case T.HEADER:case T.HGROUP:case T.DIALOG:case T.ADDRESS:case T.ARTICLE:case T.DETAILS:case T.SEARCH:case T.SECTION:case T.SUMMARY:case T.LISTING:case T.FIELDSET:case T.BLOCKQUOTE:case T.FIGCAPTION:{Jme(e,t);break}case T.LI:{nge(e);break}case T.DD:case T.DT:{rge(e,t);break}case T.H1:case T.H2:case T.H3:case T.H4:case T.H5:case T.H6:{age(e);break}case T.BR:{ige(e);break}case T.BODY:{Qme(e,t);break}case T.HTML:{Xme(e,t);break}case T.FORM:{ege(e);break}case T.APPLET:case T.OBJECT:case T.MARQUEE:{oge(e,t);break}case T.TEMPLATE:{gc(e,t);break}default:A4(e,t)}}function k4(e,t){e.tmplInsertionModeStack.length>0?$4(e,t):bC(e,t)}function sge(e,t){var n;t.tagID===T.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function lge(e,t){e._err(t,Ee.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function px(e,t){if(x4.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=q.IN_TABLE_TEXT,t.type){case Ot.CHARACTER:{R4(e,t);break}case Ot.WHITESPACE_CHARACTER:{N4(e,t);break}}else Ah(e,t)}function cge(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,De.HTML),e.insertionMode=q.IN_CAPTION}function uge(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,De.HTML),e.insertionMode=q.IN_COLUMN_GROUP}function dge(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ue.COLGROUP,T.COLGROUP),e.insertionMode=q.IN_COLUMN_GROUP,vC(e,t)}function fge(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,De.HTML),e.insertionMode=q.IN_TABLE_BODY}function pge(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ue.TBODY,T.TBODY),e.insertionMode=q.IN_TABLE_BODY,gv(e,t)}function hge(e,t){e.openElements.hasInTableScope(T.TABLE)&&(e.openElements.popUntilTagNamePopped(T.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function mge(e,t){C4(t)?e._appendElement(t,De.HTML):Ah(e,t),t.ackSelfClosing=!0}function gge(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,De.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function td(e,t){switch(t.tagID){case T.TD:case T.TH:case T.TR:{pge(e,t);break}case T.STYLE:case T.SCRIPT:case T.TEMPLATE:{Ko(e,t);break}case T.COL:{dge(e,t);break}case T.FORM:{gge(e,t);break}case T.TABLE:{hge(e,t);break}case T.TBODY:case T.TFOOT:case T.THEAD:{fge(e,t);break}case T.INPUT:{mge(e,t);break}case T.CAPTION:{cge(e,t);break}case T.COLGROUP:{uge(e,t);break}default:Ah(e,t)}}function Mp(e,t){switch(t.tagID){case T.TABLE:{e.openElements.hasInTableScope(T.TABLE)&&(e.openElements.popUntilTagNamePopped(T.TABLE),e._resetInsertionMode());break}case T.TEMPLATE:{gc(e,t);break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:case T.TBODY:case T.TD:case T.TFOOT:case T.TH:case T.THEAD:case T.TR:break;default:Ah(e,t)}}function Ah(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,hv(e,t),e.fosterParentingEnabled=n}function N4(e,t){e.pendingCharacterTokens.push(t)}function R4(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Uf(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Ah(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const O4=new Set([T.CAPTION,T.COL,T.COLGROUP,T.TBODY,T.TD,T.TFOOT,T.TH,T.THEAD,T.TR]);function yge(e,t){const n=t.tagID;O4.has(n)?e.openElements.hasInTableScope(T.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=q.IN_TABLE,td(e,t)):ia(e,t)}function bge(e,t){const n=t.tagID;switch(n){case T.CAPTION:case T.TABLE:{e.openElements.hasInTableScope(T.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=q.IN_TABLE,n===T.TABLE&&Mp(e,t));break}case T.BODY:case T.COL:case T.COLGROUP:case T.HTML:case T.TBODY:case T.TD:case T.TFOOT:case T.TH:case T.THEAD:case T.TR:break;default:mv(e,t)}}function vC(e,t){switch(t.tagID){case T.HTML:{ia(e,t);break}case T.COL:{e._appendElement(t,De.HTML),t.ackSelfClosing=!0;break}case T.TEMPLATE:{Ko(e,t);break}default:Yy(e,t)}}function vge(e,t){switch(t.tagID){case T.COLGROUP:{e.openElements.currentTagId===T.COLGROUP&&(e.openElements.pop(),e.insertionMode=q.IN_TABLE);break}case T.TEMPLATE:{gc(e,t);break}case T.COL:break;default:Yy(e,t)}}function Yy(e,t){e.openElements.currentTagId===T.COLGROUP&&(e.openElements.pop(),e.insertionMode=q.IN_TABLE,e._processToken(t))}function gv(e,t){switch(t.tagID){case T.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,De.HTML),e.insertionMode=q.IN_ROW;break}case T.TH:case T.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(ue.TR,T.TR),e.insertionMode=q.IN_ROW,yv(e,t);break}case T.CAPTION:case T.COL:case T.COLGROUP:case T.TBODY:case T.TFOOT:case T.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE,td(e,t));break}default:td(e,t)}}function bT(e,t){const n=t.tagID;switch(t.tagID){case T.TBODY:case T.TFOOT:case T.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE);break}case T.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE,Mp(e,t));break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:case T.TD:case T.TH:case T.TR:break;default:Mp(e,t)}}function yv(e,t){switch(t.tagID){case T.TH:case T.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,De.HTML),e.insertionMode=q.IN_CELL,e.activeFormattingElements.insertMarker();break}case T.CAPTION:case T.COL:case T.COLGROUP:case T.TBODY:case T.TFOOT:case T.THEAD:case T.TR:{e.openElements.hasInTableScope(T.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE_BODY,gv(e,t));break}default:td(e,t)}}function D4(e,t){switch(t.tagID){case T.TR:{e.openElements.hasInTableScope(T.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE_BODY);break}case T.TABLE:{e.openElements.hasInTableScope(T.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE_BODY,bT(e,t));break}case T.TBODY:case T.TFOOT:case T.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(T.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE_BODY,bT(e,t));break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:case T.TD:case T.TH:break;default:Mp(e,t)}}function _ge(e,t){const n=t.tagID;O4.has(n)?(e.openElements.hasInTableScope(T.TD)||e.openElements.hasInTableScope(T.TH))&&(e._closeTableCell(),yv(e,t)):ia(e,t)}function Ege(e,t){const n=t.tagID;switch(n){case T.TD:case T.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=q.IN_ROW);break}case T.TABLE:case T.TBODY:case T.TFOOT:case T.THEAD:case T.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),D4(e,t));break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:break;default:mv(e,t)}}function I4(e,t){switch(t.tagID){case T.HTML:{ia(e,t);break}case T.OPTION:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e._insertElement(t,De.HTML);break}case T.OPTGROUP:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop(),e._insertElement(t,De.HTML);break}case T.HR:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop(),e._appendElement(t,De.HTML),t.ackSelfClosing=!0;break}case T.INPUT:case T.KEYGEN:case T.TEXTAREA:case T.SELECT:{e.openElements.hasInSelectScope(T.SELECT)&&(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode(),t.tagID!==T.SELECT&&e._processStartTag(t));break}case T.SCRIPT:case T.TEMPLATE:{Ko(e,t);break}}}function L4(e,t){switch(t.tagID){case T.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===T.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===T.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop();break}case T.OPTION:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop();break}case T.SELECT:{e.openElements.hasInSelectScope(T.SELECT)&&(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode());break}case T.TEMPLATE:{gc(e,t);break}}}function xge(e,t){const n=t.tagID;n===T.CAPTION||n===T.TABLE||n===T.TBODY||n===T.TFOOT||n===T.THEAD||n===T.TR||n===T.TD||n===T.TH?(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode(),e._processStartTag(t)):I4(e,t)}function wge(e,t){const n=t.tagID;n===T.CAPTION||n===T.TABLE||n===T.TBODY||n===T.TFOOT||n===T.THEAD||n===T.TR||n===T.TD||n===T.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode(),e.onEndTag(t)):L4(e,t)}function Tge(e,t){switch(t.tagID){case T.BASE:case T.BASEFONT:case T.BGSOUND:case T.LINK:case T.META:case T.NOFRAMES:case T.SCRIPT:case T.STYLE:case T.TEMPLATE:case T.TITLE:{Ko(e,t);break}case T.CAPTION:case T.COLGROUP:case T.TBODY:case T.TFOOT:case T.THEAD:{e.tmplInsertionModeStack[0]=q.IN_TABLE,e.insertionMode=q.IN_TABLE,td(e,t);break}case T.COL:{e.tmplInsertionModeStack[0]=q.IN_COLUMN_GROUP,e.insertionMode=q.IN_COLUMN_GROUP,vC(e,t);break}case T.TR:{e.tmplInsertionModeStack[0]=q.IN_TABLE_BODY,e.insertionMode=q.IN_TABLE_BODY,gv(e,t);break}case T.TD:case T.TH:{e.tmplInsertionModeStack[0]=q.IN_ROW,e.insertionMode=q.IN_ROW,yv(e,t);break}default:e.tmplInsertionModeStack[0]=q.IN_BODY,e.insertionMode=q.IN_BODY,ia(e,t)}}function Sge(e,t){t.tagID===T.TEMPLATE&&gc(e,t)}function $4(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(T.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):bC(e,t)}function Cge(e,t){t.tagID===T.HTML?ia(e,t):Wy(e,t)}function P4(e,t){var n;if(t.tagID===T.HTML){if(e.fragmentContext||(e.insertionMode=q.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===T.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Wy(e,t)}function Wy(e,t){e.insertionMode=q.IN_BODY,hv(e,t)}function Age(e,t){switch(t.tagID){case T.HTML:{ia(e,t);break}case T.FRAMESET:{e._insertElement(t,De.HTML);break}case T.FRAME:{e._appendElement(t,De.HTML),t.ackSelfClosing=!0;break}case T.NOFRAMES:{Ko(e,t);break}}}function kge(e,t){t.tagID===T.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==T.FRAMESET&&(e.insertionMode=q.AFTER_FRAMESET))}function Nge(e,t){switch(t.tagID){case T.HTML:{ia(e,t);break}case T.NOFRAMES:{Ko(e,t);break}}}function Rge(e,t){t.tagID===T.HTML&&(e.insertionMode=q.AFTER_AFTER_FRAMESET)}function Oge(e,t){t.tagID===T.HTML?ia(e,t):ry(e,t)}function ry(e,t){e.insertionMode=q.IN_BODY,hv(e,t)}function Dge(e,t){switch(t.tagID){case T.HTML:{ia(e,t);break}case T.NOFRAMES:{Ko(e,t);break}}}function Ige(e,t){t.chars=Nn,e._insertCharacters(t)}function Lge(e,t){e._insertCharacters(t),e.framesetOk=!1}function M4(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==De.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function $ge(e,t){if(Khe(t))M4(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===De.MATHML?_4(t):r===De.SVG&&(Qhe(t),E4(t)),gC(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Pge(e,t){if(t.tagID===T.P||t.tagID===T.BR){M4(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===De.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}ue.AREA,ue.BASE,ue.BASEFONT,ue.BGSOUND,ue.BR,ue.COL,ue.EMBED,ue.FRAME,ue.HR,ue.IMG,ue.INPUT,ue.KEYGEN,ue.LINK,ue.META,ue.PARAM,ue.SOURCE,ue.TRACK,ue.WBR;const Mge=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,jge=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),GL={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function j4(e,t){const n=Wge(e),r=KS("type",{handlers:{root:zge,element:Bge,text:Uge,comment:B4,doctype:Fge,raw:Gge},unknown:Vge}),a={parser:n?new UL(GL):UL.getFragmentParser(void 0,GL),handle(l){r(l,a)},stitches:!1,options:t||{}};r(e,a),Sd(a,mi());const o=n?a.parser.document:a.parser.getFragment(),i=Kpe(o,{file:a.options.file});return a.stitches&&fd(i,"comment",function(l,c,d){const p=l;if(p.value.stitch&&d&&c!==void 0){const h=d.children;return h[c]=p.value.stitch,c}}),i.type==="root"&&i.children.length===1&&i.children[0].type===e.type?i.children[0]:i}function z4(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function zge(e,t){z4(e.children,t)}function Bge(e,t){qge(e,t),z4(e.children,t),Yge(e,t)}function Uge(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Ot.CHARACTER,chars:e.value,location:kh(e)};Sd(t,mi(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Fge(e,t){const n={type:Ot.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:kh(e)};Sd(t,mi(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Hge(e,t){t.stitches=!0;const n=Zge(e);if("children"in e&&"children"in n){const r=j4({type:"root",children:e.children},t.options);n.children=r.children}B4({type:"comment",value:{stitch:n}},t)}function B4(e,t){const n=e.value,r={type:Ot.COMMENT,data:n,location:kh(e)};Sd(t,mi(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Gge(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,U4(t,mi(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Mge,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Vge(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Hge(n,t);else{let r="";throw jge.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Sd(e,t){U4(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Qn.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function U4(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function qge(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Qn.PLAINTEXT)return;Sd(t,mi(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Hl.html;a===Hl.html&&n==="svg"&&(a=Hl.svg);const o=the({...e,children:[]},{space:a===Hl.svg?"svg":"html"}),i={type:Ot.START_TAG,tagName:n,tagID:Td(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:kh(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Yge(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Cj.includes(n)||t.parser.tokenizer.state===Qn.PLAINTEXT)return;Sd(t,Pb(e));const r={type:Ot.END_TAG,tagName:n,tagID:Td(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:kh(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Qn.RCDATA||t.parser.tokenizer.state===Qn.RAWTEXT||t.parser.tokenizer.state===Qn.SCRIPT_DATA)&&(t.parser.tokenizer.state=Qn.DATA)}function Wge(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function kh(e){const t=mi(e)||{line:void 0,column:void 0,offset:void 0},n=Pb(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Zge(e){return"children"in e?SL({...e,children:[]}):SL(e)}function Kge(e){return function(t,n){return j4(t,{...e,file:n})}}function Qge(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Xge(e,t,n){const r=Mb((n||{}).ignore||[]),a=Jge(t);let o=-1;for(;++o<a.length;)Sj(e,"text",i);function i(c,d){let p=-1,h;for(;++p<d.length;){const g=d[p],y=h?h.children:void 0;if(r(g,y?y.indexOf(g):void 0,h))return;h=g}if(h)return l(c,d)}function l(c,d){const p=d[d.length-1],h=a[o][0],g=a[o][1];let y=0;const v=p.children.indexOf(c);let x=!1,C=[];h.lastIndex=0;let S=h.exec(c.value);for(;S;){const A=S.index,k={index:S.index,input:S.input,stack:[...d,c]};let N=g(...S,k);if(typeof N=="string"&&(N=N.length>0?{type:"text",value:N}:void 0),N===!1?h.lastIndex=A+1:(y!==A&&C.push({type:"text",value:c.value.slice(y,A)}),Array.isArray(N)?C.push(...N):N&&C.push(N),y=A+S[0].length,x=!0),!h.global)break;S=h.exec(c.value)}return x?(y<c.value.length&&C.push({type:"text",value:c.value.slice(y)}),p.children.splice(v,1,...C)):C=[c],v+C.length}}function Jge(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([eye(a[0]),tye(a[1])])}return t}function eye(e){return typeof e=="string"?new RegExp(Qge(e),"g"):e}function tye(e){return typeof e=="function"?e:function(){return e}}const hx="phrasing",mx=["autolink","link","image","label"];
vendor: 4,824 bytes, lines 653-654
653function nye(){return{transforms:[cye],enter:{literalAutolink:aye,literalAutolinkEmail:gx,literalAutolinkHttp:gx,literalAutolinkWww:gx},exit:{literalAutolink:lye,literalAutolinkEmail:sye,literalAutolinkHttp:oye,literalAutolinkWww:iye}}}function rye(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:hx,notInConstruct:mx},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:hx,notInConstruct:mx},{character:":",before:"[ps]",after:"\\/",inConstruct:hx,notInConstruct:mx}]}}function aye(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function gx(e){this.config.enter.autolinkProtocol.call(this,e)}function oye(e){this.config.exit.autolinkProtocol.call(this,e)}function iye(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function sye(e){this.config.exit.autolinkEmail.call(this,e)}function lye(e){this.exit(e)}function cye(e){Xge(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,uye],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,dye]],{ignore:["link","linkReference"]})}function uye(e,t,n,r,a){let o="";if(!F4(a)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!fye(n)))return!1;const i=pye(n+r);if(!i[0])return!1;const l={type:"link",title:null,url:o+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[l,{type:"text",value:i[1]}]:l}function dye(e,t,n,r){return!F4(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function fye(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function pye(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=vy(e,"(");let o=vy(e,")");for(;r!==-1&&a>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function F4(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||tc(n)||lv(n))&&(!t||n!==47)}H4.peek=xye;function hye(){this.buffer()}function mye(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function gye(){this.buffer()}function yye(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function bye(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Uo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function vye(e){this.exit(e)}function _ye(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Uo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Eye(e){this.exit(e)}function xye(){return"["}function H4(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const i=n.enter("footnoteReference"),l=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),l(),i(),o+=a.move("]"),o}function wye(){return{enter:{gfmFootnoteCallString:hye,gfmFootnoteCall:mye,gfmFootnoteDefinitionLabelString:gye,gfmFootnoteDefinition:yye},exit:{gfmFootnoteCallString:bye,gfmFootnoteCall:vye,gfmFootnoteDefinitionLabelString:_ye,gfmFootnoteDefinition:Eye}}}function Tye(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:H4},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,o,i){const l=o.createTracker(i);let c=l.move("[^");const d=o.enter("footnoteDefinition"),p=o.enter("label");return c+=l.move(o.safe(o.associationId(r),{before:c,after:"]"})),p(),c+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),c+=l.move((t?` 654`:" ")+o.indentLines(o.containerFlow(r,l.current()),t?G4:Sye))),d(),c}}function Sye(e,t,n){return t===0?e:G4(e,t,n)}function G4(e,t,n){return(n?"":" ")+e}const Cye=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];V4.peek=Oye;function Aye(){return{canContainEols:["delete"],enter:{strikethrough:Nye},exit:{strikethrough:Rye}}}function kye(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Cye}],handlers:{delete:V4}}}function Nye(e){this.enter({type:"delete",children:[]},e)}function Rye(e){this.exit(e)}function V4(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let i=a.move("~~");return i+=n.containerPhrasing(e,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),o(),i}function Oye(){return"~"}function Dye(e){return e.length}function Iye(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||Dye,o=[],i=[],l=[],c=[];let d=0,p=-1;for(;++p<e.length;){const x=[],C=[];let S=-1;for(e[p].length>d&&(d=e[p].length);++S<e[p].length;){const A=Lye(e[p][S]);if(n.alignDelimiters!==!1){const k=a(A);C[S]=k,(c[S]===void 0||k>c[S])&&(c[S]=k)}x.push(A)}i[p]=x,l[p]=C}let h=-1;if(typeof r=="object"&&"length"in r)for(;
vendor: 10,894 bytes, lines 654-666
654++h<d;)o[h]=VL(r[h]);else{const x=VL(r);for(;++h<d;)o[h]=x}h=-1;const g=[],y=[];for(;++h<d;){const x=o[h];let C="",S="";x===99?(C=":",S=":"):x===108?C=":":x===114&&(S=":");let A=n.alignDelimiters===!1?1:Math.max(1,c[h]-C.length-S.length);const k=C+"-".repeat(A)+S;n.alignDelimiters!==!1&&(A=C.length+A+S.length,A>c[h]&&(c[h]=A),y[h]=A),g[h]=k}i.splice(1,0,g),l.splice(1,0,y),p=-1;const v=[];for(;++p<i.length;){const x=i[p],C=l[p];h=-1;const S=[];for(;++h<d;){const A=x[h]||"";let k="",N="";if(n.alignDelimiters!==!1){const O=c[h]-(C[h]||0),I=o[h];I===114?k=" ".repeat(O):I===99?O%2?(k=" ".repeat(O/2+.5),N=" ".repeat(O/2-.5)):(k=" ".repeat(O/2),N=k):N=" ".repeat(O)}n.delimiterStart!==!1&&!h&&S.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&A==="")&&(n.delimiterStart!==!1||h)&&S.push(" "),n.alignDelimiters!==!1&&S.push(k),S.push(A),n.alignDelimiters!==!1&&S.push(N),n.padding!==!1&&S.push(" "),(n.delimiterEnd!==!1||h!==d-1)&&S.push("|")}v.push(n.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return v.join(` 655`)}function Lye(e){return e==null?"":String(e)}function VL(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function $ye(e,t,n,r){const a=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const i=n.indentLines(n.containerFlow(e,o.current()),Pye);return a(),i}function Pye(e,t,n){return">"+(n?"":" ")+e}function Mye(e,t){return qL(e,t.inConstruct,!0)&&!qL(e,t.notInConstruct,!1)}function qL(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function YL(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===` 656`&&Mye(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\ 657`}function jye(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,i=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++o>i&&(i=o):o=1,a=r+t.length,r=n.indexOf(t,a);return i}function zye(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Bye(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Uye(e,t,n,r){const a=Bye(n),o=e.value||"",i=a==="`"?"GraveAccent":"Tilde";if(zye(e,n)){const h=n.enter("codeIndented"),g=n.indentLines(o,Fye);return h(),g}const l=n.createTracker(r),c=a.repeat(Math.max(jye(o,a)+1,3)),d=n.enter("codeFenced");let p=l.move(c);if(e.lang){const h=n.enter(`codeFencedLang${i}`);p+=l.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...l.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${i}`);p+=l.move(" "),p+=l.move(n.safe(e.meta,{before:p,after:` 658`,encode:["`"],...l.current()})),h()}return p+=l.move(` 659`),o&&(p+=l.move(o+` 660`)),p+=l.move(c),d(),p}function Fye(e,t,n){return(n?"":" ")+e}function _C(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Hye(e,t,n,r){const a=_C(n),o=a==='"'?"Quote":"Apostrophe",i=n.enter("definition");let l=n.enter("label");const c=n.createTracker(r);let d=c.move("[");return d+=c.move(n.safe(n.associationId(e),{before:d,after:"]",...c.current()})),d+=c.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),d+=c.move("<"),d+=c.move(n.safe(e.url,{before:d,after:">",...c.current()})),d+=c.move(">")):(l=n.enter("destinationRaw"),d+=c.move(n.safe(e.url,{before:d,after:e.title?" ":` 661`,...c.current()}))),l(),e.title&&(l=n.enter(`title${o}`),d+=c.move(" "+a),d+=c.move(n.safe(e.title,{before:d,after:a,...c.current()})),d+=c.move(a),l()),i(),d}function Gye(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function jp(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Zy(e,t,n){const r=ed(e),a=ed(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}q4.peek=Vye;function q4(e,t,n,r){const a=Gye(n),o=n.enter("emphasis"),i=n.createTracker(r),l=i.move(a);let c=i.move(n.containerPhrasing(e,{after:a,before:l,...i.current()}));const d=c.charCodeAt(0),p=Zy(r.before.charCodeAt(r.before.length-1),d,a);p.inside&&(c=jp(d)+c.slice(1));const h=c.charCodeAt(c.length-1),g=Zy(r.after.charCodeAt(0),h,a);g.inside&&(c=c.slice(0,-1)+jp(h));const y=i.move(a);return o(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},l+c+y}function Vye(e,t,n){return n.options.emphasis||"*"}function qye(e,t){let n=!1;return fd(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Sw}),!!((!e.depth||e.depth<3)&&tC(e)&&(t.options.setext||n))}function Yye(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(qye(e,n)){const p=n.enter("headingSetext"),h=n.enter("phrasing"),g=n.containerPhrasing(e,{...o.current(),before:` 662`,after:` 663`});return h(),p(),g+` 664`+(a===1?"=":"-").repeat(g.length-(Math.max(g.lastIndexOf("\r"),g.lastIndexOf(` 665`))+1))}const i="#".repeat(a),l=n.enter("headingAtx"),c=n.enter("phrasing");o.move(i+" ");let d=n.containerPhrasing(e,{before:"# ",after:` 666`,...o.current()});return/^[\t ]/.test(d)&&(d=jp(d.charCodeAt(0))+d.slice(1)),d=d?i+" "+d:i,n.options.closeAtx&&(d+=" "+i),c(),l(),d}Y4.peek=Wye;function Y4(e){return e.value||""}function Wye(){return"<"}W4.peek=Zye;function W4(e,t,n,r){const a=_C(n),o=a==='"'?"Quote":"Apostrophe",i=n.enter("image");let l=n.enter("label");const c=n.createTracker(r);let d=c.move("![");return d+=c.move(n.safe(e.alt,{before:d,after:"]",...c.current()})),d+=c.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),d+=c.move("<"),d+=c.move(n.safe(e.url,{before:d,after:">",...c.current()})),d+=c.move(">")):(l=n.enter("destinationRaw"),d+=c.move(n.safe(e.url,{before:d,after:e.title?" ":")",...c.current()}))),l(),e.title&&(l=n.enter(`title${o}`),d+=c.move(" "+a),d+=c.move(n.safe(e.title,{before:d,after:a,...c.current()})),d+=c.move(a),l()),d+=c.move(")"),i(),d}function Zye(){return"!"}Z4.peek=Kye;function Z4(e,t,n,r){const a=e.referenceType,o=n.enter("imageReference");let i=n.enter("label");const l=n.createTracker(r);let c=l.move("![");const d=n.safe(e.alt,{before:c,after:"]",...l.current()});c+=l.move(d+"]["),i();const p=n.stack;n.stack=[],i=n.enter("reference");const h=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return i(),n.stack=p,o(),a==="full"||!d||d!==h?c+=l.move(h+"]"):a==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function Kye(){return"!"}K4.peek=Qye;function K4(e,t,n){let r=e.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const i=n.unsafe[o],l=n.compilePattern(i);let c;if(i.atBreak)for(;c=l.exec(r);){let d=c.index;r.charCodeAt(d)===10&&r.charCodeAt(d-1)===13&&d--,r=r.slice(0,d)+" "+r.slice(c.index+1)}}return a+r+a}function Qye(){return"`"}function Q4(e,t){const n=tC(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}X4.peek=Xye;function X4(e,t,n,r){const a=_C(n),o=a==='"'?"Quote":"Apostrophe",i=n.createTracker(r);let l,c;if(Q4(e,n)){const p=n.stack;n.stack=[],l=n.enter("autolink");let h=i.move("<");return h+=i.move(n.containerPhrasing(e,{before:h,after:">",...i.current()})),h+=i.move(">"),l(),n.stack=p,h}l=n.enter("link"),c=n.enter("label");let d=i.move("[");return d+=i.move(n.containerPhrasing(e,{before:d,after:"](",...i.current()})),d+=i.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),d+=i.move("<"),d+=i.move(n.safe(e.url,{before:d,after:">",...i.current()})),d+=i.move(">")):(c=n.enter("destinationRaw"),d+=i.move(n.safe(e.url,{before:d,after:e.title?" ":")",...i.current()}))),c(),e.title&&(c=n.enter(`title${o}`),d+=i.move(" "+a),d+=i.move(n.safe(e.title,{before:d,after:a,...i.current()})),d+=i.move(a),c()),d+=i.move(")"),l(),d}function Xye(e,t,n){return Q4(e,n)?"<":"["}J4.peek=Jye;function J4(e,t,n,r){const a=e.referenceType,o=n.enter("linkReference");let i=n.enter("label");const l=n.createTracker(r);let c=l.move("[");const d=n.containerPhrasing(e,{before:c,after:"]",...l.current()});c+=l.move(d+"]["),i();const p=n.stack;n.stack=[],i=n.enter("reference");const h=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return i(),n.stack=p,o(),a==="full"||!d||d!==h?c+=l.move(h+"]"):a==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function Jye(){return"["}function EC(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ebe(e){const t=EC(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function tbe(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function e3(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function nbe(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let i=e.ordered?tbe(n):EC(n);const l=e.ordered?i==="."?")":".":ebe(n);let c=t&&n.bulletLastUsed?i===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((i==="*"||i==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),e3(n)===i&&p){let h=-1;for(;++h<e.children.length;){const g=e.children[h];if(g&&g.type==="listItem"&&g.children&&g.children[0]&&g.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(i=l),n.bulletCurrent=i;const d=n.containerFlow(e,r);return n.bulletLastUsed=i,n.bulletCurrent=o,a(),d}function rbe(e){const t=e.options.listItemIndent||"one";
vendor: 7,011 bytes, lines 666-668
666if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function abe(e,t,n,r){const a=rbe(n);let o=n.bulletCurrent||EC(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let i=o.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);const l=n.createTracker(r);l.move(o+" ".repeat(i-o.length)),l.shift(i);const c=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,l.current()),p);return c(),d;function p(h,g,y){return g?(y?"":" ".repeat(i))+h:(y?o:o+" ".repeat(i-o.length))+h}}function obe(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),i=n.containerPhrasing(e,r);return o(),a(),i}const ibe=Mb(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function sbe(e,t,n,r){return(e.children.some(function(a){return ibe(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function lbe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}t3.peek=cbe;function t3(e,t,n,r){const a=lbe(n),o=n.enter("strong"),i=n.createTracker(r),l=i.move(a+a);let c=i.move(n.containerPhrasing(e,{after:a,before:l,...i.current()}));const d=c.charCodeAt(0),p=Zy(r.before.charCodeAt(r.before.length-1),d,a);p.inside&&(c=jp(d)+c.slice(1));const h=c.charCodeAt(c.length-1),g=Zy(r.after.charCodeAt(0),h,a);g.inside&&(c=c.slice(0,-1)+jp(h));const y=i.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},l+c+y}function cbe(e,t,n){return n.options.strong||"*"}function ube(e,t,n,r){return n.safe(e.value,r)}function dbe(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function fbe(e,t,n){const r=(e3(n)+(n.options.ruleSpaces?" ":"")).repeat(dbe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const n3={blockquote:$ye,break:YL,code:Uye,definition:Hye,emphasis:q4,hardBreak:YL,heading:Yye,html:Y4,image:W4,imageReference:Z4,inlineCode:K4,link:X4,linkReference:J4,list:nbe,listItem:abe,paragraph:obe,root:sbe,strong:t3,text:ube,thematicBreak:fbe};function pbe(){return{enter:{table:hbe,tableData:WL,tableHeader:WL,tableRow:gbe},exit:{codeText:ybe,table:mbe,tableData:yx,tableHeader:yx,tableRow:yx}}}function hbe(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function mbe(e){this.exit(e),this.data.inTable=void 0}function gbe(e){this.enter({type:"tableRow",children:[]},e)}function yx(e){this.exit(e)}function WL(e){this.enter({type:"tableCell",children:[]},e)}function ybe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,bbe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function bbe(e,t){return t==="|"?t:e}function vbe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 667`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:g,table:i,tableCell:c,tableRow:l}};function i(y,v,x,C){return d(p(y,x,C),y.align)}function l(y,v,x,C){const S=h(y,x,C),A=d([S]);return A.slice(0,A.indexOf(` 668`))}function c(y,v,x,C){const S=x.enter("tableCell"),A=x.enter("phrasing"),k=x.containerPhrasing(y,{...C,before:o,after:o});return A(),S(),k}function d(y,v){return Iye(y,{align:v,alignDelimiters:r,padding:n,stringLength:a})}function p(y,v,x){const C=y.children;let S=-1;const A=[],k=v.enter("table");for(;++S<C.length;)A[S]=h(C[S],v,x);return k(),A}function h(y,v,x){const C=y.children;let S=-1;const A=[],k=v.enter("tableRow");for(;++S<C.length;)A[S]=c(C[S],y,v,x);return k(),A}function g(y,v,x){let C=n3.inlineCode(y,v,x);return x.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function _be(){return{exit:{taskListCheckValueChecked:ZL,taskListCheckValueUnchecked:ZL,paragraph:xbe}}}function Ebe(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:wbe}}}function ZL(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function xbe(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let o=-1,i;for(;++o<a.length;){const l=a[o];if(l.type==="paragraph"){i=l;break}}i===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function wbe(e,t,n,r){const a=e.children[0],o=typeof e.checked=="boolean"&&a&&a.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);o&&l.move(i);let c=n3.listItem(e,t,n,{...r,...l.current()});return o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),c;function d(p){return p+i}}function Tbe(){return[nye(),wye(),Aye(),pbe(),_be()]}function Sbe(e){return{extensions:[rye(),Tye(e),kye(),vbe(e),Ebe()]}}const Cbe={tokenize:Dbe,partial:!0},r3={tokenize:Ibe,partial:!0},a3={tokenize:Lbe,partial:!0},o3={tokenize:$be,partial:!0},Abe={tokenize:Pbe,partial:!0},i3={name:"wwwAutolink",tokenize:Rbe,previous:l3},s3={name:"protocolAutolink",tokenize:Obe,previous:c3},as={name:"emailAutolink",tokenize:Nbe,previous:u3},yi={};function kbe(){return{text:yi}}let Ll=48;for(;Ll<123;)yi[Ll]=as,Ll++,Ll===58?Ll=65:Ll===91&&(Ll=97);yi[43]=as;yi[45]=as;yi[46]=as;yi[95]=as;yi[72]=[as,s3];yi[104]=[as,s3];yi[87]=[as,i3];yi[119]=[as,i3];function Nbe(e,t,n){const r=this;let a,o;return i;function i(h){return!vT(h)||!u3.call(r,r.previous)||xC(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return vT(h)?(e.consume(h),l):h===64?(e.consume(h),c):n(h)}function c(h){return h===46?e.check(Abe,p,d)(h):h===45||h===95||na(h)?(o=!0,e.consume(h),c):p(h)}function d(h){return e.consume(h),a=!0,c}function p(h){return o&&a&&fa(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function Rbe(e,t,n){const r=this;return a;function a(i){return i!==87&&i!==119||!l3.call(r,r.previous)||xC(r.events)?n(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Cbe,e.attempt(r3,e.attempt(a3,o),n),n)(i))}function o(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function Obe(e,t,n){const r=this;let a="",o=!1;return i;
vendor: 8,522 bytes, line 668
668function i(h){return(h===72||h===104)&&c3.call(r,r.previous)&&!xC(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(h),e.consume(h),l):n(h)}function l(h){if(fa(h)&&a.length<5)return a+=String.fromCodePoint(h),e.consume(h),l;if(h===58){const g=a.toLowerCase();if(g==="http"||g==="https")return e.consume(h),c}return n(h)}function c(h){return h===47?(e.consume(h),o?d:(o=!0,c)):n(h)}function d(h){return h===null||Uy(h)||gn(h)||tc(h)||lv(h)?n(h):e.attempt(r3,e.attempt(a3,p),n)(h)}function p(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function Dbe(e,t,n){let r=0;return a;function a(i){return(i===87||i===119)&&r<3?(r++,e.consume(i),a):i===46&&r===3?(e.consume(i),o):n(i)}function o(i){return i===null?n(i):t(i)}}function Ibe(e,t,n){let r,a,o;return i;function i(d){return d===46||d===95?e.check(o3,c,l)(d):d===null||gn(d)||tc(d)||d!==45&&lv(d)?c(d):(o=!0,e.consume(d),i)}function l(d){return d===95?r=!0:(a=r,r=void 0),e.consume(d),i}function c(d){return a||r||!o?n(d):t(d)}}function Lbe(e,t){let n=0,r=0;return a;function a(i){return i===40?(n++,e.consume(i),a):i===41&&r<n?o(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(o3,t,o)(i):i===null||gn(i)||tc(i)?t(i):(e.consume(i),a)}function o(i){return i===41&&r++,e.consume(i),a}}function $be(e,t,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),o):l===93?(e.consume(l),a):l===60||l===null||gn(l)||tc(l)?t(l):n(l)}function a(l){return l===null||l===40||l===91||gn(l)||tc(l)?t(l):r(l)}function o(l){return fa(l)?i(l):n(l)}function i(l){return l===59?(e.consume(l),r):fa(l)?(e.consume(l),i):n(l)}}function Pbe(e,t,n){return r;function r(o){return e.consume(o),a}function a(o){return na(o)?n(o):t(o)}}function l3(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||gn(e)}function c3(e){return!fa(e)}function u3(e){return!(e===47||vT(e))}function vT(e){return e===43||e===45||e===46||e===95||na(e)}function xC(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Mbe={partial:!0,tokenize:jbe};function jbe(e,t,n){return r;function r(o){return Dt(o)?qt(e,a,"linePrefix")(o):a(o)}function a(o){return o===null||ft(o)?t(o):n(o)}}const zbe={tokenize:Ybe,partial:!0};function Bbe(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Gbe,continuation:{tokenize:Vbe},exit:qbe}},text:{91:{name:"gfmFootnoteCall",tokenize:Hbe},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Ube,resolveTo:Fbe}}}}function Ube(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;a--;){const c=r.events[a][1];if(c.type==="labelImage"){i=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return l;function l(c){if(!i||!i._balanced)return n(c);const d=Uo(r.sliceSerialize({start:i.end,end:r.now()}));return d.codePointAt(0)!==94||!o.includes(d.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function Fbe(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function Hbe(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,i;return l;function l(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),c}function c(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(h){if(o>999||h===93&&!i||h===null||h===91||gn(h))return n(h);if(h===93){e.exit("chunkString");const g=e.exit("gfmFootnoteCallString");return a.includes(Uo(r.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return gn(h)||(i=!0),o++,e.consume(h),h===92?p:d}function p(h){return h===91||h===92||h===93?(e.consume(h),o++,d):d(h)}}function Gbe(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i=0,l;return c;function c(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(v)}function p(v){if(i>999||v===93&&!l||v===null||v===91||gn(v))return n(v);if(v===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return o=Uo(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return gn(v)||(l=!0),i++,e.consume(v),v===92?h:p}function h(v){return v===91||v===92||v===93?(e.consume(v),i++,p):p(v)}function g(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),a.includes(o)||a.push(o),qt(e,y,"gfmFootnoteDefinitionWhitespace")):n(v)}function y(v){return t(v)}}function Vbe(e,t,n){return e.check(Mbe,t,e.attempt(zbe,t,n))}function qbe(e){e.exit("gfmFootnoteDefinition")}function Ybe(e,t,n){const r=this;return qt(e,a,"gfmFootnoteDefinitionIndent",5);function a(o){const i=r.events[r.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(o):n(o)}}function Wbe(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:r};return t==null&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(o,i){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let c=l;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[l][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[l][1].end)},p={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[l][1].start)},h=[["enter",d,i],["enter",o[c][1],i],["exit",o[c][1],i],["enter",p,i]],g=i.parser.constructs.insideSpan.null;g&&Ka(h,h.length,0,cv(g,o.slice(c+1,l),i)),Ka(h,h.length,0,[["exit",p,i],["enter",o[l][1],i],["exit",o[l][1],i],["exit",d,i]]),Ka(o,c-1,l-c+3,h),l=c+h.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function a(o,i,l){const c=this.previous,d=this.events;let p=0;return h;function h(y){return c===126&&d[d.length-1][1].type!=="characterEscape"?l(y):(o.enter("strikethroughSequenceTemporary"),g(y))}function g(y){const v=ed(c);if(y===126)return p>1?l(y):(o.consume(y),p++,g);if(p<2&&!t)return l(y);const x=o.exit("strikethroughSequenceTemporary"),C=ed(y);return x._open=!C||C===2&&!!v,x._close=!v||v===2&&!!C,i(y)}}}class Zbe{constructor(){this.map=[]}add(t,n,r){Kbe(this,t,n,r)}consume(t){if(this.map.sort(function(o,i){return o[0]-i[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];
vendor: 4,314 bytes, line 668
668r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const o of a)t.push(o);a=r.pop()}this.map.length=0}}function Kbe(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function Qbe(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Xbe(){return{flow:{null:{name:"table",tokenize:Jbe,resolveAll:eve}}}}function Jbe(e,t,n){const r=this;let a=0,o=0,i;return l;function l(P){let X=r.events.length-1;for(;X>-1;){const ne=r.events[X][1].type;if(ne==="lineEnding"||ne==="linePrefix")X--;else break}const K=X>-1?r.events[X][1].type:null,Q=K==="tableHead"||K==="tableRow"?I:c;return Q===I&&r.parser.lazy[r.now().line]?n(P):Q(P)}function c(P){return e.enter("tableHead"),e.enter("tableRow"),d(P)}function d(P){return P===124||(i=!0,o+=1),p(P)}function p(P){return P===null?n(P):ft(P)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),y):n(P):Dt(P)?qt(e,p,"whitespace")(P):(o+=1,i&&(i=!1,a+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),i=!0,p):(e.enter("data"),h(P)))}function h(P){return P===null||P===124||gn(P)?(e.exit("data"),p(P)):(e.consume(P),P===92?g:h)}function g(P){return P===92||P===124?(e.consume(P),h):h(P)}function y(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),i=!1,Dt(P)?qt(e,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):v(P))}function v(P){return P===45||P===58?C(P):P===124?(i=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),x):O(P)}function x(P){return Dt(P)?qt(e,C,"whitespace")(P):C(P)}function C(P){return P===58?(o+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),S):P===45?(o+=1,S(P)):P===null||ft(P)?N(P):O(P)}function S(P){return P===45?(e.enter("tableDelimiterFiller"),A(P)):O(P)}function A(P){return P===45?(e.consume(P),A):P===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(P))}function k(P){return Dt(P)?qt(e,N,"whitespace")(P):N(P)}function N(P){return P===124?v(P):P===null||ft(P)?!i||a!==o?O(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):O(P)}function O(P){return n(P)}function I(P){return e.enter("tableRow"),D(P)}function D(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),D):P===null||ft(P)?(e.exit("tableRow"),t(P)):Dt(P)?qt(e,D,"whitespace")(P):(e.enter("data"),U(P))}function U(P){return P===null||P===124||gn(P)?(e.exit("data"),D(P)):(e.consume(P),P===92?J:U)}function J(P){return P===92||P===124?(e.consume(P),U):U(P)}}function eve(e,t){let n=-1,r=!0,a=0,o=[0,0,0,0],i=[0,0,0,0],l=!1,c=0,d,p,h;const g=new Zbe;for(;++n<e.length;){const y=e[n],v=y[1];y[0]==="enter"?v.type==="tableHead"?(l=!1,c!==0&&(KL(g,t,c,d,p),p=void 0,c=0),d={type:"table",start:Object.assign({},v.start),end:Object.assign({},v.end)},g.add(n,0,[["enter",d,t]])):v.type==="tableRow"||v.type==="tableDelimiterRow"?(r=!0,h=void 0,o=[0,0,0,0],i=[0,n+1,0,0],l&&(l=!1,p={type:"tableBody",start:Object.assign({},v.start),end:Object.assign({},v.end)},g.add(n,0,[["enter",p,t]])),a=v.type==="tableDelimiterRow"?2:p?3:1):a&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")?(r=!1,i[2]===0&&(o[1]!==0&&(i[0]=i[1],h=wg(g,t,o,a,void 0,h),o=[0,0,0,0]),i[2]=n)):v.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(i[0]=i[1],h=wg(g,t,o,a,void 0,h)),o=i,i=[o[1],n,0,0])):v.type==="tableHead"?(l=!0,c=n):v.type==="tableRow"||v.type==="tableDelimiterRow"?(c=n,o[1]!==0?(i[0]=i[1],h=wg(g,t,o,a,n,h)):i[1]!==0&&(h=wg(g,t,i,a,n,h)),a=0):a&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")&&(i[3]=n)}for(c!==0&&KL(g,t,c,d,p),g.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];
vendor: 4,146 bytes, line 668
668y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=Qbe(t.events,n))}return e}function wg(e,t,n,r,a,o){const i=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(o.end=Object.assign({},Eu(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const c=Eu(t.events,n[1]);if(o={type:i,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const d=Eu(t.events,n[2]),p=Eu(t.events,n[3]),h={type:l,start:Object.assign({},d),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const g=t.events[n[2]],y=t.events[n[3]];if(g[1].end=Object.assign({},y[1].end),g[1].type="chunkText",g[1].contentType="text",n[3]>n[2]+1){const v=n[2]+1,x=n[3]-n[2]-1;e.add(v,x,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return a!==void 0&&(o.end=Object.assign({},Eu(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function KL(e,t,n,r,a){const o=[],i=Eu(t.events,n);a&&(a.end=Object.assign({},i),o.push(["exit",a,t])),r.end=Object.assign({},i),o.push(["exit",r,t]),e.add(n+1,0,o)}function Eu(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const tve={name:"tasklistCheck",tokenize:rve};function nve(){return{text:{91:tve}}}function rve(e,t,n){const r=this;return a;function a(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),o)}function o(c){return gn(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),i):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),i):n(c)}function i(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(c)}function l(c){return ft(c)?t(c):Dt(c)?e.check({tokenize:ave},t,n)(c):n(c)}}function ave(e,t,n){return qt(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function ove(e){return AF([kbe(),Bbe(),Wbe(e),Xbe(),nve()])}const ive={};function sve(e){const t=this,n=e||ive,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(ove(n)),o.push(Tbe()),i.push(Sbe(n))}function wC({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return E.jsx(nle,{"data-slot":"separator",decorative:n,orientation:t,className:xe("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}function TC({delayDuration:e=0,...t}){return E.jsx(vce,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function _T({...e}){return E.jsx(TC,{children:E.jsx(_ce,{"data-slot":"tooltip",...e})})}function ET({...e}){return E.jsx(Ece,{"data-slot":"tooltip-trigger",...e})}function xT({className:e,sideOffset:t=0,children:n,...r}){return E.jsx(xce,{children:E.jsxs(wce,{"data-slot":"tooltip-content",sideOffset:t,className:ec("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,E.jsx(Tce,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]"})]})})}const lve=e=>e.type==="mdxJsxTextElement"||e.type==="mdxJsxFlowElement",d3=(e,t)=>{if(lve(e)){const n=e.name?t[e.name]??e.name:b.Fragment,r=Object.fromEntries(e.attributes.flatMap(o=>{if(o.type!=="mdxJsxAttribute")return[];const{name:i,value:l}=o;return l==null?[[i,!0]]:["string","number","boolean"].includes(typeof l)?[[i,l]]:[]})),a=e.children.map(o=>d3(o,t));return b.createElement(n,r,...a)}return YS(e,{Fragment:b.Fragment,jsx:E.jsx,jsxs:E.jsxs,components:t})},cve=({children:e})=>{const t=Hz();return e.map((n,r)=>E.jsx(b.Fragment,{children:d3(n,t)},r))}
vendor: 6,156 bytes, line 668
668,uve={green:"bg-green-400 dark:bg-green-800",blue:"bg-sky-400 dark:bg-sky-800",yellow:"bg-yellow-400 dark:bg-yellow-800",red:"bg-red-400 dark:bg-red-800",purple:"bg-purple-400 dark:bg-purple-600",indigo:"bg-indigo-400 dark:bg-indigo-600",gray:"bg-gray-400 dark:bg-gray-600",outline:"border border-border rounded-md text-foreground"},dve={green:"text-green-500 dark:text-green-600",blue:"text-sky-400 dark:text-sky-600",yellow:"text-yellow-400 dark:text-yellow-600",red:"text-red-400 dark:text-red-600",purple:"text-purple-400 dark:text-purple-600",indigo:"text-indigo-400 dark:text-indigo-600",gray:"text-gray-400 dark:text-gray-600",outline:""},QL=({color:e,label:t,className:n,invert:r})=>E.jsx("span",{className:xe("flex items-center duration-200 transition-opacity text-center uppercase text-[0.65rem] leading-5 font-bold rounded-sm text-background dark:text-zinc-50 h-full",e==="outline"?"px-3":"mt-0.5 px-1",r?dve[e]:uve[e],n),children:t}),{getOwnPropertyNames:fve,getOwnPropertySymbols:pve}=Object,{hasOwnProperty:hve}=Object.prototype;function bx(e,t){return function(n,r,a){return e(n,r,a)&&t(n,r,a)}}function Tg(e){return function(t,n,r){if(!t||!n||typeof t!="object"||typeof n!="object")return e(t,n,r);const{cache:a}=r,o=a.get(t),i=a.get(n);if(o&&i)return o===n&&i===t;a.set(t,n),a.set(n,t);const l=e(t,n,r);return a.delete(t),a.delete(n),l}}function XL(e){return fve(e).concat(pve(e))}const mve=Object.hasOwn||((e,t)=>hve.call(e,t)),gve="__v",yve="__o",bve="_owner",{getOwnPropertyDescriptor:JL,keys:e$}=Object,yc=Object.is||function(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t};function vve(e,t){return e===t}function _ve(e,t){return e.byteLength===t.byteLength&&Ky(new Uint8Array(e),new Uint8Array(t))}function Eve(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function xve(e,t){return e.byteLength===t.byteLength&&Ky(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function wve(e,t){return yc(e.getTime(),t.getTime())}function Tve(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function t$(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),o=e.entries();let i,l,c=0;for(;(i=o.next())&&!i.done;){const d=t.entries();let p=!1,h=0;for(;(l=d.next())&&!l.done;){if(a[h]){h++;continue}const g=i.value,y=l.value;if(n.equals(g[0],y[0],c,h,e,t,n)&&n.equals(g[1],y[1],g[0],y[0],e,t,n)){p=a[h]=!0;break}h++}if(!p)return!1;c++}return!0}function Sve(e,t,n){const r=e$(e);let a=r.length;if(e$(t).length!==a)return!1;for(;a-- >0;)if(!f3(e,t,n,r[a]))return!1;return!0}function Ff(e,t,n){const r=XL(e);let a=r.length;if(XL(t).length!==a)return!1;let o,i,l;for(;a-- >0;)if(o=r[a],!f3(e,t,n,o)||(i=JL(e,o),l=JL(t,o),(i||l)&&(!i||!l||i.configurable!==l.configurable||i.enumerable!==l.enumerable||i.writable!==l.writable)))return!1;return!0}function Cve(e,t){return yc(e.valueOf(),t.valueOf())}function Ave(e,t){return e.source===t.source&&e.flags===t.flags}function n$(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),o=e.values();let i,l;for(;(i=o.next())&&!i.done;){const c=t.values();let d=!1,p=0;for(;(l=c.next())&&!l.done;){if(!a[p]&&n.equals(i.value,l.value,i.value,l.value,e,t,n)){d=a[p]=!0;break}p++}if(!d)return!1}return!0}function Ky(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function kve(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function f3(e,t,n,r){return(r===bve||r===yve||r===gve)&&(e.$$typeof||t.$$typeof)?!0:mve(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Nve=Object.prototype.toString;function Rve(e){const t=Lve(e),{areArraysEqual:n,areDatesEqual:r,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:i,areObjectsEqual:l,areRegExpsEqual:c,areSetsEqual:d,getUnsupportedCustomComparator:p}=e;return function(h,g,y){if(h===g)return!0;if(h==null||g==null)return!1;const v=typeof h;if(v!==typeof g)return!1;if(v!=="object")return v==="number"||v==="bigint"?i(h,g,y):v==="function"?a(h,g,y):!1;const x=h.constructor;if(x!==g.constructor)return!1;if(x===Object)return l(h,g,y);if(x===Array)return n(h,g,y);if(x===Date)return r(h,g,y);if(x===RegExp)return c(h,g,y);if(x===Map)return o(h,g,y);if(x===Set)return d(h,g,y);if(x===Promise)return!1;if(Array.isArray(h))return n(h,g,y);const C=Nve.call(h),S=t[C];if(S)return S(h,g,y);const A=p&&p(h,g,y,C);return A?A(h,g,y):!1}}function Ove({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:_ve,areArraysEqual:n?Ff:Eve,areDataViewsEqual:xve,areDatesEqual:wve,areErrorsEqual:Tve,areFunctionsEqual:vve,areMapsEqual:n?bx(t$,Ff):t$,areNumbersEqual:yc,areObjectsEqual:n?Ff:Sve,arePrimitiveWrappersEqual:Cve,areRegExpsEqual:Ave,areSetsEqual:n?bx(n$,Ff):n$,areTypedArraysEqual:n?bx(Ky,Ff):Ky,areUrlsEqual:kve,getUnsupportedCustomComparator:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=Tg(r.areArraysEqual),o=Tg(r.areMapsEqual),i=Tg(r.areObjectsEqual),l=Tg(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:i,areSetsEqual:l})}return r}function Dve(e){return function(t,n,r,a,o,i,l){return e(t,n,l)}}function Ive({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(i,l){const{cache:c=e?new WeakMap:void 0,meta:d}=n();return t(i,l,{cache:c,equals:r,meta:d,strict:a})};if(e)return function(i,l){return t(i,l,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const o={cache:void 0,equals:r,meta:void 0,strict:a};return function(i,l){return t(i,l,o)}}function Lve({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:o,areMapsEqual:i,areNumbersEqual:l,areObjectsEqual:c,arePrimitiveWrappersEqual:d,areRegExpsEqual:p,areSetsEqual:h,areTypedArraysEqual:g,areUrlsEqual:y}){return{"[object Arguments]":c,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":o,"[object BigInt]":l,"[object BigInt64Array
668]":g,"[object BigUint64Array]":g,"[object Boolean]":d,"[object DataView]":n,"[object Date]":r,"[object Error]":a,"[object Float16Array]":g,"[object Float32Array]":g,"[object Float64Array]":g,"[object Function]":o,"[object GeneratorFunction]":o,"[object Int8Array]":g,"[object Int16Array]":g,"[object Int32Array]":g,"[object Map]":i,"[object Number]":d,"[object Object]":(v,x,C)=>typeof v.then!="function"&&typeof x.then!="function"&&c(v,x,C),"[object RegExp]":p,"[object Set]":h,"[object String]":d,"[object URL]":y,"[object Uint8Array]":g,"[object Uint8ClampedArray]":g,"[object Uint16Array]":g,"[object Uint32Array]":g}}const p3=al();al({strict:!0});al({circular:!0});al({circular:!0,strict:!0});al({createInternalComparator:()=>yc});al({strict:!0,createInternalComparator:()=>yc});al({circular:!0,createInternalComparator:()=>yc});al({circular:!0,createInternalComparator:()=>yc,strict:!0});function al(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,o=Ove(e),i=Rve(o),l=n?n(i):Dve(i);return Ive({circular:t,comparator:i,createState:r,equals:l,strict:a})}const h3=b.createContext({query:"",setQuery:()=>{}}),$ve=({children:e})=>{const[t,n]=b.useState("");return E.jsx(h3.Provider,{value:{query:t,setQuery:n},children:e})},SC=()=>b.useContext(h3),Pve=({category:e,onRequestClose:t})=>{const n=rK(e),[r,a]=b.useState(!1),o=Sn(),{query:i}=SC(),l=e.collapsible??!0,c=e.collapsed??!0,d=!!(!l||!c||n),[p,h]=b.useState(d),g=zW(e.link?.path??"");b.useEffect(()=>{n&&h(!0)},[n]),b.useEffect(()=>{i.trim()&&h(!0)},[i]);const y=l&&E.jsx(zr,{onClick:C=>{C.preventDefault(),h(S=>!S),a(!0)},variant:"ghost",size:"icon",className:"size-6 hover:bg-[hsl(from_var(--accent)_h_s_calc(l+6*var(--dark)))]",children:E.jsx(vS,{size:16,className:xe(r&&"transition","shrink-0 group-data-[state=open]:rotate-90 rtl:rotate-180")})}),v=e.icon&&E.jsx(e.icon,{size:16,className:xe("align-[-0.125em] ",g&&"text-primary")}),x=Yg({className:["group text-start font-medium",l||typeof e.link<"u"?"cursor-pointer":"cursor-default hover:bg-transparent"]});return E.jsxs(mF,{className:"flex flex-col",defaultOpen:d,open:p,onOpenChange:()=>h(!0),children:[E.jsx(kce,{className:"group",asChild:!0,disabled:!l,children:e.link?.type==="doc"?E.jsxs(oh,{to:{pathname:Tn(e.link.path),search:o.search},className:x,onClick:()=>{a(!0),g&&!p&&h(!0)},children:[v,E.jsxs("div",{className:"flex items-center gap-2 justify-between w-full text-foreground/80 group-aria-[current='page']:text-primary",children:[E.jsx("div",{className:"truncate",children:e.label}),y]})]}):E.jsxs("div",{onClick:()=>a(!0),onKeyUp:C=>{(C.key==="Enter"||C.key===" ")&&a(!0)},className:x,children:[v,E.jsxs("div",{className:"flex items-center justify-between w-full",children:[E.jsx("div",{className:"flex gap-2 truncate w-full",children:e.label}),y]})]})}),E.jsx(Nce,{className:xe(r&&"CollapsibleContent",e.items.length===0&&"hidden","ms-6 my-1"),children:E.jsx("ul",{className:"relative after:absolute after:-start-(--padding-nav-item) after:translate-x-[1.5px] after:top-0 after:bottom-0 after:w-px after:bg-border",children:e.items.map(C=>E.jsx(wT,{onRequestClose:t,item:C},C.type+(C.label??"")+("path"in C?C.path:"")+("file"in C?C.file:"")+("to"in C?C.to:"")))})})]})},m3=b.memo(Pve,p3);m3.displayName="NavigationCategory";function Mve({className:e,...t}){return E.jsx("div",{"data-slot":"input-group",role:"group",className:xe("group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none","h-9 min-w-0 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]","has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",e),...t})}const jve=hi("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>
668svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5","block-end":"order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});function zve({className:e,align:t="inline-start",...n}){return E.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:xe(jve({align:t}),e),onClick:r=>{r.target.closest("button")||r.currentTarget.parentElement?.querySelector("input")?.focus()},...n})}const Bve=hi("text-sm shadow-none flex gap-2 items-center",{variants:{size:{xs:"h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",sm:"h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function Uve({className:e,type:t="button",variant:n="ghost",size:r="xs",...a}){return E.jsx(Xa,{type:t,"data-size":r,variant:n,className:xe(Bve({size:r}),e),...a})}function Fve({className:e,...t}){return E.jsx(gF,{"data-slot":"input-group-control",className:xe("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}const Hve=({placeholder:e})=>{const{query:t,setQuery:n}=SC();return E.jsxs(Mve,{className:"my-2",children:[E.jsx(zve,{children:E.jsx(Sb,{className:"size-3.5"})}),E.jsx(Fve,{type:"text",placeholder:e,value:t,onChange:r=>n(r.target.value)}),t&&E.jsx(Uve,{onClick:()=>n(""),children:E.jsx(Cb,{className:"size-3"})})]})},r$=({label:e,className:t})=>{const n=b.useRef(null),[r,a]=b.useState(!1);return b.useEffect(()=>{n.current&&n.current.offsetWidth<n.current.scrollWidth&&a(!0)},[]),E.jsxs(E.Fragment,{children:[E.jsx("span",{className:xe("truncate flex-1",t),title:e,ref:n,children:e}),r&&E.jsxs(_T,{disableHoverableContent:!0,children:[E.jsx(ET,{className:"absolute inset-0 z-10"}),E.jsx(xT,{className:"max-w-64",side:"bottom",align:"center",children:e})]})]})},g3="data-anchor",wT=({item:e,onRequestClose:t})=>{const n=Sn(),{activeAnchor:r}=eC(),a=Ks(),o=Hn(),{query:i}=SC();if(!zS({auth:a,context:o,filterQuery:i})(e))return null;switch(e.type){case"category":return E.jsx(m3,{category:e,onRequestClose:t});case"separator":return E.jsx(wC,{className:"my-1 mx-auto w-[calc(100%-var(--padding-nav-item)*2)]!"});case"section":return E.jsx("div",{className:"mt-4 px-(--padding-nav-item) text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:e.label});case"filter":return E.jsx(Hve,{placeholder:e.placeholder});case"doc":return E.jsxs(oh,{viewTransition:!0,className:({isActive:l,isPending:c})=>Yg({isActive:l,isPending:c}),to:Tn(e.path),onClick:t,end:!0,children:[e.icon&&E.jsx(e.icon,{size:16,className:"align-[-0.125em] shrink-0"}),e.rich?E.jsx("span",{children:E.jsx(cve,{children:e.rich})}):E.jsx(r$,{label:e.label,className:"flex-1"}),e.badge&&E.jsx(QL,{...e.badge})]});case"link":case"custom-page":{const l=e.type==="link"?e.to:Tn(e.path);return l.startsWith("http")?E.jsxs("a",{className:Yg(),href:l,target:"target"in e?e.target:"_blank",rel:"noopener noreferrer",onClick:t,children:[e.icon&&E.jsx(e.icon,{size:16,className:"align-[-0.125em] shrink-0"}),E.jsx("span",{className:"whitespace-normal",children:e.label}),E.jsx("span",{className:"whitespace-nowrap",children:E.jsx(t2,{className:"inline -translate-y-0.5",size:12})})]}):E.jsxs(CC,{to:{pathname:l.split("#")[0],hash:l.split("#")[1],search:n.search},[g3]:l.split("#")[1],className:Yg({isActive:l===[n.pathname,r].filter(Boolean).join("#")}),onClick:t,children:[e.icon&&E.jsx(e.icon,{size:16,className:"align-[-0.125em] shrink-0"}),e.badge?E.jsxs(E.Fragment,{children:[e.label&&E.jsx(r$,{label:e.label}),E.jsx(QL,{...e.badge})]}):E.jsx("span",{className:"break-all",children:e.label})]})}}},y3=(e,t={block:"center"})=>
668{if(!e)return;const n=e.getBoundingClientRect();n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)||e.scrollIntoView(t)},b3=()=>{const{setActiveAnchor:e}=eC();return b.useCallback(t=>{const n=t.replace(/^#/,""),r=n.split("/").at(0);if(!r)return!1;const a=document.getElementById(decodeURIComponent(n)),o=document.querySelector(`[${g3}="${r}"]`);return a?(a.scrollIntoView(),y3(o),requestIdleCallback(()=>e(r)),!0):!1},[e])},Gve=()=>{const e=Sn(),t=b3(),n=b.useRef(!1);b.useEffect(()=>{!e.hash||!n.current||t(e.hash)},[e.hash,t]),b.useEffect(()=>{if(!e.hash){n.current=!0;return}const r=new MutationObserver((a,o)=>{t(e.hash)&&(n.current=!0,o.disconnect())});return r.observe(document.body,{childList:!0,subtree:!0}),()=>r.disconnect()},[e.hash,t])},CC=e=>{const t=Sn(),n=b3(),r=C2(e.to),[a,o]=r.split("#"),i=l=>{e.onClick?.(l),!(o!==t.hash.slice(1)||a!==t.pathname)&&(l.preventDefault(),n(o))};return E.jsx(oh,{...e,onClick:i})},Vve=hi("",{variants:{size:{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl",full:"max-w-full"},align:{center:"mx-auto",start:"me-auto",end:"ms-auto"}},defaultVariants:{size:"xl",align:"center"}}),qve=({caption:e,className:t,size:n="xl",align:r="center",children:a})=>E.jsxs("figure",{className:xe(Vve({size:n,align:r}),t),children:[E.jsx("div",{className:"relative overflow-hidden rounded-lg border border-border bg-muted/50 p-1 shadow-sm",children:E.jsx("div",{className:"not-prose rounded-md [&_img]:rounded-md! relative overflow-hidden bg-background",children:a})}),e&&E.jsx("figcaption",{className:"mt-3 text-center text-sm text-muted-foreground",children:e})]}),Yve=({asChild:e,onClick:t,enabled:n=!0,...r})=>{const a=e?ih:"span";return E.jsx(a,{onClick:o=>{if(n){const i=document.createRange();i.selectNodeContents(o.currentTarget);const l=window.getSelection();l?.removeAllRanges(),l?.addRange(i)}t?.(o)},...r})},Wve=({className:e,children:t,selectOnClick:n,onClick:r})=>E.jsx(Yve,{asChild:!0,enabled:n,onClick:r,children:E.jsx("code",{className:xe("font-mono border p-1 py-0.5 rounded-sm bg-border/50 dark:bg-border/70 [overflow-wrap:anywhere]",e),children:t})}),v3={img:({node:e,...t})=>/\.(mp4|webm|mov|avi)$/.test(t.src??"")?E.jsx("video",{src:t.src,controls:!0,playsInline:!0,autoPlay:!0,loop:!0,className:xe("rounded-lg",t.className)}):E.jsx("img",{alt:t.alt,...t,className:xe("rounded-lg",t.className)}),Framed:qve,h1:({children:e,id:t})=>E.jsx(Vi,{level:1,id:t,children:e}),h2:({children:e,id:t})=>E.jsx(Vi,{level:2,id:t,children:e}),h3:({children:e,id:t})=>E.jsx(Vi,{level:3,id:t,children:e}),h4:({children:e,id:t})=>E.jsx(Vi,{level:4,id:t,children:e}),h5:({children:e,id:t})=>E.jsx(Vi,{level:5,id:t,children:e}),h6:({children:e,id:t})=>E.jsx(Vi,{level:6,id:t,children:e}),a:({href:e,node:t,...n})=>e&&!e.startsWith("http")?E.jsx(CC,{to:e,relative:"path",...n}):E.jsx("a",{href:e,target:"_blank",...n,rel:"noreferrer"}),Link:ld,Alert:G1,Badge:Dce,Button:Xa,Callout:Ps,Stepper:Ice,Mermaid:Xle,SyntaxHighlight:zz,tip:e=>E.jsx(Ps,{type:"tip",...e}),info:e=>E.jsx(Ps,{type:"info",...e}),note:e=>E.jsx(Ps,{type:"note",...e}),caution:e=>E.jsx(Ps,{type:"caution",...e}),warning:e=>E.jsx(Ps,{type:"caution",...e}),danger:e=>E.jsx(Ps,{type:"danger",...e}),pre:e=>E.jsx("pre",{className:xe("not-prose my-4",e.className),...e}),code:({className:e,node:t,children:n,title:r,inline:a,showLineNumbers:o,...i})=>{const l=e?.match(/language?-(\w+)/);return a==="true"||a===!0?E.jsx(Wve,{className:xe(e,"inline"),children:n}):E.jsx(US,{language:l?.[1],showLanguageIndicator:!0,showLineNumbers:o,title:r,children:E.jsx("code",{className:xe(e,Mz),...i,children:n})})}},Zve="prose dark:prose-invert prose-neutral typography",bv=({className:e,...t})=>E.jsx("div",{className:xe(Zve,e),...t}),Kve=[sve],Qve=b.memo(({content:e,className:t,components:n})=>{const{syntaxHighlighting:r}=Hn().options,a=b.useMemo(()=>[Kge,...jne(r?.themes,r?.highlighter)],[r?.themes,r?.highlighter]),o=b.useMemo(()=>({...v3,...n}),[n]);return E.jsx(bv,{className:t,children:E.jsx(wpe,{remarkPlugins:Kve,rehypePlugins:a,components:o,children:e})})});Qve.displayName="Markdown";function Xve(){const e=navigator.userAgent.toLowerCase();if(e.includes("win"))return"Windows";if(e.includes("mac"))return"macOS";if(e.includes("linux"))return"Linux"}const _3=({className:e})=>{const t=Hn(),[n,r]=b.useState(!1),a=b.useCallback(()=>r(!0),[]),o=b.useCallback(()=>r(!1),[]);b.useEffect(()=>{if(n)return;
668function l(c){c.key==="k"&&(c.metaKey||c.ctrlKey)&&(c.preventDefault(),r(!0))}return window.addEventListener("keydown",l),()=>{window.removeEventListener("keydown",l)}},[n]);const i=t.options.plugins?.find(Kne);return i?E.jsxs("div",{className:e,children:[E.jsxs("button",{type:"button",onClick:a,className:"flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",children:[E.jsxs("div",{className:"flex items-center gap-2 grow",children:[E.jsx(Sb,{size:14}),"Search"]}),E.jsx(Xu,{children:E.jsx(Jve,{})})]}),E.jsx(b.Suspense,{children:i.renderSearch({isOpen:n,onClose:o})})]}):null},Jve=()=>{const e=Xve();return E.jsxs("kbd",{className:"absolute end-1.5 hidden h-5 select-none items-center gap-1 rounded-sm border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex",children:[e==="macOS"?"â":"Ctrl","+K"]})},E3=({slots:e={}}={})=>{const t=new Map(Object.entries(e).map(([r,a])=>[r,[{id:r,content:a,type:"replace",sequence:0}]])),n=[];return M2()((r,a)=>({items:t,sequences:new Map,getItems:o=>a().items.get(o)??n,setSlot:(o,i,l,c)=>r(d=>{if(l==null)return d;const p=new Map(d.items),h=new Map(d.sequences),g=(p.get(i)??[]).filter(x=>x.id!==o),y=(h.get(i)??0)+1;h.set(i,y);const v={id:o,content:l,type:c,sequence:c==="prepend"?-y:y};if(c==="replace"){const x=g.filter(C=>C.type!=="replace");p.set(i,[...x,v])}else p.set(i,[...g,v]);return{items:p,sequences:h}}),clearSlot:(o,i)=>r(l=>{const c=new Map(l.items),d=new Map(l.sequences),p=(c.get(i)??[]).filter(h=>h.id!==o);return p.length===0?(c.delete(i),d.delete(i)):c.set(i,p),{items:c,sequences:d}})}))},x3=b.createContext(E3()),e_e=({children:e,slots:t})=>{const n=b.useRef(E3({slots:t})).current;return E.jsx(x3,{value:n,children:e})};function t_e(e){const t=b.use(x3);return j2(t,e)}const a$=["prepend","replace","append"],n_e=e=>{const t=ore(),n=t_e(r=>r.getItems(e));return b.useMemo(()=>n.length===0?[]:n.toSorted((r,a)=>{const o=a$.indexOf(r.type)-a$.indexOf(a.type);return o!==0?o:r.sequence-a.sequence}).map(r=>typeof r.content=="function"?E.jsx(r.content,{...t},r.id):E.jsx(b.Fragment,{children:r.content},r.id)),[n,t])},Ca={Target:({name:e,fallback:t})=>{const n=n_e(e);return n.length===0?t:n}},r_e=b.createContext(null),vx={didCatch:!1,error:null};class a_e extends b.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=vx}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];(n=(r=this.props).onReset)===null||n===void 0||n.call(r,{args:o,reason:"imperative-api"}),this.setState(vx)}}componentDidCatch(t,n){var r,a;(r=(a=this.props).onError)===null||r===void 0||r.call(a,t,n)}componentDidUpdate(t,n){const{didCatch:r}=this.state,{resetKeys:a}=this.props;if(r&&n.error!==null&&o_e(t.resetKeys,a)){var o,i;(o=(i=this.props).onReset)===null||o===void 0||o.call(i,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(vx)}}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:a}=this.props,{didCatch:o,error:i}=this.state;let l=t;if(o){const c={error:i,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")l=n(c);else if(r)l=b.createElement(r,c);else if(a!==void 0)l=a;else throw i}return b.createElement(r_e.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},l)}}function o_e(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}let i_e=()=>({emit(e,...t){for(let n=this.events[e]||[],r=0,a=n.length;r<a;r++)n[r](...t)},events:{},on(e,t){return(this.events[e]||=[]).push(t),()=>{this.events[e]=this.events[e]?.filter(n=>t!==n)}}});const s_e=e=>Object.entries(e),TT=e=>{if(e)return Array.isArray(e)?Object.fromEntries(e.map(t=>[t,n=>n.auth.isAuthenticated])):e};class l_e{navigation;navigationRules;authentication;getAuthState;queryClient;options;env;protectedRoutes;plugins;emitter=i_e();constructor(t,n,r){this.queryClient=n,this.env=r,this.options=t,this.plugins=t.plugins??[],this.authentication=this.plugins.find(Zne),this.getAuthState=my.getState;const a=Object.fromEntries(this.plugins.flatMap(o=>{if(!lI(o))return[];const i=o.getProtectedRoutes?.();return i?Object.entries(TT(i)??{}):[]}));this.protectedRoutes={...a,...TT(t.protectedRoutes)},this.navigation=t.navigation??[],this.navigationRules=t.navigationRules??[],this.plugins.forEach(o=>
668{Wne(o)&&s_e(o.events).forEach(([i,l])=>{this.emitter.on(i,l)})}),my.subscribe((o,i)=>{this.emitEvent("auth",{prev:i,next:o})})}initialize=async()=>{await Promise.all(this.plugins.filter(Qne).map(t=>t.initialize?.(this)))};getApiIdentities=async()=>(await Promise.all(this.plugins.filter(ere).map(t=>t.getIdentities(this)))).flat();addEventListener(t,n){return this.emitter.on(t,n)}emitEvent=(t,...n)=>this.emitter.emit(t,...n);getPluginNavigation=async t=>(await Promise.all(this.plugins.filter(lI).map(n=>n.getNavigation?.(Tn(t),this)))).flatMap(n=>n??[]);getProfileMenuItems=()=>this.plugins.filter(t=>Uz(t)).flatMap(t=>t.getProfileMenuItems(this)).sort(c_e(["top","middle","bottom"])).sort(t=>t.weight??0);signRequest=async t=>{if(!this.authentication)throw new Error("No authentication provider configured");return await this.authentication.signRequest(t)}}const c_e=e=>(t,n)=>{const r=e.indexOf(t.category??"middle"),a=e.indexOf(n.category??"middle");return r-a},w3=({children:e,className:t})=>{};function T3({error:e}){const t=e instanceof Error?e.message:"Something went wrong",n=e instanceof Sp?e.developerHint:void 0,r=e instanceof Sp?e.title:"Something went wrong",a=e instanceof Error?e.stack:void 0,o=e instanceof Error?e.cause:void 0,i=o instanceof Error?String(o.stack):a;return E.jsxs(bv,{className:"grid grid-cols-1 max-w-none! pt-(--padding-content-top)",children:[E.jsx(Vi,{level:1,children:r}),"Error: ",t,n&&E.jsx(w3,{className:"mb-4",children:n}),i&&E.jsx("pre",{className:"max-h-[400px] [&>pre]:p-4",children:i})]})}function u_e({error:e}){return E.jsx(T3,{error:e})}const Sg=globalThis;(!Sg.requestIdleCallback||!Sg.cancelIdleCallback)&&(Sg.requestIdleCallback=e=>setTimeout(e,1),Sg.cancelIdleCallback=clearTimeout);function ST({className:e,...t}){return E.jsx("div",{className:xe("animate-pulse rounded-md bg-muted",e),...t})}const o$={info:"bg-blue-500",note:"bg-gray-500",tip:"bg-green-600",caution:"bg-orange-500",danger:"bg-rose-500"},d_e=()=>{const{options:e}=Hn(),{site:t}=e,[n,r]=b.useState(!0);if(!t?.banner||!n)return E.jsx("style",{children:":root { --banner-height: 0px; }"});const a=t.banner.color&&t.banner.color in o$?o$[t.banner.color]:t.banner.color?void 0:"bg-primary",o=a?{}:{backgroundColor:t.banner.color};return E.jsxs("div",{className:xe("relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center lg:h-(--banner-height)",a),style:o,children:[E.jsx("div",{className:"w-full",children:t.banner.message}),t.banner.dismissible&&E.jsx("button",{type:"button",className:"md:absolute md:end-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",onClick:()=>r(!1),children:E.jsx(Zq,{size:16})})]})},S3=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 132 100",fill:"none",...e,children:[E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M80.092 2.963A4.66 4.66 0 0 1 84.449 0h34.049c6.325 0 10.835 6.135 8.948 12.172L116.653 46.71a4.688 4.688 0 0 1-4.474 3.29H75c-5.178 0-7.813 4.687-9.375 9.374-1.288 3.864-11.07 28.963-14.467 37.662A4.66 4.66 0 0 1 46.801 100H12.75c-6.324 0-10.834-6.134-8.947-12.171l10.793-34.54A4.688 4.688 0 0 1 19.071 50H56.25c5.178 0 7.813-4.687 9.375-9.375 1.288-3.864 11.07-28.962 14.467-37.662Z",clipRule:"evenodd"}),E.jsx("path",{fill:"currentColor",d:"M83.54 57.813a7.813 7.813 0 0 0-7.316 5.07L63.888 95.777c-.766 2.043.744 4.222 2.926 4.222h36.828c5.211 0 9.875-3.232 11.704-8.11l8.821-23.522c1.915-5.107-1.861-10.555-7.315-10.555H83.539ZM29.17 0a12.5 12.5 0 0 0-11.704 8.111l-8.82 23.521c-1.915 5.107 1.86 10.556 7.315 10.556h33.312a7.813 7.813 0 0 0 7.316-5.07L68.924 4.223C69.691 2.18 68.18 0 65.998 0H29.17Z"})]});S3.displayName="ZudokuLogo";const C3=({className:e})=>E.jsxs("a",{href:"https://zudoku.dev",target:"_blank",rel:"noopener noreferrer",className:xe("flex justify-between items-center w-full border border-transparent hover:border-border rounded-full hover:shadow-xs h-7 px-3 text-nowrap hover:bg-muted/80 transition-all",e),children:[E.jsxs("div",{className:"opacity-70 hover:opacity-100 transition-opacity gap-1.5 text-[11px] font-medium rounded-full h-7 flex items-center text-nowrap",children:[E.jsx(S3,{className:"w-3.5 h-3.5 dar
668k:fill-white"}),"powered by ","Zudoku"]}),E.jsx("div",{className:"text-xs font-medium opacity-70 hover:text-foreground transition-colors cursor-pointer",children:E.jsx(vS,{size:12,absoluteStrokeWidth:!0,strokeWidth:1.5,className:"rtl:rotate-180"})})]});function Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qy.apply(null,arguments)}var i$={exports:{}},rn={};/** @license React v16.13.1 669 * react-is.production.min.js 670 * 671 * Copyright (c) Facebook, Inc. and its affiliates. 672 * 673 * This source code is licensed under the MIT license found in the 674 * LICENSE file in the root directory of this source tree. 675 */var s$;function f_e(){if(s$)return rn;s$=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function k(O){if(typeof O=="object"&&O!==null){var I=O.$$typeof;switch(I){case t:switch(O=O.type,O){case c:case d:case r:case o:case a:case h:return O;default:switch(O=O&&O.$$typeof,O){case l:case p:case v:case y:case i:return O;default:return I}}case n:return I}}}function N(O){return k(O)===d}return rn.AsyncMode=c,rn.ConcurrentMode=d,rn.ContextConsumer=l,rn.ContextProvider=i,rn.Element=t,rn.ForwardRef=p,rn.Fragment=r,rn.Lazy=v,rn.Memo=y,rn.Portal=n,rn.Profiler=o,rn.StrictMode=a,rn.Suspense=h,rn.isAsyncMode=function(O){return N(O)||k(O)===c},rn.isConcurrentMode=N,rn.isContextConsumer=function(O){return k(O)===l},rn.isContextProvider=function(O){return k(O)===i},rn.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},rn.isForwardRef=function(O){return k(O)===p},rn.isFragment=function(O){return k(O)===r},rn.isLazy=function(O){return k(O)===v},rn.isMemo=function(O){return k(O)===y},rn.isPortal=function(O){return k(O)===n},rn.isProfiler=function(O){return k(O)===o},rn.isStrictMode=function(O){return k(O)===a},rn.isSuspense=function(O){return k(O)===h},rn.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===r||O===d||O===o||O===a||O===h||O===g||typeof O=="object"&&O!==null&&(O.$$typeof===v||O.$$typeof===y||O.$$typeof===i||O.$$typeof===l||O.$$typeof===p||O.$$typeof===C||O.$$typeof===S||O.$$typeof===A||O.$$typeof===x)},rn.typeOf=k,rn}var l$;function p_e(){return l$||(l$=1,i$.exports=f_e()),i$.exports}var _x,c$;function h_e(){if(c$)return _x;c$=1;var e=p_e(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=a;function i(v){return e.isMemo(v)?a:o[v.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,g=Object.prototype;function y(v,x,C){if(typeof x!="string"){if(g){var S=h(x);S&&S!==g&&y(v,S,C)}var A=c(x);d&&(A=A.concat(d(x)));for(var k=i(v),N=i(x),O=0;O<A.length;++O){var I=A[O];if(!n[I]&&!(C&&C[I])&&!(N&&N[I])&&!(k&&k[I])){var D=p(x,I);try{l(v,I,D)}catch{}}}}return v}return _x=y,_x}h_e();var A3=function(e,t,n){return e=e<=n?e:n,e=e>=t?e:t,e},m_e=function(){var e=!1,t=[],n=function(){e=!0;var o=t.shift();if(o)return o(n);e=!1},r=function(){e=!1,t=[]},a=function(o){t.push(o),!e&&t.length===1&&n()};return{clear:r,enqueue:a}},g_e=function(){var e,t=function(){e&&window.cancelAnimationFrame(e)},n=function(r,a){var o,i,l=function(c){if(i=i||c,o=c-i,o>
675a){r();return}e=window.requestAnimationFrame(l)};e=window.requestAnimationFrame(l)};return{cancel:t,schedule:n}},y_e=function(e){var t=0;return e>=0&&e<.2?t=.1:e>=.2&&e<.5?t=.04:e>=.5&&e<.8?t=.02:e>=.8&&e<.99&&(t=.005),A3(e+t,0,.994)},u$=function(e){b.useEffect(e,[])},b_e=function(e){return++e%1e6},v_e=function(){var e=b.useState(0),t=e[1];return b.useCallback(function(){return t(b_e)},[])},__e=function(e){e===void 0&&(e={});var t=v_e(),n=b.useRef(Qy({},e)),r=b.useCallback(function(){return n.current},[]),a=b.useCallback(function(o){o&&(Object.assign(n.current,o),t())},[]);return[r,a]},E_e=function(){var e=b.useRef(!0);return e.current?(e.current=!1,!0):e.current},d$=function(e,t){var n=E_e();b.useEffect(function(){if(!n)return e()},t)},k3=function(){},f$={isFinished:!0,progress:0,sideEffect:k3},N3=function(e){var t=e===void 0?{}:e,n=t.animationDuration,r=n===void 0?200:n,a=t.incrementDuration,o=a===void 0?800:a,i=t.isAnimating,l=i===void 0?!1:i,c=t.minimum,d=c===void 0?.08:c,p=__e(f$),h=p[0],g=p[1],y=b.useRef(null),v=b.useRef(null);u$(function(){y.current=m_e(),v.current=g_e()});var x=b.useCallback(function(){var O,I;(O=v.current)==null||O.cancel(),(I=y.current)==null||I.clear()},[]),C=b.useCallback(function(O){var I;if(O=A3(O,d,1),O===1){var D,U;x(),(D=y.current)==null||D.enqueue(function(J){g({progress:O,sideEffect:function(){var P;return(P=v.current)==null?void 0:P.schedule(J,r)}})}),(U=y.current)==null||U.enqueue(function(){g({isFinished:!0,sideEffect:x})});return}(I=y.current)==null||I.enqueue(function(J){g({isFinished:!1,progress:O,sideEffect:function(){var P;return(P=v.current)==null?void 0:P.schedule(J,r)}})})},[r,x,d,y,g,v]),S=b.useCallback(function(){C(y_e(h().progress))},[h,C]),A=b.useCallback(function(){var O=function(){var I;S(),(I=y.current)==null||I.enqueue(function(D){var U;(U=v.current)==null||U.schedule(function(){O(),D()},o)})};O()},[o,y,v,S]),k=b.useRef(k3),N=h().sideEffect;return b.useEffect(function(){k.current=S}),u$(function(){return l&&A(),x}),d$(function(){h().sideEffect()},[h,N]),d$(function(){l?g(Qy({},f$,{sideEffect:A})):C(1)},[l,C,g,A]),{animationDuration:r,isFinished:h().isFinished,progress:h().progress}};const R3=()=>{const e=PS().state==="loading",[t,n]=b.useState(!1);b.useEffect(()=>{const o=setTimeout(()=>n(e),200);return()=>clearTimeout(o)},[e]);const{isFinished:r,progress:a}=N3({isAnimating:t});return E.jsx("div",{className:"absolute w-0 left-0 right-0 bottom-[-1px] h-[2px] bg-primary transition-all duration-300 ease-in-out",style:{opacity:r?0:1,width:r?0:`${a*100}%`}})},O3=()=>{const{resolvedTheme:e,setTheme:t}=f1();return E.jsx(Xu,{fallback:E.jsx(zr,{variant:"ghost",size:"icon"}),children:E.jsxs("button",{type:"button",className:"flex rounded-full border p-0.5 gap-0.5 group",onClick:()=>t(e==="dark"?"light":"dark"),"aria-label":e==="dark"?"Switch to light mode":"Switch to dark mode",children:[E.jsx("div",{className:xe("border border-transparent rounded-full p-0.5 [&>svg>circle]:transition-colors [&>svg>path]:transition-transform transition-all [&>svg>path]:duration-200 [&>svg>circle]:duration-500 [&>svg>circle]:fill-transparent",e==="light"&&"border-border bg-muted",e==="dark"&&"group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "),children:E.jsx(uY,{size:16})}),E.jsx("div",{className:xe("border border-transparent rounded-full p-0.5 transition-transform transform-gpu duration-500",e==="dark"&&"border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",e==="light"&&"group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"),children:E.jsx(z7,{size:16})})]})})},x_e=()=>{const e=Hn(),{options:{navigation:t=[]}}=e,n=Ks(),r=t.filter(zS({auth:n,context:e}));return r.length===0?E.jsx("style",{children:":root { --top-nav-height: 0px; }"}):E.jsx(b.Suspense,{children:E.jsxs("div",{className:"items-center justify-between px-8 h-(--top-nav-height) hidden lg:flex text-sm relative",children:[E.jsx("nav",{className:"text-sm",children:E.jsx("ul",{className:"flex flex-row items-center gap-8",children:r.map(a=>a.type==="separator"?E.jsx("li",{className:"-mx-4 h-7",children:E.jsx(wC,{orientation:"vertical"})},a.label):a.type!=="section"&&a.type!=="filter"?E.jsx("li",{children:E.jsx(D3,{...a}
675)},a.label+a.type):null)})}),E.jsx(Ca.Target,{name:"top-navigation-side"})]})})},CT=({isActive:e,children:t,...n})=>E.jsx(oh,{viewTransition:!0,className:({isActive:r,isPending:a})=>{const o=r||e;return gy("flex items-center gap-2 lg:py-3.5 font-medium -mb-px transition duration-150 delay-75 relative",o||a?["text-foreground","after:content-[''] after:absolute after:bottom-0 after:left-0 after:right-0","after:h-0.5 after:bg-primary",o&&"after:[view-transition-name:top-nav-underline]",a&&"after:bg-primary/25"]:"text-foreground/75 hover:text-foreground")},...n,children:t}),D3=e=>{const t=Lb(),n=p3(t.topNavItem,e),r=q2(e);return E.jsxs(CT,{to:r,isActive:n,children:[e.icon&&E.jsx(e.icon,{size:16,className:"align-[-0.125em]"}),e.label]})},w_e=()=>{const e=Hn(),t=Ks(),{options:{navigation:n=[],site:r},getProfileMenuItems:a}=e,{isAuthenticated:o,profile:i,isAuthEnabled:l}=t,[c,d]=b.useState(!1),p=a(),h=n.filter(zS({auth:t,context:e}));return E.jsxs(JU,{direction:r?.dir==="rtl"?"left":"right",open:c,onOpenChange:g=>d(g),children:[E.jsxs("div",{className:"flex lg:hidden justify-self-end",children:[E.jsx(Yle,{className:"lg:hidden",children:E.jsx(M7,{size:22})}),E.jsx(R3,{})]}),E.jsx(U1,{className:"lg:hidden h-dvh end-0 start-auto w-[320px] rounded-none","aria-describedby":void 0,children:E.jsxs("div",{className:"p-4 overflow-y-auto overscroll-none h-full flex flex-col justify-between",children:[E.jsxs("div",{children:[E.jsx(Eh,{children:E.jsx(F1,{children:"Navigation"})}),E.jsx(_3,{className:"flex p-4"}),E.jsxs("ul",{className:"flex flex-col items-center gap-4 p-4",children:[E.jsx("li",{className:"empty:hidden",children:E.jsx(Ca.Target,{name:"top-navigation-side"})}),l&&E.jsx(Xu,{fallback:E.jsx(ST,{className:"rounded-sm h-5 w-24 mr-4"}),children:o?Object.values(a()).length>0&&E.jsxs("li",{children:[i?.name?`${i.name}`:"My Account",i?.email&&E.jsx("div",{className:"font-normal text-muted-foreground",children:i.email})]}):E.jsx("li",{children:E.jsx(CT,{to:"/signin",onClick:()=>d(!1),children:"Login"})})}),h.map(g=>g.type==="separator"?E.jsx(wC,{className:"w-full"},g.label):g.type!=="section"&&g.type!=="filter"?E.jsx("li",{children:E.jsx("button",{type:"button",onClick:()=>d(!1),children:E.jsx(D3,{...g})})},g.label):null),l&&o&&p.length>0&&E.jsx(Xu,{fallback:E.jsx(ST,{className:"rounded-sm h-5 w-24 mr-4"}),children:p.map(g=>E.jsx("li",{children:E.jsx(CT,{to:g.path??"",target:g.target,rel:g.target==="_blank"?"noopener noreferrer":void 0,onClick:()=>d(!1),children:g.label})},g.label))}),E.jsx("li",{children:E.jsx(O3,{})})]})]}),r?.showPoweredBy!==!1&&E.jsx(C3,{className:"grow-0 justify-center gap-1"})]})})]})},ay=({item:e})=>e.children?E.jsxs(Ase,{children:[E.jsx(kse,{children:e.label}),E.jsx(xse,{children:E.jsx(Nse,{children:e.children.map(t=>E.jsx(ay,{item:t},t.label))})})]},e.label):E.jsx(ld,{to:e.path??"",target:e.target,rel:e.target==="_blank"?"noopener noreferrer":void 0,children:E.jsxs(Sse,{className:"flex gap-2",children:[e.icon&&E.jsx(e.icon,{size:16,strokeWidth:1,absoluteStrokeWidth:!0}),e.label]},e.label)}),I3=b.memo(function(){const e=Ks(),{isAuthenticated:t,profile:n,isAuthEnabled:r}=Ks(),a=Hn(),{options:{plugins:o=[],site:i,basePath:l}}=a,c=o.filter(g=>Uz(g)).flatMap(g=>g.getProfileMenuItems(a)).sort(g=>g.weight??0),d=i?.logo?/https?:\/\//.test(i.logo.src.light)?i.logo.src.light:Tn(l,i.logo.src.light):void 0,p=i?.logo?/https?:\/\//.test(i.logo.src.dark)?i.logo.src.dark:Tn(l,i.logo.src.dark):void 0,h="inset-shadow-[0_-1px_0_0_var(--border)]";return E.jsxs("header",{className:"sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full","data-pagefind-ignore":"all",children:[E.jsx(d_e,{}),E.jsxs("div",{className:xe(h,"relative"),children:[E.jsx(R3,{}),E.jsxs("div",{className:"max-w-screen-2xl mx-auto flex items-center justify-between h-(--top-header-height) px-4 lg:px-8 border-transparent",children:[E.jsx("div",{className:"flex",children:E.jsx(ld,{to:i?.logo?.href??"/",children:E.jsx("div",{className:"flex items-center gap-3.5",children:i?.logo?E.jsxs(E.Fragment,{children:[E.jsx("img",{src:d,alt:i.logo.alt??i.title,style:{width:i.logo.width},className:"max-h-(--top-header-height) dark:hidden",loading:"lazy"}),E.jsx("img",{src:p,alt:i.logo.alt??i.title,style:{width:i.logo.width},className:"max-h-(--top-header-height) hidden dark:block",loading:"lazy"})]}):E.jsx("span",{className:"font-semibold text-2xl",children:i?.title})})})}),E.jsx("div",{className:"absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none",children:E.jsx(_3,{className:"pointer-events-auto"})}),E.jsxs("div",{className:"flex items-center gap-8",children:[E.jsx(w_e,{}),E.jsxs("div",{className:"hidden lg:flex items-center justify-self-end text-sm gap-2",children:[E.jsx(Ca.Target,{name:"head-navigation-start"}),r&&E.jsx(Xu,{fallback:E.jsx(ST,{className:"rounded-sm h-5 w-24 mr-4"}),children:t?Object.values(c).length>0&&E.jsxs(Ese,{modal:!1,children:[E.jsx(wse,{asChild:!0,children:E.jsx(zr,{variant:"ghost",children:n?.name??"My Account"})}),E.jsxs(Tse,{className:"w-56",children:[E.jsxs(Cse,{children:[n?.name?`${n.name}`:"My Account",n?.email&&E.jsx("div",{className:"font-normal text-muted-foreground",children:n.email})]}),c.filter(g=>g.category==="top").length>0&&E.jsx(H0,{}),c.filter(g=>g.category==="top").map(g=>E.jsx(ay,{item:g},g.label)),c.filter(g=>!g.category||g.category==="middle").length>0&&E.jsx(H0,{}),c.filter(g=>!g.category||g.category==="middle").map(g=>E.jsx(ay,{item:g},g.label)),c.filter(g=>g.category==="bottom").length>0&&E.jsx(H0,{}),c.filter(g=>g.category==="bottom").map(g=>E.jsx(ay,{item:g},g.label))]})]}):E.jsx(zr,{variant:"ghost",onClick:()=>e.login(),children:"Login"})}),E.jsx(Ca.Target,{name:"head-navigation-end"}),E.jsx(O3,{})]})]})]})]}),E.jsx("div",{className:xe("hidden lg:block",h),children:E.jsxs("div",{className:"max-w-screen-2xl mx-auto border-transparent relative",children:[E.jsx(Ca.Target,{name:"top-navigation-before"}),E.jsx(x_e,{}),E.jsx(Ca.Target,{name:"top-navigation-after"})]})})]})}),L3={Header:I3},T_e=b.createContext(L3),S_e=T_e.Provider,C_e=()=>{const e=Sn(),t=Hn(),n=b.useRef(void 0);return b.useEffect(()=>{t.emitEvent("location",{from:n.current,to:e}),n.current=e},[t,e]),null},A_e=({children:e,context:t})=>(CS({queryFn:async()=>(await t.initialize(),!0),queryKey:["zudoku-initialize",XZ]}),E.jsx(U2.Provider,{value:t,children:e}));let p$;const $3=b.memo(({children:e,env:t,...n})=>{const r=b.useMemo(()=>({...L3,...n.overrides}),[n.overrides]),a=Sn(),o=b.useMemo(()=>({...(n.plugins??[]).filter(Jne).flatMap(h=>h.getMdxComponents?[h.getMdxComponents()]:[]).reduce((h,g)=>({...h,...g}),{}),...v3,...n.mdx?.components}),[n.mdx?.components,n.plugins]),[i,l]=b.useState(!1),c=PS(),d=Jp();b.useEffect(()=>{i||!c.location||l(!0)},[i,c.location]),p$??=new l_e(n,d,t);const p=n.plugins?.flatMap(h=>Xne(h)?h.getHead?.({location:a})??[]:[]);return E.jsxs(E.Fragment,{children:[E.jsx(J1,{children:p}),E.jsx(A_e,{context:p$,children:E.jsxs(b.Suspense,{fallback:E.jsx("div",{children:"Zudoku Loading..."}),children:[E.jsx(C_e,{}),E.jsx(e_e,{slots:n.slots??n.UNSAFE_slotlets,children:E.jsx(are,{components:o,children:E.jsx(Fne,{attribute:"class",disableTransitionOnChange:!0,children:E.jsx(S_e,{value:r,children:E.jsx(sue,{children:e??E.jsx(ah,{})})})})})})]})})]})});$3.displayName="ZudokuInner";const P3=e=>E.jsx(a_e,{FallbackComponent:u_e,children:E.jsx($3,{...e,env:e.env??{}})});P3.displayName="Zudoku";var h$=1,k_e=.9,N_e=.8,R_e=.17,Ex=.1,xx=.999,O_e=.9999,D_e=.99,I_e=/[\\\/_+.#"@\[\(\{&]/,L_e=/[\\\/_+.#"@\[\(\{&]/g,$_e=/[\s-]/,M3=/[\s-]/g;function AT(e,t,n,r,a,o,i){if(o===t.length)return a===e.length?h$:D_e;var l=`${a},${o}`;if(i[l]!==void 0)return i[l];for(var c=r.charAt(o),d=n.indexOf(c,a),p=0,h,g,y,v;d>=0;)h=AT(e,t,n,r,d+1,o+1,i),h>p&&(d===a?h*=h$:I_e.test(e.charAt(d-1))?(h*=N_e,y=e.slice(a,d-1).match(L_e),y&&a>0&&(h*=Math.pow(xx,y.length))):$_e.test(e.charAt(d-1))?(h*=k_e,v=e.slice(a,d-1).match(M3),v&&a>0&&(h*=Math.pow(xx,v.length))):(h*=R_e,a>0&&(h*=Math.pow(xx,d-a))),e.charAt(d)!==t.charAt(o)&&(h*=O_e)),(h<Ex&&n.charAt(d-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(d-1)!==r.charAt(o))&&(g=AT(e,t,n,r,d+1,o+2,i),g*Ex>h&&(h=g*Ex)),h>p&&(p=h),d=n.indexOf(c,d+1);return i[l]=p,p}function m$(e){return e.toLowerCase().replace(M3," ")}function P_e(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,AT(e,t,m$(e),m$(t),0,0,{})}var Hf='[cmdk-group=""]',wx='[cmdk-group-items=""]',M_e='[cmdk-group-heading=""]',j3='[cmdk-item=""]',g$=`${j3}:not([aria-disabled="true"])`,kT="cmdk-item-select",xu="data-value",j_e=(e,t,n
vendor: 10,308 bytes, line 675
675)=>P_e(e,t,n),z3=b.createContext(void 0),Nh=()=>b.useContext(z3),B3=b.createContext(void 0),AC=()=>b.useContext(B3),U3=b.createContext(void 0),F3=b.forwardRef((e,t)=>{let n=wu(()=>{var G,L;return{search:"",value:(L=(G=e.value)!=null?G:e.defaultValue)!=null?L:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=wu(()=>new Set),a=wu(()=>new Map),o=wu(()=>new Map),i=wu(()=>new Set),l=H3(e),{label:c,children:d,value:p,onValueChange:h,filter:g,shouldFilter:y,loop:v,disablePointerSelection:x=!1,vimBindings:C=!0,...S}=e,A=fr(),k=fr(),N=fr(),O=b.useRef(null),I=Z_e();nc(()=>{if(p!==void 0){let G=p.trim();n.current.value=G,D.emit()}},[p]),nc(()=>{I(6,Q)},[]);let D=b.useMemo(()=>({subscribe:G=>(i.current.add(G),()=>i.current.delete(G)),snapshot:()=>n.current,setState:(G,L,de)=>{var _e,Ce,he,Be;if(!Object.is(n.current[G],L)){if(n.current[G]=L,G==="search")K(),P(),I(1,X);else if(G==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let qe=document.getElementById(N);qe?qe.focus():(_e=document.getElementById(A))==null||_e.focus()}if(I(7,()=>{var qe;n.current.selectedItemId=(qe=ne())==null?void 0:qe.id,D.emit()}),de||I(5,Q),((Ce=l.current)==null?void 0:Ce.value)!==void 0){let qe=L??"";(Be=(he=l.current).onValueChange)==null||Be.call(he,qe);return}}D.emit()}},emit:()=>{i.current.forEach(G=>G())}}),[]),U=b.useMemo(()=>({value:(G,L,de)=>{var _e;L!==((_e=o.current.get(G))==null?void 0:_e.value)&&(o.current.set(G,{value:L,keywords:de}),n.current.filtered.items.set(G,J(L,de)),I(2,()=>{P(),D.emit()}))},item:(G,L)=>(r.current.add(G),L&&(a.current.has(L)?a.current.get(L).add(G):a.current.set(L,new Set([G]))),I(3,()=>{K(),P(),n.current.value||X(),D.emit()}),()=>{o.current.delete(G),r.current.delete(G),n.current.filtered.items.delete(G);let de=ne();I(4,()=>{K(),de?.getAttribute("id")===G&&X(),D.emit()})}),group:G=>(a.current.has(G)||a.current.set(G,new Set),()=>{o.current.delete(G),a.current.delete(G)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:A,inputId:N,labelId:k,listInnerRef:O}),[]);function J(G,L){var de,_e;let Ce=(_e=(de=l.current)==null?void 0:de.filter)!=null?_e:j_e;return G?Ce(G,n.current.search,L):0}function P(){if(!n.current.search||l.current.shouldFilter===!1)return;let G=n.current.filtered.items,L=[];n.current.filtered.groups.forEach(_e=>{let Ce=a.current.get(_e),he=0;Ce.forEach(Be=>{let qe=G.get(Be);he=Math.max(qe,he)}),L.push([_e,he])});let de=O.current;ae().sort((_e,Ce)=>{var he,Be;let qe=_e.getAttribute("id"),nt=Ce.getAttribute("id");return((he=G.get(nt))!=null?he:0)-((Be=G.get(qe))!=null?Be:0)}).forEach(_e=>{let Ce=_e.closest(wx);Ce?Ce.appendChild(_e.parentElement===Ce?_e:_e.closest(`${wx} > *`)):de.appendChild(_e.parentElement===de?_e:_e.closest(`${wx} > *`))}),L.sort((_e,Ce)=>Ce[1]-_e[1]).forEach(_e=>{var Ce;let he=(Ce=O.current)==null?void 0:Ce.querySelector(`${Hf}[${xu}="${encodeURIComponent(_e[0])}"]`);he?.parentElement.appendChild(he)})}function X(){let G=ae().find(de=>de.getAttribute("aria-disabled")!=="true"),L=G?.getAttribute(xu);D.setState("value",L||void 0)}function K(){var G,L,de,_e;if(!n.current.search||l.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let Ce=0;for(let he of r.current){let Be=(L=(G=o.current.get(he))==null?void 0:G.value)!=null?L:"",qe=(_e=(de=o.current.get(he))==null?void 0:de.keywords)!=null?_e:[],nt=J(Be,qe);n.current.filtered.items.set(he,nt),nt>0&&Ce++}for(let[he,Be]of a.current)for(let qe of Be)if(n.current.filtered.items.get(qe)>0){n.current.filtered.groups.add(he);break}n.current.filtered.count=Ce}function Q(){var G,L,de;let _e=ne();_e&&(((G=_e.parentElement)==null?void 0:G.firstChild)===_e&&((de=(L=_e.closest(Hf))==null?void 0:L.querySelector(M_e))==null||de.scrollIntoView({block:"nearest"})),_e.scrollIntoView({block:"nearest"}))}function ne(){var G;return(G=O.current)==null?void 0:G.querySelector(`${j3}[aria-selected="true"]`)}function ae(){var G;return Array.from(((G=O.current)==null?void 0:G.querySelectorAll(g$))||[])}function H(G){let L=ae()[G];L&&D.setState("value",L.getAttribute(xu))}function re(G){var L;let de=ne(),_e=ae(),Ce=_e.findIndex(Be=>Be===de),he=_e[Ce+G];(L=l.current)!=null&&L.loop&&(he=Ce+G<0?_e[_e.length-1]:Ce+G===_e.length?_e[0]:_e[Ce+G]),he&&D.setState("value",he.getAttribute(xu))}function ee(G){let L=ne(),de=L?.closest(Hf),_e;for(;de&&!_e;)de=G>0?Y_e(de,Hf):W_e(de,Hf),_e=de?.querySelector(g$);_e?D.setState("value",_e.getAttribute(xu)):re(G)}let ge=()=>H(ae().length-1),B=G=>{G.preventDefault(),G.metaKey?ge():G.altKey?ee(1):re(1)},V=G=>{G.preventDefault(),G.metaKey?H(0):G.altKey?ee(-1):re(-1)};return b.createElement(st.div,{ref:t,tabIndex:-1,...S,"cmdk-root":"",onKeyDown:G=>{var L;(L=S.onKeyDown)==null||L.call(S,G);let de=G.nativeEvent.isComposing||G.keyCode===229;if(!(G.defaultPrevented||de))switch(G.key){case"n":case"j":{C&&G.ctrlKey&&B(G);break}case"ArrowDown":{B(G);break}case"p":case"k":{C&&G.ctrlKey&&V(G);break}case"ArrowUp":{V(G);break}case"Home":{G.preventDefault(),H(0);break}case"End":{G.preventDefault(),ge();break}case"Enter":{G.preventDefault();let _e=ne();if(_e){let Ce=new Event(kT);_e.dispatchEvent(Ce)}}}}},b.createElement("label",{"cmdk-label":"",htmlFor:U.inputId,id:U.labelId,style:Q_e},c),vv(e,G=>b.createElement(B3.Provider,{value:D},b.createElement(z3.Provider,{value:U},G))))}),z_e=b.forwardRef((e,t)=>{var n,r;let a=fr(),o=b.useRef(null),i=b.useContext(U3),l=Nh(),c=H3(e),d=(r=(n=c.current)==null?void 0:n.forceMount)!=null?r:i?.forceMount;nc(()=>{if(!d)return l.item(a,i?.id)},[d]);let p=G3(a,o,[e.value,e.children,o],e.keywords),h=AC(),g=rs(I=>I.value&&I.value===p.current),y=rs(I=>d||l.filter()===!1?!0:I.search?I.filtered.items.get(a)>0:!0);b.useEffect(()=>{let I=o.current;if(!(!I||e.disabled))return I.addEventListener(kT,v),()=>I.removeEventListener(kT,v)},[y,e.onSelect,e.disabled]);function v(){var I,D;x(),(D=(I=c.current).onSelect)==null||D.call(I,p.current)}function x(){h.setState("value",p.current,!0)}if(!y)return null;let{disabled:C,value:S,onSelect:A,forceMount:k,keywords:N,...O}=e;return b.createElement(st.div,{ref:ra(o,t),...O,id:a,"cmdk-item":"",role:"option","aria-disabled":!!C,"aria-selected":!!g,"data-disabled":!!C,"data-selected":!!g,onPointerMove:C||l.getDisablePointerSelection()?void 0:x,onClick:C?void 0:v},e.children)}),B_e=b.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:a,...o}=e,i=fr(),l=b.useRef(null),c=b.useRef(null),d=fr(),p=Nh(),h=rs(y=>a||p.filter()===!1?!0:y.search?y.filtered.groups.has(i):!0);nc(()=>p.group(i),[]),G3(i,l,[e.value,e.heading,c]);let g=b.useMemo(()=>({id:i,forceMount:a}),[a]);return b.createElement(st.div,{ref:ra(l,t),...o,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},n&&b.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},n),vv(e,y=>b.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?d:void 0},b.createElement(U3.Provider,{value:g},y))))}),U_e=b.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,a=b.useRef(null),o=rs(i=>!i.search);return!n&&!o?null:b.createElement(st.div,{ref:ra(a,t),...r,"cmdk-separator":"",role:"separator"})}),F_e=b.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=e.value!=null,o=AC(),i=rs(d=>d.search),l=rs(d=>d.selectedItemId),c=Nh();return b.useEffect(()=>{e.value!=null&&o.setState("search",e.value)},[e.value]),b.createElement(st.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:a?e.value:i,onChange:d=>{a||o.setState("search",d.target.value),n?.(d.target.value)}})}),H_e=b.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...a}=e,o=b.useRef(null),i=b.useRef(null),l=rs(d=>d.selectedItemId),c=Nh();return b.useEffect(()=>{if(i.current&&o.current){let d=i.current,p=o.current,h,g=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let y=d.offsetHeight;p.style.setProperty("--cmdk-list-height",y.toFixed(1)+"px")})});return g.observe(d),()=>{cancelAnimationFrame(h),g.unobserve(d)}}},[]),b.createElement(st.div,{ref:ra(o,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":r,id:c.listId},vv(e,d=>b.createElement("div",{ref:ra(i,c.listInnerRef),"cmdk-list-sizer":""},d)))}),G_e=b.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:o,container:i,...l}=e;return b.createElement($1,{open:n,onOpenChange:r},b.createElement(P1,{container:i},b.createElement(M1,{"cmdk-overlay":"",className:a}),b.createElement(j1,{"aria-label":e.label,"cmdk-dialog":"",className:o},b.createElement(F3,{ref:t,...l}))))}),V_e=b.forwardRef((e,t)=>rs(n=>n.filtered.count===0)?b.createElement(st.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),q_e=b.forwardRef((e,t)=>{let{progress:n,children:r,label:a="Loading...",...o}=e;return b.createElement(st.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},vv(e,i=>b.createElement("div",{"aria-hidden":!0},i)))}),Jt=Object.assign(F3,{List:H_e,Item:z_e,Input:F_e,Group:B_e,Separator:U_e,Dialog:G_e,Empty:V_e,Loading:q_e});function Y_e(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function W_e(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function H3(e){let t=b.useRef(e);return nc(()=>{t.current=e}),t}var nc=typeof window>"u"?b.useEffect:b.useLayoutEffect;function wu(e){let t=b.useRef();return t.current===void 0&&(t.current=e()),t}function rs(e){let t=AC(),n=()=>e(t.snapshot());return b.useSyncExternalStore(t.subscribe,n,n)}function G3(e,t,n,r=[]){let a=b.useRef(),o=Nh();return nc(()=>{var i;let l=(()=>{var d;for(let p of n){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(d=p.current.textContent)==null?void 0:d.trim():a.current}})(),c=r.map(d=>d.trim());o.value(e,l,c),(i=t.current)==null||i.setAttribute(xu,l),a.current=l}),a}var Z_e=()=>{let[e,t]=b.useState(),n=wu(()=>new Map);return nc(()=>{n.current.forEach(r=>
675r()),n.current=new Map},[e]),(r,a)=>{n.current.set(r,a),t({})}};function K_e(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function vv({asChild:e,children:t},n){return e&&b.isValidElement(t)?b.cloneElement(K_e(t),{ref:t.ref},n(t.props.children)):n(t)}var Q_e={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Rh({...e}){return E.jsx($1,{"data-slot":"dialog",...e})}function X_e({...e}){return E.jsx(BU,{"data-slot":"dialog-trigger",...e})}function J_e({...e}){return E.jsx(P1,{"data-slot":"dialog-portal",...e})}function eEe({className:e,...t}){return E.jsx(M1,{"data-slot":"dialog-overlay",className:xe("backdrop-blur-xs transition-all","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/32",e),...t})}function Oh({className:e,children:t,showCloseButton:n=!0,...r}){return E.jsxs(J_e,{"data-slot":"dialog-portal",children:[E.jsx(eEe,{}),E.jsxs(j1,{"data-slot":"dialog-content",className:xe("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-xl",e),...r,children:[t,n&&E.jsxs(ble,{className:"absolute p-3 group -left-1.5 -top-1.5 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[E.jsx(JM,{className:"h-2 w-2 transition-all border border-transparent group-hover:border-white/20 rounded-full group-hover:scale-180 group-hover:text-red-400",strokeWidth:2,fill:"currentColor"}),E.jsx(Cb,{className:"h-2 w-2 absolute top-3 left-3 text-transparent group-hover:text-red-800 transition-colors",strokeWidth:2,fill:"currentColor"}),E.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function tEe({className:e,...t}){return E.jsx("div",{"data-slot":"dialog-header",className:xe("flex flex-col gap-2 text-center sm:text-left",e),...t})}function kC({className:e,...t}){return E.jsx("div",{"data-slot":"dialog-footer",className:xe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function _v({className:e,...t}){return E.jsx(z1,{"data-slot":"dialog-title",className:xe("text-lg leading-none font-semibold",e),...t})}function NC({className:e,...t}){return E.jsx(UU,{"data-slot":"dialog-description",className:xe("text-muted-foreground text-sm",e),...t})}const V3=b.forwardRef(({className:e,...t},n)=>E.jsx(Jt,{ref:n,className:xe("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));V3.displayName=Jt.displayName;const nEe=({children:e,command:t,content:n,...r})=>E.jsx(Rh,{...r,children:E.jsx(Oh,{...n,className:xe("overflow-hidden p-0 shadow-lg top-[15vh] translate-y-[0%]",n?.className),"aria-describedby":void 0,children:E.jsx(V3,{...t,className:xe("[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",t?.className),children:e})})}),q3=b.forwardRef(({className:e,...t},n)=>E.jsxs("div",{className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"",children:[E.jsx(Sb,{className:"size-4! shrink-0 opacity-50"}),E.jsx(Jt.Input,{ref:n,className:xe("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));q3.displayName=Jt.Input.displayName;const rEe=b.forwardRef(({className:e,...t},n)=>E.jsx("div",{className:"flex items-center","cmdk-input-wrapper":"",children:E.jsx(Jt.Input,{ref:n,className:xe("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50","focus-visible:outline-hidden focu
675s-visible:ring-1 focus-visible:ring-ring",e),...t})}));rEe.displayName=Jt.Input.displayName;const Y3=b.forwardRef(({className:e,...t},n)=>E.jsx(Jt.List,{ref:n,className:xe("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Y3.displayName=Jt.List.displayName;const W3=b.forwardRef((e,t)=>E.jsx(Jt.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));W3.displayName=Jt.Empty.displayName;const NT=b.forwardRef(({className:e,...t},n)=>E.jsx(Jt.Group,{ref:n,className:xe("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));NT.displayName=Jt.Group.displayName;const aEe=b.forwardRef(({className:e,...t},n)=>E.jsx(Jt.Separator,{ref:n,className:xe("-mx-1 h-px bg-border",e),...t}));aEe.displayName=Jt.Separator.displayName;const RT=b.forwardRef(({className:e,...t},n)=>E.jsx(Jt.Item,{ref:n,className:xe("relative flex cursor-default gap-2 select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));RT.displayName=Jt.Item.displayName;function oEe({className:e,...t}){return E.jsx(z1,{"data-slot":"dialog-title",className:xe("text-lg leading-none font-semibold",e),...t})}const iEe=async({search:e,options:t,auth:n,context:r})=>{const a=t.maxResults??10,o=t.transformResults??(()=>!0),i=[],l=sEe({search:e,transformFn:o,auth:n,context:r});for await(const c of l)if(i.push(c),i.length>=a)break;return i};async function*sEe({search:e,transformFn:t,auth:n,context:r}){let o=0;for(;o<e.results.length;){const i=e.results.slice(o,o+5);o+=i.length;const l=await Promise.all(i.map(c=>c.data()));for(const c of l){const d=t({result:c,auth:n,context:r});d===!1||(d===!0||d==null?yield c:yield d)}}}const lEe=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/").replace(/^\//,"/"),cEe=(e,t)=>{const n=e.weighted_locations.reduce((a,o)=>a+o.balanced_score,0);return t.weighted_locations.reduce((a,o)=>a+o.balanced_score,0)-n},y$="cursor-pointer border border-transparent data-[selected=true]:border-border",uEe=(e,t,n)=>e.replace("{count}",String(t)).replace("{term}",n),b$=e=>{window.location.href=e},dEe=({basePath:e,searchResults:t,searchTerm:n,onClose:r,maxSubResults:a=4,translations:o})=>{const i=b.useRef(null);b.useLayoutEffect(()=>{requestIdleCallback(()=>{i.current?.scrollTo({top:0})})},[n]);const l=d=>{let p=d.replace(/\.html(#|$|\?)/,"$1");return e&&!p.startsWith(e)&&(p=lEe(e,p)),p},c=o?.resultsFor?uEe(o.resultsFor,t.length,n):`${t.length} results for "${n}"`;return M.jsxs(Y3,{className:"max-h-[450px]",ref:i,children:[n&&t.length>0&&M.jsx(NT,{className:"text-sm text-muted-foreground",heading:c}),n&&t.map(d=>M.jsxs(NT,{children:[M.jsxs(RT,{value:`${d.meta.title}-${d.url}`,className:y$,onSelect:()=>{r(),b$(l(d.url))},children:[d.meta.section==="openapi"?M.jsx(kq,{}):M.jsx(g7,{}),d.meta.title]}),d.sub_results.sort(cEe).slice(0,a).map(p=>M.jsx(RT,{value:`sub-${d.meta.title}-${p.url}`,className:y$,onSelect:()=>{r(),b$(l(p.url))},children:M.jsxs("div",{className:"flex flex-col items-start gap-2 ms-2.5 ps-5 border-l border-muted-foreground/50",children:[M.jsx("span",{className:"font-bold",children:p.title}),M.jsx("span",{className:"text-[13px] [&_mark]:bg-primary [&_mark]:text-primary-foreground",dangerouslySetInnerHTML:{__html:p.excerpt}})]})},`sub-${d.meta.title}-${p.url}`))]},[d.meta.title??d.excerpt,d.url].join("-")))]})},fEe="protected",Cg={termFrequency:.8,pageLength:.6,termSimilarity:1.2,termSaturation:1.2},pEe=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/").replace(/^\//,"/"),hEe=e=>import(pEe(e,"/pagefind/pagefind.js")),mEe=e=>{const{options:{basePath:t}}=Hn(),[n,r]=b.useState(null),[a,o]=b.useState(null),[i,l]=b.useState(!0);return b.useEffect(()=>{if(typeof window>"u")return;let c=!1;return(async()=>{try{const p=await hEe(t);if(c||(await p.init(),await p.options({ranking:{termFrequency:e.ranking?.termFrequency??Cg.termFrequency,pageLength:e.ranking?.pageLength??Cg.pageLength,termSimilarity:e.ranking?.termSimilarity??Cg.termSimilarity,termSaturation:e.ranking?.termSaturation??Cg.termSaturation}}),c))return;r(p),l(!1)}catch(p){if(c)return;const h=p instanceof Error?p:new Error(String(p));h.message!=="NOT_BUILT_YET"&&console.error(h),o(h),l(!1)}})(),()=>{c=!0}},[t,e.ranking]),{pagefind:n,error:a,isError:!!a,isLoading:i}},gEe=({isOpen:e,onClose:t,options:n})=>{const{pagefind:r,error:a,isError:o}=mEe(n),[i,l]=b.useState(""),[c,d]=b.useState([]),p=Ks(),h=Hn(),g=b.useRef(null),y=n.translations??{};return b.useEffect(()=>{if(!r||!i){d([]);return}let v=!1;return(async()=>{const C=p.isAuthenticated?void 0:{not:{section:fEe}},S=await r.search(i,{filters:C});if(v)return;const A=await iEe({search:S,options:n,auth:p,context:h});v||d(A)})(),()=>{v=!0}}
675,[r,i,p.isAuthenticated,n,h]),M.jsxs(nEe,{command:{shouldFilter:!1},content:{className:"max-w-[750px]"},open:e,onOpenChange:t,children:[M.jsx(Eh,{children:M.jsx(oEe,{children:y.dialogTitle??"Search"})}),M.jsx(q3,{ref:g,placeholder:y.placeholder??"Search...",value:i,onValueChange:l,disabled:o}),M.jsx(W3,{children:i?M.jsxs("div",{className:"flex flex-col items-center",children:[y.noResults??"No results found.",M.jsx(Xa,{variant:"link",onClick:()=>{l(""),g.current?.focus()},children:y.clearSearch??"Clear search"})]}):y.startTyping??"Start typing to search"}),o&&a?M.jsx("div",{className:"p-4 text-sm",children:a.message==="NOT_BUILT_YET"?M.jsx(Ps,{type:"info",children:y.devModeMessage??"Search is currently not available in development mode by default. To still use search in development, run zudoku build and copy the dist/pagefind directory to your public directory."}):y.errorMessage??"An error occurred while loading search."}):M.jsx(dEe,{basePath:h.options.basePath,searchResults:c,searchTerm:i,onClose:t,maxSubResults:n.maxSubResults,translations:y})]})},yEe=(e={})=>{const t=e.translations?.searchButton;return{getHead:t?()=>M.jsx("style",{children:` 676 /* Hide original "Search" text and replace with translated text */ 677 header button[type="button"] > div.grow { 678 font-size: 0; 679 } 680 header button[type="button"] > div.grow > svg { 681 font-size: 14px; 682 width: 14px; 683 height: 14px; 684 } 685 header button[type="button"] > div.grow::after { 686 content: "${t}"; 687 font-size: 0.875rem; 688 } 689 `}):void 0,renderSearch:({isOpen:n,onClose:r})=>M.jsx(Xu,{children:M.jsx(gEe,{isOpen:n,onClose:r,options:e})})}},bEe=` 690/* ===== Cakemail brand callouts ===== */ 691 692/* INFO -> Teal */ 693.not-prose.border-blue-400 { border-color:#09AA9C !important; background-color:rgba(10,189,174,.08) !important; } 694.not-prose.border-blue-400 > svg { color:#09AA9C !important; } 695.not-prose.border-blue-400 > h3 { color:#0a7c72 !important; } 696.not-prose.border-blue-400 > div { color:#0f6b63 !important; } 697.not-prose.border-blue-400 > div a { color:#0a7c72 !important; } 698.dark .not-prose.border-blue-400 { border-color:#2AD7D9 !important; background-color:rgba(42,215,217,.10) !important; } 699.dark .not-prose.border-blue-400 > svg { color:#2AD7D9 !important; } 700.dark .not-prose.border-blue-400 > h3 { color:#5fe3e0 !important; } 701.dark .not-prose.border-blue-400 > div { color:#bdf0ee !important; } 702.dark .not-prose.border-blue-400 > div a { color:#7fe6e3 !important; } 703 704/* TIP -> Cakemail Purple */ 705.not-prose.border-green-500 { border-color:#69006E !important; background-color:rgba(105,0,110,.07) !important; } 706.not-prose.border-green-500 > svg { color:#69006E !important; } 707.not-prose.border-green-500 > h3 { color:#69006E !important; } 708.not-prose.border-green-500 > div { color:#5a0a60 !important; } 709.not-prose.border-green-500 > div a { color:#69006E !important; } 710.dark .not-prose.border-green-500 { border-color:#c084c8 !important; background-color:rgba(105,0,110,.24) !important; } 711.dark .not-prose.border-green-500 > svg { color:#c084c8 !important; } 712.dark .not-prose.border-green-500 > h3 { color:#e0a6e4 !important; } 713.dark .not-prose.border-green-500 > div { color:#f0d6f2 !important; } 714.dark .not-prose.border-green-500 > div a { color:#e0a6e4 !important; } 715 716/* CAUTION -> Candlelight */ 717.not-prose.border-yellow-400 { border-color:#FFC00E !important; background-color:rgba(255,192,14,.12) !important; } 718.not-prose.border-yellow-400 > svg { color:#e0a800 !important; } 719.not-prose.border-yellow-400 > h3 { color:#8a6500 !important; } 720.not-prose.border-yellow-400 > div { color:#6b5200 !important; } 721.not-prose.border-yellow-400 > div a { color:#8a6500 !important; } 722.dark .not-prose.border-yellow-400 { border-color:#FFC00E !important; background-color:rgba(255,192,14,.10) !important; } 723.dark .not-prose.border-yellow-400 > svg { color:#FFC00E !important; } 724.dark .not-prose.border-yellow-400 > h3 { color:#ffd34d !important; } 725.dark .not-prose.border-yellow-400 > div { color:#ffe9a8 !important; } 726.dark .not-prose.border-yellow-400 > div a { color:#ffd34d !important; } 727 728/* DANGER -> Radical Red */ 729.not-prose.border-rose-400 { border-color:#FD2E61 !important; background-color:rgba(253,46,97,.07) !important; } 730.not-prose.border-rose-400 > svg { color:#FD2E61 !important; } 731.not-prose.border-rose-400 > h3 { color:#c81e4a !important; } 732.not-prose.border-rose-400 > div { color:#b01a42 !important; } 733.not-prose.border-rose-400 > div a { color:#c81e4a !important; } 734.dark .not-prose.border-rose-400 { border-color:#FD2E61 !important; background-color:rgba(253,46,97,.12) !important; } 735.dark .not-prose.border-rose-400 > svg { color:#ff5c80 !important; } 736.dark .not-prose.border-rose-400 > h3 { color:#ff7d9e !important; } 737.dark .not-prose.border-rose-400 > div { color:#ffc2d1 !important; } 738.dark .not-prose.border-rose-400 > div a { color:#ff7d9e !important; } 739 740/* ===== Top spacing ===== */ 741/* Tighten the oversized gap between the page title block and the first content 742 element (was ~64px: h1 margin-bottom 32 + first-heading margin-top 32). */ 743.prose > header h1 { margin-bottom: 0 !important; } 744.prose > header + * { margin-top: 1.5rem !important; } 745`,vEe={...cq,site:uq,metadata:dq,navigation:lq,theme:{customCss:bEe},plugins:[DY,yEe({translations:{searchButton:"Search",placeholder:"Search and find",noResults:"No results found.",clearSearch:"
745Clear search",startTyping:"Start typing to search",resultsFor:'{count} results for "{term}"'},transformResults:({result:e,auth:t,context:n})=>e.url.includes("~schemas")||e.url.includes("/api/")?!1:e})],redirects:[{from:"/",to:"/docs/first-steps"}],apis:[{type:"file",input:"./apis/openapi.yaml",path:"/api"}],slots:{"top-navigation-side":()=>M.jsx(OY,{})},docs:{files:"pages/**/*.{md,mdx}",publishMarkdown:!0,llms:{llmsTxt:!0,llmsTxtFull:!0,includeProtected:!1}}};var _Ee=class extends l2{#e;#t;#n;#a;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||Z3(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(n=>n!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(t){const n=()=>{this.#r({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=s2({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(i,l)=>{this.#r({type:"failed",failureCount:i,error:l})},onPause:()=>{this.#r({type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const a=this.state.status==="pending",o=!this.#a.canStart();try{if(a)n();else{this.#r({type:"pending",variables:t,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,r);const l=await this.options.onMutate?.(t,r);l!==this.state.context&&this.#r({type:"pending",context:l,variables:t,isPaused:o})}const i=await this.#a.start();return await this.#n.config.onSuccess?.(i,t,this.state.context,this,r),await this.options.onSuccess?.(i,t,this.state.context,r),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(i,null,t,this.state.context,r),this.#r({type:"success",data:i}),i}catch(i){try{await this.#n.config.onError?.(i,t,this.state.context,this,r)}catch(l){Promise.reject(l)}try{await this.options.onError?.(i,t,this.state.context,r)}catch(l){Promise.reject(l)}try{await this.#n.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,r)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,i,t,this.state.context,r)}catch(l){Promise.reject(l)}throw this.#r({type:"error",error:i}),i}finally{this.#n.runNext(this)}}#r(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Sr.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function Z3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}function EEe(e){return e}function v$(e,t,n){if(typeof t!="object"||t===null)return;const r=e.getMutationCache(),a=e.getQueryCache(),o=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??EEe,i=t.mutations||[],l=t.queries||[];i.forEach(({state:c,...d})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...d},c)}),l.forEach(({queryKey:c,state:d,queryHash:p,meta:h,promise:g,dehydratedAt:y})=>{const v=g?VY(g):void 0,x=d.data===void 0?v?.data:d.data,C=x===void 0?x:o(x);let S=a.get(p);const A=S?.state.status==="pending",k=S?.state.fetchStatus==="fetching";if(S){const N=v&&y!==void 0&&y>S.state.dataUpdatedAt;if(d.dataUpdatedAt>S.state.dataUpdatedAt||N){const{fetchStatus:O,...I}=d;S.setState({...I,data:C})}}else S=a.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:c,queryHash:p,meta:h},{...d,data:C,fetchStatus:"idle",status:C!==void 0?"success":d.status});g&&!A&&!k&&(y===void 0||y>S.state.dataUpdatedAt)&&S.fetch(void 0,{initialPromise:Promise.resolve(g).then(o)}).catch(Ir)})}function _$(e){return{onFetch:(t,n)=>
vendor: 6,886 bytes, line 745
745{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let l={pages:[],pageParams:[]},c=0;const d=async()=>{let p=!1;const h=v=>{HY(v,()=>t.signal,()=>p=!0)},g=o2(t.options,t.fetchOptions),y=async(v,x,C)=>{if(p)return Promise.reject();if(x==null&&v.pages.length)return Promise.resolve(v);const S=(()=>{const O={client:t.client,queryKey:t.queryKey,pageParam:x,direction:C?"backward":"forward",meta:t.options.meta};return h(O),O})(),A=await g(S),{maxPages:k}=t.options,N=C?FY:UY;return{pages:N(v.pages,A,k),pageParams:N(v.pageParams,x,k)}};if(a&&o.length){const v=a==="backward",x=v?xEe:E$,C={pages:o,pageParams:i},S=x(r,C);l=await y(C,S,v)}else{const v=e??o.length;do{const x=c===0?i[0]??r.initialPageParam:E$(r,l);if(c>0&&x==null)break;l=await y(l,x),c++}while(c<v)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function E$(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function xEe(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var wEe=class extends id{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,n,r){const a=new _Ee({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){this.#e.add(t);const n=Ag(t);if(typeof n=="string"){const r=this.#t.get(n);r?r.push(t):this.#t.set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const n=Ag(t);if(typeof n=="string"){const r=this.#t.get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&this.#t.delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ag(t);if(typeof n=="string"){const r=this.#t.get(n)?.find(a=>a.state.status==="pending");return!r||r===t}else return!0}runNext(t){const n=Ag(t);return typeof n=="string"?this.#t.get(n)?.find(r=>r!==t&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Sr.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const n={exact:!0,...t};return this.getAll().find(r=>LO(n,r))}findAll(t={}){return this.getAll().filter(n=>LO(t,n))}notify(t){Sr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Sr.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ir))))}};function Ag(e){return e.options.scope?.id}var TEe=class extends id{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,n,r){const a=n.queryKey,o=n.queryHash??ES(a,n);let i=this.get(o);return i||(i=new KY({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=this.#e.get(t.queryHash);n&&(t.destroy(),n===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Sr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>IO(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>IO(t,r)):n}notify(t){Sr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Sr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Sr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},SEe=class{#e;#t;#n;#a;#r;#o;#s;#i;constructor(t={}){this.#e=t.queryCache||new TEe,this.#t=t.mutationCache||new wEe,this.#n=t.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=TS.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=hy.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const n=this.defaultQueryOptions({queryKey:t});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(t){const n=this.defaultQueryOptions(t),r=this.#e.build(this,n),a=r.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Vs(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(a))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:n,state:r})=>{const a=r.data;return[n,a]})}setQueryData(t,n,r){const a=this.defaultQueryOptions({queryKey:t}),o=this.#e.get(a.queryHash)?.state.data,i=jY(n,o);if(i!==void 0)return this.#e.build(this,a).setData(i,{...r,manual:!0})}setQueriesData(t,n,r){return Sr.batch(()=>this.#e.findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,n,r)]))}getQueryState(t){const n=this.defaultQueryOptions({queryKey:t});return this.#e.get(n.queryHash)?.state}removeQueries(t){const n=this.#e;Sr.batch(()=>{n.findAll(t).forEach(r=>{n.remove(r)})})}resetQueries(t,n){const r=this.#e;return Sr.batch(()=>(r.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},n)))}cancelQueries(t,n={}){const r={revert:!0,...n},a=Sr.batch(()=>this.#e.findAll(t).map(o=>o.cancel(r)));return Promise.all(a).then(Ir).catch(Ir)}invalidateQueries(t,n={}){return Sr.batch(()=>(this.#e.findAll(t).forEach(r=>{r.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},n)))}refetchQueries(t,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},a=Sr.batch(()=>this.#e.findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,r);return r.throwOnError||(i=i.catch(Ir)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(a).then(Ir)}fetchQuery(t){const n=this.defaultQueryOptions(t);n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(Vs(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ir).catch(Ir)}fetchInfiniteQuery(t){return t.behavior=_$(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ir).catch(Ir)}ensureInfiniteQueryData(t){return t.behavior=_$(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return hy.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,n){this.#a.set(Kl(t),{queryKey:t,defaultOptions:n})}getQueryDefaults(t){const n=[...this.#a.values()],r={};
745return n.forEach(a=>{Tp(t,a.queryKey)&&Object.assign(r,a.defaultOptions)}),r}setMutationDefaults(t,n){this.#r.set(Kl(t),{mutationKey:t,defaultOptions:n})}getMutationDefaults(t){const n=[...this.#r.values()],r={};return n.forEach(a=>{Tp(t,a.mutationKey)&&Object.assign(r,a.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const n={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return n.queryHash||(n.queryHash=ES(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===xS&&(n.enabled=!1),n}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},CEe=({children:e,options:t={},state:n,queryClient:r})=>{const a=Jp(r),o=b.useRef(t);b.useEffect(()=>{o.current=t});const i=b.useMemo(()=>{if(n){if(typeof n!="object")return;const l=a.getQueryCache(),c=n.queries||[],d=[],p=[];for(const h of c){const g=l.get(h.queryHash);g?(h.state.dataUpdatedAt>g.state.dataUpdatedAt||h.promise&&g.state.status!=="pending"&&g.state.fetchStatus!=="fetching"&&h.dehydratedAt!==void 0&&h.dehydratedAt>g.state.dataUpdatedAt)&&p.push(h):d.push(h)}if(d.length>0&&v$(a,{queries:d},o.current),p.length>0)return p}},[a,n]);return b.useEffect(()=>{i&&v$(a,{queries:i},o.current)},[a,i]),e};const K3=b.createContext({status:200,bypassProtection:!1});function Ne(e,t,n){function r(l,c){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:c,constr:i,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,c);const d=i.prototype,p=Object.keys(d);for(let h=0;h<p.length;h++){const g=p[h];g in l||(l[g]=d[g].bind(l))}}const a=n?.Parent??Object;class o extends a{}Object.defineProperty(o,"name",{value:e});function i(l){var c;const d=n?.Parent?new o:this;r(d,l),(c=d._zod).deferred??(c.deferred=[]);for(const p of d._zod.deferred)p();return d}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:l=>n?.Parent&&l instanceof n.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}let Gu=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Q3=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};const X3={};function Js(e){return X3}function J3(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}function OT(e,t){return typeof t=="bigint"?t.toString():t}function RC(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function OC(e){return e==null}function DC(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const x$=Symbol("evaluating");
vendor: 6,935 bytes, line 745
745function ln(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==x$)return r===void 0&&(r=x$,r=n()),r},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function bc(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ol(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function w$(e){return JSON.stringify(e)}function AEe(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const e5="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Xy(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const kEe=RC(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function nd(e){if(Xy(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Xy(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function t5(e){return nd(e)?{...e}:Array.isArray(e)?[...e]:e}const NEe=new Set(["string","number","symbol"]);function Ev(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function il(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function gt(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function REe(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function OEe(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const a=ol(e._zod.def,{get shape(){const o={};for(const i in t){if(!(i in n.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(o[i]=n.shape[i])}return bc(this,"shape",o),o},checks:[]});return il(e,a)}function DEe(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const a=ol(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const i in t){if(!(i in n.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&delete o[i]}return bc(this,"shape",o),o},checks:[]});return il(e,a)}function IEe(e,t){if(!nd(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const a=e._zod.def.shape;for(const o in t)if(Object.getOwnPropertyDescriptor(a,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=ol(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return bc(this,"shape",a),a}});return il(e,r)}function LEe(e,t){if(!nd(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=ol(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return bc(this,"shape",r),r}});return il(e,n)}function $Ee(e,t){const n=ol(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return bc(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return il(e,n)}function PEe(e,t,n){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=ol(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(n)for(const l in n){if(!(l in o))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(i[l]=e?new e({type:"optional",innerType:o[l]}):o[l])}else for(const l in o)i[l]=e?new e({type:"optional",innerType:o[l]}):o[l];return bc(this,"shape",i),i},checks:[]});return il(t,a)}function MEe(e,t,n){const r=ol(t._zod.def,{get shape(){const a=t._zod.def.shape,o={...a};if(n)for(const i in n){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(o[i]=new e({type:"nonoptional",innerType:a[i]}))}else for(const i in a)o[i]=new e({type:"nonoptional",innerType:a[i]});return bc(this,"shape",o),o}});return il(t,r)}function Ru(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Ou(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function kg(e){return typeof e=="string"?e:e?.message}function el(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const a=kg(e.inst?._zod.def?.error?.(e))??kg(t?.error?.(e))??kg(n.customError?.(e))??kg(n.localeError?.(e))??"Invalid input";r.message=a}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function IC(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function zp(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const n5=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,OT,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},r5=Ne("$ZodError",n5),a5=Ne("$ZodError",n5,{Parent:Error});function jEe(e,t=n=>n.message){const n={},r=[];for(const a of e.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}function zEe(e,t=n=>n.message){const n={_errors:[]},r=a=>{for(const o of a.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(i=>r({issues:i}));else if(o.code==="invalid_key")r({issues:o.issues});else if(o.code==="invalid_element")r({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else{let i=n,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(i[c]=i[c]||{_errors:[]},i[c]._errors.push(t(o))):i[c]=i[c]||{_errors:[]},i=i[c],l++}}};return r(e),n}const LC=e=>(t,n,r,a)=>{const o=r?Object.assign(r,{async:!1}):{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new Gu;if(i.issues.length){const l=new(a?.Err??e)(i.issues.map(c=>el(c,o,Js())));throw e5(l,a?.callee),l}return i.value},$C=e=>async(t,n,r,a)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise&&(i=await i),i.issues.length){const l=new(a?.Err??e)(i.issues.map(c=>el(c,o,Js())));throw e5(l,a?.callee),l}return i.value},xv=e=>(t,n,r)=>{const a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new Gu;return o.issues.length?{success:!1,error:new(e??r5)(o.issues.map(i=>el(i,a,Js())))}:{success:!0,data:o.value}},BEe=xv(a5),wv=e=>async(t,n,r)=>{const a=r?Object.assign(r,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},a);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(i=>el(i,a,Js())))}:{success:!0,data:o.value}}
vendor: 6,014 bytes, line 745
745,UEe=wv(a5),FEe=e=>(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return LC(e)(t,n,a)},HEe=e=>(t,n,r)=>LC(e)(t,n,r),GEe=e=>async(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return $C(e)(t,n,a)},VEe=e=>async(t,n,r)=>$C(e)(t,n,r),qEe=e=>(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return xv(e)(t,n,a)},YEe=e=>(t,n,r)=>xv(e)(t,n,r),WEe=e=>async(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return wv(e)(t,n,a)},ZEe=e=>async(t,n,r)=>wv(e)(t,n,r),KEe=/^[cC][^\s-]{8,}$/,QEe=/^[0-9a-z]+$/,XEe=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,JEe=/^[0-9a-vA-V]{20}$/,e0e=/^[A-Za-z0-9]{27}$/,t0e=/^[a-zA-Z0-9_-]{21}$/,n0e=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,r0e=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,T$=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,a0e=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,o0e="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function i0e(){return new RegExp(o0e,"u")}const s0e=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,l0e=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,c0e=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,u0e=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,d0e=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,o5=/^[A-Za-z0-9_-]*$/,f0e=/^\+[1-9]\d{6,14}$/,i5="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",p0e=new RegExp(`^${i5}$`);function s5(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function h0e(e){return new RegExp(`^${s5(e)}$`)}function m0e(e){const t=s5({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${i5}T(?:${r})$`)}const g0e=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},y0e=/^-?\d+(?:\.\d+)?$/,b0e=/^[^A-Z]*$/,v0e=/^[^a-z]*$/,bi=Ne("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),_0e=Ne("$ZodCheckMaxLength",(e,t)=>{var n;bi.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!OC(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const a=r.value;if(a.length<=t.maximum)return;const o=IC(a);r.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),E0e=Ne("$ZodCheckMinLength",(e,t)=>{var n;bi.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!OC(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const a=r.value;if(a.length>=t.minimum)return;const o=IC(a);r.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),x0e=Ne("$ZodCheckLengthEquals",(e,t)=>{var n;bi.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!OC(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=r=>{const a=r.value,o=a.length;if(o===t.length)return;const i=IC(a),l=o>t.length;r.issues.push({origin:i,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Tv=Ne("$ZodCheckStringFormat",(e,t)=>{var n,r;bi.init(e,t),e._zod.onattach.push(a=>{const o=a._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),w0e=Ne("$ZodCheckRegex",(e,t)=>{Tv.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),T0e=Ne("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=b0e),Tv.init(e,t)}),S0e=Ne("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=v0e),Tv.init(e,t)}),C0e=Ne("$ZodCheckIncludes",(e,t)=>{bi.init(e,t);const n=Ev(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(a=>{const o=a._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input
vendor: 14,317 bytes, lines 745-781
745:a.value,inst:e,continue:!t.abort})}}),A0e=Ne("$ZodCheckStartsWith",(e,t)=>{bi.init(e,t);const n=new RegExp(`^${Ev(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),k0e=Ne("$ZodCheckEndsWith",(e,t)=>{bi.init(e,t);const n=new RegExp(`.*${Ev(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),N0e=Ne("$ZodCheckOverwrite",(e,t)=>{bi.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});let R0e=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(` 746`).filter(o=>o),r=Math.min(...n.map(o=>o.length-o.trimStart().length)),a=n.map(o=>o.slice(r)).map(o=>" ".repeat(this.indent*2)+o);for(const o of a)this.content.push(o)}compile(){const t=Function,n=this?.args,r=[...(this?.content??[""]).map(a=>` ${a}`)];return new t(...n,r.join(` 747`))}};const O0e={major:4,minor:3,patch:6},gr=Ne("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=O0e;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const o of a._zod.onattach)o(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const a=(i,l,c)=>{let d=Ru(i),p;for(const h of l){if(h._zod.def.when){if(!h._zod.def.when(i))continue}else if(d)continue;const g=i.issues.length,y=h._zod.check(i);if(y instanceof Promise&&c?.async===!1)throw new Gu;if(p||y instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await y,i.issues.length!==g&&(d||(d=Ru(i,g)))});else{if(i.issues.length===g)continue;d||(d=Ru(i,g))}}return p?p.then(()=>i):i},o=(i,l,c)=>{if(Ru(i))return i.aborted=!0,i;const d=a(l,r,c);if(d instanceof Promise){if(c.async===!1)throw new Gu;return d.then(p=>e._zod.parse(p,c))}return e._zod.parse(d,c)};e._zod.run=(i,l)=>{if(l.skipChecks)return e._zod.parse(i,l);if(l.direction==="backward"){const d=e._zod.parse({value:i.value,issues:[]},{...l,skipChecks:!0});return d instanceof Promise?d.then(p=>o(p,i,l)):o(d,i,l)}const c=e._zod.parse(i,l);if(c instanceof Promise){if(l.async===!1)throw new Gu;return c.then(d=>a(d,r,l))}return a(c,r,l)}}ln(e,"~standard",()=>({validate:a=>{try{const o=BEe(e,a);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return UEe(e,a).then(o=>o.success?{value:o.data}:{issues:o.error?.issues})}},vendor:"zod",version:1}))}),PC=Ne("$ZodString",(e,t)=>{gr.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??g0e(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Rn=Ne("$ZodStringFormat",(e,t)=>{Tv.init(e,t),PC.init(e,t)}),D0e=Ne("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=r0e),Rn.init(e,t)}),I0e=Ne("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=T$(n))}else t.pattern??(t.pattern=T$());Rn.init(e,t)}),L0e=Ne("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=a0e),Rn.init(e,t)}),$0e=Ne("$ZodURL",(e,t)=>{Rn.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),a=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=a.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),P0e=Ne("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=i0e()),Rn.init(e,t)}),M0e=Ne("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=t0e),Rn.init(e,t)}),j0e=Ne("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=KEe),Rn.init(e,t)}),z0e=Ne("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=QEe),Rn.init(e,t)}),B0e=Ne("$ZodULID",(e,t)=>{t.pattern??(t.pattern=XEe),Rn.init(e,t)}),U0e=Ne("$ZodXID",(e,t)=>{t.pattern??(t.pattern=JEe),Rn.init(e,t)}),F0e=Ne("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=e0e),Rn.init(e,t)}),H0e=Ne("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=m0e(t)),Rn.init(e,t)}),G0e=Ne("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=p0e),Rn.init(e,t)}),V0e=Ne("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=h0e(t)),Rn.init(e,t)}),q0e=Ne("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=n0e),Rn.init(e,t)}),Y0e=Ne("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=s0e),Rn.init(e,t),e._zod.bag.format="ipv4"}),W0e=Ne("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=l0e),Rn.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Z0e=Ne("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=c0e),Rn.init(e,t)}),K0e=Ne("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=u0e),Rn.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[a,o]=r;if(!o)throw new Error;const i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${a}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function l5(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Q0e=Ne("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=d0e),Rn.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{l5(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function X0e(e){if(!o5.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return l5(n)}const J0e=Ne("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=o5),Rn.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{X0e(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),exe=Ne("$ZodE164",(e,t)=>{t.pattern??(t.pattern=f0e),Rn.init(e,t)});function txe(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const a=JSON.parse(atob(r));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}const nxe=Ne("$ZodJWT",(e,t)=>{Rn.init(e,t),e._zod.check=n=>{txe(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),rxe=Ne("$ZodUnknown",(e,t)=>{gr.init(e,t),e._zod.parse=n=>n}),axe=Ne("$ZodNever",(e,t)=>{gr.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function S$(e,t,n){e.issues.length&&t.issues.push(...Ou(n,e.issues)),t.value[n]=e.value}const oxe=Ne("$ZodArray",(e,t)=>{gr.init(e,t),e._zod.parse=(n,r)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),n;n.value=Array(a.length);const o=[];for(let i=0;i<a.length;i++){const l=a[i],c=t.element._zod.run({value:l,issues:[]},r);c instanceof Promise?o.push(c.then(d=>S$(d,n,i))):S$(c,n,i)}return o.length?Promise.all(o).then(()=>n):n}});function Jy(e,t,n,r,a){if(e.issues.length){if(a&&!(n in r))return;t.issues.push(...Ou(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function c5(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=REe(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function u5(e,t,n,r,a,o){const i=[],l=a.keySet,c=a.catchall._zod,d=c.def.type,p=c.optout==="optional";for(const h in t){if(l.has(h))continue;if(d==="never"){i.push(h);continue}const g=c.run({value:t[h],issues:[]},r);g instanceof Promise?e.push(g.then(y=>Jy(y,n,h,t,p))):Jy(g,n,h,t,p)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}const ixe=Ne("$ZodObject",(e,t)=>{if(gr.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const i=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...i};return Object.defineProperty(t,"shape",{value:l}),l}})}const n=RC(()=>c5(t));ln(e._zod,"propValues",()=>{const i=t.shape,l={};for(const c in i){const d=i[c]._zod;if(d.values){l[c]??(l[c]=new Set);for(const p of d.values)l[c].add(p)}}return l});const r=Xy,a=t.catchall;let o;e._zod.parse=(i,l)=>{o??(o=n.value);const c=i.value;if(!r(c))return i.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),i;i.value={};const d=[],p=o.shape;for(const h of o.keys){const g=p[h],y=g._zod.optout==="optional",v=g._zod.run({value:c[h],issues:[]},l);v instanceof Promise?d.push(v.then(x=>Jy(x,i,h,c,y))):Jy(v,i,h,c,y)}return a?u5(d,c,i,l,n.value,e):d.length?Promise.all(d).then(()=>i):i}}),sxe=Ne("$ZodObjectJIT",(e,t)=>{ixe.init(e,t);const n=e._zod.parse,r=RC(()=>c5(t)),a=h=>{const g=new R0e(["shape","payload","ctx"]),y=r.value,v=A=>{const k=w$(A);return`shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`};g.write("const input = payload.value;");const x=Object.create(null);let C=0;for(const A of y.keys)x[A]=`key_${C++}`;g.write("const newResult = {};");for(const A of y.keys){const k=x[A],N=w$(A),O=h[A]?._zod?.optout==="optional";g.write(`const ${k} = ${v(A)};`),O?g.write(` 748 if (${k}.issues.length) { 749 if (${N} in input) { 750 payload.issues = payload.issues.concat(${k}.issues.map(iss => ({ 751 ...iss, 752 path: iss.path ? [${N}, ...iss.path] : [${N}] 753 }))); 754 } 755 } 756 757 if (${k}.value === undefined) { 758 if (${N} in input) { 759 newResult[${N}] = undefined; 760 } 761 } else { 762 newResult[${N}] = ${k}.value; 763 } 764 765 `):g.write(` 766 if (${k}.issues.length) { 767 payload.issues = payload.issues.concat(${k}.issues.map(iss => ({ 768 ...iss, 769 path: iss.path ? [${N}, ...iss.path] : [${N}] 770 }))); 771 } 772 773 if (${k}.value === undefined) { 774 if (${N} in input) { 775 newResult[${N}] = undefined; 776 } 777 } else { 778 newResult[${N}] = ${k}.value; 779 } 780 781 `)}g.write("payload.value = newResult;"),g.write("return payload;");const S=g.compile();return(A,k)=>S(h,A,k)};let o;const i=Xy,l=!X3.jitless,c=l&&kEe.value,d=t.catchall;let p;e._zod.parse=(h,g)=>{p??(p=r.value);const y=h.value;return i(y)?l&&c&&g?.async===!1&&g.jitless!==!0?(o||(o=a(t.shape)),h=o(h,g),d?u5([],y,h,g,p,e):h):n(h,g):(h.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),h)}});function C$(e,t,n,r){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const a=e.filter(o=>!Ru(o));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(i=>el(i,r,Js())))}),t)}const lxe=Ne("$ZodUnion",(e,t)=>{gr.init(e,t),ln(e._zod,"optin",()=>t.options.some(a=>a._zod.optin==="optional")?"optional":void 0),ln(e._zod,"optout",()=>t.options.some(a=>a._zod.optout==="optional")?"optional":void 0),ln(e._zod,"values",()=>{if(t.options.every(a=>a._zod.values))return new Set(t.options.flatMap(a=>Array.from(a._zod.values)))}),ln(e._zod,"pattern",()=>{if(t.options.every(a=>a._zod.pattern)){const a=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${a.map(o=>DC(o.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(a,o)=>{if(n)return r(a,o);let i=!1;const l=[];for(const c of t.options){const d=c._zod.run({value:a.value,issues:[]},o);if(d instanceof Promise)l.push(d),i=!0;else{if(d.issues.length===0)return d;l.push(d)}}return i?Promise.all(l).then(c=>C$(c,a,e,o)):C$(l,a,e,o)}}),cxe=Ne("$ZodIntersection",(e,t)=>{gr.init(e,t),e._zod.parse=(n,r)=>{const a=n.value,o=t.left._zod.run({value:a,issues:[]},r),i=t.right._zod.run({value:a,issues:[]},r);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([l,c])=>A$(n,l,c)):A$(n,o,i)}});function DT(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(nd(e)&&nd(t)){const n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),a={...e,...t};for(const o of r){const i=DT(e[o],t[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};a[o]=i.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const a=e[r],o=t[r],i=DT(a,o);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function A$(e,t,n){const r=new Map;let a;for(const l of t.issues)if(l.code==="unrecognized_keys"){a??(a=l);for(const c of l.keys)r.has(c)||r.set(c,{}),r.get(c).l=!0}else e.issues.push(l);for(const l of n.issues)if(l.code==="unrecognized_keys")for(const c of l.keys)r.has(c)||r.set(c,{}),r.get(c).r=!0;else e.issues.push(l);const o=[...r].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(o.length&&a&&e.issues.push({...a,keys:o}),Ru(e))return e;const i=DT(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const uxe=Ne("$ZodRecord",(e,t)=>{gr.init(e,t),e._zod.parse=(n,r)=>{const a=n.value;if(!nd(a))return n.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),n;const o=[],i=t.keyType._zod.values;if(i){n.value={};const l=new Set;
vendor: 4,329 bytes, line 781
781for(const d of i)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){l.add(typeof d=="number"?d.toString():d);const p=t.valueType._zod.run({value:a[d],issues:[]},r);p instanceof Promise?o.push(p.then(h=>{h.issues.length&&n.issues.push(...Ou(d,h.issues)),n.value[d]=h.value})):(p.issues.length&&n.issues.push(...Ou(d,p.issues)),n.value[d]=p.value)}let c;for(const d in a)l.has(d)||(c=c??[],c.push(d));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:c})}else{n.value={};for(const l of Reflect.ownKeys(a)){if(l==="__proto__")continue;let c=t.keyType._zod.run({value:l,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&y0e.test(l)&&c.issues.length){const p=t.keyType._zod.run({value:Number(l),issues:[]},r);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(c=p)}if(c.issues.length){t.mode==="loose"?n.value[l]=a[l]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(p=>el(p,r,Js())),input:l,path:[l],inst:e});continue}const d=t.valueType._zod.run({value:a[l],issues:[]},r);d instanceof Promise?o.push(d.then(p=>{p.issues.length&&n.issues.push(...Ou(l,p.issues)),n.value[c.value]=p.value})):(d.issues.length&&n.issues.push(...Ou(l,d.issues)),n.value[c.value]=d.value)}}return o.length?Promise.all(o).then(()=>n):n}}),dxe=Ne("$ZodEnum",(e,t)=>{gr.init(e,t);const n=J3(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(a=>NEe.has(typeof a)).map(a=>typeof a=="string"?Ev(a):a.toString()).join("|")})$`),e._zod.parse=(a,o)=>{const i=a.value;return r.has(i)||a.issues.push({code:"invalid_value",values:n,input:i,inst:e}),a}}),fxe=Ne("$ZodTransform",(e,t)=>{gr.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Q3(e.constructor.name);const a=t.transform(n.value,n);if(r.async)return(a instanceof Promise?a:Promise.resolve(a)).then(o=>(n.value=o,n));if(a instanceof Promise)throw new Gu;return n.value=a,n}});function k$(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const d5=Ne("$ZodOptional",(e,t)=>{gr.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ln(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ln(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${DC(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(o=>k$(o,n.value)):k$(a,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),pxe=Ne("$ZodExactOptional",(e,t)=>{d5.init(e,t),ln(e._zod,"values",()=>t.innerType._zod.values),ln(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),hxe=Ne("$ZodNullable",(e,t)=>{gr.init(e,t),ln(e._zod,"optin",()=>t.innerType._zod.optin),ln(e._zod,"optout",()=>t.innerType._zod.optout),ln(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${DC(n.source)}|null)$`):void 0}),ln(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),mxe=Ne("$ZodDefault",(e,t)=>{gr.init(e,t),e._zod.optin="optional",ln(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(o=>N$(o,t)):N$(a,t)}});function N$(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const gxe=Ne("$ZodPrefault",(e,t)=>{gr.init(e,t),e._zod.optin="optional",ln(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),yxe=Ne("$ZodNonOptional",(e,t)=>{gr.init(e,t),ln(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(o=>R$(o,e)):R$(a,e)}});function R$(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}
vendor: 6,107 bytes, line 781
781const bxe=Ne("$ZodCatch",(e,t)=>{gr.init(e,t),ln(e._zod,"optin",()=>t.innerType._zod.optin),ln(e._zod,"optout",()=>t.innerType._zod.optout),ln(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(i=>el(i,r,Js()))},input:n.value}),n.issues=[]),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(o=>el(o,r,Js()))},input:n.value}),n.issues=[]),n)}}),vxe=Ne("$ZodPipe",(e,t)=>{gr.init(e,t),ln(e._zod,"values",()=>t.in._zod.values),ln(e._zod,"optin",()=>t.in._zod.optin),ln(e._zod,"optout",()=>t.out._zod.optout),ln(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const o=t.out._zod.run(n,r);return o instanceof Promise?o.then(i=>Ng(i,t.in,r)):Ng(o,t.in,r)}const a=t.in._zod.run(n,r);return a instanceof Promise?a.then(o=>Ng(o,t.out,r)):Ng(a,t.out,r)}});function Ng(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const _xe=Ne("$ZodReadonly",(e,t)=>{gr.init(e,t),ln(e._zod,"propValues",()=>t.innerType._zod.propValues),ln(e._zod,"values",()=>t.innerType._zod.values),ln(e._zod,"optin",()=>t.innerType?._zod?.optin),ln(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(O$):O$(a)}});function O$(e){return e.value=Object.freeze(e.value),e}const Exe=Ne("$ZodCustom",(e,t)=>{bi.init(e,t),gr.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,a=t.fn(r);if(a instanceof Promise)return a.then(o=>D$(o,n,r,e));D$(a,n,r,e)}});function D$(e,t,n,r){if(!e){const a={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(a.params=r._zod.def.params),t.issues.push(zp(a))}}var I$;let xxe=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const a={...r,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function wxe(){return new xxe}(I$=globalThis).__zod_globalRegistry??(I$.__zod_globalRegistry=wxe());const ep=globalThis.__zod_globalRegistry;function Txe(e,t){return new e({type:"string",...gt(t)})}function Sxe(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...gt(t)})}function L$(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...gt(t)})}function Cxe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...gt(t)})}function Axe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...gt(t)})}function kxe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...gt(t)})}function Nxe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...gt(t)})}function Rxe(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...gt(t)})}function Oxe(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...gt(t)})}function Dxe(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...gt(t)})}function Ixe(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...gt(t)})}function Lxe(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...gt(t)})}function $xe(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...gt(t)})}function Pxe(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...gt(t)})}function Mxe(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...gt(t)})}function jxe(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...gt(t)})}function zxe(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...gt(t)})}function Bxe(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...gt(t)})}function Uxe(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...gt(t)})}function Fxe(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...gt(t)})}function Hxe(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...gt(t)})}function Gxe(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...gt(t)})}function Vxe(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...gt(t)})}function qxe(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...gt(t)})}function Yxe(e,t){return new e({type:"string",format:"date",check:"string_format",...gt(t)})}function Wxe(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...gt(t)})}function Zxe(e,t){return new e({type:"string",format:"duration",check:"string_format",...gt(t)})}function Kxe(e){return new e({type:"unknown"})}function Qxe(e,t){return new e({type:"never",...gt(t)})}function f5(e,t){return new _0e({check:"max_length",...gt(t),maximum:e})}function eb(e,t){return new E0e({check:"min_length",...gt(t),minimum:e})}function p5(e,t){return new x0e({check:"length_equals",...gt(t),length:e})}function Xxe(e,t){return new w0e({check:"string_format",format:"regex",...gt(t),pattern:e})}function Jxe(e){return new T0e({check:"string_format",format:"lowercase",...gt(e)})}function ewe(e){return new S0e({check:"string_format",format:"up
781percase",...gt(e)})}function twe(e,t){return new C0e({check:"string_format",format:"includes",...gt(t),includes:e})}function nwe(e,t){return new A0e({check:"string_format",format:"starts_with",...gt(t),prefix:e})}function rwe(e,t){return new k0e({check:"string_format",format:"ends_with",...gt(t),suffix:e})}function Cd(e){return new N0e({check:"overwrite",tx:e})}function awe(e){return Cd(t=>t.normalize(e))}function owe(){return Cd(e=>e.trim())}function iwe(){return Cd(e=>e.toLowerCase())}function swe(){return Cd(e=>e.toUpperCase())}function lwe(){return Cd(e=>AEe(e))}function cwe(e,t,n){return new e({type:"array",element:t,...gt(n)})}function uwe(e,t,n){const r=gt(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function dwe(e,t,n){return new e({type:"custom",check:"custom",fn:t,...gt(n)})}function fwe(e){const t=pwe(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(zp(r,n.value,t._zod.def));else{const a=r;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=t),a.continue??(a.continue=!t._zod.def.abort),n.issues.push(zp(a))}},e(n.value,n)));return t}function pwe(e,t){const n=new bi({check:"custom",...gt(t)});return n._zod.check=e,n}function h5(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??ep,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function pr(e,t,n={path:[],schemaPath:[]}){var r;const a=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const l=e._zod.toJSONSchema?.();if(l)i.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,d);else{const h=i.schema,g=t.processors[a.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);g(e,t,h,d)}const p=e._zod.parent;p&&(i.ref||(i.ref=p),pr(p,t,d),t.seen.get(p).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Object.assign(i.schema,c),t.io==="input"&&ua(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&i.schema._prefault&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function m5(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const i of e.seen.entries()){const l=e.metadataRegistry.get(i[0])?.id;if(l){const c=r.get(l);if(c&&c!==i[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(l,i[0])}}const a=i=>{const l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const p=e.external.registry.get(i[0])?.id,h=e.external.uri??(y=>y);if(p)return{ref:h(p)};const g=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=g,{defId:g,ref:`${h("__shared")}#/${l}/${g}`}}if(i[1]===n)return{ref:"#"};const c=`#/${l}/`,d=i[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:c+d}},o=i=>{if(i[1].schema.$ref)return;const l=i[1],{ref:c,defId:d}=a(i);l.def={...l.schema},d&&(l.defId=d);const p=l.schema;for(const h in p)delete p[h];p.$ref=c};if(e.cycles==="throw")for(const i of e.seen.entries()){const l=i[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root> 782 783Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const i of e.seen.entries()){const l=i[1];if(t===i[0]){o(i);continue}if(e.external){const c=e.external.registry.get(i[0])?.id;if(t!==i[0]&&c){o(i);continue}}if(e.metadataRegistry.get(i[0])?.id){o(i);continue}if(l.cycle){o(i);continue}if(l.count>1&&e.reused==="ref"){o(i);continue}}}function g5(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=i=>{const l=e.seen.get(i);if(l.ref===null)return;const c=l.def??l.schema,d={...c},p=l.ref;if(l.ref=null,p){r(p);const g=e.seen.get(p),y=g.schema;if(y.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(y)):Object.assign(c,y),Object.assign(c,d),i._zod.parent===p)for(const v in c)v==="$ref"||v==="allOf"||v in d||delete c[v];if(y.$ref&&g.def)for(const v in c)v==="$ref"||v==="allOf"||v in g.def&&JSON.stringify(c[v])===JSON.stringify(g.def[v])&&delete c[v]}const h=i._zod.parent;if(h&&h!==p){r(h);const g=e.seen.get(h);if(g?.schema.$ref&&(c.$ref=g.schema.$ref,g.def))for(const y in c)y==="$ref"||y==="allOf"||y in g.def&&JSON.stringify(c[y])===JSON.stringify(g.def[y])&&delete c[y]}e.override({zodSchema:i,jsonSchema:c,path:l.path??[]})};for(const i of[...e.seen.entries()].reverse())r(i[0]);const a={};
vendor: 10,141 bytes, line 783
783if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const i=e.external.registry.get(t)?.id;if(!i)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(i)}Object.assign(a,n.def??n.schema);const o=e.external?.defs??{};for(const i of e.seen.entries()){const l=i[1];l.def&&l.defId&&(o[l.defId]=l.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?a.$defs=o:a.definitions=o);try{const i=JSON.parse(JSON.stringify(a));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:tb(t,"input",e.processors),output:tb(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function ua(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return ua(r.element,n);if(r.type==="set")return ua(r.valueType,n);if(r.type==="lazy")return ua(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return ua(r.innerType,n);if(r.type==="intersection")return ua(r.left,n)||ua(r.right,n);if(r.type==="record"||r.type==="map")return ua(r.keyType,n)||ua(r.valueType,n);if(r.type==="pipe")return ua(r.in,n)||ua(r.out,n);if(r.type==="object"){for(const a in r.shape)if(ua(r.shape[a],n))return!0;return!1}if(r.type==="union"){for(const a of r.options)if(ua(a,n))return!0;return!1}if(r.type==="tuple"){for(const a of r.items)if(ua(a,n))return!0;return!!(r.rest&&ua(r.rest,n))}return!1}const hwe=(e,t={})=>n=>{const r=h5({...n,processors:t});return pr(e,r),m5(r,e),g5(r,e)},tb=(e,t,n={})=>r=>{const{libraryOptions:a,target:o}=r??{},i=h5({...a??{},target:o,io:t,processors:n});return pr(e,i),m5(i,e),g5(i,e)},mwe={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},gwe=(e,t,n,r)=>{const a=n;a.type="string";const{minimum:o,maximum:i,format:l,patterns:c,contentEncoding:d}=e._zod.bag;if(typeof o=="number"&&(a.minLength=o),typeof i=="number"&&(a.maxLength=i),l&&(a.format=mwe[l]??l,a.format===""&&delete a.format,l==="time"&&delete a.format),d&&(a.contentEncoding=d),c&&c.size>0){const p=[...c];p.length===1?a.pattern=p[0].source:p.length>1&&(a.allOf=[...p.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},ywe=(e,t,n,r)=>{n.not={}},bwe=(e,t,n,r)=>{},vwe=(e,t,n,r)=>{const a=e._zod.def,o=J3(a.entries);o.every(i=>typeof i=="number")&&(n.type="number"),o.every(i=>typeof i=="string")&&(n.type="string"),n.enum=o},_we=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Ewe=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},xwe=(e,t,n,r)=>{const a=n,o=e._zod.def,{minimum:i,maximum:l}=e._zod.bag;typeof i=="number"&&(a.minItems=i),typeof l=="number"&&(a.maxItems=l),a.type="array",a.items=pr(o.element,t,{...r,path:[...r.path,"items"]})},wwe=(e,t,n,r)=>{const a=n,o=e._zod.def;a.type="object",a.properties={};const i=o.shape;for(const d in i)a.properties[d]=pr(i[d],t,{...r,path:[...r.path,"properties",d]});const l=new Set(Object.keys(i)),c=new Set([...l].filter(d=>{const p=o.shape[d]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));c.size>0&&(a.required=Array.from(c)),o.catchall?._zod.def.type==="never"?a.additionalProperties=!1:o.catchall?o.catchall&&(a.additionalProperties=pr(o.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},Twe=(e,t,n,r)=>{const a=e._zod.def,o=a.inclusive===!1,i=a.options.map((l,c)=>pr(l,t,{...r,path:[...r.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=i:n.anyOf=i},Swe=(e,t,n,r)=>{const a=e._zod.def,o=pr(a.left,t,{...r,path:[...r.path,"allOf",0]}),i=pr(a.right,t,{...r,path:[...r.path,"allOf",1]}),l=d=>"allOf"in d&&Object.keys(d).length===1,c=[...l(o)?o.allOf:[o],...l(i)?i.allOf:[i]];n.allOf=c},Cwe=(e,t,n,r)=>{const a=n,o=e._zod.def;a.type="object";const i=o.keyType,l=i._zod.bag?.patterns;if(o.mode==="loose"&&l&&l.size>0){const d=pr(o.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});a.patternProperties={};for(const p of l)a.patternProperties[p.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=pr(o.keyType,t,{...r,path:[...r.path,"propertyNames"]})),a.additionalProperties=pr(o.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const c=i._zod.values;if(c){const d=[...c].filter(p=>typeof p=="string"||typeof p=="number");d.length>0&&(a.required=d)}},Awe=(e,t,n,r)=>{const a=e._zod.def,o=pr(a.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=a.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},kwe=(e,t,n,r)=>{const a=e._zod.def;pr(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType},Nwe=(e,t,n,r)=>{const a=e._zod.def;pr(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},Rwe=(e,t,n,r)=>{const a=e._zod.def;pr(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},Owe=(e,t,n,r)=>{const a=e._zod.def;pr(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType;let i;try{i=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},Dwe=(e,t,n,r)=>{const a=e._zod.def,o=t.io==="input"?a.in._zod.def.type==="transform"?a.out:a.in:a.out;pr(o,t,r);const i=t.seen.get(e);i.ref=o},Iwe=(e,t,n,r)=>{const a=e._zod.def;pr(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType,n.readOnly=!0},y5=(e,t,n,r)=>{const a=e._zod.def;pr(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType},Lwe=Ne("ZodISODateTime",(e,t)=>{H0e.init(e,t),Ln.init(e,t)});function $we(e){return qxe(Lwe,e)}const Pwe=Ne("ZodISODate",(e,t)=>{G0e.init(e,t),Ln.init(e,t)});function Mwe(e){return Yxe(Pwe,e)}const jwe=Ne("ZodISOTime",(e,t)=>{V0e.init(e,t),Ln.init(e,t)});function zwe(e){return Wxe(jwe,e)}const Bwe=Ne("ZodISODuration",(e,t)=>{q0e.init(e,t),Ln.init(e,t)});function Uwe(e){return Zxe(Bwe,e)}const Fwe=(e,t)=>{r5.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>zEe(e,n)},flatten:{value:n=>jEe(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,OT,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,OT,2)}},isEmpty:{get(){return e.issues.length===0}}})},ko=Ne("ZodError",Fwe,{Parent:Error}),Hwe=LC(ko),Gwe=$C(ko),Vwe=xv(ko),qwe=wv(ko),Ywe=FEe(ko),Wwe=HEe(ko),Zwe=GEe(ko),Kwe=VEe(ko),Qwe=qEe(ko),Xwe=YEe(ko),Jwe=WEe(ko),eTe=ZEe(ko),yr=Ne("ZodType",(e,t)=>(gr.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:tb(e,"input"),output:tb(e,"output")}}),e.toJSONSchema=hwe(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(ol(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>il(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>Hwe(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Vwe(e,n,r),e.parseAsync=async(n,r)=>Gwe(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>qwe(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Ywe(e,n,r),e.decode=(n,r)=>Wwe(e,n,r),e.encodeAsync=async(n,r)=>Zwe(e,n,r),e.decodeAsync=async(n,r)=>Kwe(e,n,r),e.safeEncode=(n,r)=>Qwe(e,n,r),e.safeDecode=(n,r)=>Xwe(e,n,r),e.safeEncodeAsync=async(n,r)=>Jwe(e,n,r),e.safeDecodeAsync=async(n,r)=>eTe(e,n,r),e.refine=(n,r)=>e.check(YTe(n,r)),e.superRefine=n=>e.check(WTe(n)),e.overwrite=n=>e.check(Cd(n)),e.optional=()=>M$(e),e.exactOptional=()=>LTe(e),e.nullable=()=>j$(e),e.nullish=()=>M$(j$(e)),e.nonoptional=n=>BTe(e,n),e.array=()=>wTe(e),e.or=n=>v5([e,n]),e.and=n=>kTe(e,n),e.transform=n=>z$(e,DTe(n)),e.default=n=>MTe(e,n),e.prefault=n=>zTe(e,n),e.catch=n=>FTe(e,n),e.pipe=n=>z$(e,n),e.readonly=()=>VTe(e),e.describe=n=>{const r=e.clone();return ep.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return ep.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return ep.get(e);const r=e.clone();return ep.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),b5=Ne("_ZodString",(e,t)=>{PC.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,a,o)=>gwe(e,r,a);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(Xxe(...r)),e.includes=(...r)=>e.check(twe(...r)),e.startsWith=(...r)=>e.check(nwe(...r)),e.endsWith=(...r)=>e.check(rwe(...r)),e.min=(...r)=>e.check(eb(...r)),e.max=(...r)=>e.check(f5(...r)),e.length=(...r)=>e.check(p5(...r)),e.nonempty=(...r)=>e.check(eb(1,...r)),e.lowercase=r=>e.check(Jxe(r)),e.uppercase=r=>e.check(ewe(r)),e.trim=()=>e.check(owe()),e.normalize=(...r)=>e.check(awe(...r)),e.toLowerCase=()=>e.check(iwe()),e.toUpperCase=()=>e.check(swe()),e.slugify=()=>e.check(lwe())}),tTe=Ne("ZodString",(e,t)=>{PC.init(e,t),b5.init(e,t),e.email=n=>e.check(Sxe(nTe,n)),e.url=n=>e.check(Rxe(rTe,n)),e.jwt=n=>e.check(Vxe(bTe,n)),e.emoji=n=>e.check(Oxe(aTe,n)),e.guid=n=>e.check(L$($$,n)),e.uuid=n=>e.check(Cxe(Rg,n)),e.uuidv4=n=>e.check(Axe(Rg,n)),e.uuidv6=n=>e.check(kxe(Rg,n)),e.uuidv7=n=>e.check(Nxe(Rg,n)),e.nanoid=n=>e.check(Dxe(oTe,n)),e.guid=n=>e.check(L$($$,n)),e.cuid=n=>e.check(Ixe(iTe,n)),e.cuid2=n=>e.check(Lxe(sTe,n)),e.ulid=n=>e.check($xe(lTe,n)),e.base64=n=>e.check(Fxe(mTe,n)),e.base64url=n=>e.check(Hxe(gTe,n)),e.xid=n=>e.check(Pxe(cTe,n)),e.ksuid=n=>e.check(Mxe(uTe,n)),e.ipv4=n=>e.check(jxe(dTe,n)),e.ipv6=n=>e.check(zxe(fTe,n)),e.cidrv4=n=>e.check(Bxe(pTe,n)),e.cidrv6=n=>e.check(Uxe(hTe,n)),e.e164=n=>e.check(Gxe(yTe,n)),e.datetime=n=>e.check($we(n)),e.date=n=>e.check(Mwe(n)),e.time=n=>e.check(zwe(n)),e.duration=n=>
vendor: 4,128 bytes, line 783
783e.check(Uwe(n))});function nb(e){return Txe(tTe,e)}const Ln=Ne("ZodStringFormat",(e,t)=>{Rn.init(e,t),b5.init(e,t)}),nTe=Ne("ZodEmail",(e,t)=>{L0e.init(e,t),Ln.init(e,t)}),$$=Ne("ZodGUID",(e,t)=>{D0e.init(e,t),Ln.init(e,t)}),Rg=Ne("ZodUUID",(e,t)=>{I0e.init(e,t),Ln.init(e,t)}),rTe=Ne("ZodURL",(e,t)=>{$0e.init(e,t),Ln.init(e,t)}),aTe=Ne("ZodEmoji",(e,t)=>{P0e.init(e,t),Ln.init(e,t)}),oTe=Ne("ZodNanoID",(e,t)=>{M0e.init(e,t),Ln.init(e,t)}),iTe=Ne("ZodCUID",(e,t)=>{j0e.init(e,t),Ln.init(e,t)}),sTe=Ne("ZodCUID2",(e,t)=>{z0e.init(e,t),Ln.init(e,t)}),lTe=Ne("ZodULID",(e,t)=>{B0e.init(e,t),Ln.init(e,t)}),cTe=Ne("ZodXID",(e,t)=>{U0e.init(e,t),Ln.init(e,t)}),uTe=Ne("ZodKSUID",(e,t)=>{F0e.init(e,t),Ln.init(e,t)}),dTe=Ne("ZodIPv4",(e,t)=>{Y0e.init(e,t),Ln.init(e,t)}),fTe=Ne("ZodIPv6",(e,t)=>{W0e.init(e,t),Ln.init(e,t)}),pTe=Ne("ZodCIDRv4",(e,t)=>{Z0e.init(e,t),Ln.init(e,t)}),hTe=Ne("ZodCIDRv6",(e,t)=>{K0e.init(e,t),Ln.init(e,t)}),mTe=Ne("ZodBase64",(e,t)=>{Q0e.init(e,t),Ln.init(e,t)}),gTe=Ne("ZodBase64URL",(e,t)=>{J0e.init(e,t),Ln.init(e,t)}),yTe=Ne("ZodE164",(e,t)=>{exe.init(e,t),Ln.init(e,t)}),bTe=Ne("ZodJWT",(e,t)=>{nxe.init(e,t),Ln.init(e,t)}),vTe=Ne("ZodUnknown",(e,t)=>{rxe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>bwe()});function P$(){return Kxe(vTe)}const _Te=Ne("ZodNever",(e,t)=>{axe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>ywe(e,n,r)});function ETe(e){return Qxe(_Te,e)}const xTe=Ne("ZodArray",(e,t)=>{oxe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>xwe(e,n,r,a),e.element=t.element,e.min=(n,r)=>e.check(eb(n,r)),e.nonempty=n=>e.check(eb(1,n)),e.max=(n,r)=>e.check(f5(n,r)),e.length=(n,r)=>e.check(p5(n,r)),e.unwrap=()=>e.element});function wTe(e,t){return cwe(xTe,e,t)}const TTe=Ne("ZodObject",(e,t)=>{sxe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>wwe(e,n,r,a),ln(e,"shape",()=>t.shape),e.keyof=()=>_5(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:P$()}),e.loose=()=>e.clone({...e._zod.def,catchall:P$()}),e.strict=()=>e.clone({...e._zod.def,catchall:ETe()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>IEe(e,n),e.safeExtend=n=>LEe(e,n),e.merge=n=>$Ee(e,n),e.pick=n=>OEe(e,n),e.omit=n=>DEe(e,n),e.partial=(...n)=>PEe(E5,e,n[0]),e.required=(...n)=>MEe(x5,e,n[0])});function STe(e,t){const n={type:"object",shape:e??{},...gt(t)};return new TTe(n)}const CTe=Ne("ZodUnion",(e,t)=>{lxe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Twe(e,n,r,a),e.options=t.options});function v5(e,t){return new CTe({type:"union",options:e,...gt(t)})}const ATe=Ne("ZodIntersection",(e,t)=>{cxe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Swe(e,n,r,a)});function kTe(e,t){return new ATe({type:"intersection",left:e,right:t})}const NTe=Ne("ZodRecord",(e,t)=>{uxe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Cwe(e,n,r,a),e.keyType=t.keyType,e.valueType=t.valueType});function RTe(e,t,n){return new NTe({type:"record",keyType:e,valueType:t,...gt(n)})}const IT=Ne("ZodEnum",(e,t)=>{dxe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,a,o)=>vwe(e,r,a),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,a)=>{const o={};for(const i of r)if(n.has(i))o[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new IT({...t,checks:[],...gt(a),entries:o})},e.exclude=(r,a)=>{const o={...t.entries};for(const i of r)if(n.has(i))delete o[i];else throw new Error(`Key ${i} not found in enum`);return new IT({...t,checks:[],...gt(a),entries:o})}});function _5(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new IT({type:"enum",entries:n,...gt(t)})}const OTe=Ne("ZodTransform",(e,t)=>{fxe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Ewe(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Q3(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(zp(o,n.value,t));else{const i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(zp(i))}};
783const a=t.transform(n.value,n);return a instanceof Promise?a.then(o=>(n.value=o,n)):(n.value=a,n)}});function DTe(e){return new OTe({type:"transform",transform:e})}const E5=Ne("ZodOptional",(e,t)=>{d5.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>y5(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function M$(e){return new E5({type:"optional",innerType:e})}const ITe=Ne("ZodExactOptional",(e,t)=>{pxe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>y5(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function LTe(e){return new ITe({type:"optional",innerType:e})}const $Te=Ne("ZodNullable",(e,t)=>{hxe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Awe(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function j$(e){return new $Te({type:"nullable",innerType:e})}const PTe=Ne("ZodDefault",(e,t)=>{mxe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Nwe(e,n,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function MTe(e,t){return new PTe({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t5(t)}})}const jTe=Ne("ZodPrefault",(e,t)=>{gxe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Rwe(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function zTe(e,t){return new jTe({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t5(t)}})}const x5=Ne("ZodNonOptional",(e,t)=>{yxe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>kwe(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function BTe(e,t){return new x5({type:"nonoptional",innerType:e,...gt(t)})}const UTe=Ne("ZodCatch",(e,t)=>{bxe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Owe(e,n,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function FTe(e,t){return new UTe({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const HTe=Ne("ZodPipe",(e,t)=>{vxe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Dwe(e,n,r,a),e.in=t.in,e.out=t.out});function z$(e,t){return new HTe({type:"pipe",in:e,out:t})}const GTe=Ne("ZodReadonly",(e,t)=>{_xe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Iwe(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function VTe(e){return new GTe({type:"readonly",innerType:e})}const w5=Ne("ZodCustom",(e,t)=>{Exe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,r,a)=>_we(e,n)});function qTe(e,t){return uwe(w5,e??(()=>!0),t)}function YTe(e,t={}){return dwe(w5,e,t)}function WTe(e){return fwe(e)}const ZTe=()=>{const e=Sn(),t=b.useRef(e.pathname);b.useEffect(()=>{const n=t.current!==e.pathname,r=e.hash!=="";n&&!r&&window.scrollTo(0,0),t.current=e.pathname},[e.pathname,e.hash])},KTe=({icon:e})=>typeof e=="string"?E.jsx("img",{src:`https://cdn.simpleicons.org/${e}/000000/ffffff`,className:"size-5",alt:e}):e,QTe=e=>/^https?:/.test(e),XTe=()=>{const{options:e}=Hn(),{site:t}=e,n=t?.footer;return n?E.jsx("footer",{className:"border-t bg-background",children:E.jsxs("div",{className:"mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20",children:[E.jsxs("div",{className:xe("flex flex-row gap-8",{"justify-center":!n.position||n.position==="center","justify-start":n.position==="start","justify-end":n.position==="end"}),children:[E.jsx(Ca.Target,{name:"footer-before"}),n.columns&&E.jsx("div",{className:"w-full md:max-w-3xl grid grid-cols-[1fr_1fr] gap-8 md:grid-cols-[repeat(var(--columns),minmax(0,1fr))]",style:{"--columns":n.columns.length},children:n.columns.map(r=>E.jsxs("div",{className:xe({"justify-self-center":!r.position||r.position==="center","justify-self-start":r.position==="start","justify-self-end":r.position==="end"}),children:[E.jsx("span",{className:"text-sm font-semibold",children:r.title}),E.jsx("ul",{className:"mt-4 space-y-2",children:r.links.map(a=>{const o="flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";return E.jsx("li",{children:QTe(a.href)?E.jsxs("a",{href:a.href,target:"_blank",rel:"noopener noreferrer",className:o,children:[E.jsx("span",{children:a.label}),E.jsx(t2,{size:12})]}):E.jsx(CC,{to:a.href,className:o,children:E.jsx("span",{children:a.label})})},a.href+a.label)})})]},r.title))}),E.jsx(Ca.Target,{name:"footer-after"})]}),E.jsxs("div",{className:xe("flex items-center justify-between",n.columns&&"border-t mt
783-8 pt-8"),children:[n.logo&&E.jsxs(E.Fragment,{children:[E.jsx("img",{src:n.logo.src.light,alt:n.logo.alt,className:"w-8 dark:hidden",style:{width:n.logo.width}}),E.jsx("img",{src:n.logo.src.dark,alt:n.logo.alt,className:"w-8 hidden dark:block",style:{width:n.logo.width}})]}),n.copyright&&E.jsx("p",{className:"text-sm text-muted-foreground",children:n.copyright}),E.jsx("div",{className:"flex items-center gap-2",children:n.social?.map(r=>E.jsxs("a",{href:r.href,target:"_blank",rel:"noopener noreferrer",className:"w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",children:[E.jsx(KTe,{icon:r.icon}),r.label]},r.href))})]})]})}):null},T5=({shouldScaleBackground:e=!0,...t})=>E.jsx(mr.Root,{shouldScaleBackground:e,...t});T5.displayName="Drawer";const JTe=mr.Trigger,eSe=mr.Portal,S5=b.forwardRef(({className:e,...t},n)=>E.jsx(mr.Overlay,{ref:n,className:xe("fixed inset-0 z-50 bg-black/80",e),...t}));S5.displayName=mr.Overlay.displayName;const tSe=b.forwardRef(({className:e,children:t,hideBar:n=!0,...r},a)=>E.jsxs(eSe,{children:[E.jsx(S5,{}),E.jsxs(mr.Content,{ref:a,className:xe("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...r,children:[!n&&E.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));tSe.displayName="DrawerContent";const nSe=b.forwardRef(({className:e,...t},n)=>E.jsx(mr.Title,{ref:n,className:xe("text-lg font-semibold leading-none tracking-tight",e),...t}));nSe.displayName=mr.Title.displayName;const rSe=b.forwardRef(({className:e,...t},n)=>E.jsx(mr.Description,{ref:n,className:xe("text-sm text-muted-foreground",e),...t}));rSe.displayName=mr.Description.displayName;const C5=({children:e,className:t})=>{const{options:n}=Hn(),r=b.useRef(null);return b.useEffect(()=>{const a=r.current?.querySelector('[aria-current="page"]');y3(a??null)},[]),E.jsxs("div",{className:"grid sticky top-(--header-height) lg:h-[c
783alc(100vh-var(--header-height))] grid-rows-[1fr_min-content] border-r","data-pagefind-ignore":"all",children:[E.jsx("nav",{ref:r,className:xe("hidden max-w-[calc(var(--side-nav-width)+var(--padding-nav-item))] lg:flex scrollbar flex-col overflow-y-auto shrink-0 text-sm pe-3 ps-4 lg:ps-8","-mx-(--padding-nav-item) pb-[8vh] pt-(--padding-content-top) scroll-pt-2","-mt-2.5",t),style:{maskImage:"linear-gradient(180deg, transparent 1%, rgba(0, 0, 0, 1) 20px, rgba(0, 0, 0, 1) 90%, transparent 99%)"},children:e}),E.jsx("div",{className:"bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex",children:n.site?.showPoweredBy!==!1&&E.jsx(C3,{})})]})};C5.displayName="NavigationWrapper";const aSe=({onRequestClose:e,navigation:t})=>E.jsxs($ve,{children:[E.jsxs(C5,{children:[E.jsx(Ca.Target,{name:"navigation-before"}),t.map(n=>E.jsx(wT,{item:n},n.type+(n.label??"")+("path"in n?n.path:"")+("file"in n?n.file:"")+("to"in n?n.to:""))),E.jsx(Ca.Target,{name:"navigation-after"})]}),E.jsx(U1,{className:"lg:hidden h-dvh start-0 w-[320px] rounded-none","aria-describedby":void 0,children:E.jsxs("div",{className:"p-4 overflow-y-auto overscroll-none",children:[E.jsx(Eh,{children:E.jsx(F1,{children:"Navigation"})}),t.map(n=>E.jsx(wT,{item:n,onRequestClose:e},n.label))]})})]}),oSe=({children:e})=>{const[t,n]=b.useState(!1),{navigation:r}=Lb(),a=r.length>0,o=PS().state==="loading",{options:i}=Hn();return E.jsxs(T5,{direction:i.site?.dir==="rtl"?"right":"left",open:t,onOpenChange:l=>n(l),children:[a&&E.jsx(aSe,{onRequestClose:()=>n(!1),navigation:r}),a&&E.jsx("div",{className:"lg:hidden m-0 p-0 md:-mx-4 md:px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b",children:E.jsxs(JTe,{className:"flex items-center gap-2 px-4",children:[E.jsx(U7,{size:16,strokeWidth:1.5}),E.jsx("span",{className:"text-sm",children:"Menu"})]})}),E.jsxs("main",{"data-pagefind-body":!0,className:xe("px-4 lg:pe-8 lg:px-8",!a&&"col-span-full",o&&"animate-pulse"),children:[E.jsx(Ca.Target,{name:"content-before"}),e,E.jsx(Ca.Target,{name:"content-after"})]})]})},iSe=()=>E.jsx("main",{className:"col-span-full row-span-full grid place-items-center",children:E.jsx(H1,{})}),A5=({children:e})=>{const{authentication:t}=Hn();return Gve(),ZTe(),b.useEffect(()=>{t?.onPageLoad?.()},[t]),E.jsxs(TC,{children:[E.jsx(Ca.Target,{name:"layout-before-head"}),E.jsx(I3,{}),E.jsx(Ca.Target,{name:"layout-after-head"}),E.jsx("div",{className:xe("grid max-w-screen-2xl w-full lg:mx-auto","[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]","grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"),children:E.jsx(b.Suspense,{fallback:E.jsx(iSe,{}),children:E.jsx(oSe,{children:e??E.jsx(ah,{})})})}),E.jsx(XTe,{})]})},hu={UNAUTHORIZED:"unauthorized",FORBIDDEN:"forbidden"},sSe=v5([nb().array(),RTe(nb(),qTe(e=>typeof e=="function"))]).optional();sSe.transform(TT);const lSe="protected",cSe=({open:e,onCancel:t,onLogin:n,onRegister:r})=>E.jsx(Rh,{open:e,onOpenChange:a=>!a&&t(),children:E.jsxs(Oh,{children:[E.jsx(tEe,{children:E.jsx(_v,{children:"Login to continue"})}),E.jsx(NC,{children:"Please login to access this page."}),E.jsxs(kC,{children:[E.jsx(zr,{variant:"outline",onClick:t,children:"Cancel"}),E.jsx("div",{className:"w-full"}),E.jsx(zr,{variant:"secondary",onClick:r,children:"Register"}),E.jsx(zr,{onClick:n,children:"Login"})]})]})}),uSe=({isProtectedRoute:e})=>E.jsxs(E.Fragment,{children:[e&&E.jsx(J1,{children:E.jsx("meta",{name:"pagefind","data-pagefind-filter":`section:${lSe}`,content:"true"})}),E.jsx(ah,{})]}),dSe=()=>{const e=b.use(K3);return e.status=403,E.jsx(A5,{children:E.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[50vh] gap-4",children:[E.jsx("h1",{className:"text-2xl font-bold",children:"Access Denied"}),E.jsx("p",{className:"text-muted-foreground",children:"You don't have permission to access this page."})]})})},fSe=()=>{const e=Ks(),t=Hn(),n=sd(),r=Sn(),a=b.use(K3).bypassProtection,o=b.useMemo(()=>({auth:e,context:t,reasonCode:hu}),[e,t]),{protectedRoutes:i}=t,l=b.useCallback(k=>{if(i){for(const[N,O]of Object.entries(i))if(di({path:N,end:!0},k))return O}},[i]),c=l(r.pathname),d=c!==void 0,p=c?.(o)??!0,h=p===!1?hu.UNAUTHORIZED:p,g=h===hu.FORBIDDEN,y=h===hu.UNAUTHORIZED,v=XW(({nextLocation:k})=>{if(a)return!1;const N=l(k.pathname);if(!N)return!1;const O=N(o);return O===!1||O===hu.UNAUTHORIZED}),x=v.state==="blocked",C=x?v.location.pathname:void 0;if(b.useEffect(()=>{if(!e.isAuthenticated||!C)return;const k=l(C);if(!k){v.proceed?.();return}const N=k(o);N!==!1&&N!==hu.UNAUTHORIZED&&v.proceed?.()},[e.isAuthenticated,C,v,o,l]),g)return E.jsx(dSe,{});if(a)return E.jsx(uSe,{isProtectedRoute:d});if(d&&!e.isAuthEnabled)throw new Sp("Authentication is not enabled",{title:"Authentication is not enabled",developerHint:"To use protectedRoutes you need authentication to be enabled"});if(y&&e.isPending&&typeof window<"u")return null;const S=y||x,A=C??r.pathname;return E.jsxs(E.Fragment,{children:[!y&&E.jsx(ah,{}),E.jsx(cSe,{open:S,onCancel:y?()=>n(-1):()=>v.reset?.(),onLogin:()=>void e.login({redirectTo:A}),onRegister:()=>void e.signup({redirectTo:A})})]})},k5=({children:e,className:t})=>E.jsx("div",{className:gy("text-sm font-semibold text-primary mb-2",t),"data-pagefind-ignore":"all",children:e});/** 784 * react-router v7.13.0 785 * 786 * Copyright (c) Remix Software Inc. 787 * 788 * This source code is licensed under the MIT license found in the 789 * LICENSE.md file in the root directory of this source tree. 790 * 791 * @license MIT 792 */function pSe(e){return b.createElement(aZ,{flushSync:gd.flushSync,...e})}const hSe=new SEe({defaultOptions:{queries:{staleTime:1e3*60*5}}}),mSe=({router:e,hydrate:t=!1})=>E.jsx(b.StrictMode,{children:E.jsx(JY,{client:hSe,children:E.jsx(CEe,{state:t?window.DATA:void 0,children:E.jsx(wF,{children:E.jsx(pSe,{router:e})})})})}),gSe=STe({buildId:nb(),timestamp:nb(),status:_5(["in-progress","success","failed"])}),ySe=({buildId:e,environmentType:t,endpoint:n="/__zuplo/docs"})=>{const r=eh({queryKey:["zuplo-build-check",e,n],refetchInterval:3e3,enabled:e!==void 0&&t==="WORKING_COPY",retry:!1,queryFn:()=>fetch(n,{signal:AbortSignal.timeout(2e3)}).then(o=>{if(!o.ok)throw new Error("Failed to fetch build status");return o.json()}).then(o=>gSe.parse(o))});if(b.useEffect(()=>{r.data?.status==="success"&&r.data.buildId&&(document.cookie=`zuplo-build=${r.data.buildId}; path=/; max-age=300; secure; SameSite=None`)},[r.data]),r.isError||!r.data||r.data.buildId===e)return null;const a=r.data.status==="success";return E.jsxs("div",{className:"fixed flex flex-col gap-3 p-4 rounded-xl w-96 border z-20 bg-background left-0 right-0 top-4 mx-auto
792shadow-lg",children:[a?E.jsxs("div",{className:"flex flex-row items-center gap-2",children:[E.jsx(Hq,{size:16}),E.jsx("span",{className:"text-sm",children:"New version available"})]}):E.jsxs("div",{className:"flex flex-row items-center gap-2",children:[E.jsx(n2,{size:16,className:"animate-spin"}),E.jsx("span",{className:"text-sm",children:"Building new version..."})]}),E.jsx("span",{className:"text-xs",children:a?"To see the new version, reload the page now.":"A new version of the developer portal will be available soon."}),a&&E.jsx(Xa,{variant:"outline",size:"sm",className:"w-full",onClick:()=>{window.location.reload()},children:"Reload"})]})},bSe=({children:e})=>{const{options:t}=Hn(),{metadata:n}=t,r=Sn();return E.jsxs(E.Fragment,{children:[E.jsxs(J1,{titleTemplate:n?.title,defaultTitle:n?.defaultTitle,children:[t.canonicalUrlOrigin&&E.jsx("link",{rel:"canonical",href:Tn(t.canonicalUrlOrigin,t.basePath,r.pathname)}),n?.description&&E.jsx("meta",{name:"description",content:n.description}),n?.favicon&&E.jsx("link",{rel:"icon",href:n.favicon}),n?.generator&&E.jsx("meta",{name:"generator",content:n.generator}),n?.applicationName&&E.jsx("meta",{name:"application-name",content:n.applicationName}),n?.referrer&&E.jsx("meta",{name:"referrer",content:n.referrer}),n?.keywords&&n.keywords.length>0&&E.jsx("meta",{name:"keywords",content:n.keywords.join(", ")}),n?.authors?.map(a=>E.jsx("meta",{name:"author",content:a},a)),n?.creator&&E.jsx("meta",{name:"creator",content:n.creator}),n?.publisher&&E.jsx("meta",{name:"publisher",content:n.publisher})]}),e]})},vSe=({title:e="An error occurred",message:t,category:n})=>E.jsxs(bv,{className:"h-full pt-(--padding-content-top)",children:[n&&E.jsx(k5,{children:n}),e&&E.jsx(Vi,{level:1,className:"flex gap-3.5 items-center",children:e}),E.jsx("p",{children:t})]}),N5=()=>{const e=DS();return E.jsxs(bv,{className:"h-full pt-(--padding-content-top)","data-pagefind-ignore":"all",children:[E.jsx(k5,{children:"404"}),E.jsxs(Vi,{level:1,className:"flex gap-3.5 items-center",children:["Page not found",E.jsx(_Y,{size:24})]}),E.jsxs(w3,{children:["Start by adding a file at"," ",E.jsxs("code",{children:["{DOCUMENT_ROOT}","/",e["*"],".mdx"]})," ","and add some content to make this error go away. By default"," ",E.jsx("code",{children:"DOCUMENT_ROOT"})," is the `pages` directory."]}),E.jsx("p",{children:"It seems that the page you are looking for does not exist or may have been moved. Please check the URL for any typos or use the navigation menu to find the correct page."}),E.jsx(ld,{to:"/",children:"Go back home"})]})},_Se=e=>{switch(e){case 400:return{title:"Bad Request",message:"The request could not be understood by the server due to malformed syntax."};case 403:return{title:"Forbidden",message:"You don't have permission to access this resource."};case 404:return{title:"Not Found",message:"The requested resource could not be found."};case 405:return{title:"Method Not Allowed",message:"The request method is not supported for the requested resource."};case 414:return{title:"Request URI Too Large",message:"The request URI is too large."};case 416:return{title:"Range Not Satisfiable",message:"The server cannot satisfy the request range."};case 500:return{title:"Internal Server Error",message:"An unexpected error occurred while processing your request."};case 501:return{title:"Not Implemented",message:"The server does not support the functionality required to fulfill the request."};case 502:return{title:"Bad Gateway",message:"The server received an invalid response from the upstream server."};case 503:return{title:"Service Unavailable",message:"The server is temporarily unable to handle the request."};case 504:return{title:"Gateway Timeout",message:"The server did not receive a timely response from the upstream server."};default:return{title:"An error occurred",message:"Something went wrong while processing your request."}}},ESe=({statusCode:e,message:t})=>{if(e===404)return E.jsx(N5,{});const n=_Se(e);return E.jsx(vSe,{title:n.title,message:t??n.message,category:e})};function xSe({className:e}){const t=O2();return NS(t)&&t.status===404?E.jsx(N5,{}):E.jsx("div",{className:xe("mx-4 max-w-2xl",e),"data-pagefind-ignore":"all",children:E.jsx(T3,{error:t})})}const B$=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&Object.getPrototypeOf(e)===Object.prototype,R5=(e,t)=>{const n={...e};for(const r of Object.keys(t)){const a=t[r],o=e[r];b.isValidElement(a)||Array.isArray(a)||!B$(a)?n[r]=a:B$(o)?n[r]=R5(o,a):n[r]=a}return n},wSe=async e=>{const t=e.plugins??[];let n=e;for(const r of t.filter(tre)){const a=i=>R5(n,i),o=await r.transformConfig?.({config:n,merge:a});o&&(n=o)}return n},TSe=A5,O5=xSe,D5=mSe,SSe=fSe,U$=ESe,CSe=ySe,ASe=bSe,kSe=wSe,xr=await kSe(vEe);var Tx={exports:{}},Gf={},Sx={exports:{}},Cx={};/** 793 * @license React 794 * scheduler.production.js 795 * 796 * Copyright (c) Meta Platforms, Inc. and affiliates. 797 * 798 * This source code is licensed under the MIT license found in the 799 * LICENSE file in the root directory of this source tree. 800 */var F$;function NSe(){return F$||(F$=1,(function(e){function t(H,re){var ee=H.length;H.push(re);e:for(;0<ee;){var ge=ee-1>>>1,B=H[ge];if(0<a(B,re))H[ge]=re,H[ee]=B,ee=ge;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var re=H[0],ee=H.pop();if(ee!==re){H[0]=ee;e:for(var ge=0,B=H.length,V=B>>>1;ge<V;){var G=2*(ge+1)-1,L=H[G],de=G+1,_e=H[de];if(0>a(L,ee))de<B&&0>a(_e,L)?(H[ge]=_e,H[de]=ee,ge=de):(H[ge]=L,H[G]=ee,ge=G);else if(de<B&&0>a(_e,ee))H[ge]=_e,H[de]=ee,ge=de;else break e}}return re}function a(H,re){var ee=H.sortIndex-re.sortIndex;return ee!==0?ee:H.id-re.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],d=[],p=1,h=null,g=3,y=!1,v=!1,x=!1,C=!1,S=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function N(H){for(var re=n(d);re!==null;){if(re.callback===null)r(d);else if(re.startTime<=H)r(d),re.sortIndex=re.expirationTime,t(c,re);else break;re=n(d)}}function O(H){if(x=!1,N(H),!v)if(n(c)!==null)v=!0,I||(I=!0,K());else{var re=n(d);re!==null&&ae(O,re.startTime-H)}}var I=!1,D=-1,U=5,J=-1;function P(){return C?!0:!(e.unstable_now()-J<U)}function X(){if(C=!1,I){var H=e.unstable_now();J=H;var re=!0;try{e:{v=!1,x&&(x=!1,A(D),D=-1),y=!0;var ee=g;try{t:{for(N(H),h=n(c);h!==null&&!(h.expirationTime>H&&P());){var ge=h.callback;if(typeof ge=="function"){h.callback=null,g=h.priorityLevel;var B=ge(h.expirationTime<=H);if(H=e.unstable_now(),typeof B=="function"){h.callback=B,N(H),re=!0;break t}h===n(c)&&r(c),N(H)}else r(c);h=n(c)}if(h!==null)re=!0;else{var V=n(d);V!==null&&ae(O,V.startTime-H),re=!1}}break e}finally{h=null,g=ee,y=!1}re=void 0}}finally{re?K():I=!1}}}var K;if(typeof k=="function")K=function(){k(X)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,ne=Q.port2;Q.port1.onmessage=X,K=function(){ne.postMessage(null)}}else K=function(){S(X,0)};function ae(H,re){D=S(function(){H(e.unstable_now())},re)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(H){switch(g){case 1:case 2:case 3:var re=3;break;default:re=g}var ee=g;g=re;try{return H()}finally{g=ee}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(H,re){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var ee=g;g=H;try{return re()}finally{g=ee}},e.unstable_scheduleCallback=function(H,re,ee){var ge=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ge+ee:ge):ee=ge,H){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=ee+B,H={id:p++,callback:re,priorityLevel:H,startTime:ee,expirationTime:B,sortIndex:-1},ee>ge?(H.sortIndex=ee,t(d,H),n(c)===null&&H===n(d)&&(x?(A(D),D=-1):x=!0,ae(O,ee-ge))):(H.sortIndex=B,t(c,H),v||y||(v=!0,I||(I=!0,K()))),H},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(H){var re=g;return function(){var ee=g;g=re;try{return H.apply(this,arguments)}finally{g=ee}}}})(Cx)),Cx}var H$;function RSe(){return H$||(H$=1,Sx.exports=NSe()),Sx.exports}/** 801 * @license React 802 * react-dom-client.production.js 803 * 804 * Copyright (c) Meta Platforms, Inc. and affiliates. 805 * 806 * This source code is licensed under the MIT license found in the 807 * LICENSE file in the root directory of this source tree. 808 */var G$;function OSe(){if(G$)return Gf;G$=1;var e=RSe(),t=bS(),n=Gz();function r(s){var u="https://react.dev/errors/"+s;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)u+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+s+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function o(s){var u=s,f=s;if(s.alternate)for(;u.return;)u=u.return;else{s=u;do u=s,(u.flags&4098)!==0&&(f=u.return),s=u.return;while(s)}return u.tag===3?f:null}
vendor: 16,476 bytes, lines 808-815
808function i(s){if(s.tag===13){var u=s.memoizedState;if(u===null&&(s=s.alternate,s!==null&&(u=s.memoizedState)),u!==null)return u.dehydrated}return null}function l(s){if(s.tag===31){var u=s.memoizedState;if(u===null&&(s=s.alternate,s!==null&&(u=s.memoizedState)),u!==null)return u.dehydrated}return null}function c(s){if(o(s)!==s)throw Error(r(188))}function d(s){var u=s.alternate;if(!u){if(u=o(s),u===null)throw Error(r(188));return u!==s?null:s}for(var f=s,m=u;;){var _=f.return;if(_===null)break;var w=_.alternate;if(w===null){if(m=_.return,m!==null){f=m;continue}break}if(_.child===w.child){for(w=_.child;w;){if(w===f)return c(_),s;if(w===m)return c(_),u;w=w.sibling}throw Error(r(188))}if(f.return!==m.return)f=_,m=w;else{for(var R=!1,$=_.child;$;){if($===f){R=!0,f=_,m=w;break}if($===m){R=!0,m=_,f=w;break}$=$.sibling}if(!R){for($=w.child;$;){if($===f){R=!0,f=w,m=_;break}if($===m){R=!0,m=w,f=_;break}$=$.sibling}if(!R)throw Error(r(189))}}if(f.alternate!==m)throw Error(r(190))}if(f.tag!==3)throw Error(r(188));return f.stateNode.current===f?s:u}function p(s){var u=s.tag;if(u===5||u===26||u===27||u===6)return s;for(s=s.child;s!==null;){if(u=p(s),u!==null)return u;s=s.sibling}return null}var h=Object.assign,g=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),k=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function K(s){return s===null||typeof s!="object"?null:(s=X&&s[X]||s["@@iterator"],typeof s=="function"?s:null)}var Q=Symbol.for("react.client.reference");function ne(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===Q?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case x:return"Fragment";case S:return"Profiler";case C:return"StrictMode";case O:return"Suspense";case I:return"SuspenseList";case J:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case v:return"Portal";case k:return s.displayName||"Context";case A:return(s._context.displayName||"Context")+".Consumer";case N:var u=s.render;return s=s.displayName,s||(s=u.displayName||u.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case D:return u=s.displayName||null,u!==null?u:ne(s.type)||"Memo";case U:u=s._payload,s=s._init;try{return ne(s(u))}catch{}}return null}var ae=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ge=[],B=-1;function V(s){return{current:s}}function G(s){0>B||(s.current=ge[B],ge[B]=null,B--)}function L(s,u){B++,ge[B]=s.current,s.current=u}var de=V(null),_e=V(null),Ce=V(null),he=V(null);function Be(s,u){switch(L(Ce,u),L(_e,s),L(de,null),u.nodeType){case 9:case 11:s=(s=u.documentElement)&&(s=s.namespaceURI)?UR(s):0;break;default:if(s=u.tagName,u=u.namespaceURI)u=UR(u),s=FR(u,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}G(de),L(de,s)}function qe(){G(de),G(_e),G(Ce)}function nt(s){s.memoizedState!==null&&L(he,s);var u=de.current,f=FR(u,s.type);u!==f&&(L(_e,s),L(de,f))}function dt(s){_e.current===s&&(G(de),G(_e)),he.current===s&&(G(he),Ef._currentValue=ee)}var lt,Zt;function Qe(s){if(lt===void 0)try{throw Error()}catch(f){var u=f.stack.trim().match(/\n( *(at )?)/);lt=u&&u[1]||"",Zt=-1<f.stack.indexOf(` 809 at`)?" (<anonymous>)":-1<f.stack.indexOf("@")?"@unknown:0:0":""}return` 810`+lt+s+Zt}var Ge=!1;function en(s,u){if(!s||Ge)return"";Ge=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(u){var Ae=function(){throw Error()};if(Object.defineProperty(Ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ae,[])}catch(ve){var me=ve}Reflect.construct(s,[],Ae)}else{try{Ae.call()}catch(ve){me=ve}s.call(Ae.prototype)}}else{try{throw Error()}catch(ve){me=ve}(Ae=s())&&typeof Ae.catch=="function"&&Ae.catch(function(){})}}catch(ve){if(ve&&me&&typeof ve.stack=="string")return[ve.stack,me.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var _=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");_&&_.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=m.DetermineComponentFrameRoot(),R=w[0],$=w[1];if(R&&$){var Z=R.split(` 811`),pe=$.split(` 812`);for(_=m=0;m<Z.length&&!Z[m].includes("DetermineComponentFrameRoot");)m++;for(;_<pe.length&&!pe[_].includes("DetermineComponentFrameRoot");)_++;if(m===Z.length||_===pe.length)for(m=Z.length-1,_=pe.length-1;1<=m&&0<=_&&Z[m]!==pe[_];)_--;for(;1<=m&&0<=_;m--,_--)if(Z[m]!==pe[_]){if(m!==1||_!==1)do if(m--,_--,0>_||Z[m]!==pe[_]){var Te=` 813`+Z[m].replace(" at new "," at ");return s.displayName&&Te.includes("<anonymous>")&&(Te=Te.replace("<anonymous>",s.displayName)),Te}while(1<=m&&0<=_);break}}}finally{Ge=!1,Error.prepareStackTrace=f}return(f=s?s.displayName||s.name:"")?Qe(f):""}function tr(s,u){switch(s.tag){case 26:case 27:case 5:return Qe(s.type);case 16:return Qe("Lazy");case 13:return s.child!==u&&u!==null?Qe("Suspense Fallback"):Qe("Suspense");case 19:return Qe("SuspenseList");case 0:case 15:return en(s.type,!1);case 11:return en(s.type.render,!1);case 1:return en(s.type,!0);case 31:return Qe("Activity");default:return""}}function sa(s){try{var u="",f=null;do u+=tr(s,f),f=s,s=s.return;while(s);return u}catch(m){return` 814Error generating stack: `+m.message+` 815`+m.stack}}var Pn=Object.prototype.hasOwnProperty,Y=e.unstable_scheduleCallback,oe=e.unstable_cancelCallback,be=e.unstable_shouldYield,Fe=e.unstable_requestPaint,Re=e.unstable_now,Oe=e.unstable_getCurrentPriorityLevel,ie=e.unstable_ImmediatePriority,we=e.unstable_UserBlockingPriority,Ie=e.unstable_NormalPriority,rt=e.unstable_LowPriority,yt=e.unstable_IdlePriority,Kt=e.log,an=e.unstable_setDisableYieldValue,Cn=null,zt=null;function Gn(s){if(typeof Kt=="function"&&an(s),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(Cn,s)}catch{}}var Bt=Math.clz32?Math.clz32:pt,la=Math.log,Nr=Math.LN2;function pt(s){return s>>>=0,s===0?32:31-(la(s)/Nr|0)|0}var Nt=256,Yt=262144,St=4194304;function tn(s){var u=s&42;if(u!==0)return u;switch(s&-s){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 s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function Mn(s,u,f){var m=s.pendingLanes;if(m===0)return 0;var _=0,w=s.suspendedLanes,R=s.pingedLanes;s=s.warmLanes;var $=m&134217727;return $!==0?(m=$&~w,m!==0?_=tn(m):(R&=$,R!==0?_=tn(R):f||(f=$&~s,f!==0&&(_=tn(f))))):($=m&~w,$!==0?_=tn($):R!==0?_=tn(R):f||(f=m&~s,f!==0&&(_=tn(f)))),_===0?0:u!==0&&u!==_&&(u&w)===0&&(w=_&-_,f=u&-u,w>=f||w===32&&(f&4194048)!==0)?u:_}function jn(s,u){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&u)===0}function Da(s,u){switch(s){case 1:case 2:case 4:case 8:case 64:return u+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 u+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 br(){var s=St;return St<<=1,(St&62914560)===0&&(St=4194304),s}function Yr(s){for(var u=[],f=0;31>f;f++)u.push(s);return u}function Wr(s,u){s.pendingLanes|=u,u!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function ma(s,u,f,m,_,w){var R=s.pendingLanes;s.pendingLanes=f,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=f,s.entangledLanes&=f,s.errorRecoveryDisabledLanes&=f,s.shellSuspendCounter=0;var $=s.entanglements,Z=s.expirationTimes,pe=s.hiddenUpdates;for(f=R&~f;0<f;){var Te=31-Bt(f),Ae=1<<Te;$[Te]=0,Z[Te]=-1;var me=pe[Te];if(me!==null)for(pe[Te]=null,Te=0;Te<me.length;Te++){var ve=me[Te];ve!==null&&(ve.lane&=-536870913)}f&=~Ae}m!==0&&vi(s,m,0),w!==0&&_===0&&s.tag!==0&&(s.suspendedLanes|=w&~(R&~u))}function vi(s,u,f){s.pendingLanes|=u,s.suspendedLanes&=~u;var m=31-Bt(u);s.entangledLanes|=u,s.entanglements[m]=s.entanglements[m]|1073741824|f&261930}function W(s,u){var f=s.entangledLanes|=u;for(s=s.entanglements;f;){var m=31-Bt(f),_=1<<m;_&u|s[m]&u&&(s[m]|=u),f&=~_}}function le(s,u){var f=u&-u;return f=(f&42)!==0?1:ye(f),(f&(s.suspendedLanes|u))!==0?0:f}function ye(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=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:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function Le(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function Ue(){var s=re.p;return s!==0?s:(s=window.event,s===void 0?32:dO(s.type))}function ot(s,u){var f=re.p;try{return re.p=s,u()}finally{re.p=f}}var Ye=Math.random().toString(36).slice(2),Ve="__reactFiber$"+Ye,Ke="__reactProps$"+Ye,at="__reactContainer$"+Ye,ht="__reactEvents$"+Ye,it="__reactListeners$"+Ye,Wt="__reactHandles$"+Ye,Ut="__reactResources$"+Ye,Dn="__reactMarker$"+Ye;function zn(s){delete s[Ve],delete s[Ke],delete s[ht],delete s[it],delete s[Wt]}function Bn(s){var u=s[Ve];if(u)return u;for(var f=s.parentNode;f;){if(u=f[at]||f[Ve]){if(f=u.alternate,u.child!==null||f!==null&&f.child!==null)for(s=ZR(s);s!==null;){if(f=s[Ve])return f;s=ZR(s)}return u}s=f,f=s.parentNode}return null}function Ft(s){if(s=s[Ve]||s[at]){var u=s.tag;if(u===5||u===6||u===13||u===31||u===26||u===27||u===3)return s}return null}function Rr(s){var u=s.tag;if(u===5||u===26||u===27||u===6)return s.stateNode;throw Error(r(33))}function ga(s){var u=s[Ut];return u||(u=s[Ut]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function An(s){s[Dn]=!0}var Ro=new Set,Ia={};function Oo(s,u){to(s,u),to(s+"Capture",u)}function to(s,u){for(Ia[s]=u,s=0;s<u.length;s++)Ro.add(u[s])}var _i=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]*$"),fl={},pl={};function Ht(s){return Pn.call(pl,s)?!0:Pn.call(fl,s)?!1:_i.test(s)?pl[s]=!0:(fl[s]=!0,!1)}function Vn(s,u,f){if(Ht(u))if(f===null)s.removeAttribute(u);else{switch(typeof f){case"undefined":case"function":case"symbol":s.removeAttribute(u);return;case"boolean":var m=u.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){s.removeAttribute(u);return}}s.setAttribute(u,""+f)}}function Do(s,u,f){if(f===null)s.removeAttribute(u);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(u);return}s.setAttribute(u,""+f)}}function Br(s,u,f,m){if(m===null)s.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(f);return}s.setAttributeNS(u,f,""+m)}}function Gt(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function hl(s){var u=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function Fh(s,u,f){var m=Object.getOwnPropertyDescriptor(s.constructor.prototype,u);if(!s.hasOwnProperty(u)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var _=m.get,w=m.set;return Object.defineProperty(s,u,{configurable:!0,get:function(){return _.call(this)},set:function(R){f=""+R,w.call(this,R)}}),Object.defineProperty(s,u,{enumerable:m.enumerable}),{getValue:function(){return f},setValue:function(R){f=""+R},stopTracking:function(){s._valueTracker=null,delete s[u]}}}}function Pd(s){if(!s._valueTracker){var u=hl(s)?"checked":"value";s._valueTracker=Fh(s,u,""+s[u])}}function LA(s){if(!s)return!1;var u=s._valueTracker;if(!u)return!0;var f=u.getValue(),m="";return s&&(m=hl(s)?s.checked?"true":"false":s.value),s=m,s!==f?(u.setValue(s),!0):!1}function Hh(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var JV=/[\n"\\]/g;function no(s){return s.replace(JV,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function Xv(s,u,f,m,_,w,R,$){s.name="",R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?s.type=R:s.removeAttribute("type"),u!=null?R==="number"?(u===0&&s.value===""||s.value!=u)&&(s.value=""+Gt(u)):s.value!==""+Gt(u)&&(s.value=""+Gt(u)):R!=="submit"&&R!=="reset"||s.removeAttribute("value"),u!=null?Jv(s,R,Gt(u)):f!=null?Jv(s,R,Gt(f)):m!=null&&s.removeAttribute("value"),_==null&&w!=null&&(s.defaultChecked=!!w),_!=null&&(s.checked=_&&typeof _!="function"&&typeof _!="symbol"),$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?s.name=""+Gt($):s.removeAttribute("name")}function $A(s,u,f,m,_,w,R,$){if(w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(s.type=w),u!=null||f!=null){if(!(w!=="submit"&&w!=="reset"||u!=null)){Pd(s);return}f=f!=null?""+Gt(f):"",u=u!=null?""+Gt(u):f,$||u===s.value||(s.value=u),s.defaultValue=u}m=m??_,m=typeof m!="function"&&typeof m!="symbol"&&!!m,s.checked=$?s.checked:!!m,s.defaultChecked=!!m,R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(s.name=R),Pd(s)}function Jv(s,u,f){u==="number"&&Hh(s.ownerDocument)===s||s.defaultValue===""+f||(s.defaultValue=""+f)}function Tc(s,u,f,m){if(s=s.options,u){u={};for(var _=0;_<f.length;_++)u["$"+f[_]]=!0;for(f=0;f<s.length;f++)_=u.hasOwnProperty("$"+s[f].value),s[f].selected!==_&&(s[f].selected=_),_&&m&&(s[f].defaultSelected=!0)}else{for(f=""+Gt(f),u=null,_=0;_<s.length;_++){if(s[_].value===f){s[_].selected=!0,m&&(s[_].defaultSelected=!0);return}u!==null||s[_].disabled||(u=s[_])}u!==null&&(u.selected=!0)}}function PA(s,u,f){if(u!=null&&(u=""+Gt(u),u!==s.value&&(s.value=u),f==null)){s.defaultValue!==u&&(s.defaultValue=u);return}s.defaultValue=f!=null?""+Gt(f):""}function MA(s,u,f,m){if(u==null){if(m!=null){if(f!=null)throw Error(r(92));if(ae(m)){if(1<m.length)throw Error(r(93));m=m[0]}f=m}f==null&&(f=""),u=f}f=Gt(u),s.defaultValue=f,m=s.textContent,m===f&&m!==""&&m!==null&&(s.value=m),Pd(s)}function Sc(s,u){if(u){var f=s.firstChild;if(f&&f===s.lastChild&&f.nodeType===3){f.nodeValue=u;return}}s.textContent=u}var e9=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 jA(s,u,f){var m=u.indexOf("--")===0;f==null||typeof f=="boolean"||f===""?m?s.setProperty(u,""):u==="float"?s.cssFloat="":s[u]="":m?s.setProperty(u,f):typeof f!="number"||f===0||e9.has(u)?u==="float"?s.cssFloat=f:s[u]=(""+f).trim():s[u]=f
vendor: 4,268 bytes, line 815
815+"px"}function zA(s,u,f){if(u!=null&&typeof u!="object")throw Error(r(62));if(s=s.style,f!=null){for(var m in f)!f.hasOwnProperty(m)||u!=null&&u.hasOwnProperty(m)||(m.indexOf("--")===0?s.setProperty(m,""):m==="float"?s.cssFloat="":s[m]="");for(var _ in u)m=u[_],u.hasOwnProperty(_)&&f[_]!==m&&jA(s,_,m)}else for(var w in u)u.hasOwnProperty(w)&&jA(s,w,u[w])}function e_(s){if(s.indexOf("-")===-1)return!1;switch(s){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 t9=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"]]),n9=/^[\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 Gh(s){return n9.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}function Ei(){}var t_=null;function n_(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Cc=null,Ac=null;function BA(s){var u=Ft(s);if(u&&(s=u.stateNode)){var f=s[Ke]||null;e:switch(s=u.stateNode,u.type){case"input":if(Xv(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name),u=f.name,f.type==="radio"&&u!=null){for(f=s;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll('input[name="'+no(""+u)+'"][type="radio"]'),u=0;u<f.length;u++){var m=f[u];if(m!==s&&m.form===s.form){var _=m[Ke]||null;if(!_)throw Error(r(90));Xv(m,_.value,_.defaultValue,_.defaultValue,_.checked,_.defaultChecked,_.type,_.name)}}for(u=0;
vendor: 9,459 bytes, line 815
815u<f.length;u++)m=f[u],m.form===s.form&&LA(m)}break e;case"textarea":PA(s,f.value,f.defaultValue);break e;case"select":u=f.value,u!=null&&Tc(s,!!f.multiple,u,!1)}}}var r_=!1;function UA(s,u,f){if(r_)return s(u,f);r_=!0;try{var m=s(u);return m}finally{if(r_=!1,(Cc!==null||Ac!==null)&&(Om(),Cc&&(u=Cc,s=Ac,Ac=Cc=null,BA(u),s)))for(u=0;u<s.length;u++)BA(s[u])}}function Md(s,u){var f=s.stateNode;if(f===null)return null;var m=f[Ke]||null;if(m===null)return null;f=m[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(s=s.type,m=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!m;break e;default:s=!1}if(s)return null;if(f&&typeof f!="function")throw Error(r(231,u,typeof f));return f}var xi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),a_=!1;if(xi)try{var jd={};Object.defineProperty(jd,"passive",{get:function(){a_=!0}}),window.addEventListener("test",jd,jd),window.removeEventListener("test",jd,jd)}catch{a_=!1}var is=null,o_=null,Vh=null;function FA(){if(Vh)return Vh;var s,u=o_,f=u.length,m,_="value"in is?is.value:is.textContent,w=_.length;for(s=0;s<f&&u[s]===_[s];s++);var R=f-s;for(m=1;m<=R&&u[f-m]===_[w-m];m++);return Vh=_.slice(s,1<m?1-m:void 0)}function qh(s){var u=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&u===13&&(s=13)):s=u,s===10&&(s=13),32<=s||s===13?s:0}function Yh(){return!0}function HA(){return!1}function ya(s){function u(f,m,_,w,R){this._reactName=f,this._targetInst=_,this.type=m,this.nativeEvent=w,this.target=R,this.currentTarget=null;for(var $ in s)s.hasOwnProperty($)&&(f=s[$],this[$]=f?f(w):w[$]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?Yh:HA,this.isPropagationStopped=HA,this}return h(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=Yh)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=Yh)},persist:function(){},isPersistent:Yh}),u}var ml={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wh=ya(ml),zd=h({},ml,{view:0,detail:0}),r9=ya(zd),i_,s_,Bd,Zh=h({},zd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:c_,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Bd&&(Bd&&s.type==="mousemove"?(i_=s.screenX-Bd.screenX,s_=s.screenY-Bd.screenY):s_=i_=0,Bd=s),i_)},movementY:function(s){return"movementY"in s?s.movementY:s_}}),GA=ya(Zh),a9=h({},Zh,{dataTransfer:0}),o9=ya(a9),i9=h({},zd,{relatedTarget:0}),l_=ya(i9),s9=h({},ml,{animationName:0,elapsedTime:0,pseudoElement:0}),l9=ya(s9),c9=h({},ml,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),u9=ya(c9),d9=h({},ml,{data:0}),VA=ya(d9),f9={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},p9={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"},h9={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function m9(s){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(s):(s=h9[s])?!!u[s]:!1}function c_(){return m9}var g9=h({},zd,{key:function(s){if(s.key){var u=f9[s.key]||s.key;if(u!=="Unidentified")return u}return s.type==="keypress"?(s=qh(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?p9[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:c_,charCode:function(s){return s.type==="keypress"?qh(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?qh(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),y9=ya(g9),b9=h({},Zh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qA=ya(b9),v9=h({},zd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:c_}),_9=ya(v9),E9=h({},ml,{propertyName:0,elapsedTime:0,pseudoElement:0}),x9=ya(E9),w9=h({},Zh,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),T9=ya(w9),S9=h({},ml,{newState:0,oldState:0}),C9=ya(S9),A9=[9,13,27,32],u_=xi&&"CompositionEvent"in window,Ud=null;xi&&"documentMode"in document&&(Ud=document.documentMode);var k9=xi&&"TextEvent"in window&&!Ud,YA=xi&&(!u_||Ud&&8<Ud&&11>=Ud),WA=" ",ZA=!1;function KA(s,u){switch(s){case"keyup":return A9.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function QA(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var kc=!1;function N9(s,u){switch(s){case"compositionend":return QA(u);case"keypress":return u.which!==32?null:(ZA=!0,WA);case"textInput":return s=u.data,s===WA&&ZA?null:s;default:return null}}function R9(s,u){if(kc)return s==="compositionend"||!u_&&KA(s,u)?(s=FA(),Vh=o_=is=null,kc=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return YA&&u.locale!=="ko"?null:u.data;default:return null}}var O9={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 XA(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u==="input"?!!O9[s.type]:u==="textarea"}function JA(s,u,f,m){Cc?Ac?Ac.push(m):Ac=[m]:Cc=m,u=jm(u,"onChange"),0<u.length&&(f=new Wh("onChange","change",null,f,m),s.push({event:f,listeners:u}))}var Fd=null,Hd=null;function D9(s){$R(s,0)}function Kh(s){var u=Rr(s);if(LA(u))return s}function ek(s,u){if(s==="change")return u}var tk=!1;if(xi){var d_;if(xi){var f_="oninput"in document;if(!f_){var nk=document.createElement("div");nk.setAttribute("oninput","return;"),f_=typeof nk.oninput=="function"}d_=f_}else d_=!1;tk=d_&&(!document.documentMode||9<document.documentMode)}function rk(){Fd&&(Fd.detachEvent("onpropertychange",ak),Hd=Fd=null)}function ak(s){if(s.propertyName==="value"&&Kh(Hd)){var u=[];JA(u,Hd,s,n_(s)),UA(D9,u)}}function I9(s,u,f){s==="focusin"?(rk(),Fd=u,Hd=f,Fd.attachEvent("onpropertychange",ak)):s==="focusout"&&rk()}function L9(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Kh(Hd)}function $9(s,u){if(s==="click")return Kh(u)}function P9(s,u){if(s==="input"||s==="change")return Kh(u)}function M9(s,u){return s===u&&(s!==0||1/s===1/u)||s!==s&&u!==u}var La=typeof Object.is=="function"?Object.is:M9;function Gd(s,u){if(La(s,u))return!0;if(typeof s!="object"||s===null||typeof u!="object"||u===null)return!1;var f=Object.keys(s),m=Object.keys(u);if(f.length!==m.length)return!1;for(m=0;m<f.length;m++){var _=f[m];if(!Pn.call(u,_)||!La(s[_],u[_]))return!1}return!0}function ok(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function ik(s,u){var f=ok(s);s=0;for(var m;f;){if(f.nodeType===3){if(m=s+f.textContent.length,s<=u&&m>=u)return{node:f,offset:u-s};s=m}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=ok(f)}}function sk(s,u){return s&&u?s===u?!0:s&&s.nodeType===3?!1:u&&u.nodeType===3?sk(s,u.parentNode):"contains"in s?s.contains(u):s.compareDocumentPosition?!!(s.compareDocumentPosition(u)&16):!1:!1}function lk(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var u=Hh(s.document);u instanceof s.HTMLIFrameElement;){try{var f=typeof u.contentWindow.location.href=="string"}catch{f=!1}if(f)s=u.contentWindow;else break;u=Hh(s.document)}return u}function p_(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u&&(u==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||u==="textarea"||s.contentEditable==="true")}var j9=xi&&"documentMode"in document&&11>=document.documentMode,Nc=null,h_=null,Vd=null,m_=!1;function ck(s,u,f){var m=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;m_||Nc==null||Nc!==Hh(m)||(m=Nc,"selectionStart"in m&&p_(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focu
vendor: 21,014 bytes, line 815
815sNode:m.focusNode,focusOffset:m.focusOffset}),Vd&&Gd(Vd,m)||(Vd=m,m=jm(h_,"onSelect"),0<m.length&&(u=new Wh("onSelect","select",null,u,f),s.push({event:u,listeners:m}),u.target=Nc)))}function gl(s,u){var f={};return f[s.toLowerCase()]=u.toLowerCase(),f["Webkit"+s]="webkit"+u,f["Moz"+s]="moz"+u,f}var Rc={animationend:gl("Animation","AnimationEnd"),animationiteration:gl("Animation","AnimationIteration"),animationstart:gl("Animation","AnimationStart"),transitionrun:gl("Transition","TransitionRun"),transitionstart:gl("Transition","TransitionStart"),transitioncancel:gl("Transition","TransitionCancel"),transitionend:gl("Transition","TransitionEnd")},g_={},uk={};xi&&(uk=document.createElement("div").style,"AnimationEvent"in window||(delete Rc.animationend.animation,delete Rc.animationiteration.animation,delete Rc.animationstart.animation),"TransitionEvent"in window||delete Rc.transitionend.transition);function yl(s){if(g_[s])return g_[s];if(!Rc[s])return s;var u=Rc[s],f;for(f in u)if(u.hasOwnProperty(f)&&f in uk)return g_[s]=u[f];return s}var dk=yl("animationend"),fk=yl("animationiteration"),pk=yl("animationstart"),z9=yl("transitionrun"),B9=yl("transitionstart"),U9=yl("transitioncancel"),hk=yl("transitionend"),mk=new Map,y_="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(" ");y_.push("scrollEnd");function Io(s,u){mk.set(s,u),Oo(u,[s])}var Qh=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)},ro=[],Oc=0,b_=0;function Xh(){for(var s=Oc,u=b_=Oc=0;u<s;){var f=ro[u];ro[u++]=null;var m=ro[u];ro[u++]=null;var _=ro[u];ro[u++]=null;var w=ro[u];if(ro[u++]=null,m!==null&&_!==null){var R=m.pending;R===null?_.next=_:(_.next=R.next,R.next=_),m.pending=_}w!==0&&gk(f,_,w)}}function Jh(s,u,f,m){ro[Oc++]=s,ro[Oc++]=u,ro[Oc++]=f,ro[Oc++]=m,b_|=m,s.lanes|=m,s=s.alternate,s!==null&&(s.lanes|=m)}function v_(s,u,f,m){return Jh(s,u,f,m),em(s)}function bl(s,u){return Jh(s,null,null,u),em(s)}function gk(s,u,f){s.lanes|=f;var m=s.alternate;m!==null&&(m.lanes|=f);for(var _=!1,w=s.return;w!==null;)w.childLanes|=f,m=w.alternate,m!==null&&(m.childLanes|=f),w.tag===22&&(s=w.stateNode,s===null||s._visibility&1||(_=!0)),s=w,w=w.return;return s.tag===3?(w=s.stateNode,_&&u!==null&&(_=31-Bt(f),s=w.hiddenUpdates,m=s[_],m===null?s[_]=[u]:m.push(u),u.lane=f|536870912),w):null}function em(s){if(50<hf)throw hf=0,kE=null,Error(r(185));for(var u=s.return;u!==null;)s=u,u=s.return;return s.tag===3?s.stateNode:null}var Dc={};function F9(s,u,f,m){this.tag=s,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $a(s,u,f,m){return new F9(s,u,f,m)}function __(s){return s=s.prototype,!(!s||!s.isReactComponent)}function wi(s,u){var f=s.alternate;return f===null?(f=$a(s.tag,u,s.key,s.mode),f.elementType=s.elementType,f.type=s.type,f.stateNode=s.stateNode,f.alternate=s,s.alternate=f):(f.pendingProps=u,f.type=s.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=s.flags&65011712,f.childLanes=s.childLanes,f.lanes=s.lanes,f.child=s.child,f.memoizedProps=s.memoizedProps,f.memoizedState=s.memoizedState,f.updateQueue=s.updateQueue,u=s.dependencies,f.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},f.sibling=s.sibling,f.index=s.index,f.ref=s.ref,f.refCleanup=s.refCleanup,f}function yk(s,u){s.flags&=65011714;var f=s.alternate;return f===null?(s.childLanes=0,s.lanes=u,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=f.childLanes,s.lanes=f.lanes,s.child=f.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=f.memoizedProps,s.memoizedState=f.memoizedState,s.updateQueue=f.updateQueue,s.type=f.type,u=f.dependencies,s.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),s}function tm(s,u,f,m,_,w){var R=0;if(m=s,typeof s=="function")__(s)&&(R=1);else if(typeof s=="string")R=Y8(s,f,de.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case J:return s=$a(31,f,u,_),s.elementType=J,s.lanes=w,s;case x:return vl(f.children,_,w,u);case C:R=8,_|=24;break;case S:return s=$a(12,f,u,_|2),s.elementType=S,s.lanes=w,s;case O:return s=$a(13,f,u,_),s.elementType=O,s.lanes=w,s;case I:return s=$a(19,f,u,_),s.elementType=I,s.lanes=w,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case k:R=10;break e;case A:R=9;break e;case N:R=11;break e;case D:R=14;break e;case U:R=16,m=null;break e}R=29,f=Error(r(130,s===null?"null":typeof s,"")),m=null}return u=$a(R,f,u,_),u.elementType=s,u.type=m,u.lanes=w,u}function vl(s,u,f,m){return s=$a(7,s,m,u),s.lanes=f,s}function E_(s,u,f){return s=$a(6,s,null,u),s.lanes=f,s}function bk(s){var u=$a(18,null,null,0);return u.stateNode=s,u}function x_(s,u,f){return u=$a(4,s.children!==null?s.children:[],s.key,u),u.lanes=f,u.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},u}var vk=new WeakMap;function ao(s,u){if(typeof s=="object"&&s!==null){var f=vk.get(s);return f!==void 0?f:(u={value:s,source:u,stack:sa(u)},vk.set(s,u),u)}return{value:s,source:u,stack:sa(u)}}var Ic=[],Lc=0,nm=null,qd=0,oo=[],io=0,ss=null,Xo=1,Jo="";function Ti(s,u){Ic[Lc++]=qd,Ic[Lc++]=nm,nm=s,qd=u}function _k(s,u,f){oo[io++]=Xo,oo[io++]=Jo,oo[io++]=ss,ss=s;var m=Xo;s=Jo;var _=32-Bt(m)-1;m&=~(1<<_),f+=1;var w=32-Bt(u)+_;if(30<w){var R=_-_%5;w=(m&(1<<R)-1).toString(32),m>>=R,_-=R,Xo=1<<32-Bt(u)+_|f<<_|m,Jo=w+s}else Xo=1<<w|f<<_|m,Jo=s}function w_(s){s.return!==null&&(Ti(s,1),_k(s,1,0))}function T_(s){for(;s===nm;)nm=Ic[--Lc],Ic[Lc]=null,qd=Ic[--Lc],Ic[Lc]=null;for(;s===ss;)ss=oo[--io],oo[io]=null,Jo=oo[--io],oo[io]=null,Xo=oo[--io],oo[io]=null}function Ek(s,u){oo[io++]=Xo,oo[io++]=Jo,oo[io++]=ss,Xo=u.id,Jo=u.overflow,ss=s}var Ur=null,xn=null,Vt=!1,ls=null,so=!1,S_=Error(r(519));function cs(s){var u=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Yd(ao(u,s)),S_}function xk(s){var u=s.stateNode,f=s.type,m=s.memoizedProps;switch(u[Ve]=s,u[Ke]=m,f){case"dialog":Lt("cancel",u),Lt("close",u);break;case"iframe":case"object":case"embed":Lt("load",u);break;case"video":case"audio":for(f=0;f<gf.length;f++)Lt(gf[f],u);break;case"source":Lt("error",u);break;case"img":case"image":case"link":Lt("error",u),Lt("load",u);break;case"details":Lt("toggle",u);break;case"input":Lt("invalid",u),$A(u,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":Lt("invalid",u);break;case"textarea":Lt("invalid",u),MA(u,m.value,m.defaultValue,m.children)}f=m.children,typeof f!="string"&&typeof f!="number"&&typeof f!="bigint"||u.textContent===""+f||m.suppressHydrationWarning===!0||zR(u.textContent,f)?(m.popover!=null&&(Lt("beforetoggle",u),Lt("toggle",u)),m.onScroll!=null&&Lt("scroll",u),m.onScrollEnd!=null&&Lt("scrollend",u),m.onClick!=null&&(u.onclick=Ei),u=!0):u=!1,u||cs(s,!0)}function wk(s){for(Ur=s.return;Ur;)switch(Ur.tag){case 5:case 31:case 13:so=!1;return;case 27:case 3:so=!0;return;default:Ur=Ur.return}}function $c(s){if(s!==Ur)return!1;if(!Vt)return wk(s),Vt=!0,!1;var u=s.tag,f;if((f=u!==3&&u!==27)&&((f=u===5)&&(f=s.type,f=!(f!=="form"&&f!=="button")||HE(s.type,s.memoizedProps)),f=!f),f&&xn&&cs(s),wk(s),u===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));xn=WR(s)}else if(u===31){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));xn=WR(s)}else u===27?(u=xn,ws(s.type)?(s=WE,WE=null,xn=s):xn=u):xn=Ur?co(s.stateNode.nextSibling):null;return!0}function _l(){xn=Ur=null,Vt=!1}function C_(){var s=ls;return s!==null&&(Ea===null?Ea=s:Ea.push.apply(Ea,s),ls=null),s}function Yd(s){ls===null?ls=[s]:ls.push(s)}var A_=V(null),El=null,Si=null;function us(s,u,f){L(A_,u._currentValue),u._currentValue=f}function Ci(s){s._currentValue=A_.current,G(A_)}function k_(s,u,f){for(;s!==null;){var m=s.alternate;if((s.childLanes&u)!==u?(s.childLanes|=u,m!==null&&(m.childLanes|=u)):m!==null&&(m.childLanes&u)!==u&&(m.childLanes|=u),s===f)break;s=s.return}}function N_(s,u,f,m){var _=s.child;for(_!==null&&(_.return=s);_!==null;){var w=_.dependencies;if(w!==null){var R=_.child;w=w.firstContext;e:for(;w!==null;){var $=w;w=_;for(var Z=0;Z<u.length;Z++)if($.context===u[Z]){w.lanes|=f,$=w.alternate,$!==null&&($.lanes|=f),k_(w.return,f,s),m||(R=null);break e}w=$.next}}else if(_.tag===18){if(R=_.return,R===null)throw Error(r(341));R.lanes|=f,w=R.alternate,w!==null&&(w.lanes|=f),k_(R,f,s),R=null}else R=_.child;if(R!==null)R.return=_;else for(R=_;R!==null;){if(R===s){R=null;break}if(_=R.sibling,_!==null){_.return=R.return,R=_;break}R=R.return}_=R}}function Pc(s,u,f,m){s=null;for(var _=u,w=!1;_!==null;){if(!w){if((_.flags&524288)!==0)w=!0;else if((_.flags&262144)!==0)break}if(_.tag===10){var R=_.alternate;if(R===null)throw Error(r(387));if(R=R.memoizedProps,R!==null){var $=_.type;La(_.pendingProps.value,R.value)||(s!==null?s.push($):s=[$])}}else if(_===he.current){if(R=_.alternate,R===null)throw Error(r(387));R.memoizedState.memoizedState!==_.memoizedState.memoizedState&&(s!==null?s.push(Ef):s=[Ef])}_=_.return}s!==null&&N_(u,s,f,m),u.flags|=262144}function rm(s){for(s=s.firstContext;s!==null;){if(!La(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function xl(s){El=s,Si=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function Fr(s){return Tk(El,s)}function am(s,u){return El===null&&xl(s),Tk(s,u)}function Tk(s,u){var f=u._currentValue;if(u={context:u,memoizedValue:f,next:null},Si===null){if(s===null)throw Error(r(308));Si=u,s.dependencies={lanes:0,firstContext:u},s.flags|=524288}else Si=Si.next=u;return f}var H9=typeof AbortController<"u"?AbortController:function(){var s=[],u=this.signal={aborted:!1,addEventListener:function(f,m){s.push(m)}};this.abort=function(){u.aborted=!0,s.forEach(function(f){return f()})}},G9=e.unstable_scheduleCallback,V9=e.unstable_NormalPriority,nr={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function R_(){return{controller:new H9,data:new Map,refCount:0}}function Wd(s){s.refCount--,s.refCount===0&&G9(V9,function(){s.controller.abort()})}var Zd=null,O_=0,Mc=0,jc=null;function q9(s,u){if(Zd===null){var f=Zd=[];O_=0,Mc=LE(),jc={status:"pending",value:void 0,then:function(m){f.push(m)}}}return O_++,u.then(Sk,Sk),u}function Sk(){if(--O_===0&&Zd!==null){jc!==null&&(jc.status="fulfilled");var s=Zd;Zd=null,Mc=0,jc=null;for(var u=0;u<s.length;u++)(0,s[u])()}}function Y9(s,u){var f=[],m={status:"pending",value:null,reason:null,then:function(_){f.push(_)}};return s.then(function(){m.status="fulfilled",m.value=u;for(var _=0;_<f.length;_++)(0,f[_])(u)},function(_){for(m.status="rejected",m.reason=_,_=0;_<f.length;_++)(0,f[_])(void 0)}),m}var Ck=H.S;H.S=function(s,u){cR=Re(),typeof u=="object"&&u!==null&&typeof u.then=="function"&&q9(s,u),Ck!==null&&Ck(s,u)};var wl=V(null);function D_(){var s=wl.current;return s!==null?s:mn.pooledCache}function om(s,u){u===null?L(wl,wl.current):L(wl,u.pool)}function Ak(){var s=D_();return s===null?null:{parent:nr._currentValue,pool:s}}var zc=Error(r(460)),I_=Error(r(474)),im=Error(r(542)),sm={then:function(){}};function kk(s){return s=s.status,s==="fulfilled"||s==="rejected"}function Nk(s,u,f){switch(f=s[f],f===void 0?s.push(u):f!==u&&(u.then(Ei,Ei),u=f),u.status){case"fulfilled":return u.value;case"rejected":throw s=u.reason,Ok(s),s;default:if(typeof u.status=="string")u.then(Ei,Ei);else{if(s=mn,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=u,s.status="pending",s.then(function(m){if(u.status==="pending"){var _=u;_.status="fulfilled",_.value=m}},function(m){if(u.status==="pending"){var _=u;_.status="rejected",_.reason=m}})}switch(u.status){case"fulfilled":return u.value;case"rejected":throw s=u.reason,Ok(s),s}throw Sl=u,zc}}function Tl(s){try{var u=s._init;return u(s._payload)}catch(f){throw f!==null&&typeof f=="object"&&typeof f.then=="function"?(Sl=f,zc):f}}var Sl=null;function Rk(){if(Sl===null)throw Error(r(459));var s=Sl;return Sl=null,s}function Ok(s){if(s===zc||s===im)throw Error(r(483))}var Bc=null,Kd=0;function lm(s){var u=Kd;return Kd+=1,Bc===null&&(Bc=[]),Nk(Bc,s,u)}function Qd(s,u){u=u.props.ref,s.ref=u!==void 0?u:null}function cm(s,u){throw u.$$typeof===g?Error(r(525)):(s=Object.prototype.toString.call(u),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":s)))}function Dk(s){function u(se,te){if(s){var fe=se.deletions;fe===null?(se.deletions=[te],se.flags|=16):fe.push(te)}}function f(se,te){if(!s)return null;for(;te!==null;)u(se,te),te=te.sibling;return null}function m(se){for(var te=new Map;se!==null;)se.key!==null?te.set(se.key,se):te.set(se.index,se),se=se.sibling;return te}function _(se,te){return se=wi(se,te),se.index=0,se.sibling=null,se}function w(se,te,fe){return se.index=fe,s?(fe=se.alternate,fe!==null?(fe=fe.index,fe<te?(se.flags|=67108866,te):fe):(se.flags|=67108866,te)):(se.flags|=1048576,te)}function R(se){return s&&se.alternate===null&&(se.flags|=67108866),se}function $(se,te,fe,Se){return te===null||te.tag!==6?(te=E_(fe,se.mode,Se),te.return=se,te):(te=_(te,fe),te.return=se,te)}function Z(se,te,fe,Se){var ct=fe.type;return ct===x?Te(se,te,fe.props.children,Se,fe.key):te!==null&&(te.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===U&&Tl(ct)===te.type)?(te=_(te,fe.props),Qd(te,fe),te.return=se,te):(te=tm(fe.type,fe.key,fe.props,null,se.mode,Se),Qd(te,fe),te.return=se,te)}function pe(se,te,fe,Se){return te===null||te.tag!==4||te.stateNode.containerInfo!==fe.containerInfo||te.stateNode.implementation!==fe.implementation?(te=x_(fe,se.mode,Se),te.return=se,te):(te=_(te,fe.children||[]),te.return=se,te)}function Te(se,te,fe,Se,ct){return te===null||te.tag!==7?(te=vl(fe,se.mode,Se,ct),te.return=se,te):(te=_(te,fe),te.return=se,te)}function Ae(se,te,fe){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return te=E_(""+te,se.mode,fe),te.return=se,te;if(typeof te=="object"&&te!==null){switch(te.$$typeof){case y:return fe=tm(te.type,te.key,te.props,null,se.mode,fe),Qd(fe,te),fe.return=se,fe;case v:return te=x_(te,se.mode,fe),te.return=se,te;case U:return te=Tl(te),Ae(se,te,fe)}if(ae(te)||K(te))return te=vl(te,se.mode,fe,null),te.return=se,te;if(typeof te.then=="function")return Ae(se,lm(te),fe);if(te.$$typeof===k)return Ae(se,am(se,te),fe);cm(se,te)}return null}function me(se,te,fe,Se){var ct=te!==null?te.key:null;if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return ct!==null?null:$(se,te,""+fe,Se);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case y:return fe.key===ct?Z(se,te,fe,Se):null;case v:return fe.key===ct?pe(se,te,fe,Se):null;case U:return fe=Tl(fe),me(se,te,fe,Se)}if(ae(fe)||K(fe))return ct!==null?null:Te(se,te,fe,Se,null);if(typeof fe.then=="function")return me(se,te,lm(fe),Se);if(fe.$$typeof===k)return me(se,te,am(se,fe),Se);cm(se,fe)}return null}function ve(se,te,fe,Se,ct){if(typeof Se=="string"&&Se!==""||typeof Se=="number"||typeof Se=="bigint")return se=se.get(fe)||null,$(te,se,""+Se,ct);if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case y:return se=se.get(Se.key===null?fe:Se.key)||null,Z(te,se,Se,ct);case v:return se=se.get(Se.key===null?fe:Se.key)||null,pe(te,se,Se,ct);case U:return Se=Tl(Se),ve(se,te,fe,Se,ct)}if(ae(Se)||K(Se))return se=se.get(fe)||null,Te(te,se,Se,ct,null);if(typeof Se.then=="function")return ve(se,te,fe,lm(Se),ct);if(Se.$$typeof===k)return ve(se,te,fe,am(te,Se),ct);cm(te,Se)}return null}function Xe(se,te,fe,Se){for(var ct=null,Qt=null,tt=te,Ct=te=0,jt=null;tt!==null&&Ct<fe.length;Ct++){tt.index>Ct?(jt=tt,tt=null):jt=tt.sibling;var Xt=me(se,tt,fe[Ct],Se);if(Xt===null){tt===null&&(tt=jt);break}s&&tt&&Xt.alternate===null&&u(se,tt),te=w(Xt,te,Ct),Qt===null?ct=Xt:Qt.sibling=Xt,Qt=Xt,tt=jt}if(Ct===fe.length)return f(se,tt),Vt&&Ti(se,Ct),ct;if(tt===null){for(;Ct<fe.length;Ct++)tt=Ae(se,fe[Ct],Se),tt!==null&&(te=w(tt,te,Ct),Qt===null?ct=tt:Qt.sibling=tt,Qt=tt);return Vt&&Ti(se,Ct),ct}for(tt=m(tt);Ct<fe.length;Ct++)jt=ve(tt,se,Ct,fe[Ct],Se),jt!==null&&(s&&jt.alternate!==null&&tt.delete(jt.key===null?Ct:jt.key),te=w(jt,te,Ct),Qt===null?ct=jt:Qt.sibling=jt,Qt=jt);return s&&tt.forEach(function(ks){return u(se,ks)}),Vt&&Ti(se,Ct),ct}function mt(se,te,fe,Se){if(fe==null)throw Error(r(151));for(var ct=null,Qt=null,tt=te,Ct=te=0,jt=null,Xt=fe.next();tt!==null&&!Xt.done;Ct++,Xt=fe.next()){tt.index>Ct?(jt=tt,tt=null):jt=tt.sibling;var ks=me(se,tt,Xt.value,Se);if(ks===null){tt===null&&(tt=jt);break}s&&tt&&ks.alternate===null&&u(se,tt),te=w(ks,te,Ct),Qt===null?ct=ks:Qt.sibling=ks,Qt=ks,tt=jt}if(Xt.done)return f(se,tt),Vt&&Ti(se,Ct),ct;if(tt===null){for(;!Xt.done;Ct++,Xt=fe.next())Xt=Ae(se,Xt.value,Se),Xt!==null&&(te=w(Xt,te,Ct),Qt===null?ct=Xt:Qt.sibling=Xt,Qt=Xt);return Vt&&Ti(se,Ct),ct}for(tt=m(tt);!Xt.done;Ct++,Xt=fe.next())Xt=ve(tt,se,Ct,Xt.value,Se),Xt!==null&&(s&&Xt.alternate!==null&&tt.delete(Xt.key===null?Ct:Xt.key),te=w(Xt,te,Ct),Qt===null?ct=Xt:Qt.sibling=Xt,Qt=Xt);return s&&tt.forEach(function(aq){return u(se,aq)}),Vt&&Ti(se,Ct),ct}function fn(se,te,fe,Se){if(typeof fe=="object"&&fe!==null&&fe.type===x&&fe.key===null&&(fe=fe.props.children),typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case y:e:{for(var ct=fe.key;te!==null;){if(te.key===ct){if(ct=fe.type,ct===x){if(te.tag===7){f(se,te.sibling),Se=_(te,fe.props.children),Se.return=se,se=Se;break e}}else if(te.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===U&&Tl(ct)===te.type){f(se,te.sibling),Se=_(te,fe.props),Qd(Se,fe),Se.return=se,se=Se;break e}f(se,te);break}else u(se,te);te=te.sibling}fe.type===x?(Se=vl(fe.props.children,se.mode,Se,fe.key),Se.return=se,se=Se):(Se=tm(fe.type,fe.key,fe.props,null,se.mode,Se),Qd(Se,fe),Se.return=se,se=Se)}return R(se);case v:e:{for(ct=fe.key;te!==null;){if(te.key===ct)if(te.tag===4&&te.stateNode.containerInfo===fe.containerInfo&&te.stateNode.implementation===fe.implementation){f(se,te.sibling),Se=_(te,fe.children||[]),Se.return=se,se=Se;break e}else{f(se,te);break}else u(se,te);te=te.sibling}Se=x_(fe,se.mode,Se),Se.return=se,se=Se}return R(se);case U:return fe=Tl(fe),fn(se,te,fe,Se)}if(ae(fe))return Xe(se,te,fe,Se);if(K(fe)){if(ct=K(fe),typeof ct!="function")throw Error(r(150));return fe=ct.call(fe),mt(se,te,fe,Se)}if(typeof fe.then=="function")return fn(se,te,lm(fe),Se);if(fe.$$typeof===k)return fn(se,te,am(se,fe),Se);cm(se,fe)}return typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint"?(fe=""+fe,te!==null&&te.tag===6?(f(se,te.sibling),Se=_(te,fe),Se.return=se,se=Se):(f(se,te),Se=E_(fe,se.mode,Se),Se.return=se,se=Se),R(se)):f(se,te)}return function(se,te,fe,Se){try{Kd=0;var ct=fn(se,te,fe,Se);return Bc=null,ct}catch(tt){if(tt===zc||tt===im)throw tt;var Qt=$a(29,tt,null,se.mode);return Qt.lanes=Se,Qt.return=se,Qt}finally{}}}var Cl=Dk(!0),Ik=Dk(!1),ds=!1;function L_(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $_(s,u){s=s.updateQueue,u.updateQueue===s&&(u.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function fs(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function ps(s,u,f){var m=s.updateQueue;if(m===null)return null;if(m=m.shared,(nn&2)!==0){var _=m.pending;return _===null?u.next=u:(u.next=_.next,_.next=u),m.pending=u,u=em(s),gk(s,null,f),u}return Jh(s,m,u,f),em(s)}function Xd(s,u,f){if(u=u.updateQueue,u!==null&&(u=u.shared,(f&4194048)!==0)){var m=u.lanes;m&=s.pendingLanes,f|=m,u.lanes=f,W(s,f)}}function P_(s,u){var f=s.updateQueue,m=s.alternate;if(m!==null&&(m=m.updateQueue,f===m)){var _=null,w=null;if(f=f.firstBaseUpdate,f!==null){do{var R={lane:f.lane,tag:f.tag,payload:f.payload,callback:null,next:null};w===null?_=w=R:w=w.next=R,f=f.next}
vendor: 7,157 bytes, line 815
815while(f!==null);w===null?_=w=u:w=w.next=u}else _=w=u;f={baseState:m.baseState,firstBaseUpdate:_,lastBaseUpdate:w,shared:m.shared,callbacks:m.callbacks},s.updateQueue=f;return}s=f.lastBaseUpdate,s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=u}var M_=!1;function Jd(){if(M_){var s=jc;if(s!==null)throw s}}function ef(s,u,f,m){M_=!1;var _=s.updateQueue;ds=!1;var w=_.firstBaseUpdate,R=_.lastBaseUpdate,$=_.shared.pending;if($!==null){_.shared.pending=null;var Z=$,pe=Z.next;Z.next=null,R===null?w=pe:R.next=pe,R=Z;var Te=s.alternate;Te!==null&&(Te=Te.updateQueue,$=Te.lastBaseUpdate,$!==R&&($===null?Te.firstBaseUpdate=pe:$.next=pe,Te.lastBaseUpdate=Z))}if(w!==null){var Ae=_.baseState;R=0,Te=pe=Z=null,$=w;do{var me=$.lane&-536870913,ve=me!==$.lane;if(ve?(Mt&me)===me:(m&me)===me){me!==0&&me===Mc&&(M_=!0),Te!==null&&(Te=Te.next={lane:0,tag:$.tag,payload:$.payload,callback:null,next:null});e:{var Xe=s,mt=$;me=u;var fn=f;switch(mt.tag){case 1:if(Xe=mt.payload,typeof Xe=="function"){Ae=Xe.call(fn,Ae,me);break e}Ae=Xe;break e;case 3:Xe.flags=Xe.flags&-65537|128;case 0:if(Xe=mt.payload,me=typeof Xe=="function"?Xe.call(fn,Ae,me):Xe,me==null)break e;Ae=h({},Ae,me);break e;case 2:ds=!0}}me=$.callback,me!==null&&(s.flags|=64,ve&&(s.flags|=8192),ve=_.callbacks,ve===null?_.callbacks=[me]:ve.push(me))}else ve={lane:me,tag:$.tag,payload:$.payload,callback:$.callback,next:null},Te===null?(pe=Te=ve,Z=Ae):Te=Te.next=ve,R|=me;if($=$.next,$===null){if($=_.shared.pending,$===null)break;ve=$,$=ve.next,ve.next=null,_.lastBaseUpdate=ve,_.shared.pending=null}}while(!0);Te===null&&(Z=Ae),_.baseState=Z,_.firstBaseUpdate=pe,_.lastBaseUpdate=Te,w===null&&(_.shared.lanes=0),bs|=R,s.lanes=R,s.memoizedState=Ae}}function Lk(s,u){if(typeof s!="function")throw Error(r(191,s));s.call(u)}function $k(s,u){var f=s.callbacks;if(f!==null)for(s.callbacks=null,s=0;s<f.length;s++)Lk(f[s],u)}var Uc=V(null),um=V(0);function Pk(s,u){s=$i,L(um,s),L(Uc,u),$i=s|u.baseLanes}function j_(){L(um,$i),L(Uc,Uc.current)}function z_(){$i=um.current,G(Uc),G(um)}var Pa=V(null),lo=null;function hs(s){var u=s.alternate;L(qn,qn.current&1),L(Pa,s),lo===null&&(u===null||Uc.current!==null||u.memoizedState!==null)&&(lo=s)}function B_(s){L(qn,qn.current),L(Pa,s),lo===null&&(lo=s)}function Mk(s){s.tag===22?(L(qn,qn.current),L(Pa,s),lo===null&&(lo=s)):ms()}function ms(){L(qn,qn.current),L(Pa,Pa.current)}function Ma(s){G(Pa),lo===s&&(lo=null),G(qn)}var qn=V(0);function dm(s){for(var u=s;u!==null;){if(u.tag===13){var f=u.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||qE(f)||YE(f)))return u}else if(u.tag===19&&(u.memoizedProps.revealOrder==="forwards"||u.memoizedProps.revealOrder==="backwards"||u.memoizedProps.revealOrder==="unstable_legacy-backwards"||u.memoizedProps.revealOrder==="together")){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var Ai=0,xt=null,un=null,rr=null,fm=!1,Fc=!1,Al=!1,pm=0,tf=0,Hc=null,W9=0;function Un(){throw Error(r(321))}function U_(s,u){if(u===null)return!1;for(var f=0;f<u.length&&f<s.length;f++)if(!La(s[f],u[f]))return!1;return!0}function F_(s,u,f,m,_,w){return Ai=w,xt=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,H.H=s===null||s.memoizedState===null?_N:rE,Al=!1,w=f(m,_),Al=!1,Fc&&(w=zk(u,f,m,_)),jk(s),w}function jk(s){H.H=af;var u=un!==null&&un.next!==null;if(Ai=0,rr=un=xt=null,fm=!1,tf=0,Hc=null,u)throw Error(r(300));s===null||ar||(s=s.dependencies,s!==null&&rm(s)&&(ar=!0))}function zk(s,u,f,m){xt=s;var _=0;do{if(Fc&&(Hc=null),tf=0,Fc=!1,25<=_)throw Error(r(301));if(_+=1,rr=un=null,s.updateQueue!=null){var w=s.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}H.H=EN,w=u(f,m)}while(Fc);return w}function Z9(){var s=H.H,u=s.useState()[0];return u=typeof u.then=="function"?nf(u):u,s=s.useState()[0],(un!==null?un.memoizedState:null)!==s&&(xt.flags|=1024),u}function H_(){var s=pm!==0;return pm=0,s}function G_(s,u,f){u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~f}function V_(s){if(fm){for(s=s.memoizedState;s!==null;){var u=s.queue;u!==null&&(u.pending=null),s=s.next}fm=!1}Ai=0,rr=un=xt=null,Fc=!1,tf=pm=0,Hc=null}function ca(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rr===null?xt.memoizedState=rr=s:rr=rr.next=s,rr}function Yn(){if(un===null){var s=xt.alternate;s=s!==null?s.memoizedState:null}else s=un.next;var u=rr===null?xt.memoizedState:rr.next;if(u!==null)rr=u,un=s;else{if(s===null)throw xt.alternate===null?Error(r(467)):Error(r(310));un=s,s={memoizedState:un.memoizedState,baseState:un.baseState,baseQueue:un.baseQueue,queue:un.queue,next:null},rr===null?xt.memoizedState=rr=s:rr=rr.next=s}return rr}function hm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nf(s){var u=tf;return tf+=1,Hc===null&&(Hc=[]),s=Nk(Hc,s,u),u=xt,(rr===null?u.memoizedState:rr.next)===null&&(u=u.alternate,H.H=u===null||u.memoizedState===null?_N:rE),s}function mm(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return nf(s);if(s.$$typeof===k)return Fr(s)}throw Error(r(438,String(s)))}function q_(s){var u=null,f=xt.updateQueue;if(f!==null&&(u=f.memoCache),u==null){var m=xt.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(u={data:m.data.map(function(_){return _.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),f===null&&(f=hm(),xt.updateQueue=f),f.memoCache=u,f=u.data[u.index],f===void 0)for(f=u.data[u.index]=Array(s),m=0;m<s;m++)f[m]=P;return u.index++,f}function ki(s,u){return typeof u=="function"?u(s):u}function gm(s){var u=Yn();return Y_(u,un,s)}function Y_(s,u,f){var m=s.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=f;var _=s.baseQueue,w=m.pending;if(w!==null){if(_!==null){var R=_.next;_.next=w.next,w.next=R}u.baseQueue=_=w,m.pending=null}if(w=s.baseState,_===null)s.memoizedState=w;else{u=_.next;var $=R=null,Z=null,pe=u,Te=!1;do{var Ae=pe.lane&-536870913;if(Ae!==pe.lane?(Mt&Ae)===Ae:(Ai&Ae)===Ae){var me=pe.revertLane;if(me===0)Z!==null&&(Z=Z.next={lane:0,revertLane:0,gesture:null,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),Ae===Mc&&(Te=!0);else if((Ai&me)===me){pe=pe.next,me===Mc&&(Te=!0);continue}else Ae={lane:0,revertLane:pe.revertLane,gesture:null,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},Z===null?($=Z=Ae,R=w):Z=Z.next=Ae,xt.lanes|=me,bs|=me;Ae=pe.action,Al&&f(w,Ae),w=pe.hasEagerState?pe.eagerState:f(w,Ae)}else me={lane:Ae,revertLane:pe.revertLane,gesture:pe.gesture,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},Z===null?($=Z=me,R=w):Z=Z.next=me,xt.lanes|=Ae,bs|=Ae;pe=pe.next}while(pe!==null&&pe!==u);if(Z===null?R=w:Z.next=$,!La(w,s.memoizedState)&&(ar=!0,Te&&(f=jc,f!==null)))throw f;s.memoizedState=w,s.baseState=R,s.baseQueue=Z,m.lastRenderedState=w}return _===null&&(m.lanes=0),[s.memoizedState,m.dispatch]}function W_(s){var u=Yn(),f=u.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=s;
vendor: 10,258 bytes, line 815
815var m=f.dispatch,_=f.pending,w=u.memoizedState;if(_!==null){f.pending=null;var R=_=_.next;do w=s(w,R.action),R=R.next;while(R!==_);La(w,u.memoizedState)||(ar=!0),u.memoizedState=w,u.baseQueue===null&&(u.baseState=w),f.lastRenderedState=w}return[w,m]}function Bk(s,u,f){var m=xt,_=Yn(),w=Vt;if(w){if(f===void 0)throw Error(r(407));f=f()}else f=u();var R=!La((un||_).memoizedState,f);if(R&&(_.memoizedState=f,ar=!0),_=_.queue,Q_(Hk.bind(null,m,_,s),[s]),_.getSnapshot!==u||R||rr!==null&&rr.memoizedState.tag&1){if(m.flags|=2048,Gc(9,{destroy:void 0},Fk.bind(null,m,_,f,u),null),mn===null)throw Error(r(349));w||(Ai&127)!==0||Uk(m,u,f)}return f}function Uk(s,u,f){s.flags|=16384,s={getSnapshot:u,value:f},u=xt.updateQueue,u===null?(u=hm(),xt.updateQueue=u,u.stores=[s]):(f=u.stores,f===null?u.stores=[s]:f.push(s))}function Fk(s,u,f,m){u.value=f,u.getSnapshot=m,Gk(u)&&Vk(s)}function Hk(s,u,f){return f(function(){Gk(u)&&Vk(s)})}function Gk(s){var u=s.getSnapshot;s=s.value;try{var f=u();return!La(s,f)}catch{return!0}}function Vk(s){var u=bl(s,2);u!==null&&xa(u,s,2)}function Z_(s){var u=ca();if(typeof s=="function"){var f=s;if(s=f(),Al){Gn(!0);try{f()}finally{Gn(!1)}}}return u.memoizedState=u.baseState=s,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:s},u}function qk(s,u,f,m){return s.baseState=f,Y_(s,un,typeof m=="function"?m:ki)}function K9(s,u,f,m,_){if(vm(s))throw Error(r(485));if(s=u.action,s!==null){var w={payload:_,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(R){w.listeners.push(R)}};H.T!==null?f(!0):w.isTransition=!1,m(w),f=u.pending,f===null?(w.next=u.pending=w,Yk(u,w)):(w.next=f.next,u.pending=f.next=w)}}function Yk(s,u){var f=u.action,m=u.payload,_=s.state;if(u.isTransition){var w=H.T,R={};H.T=R;try{var $=f(_,m),Z=H.S;Z!==null&&Z(R,$),Wk(s,u,$)}catch(pe){K_(s,u,pe)}finally{w!==null&&R.types!==null&&(w.types=R.types),H.T=w}}else try{w=f(_,m),Wk(s,u,w)}catch(pe){K_(s,u,pe)}}function Wk(s,u,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(m){Zk(s,u,m)},function(m){return K_(s,u,m)}):Zk(s,u,f)}function Zk(s,u,f){u.status="fulfilled",u.value=f,Kk(u),s.state=f,u=s.pending,u!==null&&(f=u.next,f===u?s.pending=null:(f=f.next,u.next=f,Yk(s,f)))}function K_(s,u,f){var m=s.pending;if(s.pending=null,m!==null){m=m.next;do u.status="rejected",u.reason=f,Kk(u),u=u.next;while(u!==m)}s.action=null}function Kk(s){s=s.listeners;for(var u=0;u<s.length;u++)(0,s[u])()}function Qk(s,u){return u}function Xk(s,u){if(Vt){var f=mn.formState;if(f!==null){e:{var m=xt;if(Vt){if(xn){t:{for(var _=xn,w=so;_.nodeType!==8;){if(!w){_=null;break t}if(_=co(_.nextSibling),_===null){_=null;break t}}w=_.data,_=w==="F!"||w==="F"?_:null}if(_){xn=co(_.nextSibling),m=_.data==="F!";break e}}cs(m)}m=!1}m&&(u=f[0])}}return f=ca(),f.memoizedState=f.baseState=u,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qk,lastRenderedState:u},f.queue=m,f=yN.bind(null,xt,m),m.dispatch=f,m=Z_(!1),w=nE.bind(null,xt,!1,m.queue),m=ca(),_={state:u,dispatch:null,action:s,pending:null},m.queue=_,f=K9.bind(null,xt,_,w,f),_.dispatch=f,m.memoizedState=s,[u,f,!1]}function Jk(s){var u=Yn();return eN(u,un,s)}function eN(s,u,f){if(u=Y_(s,u,Qk)[0],s=gm(ki)[0],typeof u=="object"&&u!==null&&typeof u.then=="function")try{var m=nf(u)}catch(R){throw R===zc?im:R}else m=u;u=Yn();var _=u.queue,w=_.dispatch;return f!==u.memoizedState&&(xt.flags|=2048,Gc(9,{destroy:void 0},Q9.bind(null,_,f),null)),[m,w,s]}function Q9(s,u){s.action=u}function tN(s){var u=Yn(),f=un;if(f!==null)return eN(u,f,s);Yn(),u=u.memoizedState,f=Yn();var m=f.queue.dispatch;return f.memoizedState=s,[u,m,!1]}function Gc(s,u,f,m){return s={tag:s,create:f,deps:m,inst:u,next:null},u=xt.updateQueue,u===null&&(u=hm(),xt.updateQueue=u),f=u.lastEffect,f===null?u.lastEffect=s.next=s:(m=f.next,f.next=s,s.next=m,u.lastEffect=s),s}function nN(){return Yn().memoizedState}function ym(s,u,f,m){var _=ca();xt.flags|=s,_.memoizedState=Gc(1|u,{destroy:void 0},f,m===void 0?null:m)}function bm(s,u,f,m){var _=Yn();m=m===void 0?null:m;var w=_.memoizedState.inst;un!==null&&m!==null&&U_(m,un.memoizedState.deps)?_.memoizedState=Gc(u,w,f,m):(xt.flags|=s,_.memoizedState=Gc(1|u,w,f,m))}function rN(s,u){ym(8390656,8,s,u)}function Q_(s,u){bm(2048,8,s,u)}function X9(s){xt.flags|=4;var u=xt.updateQueue;if(u===null)u=hm(),xt.updateQueue=u,u.events=[s];else{var f=u.events;f===null?u.events=[s]:f.push(s)}}function aN(s){var u=Yn().memoizedState;return X9({ref:u,nextImpl:s}),function(){if((nn&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}function oN(s,u){return bm(4,2,s,u)}function iN(s,u){return bm(4,4,s,u)}function sN(s,u){if(typeof u=="function"){s=s();var f=u(s);return function(){typeof f=="function"?f():u(null)}}if(u!=null)return s=s(),u.current=s,function(){u.current=null}}function lN(s,u,f){f=f!=null?f.concat([s]):null,bm(4,4,sN.bind(null,u,s),f)}function X_(){}function cN(s,u){var f=Yn();u=u===void 0?null:u;var m=f.memoizedState;return u!==null&&U_(u,m[1])?m[0]:(f.memoizedState=[s,u],s)}function uN(s,u){var f=Yn();u=u===void 0?null:u;var m=f.memoizedState;if(u!==null&&U_(u,m[1]))return m[0];if(m=s(),Al){Gn(!0);try{s()}finally{Gn(!1)}}return f.memoizedState=[m,u],m}function J_(s,u,f){return f===void 0||(Ai&1073741824)!==0&&(Mt&261930)===0?s.memoizedState=u:(s.memoizedState=f,s=dR(),xt.lanes|=s,bs|=s,f)}function dN(s,u,f,m){return La(f,u)?f:Uc.current!==null?(s=J_(s,f,m),La(s,u)||(ar=!0),s):(Ai&42)===0||(Ai&1073741824)!==0&&(Mt&261930)===0?(ar=!0,s.memoizedState=f):(s=dR(),xt.lanes|=s,bs|=s,u)}function fN(s,u,f,m,_){var w=re.p;re.p=w!==0&&8>w?w:8;var R=H.T,$={};H.T=$,nE(s,!1,u,f);try{var Z=_(),pe=H.S;if(pe!==null&&pe($,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var Te=Y9(Z,m);rf(s,u,Te,Ba(s))}else rf(s,u,m,Ba(s))}catch(Ae){rf(s,u,{then:function(){},status:"rejected",reason:Ae},Ba())}finally{re.p=w,R!==null&&$.types!==null&&(R.types=$.types),H.T=R}}function J9(){}function eE(s,u,f,m){if(s.tag!==5)throw Error(r(476));var _=pN(s).queue;fN(s,_,u,ee,f===null?J9:function(){return hN(s),f(m)})}function pN(s){var u=s.memoizedState;if(u!==null)return u;u={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:ee},next:null};var f={};return u.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:f},next:null},s.memoizedState=u,s=s.alternate,s!==null&&(s.memoizedState=u),u}function hN(s){var u=pN(s);u.next===null&&(u=s.alternate.memoizedState),rf(s,u.next.queue,{},Ba())}function tE(){return Fr(Ef)}function mN(){return Yn().memoizedState}function gN(){return Yn().memoizedState}function e8(s){for(var u=s.return;u!==null;){switch(u.tag){case 24:case 3:var f=Ba();s=fs(f);var m=ps(u,s,f);m!==null&&(xa(m,u,f),Xd(m,u,f)),u={cache:R_()},s.payload=u;return}u=u.return}}function t8(s,u,f){var m=Ba();f={lane:m,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},vm(s)?bN(u,f):(f=v_(s,u,f,m),f!==null&&(xa(f,s,m),vN(f,u,m)))}function yN(s,u,f){var m=Ba();rf(s,u,f,m)}function rf(s,u,f,m){var _={lane:m,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null};if(vm(s))bN(u,_);else{var w=s.alternate;if(s.lanes===0&&(w===null||w.lanes===0)&&(w=u.lastRenderedReducer,w!==null))try{var R=u.lastRenderedState,$=w(R,f);if(_.hasEagerState=!0,_.eagerState=$,La($,R))return Jh(s,u,_,0),mn===null&&Xh(),!1}catch{}finally{}if(f=v_(s,u,_,m),f!==null)return xa(f,s,m),vN(f,u,m),!0}return!1}function nE(s,u,f,m){if(m={lane:2,revertLane:LE(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},vm(s)){if(u)throw Error(r(479))}else u=v_(s,f,m,2),u!==null&&xa(u,s,2)}function vm(s){var u=s.alternate;return s===xt||u!==null&&u===xt}function bN(s,u){Fc=fm=!0;var f=s.pending;f===null?u.next=u:(u.next=f.next,f.next=u),s.pending=u}function vN(s,u,f){if((f&4194048)!==0){var m=u.lanes;m&=s.pendingLanes,f|=m,u.lanes=f,W(s,f)}}var af={readContext:Fr,use:mm,useCallback:Un,useContext:Un,useEffect:Un,useImperativeHandle:Un,useLayoutEffect:Un,useInsertionEffect:Un,useMemo:Un,useReducer:Un,useRef:Un,useState:Un,useDebugValue:Un,useDeferredValue:Un,useTransition:Un,useSyncExternalStore:Un,useId:Un,useHostTransitionStatus:Un,useFormState:Un,useActionState:Un,useOptimistic:Un,useMemoCache:Un,useCacheRefresh:Un};af.useEffectEvent=Un;var _N={readContext:Fr,use:mm,useCallback:function(s,u){return ca().memoizedState=[s,u===void 0?null:u],s},useContext:Fr,useEffect:rN,useImperativeHandle:function(s,u,f){f=f!=null?f.concat([s]):null,ym(4194308,4,sN.bind(null,u,s),f)},useLayoutEffect:function(s,u){return ym(4194308,4,s,u)},useInsertionEffect:function(s,u){ym(4,2,s,u)},useMemo:function(s,u){var f=ca();u=u===void 0?null:u;var m=s();if(Al){Gn(!0);try{s()}finally{Gn(!1)}}return f.memoizedState=[m,u],m},useReducer:function(s,u,f){var m=ca();if(f!==void 0){var _=f(u);if(Al){Gn(!0);try{f(u)}finally{Gn(!1)}}}else _=u;return m.memoizedState=m.baseState=_,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:_},m.queue=s,s=s.dispatch=t8.bind(null,xt,s),[m.memoizedState,s]},useRef:function(s){var u=ca();return s={current:s},u.memoizedState=s},useState:function(s){s=Z_(s);var u=s.queue,f=yN.bind(null,xt,u);return u.dispatch=f,[s.memoizedState,f]},useDebugValue:X_,useDeferredValue:function(s,u){var f=ca();return J_(f,s,u)},useTransition:function(){var s=Z_(!1);return s=fN.bind(null,xt,s.queue,!0,!1),ca().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,u,f){var m=xt,_=ca();if(Vt){if(f===void 0)throw Error(r(407));f=f()}else{if(f=u(),mn===null)throw Error(r(349));(Mt&127)!==0||Uk(m,u,f)}_.memoizedState=f;var w={value:f,getSnapshot:u};return _.queue=w,rN(Hk.bind(null,m,w,s),[s]),m.flags|=2048,Gc(9,{destroy:void 0},Fk.bind(null,m,w,f,u),null),f},useId:function(){var s=ca(),u=mn.identifierPrefix;if(Vt){var f=Jo,m=Xo;f=(m&~(1<<32-Bt(m)-1)).toString(32)+f,u="_"+u+"R_"+f,f=pm++,0<f&&(u+="H"+f.toString(32)),u+="_"}else f=W9++,u="_"+u+"r_"+f.toString(32)+"_";return s.memoizedState=u},useHostTransitionStatus:tE,useFormState:Xk,useActionState:Xk,useOptimistic:function(s){var u=ca();u.memoizedState=u.baseState=s;
vendor: 15,346 bytes, line 815
815var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=f,u=nE.bind(null,xt,!0,f),f.dispatch=u,[s,u]},useMemoCache:q_,useCacheRefresh:function(){return ca().memoizedState=e8.bind(null,xt)},useEffectEvent:function(s){var u=ca(),f={impl:s};return u.memoizedState=f,function(){if((nn&2)!==0)throw Error(r(440));return f.impl.apply(void 0,arguments)}}},rE={readContext:Fr,use:mm,useCallback:cN,useContext:Fr,useEffect:Q_,useImperativeHandle:lN,useInsertionEffect:oN,useLayoutEffect:iN,useMemo:uN,useReducer:gm,useRef:nN,useState:function(){return gm(ki)},useDebugValue:X_,useDeferredValue:function(s,u){var f=Yn();return dN(f,un.memoizedState,s,u)},useTransition:function(){var s=gm(ki)[0],u=Yn().memoizedState;return[typeof s=="boolean"?s:nf(s),u]},useSyncExternalStore:Bk,useId:mN,useHostTransitionStatus:tE,useFormState:Jk,useActionState:Jk,useOptimistic:function(s,u){var f=Yn();return qk(f,un,s,u)},useMemoCache:q_,useCacheRefresh:gN};rE.useEffectEvent=aN;var EN={readContext:Fr,use:mm,useCallback:cN,useContext:Fr,useEffect:Q_,useImperativeHandle:lN,useInsertionEffect:oN,useLayoutEffect:iN,useMemo:uN,useReducer:W_,useRef:nN,useState:function(){return W_(ki)},useDebugValue:X_,useDeferredValue:function(s,u){var f=Yn();return un===null?J_(f,s,u):dN(f,un.memoizedState,s,u)},useTransition:function(){var s=W_(ki)[0],u=Yn().memoizedState;return[typeof s=="boolean"?s:nf(s),u]},useSyncExternalStore:Bk,useId:mN,useHostTransitionStatus:tE,useFormState:tN,useActionState:tN,useOptimistic:function(s,u){var f=Yn();return un!==null?qk(f,un,s,u):(f.baseState=s,[s,f.queue.dispatch])},useMemoCache:q_,useCacheRefresh:gN};EN.useEffectEvent=aN;function aE(s,u,f,m){u=s.memoizedState,f=f(m,u),f=f==null?u:h({},u,f),s.memoizedState=f,s.lanes===0&&(s.updateQueue.baseState=f)}var oE={enqueueSetState:function(s,u,f){s=s._reactInternals;var m=Ba(),_=fs(m);_.payload=u,f!=null&&(_.callback=f),u=ps(s,_,m),u!==null&&(xa(u,s,m),Xd(u,s,m))},enqueueReplaceState:function(s,u,f){s=s._reactInternals;var m=Ba(),_=fs(m);_.tag=1,_.payload=u,f!=null&&(_.callback=f),u=ps(s,_,m),u!==null&&(xa(u,s,m),Xd(u,s,m))},enqueueForceUpdate:function(s,u){s=s._reactInternals;var f=Ba(),m=fs(f);m.tag=2,u!=null&&(m.callback=u),u=ps(s,m,f),u!==null&&(xa(u,s,f),Xd(u,s,f))}};function xN(s,u,f,m,_,w,R){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(m,w,R):u.prototype&&u.prototype.isPureReactComponent?!Gd(f,m)||!Gd(_,w):!0}function wN(s,u,f,m){s=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(f,m),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(f,m),u.state!==s&&oE.enqueueReplaceState(u,u.state,null)}function kl(s,u){var f=u;if("ref"in u){f={};for(var m in u)m!=="ref"&&(f[m]=u[m])}if(s=s.defaultProps){f===u&&(f=h({},f));for(var _ in s)f[_]===void 0&&(f[_]=s[_])}return f}function TN(s){Qh(s)}function SN(s){console.error(s)}function CN(s){Qh(s)}function _m(s,u){try{var f=s.onUncaughtError;f(u.value,{componentStack:u.stack})}catch(m){setTimeout(function(){throw m})}}function AN(s,u,f){try{var m=s.onCaughtError;m(f.value,{componentStack:f.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(_){setTimeout(function(){throw _})}}function iE(s,u,f){return f=fs(f),f.tag=3,f.payload={element:null},f.callback=function(){_m(s,u)},f}function kN(s){return s=fs(s),s.tag=3,s}function NN(s,u,f,m){var _=f.type.getDerivedStateFromError;if(typeof _=="function"){var w=m.value;s.payload=function(){return _(w)},s.callback=function(){AN(u,f,m)}}var R=f.stateNode;R!==null&&typeof R.componentDidCatch=="function"&&(s.callback=function(){AN(u,f,m),typeof _!="function"&&(vs===null?vs=new Set([this]):vs.add(this));var $=m.stack;this.componentDidCatch(m.value,{componentStack:$!==null?$:""})})}function n8(s,u,f,m,_){if(f.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(u=f.alternate,u!==null&&Pc(u,f,_,!0),f=Pa.current,f!==null){switch(f.tag){case 31:case 13:return lo===null?Dm():f.alternate===null&&Fn===0&&(Fn=3),f.flags&=-257,f.flags|=65536,f.lanes=_,m===sm?f.flags|=16384:(u=f.updateQueue,u===null?f.updateQueue=new Set([m]):u.add(m),OE(s,m,_)),!1;case 22:return f.flags|=65536,m===sm?f.flags|=16384:(u=f.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([m])},f.updateQueue=u):(f=u.retryQueue,f===null?u.retryQueue=new Set([m]):f.add(m)),OE(s,m,_)),!1}throw Error(r(435,f.tag))}return OE(s,m,_),Dm(),!1}if(Vt)return u=Pa.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=_,m!==S_&&(s=Error(r(422),{cause:m}),Yd(ao(s,f)))):(m!==S_&&(u=Error(r(423),{cause:m}),Yd(ao(u,f))),s=s.current.alternate,s.flags|=65536,_&=-_,s.lanes|=_,m=ao(m,f),_=iE(s.stateNode,m,_),P_(s,_),Fn!==4&&(Fn=2)),!1;var w=Error(r(520),{cause:m});if(w=ao(w,f),pf===null?pf=[w]:pf.push(w),Fn!==4&&(Fn=2),u===null)return!0;m=ao(m,f),f=u;do{switch(f.tag){case 3:return f.flags|=65536,s=_&-_,f.lanes|=s,s=iE(f.stateNode,m,s),P_(f,s),!1;case 1:if(u=f.type,w=f.stateNode,(f.flags&128)===0&&(typeof u.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(vs===null||!vs.has(w))))return f.flags|=65536,_&=-_,f.lanes|=_,_=kN(_),NN(_,s,f,m),P_(f,_),!1}f=f.return}while(f!==null);return!1}var sE=Error(r(461)),ar=!1;function Hr(s,u,f,m){u.child=s===null?Ik(u,null,f,m):Cl(u,s.child,f,m)}function RN(s,u,f,m,_){f=f.render;var w=u.ref;if("ref"in m){var R={};for(var $ in m)$!=="ref"&&(R[$]=m[$])}else R=m;return xl(u),m=F_(s,u,f,R,w,_),$=H_(),s!==null&&!ar?(G_(s,u,_),Ni(s,u,_)):(Vt&&$&&w_(u),u.flags|=1,Hr(s,u,m,_),u.child)}function ON(s,u,f,m,_){if(s===null){var w=f.type;return typeof w=="function"&&!__(w)&&w.defaultProps===void 0&&f.compare===null?(u.tag=15,u.type=w,DN(s,u,w,m,_)):(s=tm(f.type,null,m,u,u.mode,_),s.ref=u.ref,s.return=u,u.child=s)}if(w=s.child,!mE(s,_)){var R=w.memoizedProps;if(f=f.compare,f=f!==null?f:Gd,f(R,m)&&s.ref===u.ref)return Ni(s,u,_)}return u.flags|=1,s=wi(w,m),s.ref=u.ref,s.return=u,u.child=s}function DN(s,u,f,m,_){if(s!==null){var w=s.memoizedProps;if(Gd(w,m)&&s.ref===u.ref)if(ar=!1,u.pendingProps=m=w,mE(s,_))(s.flags&131072)!==0&&(ar=!0);else return u.lanes=s.lanes,Ni(s,u,_)}return lE(s,u,f,m,_)}function IN(s,u,f,m){var _=m.children,w=s!==null?s.memoizedState:null;if(s===null&&u.stateNode===null&&(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((u.flags&128)!==0){if(w=w!==null?w.baseLanes|f:f,s!==null){for(m=u.child=s.child,_=0;m!==null;)_=_|m.lanes|m.childLanes,m=m.sibling;m=_&~w}else m=0,u.child=null;return LN(s,u,w,f,m)}if((f&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},s!==null&&om(u,w!==null?w.cachePool:null),w!==null?Pk(u,w):j_(),Mk(u);else return m=u.lanes=536870912,LN(s,u,w!==null?w.baseLanes|f:f,f,m)}else w!==null?(om(u,w.cachePool),Pk(u,w),ms(),u.memoizedState=null):(s!==null&&om(u,null),j_(),ms());return Hr(s,u,_,f),u.child}function of(s,u){return s!==null&&s.tag===22||u.stateNode!==null||(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.sibling}function LN(s,u,f,m,_){var w=D_();return w=w===null?null:{parent:nr._currentValue,pool:w},u.memoizedState={baseLanes:f,cachePool:w},s!==null&&om(u,null),j_(),Mk(u),s!==null&&Pc(s,u,m,!0),u.childLanes=_,null}function Em(s,u){return u=wm({mode:u.mode,children:u.children},s.mode),u.ref=s.ref,s.child=u,u.return=s,u}function $N(s,u,f){return Cl(u,s.child,null,f),s=Em(u,u.pendingProps),s.flags|=2,Ma(u),u.memoizedState=null,s}function r8(s,u,f){var m=u.pendingProps,_=(u.flags&128)!==0;if(u.flags&=-129,s===null){if(Vt){if(m.mode==="hidden")return s=Em(u,m),u.lanes=536870912,of(null,s);if(B_(u),(s=xn)?(s=YR(s,so),s=s!==null&&s.data==="&"?s:null,s!==null&&(u.memoizedState={dehydrated:s,treeContext:ss!==null?{id:Xo,overflow:Jo}:null,retryLane:536870912,hydrationErrors:null},f=bk(s),f.return=u,u.child=f,Ur=u,xn=null)):s=null,s===null)throw cs(u);return u.lanes=536870912,null}return Em(u,m)}var w=s.memoizedState;if(w!==null){var R=w.dehydrated;if(B_(u),_)if(u.flags&256)u.flags&=-257,u=$N(s,u,f);else if(u.memoizedState!==null)u.child=s.child,u.flags|=128,u=null;else throw Error(r(558));else if(ar||Pc(s,u,f,!1),_=(f&s.childLanes)!==0,ar||_){if(m=mn,m!==null&&(R=le(m,f),R!==0&&R!==w.retryLane))throw w.retryLane=R,bl(s,R),xa(m,s,R),sE;Dm(),u=$N(s,u,f)}else s=w.treeContext,xn=co(R.nextSibling),Ur=u,Vt=!0,ls=null,so=!1,s!==null&&Ek(u,s),u=Em(u,m),u.flags|=4096;return u}return s=wi(s.child,{mode:m.mode,children:m.children}),s.ref=u.ref,u.child=s,s.return=u,s}function xm(s,u){var f=u.ref;if(f===null)s!==null&&s.ref!==null&&(u.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(r(284));(s===null||s.ref!==f)&&(u.flags|=4194816)}}function lE(s,u,f,m,_){return xl(u),f=F_(s,u,f,m,void 0,_),m=H_(),s!==null&&!ar?(G_(s,u,_),Ni(s,u,_)):(Vt&&m&&w_(u),u.flags|=1,Hr(s,u,f,_),u.child)}function PN(s,u,f,m,_,w){return xl(u),u.updateQueue=null,f=zk(u,m,f,_),jk(s),m=H_(),s!==null&&!ar?(G_(s,u,w),Ni(s,u,w)):(Vt&&m&&w_(u),u.flags|=1,Hr(s,u,f,w),u.child)}function MN(s,u,f,m,_){if(xl(u),u.stateNode===null){var w=Dc,R=f.contextType;typeof R=="object"&&R!==null&&(w=Fr(R)),w=new f(m,w),u.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=oE,u.stateNode=w,w._reactInternals=u,w=u.stateNode,w.props=m,w.state=u.memoizedState,w.refs={},L_(u),R=f.contextType,w.context=typeof R=="object"&&R!==null?Fr(R):Dc,w.state=u.memoizedState,R=f.getDerivedStateFromProps,typeof R=="function"&&(aE(u,f,R,m),w.state=u.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(R=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),R!==w.state&&oE.enqueueReplaceState(w,w.state,null),ef(u,m,w,_),Jd(),w.state=u.memoizedState),typeof w.componentDidMount=="function"&&(u.flags|=4194308),m=!0}else if(s===null){w=u.stateNode;var $=u.memoizedProps,Z=kl(f,$);w.props=Z;var pe=w.context,Te=f.contextType;R=Dc,typeof Te=="object"&&Te!==null&&(R=Fr(Te));var Ae=f.getDerivedStateFromProps;Te=typeof Ae=="function"||typeof w.getSnapshotBeforeUpdate=="function",$=u.pendingProps!==$,Te||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||($||pe!==R)&&wN(u,w,m,R),ds=!1;var me=u.memoizedState;w.state=me,ef(u,m,w,_),Jd(),pe=u.memoizedState,$||me!==pe||ds?(typeof Ae=="function"&&(aE(u,f,Ae,m),pe=u.memoizedState),(Z=ds||xN(u,f,Z,m,me,pe,R))?(Te||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(u.flags|=4194308)):(typeof w.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=m,u.memoizedState=pe),w.props=m,w.state=pe,w.context=R,m=Z):(typeof w.componentDidMount=="function"&&(u.flags|=4194308),m=!1)}else{w=u.stateNode,$_(s,u),R=u.memoizedProps,Te=kl(f,R),w.props=Te,Ae=u.pendingProps,me=w.context,pe=f.contextType,Z=Dc,typeof pe=="object"&&pe!==null&&(Z=Fr(pe)),$=f.getDerivedStateFromProps,(pe=typeof $=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(R!==Ae||me!==Z)&&wN(u,w,m,Z),ds=!1,me=u.memoizedState,w.state=me,ef(u,m,w,_),Jd();var ve=u.memoizedState;R!==Ae||me!==ve||ds||s!==null&&s.dependencies!==null&&rm(s.dependencies)?(typeof $=="function"&&(aE(u,f,$,m),ve=u.memoizedState),(Te=ds||xN(u,f,Te,m,me,ve,Z)||s!==null&&s.dependencies!==null&&rm(s.dependencies))?(pe||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(m,ve,Z),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(m,ve,Z)),typeof w.componentDidUpdate=="function"&&(u.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof w.componentDidUpdate!="function"||R===s.memoizedProps&&me===s.memoizedState||(u.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||R===s.memoizedProps&&me===s.memoizedState||(u.flags|=1024),u.memoizedProps=m,u.memoizedState=ve),w.props=m,w.state=ve,w.context=Z,m=Te):(typeof w.componentDidUpdate!="function"||R===s.memoizedProps&&me===s.memoizedState||(u.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||R===s.memoizedProps&&me===s.memoizedState||(u.flags|=1024),m=!1)}return w=m,xm(s,u),m=(u.flags&128)!==0,w||m?(w=u.stateNode,f=m&&typeof f.getDerivedStateFromError!="function"?null:w.render(),u.flags|=1,s!==null&&m?(u.child=Cl(u,s.child,null,_),u.child=Cl(u,null,f,_)):Hr(s,u,f,_),u.memoizedState=w.state,s=u.child):s=Ni(s,u,_),s}function jN(s,u,f,m){return _l(),u.flags|=256,Hr(s,u,f,m),u.child}var cE={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function uE(s){return{baseLanes:s,cachePool:Ak()}}function dE(s,u,f){return s=s!==null?s.childLanes&~f:0,u&&(s|=za),s}function zN(s,u,f){var m=u.pendingProps,_=!1,w=(u.flags&128)!==0,R;if((R=w)||(R=s!==null&&s.memoizedState===null?!1:(qn.current&2)!==0),R&&(_=!0,u.flags&=-129),R=(u.flags&32)!==0,u.flags&=-33,s===null){if(Vt){if(_?hs(u):ms(),(s=xn)?(s=YR(s,so),s=s!==null&&s.data!=="&"?s:null,s!==null&&(u.memoizedState={dehydrated:s,treeContext:ss!==null?{id:Xo,overflow:Jo}:null,retryLane:536870912,hydrationErrors:null},f=bk(s),f.return=u,u.child=f,Ur=u,xn=null)):s=null,s===null)throw cs(u);return YE(s)?u.lanes=32:u.lanes=536870912,null}var $=m.children;return m=m.fallback,_?(ms(),_=u.mode,$=wm({mode:"hidden",children:$},_),m=vl(m,_,f,null),$.return=u,m.return=u,$.sibling=m,u.child=$,m=u.child,m.memoizedState=uE(f),m.childLanes=dE(s,R,f),u.memoizedState=cE,of(null,m)):(hs(u),fE(u,$))}var Z=s.memoizedState;if(Z!==null&&($=Z.dehydrated,$!==null)){if(w)u.flags&256?(hs(u),u.flags&=-257,u=pE(s,u,f)):u.memoizedState!==null?(ms(),u.child=s.child,u.flags|=128,u=null):(ms(),$=m.fallback,_=u.mode,m=wm({mode:"visible",children:m.children},_),$=vl($,_,f,null),$.flags|=2,m.return=u,$.return=u,m.sibling=$,u.child=m,Cl(u,s.child,null,f),m=u.child,m.memoizedState=uE(f),m.childLanes=dE(s,R,f),u.memoizedState=cE,u=of(null,m));else if(hs(u),YE($)){if(R=$.nextSibling&&$.nextSibling.dataset,R)var pe=R.dgst;R=pe,m=Error(r(419)),m.stack="",m.digest=R,Yd({value:m,source:null,stack:null}),u=pE(s,u,f)}else if(ar||Pc(s,u,f,!1),R=(f&s.childLanes)!==0,ar||R){if(R=mn,R!==null&&(m=le(R,f),m!==0&&m!==Z.retryLane))throw Z.retryLane=m,bl(s,m),xa(R,s,m),sE;qE($)||Dm(),u=pE(s,u,f)}else qE($)?(u.flags|=192,u.child=s.child,u=null):(s=Z.treeContext,xn=co($.nextSibling),Ur=u,Vt=!0,ls=null,so=!1,s!==null&&Ek(u,s),u=fE(u,m.children),u.flags|=4096);return u}return _?(ms(),$=m.fallback,_=u.mode,Z=s.child,pe=Z.sibling,m=wi(Z,{mode:"hidden",children:m.children}),m.subtreeFlags=Z.subtreeFlags&65011712,pe!==null?$=wi(pe,$):($=vl($,_,f,null),$.flags|=2),$.return=u,m.return=u,m.sibling=$,u.child=m,of(null,m),m=u.child,$=s.child.memoizedState,$===null?$=uE(f):(_=$.cachePool,_!==null?(Z=nr._currentValue,_=_.parent!==Z?{parent:Z,pool:Z}
vendor: 5,139 bytes, line 815
815:_):_=Ak(),$={baseLanes:$.baseLanes|f,cachePool:_}),m.memoizedState=$,m.childLanes=dE(s,R,f),u.memoizedState=cE,of(s.child,m)):(hs(u),f=s.child,s=f.sibling,f=wi(f,{mode:"visible",children:m.children}),f.return=u,f.sibling=null,s!==null&&(R=u.deletions,R===null?(u.deletions=[s],u.flags|=16):R.push(s)),u.child=f,u.memoizedState=null,f)}function fE(s,u){return u=wm({mode:"visible",children:u},s.mode),u.return=s,s.child=u}function wm(s,u){return s=$a(22,s,null,u),s.lanes=0,s}function pE(s,u,f){return Cl(u,s.child,null,f),s=fE(u,u.pendingProps.children),s.flags|=2,u.memoizedState=null,s}function BN(s,u,f){s.lanes|=u;var m=s.alternate;m!==null&&(m.lanes|=u),k_(s.return,u,f)}function hE(s,u,f,m,_,w){var R=s.memoizedState;R===null?s.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:_,treeForkCount:w}:(R.isBackwards=u,R.rendering=null,R.renderingStartTime=0,R.last=m,R.tail=f,R.tailMode=_,R.treeForkCount=w)}function UN(s,u,f){var m=u.pendingProps,_=m.revealOrder,w=m.tail;m=m.children;var R=qn.current,$=(R&2)!==0;if($?(R=R&1|2,u.flags|=128):R&=1,L(qn,R),Hr(s,u,m,f),m=Vt?qd:0,!$&&s!==null&&(s.flags&128)!==0)e:for(s=u.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&BN(s,f,u);else if(s.tag===19)BN(s,f,u);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===u)break e;for(;s.sibling===null;){if(s.return===null||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}switch(_){case"forwards":for(f=u.child,_=null;f!==null;)s=f.alternate,s!==null&&dm(s)===null&&(_=f),f=f.sibling;f=_,f===null?(_=u.child,u.child=null):(_=f.sibling,f.sibling=null),hE(u,!1,_,f,w,m);break;case"backwards":case"unstable_legacy-backwards":for(f=null,_=u.child,u.child=null;_!==null;){if(s=_.alternate,s!==null&&dm(s)===null){u.child=_;break}s=_.sibling,_.sibling=f,f=_,_=s}hE(u,!0,f,null,w,m);break;case"together":hE(u,!1,null,null,void 0,m);break;default:u.memoizedState=null}return u.child}function Ni(s,u,f){if(s!==null&&(u.dependencies=s.dependencies),bs|=u.lanes,(f&u.childLanes)===0)if(s!==null){if(Pc(s,u,f,!1),(f&u.childLanes)===0)return null}else return null;if(s!==null&&u.child!==s.child)throw Error(r(153));if(u.child!==null){for(s=u.child,f=wi(s,s.pendingProps),u.child=f,f.return=u;s.sibling!==null;)s=s.sibling,f=f.sibling=wi(s,s.pendingProps),f.return=u;f.sibling=null}return u.child}function mE(s,u){return(s.lanes&u)!==0?!0:(s=s.dependencies,!!(s!==null&&rm(s)))}function a8(s,u,f){switch(u.tag){case 3:Be(u,u.stateNode.containerInfo),us(u,nr,s.memoizedState.cache),_l();break;case 27:case 5:nt(u);break;case 4:Be(u,u.stateNode.containerInfo);break;case 10:us(u,u.type,u.memoizedProps.value);break;case 31:if(u.memoizedState!==null)return u.flags|=128,B_(u),null;break;case 13:var m=u.memoizedState;if(m!==null)return m.dehydrated!==null?(hs(u),u.flags|=128,null):(f&u.child.childLanes)!==0?zN(s,u,f):(hs(u),s=Ni(s,u,f),s!==null?s.sibling:null);hs(u);break;case 19:var _=(s.flags&128)!==0;if(m=(f&u.childLanes)!==0,m||(Pc(s,u,f,!1),m=(f&u.childLanes)!==0),_){if(m)return UN(s,u,f);u.flags|=128}if(_=u.memoizedState,_!==null&&(_.rendering=null,_.tail=null,_.lastEffect=null),L(qn,qn.current),m)break;return null;case 22:return u.lanes=0,IN(s,u,f,u.pendingProps);case 24:us(u,nr,s.memoizedState.cache)}return Ni(s,u,f)}function FN(s,u,f){if(s!==null)if(s.memoizedProps!==u.pendingProps)ar=!0;else{if(!mE(s,f)&&(u.flags&128)===0)return ar=!1,a8(s,u,f);ar=(s.flags&131072)!==0}else ar=!1,Vt&&(u.flags&1048576)!==0&&_k(u,qd,u.index);switch(u.lanes=0,u.tag){case 16:e:{var m=u.pendingProps;if(s=Tl(u.elementType),u.type=s,typeof s=="function")__(s)?(m=kl(s,m),u.tag=1,u=MN(null,u,s,m,f)):(u.tag=0,u=lE(null,u,s,m,f));else{if(s!=null){var _=s.$$typeof;if(_===N){u.tag=11,u=RN(null,u,s,m,f);break e}else if(_===D){u.tag=14,u=ON(null,u,s,m,f);break e}}throw u=ne(s)||s,Error(r(306,u,""))}}return u;case 0:return lE(s,u,u.type,u.pendingProps,f);case 1:return m=u.type,_=kl(m,u.pendingProps),MN(s,u,m,_,f);case 3:e:{if(Be(u,u.stateNode.containerInfo),s===null)throw Error(r(387));m=u.pendingProps;var w=u.memoizedState;_=w.element,$_(s,u),ef(u,m,null,f);var R=u.memoizedState;if(m=R.cache,us(u,nr,m),m!==w.cache&&N_(u,[nr],f,!0),Jd(),m=R.element,w.isDehydrated)if(w={element:m,isDehydrated:!1,cache:R.cache},u.updateQueue.baseState=w,u.memoizedState=w,u.flags&256){u=jN(s,u,m,f);break e}else if(m!==_){_=ao(Error(r(424)),u),Yd(_),u=jN(s,u,m,f);break e}else{switch(s=u.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(xn=co(s.firstChild),Ur=u,Vt=!0,ls=null,so=!0,f=Ik(u,null,m,f),u.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling}else{if(_l(),m===_){u=Ni(s,u,f);break e}Hr(s,u,m,f)}u=u.child}return u;case 26:return xm(s,u),s===null?(f=JR(u.type,null,u.pendingProps,null))?u.memoizedState=f:Vt||(f=u.type,s=u.pendingProps,m=zm(Ce.current).createElement(f),m[Ve]=u,m[Ke]=s,Gr(m,f,s),An(m),u.stateNode=m):u.memoizedState=JR(u.type,s.memoizedProps,u.pendingProps,s.memoizedState),null;case 27:return nt(u),s===null&&Vt&&(m=u.stateNode=KR(u.type,u.pendingProps,Ce.current),Ur=u,so=!0,_=xn,ws(u.type)?(WE=_,xn=co(m.f
vendor: 4,658 bytes, line 815
815irstChild)):xn=_),Hr(s,u,u.pendingProps.children,f),xm(s,u),s===null&&(u.flags|=4194304),u.child;case 5:return s===null&&Vt&&((_=m=xn)&&(m=L8(m,u.type,u.pendingProps,so),m!==null?(u.stateNode=m,Ur=u,xn=co(m.firstChild),so=!1,_=!0):_=!1),_||cs(u)),nt(u),_=u.type,w=u.pendingProps,R=s!==null?s.memoizedProps:null,m=w.children,HE(_,w)?m=null:R!==null&&HE(_,R)&&(u.flags|=32),u.memoizedState!==null&&(_=F_(s,u,Z9,null,null,f),Ef._currentValue=_),xm(s,u),Hr(s,u,m,f),u.child;case 6:return s===null&&Vt&&((s=f=xn)&&(f=$8(f,u.pendingProps,so),f!==null?(u.stateNode=f,Ur=u,xn=null,s=!0):s=!1),s||cs(u)),null;case 13:return zN(s,u,f);case 4:return Be(u,u.stateNode.containerInfo),m=u.pendingProps,s===null?u.child=Cl(u,null,m,f):Hr(s,u,m,f),u.child;case 11:return RN(s,u,u.type,u.pendingProps,f);case 7:return Hr(s,u,u.pendingProps,f),u.child;case 8:return Hr(s,u,u.pendingProps.children,f),u.child;case 12:return Hr(s,u,u.pendingProps.children,f),u.child;case 10:return m=u.pendingProps,us(u,u.type,m.value),Hr(s,u,m.children,f),u.child;case 9:return _=u.type._context,m=u.pendingProps.children,xl(u),_=Fr(_),m=m(_),u.flags|=1,Hr(s,u,m,f),u.child;case 14:return ON(s,u,u.type,u.pendingProps,f);case 15:return DN(s,u,u.type,u.pendingProps,f);case 19:return UN(s,u,f);case 31:return r8(s,u,f);case 22:return IN(s,u,f,u.pendingProps);case 24:return xl(u),m=Fr(nr),s===null?(_=D_(),_===null&&(_=mn,w=R_(),_.pooledCache=w,w.refCount++,w!==null&&(_.pooledCacheLanes|=f),_=w),u.memoizedState={parent:m,cache:_},L_(u),us(u,nr,_)):((s.lanes&f)!==0&&($_(s,u),ef(u,null,null,f),Jd()),_=s.memoizedState,w=u.memoizedState,_.parent!==m?(_={parent:m,cache:m},u.memoizedState=_,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=_),us(u,nr,m)):(m=w.cache,us(u,nr,m),m!==_.cache&&N_(u,[nr],f,!0))),Hr(s,u,u.pendingProps.children,f),u.child;case 29:throw u.pendingProps}throw Error(r(156,u.tag))}function Ri(s){s.flags|=4}function gE(s,u,f,m,_){if((u=(s.mode&32)!==0)&&(u=!1),u){if(s.flags|=16777216,(_&335544128)===_)if(s.stateNode.complete)s.flags|=8192;else if(mR())s.flags|=8192;else throw Sl=sm,I_}else s.flags&=-16777217}function HN(s,u){if(u.type!=="stylesheet"||(u.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!aO(u))if(mR())s.flags|=8192;else throw Sl=sm,I_}function Tm(s,u){u!==null&&(s.flags|=4),s.flags&16384&&(u=s.tag!==22?br():536870912,s.lanes|=u,Wc|=u)}function sf(s,u){if(!Vt)switch(s.tailMode){case"hidden":u=s.tail;for(var f=null;u!==null;)u.alternate!==null&&(f=u),u=u.sibling;f===null?s.tail=null:f.sibling=null;break;case"collapsed":f=s.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?u||s.tail===null?s.tail=null:s.tail.sibling=null:m.sibling=null}}function wn(s){var u=s.alternate!==null&&s.alternate.child===s.child,f=0,m=0;if(u)for(var _=s.child;_!==null;)f|=_.lanes|_.childLanes,m|=_.subtreeFlags&65011712,m|=_.flags&65011712,_.return=s,_=_.sibling;else for(_=s.child;_!==null;)f|=_.lanes|_.childLanes,m|=_.subtreeFlags,m|=_.flags,_.return=s,_=_.sibling;return s.subtreeFlags|=m,s.childLanes=f,u}function o8(s,u,f){var m=u.pendingProps;switch(T_(u),u.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wn(u),null;case 1:return wn(u),null;case 3:return f=u.stateNode,m=null,s!==null&&(m=s.memoizedState.cache),u.memoizedState.cache!==m&&(u.flags|=2048),Ci(nr),qe(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(s===null||s.child===null)&&($c(u)?Ri(u):s===null||s.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,C_())),wn(u),null;case 26:var _=u.type,w=u.memoizedState;return s===null?(Ri(u),w!==null?(wn(u),HN(u,w)):(wn(u),gE(u,_,null,m,f))):w?w!==s.memoizedState?(Ri(u),wn(u),HN(u,w)):(wn(u),u.flags&=-16777217):(s=s.memoizedProps,s!==m&&Ri(u),wn(u),gE(u,_,s,m,f)),null;case 27:if(dt(u),f=Ce.current,_=u.type,s!==null&&u.stateNode!=null)s.memoizedProps!==m&&Ri(u);else{if(!m){if(u.stateNode===null)throw Error(r(166));return wn(u),null}s=de.current,$c(u)?xk(u):(s=KR(_,m,f),u.stateNode=s,Ri(u))}return wn(u),null;case 5:if(dt(u),_=u.type,s!==null&&u.stateNode!=null)s.memoizedProps!==m&&Ri(u);else{if(!m){if(u.stateNode===null)throw Error(r(166));return wn(u),null}if(w=de.current,$c(u))xk(u);else{var R=zm(Ce.current);switch(w){case 1:w=R.createElementNS("http://www.w3.org/2000/svg",_);break;case 2:w=R.createElementNS("http://www.w3.org/1998/Math/MathML",_);break;default:switch(_){case"svg":w=R.createElementNS("http://www.w3.org/2000/svg",_);break;case"math":w=R.createElementNS("http://www.w3.org/1998/Math/MathML",_);break;case"script":w=R.createElement("div"),w.innerHTML="<script><\/script>",w=w.removeChild(w.firstChild);break;
vendor: 14,699 bytes, line 815
815case"select":w=typeof m.is=="string"?R.createElement("select",{is:m.is}):R.createElement("select"),m.multiple?w.multiple=!0:m.size&&(w.size=m.size);break;default:w=typeof m.is=="string"?R.createElement(_,{is:m.is}):R.createElement(_)}}w[Ve]=u,w[Ke]=m;e:for(R=u.child;R!==null;){if(R.tag===5||R.tag===6)w.appendChild(R.stateNode);else if(R.tag!==4&&R.tag!==27&&R.child!==null){R.child.return=R,R=R.child;continue}if(R===u)break e;for(;R.sibling===null;){if(R.return===null||R.return===u)break e;R=R.return}R.sibling.return=R.return,R=R.sibling}u.stateNode=w;e:switch(Gr(w,_,m),_){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&Ri(u)}}return wn(u),gE(u,u.type,s===null?null:s.memoizedProps,u.pendingProps,f),null;case 6:if(s&&u.stateNode!=null)s.memoizedProps!==m&&Ri(u);else{if(typeof m!="string"&&u.stateNode===null)throw Error(r(166));if(s=Ce.current,$c(u)){if(s=u.stateNode,f=u.memoizedProps,m=null,_=Ur,_!==null)switch(_.tag){case 27:case 5:m=_.memoizedProps}s[Ve]=u,s=!!(s.nodeValue===f||m!==null&&m.suppressHydrationWarning===!0||zR(s.nodeValue,f)),s||cs(u,!0)}else s=zm(s).createTextNode(m),s[Ve]=u,u.stateNode=s}return wn(u),null;case 31:if(f=u.memoizedState,s===null||s.memoizedState!==null){if(m=$c(u),f!==null){if(s===null){if(!m)throw Error(r(318));if(s=u.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(557));s[Ve]=u}else _l(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;wn(u),s=!1}else f=C_(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=f),s=!0;if(!s)return u.flags&256?(Ma(u),u):(Ma(u),null);if((u.flags&128)!==0)throw Error(r(558))}return wn(u),null;case 13:if(m=u.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(_=$c(u),m!==null&&m.dehydrated!==null){if(s===null){if(!_)throw Error(r(318));if(_=u.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(r(317));_[Ve]=u}else _l(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;wn(u),_=!1}else _=C_(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=_),_=!0;if(!_)return u.flags&256?(Ma(u),u):(Ma(u),null)}return Ma(u),(u.flags&128)!==0?(u.lanes=f,u):(f=m!==null,s=s!==null&&s.memoizedState!==null,f&&(m=u.child,_=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(_=m.alternate.memoizedState.cachePool.pool),w=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(w=m.memoizedState.cachePool.pool),w!==_&&(m.flags|=2048)),f!==s&&f&&(u.child.flags|=8192),Tm(u,u.updateQueue),wn(u),null);case 4:return qe(),s===null&&jE(u.stateNode.containerInfo),wn(u),null;case 10:return Ci(u.type),wn(u),null;case 19:if(G(qn),m=u.memoizedState,m===null)return wn(u),null;if(_=(u.flags&128)!==0,w=m.rendering,w===null)if(_)sf(m,!1);else{if(Fn!==0||s!==null&&(s.flags&128)!==0)for(s=u.child;s!==null;){if(w=dm(s),w!==null){for(u.flags|=128,sf(m,!1),s=w.updateQueue,u.updateQueue=s,Tm(u,s),u.subtreeFlags=0,s=f,f=u.child;f!==null;)yk(f,s),f=f.sibling;return L(qn,qn.current&1|2),Vt&&Ti(u,m.treeForkCount),u.child}s=s.sibling}m.tail!==null&&Re()>Nm&&(u.flags|=128,_=!0,sf(m,!1),u.lanes=4194304)}else{if(!_)if(s=dm(w),s!==null){if(u.flags|=128,_=!0,s=s.updateQueue,u.updateQueue=s,Tm(u,s),sf(m,!0),m.tail===null&&m.tailMode==="hidden"&&!w.alternate&&!Vt)return wn(u),null}else 2*Re()-m.renderingStartTime>Nm&&f!==536870912&&(u.flags|=128,_=!0,sf(m,!1),u.lanes=4194304);m.isBackwards?(w.sibling=u.child,u.child=w):(s=m.last,s!==null?s.sibling=w:u.child=w,m.last=w)}return m.tail!==null?(s=m.tail,m.rendering=s,m.tail=s.sibling,m.renderingStartTime=Re(),s.sibling=null,f=qn.current,L(qn,_?f&1|2:f&1),Vt&&Ti(u,m.treeForkCount),s):(wn(u),null);case 22:case 23:return Ma(u),z_(),m=u.memoizedState!==null,s!==null?s.memoizedState!==null!==m&&(u.flags|=8192):m&&(u.flags|=8192),m?(f&536870912)!==0&&(u.flags&128)===0&&(wn(u),u.subtreeFlags&6&&(u.flags|=8192)):wn(u),f=u.updateQueue,f!==null&&Tm(u,f.retryQueue),f=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(f=s.memoizedState.cachePool.pool),m=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==f&&(u.flags|=2048),s!==null&&G(wl),null;case 24:return f=null,s!==null&&(f=s.memoizedState.cache),u.memoizedState.cache!==f&&(u.flags|=2048),Ci(nr),wn(u),null;case 25:return null;case 30:return null}throw Error(r(156,u.tag))}function i8(s,u){switch(T_(u),u.tag){case 1:return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 3:return Ci(nr),qe(),s=u.flags,(s&65536)!==0&&(s&128)===0?(u.flags=s&-65537|128,u):null;case 26:case 27:case 5:return dt(u),null;case 31:if(u.memoizedState!==null){if(Ma(u),u.alternate===null)throw Error(r(340));_l()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 13:if(Ma(u),s=u.memoizedState,s!==null&&s.dehydrated!==null){if(u.alternate===null)throw Error(r(340));_l()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 19:return G(qn),null;case 4:return qe(),null;case 10:return Ci(u.type),null;case 22:case 23:return Ma(u),z_(),s!==null&&G(wl),s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 24:return Ci(nr),null;case 25:return null;default:return null}}function GN(s,u){switch(T_(u),u.tag){case 3:Ci(nr),qe();break;case 26:case 27:case 5:dt(u);break;case 4:qe();break;case 31:u.memoizedState!==null&&Ma(u);break;case 13:Ma(u);break;case 19:G(qn);break;case 10:Ci(u.type);break;case 22:case 23:Ma(u),z_(),s!==null&&G(wl);break;case 24:Ci(nr)}}function lf(s,u){try{var f=u.updateQueue,m=f!==null?f.lastEffect:null;if(m!==null){var _=m.next;f=_;do{if((f.tag&s)===s){m=void 0;var w=f.create,R=f.inst;m=w(),R.destroy=m}f=f.next}while(f!==_)}}catch($){sn(u,u.return,$)}}function gs(s,u,f){try{var m=u.updateQueue,_=m!==null?m.lastEffect:null;if(_!==null){var w=_.next;m=w;do{if((m.tag&s)===s){var R=m.inst,$=R.destroy;if($!==void 0){R.destroy=void 0,_=u;var Z=f,pe=$;try{pe()}catch(Te){sn(_,Z,Te)}}}m=m.next}while(m!==w)}}catch(Te){sn(u,u.return,Te)}}function VN(s){var u=s.updateQueue;if(u!==null){var f=s.stateNode;try{$k(u,f)}catch(m){sn(s,s.return,m)}}}function qN(s,u,f){f.props=kl(s.type,s.memoizedProps),f.state=s.memoizedState;try{f.componentWillUnmount()}catch(m){sn(s,u,m)}}function cf(s,u){try{var f=s.ref;if(f!==null){switch(s.tag){case 26:case 27:case 5:var m=s.stateNode;break;case 30:m=s.stateNode;break;default:m=s.stateNode}typeof f=="function"?s.refCleanup=f(m):f.current=m}}catch(_){sn(s,u,_)}}function ei(s,u){var f=s.ref,m=s.refCleanup;if(f!==null)if(typeof m=="function")try{m()}catch(_){sn(s,u,_)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch(_){sn(s,u,_)}else f.current=null}function YN(s){var u=s.type,f=s.memoizedProps,m=s.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":f.autoFocus&&m.focus();break e;case"img":f.src?m.src=f.src:f.srcSet&&(m.srcset=f.srcSet)}}catch(_){sn(s,s.return,_)}}function yE(s,u,f){try{var m=s.stateNode;k8(m,s.type,f,u),m[Ke]=u}catch(_){sn(s,s.return,_)}}function WN(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&ws(s.type)||s.tag===4}function bE(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||WN(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&ws(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function vE(s,u,f){var m=s.tag;if(m===5||m===6)s=s.stateNode,u?(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f).insertBefore(s,u):(u=f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,u.appendChild(s),f=f._reactRootContainer,f!=null||u.onclick!==null||(u.onclick=Ei));else if(m!==4&&(m===27&&ws(s.type)&&(f=s.stateNode,u=null),s=s.child,s!==null))for(vE(s,u,f),s=s.sibling;s!==null;)vE(s,u,f),s=s.sibling}function Sm(s,u,f){var m=s.tag;if(m===5||m===6)s=s.stateNode,u?f.insertBefore(s,u):f.appendChild(s);else if(m!==4&&(m===27&&ws(s.type)&&(f=s.stateNode),s=s.child,s!==null))for(Sm(s,u,f),s=s.sibling;s!==null;)Sm(s,u,f),s=s.sibling}function ZN(s){var u=s.stateNode,f=s.memoizedProps;try{for(var m=s.type,_=u.attributes;_.length;)u.removeAttributeNode(_[0]);Gr(u,m,f),u[Ve]=s,u[Ke]=f}catch(w){sn(s,s.return,w)}}var Oi=!1,or=!1,_E=!1,KN=typeof WeakSet=="function"?WeakSet:Set,Or=null;function s8(s,u){if(s=s.containerInfo,UE=qm,s=lk(s),p_(s)){if("selectionStart"in s)var f={start:s.selectionStart,end:s.selectionEnd};else e:{f=(f=s.ownerDocument)&&f.defaultView||window;var m=f.getSelection&&f.getSelection();if(m&&m.rangeCount!==0){f=m.anchorNode;var _=m.anchorOffset,w=m.focusNode;m=m.focusOffset;try{f.nodeType,w.nodeType}catch{f=null;break e}var R=0,$=-1,Z=-1,pe=0,Te=0,Ae=s,me=null;t:for(;;){for(var ve;Ae!==f||_!==0&&Ae.nodeType!==3||($=R+_),Ae!==w||m!==0&&Ae.nodeType!==3||(Z=R+m),Ae.nodeType===3&&(R+=Ae.nodeValue.length),(ve=Ae.firstChild)!==null;)me=Ae,Ae=ve;for(;;){if(Ae===s)break t;if(me===f&&++pe===_&&($=R),me===w&&++Te===m&&(Z=R),(ve=Ae.nextSibling)!==null)break;Ae=me,me=Ae.parentNode}Ae=ve}f=$===-1||Z===-1?null:{start:$,end:Z}}else f=null}f=f||{start:0,end:0}}else f=null;for(FE={focusedElem:s,selectionRange:f},qm=!1,Or=u;Or!==null;)if(u=Or,s=u.child,(u.subtreeFlags&1028)!==0&&s!==null)s.return=u,Or=s;else for(;Or!==null;){switch(u=Or,w=u.alternate,s=u.flags,u.tag){case 0:if((s&4)!==0&&(s=u.updateQueue,s=s!==null?s.events:null,s!==null))for(f=0;f<s.length;f++)_=s[f],_.ref.impl=_.nextImpl;break;case 11:case 15:break;case 1:if((s&1024)!==0&&w!==null){s=void 0,f=u,_=w.memoizedProps,w=w.memoizedState,m=f.stateNode;try{var Xe=kl(f.type,_);s=m.getSnapshotBeforeUpdate(Xe,w),m.__reactInternalSnapshotBeforeUpdate=s}catch(mt){sn(f,f.return,mt)}}break;case 3:if((s&1024)!==0){if(s=u.stateNode.containerInfo,f=s.nodeType,f===9)VE(s);else if(f===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":VE(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=u.sibling,s!==null){s.return=u.return,Or=s;break}Or=u.return}}function QN(s,u,f){var m=f.flags;switch(f.tag){case 0:case 11:case 15:Ii(s,f),m&4&&lf(5,f);break;case 1:if(Ii(s,f),m&4)if(s=f.stateNode,u===null)try{s.componentDidMount()}catch(R){sn(f,f.return,R)}else{var _=kl(f.type,u.memoizedProps);u=u.memoizedState;try{s.componentDidUpdate(_,u,s.__reactInternalSnapshotBeforeUpdate)}catch(R){sn(f,f.return,R)}}m&64&&VN(f),m&512&&cf(f,f.return);break;case 3:if(Ii(s,f),m&64&&(s=f.updateQueue,s!==null)){if(u=null,f.child!==null)switch(f.child.tag){case 27:case 5:u=f.child.stateNode;break;case 1:u=f.child.stateNode}try{$k(s,u)}catch(R){sn(f,f.return,R)}}break;case 27:u===null&&m&4&&ZN(f);case 26:case 5:Ii(s,f),u===null&&m&4&&YN(f),m&512&&cf(f,f.return);break;case 12:Ii(s,f);break;case 31:Ii(s,f),m&4&&eR(s,f);break;case 13:Ii(s,f),m&4&&tR(s,f),m&64&&(s=f.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(f=g8.bind(null,f),P8(s,f))));break;case 22:if(m=f.memoizedState!==null||Oi,!m){u=u!==null&&u.memoizedState!==null||or,_=Oi;var w=or;Oi=m,(or=u)&&!w?Li(s,f,(f.subtreeFlags&8772)!==0):Ii(s,f),Oi=_,or=w}break;case 30:break;default:Ii(s,f)}}function XN(s){var u=s.alternate;u!==null&&(s.alternate=null,XN(u)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(u=s.stateNode,u!==null&&zn(u)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var kn=null,ba=!1;function Di(s,u,f){for(f=f.child;f!==null;)JN(s,u,f),f=f.sibling}function JN(s,u,f){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(Cn,f)}catch{}switch(f.tag){case 26:or||ei(f,u),Di(s,u,f),f.memoizedState?f.memoizedState.count--:f.stateNode&&(f=f.stateNode,f.parentNode.removeChild(f));break;case 27:or||ei(f,u);var m=kn,_=ba;ws(f.type)&&(kn=f.stateNode,ba=!1),Di(s,u,f),bf(f.stateNode),kn=m,ba=_;break;case 5:or||ei(f,u);case 6:if(m=kn,_=ba,kn=null,Di(s,u,f),kn=m,ba=_,kn!==null)if(ba)try{(kn.nodeType===9?kn.body:kn.nodeName==="HTML"?kn.ownerDocument.body:kn).removeChild(f.stateNode)}catch(w){sn(f,u,w)}else try{kn.removeChild(f.stateNode)}catch(w){sn(f,u,w)}break;case 18:kn!==null&&(ba?(s=kn,VR(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,f.stateNode),nu(s)):VR(kn,f.stateNode));break;case 4:m=kn,_=ba,kn=f.stateNode.containerInfo,ba=!0,Di(s,u,f),kn=m,ba=_;break;case 0:case 11:case 14:case 15:gs(2,f,u),or||gs(4,f,u),Di(s,u,f);break;case 1:or||(ei(f,u),m=f.stateNode,typeof m.componentWillUnmount=="function"&&qN(f,u,m)),Di(s,u,f);break;case 21:Di(s,u,f);break;case 22:or=(m=or)||f.memoizedState!==null,Di(s,u,f),or=m;break;default:Di(s,u,f)}}function eR(s,u){if(u.memoizedState===null&&(s=u.alternate,s!==null&&(s=s.memoizedState,s!==null))){s=s.dehydrated;try{nu(s)}catch(f){sn(u,u.return,f)}}}function tR(s,u){if(u.memoizedState===null&&(s=u.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{nu(s)}catch(f){sn(u,u.return,f)}}function l8(s){switch(s.tag){case 31:case 13:case 19:var u=s.stateNode;return u===null&&(u=s.stateNode=new KN),u;case 22:return s=s.stateNode,u=s._retryCache,u===null&&(u=s._retryCache=new KN),u;default:throw Error(r(435,s.tag))}}function Cm(s,u){var f=l8(s);u.forEach(function(m){if(!f.has(m)){f.add(m);var _=y8.bind(null,s,m);m.then(_,_)}})}function va(s,u){var f=u.deletions;if(f!==null)for(var m=0;m<f.length;m++){var _=f[m],w=s,R=u,$=R;e:for(;$!==null;){switch($.tag){case 27:if(ws($.type)){kn=$.stateNode,ba=!1;break e}break;case 5:kn=$.stateNode,ba=!1;break e;case 3:case 4:kn=$.stateNode.containerInfo,ba=!0;break e}$=$.return}if(kn===null)throw Error(r(160));JN(w,R,_),kn=null,ba=!1,w=_.alternate,w!==null&&(w.return=null),_.return=null}if(u.subtreeFlags&13886)for(u=u.child;u!==null;)nR(u,s),u=u.sibling}var Lo=null;function nR(s,u){var f=s.alternate,m=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:va(u,s),_a(s),m&4&&(gs(3,s,s.return),lf(3,s),gs(5,s,s.return));break;case 1:va(u,s),_a(s),m&512&&(or||f===null||ei(f,f.return)),m&64&&Oi&&(s=s.updateQueue,s!==null&&(m=s.callbacks,m!==null&&(f=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=f===null?m:f.concat(m))));break;case 26:var _=Lo;if(va(u,s),_a(s),m&512&&(or||f===null||ei(f,f.return)),m&4){var w=f!==null?f.memoizedState:null;if(m=s.memoizedState,f===null)if(m===null)if(s.stateNode===null){e:{m=s.type,f=s.memoizedProps,_=_.ownerDocument||_;t:switch(m){case"title":w=_.getElementsByTagName("title")[0],(!w||w[Dn]||w[Ve]||w.namespaceURI==="http://www.w3.org/2000/svg"||w.hasAttribute("itemprop"))&&(w=_.createElement(m),_.head.insertBefore(w,_.querySelector("head >
815 title"))),Gr(w,m,f),w[Ve]=s,An(w),m=w;break e;case"link":var R=nO("link","href",_).get(m+(f.href||""));if(R){for(var $=0;$<R.length;$++)if(w=R[$],w.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&w.getAttribute("rel")===(f.rel==null?null:f.rel)&&w.getAttribute("title")===(f.title==null?null:f.title)&&w.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){R.splice($,1);break t}}w=_.createElement(m),Gr(w,m,f),_.head.appendChild(w);break;case"meta":if(R=nO("meta","content",_).get(m+(f.content||""))){for($=0;$<R.length;$++)if(w=R[$],w.getAttribute("content")===(f.content==null?null:""+f.content)&&w.getAttribute("name")===(f.name==null?null:f.name)&&w.getAttribute("property")===(f.property==null?null:f.property)&&w.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&w.getAttribute("charset")===(f.charSet==null?null:f.charSet)){R.splice($,1);break t}}w=_.createElement(m),Gr(w,m,f),_.head.appendChild(w);break;default:throw Error(r(468,m))}w[Ve]=s,An(w),m=w}s.stateNode=m}else rO(_,s.type,s.stateNode);else s.stateNode=tO(_,m,s.memoizedProps);else w!==m?(w===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):w.count--,m===null?rO(_,s.type,s.stateNode):tO(_,m,s.memoizedProps)):m===null&&s.stateNode!==null&&yE(s,s.memoizedProps,f.memoizedProps)}break;case 27:va(u,s),_a(s),m&512&&(or||f===null||ei(f,f.return)),f!==null&&m&4&&yE(s,s.memoizedProps,f.memoizedProps);break;case 5:if(va(u,s),_a(s),m&512&&(or||f===null||ei(f,f.return)),s.flags&32){_=s.stateNode;try{Sc(_,"")}catch(Xe){sn(s,s.return,Xe)}}m&4&&s.stateNode!=null&&(_=s.memoizedProps,yE(s,_,f!==null?f.memoizedProps:_)),m&1024&&(_E=!0);break;case 6:if(va(u,s),_a(s),m&4){if(s.stateNode===null)throw Error(r(162));m=s.memoizedProps,f=s.stateNode;try{f.nodeValue=m}catch(Xe){sn(s,s.return,Xe)}}break;case 3:if(Fm=null,_=Lo,Lo=Bm(u.containerInfo),va(u,s),Lo=_,_a(s),m&4&&f!==null&&f.memoizedState.isDehydrated)try{nu(u.containerInfo)}catch(Xe){sn(s,s.return,Xe)}_E&&(_E=!1,rR(s));break;case 4:m=Lo,Lo=Bm(s.stateNode.containerInfo),va(u,s),_a(s),Lo=m;break;case 12:va(u,s),_a(s);break;case 31:va(u,s),_a(s),m&4&&(m=s.updateQueue,m!==null&&(s.updateQueue=null,Cm(s,m)));break;case 13:va(u,s),_a(s),s.child.flags&8192&&s.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(km=Re()),m&4&&(m=s.updateQueue,m!==null&&(s.updateQueue=null,Cm(s,m)));break;case 22:_=s.memoizedState!==null;var Z=f!==null&&f.memoizedState!==null,pe=Oi,Te=or;if(Oi=pe||_,or=Te||Z,va(u,s),or=Te,Oi=pe,_a(s),m&8192)e:for(u=s.stateNode,u._visibility=_?u._visibility&-2:u._visibility|1,_&&(f===null||Z||Oi||or||Nl(s)),f=null,u=s;;){if(u.tag===5||u.tag===26){if(f===null){Z=f=u;try{if(w=Z.stateNode,_)R=w.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none";else{$=Z.stateNode;var Ae=Z.memoizedProps.style,me=Ae!=null&&Ae.hasOwnProperty("display")?Ae.display:null;$.style.display=me==null||typeof me=="boolean"?"":(""+me).trim()}}catch(Xe){sn(Z,Z.return,Xe)}}}else if(u.tag===6){if(f===null){Z=u;try{Z.stateNode.nodeValue=_?"":Z.memoizedProps}catch(Xe){sn(Z,Z.return,Xe)}}}else if(u.tag===18){if(f===null){Z=u;try{var ve=Z.stateNode;_?qR(ve,!0):qR(Z.stateNode,!1)}catch(Xe){sn(Z,Z.return,Xe)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===s)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break e;for(;u.sibling===null;){if(u.return===null||u.return===s)break e;f===u&&(f=null),u=u.return}f===u&&(f=null),u.sibling.return=u.return,u=u.sibling}m&4&&(m=s.updateQueue,m!==null&&(f=m.retryQueue,f!==null&&(m.retryQueue=null,Cm(s,f))));break;case 19:va(u,s),_a(s),m&4&&(m=s.updateQueue,m!==null&&(s.updateQueue=null,Cm(s,m)));break;case 30:break;case 21:break;default:va(u,s),_a(s)}}function _a(s){var u=s.flags;if(u&2){try{for(var f,m=s.return;m!==null;){if(WN(m)){f=m;break}m=m.return}if(f==null)throw Error(r(160));switch(f.tag){case 27:var _=f.stateNode,w=bE(s);Sm(s,w,_);break;case 5:var R=f.stateNode;f.flags&32&&(Sc(R,""),f.flags&=-33);var $=bE(s);Sm(s,$,R);break;case 3:case 4:var Z=f.stateNode.containerInfo,pe=bE(s);vE(s,pe,Z);break;default:throw Error(r(161))}}catch(Te){sn(s,s.return,Te)}s.flags&=-3}u&4096&&(s.flags&=-4097)}function rR(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var u=s;rR(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),s=s.sibling}}function Ii(s,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)QN(s,u.alternate,u),u=u.sibling}function Nl(s){for(s=s.child;s!==null;){var u=s;switch(u.tag){case 0:case 11:case 14:case 15:gs(4,u,u.return),Nl(u);break;case 1:ei(u,u.return);var f=u.stateNode;typeof f.componentWillUnmount=="function"&&qN(u,u.return,f),Nl(u);break;case 27:bf(u.stateNode);case 26:case 5:ei(u,u.return),Nl(u);break;case 22:u.memoizedState===null&&Nl(u);break;case 30:Nl(u);break;default:Nl(u)}s=s.sibling}}function Li(s,u,f){for(f=f&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;){var m=u.alternate,_=s,w=u,R=w.flags;switch(w.tag){case 0:case 11:case 15:Li(_,w,f),lf(4,w);break;case 1:if(Li(_,w,f),m=w,_=m.stateNode,typeof _.componentDidMount=="function")try{_.componentDidMount()}catch(pe){sn(m,m.return,pe)}if(m=w,_=m.updateQueue,_!==null){var $=m.stateNode;try{var Z=_.shared.hiddenCallbacks;
vendor: 4,607 bytes, line 815
815if(Z!==null)for(_.shared.hiddenCallbacks=null,_=0;_<Z.length;_++)Lk(Z[_],$)}catch(pe){sn(m,m.return,pe)}}f&&R&64&&VN(w),cf(w,w.return);break;case 27:ZN(w);case 26:case 5:Li(_,w,f),f&&m===null&&R&4&&YN(w),cf(w,w.return);break;case 12:Li(_,w,f);break;case 31:Li(_,w,f),f&&R&4&&eR(_,w);break;case 13:Li(_,w,f),f&&R&4&&tR(_,w);break;case 22:w.memoizedState===null&&Li(_,w,f),cf(w,w.return);break;case 30:break;default:Li(_,w,f)}u=u.sibling}}function EE(s,u){var f=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(f=s.memoizedState.cachePool.pool),s=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(s=u.memoizedState.cachePool.pool),s!==f&&(s!=null&&s.refCount++,f!=null&&Wd(f))}function xE(s,u){s=null,u.alternate!==null&&(s=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==s&&(u.refCount++,s!=null&&Wd(s))}function $o(s,u,f,m){if(u.subtreeFlags&10256)for(u=u.child;u!==null;)aR(s,u,f,m),u=u.sibling}function aR(s,u,f,m){var _=u.flags;switch(u.tag){case 0:case 11:case 15:$o(s,u,f,m),_&2048&&lf(9,u);break;case 1:$o(s,u,f,m);break;case 3:$o(s,u,f,m),_&2048&&(s=null,u.alternate!==null&&(s=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==s&&(u.refCount++,s!=null&&Wd(s)));break;case 12:if(_&2048){$o(s,u,f,m),s=u.stateNode;try{var w=u.memoizedProps,R=w.id,$=w.onPostCommit;typeof $=="function"&&$(R,u.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(Z){sn(u,u.return,Z)}}else $o(s,u,f,m);break;case 31:$o(s,u,f,m);break;case 13:$o(s,u,f,m);break;case 23:break;case 22:w=u.stateNode,R=u.alternate,u.memoizedState!==null?w._visibility&2?$o(s,u,f,m):uf(s,u):w._visibility&2?$o(s,u,f,m):(w._visibility|=2,Vc(s,u,f,m,(u.subtreeFlags&10256)!==0||!1)),_&2048&&EE(R,u);break;case 24:$o(s,u,f,m),_&2048&&xE(u.alternate,u);break;default:$o(s,u,f,m)}}function Vc(s,u,f,m,_){for(_=_&&((u.subtreeFlags&10256)!==0||!1),u=u.child;u!==null;){var w=s,R=u,$=f,Z=m,pe=R.flags;switch(R.tag){case 0:case 11:case 15:Vc(w,R,$,Z,_),lf(8,R);break;case 23:break;case 22:var Te=R.stateNode;R.memoizedState!==null?Te._visibility&2?Vc(w,R,$,Z,_):uf(w,R):(Te._visibility|=2,Vc(w,R,$,Z,_)),_&&pe&2048&&EE(R.alternate,R);break;case 24:Vc(w,R,$,Z,_),_&&pe&2048&&xE(R.alternate,R);break;default:Vc(w,R,$,Z,_)}u=u.sibling}}function uf(s,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var f=s,m=u,_=m.flags;switch(m.tag){case 22:uf(f,m),_&2048&&EE(m.alternate,m);break;case 24:uf(f,m),_&2048&&xE(m.alternate,m);break;default:uf(f,m)}u=u.sibling}}var df=8192;function qc(s,u,f){if(s.subtreeFlags&df)for(s=s.child;s!==null;)oR(s,u,f),s=s.sibling}function oR(s,u,f){switch(s.tag){case 26:qc(s,u,f),s.flags&df&&s.memoizedState!==null&&W8(f,Lo,s.memoizedState,s.memoizedProps);break;case 5:qc(s,u,f);break;case 3:case 4:var m=Lo;Lo=Bm(s.stateNode.containerInfo),qc(s,u,f),Lo=m;break;case 22:s.memoizedState===null&&(m=s.alternate,m!==null&&m.memoizedState!==null?(m=df,df=16777216,qc(s,u,f),df=m):qc(s,u,f));break;default:qc(s,u,f)}}function iR(s){var u=s.alternate;if(u!==null&&(s=u.child,s!==null)){u.child=null;do u=s.sibling,s.sibling=null,s=u;while(s!==null)}}function ff(s){var u=s.deletions;if((s.flags&16)!==0){if(u!==null)for(var f=0;f<u.length;f++){var m=u[f];Or=m,lR(m,s)}iR(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)sR(s),s=s.sibling}function sR(s){switch(s.tag){case 0:case 11:case 15:ff(s),s.flags&2048&&gs(9,s,s.return);break;case 3:ff(s);break;case 12:ff(s);break;case 22:var u=s.stateNode;s.memoizedState!==null&&u._visibility&2&&(s.return===null||s.return.tag!==13)?(u._visibility&=-3,Am(s)):ff(s);break;default:ff(s)}}function Am(s){var u=s.deletions;if((s.flags&16)!==0){if(u!==null)for(var f=0;f<u.length;f++){var m=u[f];Or=m,lR(m,s)}iR(s)}for(s=s.child;s!==null;){switch(u=s,u.tag){case 0:case 11:case 15:gs(8,u,u.return),Am(u);break;case 22:f=u.stateNode,f._visibility&2&&(f._visibility&=-3,Am(u));break;default:Am(u)}s=s.sibling}}function lR(s,u){for(;Or!==null;){var f=Or;switch(f.tag){case 0:case 11:case 15:gs(8,f,u);break;case 23:case 22:if(f.memoizedState!==null&&f.memoizedState.cachePool!==null){var m=f.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:Wd(f.memoizedState.cache)}if(m=f.child,m!==null)m.return=f,Or=m;else e:for(f=s;Or!==null;){m=Or;var _=m.sibling,w=m.return;if(XN(m),m===f){Or=null;break e}if(_!==null){_.return=w,Or=_;break e}Or=w}}}var c8={getCacheForType:function(s){var u=Fr(nr),f=u.data.get(s);return f===void 0&&(f=s(),u.data.set(s,f)),f},cacheSignal:function(){return Fr(nr).controller.signal}},u8=typeof WeakMap=="function"?WeakMap:Map,nn=0,mn=null,It=null,Mt=0,on=0,ja=null,ys=!1,Y
vendor: 16,289 bytes, line 815
815c=!1,wE=!1,$i=0,Fn=0,bs=0,Rl=0,TE=0,za=0,Wc=0,pf=null,Ea=null,SE=!1,km=0,cR=0,Nm=1/0,Rm=null,vs=null,vr=0,_s=null,Zc=null,Pi=0,CE=0,AE=null,uR=null,hf=0,kE=null;function Ba(){return(nn&2)!==0&&Mt!==0?Mt&-Mt:H.T!==null?LE():Ue()}function dR(){if(za===0)if((Mt&536870912)===0||Vt){var s=Yt;Yt<<=1,(Yt&3932160)===0&&(Yt=262144),za=s}else za=536870912;return s=Pa.current,s!==null&&(s.flags|=32),za}function xa(s,u,f){(s===mn&&(on===2||on===9)||s.cancelPendingCommit!==null)&&(Kc(s,0),Es(s,Mt,za,!1)),Wr(s,f),((nn&2)===0||s!==mn)&&(s===mn&&((nn&2)===0&&(Rl|=f),Fn===4&&Es(s,Mt,za,!1)),ti(s))}function fR(s,u,f){if((nn&6)!==0)throw Error(r(327));var m=!f&&(u&127)===0&&(u&s.expiredLanes)===0||jn(s,u),_=m?p8(s,u):RE(s,u,!0),w=m;do{if(_===0){Yc&&!m&&Es(s,u,0,!1);break}else{if(f=s.current.alternate,w&&!d8(f)){_=RE(s,u,!1),w=!1;continue}if(_===2){if(w=u,s.errorRecoveryDisabledLanes&w)var R=0;else R=s.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){u=R;e:{var $=s;_=pf;var Z=$.current.memoizedState.isDehydrated;if(Z&&(Kc($,R).flags|=256),R=RE($,R,!1),R!==2){if(wE&&!Z){$.errorRecoveryDisabledLanes|=w,Rl|=w,_=4;break e}w=Ea,Ea=_,w!==null&&(Ea===null?Ea=w:Ea.push.apply(Ea,w))}_=R}if(w=!1,_!==2)continue}}if(_===1){Kc(s,0),Es(s,u,0,!0);break}e:{switch(m=s,w=_,w){case 0:case 1:throw Error(r(345));case 4:if((u&4194048)!==u)break;case 6:Es(m,u,za,!ys);break e;case 2:Ea=null;break;case 3:case 5:break;default:throw Error(r(329))}if((u&62914560)===u&&(_=km+300-Re(),10<_)){if(Es(m,u,za,!ys),Mn(m,0,!0)!==0)break e;Pi=u,m.timeoutHandle=HR(pR.bind(null,m,f,Ea,Rm,SE,u,za,Rl,Wc,ys,w,"Throttled",-0,0),_);break e}pR(m,f,Ea,Rm,SE,u,za,Rl,Wc,ys,w,null,-0,0)}}break}while(!0);ti(s)}function pR(s,u,f,m,_,w,R,$,Z,pe,Te,Ae,me,ve){if(s.timeoutHandle=-1,Ae=u.subtreeFlags,Ae&8192||(Ae&16785408)===16785408){Ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ei},oR(u,w,Ae);var Xe=(w&62914560)===w?km-Re():(w&4194048)===w?cR-Re():0;if(Xe=Z8(Ae,Xe),Xe!==null){Pi=w,s.cancelPendingCommit=Xe(ER.bind(null,s,u,w,f,m,_,R,$,Z,Te,Ae,null,me,ve)),Es(s,w,R,!pe);return}}ER(s,u,w,f,m,_,R,$,Z)}function d8(s){for(var u=s;;){var f=u.tag;if((f===0||f===11||f===15)&&u.flags&16384&&(f=u.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var m=0;m<f.length;m++){var _=f[m],w=_.getSnapshot;_=_.value;try{if(!La(w(),_))return!1}catch{return!1}}if(f=u.child,u.subtreeFlags&16384&&f!==null)f.return=u,u=f;else{if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function Es(s,u,f,m){u&=~TE,u&=~Rl,s.suspendedLanes|=u,s.pingedLanes&=~u,m&&(s.warmLanes|=u),m=s.expirationTimes;for(var _=u;0<_;){var w=31-Bt(_),R=1<<w;m[w]=-1,_&=~R}f!==0&&vi(s,f,u)}function Om(){return(nn&6)===0?(mf(0),!1):!0}function NE(){if(It!==null){if(on===0)var s=It.return;else s=It,Si=El=null,V_(s),Bc=null,Kd=0,s=It;for(;s!==null;)GN(s.alternate,s),s=s.return;It=null}}function Kc(s,u){var f=s.timeoutHandle;f!==-1&&(s.timeoutHandle=-1,O8(f)),f=s.cancelPendingCommit,f!==null&&(s.cancelPendingCommit=null,f()),Pi=0,NE(),mn=s,It=f=wi(s.current,null),Mt=u,on=0,ja=null,ys=!1,Yc=jn(s,u),wE=!1,Wc=za=TE=Rl=bs=Fn=0,Ea=pf=null,SE=!1,(u&8)!==0&&(u|=u&32);var m=s.entangledLanes;if(m!==0)for(s=s.entanglements,m&=u;0<m;){var _=31-Bt(m),w=1<<_;u|=s[_],m&=~w}return $i=u,Xh(),f}function hR(s,u){xt=null,H.H=af,u===zc||u===im?(u=Rk(),on=3):u===I_?(u=Rk(),on=4):on=u===sE?8:u!==null&&typeof u=="object"&&typeof u.then=="function"?6:1,ja=u,It===null&&(Fn=1,_m(s,ao(u,s.current)))}function mR(){var s=Pa.current;return s===null?!0:(Mt&4194048)===Mt?lo===null:(Mt&62914560)===Mt||(Mt&536870912)!==0?s===lo:!1}function gR(){var s=H.H;return H.H=af,s===null?af:s}function yR(){var s=H.A;return H.A=c8,s}function Dm(){Fn=4,ys||(Mt&4194048)!==Mt&&Pa.current!==null||(Yc=!0),(bs&134217727)===0&&(Rl&134217727)===0||mn===null||Es(mn,Mt,za,!1)}function RE(s,u,f){var m=nn;nn|=2;var _=gR(),w=yR();(mn!==s||Mt!==u)&&(Rm=null,Kc(s,u)),u=!1;var R=Fn;e:do try{if(on!==0&&It!==null){var $=It,Z=ja;switch(on){case 8:NE(),R=6;break e;case 3:case 2:case 9:case 6:Pa.current===null&&(u=!0);var pe=on;if(on=0,ja=null,Qc(s,$,Z,pe),f&&Yc){R=0;break e}break;default:pe=on,on=0,ja=null,Qc(s,$,Z,pe)}}f8(),R=Fn;break}catch(Te){hR(s,Te)}while(!0);return u&&s.shellSuspendCounter++,Si=El=null,nn=m,H.H=_,H.A=w,It===null&&(mn=null,Mt=0,Xh()),R}function f8(){for(;It!==null;)bR(It)}function p8(s,u){var f=nn;nn|=2;var m=gR(),_=yR();mn!==s||Mt!==u?(Rm=null,Nm=Re()+500,Kc(s,u)):Yc=jn(s,u);e:do try{if(on!==0&&It!==null){u=It;var w=ja;t:switch(on){case 1:on=0,ja=null,Qc(s,u,w,1);break;case 2:case 9:if(kk(w)){on=0,ja=null,vR(u);break}u=function(){on!==2&&on!==9||mn!==s||(on=7),ti(s)},w.then(u,u);break e;case 3:on=7;break e;case 4:on=5;break e;case 7:kk(w)?(on=0,ja=null,vR(u)):(on=0,ja=null,Qc(s,u,w,7));break;case 5:var R=null;switch(It.tag){case 26:R=It.memoizedState;case 5:case 27:var $=It;if(R?aO(R):$.stateNode.complete){on=0,ja=null;var Z=$.sibling;if(Z!==null)It=Z;else{var pe=$.return;pe!==null?(It=pe,Im(pe)):It=null}break t}}on=0,ja=null,Qc(s,u,w,5);break;case 6:on=0,ja=null,Qc(s,u,w,6);break;case 8:NE(),Fn=6;break e;default:throw Error(r(462))}}h8();break}catch(Te){hR(s,Te)}while(!0);return Si=El=null,H.H=m,H.A=_,nn=f,It!==null?0:(mn=null,Mt=0,Xh(),Fn)}function h8(){for(;It!==null&&!be();)bR(It)}function bR(s){var u=FN(s.alternate,s,$i);s.memoizedProps=s.pendingProps,u===null?Im(s):It=u}function vR(s){var u=s,f=u.alternate;switch(u.tag){case 15:case 0:u=PN(f,u,u.pendingProps,u.type,void 0,Mt);break;case 11:u=PN(f,u,u.pendingProps,u.type.render,u.ref,Mt);break;case 5:V_(u);default:GN(f,u),u=It=yk(u,$i),u=FN(f,u,$i)}s.memoizedProps=s.pendingProps,u===null?Im(s):It=u}function Qc(s,u,f,m){Si=El=null,V_(u),Bc=null,Kd=0;var _=u.return;try{if(n8(s,_,u,f,Mt)){Fn=1,_m(s,ao(f,s.current)),It=null;return}}catch(w){if(_!==null)throw It=_,w;Fn=1,_m(s,ao(f,s.current)),It=null;return}u.flags&32768?(Vt||m===1?s=!0:Yc||(Mt&536870912)!==0?s=!1:(ys=s=!0,(m===2||m===9||m===3||m===6)&&(m=Pa.current,m!==null&&m.tag===13&&(m.flags|=16384))),_R(u,s)):Im(u)}function Im(s){var u=s;do{if((u.flags&32768)!==0){_R(u,ys);return}s=u.return;var f=o8(u.alternate,u,$i);if(f!==null){It=f;return}if(u=u.sibling,u!==null){It=u;return}It=u=s}while(u!==null);Fn===0&&(Fn=5)}function _R(s,u){do{var f=i8(s.alternate,s);if(f!==null){f.flags&=32767,It=f;return}if(f=s.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!u&&(s=s.sibling,s!==null)){It=s;return}It=s=f}while(s!==null);Fn=6,It=null}function ER(s,u,f,m,_,w,R,$,Z){s.cancelPendingCommit=null;do Lm();while(vr!==0);if((nn&6)!==0)throw Error(r(327));if(u!==null){if(u===s.current)throw Error(r(177));if(w=u.lanes|u.childLanes,w|=b_,ma(s,f,w,R,$,Z),s===mn&&(It=mn=null,Mt=0),Zc=u,_s=s,Pi=f,CE=w,AE=_,uR=m,(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,b8(Ie,function(){return CR(),null})):(s.callbackNode=null,s.callbackPriority=0),m=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||m){m=H.T,H.T=null,_=re.p,re.p=2,R=nn,nn|=4;try{s8(s,u,f)}finally{nn=R,re.p=_,H.T=m}}vr=1,xR(),wR(),TR()}}function xR(){if(vr===1){vr=0;var s=_s,u=Zc,f=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||f){f=H.T,H.T=null;var m=re.p;re.p=2;var _=nn;nn|=4;try{nR(u,s);var w=FE,R=lk(s.containerInfo),$=w.focusedElem,Z=w.selectionRange;if(R!==$&&$&&$.ownerDocument&&sk($.ownerDocument.documentElement,$)){if(Z!==null&&p_($)){var pe=Z.start,Te=Z.end;if(Te===void 0&&(Te=pe),"selectionStart"in $)$.selectionStart=pe,$.selectionEnd=Math.min(Te,$.value.length);else{var Ae=$.ownerDocument||document,me=Ae&&Ae.defaultView||window;if(me.getSelection){var ve=me.getSelection(),Xe=$.textContent.length,mt=Math.min(Z.start,Xe),fn=Z.end===void 0?mt:Math.min(Z.end,Xe);!ve.extend&&mt>fn&&(R=fn,fn=mt,mt=R);var se=ik($,mt),te=ik($,fn);if(se&&te&&(ve.rangeCount!==1||ve.anchorNode!==se.node||ve.anchorOffset!==se.offset||ve.focusNode!==te.node||ve.focusOffset!==te.offset)){var fe=Ae.createRange();fe.setStart(se.node,se.offset),ve.removeAllRanges(),mt>fn?(ve.addRange(fe),ve.extend(te.node,te.offset)):(fe.setEnd(te.node,te.offset),ve.addRange(fe))}}}}for(Ae=[],ve=$;ve=ve.parentNode;)ve.nodeType===1&&Ae.push({element:ve,left:ve.scrollLeft,top:ve.scrollTop});for(typeof $.focus=="function"&&$.focus(),$=0;$<Ae.length;$++){var Se=Ae[$];Se.element.scrollLeft=Se.left,Se.element.scrollTop=Se.top}}qm=!!UE,FE=UE=null}finally{nn=_,re.p=m,H.T=f}}s.current=u,vr=2}}function wR(){if(vr===2){vr=0;var s=_s,u=Zc,f=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||f){f=H.T,H.T=null;var m=re.p;re.p=2;var _=nn;nn|=4;try{QN(s,u.alternate,u)}finally{nn=_,re.p=m,H.T=f}}vr=3}}function TR(){if(vr===4||vr===3){vr=0,Fe();var s=_s,u=Zc,f=Pi,m=uR;(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?vr=5:(vr=0,Zc=_s=null,SR(s,s.pendingLanes));var _=s.pendingLanes;if(_===0&&(vs=null),Le(f),u=u.stateNode,zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(Cn,u,void 0,(u.current.flags&128)===128)}catch{}if(m!==null){u=H.T,_=re.p,re.p=2,H.T=null;try{for(var w=s.onRecoverableError,R=0;R<m.length;R++){var $=m[R];w($.value,{componentStack:$.stack})}}finally{H.T=u,re.p=_}}(Pi&3)!==0&&Lm(),ti(s),_=s.pendingLanes,(f&261930)!==0&&(_&42)!==0?s===kE?hf++:(hf=0,kE=s):hf=0,mf(0)}}function SR(s,u){(s.pooledCacheLanes&=u)===0&&(u=s.pooledCache,u!=null&&(s.pooledCache=null,Wd(u)))}function Lm(){return xR(),wR(),TR(),CR()}function CR(){if(vr!==5)return!1;var s=_s,u=CE;CE=0;var f=Le(Pi),m=H.T,_=re.p;try{re.p=32>f?32:f,H.T=null,f=AE,AE=null;var w=_s,R=Pi;if(vr=0,Zc=_s=null,Pi=0,(nn&6)!==0)throw Error(r(331));var $=nn;if(nn|=4,sR(w.current),aR(w,w.current,R,f),nn=$,mf(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(Cn,w)}catch{}return!0}finally{re.p=_,H.T=m,SR(s,u)}}function AR(s,u,f){u=ao(f,u),u=iE(s.stateNode,u,2),s=ps(s,u,2),s!==null&&(Wr(s,2),ti(s))}function sn(s,u,f){if(s.tag===3)AR(s,s,f);else for(;u!==null;){if(u.tag===3){AR(u,s,f);break}else if(u.tag===1){var m=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(vs===null||!vs.has(m))){s=ao(f,s),f=kN(2),m=ps(u,f,2),m!==null&&(NN(f,m,u,s),Wr(m,2),ti(m));break}}u=u.return}}function OE(s,u,f){var m=s.pingCache;if(m===null){m=s.pingCache=new u8;var _=new Set;m.set(u,_)}else _=m.get(u),_===void 0&&(_=new Set,m.set(u,_));_.has(f)||(wE=!0,_.add(f),s=m8.bind(null,s,u,f),u.then(s,s))}function m8(s,u,f){var m=s.pingCache;m!==null&&m.delete(u),s.pingedLanes|=s.suspendedLanes&f,s.warmLanes&=~f,mn===s&&(Mt&f)===f&&(Fn===4||Fn===3&&(Mt&62914560)===Mt&&300>Re()-km?(nn&2)===0&&Kc(s,0):TE|=f,Wc===Mt&&(Wc=0)),ti(s)}function kR(s,u){u===0&&(u=br()),s=bl(s,u),s!==null&&(Wr(s,u),ti(s))}function g8(s){var u=s.memoizedState,f=0;u!==null&&(f=u.retryLane),kR(s,f)}function y8(s,u){var f=0;switch(s.tag){case 31:case 13:var m=s.stateNode,_=s.memoizedState;_!==null&&(f=_.retryLane);break;case 19:m=s.stateNode;break;case 22:m=s.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(u),kR(s,f)}function b8(s,u){return Y(s,u)}var $m=null,Xc=null,DE=!1,Pm=!1,IE=!1,xs=0;function ti(s){s!==Xc&&s.next===null&&(Xc===null?$m=Xc=s:Xc=Xc.next=s),Pm=!0,DE||(DE=!0,_8())}function mf(s,u){if(!IE&&Pm){IE=!0;do for(var f=!1,m=$m;m!==null;){if(s!==0){var _=m.pendingLanes;if(_===0)var w=0;else{var R=m.suspendedLanes,$=m.pingedLanes;w=(1<<31-Bt(42|s)+1)-1,w&=_&~(R&~$),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(f=!0,DR(m,w))}else w=Mt,w=Mn(m,m===mn?w:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(w&3)===0||jn(m,w)||(f=!0,DR(m,w));m=m.next}while(f);IE=!1}}function v8(){NR()}function NR(){Pm=DE=!1;var s=0;xs!==0&&R8()&&(s=xs);for(var u=Re(),f=null,m=$m;m!==null;){var _=m.next,w=RR(m,u);w===0?(m.next=null,f===null?$m=_:f.next=_,_===null&&(Xc=f)):(f=m,(s!==0||(w&3)!==0)&&(Pm=!0)),m=_}vr!==0&&vr!==5||mf(s),xs!==0&&(xs=0)}function RR(s,u){for(var f=s.suspendedLanes,m=s.pingedLanes,_=s.expirationTimes,w=s.pendingLanes&-62914561;0<w;){var R=31-Bt(w),$=1<<R,Z=_[R];Z===-1?(($&f)===0||($&m)!==0)&&(_[R]=Da($,u)):Z<=u&&(s.expiredLanes|=$),w&=~$}if(u=mn,f=Mt,f=Mn(s,s===u?f:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),m=s.callbackNode,f===0||s===u&&(on===2||on===9)||s.cancelPendingCommit!==null)return m!==null&&m!==null&&oe(m),s.callbackNode=null,s.callbackPriority=0;if((f&3)===0||jn(s,f)){if(u=f&-f,u===s.callbackPriority)return u;switch(m!==null&&oe(m),Le(f)){case 2:case 8:f=we;break;case 32:f=Ie;break;case 268435456:f=yt;break;default:f=Ie}return m=OR.bind(null,s),f=Y(f,m),s.callbackPriority=u,s.callbackNode=f,u}return m!==null&&m!==null&&oe(m),s.callbackPriority=2,s.callbackNode=null,2}function OR(s,u){if(vr!==0&&vr!==5)return s.callbackNode=null,s.callbackPriority=0,null;var f=s.callbackNode;if(Lm()&&s.callbackNode!==f)return null;var m=Mt;return m=Mn(s,s===mn?m:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),m===0?null:(fR(s,m,u),RR(s,Re()),s.callbackNode!=null&&s.callbackNode===f?OR.bind(null,s):null)}function DR(s,u){if(Lm())return null;fR(s,u,!0)}function _8(){D8(function(){(nn&6)!==0?Y(ie,v8):NR()})}function LE(){if(xs===0){var s=Mc;s===0&&(s=Nt,Nt<<=1,(Nt&261888)===0&&(Nt=256)),xs=s}return xs}function IR(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:Gh(""+s)}function LR(s,u){var f=u.ownerDocument.createElement("input");return f.name=u.name,f.value=u.value,s.id&&f.setAttribute("form",s.id),u.parentNode.insertBefore(f,u),s=new FormData(s),f.parentNode.removeChild(f),s}function E8(s,u,f,m,_){if(u==="submit"&&f&&f.stateNode===_){var w=IR((_[Ke]||null).action),R=m.submitter;R&&(u=(u=R[Ke]||null)?IR(u.formAction):R.getAttribute("formAction"),u!==null&&(w=u,R=null));var $=new Wh("action","action",null,m,_);s.push({event:$,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(xs!==0){var Z=R?LR(_,R):new FormData(_);eE(f,{pending:!0,data:Z,method:_.method,action:w},null,Z)}}else typeof w=="function"&&($.preventDefault(),Z=R?LR(_,R):new FormData(_),eE(f,{pending:!0,data:Z,method:_.method,action:w},w,Z))},currentTarget:_}]})}}for(var $E=0;$E<y_.length;$E++){var PE=y_[$E],x8=PE.toLowerCase(),w8=PE[0].toUpperCase()+PE.slice(1);Io(x8,"on"+w8)}Io(dk,"onAnimationEnd"),Io(fk,"onAnimationIteration"),Io(pk,"onAnimationStart"),Io("dblclick","onDoubleClick"),Io("focusin","onFocus"),Io("focusout","onBlur"),Io(z9,"onTransitionRun"),Io(B9,"onTransitionStart"),Io(U9,"onTransitionCancel"),Io(hk,"onTransitionEnd"),to("onMouseEnter",["mouseout","mouseover"]),to("onMouseLeave",["mouseout","mouseover"]),to("onPointerEnter",["pointerout","pointerover"]),to("onPointerLeave",["pointerout","pointerover"]),Oo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Oo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Oo("onBeforeInput",["compositionend","keypress","textInput","paste"]),Oo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Oo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Oo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gf="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(" "),T8=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gf));function $R(s,u){u=(u&4)!==0;for(var f=0;f<s.length;f++){var m=s[f],_=m.event;m=m.listeners;e:{var w=void 0;if(u)for(var R=m.length-1;0<=R;R--){var $=m[R],Z=$.instance,pe=$.currentTarget;if($=$.listener,Z!==w&&_.isPropagationStopped())break e;w=$,_.currentTarget=pe;try{w(_)}catch(Te){Qh(Te)}_.currentTarget=null,w=Z}else for(R=0;R<m.length;R++){if($=m[R],Z=$.instance,pe=$.currentTarget,$=$.listener,Z!==w&&_.isPropagationStopped())break e;w=$,_.currentTarget=pe;try{w(_)}catch(Te){Qh(Te)}_.currentTarget=null,w=Z}}}}function Lt(s,u){var f=u[ht];f===void 0&&(f=u[ht]=new Set);var m=s+"__bubble";f.has(m)||(PR(u,s,2,!1),f.add(m))}function ME(s,u,f){var m=0;u&&(m|=4),PR(f,s,m,u)}
vendor: 3,558 bytes, line 815
815var Mm="_reactListening"+Math.random().toString(36).slice(2);function jE(s){if(!s[Mm]){s[Mm]=!0,Ro.forEach(function(f){f!=="selectionchange"&&(T8.has(f)||ME(f,!1,s),ME(f,!0,s))});var u=s.nodeType===9?s:s.ownerDocument;u===null||u[Mm]||(u[Mm]=!0,ME("selectionchange",!1,u))}}function PR(s,u,f,m){switch(dO(u)){case 2:var _=X8;break;case 8:_=J8;break;default:_=JE}f=_.bind(null,u,f,s),_=void 0,!a_||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(_=!0),m?_!==void 0?s.addEventListener(u,f,{capture:!0,passive:_}):s.addEventListener(u,f,!0):_!==void 0?s.addEventListener(u,f,{passive:_}):s.addEventListener(u,f,!1)}function zE(s,u,f,m,_){var w=m;if((u&1)===0&&(u&2)===0&&m!==null)e:for(;;){if(m===null)return;var R=m.tag;if(R===3||R===4){var $=m.stateNode.containerInfo;if($===_)break;if(R===4)for(R=m.return;R!==null;){var Z=R.tag;if((Z===3||Z===4)&&R.stateNode.containerInfo===_)return;R=R.return}for(;$!==null;){if(R=Bn($),R===null)return;if(Z=R.tag,Z===5||Z===6||Z===26||Z===27){m=w=R;continue e}$=$.parentNode}}m=m.return}UA(function(){var pe=w,Te=n_(f),Ae=[];e:{var me=mk.get(s);if(me!==void 0){var ve=Wh,Xe=s;switch(s){case"keypress":if(qh(f)===0)break e;case"keydown":case"keyup":ve=y9;break;case"focusin":Xe="focus",ve=l_;break;case"focusout":Xe="blur",ve=l_;break;case"beforeblur":case"afterblur":ve=l_;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ve=GA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ve=o9;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ve=_9;break;case dk:case fk:case pk:ve=l9;break;case hk:ve=x9;break;case"scroll":case"scrollend":ve=r9;break;case"wheel":ve=T9;break;case"copy":case"cut":case"paste":ve=u9;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ve=qA;break;case"toggle":case"beforetoggle":ve=C9}var mt=(u&4)!==0,fn=!mt&&(s==="scroll"||s==="scrollend"),se=mt?me!==null?me+"Capture":null:me;mt=[];for(var te=pe,fe;te!==null;){var Se=te;if(fe=Se.stateNode,Se=Se.tag,Se!==5&&Se!==26&&Se!==27||fe===null||se===null||(Se=Md(te,se),Se!=null&&mt.push(yf(te,Se,fe))),fn)break;te=te.return}0<mt.length&&(me=new ve(me,Xe,null,f,Te),Ae.push({event:me,listeners:mt}))}}if((u&7)===0){e:{if(me=s==="mouseover"||s==="pointerover",ve=s==="mouseout"||s==="pointerout",me&&f!==t_&&(Xe=f.relatedTarget||f.fromElement)&&(Bn(Xe)||Xe[at]))break e;if((ve||me)&&(me=Te.window===Te?Te:(me=Te.ownerDocument)?me.defaultView||me.parentWindow:window,ve?(Xe=f.relatedTarget||f.toElement,ve=pe,Xe=Xe?Bn(Xe):null,Xe!==null&&(fn=o(Xe),mt=Xe.tag,Xe!==fn||mt!==5&&mt!==27&&mt!==6)&&(Xe=null)):(ve=null,Xe=pe),ve!==Xe)){if(mt=GA,Se="onMouseLeave",se="onMouseEnter",te="mouse",(s==="pointerout"||s==="pointerover")&&(mt=qA,Se="onPointerLeave",se="onPointerEnter",te="pointer"),fn=ve==null?me:Rr(ve),fe=Xe==null?me:Rr(Xe),me=new mt(Se,te+"leave",ve,f,Te),me.target=fn,me.relatedTarget=fe,Se=null,Bn(Te)===pe&&(mt=new mt(se,te+"enter",Xe,f,Te),mt.target=fe,mt.relatedTarget=fn,Se=mt),fn=Se,ve&&Xe)t:{for(mt=S8,se=ve,te=Xe,fe=0,Se=se;Se;Se=mt(Se))fe++;Se=0;for(var ct=te;ct;ct=mt(ct))Se++;for(;0<fe-Se;)se=mt(se),fe--;for(;0<Se-fe;)te=mt(te),Se--;for(;fe--;){if(se===te||te!==null&&se===te.alternate){mt=se;break t}se=mt(se),te=mt(te)}mt=null}else mt=null;ve!==null&&MR(Ae,me,ve,mt,!1),Xe!==null&&fn!==null&&MR(Ae,fn,Xe,mt,!0)}}
vendor: 5,244 bytes, lines 815-816
815e:{if(me=pe?Rr(pe):window,ve=me.nodeName&&me.nodeName.toLowerCase(),ve==="select"||ve==="input"&&me.type==="file")var Qt=ek;else if(XA(me))if(tk)Qt=P9;else{Qt=L9;var tt=I9}else ve=me.nodeName,!ve||ve.toLowerCase()!=="input"||me.type!=="checkbox"&&me.type!=="radio"?pe&&e_(pe.elementType)&&(Qt=ek):Qt=$9;if(Qt&&(Qt=Qt(s,pe))){JA(Ae,Qt,f,Te);break e}tt&&tt(s,me,pe),s==="focusout"&&pe&&me.type==="number"&&pe.memoizedProps.value!=null&&Jv(me,"number",me.value)}switch(tt=pe?Rr(pe):window,s){case"focusin":(XA(tt)||tt.contentEditable==="true")&&(Nc=tt,h_=pe,Vd=null);break;case"focusout":Vd=h_=Nc=null;break;case"mousedown":m_=!0;break;case"contextmenu":case"mouseup":case"dragend":m_=!1,ck(Ae,f,Te);break;case"selectionchange":if(j9)break;case"keydown":case"keyup":ck(Ae,f,Te)}var Ct;if(u_)e:{switch(s){case"compositionstart":var jt="onCompositionStart";break e;case"compositionend":jt="onCompositionEnd";break e;case"compositionupdate":jt="onCompositionUpdate";break e}jt=void 0}else kc?KA(s,f)&&(jt="onCompositionEnd"):s==="keydown"&&f.keyCode===229&&(jt="onCompositionStart");jt&&(YA&&f.locale!=="ko"&&(kc||jt!=="onCompositionStart"?jt==="onCompositionEnd"&&kc&&(Ct=FA()):(is=Te,o_="value"in is?is.value:is.textContent,kc=!0)),tt=jm(pe,jt),0<tt.length&&(jt=new VA(jt,s,null,f,Te),Ae.push({event:jt,listeners:tt}),Ct?jt.data=Ct:(Ct=QA(f),Ct!==null&&(jt.data=Ct)))),(Ct=k9?N9(s,f):R9(s,f))&&(jt=jm(pe,"onBeforeInput"),0<jt.length&&(tt=new VA("onBeforeInput","beforeinput",null,f,Te),Ae.push({event:tt,listeners:jt}),tt.data=Ct)),E8(Ae,s,pe,f,Te)}$R(Ae,u)})}function yf(s,u,f){return{instance:s,listener:u,currentTarget:f}}function jm(s,u){for(var f=u+"Capture",m=[];s!==null;){var _=s,w=_.stateNode;if(_=_.tag,_!==5&&_!==26&&_!==27||w===null||(_=Md(s,f),_!=null&&m.unshift(yf(s,_,w)),_=Md(s,u),_!=null&&m.push(yf(s,_,w))),s.tag===3)return m;s=s.return}return[]}function S8(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function MR(s,u,f,m,_){for(var w=u._reactName,R=[];f!==null&&f!==m;){var $=f,Z=$.alternate,pe=$.stateNode;if($=$.tag,Z!==null&&Z===m)break;$!==5&&$!==26&&$!==27||pe===null||(Z=pe,_?(pe=Md(f,w),pe!=null&&R.unshift(yf(f,pe,Z))):_||(pe=Md(f,w),pe!=null&&R.push(yf(f,pe,Z)))),f=f.return}R.length!==0&&s.push({event:u,listeners:R})}var C8=/\r\n?/g,A8=/\u0000|\uFFFD/g;function jR(s){return(typeof s=="string"?s:""+s).replace(C8,` 816`).replace(A8,"")}function zR(s,u){return u=jR(u),jR(s)===u}function dn(s,u,f,m,_,w){switch(f){case"children":typeof m=="string"?u==="body"||u==="textarea"&&m===""||Sc(s,m):(typeof m=="number"||typeof m=="bigint")&&u!=="body"&&Sc(s,""+m);break;case"className":Do(s,"class",m);break;case"tabIndex":Do(s,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Do(s,f,m);break;case"style":zA(s,m,w);break;case"data":if(u!=="object"){Do(s,"data",m);break}case"src":case"href":if(m===""&&(u!=="a"||f!=="href")){s.removeAttribute(f);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){s.removeAttribute(f);break}m=Gh(""+m),s.setAttribute(f,m);break;case"action":case"formAction":if(typeof m=="function"){s.setAttribute(f,"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 w=="function"&&(f==="formAction"?(u!=="input"&&dn(s,u,"name",_.name,_,null),dn(s,u,"formEncType",_.formEncType,_,null),dn(s,u,"formMethod",_.formMethod,_,null),dn(s,u,"formTarget",_.formTarget,_,null)):(dn(s,u,"encType",_.encType,_,null),dn(s,u,"method",_.method,_,null),dn(s,u,"target",_.target,_,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){s.removeAttribute(f);break}m=Gh(""+m),s.setAttribute(f,m);break;case"onClick":m!=null&&(s.onclick=Ei);break;case"onScroll":m!=null&&Lt("scroll",s);break;case"onScrollEnd":m!=null&&Lt("scrollend",s);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(f=m.__html,f!=null){if(_.children!=null)throw Error(r(60));s.innerHTML=f}}break;case"multiple":s.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":s.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){s.removeAttribute("xlink:href");break}f=Gh(""+m),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?s.setAttribute(f,""+m):s.removeAttribute(f);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"playsInl
816ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?s.setAttribute(f,""):s.removeAttribute(f);break;case"capture":case"download":m===!0?s.setAttribute(f,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?s.setAttribute(f,m):s.removeAttribute(f);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?s.setAttribute(f,m):s.removeAttribute(f);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?s.removeAttribute(f):s.setAttribute(f,m);break;case"popover":Lt("beforetoggle",s),Lt("toggle",s),Vn(s,"popover",m);break;case"xlinkActuate":Br(s,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Br(s,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Br(s,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Br(s,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Br(s,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Br(s,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Br(s,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Br(s,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Br(s,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Vn(s,"is",m);break;case"innerText":case"textContent":break;default:(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=t9.get(f)||f,Vn(s,f,m))}}function BE(s,u,f,m,_,w){switch(f){case"style":zA(s,m,w);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(f=m.__html,f!=null){if(_.children!=null)throw Error(r(60));s.innerHTML=f}}break;case"children":typeof m=="string"?Sc(s,m):(typeof m=="number"||typeof m=="bigint")&&Sc(s,""+m);break;case"onScroll":m!=null&&Lt("scroll",s);break;case"onScrollEnd":m!=null&&Lt("scrollend",s);break;case"onClick":m!=null&&(s.onclick=Ei);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ia.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(_=f.endsWith("Capture"),u=f.slice(2,_?f.length-7:void 0),w=s[Ke]||null,w=w!=null?w[f]:null,typeof w=="function"&&s.removeEventListener(u,w,_),typeof m=="function")){typeof w!="function"&&w!==null&&(f in s?s[f]=null:s.hasAttribute(f)&&s.removeAttribute(f)),s.addEventListener(u,m,_);break e}f in s?s[f]=m:m===!0?s.setAttribute(f,""):Vn(s,f,m)}}}function Gr(s,u,f){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Lt("error",s),Lt("load",s);var m=!1,_=!1,w;for(w in f)if(f.hasOwnProperty(w)){var R=f[w];if(R!=null)switch(w){case"src":m=!0;break;case"srcSet":_=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:dn(s,u,w,R,f,null)}}_&&dn(s,u,"srcSet",f.srcSet,f,null),m&&dn(s,u,"src",f.src,f,null);return;case"input":Lt("invalid",s);var $=w=R=_=null,Z=null,pe=null;for(m in f)if(f.hasOwnProperty(m)){var Te=f[m];if(Te!=null)switch(m){case"name":_=Te;break;case"type":R=Te;break;case"checked":Z=Te;break;case"defaultChecked":pe=Te;break;case"value":w=Te;break;case"defaultValue":$=Te;break;case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(r(137,u));break;default:dn(s,u,m,Te,f,null)}}$A(s,w,$,Z,pe,R,_,!1);return;case"select":Lt("invalid",s),m=R=w=null;for(_ in f)if(f.hasOwnProperty(_)&&($=f[_],$!=null))switch(_){case"value":w=$;break;case"defaultValue":R=$;break;case"multiple":m=$;default:dn(s,u,_,$,f,null)}u=w,f=R,s.multiple=!!m,u!=null?Tc(s,!!m,u,!1):f!=null&&Tc(s,!!m,f,!0);return;case"textarea":Lt("invalid",s),w=_=m=null;for(R in f)if(f.hasOwnProperty(R)&&($=f[R],$!=null))switch(R){case"value":m=$;break;case"defaultValue":_=$;break;case"children":w=$;break;case"dangerouslySetInnerHTML":if($!=null)throw Error(r(91));break;default:dn(s,u,R,$,f,null)}MA(s,m,_,w);return;case"option":for(Z in f)if(f.hasOwnProperty(Z)&&(m=f[Z],m!=null))switch(Z){case"selected":s.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:dn(s,u,Z,m,f,null)}return;case"dialog":Lt("beforetoggle",s),Lt("toggle",s),Lt("cancel",s),Lt("close",s
vendor: 5,839 bytes, line 816
816);break;case"iframe":case"object":Lt("load",s);break;case"video":case"audio":for(m=0;m<gf.length;m++)Lt(gf[m],s);break;case"image":Lt("error",s),Lt("load",s);break;case"details":Lt("toggle",s);break;case"embed":case"source":case"link":Lt("error",s),Lt("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(pe in f)if(f.hasOwnProperty(pe)&&(m=f[pe],m!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:dn(s,u,pe,m,f,null)}return;default:if(e_(u)){for(Te in f)f.hasOwnProperty(Te)&&(m=f[Te],m!==void 0&&BE(s,u,Te,m,f,void 0));return}}for($ in f)f.hasOwnProperty($)&&(m=f[$],m!=null&&dn(s,u,$,m,f,null))}function k8(s,u,f,m){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var _=null,w=null,R=null,$=null,Z=null,pe=null,Te=null;for(ve in f){var Ae=f[ve];if(f.hasOwnProperty(ve)&&Ae!=null)switch(ve){case"checked":break;case"value":break;case"defaultValue":Z=Ae;default:m.hasOwnProperty(ve)||dn(s,u,ve,null,m,Ae)}}for(var me in m){var ve=m[me];if(Ae=f[me],m.hasOwnProperty(me)&&(ve!=null||Ae!=null))switch(me){case"type":w=ve;break;case"name":_=ve;break;case"checked":pe=ve;break;case"defaultChecked":Te=ve;break;case"value":R=ve;break;case"defaultValue":$=ve;break;case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(r(137,u));break;default:ve!==Ae&&dn(s,u,me,ve,m,Ae)}}Xv(s,R,$,Z,pe,Te,w,_);return;case"select":ve=R=$=me=null;for(w in f)if(Z=f[w],f.hasOwnProperty(w)&&Z!=null)switch(w){case"value":break;case"multiple":ve=Z;default:m.hasOwnProperty(w)||dn(s,u,w,null,m,Z)}for(_ in m)if(w=m[_],Z=f[_],m.hasOwnProperty(_)&&(w!=null||Z!=null))switch(_){case"value":me=w;break;case"defaultValue":$=w;break;case"multiple":R=w;default:w!==Z&&dn(s,u,_,w,m,Z)}u=$,f=R,m=ve,me!=null?Tc(s,!!f,me,!1):!!m!=!!f&&(u!=null?Tc(s,!!f,u,!0):Tc(s,!!f,f?[]:"",!1));return;case"textarea":ve=me=null;for($ in f)if(_=f[$],f.hasOwnProperty($)&&_!=null&&!m.hasOwnProperty($))switch($){case"value":break;case"children":break;default:dn(s,u,$,null,m,_)}for(R in m)if(_=m[R],w=f[R],m.hasOwnProperty(R)&&(_!=null||w!=null))switch(R){case"value":me=_;break;case"defaultValue":ve=_;break;case"children":break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(91));break;default:_!==w&&dn(s,u,R,_,m,w)}PA(s,me,ve);return;case"option":for(var Xe in f)if(me=f[Xe],f.hasOwnProperty(Xe)&&me!=null&&!m.hasOwnProperty(Xe))switch(Xe){case"selected":s.selected=!1;break;default:dn(s,u,Xe,null,m,me)}for(Z in m)if(me=m[Z],ve=f[Z],m.hasOwnProperty(Z)&&me!==ve&&(me!=null||ve!=null))switch(Z){case"selected":s.selected=me&&typeof me!="function"&&typeof me!="symbol";break;default:dn(s,u,Z,me,m,ve)}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 mt in f)me=f[mt],f.hasOwnProperty(mt)&&me!=null&&!m.hasOwnProperty(mt)&&dn(s,u,mt,null,m,me);for(pe in m)if(me=m[pe],ve=f[pe],m.hasOwnProperty(pe)&&me!==ve&&(me!=null||ve!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":if(me!=null)throw Error(r(137,u));break;default:dn(s,u,pe,me,m,ve)}return;default:if(e_(u)){for(var fn in f)me=f[fn],f.hasOwnProperty(fn)&&me!==void 0&&!m.hasOwnProperty(fn)&&BE(s,u,fn,void 0,m,me);for(Te in m)me=m[Te],ve=f[Te],!m.hasOwnProperty(Te)||me===ve||me===void 0&&ve===void 0||BE(s,u,Te,me,m,ve);return}}for(var se in f)me=f[se],f.hasOwnProperty(se)&&me!=null&&!m.hasOwnProperty(se)&&dn(s,u,se,null,m,me);for(Ae in m)me=m[Ae],ve=f[Ae],!m.hasOwnProperty(Ae)||me===ve||me==null&&ve==null||dn(s,u,Ae,me,m,ve)}function BR(s){switch(s){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function N8(){if(typeof performance.getEntriesByType=="function"){for(var s=0,u=0,f=performance.getEntriesByType("resource"),m=0;m<f.length;m++){var _=f[m],w=_.transferSize,R=_.initiatorType,$=_.duration;if(w&&$&&BR(R)){for(R=0,$=_.responseEnd,m+=1;m<f.length;m++){var Z=f[m],pe=Z.startTime;if(pe>$)break;var Te=Z.transferSize,Ae=Z.initiatorType;Te&&BR(Ae)&&(Z=Z.responseEnd,R+=Te*(Z<$?1:($-pe)/(Z-pe)))}if(--m,u+=8*(w+R)/(_.duration/1e3),s++,10<s)break}}if(0<s)return u/s/1e6}return navigator.connection&&(s=navigator.connection.downlink,typeof s=="number")?s:5}var UE=null,FE=null;function zm(s){return s.nodeType===9?s:s.ownerDocument}function UR(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function FR(s,u){if(s===0)switch(u){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&u==="foreignObject"?0:s}function HE(s,u){return s==="textarea"||s==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.children=="bigint"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var GE=null;function R8(){var s=window.event;return s&&s.type==="popstate"?s===GE?!1:(GE=s,!0):(GE=null,!1)}var HR=typeof setTimeout=="function"?setTimeout:void 0,O8=typeof clearTimeout=="function"?clearTimeout:void 0,GR=typeof Promise=="function"?Promise:void 0,D8=typeof queueMicrotask=="function"?queueMicrotask:typeof GR<"u"?function(s){return GR.resolve(null).then(s).catch(I8)}:HR;function I8(s){setTimeout(function(){throw s})}function ws(s){return s==="head"}function VR(s,u){var f=u,m=0;do{var _=f.nextSibling;if(s.removeChild(f),_&&_.nodeType===8)if(f=_.data,f==="/$"||f==="/&"){if(m===0){s.removeChild(_),nu(u);return}m--}else if(f==="$"||f==="$?"||f==="$~"||f==="$!"||f==="&")m++;else if(f==="html")bf(s.ownerDocument.documentElement);else if(f==="head"){f=s.ownerDocument.head,bf(f);for(var w=f.firstChild;w;){var R=w.nextSibling,$=w.nodeName;
vendor: 13,130 bytes, line 816
816w[Dn]||$==="SCRIPT"||$==="STYLE"||$==="LINK"&&w.rel.toLowerCase()==="stylesheet"||f.removeChild(w),w=R}}else f==="body"&&bf(s.ownerDocument.body);f=_}while(f);nu(u)}function qR(s,u){var f=s;s=0;do{var m=f.nextSibling;if(f.nodeType===1?u?(f._stashedDisplay=f.style.display,f.style.display="none"):(f.style.display=f._stashedDisplay||"",f.getAttribute("style")===""&&f.removeAttribute("style")):f.nodeType===3&&(u?(f._stashedText=f.nodeValue,f.nodeValue=""):f.nodeValue=f._stashedText||""),m&&m.nodeType===8)if(f=m.data,f==="/$"){if(s===0)break;s--}else f!=="$"&&f!=="$?"&&f!=="$~"&&f!=="$!"||s++;f=m}while(f)}function VE(s){var u=s.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var f=u;switch(u=u.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":VE(f),zn(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}s.removeChild(f)}}function L8(s,u,f,m){for(;s.nodeType===1;){var _=f;if(s.nodeName.toLowerCase()!==u.toLowerCase()){if(!m&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(m){if(!s[Dn])switch(u){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(w=s.getAttribute("rel"),w==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(w!==_.rel||s.getAttribute("href")!==(_.href==null||_.href===""?null:_.href)||s.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin)||s.getAttribute("title")!==(_.title==null?null:_.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(w=s.getAttribute("src"),(w!==(_.src==null?null:_.src)||s.getAttribute("type")!==(_.type==null?null:_.type)||s.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin))&&w&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(u==="input"&&s.type==="hidden"){var w=_.name==null?null:""+_.name;if(_.type==="hidden"&&s.getAttribute("name")===w)return s}else return s;if(s=co(s.nextSibling),s===null)break}return null}function $8(s,u,f){if(u==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!f||(s=co(s.nextSibling),s===null))return null;return s}function YR(s,u){for(;s.nodeType!==8;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!u||(s=co(s.nextSibling),s===null))return null;return s}function qE(s){return s.data==="$?"||s.data==="$~"}function YE(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState!=="loading"}function P8(s,u){var f=s.ownerDocument;if(s.data==="$~")s._reactRetry=u;else if(s.data!=="$?"||f.readyState!=="loading")u();else{var m=function(){u(),f.removeEventListener("DOMContentLoaded",m)};f.addEventListener("DOMContentLoaded",m),s._reactRetry=m}}function co(s){for(;s!=null;s=s.nextSibling){var u=s.nodeType;if(u===1||u===3)break;if(u===8){if(u=s.data,u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"||u==="F!"||u==="F")break;if(u==="/$"||u==="/&")return null}}return s}var WE=null;function WR(s){s=s.nextSibling;for(var u=0;s;){if(s.nodeType===8){var f=s.data;if(f==="/$"||f==="/&"){if(u===0)return co(s.nextSibling);u--}else f!=="$"&&f!=="$!"&&f!=="$?"&&f!=="$~"&&f!=="&"||u++}s=s.nextSibling}return null}function ZR(s){s=s.previousSibling;for(var u=0;s;){if(s.nodeType===8){var f=s.data;if(f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"){if(u===0)return s;u--}else f!=="/$"&&f!=="/&"||u++}s=s.previousSibling}return null}function KR(s,u,f){switch(u=zm(f),s){case"html":if(s=u.documentElement,!s)throw Error(r(452));return s;case"head":if(s=u.head,!s)throw Error(r(453));return s;case"body":if(s=u.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function bf(s){for(var u=s.attributes;u.length;)s.removeAttributeNode(u[0]);zn(s)}var uo=new Map,QR=new Set;function Bm(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var Mi=re.d;re.d={f:M8,r:j8,D:z8,C:B8,L:U8,m:F8,X:G8,S:H8,M:V8};function M8(){var s=Mi.f(),u=Om();return s||u}function j8(s){var u=Ft(s);u!==null&&u.tag===5&&u.type==="form"?hN(u):Mi.r(s)}var Jc=typeof document>"u"?null:document;function XR(s,u,f){var m=Jc;if(m&&typeof u=="string"&&u){var _=no(u);_='link[rel="'+s+'"][href="'+_+'"]',typeof f=="string"&&(_+='[crossorigin="'+f+'"]'),QR.has(_)||(QR.add(_),s={rel:s,crossOrigin:f,href:u},m.querySelector(_)===null&&(u=m.createElement("link"),Gr(u,"link",s),An(u),m.head.appendChild(u)))}}function z8(s){Mi.D(s),XR("dns-prefetch",s,null)}function B8(s,u){Mi.C(s,u),XR("preconnect",s,u)}function U8(s,u,f){Mi.L(s,u,f);var m=Jc;if(m&&s&&u){var _='link[rel="preload"][as="'+no(u)+'"]';u==="image"&&f&&f.imageSrcSet?(_+='[imagesrcset="'+no(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(_+='[imagesizes="'+no(f.imageSizes)+'"]')):_+='[href="'+no(s)+'"]';var w=_;switch(u){case"style":w=eu(s);break;case"script":w=tu(s)}uo.has(w)||(s=h({rel:"preload",href:u==="image"&&f&&f.imageSrcSet?void 0:s,as:u},f),uo.set(w,s),m.querySelector(_)!==null||u==="style"&&m.querySelector(vf(w))||u==="script"&&m.querySelector(_f(w))||(u=m.createElement("link"),Gr(u,"link",s),An(u),m.head.appendChild(u)))}}function F8(s,u){Mi.m(s,u);var f=Jc;if(f&&s){var m=u&&typeof u.as=="string"?u.as:"script",_='link[rel="modulepreload"][as="'+no(m)+'"][href="'+no(s)+'"]',w=_;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=tu(s)}if(!uo.has(w)&&(s=h({rel:"modulepreload",href:s},u),uo.set(w,s),f.querySelector(_)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(_f(w)))return}m=f.createElement("link"),Gr(m,"link",s),An(m),f.head.appendChild(m)}}}function H8(s,u,f){Mi.S(s,u,f);var m=Jc;if(m&&s){var _=ga(m).hoistableStyles,w=eu(s);u=u||"default";var R=_.get(w);if(!R){var $={loading:0,preload:null};if(R=m.querySelector(vf(w)))$.loading=5;else{s=h({rel:"stylesheet",href:s,"data-precedence":u},f),(f=uo.get(w))&&ZE(s,f);var Z=R=m.createElement("link");An(Z),Gr(Z,"link",s),Z._p=new Promise(function(pe,Te){Z.onload=pe,Z.onerror=Te}),Z.addEventListener("load",function(){$.loading|=1}),Z.addEventListener("error",function(){$.loading|=2}),$.loading|=4,Um(R,u,m)}R={type:"stylesheet",instance:R,count:1,state:$},_.set(w,R)}}}function G8(s,u){Mi.X(s,u);var f=Jc;if(f&&s){var m=ga(f).hoistableScripts,_=tu(s),w=m.get(_);w||(w=f.querySelector(_f(_)),w||(s=h({src:s,async:!0},u),(u=uo.get(_))&&KE(s,u),w=f.createElement("script"),An(w),Gr(w,"link",s),f.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},m.set(_,w))}}function V8(s,u){Mi.M(s,u);var f=Jc;if(f&&s){var m=ga(f).hoistableScripts,_=tu(s),w=m.get(_);w||(w=f.querySelector(_f(_)),w||(s=h({src:s,async:!0,type:"module"},u),(u=uo.get(_))&&KE(s,u),w=f.createElement("script"),An(w),Gr(w,"link",s),f.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},m.set(_,w))}}function JR(s,u,f,m){var _=(_=Ce.current)?Bm(_):null;if(!_)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(u=eu(f.href),f=ga(_).hoistableStyles,m=f.get(u),m||(m={type:"style",instance:null,count:0,state:null},f.set(u,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){s=eu(f.href);var w=ga(_).hoistableStyles,R=w.get(s);if(R||(_=_.ownerDocument||_,R={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},w.set(s,R),(w=_.querySelector(vf(s)))&&!w._p&&(R.instance=w,R.state.loading=5),uo.has(s)||(f={rel:"preload",as:"style",href:f.href,crossOrigin:f.crossOrigin,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy},uo.set(s,f),w||q8(_,s,f,R.state))),u&&m===null)throw Error(r(528,""));return R}if(u&&m!==null)throw Error(r(529,""));return null;case"script":return u=f.async,f=f.src,typeof f=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=tu(f),f=ga(_).hoistableScripts,m=f.get(u),m||(m={type:"script",instance:null,count:0,state:null},f.set(u,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function eu(s){return'href="'+no(s)+'"'}function vf(s){return'link[rel="stylesheet"]['+s+"]"}function eO(s){return h({},s,{"data-precedence":s.precedence,precedence:null})}function q8(s,u,f,m){s.querySelector('link[rel="preload"][as="style"]['+u+"]")?m.loading=1:(u=s.createElement("link"),m.preload=u,u.addEventListener("load",function(){return m.loading|=1}),u.addEventListener("error",function(){return m.loading|=2}),Gr(u,"link",f),An(u),s.head.appendChild(u))}function tu(s){return'[src="'+no(s)+'"]'}function _f(s){return"script[async]"+s}function tO(s,u,f){if(u.count++,u.instance===null)switch(u.type){case"style":var m=s.querySelector('style[data-href~="'+no(f.href)+'"]');if(m)return u.instance=m,An(m),m;var _=h({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return m=(s.ownerDocument||s).createElement("style"),An(m),Gr(m,"style",_),Um(m,f.precedence,s),u.instance=m;case"stylesheet":_=eu(f.href);var w=s.querySelector(vf(_));if(w)return u.state.loading|=4,u.instance=w,An(w),w;m=eO(f),(_=uo.get(_))&&ZE(m,_),w=(s.ownerDocument||s).createElement("link"),An(w);var R=w;return R._p=new Promise(function($,Z){R.onload=$,R.onerror=Z}),Gr(w,"link",m),u.state.loading|=4,Um(w,f.precedence,s),u.instance=w;case"script":return w=tu(f.src),(_=s.querySelector(_f(w)))?(u.instance=_,An(_),_):(m=f,(_=uo.get(w))&&(m=h({},f),KE(m,_)),s=s.ownerDocument||s,_=s.createElement("script"),An(_),Gr(_,"link",m),s.head.appendChild(_),u.instance=_);case"void":return null;default:throw Error(r(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(m=u.instance,u.state.loading|=4,Um(m,f.precedence,s));return u.instance}function Um(s,u,f){for(var m=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),_=m.length?m[m.length-1]:null,w=_,R=0;R<m.length;R++){var $=m[R];if($.dataset.precedence===u)w=$;else if(w!==_)break}w?w.parentNode.insertBefore(s,w.nextSibling):(u=f.nodeType===9?f.head:f,u.insertBefore(s,u.firstChild))}function ZE(s,u){s.crossOrigin==null&&(s.crossOrigin=u.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=u.referrerPolicy),s.title==null&&(s.title=u.title)}function KE(s,u){s.crossOrigin==null&&(s.crossOrigin=u.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=u.referrerPolicy),s.integrity==null&&(s.integrity=u.integrity)}var Fm=null;function nO(s,u,f){if(Fm===null){var m=new Map,_=Fm=new Map;_.set(f,m)}else _=Fm,m=_.get(f),m||(m=new Map,_.set(f,m));if(m.has(s))return m;for(m.set(s,null),f=f.getElementsByTagName(s),_=0;_<f.length;_++){var w=f[_];if(!(w[Dn]||w[Ve]||s==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!=="http://www.w3.org/2000/svg"){var R=w.getAttribute(u)||"";R=s+R;var $=m.get(R);$?$.push(w):m.set(R,[w])}}return m}function rO(s,u,f){s=s.ownerDocument||s,s.head.insertBefore(f,u==="title"?s.querySelector("head > title"):null)}function Y8(s,u,f){if(f===1||u.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;switch(u.rel){case"stylesheet":return s=u.disabled,typeof u.precedence=="string"&&s==null;default:return!0}case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function aO(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function W8(s,u,f,m){if(f.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(f.state.loading&4)===0){if(f.instance===null){var _=eu(m.href),w=u.querySelector(vf(_));if(w){u=w._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(s.count++,s=Hm.bind(s),u.then(s,s)),f.state.loading|=4,f.instance=w,An(w);return}w=u.ownerDocument||u,m=eO(m),(_=uo.get(_))&&ZE(m,_),w=w.createElement("link"),An(w);var R=w;R._p=new Promise(function($,Z){R.onload=$,R.onerror=Z}),Gr(w,"link",m),f.instance=w}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(f,u),(u=f.state.preload)&&(f.state.loading&3)===0&&(s.count++,f=Hm.bind(s),u.addEventListener("load",f),u.addEventListener("error",f))}}var QE=0;function Z8(s,u){return s.stylesheets&&s.count===0&&Vm(s,s.stylesheets),0<s.count||0<s.imgCount?function(f){var m=setTimeout(function(){if(s.stylesheets&&Vm(s,s.stylesheets),s.unsuspend){var w=s.unsuspend;s.unsuspend=null,w()}},6e4+u);0<s.imgBytes&&QE===0&&(QE=62500*N8());var _=setTimeout(function(){if(s.waitingForImages=!1,s.count===0&&(s.stylesheets&&Vm(s,s.stylesheets),s.unsuspend)){var w=s.unsuspend;s.unsuspend=null,w()}},(s.imgBytes>QE?50:800)+u);return s.unsuspend=f,function(){s.unsuspend=null,clearTimeout(m),clearTimeout(_)}}:null}function Hm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vm(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;
vendor: 9,993 bytes, line 816
816this.unsuspend=null,s()}}}var Gm=null;function Vm(s,u){s.stylesheets=null,s.unsuspend!==null&&(s.count++,Gm=new Map,u.forEach(K8,s),Gm=null,Hm.call(s))}function K8(s,u){if(!(u.state.loading&4)){var f=Gm.get(s);if(f)var m=f.get(null);else{f=new Map,Gm.set(s,f);for(var _=s.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<_.length;w++){var R=_[w];(R.nodeName==="LINK"||R.getAttribute("media")!=="not all")&&(f.set(R.dataset.precedence,R),m=R)}m&&f.set(null,m)}_=u.instance,R=_.getAttribute("data-precedence"),w=f.get(R)||m,w===m&&f.set(null,_),f.set(R,_),this.count++,m=Hm.bind(this),_.addEventListener("load",m),_.addEventListener("error",m),w?w.parentNode.insertBefore(_,w.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(_,s.firstChild)),u.state.loading|=4}}var Ef={$$typeof:k,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Q8(s,u,f,m,_,w,R,$,Z){this.tag=1,this.containerInfo=s,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=Yr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yr(0),this.hiddenUpdates=Yr(null),this.identifierPrefix=m,this.onUncaughtError=_,this.onCaughtError=w,this.onRecoverableError=R,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Z,this.incompleteTransitions=new Map}function oO(s,u,f,m,_,w,R,$,Z,pe,Te,Ae){return s=new Q8(s,u,f,R,Z,pe,Te,Ae,$),u=1,w===!0&&(u|=24),w=$a(3,null,null,u),s.current=w,w.stateNode=s,u=R_(),u.refCount++,s.pooledCache=u,u.refCount++,w.memoizedState={element:m,isDehydrated:f,cache:u},L_(w),s}function iO(s){return s?(s=Dc,s):Dc}function sO(s,u,f,m,_,w){_=iO(_),m.context===null?m.context=_:m.pendingContext=_,m=fs(u),m.payload={element:f},w=w===void 0?null:w,w!==null&&(m.callback=w),f=ps(s,m,u),f!==null&&(xa(f,s,u),Xd(f,s,u))}function lO(s,u){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var f=s.retryLane;s.retryLane=f!==0&&f<u?f:u}}function XE(s,u){lO(s,u),(s=s.alternate)&&lO(s,u)}function cO(s){if(s.tag===13||s.tag===31){var u=bl(s,67108864);u!==null&&xa(u,s,67108864),XE(s,67108864)}}function uO(s){if(s.tag===13||s.tag===31){var u=Ba();u=ye(u);var f=bl(s,u);f!==null&&xa(f,s,u),XE(s,u)}}var qm=!0;function X8(s,u,f,m){var _=H.T;H.T=null;var w=re.p;try{re.p=2,JE(s,u,f,m)}finally{re.p=w,H.T=_}}function J8(s,u,f,m){var _=H.T;H.T=null;var w=re.p;try{re.p=8,JE(s,u,f,m)}finally{re.p=w,H.T=_}}function JE(s,u,f,m){if(qm){var _=e0(m);if(_===null)zE(s,u,m,Ym,f),fO(s,m);else if(tq(_,s,u,f,m))m.stopPropagation();else if(fO(s,m),u&4&&-1<eq.indexOf(s)){for(;_!==null;){var w=Ft(_);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var R=tn(w.pendingLanes);if(R!==0){var $=w;for($.pendingLanes|=2,$.entangledLanes|=2;R;){var Z=1<<31-Bt(R);$.entanglements[1]|=Z,R&=~Z}ti(w),(nn&6)===0&&(Nm=Re()+500,mf(0))}}break;case 31:case 13:$=bl(w,2),$!==null&&xa($,w,2),Om(),XE(w,2)}if(w=e0(m),w===null&&zE(s,u,m,Ym,f),w===_)break;_=w}_!==null&&m.stopPropagation()}else zE(s,u,m,null,f)}}function e0(s){return s=n_(s),t0(s)}var Ym=null;function t0(s){if(Ym=null,s=Bn(s),s!==null){var u=o(s);if(u===null)s=null;else{var f=u.tag;if(f===13){if(s=i(u),s!==null)return s;s=null}else if(f===31){if(s=l(u),s!==null)return s;s=null}else if(f===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;s=null}else u!==s&&(s=null)}}return Ym=s,null}function dO(s){switch(s){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(Oe()){case ie:return 2;case we:return 8;case Ie:case rt:return 32;case yt:return 268435456;default:return 32}default:return 32}}var n0=!1,Ts=null,Ss=null,Cs=null,xf=new Map,wf=new Map,As=[],eq="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 fO(s,u){switch(s){case"focusin":case"focusout":Ts=null;break;case"dragenter":case"dragleave":Ss=null;break;case"mouseover":case"mouseout":Cs=null;break;case"pointerover":case"pointerout":xf.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":wf.delete(u.pointerId)}}function Tf(s,u,f,m,_,w){return s===null||s.nativeEvent!==w?(s={blockedOn:u,domEventName:f,eventSystemFlags:m,nativeEvent:w,targetContainers:[_]},u!==null&&(u=Ft(u),u!==null&&cO(u)),s):(s.eventSystemFlags|=m,u=s.targetContainers,_!==null&&u.indexOf(_)===-1&&u.push(_),s)}function tq(s,u,f,m,_){switch(u){case"focusin":return Ts=Tf(Ts,s,u,f,m,_),!0;case"dragenter":return Ss=Tf(Ss,s,u,f,m,_),!0;case"mouseover":return Cs=Tf(Cs,s,u,f,m,_),!0;case"pointerover":var w=_.pointerId;return xf.set(w,Tf(xf.get(w)||null,s,u,f,m,_)),!0;case"gotpointercapture":return w=_.pointerId,wf.set(w,Tf(wf.get(w)||null,s,u,f,m,_)),!0}return!1}function pO(s){var u=Bn(s.target);if(u!==null){var f=o(u);if(f!==null){if(u=f.tag,u===13){if(u=i(f),u!==null){s.blockedOn=u,ot(s.priority,function(){uO(f)});return}}else if(u===31){if(u=l(f),u!==null){s.blockedOn=u,ot(s.priority,function(){uO(f)});return}}else if(u===3&&f.stateNode.current.memoizedState.isDehydrated){s.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Wm(s){if(s.blockedOn!==null)return!1;for(var u=s.targetContainers;0<u.length;){var f=e0(s.nativeEvent);if(f===null){f=s.nativeEvent;var m=new f.constructor(f.type,f);t_=m,f.target.dispatchEvent(m),t_=null}else return u=Ft(f),u!==null&&cO(u),s.blockedOn=f,!1;u.shift()}return!0}function hO(s,u,f){Wm(s)&&f.delete(u)}function nq(){n0=!1,Ts!==null&&Wm(Ts)&&(Ts=null),Ss!==null&&Wm(Ss)&&(Ss=null),Cs!==null&&Wm(Cs)&&(Cs=null),xf.forEach(hO),wf.forEach(hO)}function Zm(s,u){s.blockedOn===u&&(s.blockedOn=null,n0||(n0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,nq)))}var Km=null;function mO(s){Km!==s&&(Km=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Km===s&&(Km=null);for(var u=0;u<s.length;u+=3){var f=s[u],m=s[u+1],_=s[u+2];if(typeof m!="function"){if(t0(m||f)===null)continue;break}var w=Ft(f);w!==null&&(s.splice(u,3),u-=3,eE(w,{pending:!0,data:_,method:f.method,action:m},m,_))}}))}function nu(s){function u(Z){return Zm(Z,s)}Ts!==null&&Zm(Ts,s),Ss!==null&&Zm(Ss,s),Cs!==null&&Zm(Cs,s),xf.forEach(u),wf.forEach(u);for(var f=0;f<As.length;f++){var m=As[f];m.blockedOn===s&&(m.blockedOn=null)}for(;0<As.length&&(f=As[0],f.blockedOn===null);)pO(f),f.blockedOn===null&&As.shift();if(f=(s.ownerDocument||s).$$reactFormReplay,f!=null)for(m=0;m<f.length;m+=3){var _=f[m],w=f[m+1],R=_[Ke]||null;if(typeof w=="function")R||mO(f);else if(R){var $=null;if(w&&w.hasAttribute("formAction")){if(_=w,R=w[Ke]||null)$=R.formAction;else if(t0(_)!==null)continue}else $=R.action;typeof $=="function"?f[m+1]=$:(f.splice(m,3),m-=3),mO(f)}}}function gO(){function s(w){w.canIntercept&&w.info==="react-transition"&&w.intercept({handler:function(){return new Promise(function(R){return _=R})},focusReset:"manual",scroll:"manual"})}function u(){_!==null&&(_(),_=null),m||setTimeout(f,20)}function f(){if(!m&&!navigation.transition){var w=navigation.currentEntry;w&&w.url!=null&&navigation.navigate(w.url,{state:w.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,_=null;return navigation.addEventListener("navigate",s),navigation.addEventListener("navigatesuccess",u),navigation.addEventListener("navigateerror",u),setTimeout(f,100),function(){m=!0,navigation.removeEventListener("navigate",s),navigation.removeEventListener("navigatesuccess",u),navigation.removeEventListener("navigateerror",u),_!==null&&(_(),_=null)}}}function r0(s){this._internalRoot=s}Qm.prototype.render=r0.prototype.render=function(s){var u=this._internalRoot;if(u===null)throw Error(r(409));var f=u.current,m=Ba();sO(f,m,s,u,null,null)},Qm.prototype.unmount=r0.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var u=s.containerInfo;sO(s.current,2,null,s,null,null),Om(),u[at]=null}};function Qm(s){this._internalRoot=s}Qm.prototype.unstable_scheduleHydration=function(s){if(s){var u=Ue();s={blockedOn:null,target:s,priority:u};for(var f=0;f<As.length&&u!==0&&u<As[f].priority;f++);As.splice(f,0,s),f===0&&pO(s)}};var yO=t.version;if(yO!=="19.2.4")throw Error(r(527,yO,"19.2.4"));re.findDOMNode=function(s){var u=s._reactInternals;if(u===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=d(u),s=s!==null?p(s):null,s=s===null?null:s.stateNode,s};var rq={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};
816if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xm.isDisabled&&Xm.supportsFiber)try{Cn=Xm.inject(rq),zt=Xm}catch{}}return Gf.createRoot=function(s,u){if(!a(s))throw Error(r(299));var f=!1,m="",_=TN,w=SN,R=CN;return u!=null&&(u.unstable_strictMode===!0&&(f=!0),u.identifierPrefix!==void 0&&(m=u.identifierPrefix),u.onUncaughtError!==void 0&&(_=u.onUncaughtError),u.onCaughtError!==void 0&&(w=u.onCaughtError),u.onRecoverableError!==void 0&&(R=u.onRecoverableError)),u=oO(s,1,!1,null,null,f,m,null,_,w,R,gO),s[at]=u.current,jE(s),new r0(u)},Gf.hydrateRoot=function(s,u,f){if(!a(s))throw Error(r(299));var m=!1,_="",w=TN,R=SN,$=CN,Z=null;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(_=f.identifierPrefix),f.onUncaughtError!==void 0&&(w=f.onUncaughtError),f.onCaughtError!==void 0&&(R=f.onCaughtError),f.onRecoverableError!==void 0&&($=f.onRecoverableError),f.formState!==void 0&&(Z=f.formState)),u=oO(s,1,!0,u,f??null,m,_,Z,w,R,$,gO),u.context=iO(null),f=u.current,m=Ba(),m=ye(m),_=fs(m),_.callback=null,ps(f,_,m),f=m,u.current.lanes=f,Wr(u,f),ti(u),s[at]=u.current,jE(s),new Qm(u)},Gf.version="19.2.4",Gf}var V$;function DSe(){if(V$)return Tx.exports;V$=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Tx.exports=OSe(),Tx.exports}var I5=DSe();/** 817 * react-router v7.13.0 818 * 819 * Copyright (c) Remix Software Inc. 820 * 821 * This source code is licensed under the MIT license found in the 822 * LICENSE.md file in the root directory of this source tree. 823 * 824 * @license MIT 825 */var L5=e=>{throw TypeError(e)},ISe=(e,t,n)=>t.has(e)||L5("Cannot "+n),Ax=(e,t,n)=>(ISe(e,t,"read from private field"),n?n.call(e):t.get(e)),LSe=(e,t,n)=>t.has(e)?L5("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),q$="popstate";function $Se(e={}){function t(r,a){let{pathname:o,search:i,hash:l}=r.location;return Bp("",{pathname:o,search:i,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:pi(a)}return MSe(t,n,null,e)}function $t(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Cr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function PSe(){return Math.random().toString(36).substring(2,10)}function Y$(e,t){return{usr:e.state,key:e.key,idx:t}}function Bp(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?vc(t):t,state:n,key:t&&t.key||r||PSe()}}function pi({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function vc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function MSe(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,i=a.history,l="POP",c=null,d=p();d==null&&(d=0,i.replaceState({...i.state,idx:d},""));function p(){return(i.state||{idx:null}).idx}function h(){l="POP";let C=p(),S=C==null?null:C-d;d=C,c&&c({action:l,location:x.location,delta:S})}function g(C,S){l="PUSH";let A=Bp(x.location,C,S);d=p()+1;let k=Y$(A,d),N=x.createHref(A);try{i.pushState(k,"",N)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(N)}o&&c&&c({action:l,location:x.location,delta:1})}function y(C,S){l="REPLACE";let A=Bp(x.location,C,S);d=p();let k=Y$(A,d),N=x.createHref(A);i.replaceState(k,"",N),o&&c&&c({action:l,location:x.location,delta:0})}function v(C){return $5(C)}let x={get action(){return l},get location(){return e(a,i)},listen(C){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(q$,h),c=C,()=>{a.removeEventListener(q$,h),c=null}},createHref(C){return t(a,C)},createURL:v,encodeLocation(C){let S=v(C);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:g,replace:y,go(C){return i.go(C)}};return x}function $5(e,t=!1){let n="http://localhost";
825typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),$t(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:pi(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var tp,W$=class{constructor(e){if(LSe(this,tp,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(Ax(this,tp).has(e))return Ax(this,tp).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){Ax(this,tp).set(e,t)}};tp=new WeakMap;var jSe=new Set(["lazy","caseSensitive","path","id","index","children"]);function zSe(e){return jSe.has(e)}var BSe=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function USe(e){return BSe.has(e)}function FSe(e){return e.index===!0}function Up(e,t,n=[],r={},a=!1){return e.map((o,i)=>{let l=[...n,String(i)],c=typeof o.id=="string"?o.id:l.join("-");if($t(o.index!==!0||!o.children,"Cannot specify children on an index route"),$t(a||!r[c],`Found a route id collision on i
825d "${c}". Route id's must be globally unique within Data Router usages`),FSe(o)){let d={...o,id:c};return r[c]=Z$(d,t(d)),d}else{let d={...o,id:c,children:void 0};return r[c]=Z$(d,t(d)),o.children&&(d.children=Up(o.children,t,l,r,a)),d}})}function Z$(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function Yi(e,t,n="/"){return np(e,t,n,!1)}function np(e,t,n,r){let a=typeof t=="string"?vc(t):t,o=Yo(a.pathname||"/",n);if(o==null)return null;let i=P5(e);GSe(i);let l=null;for(let c=0;l==null&&c<i.length;++c){let d=t1e(o);l=JSe(i[c],d,r)}return l}function HSe(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function P5(e,t=[],n=[],r="",a=!1){let o=(i,l,c=a,d)=>{let p={relativePath:d===void 0?i.path||"":d,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&c)return;$t(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let h=ui([r,p.relativePath]),g=n.concat(p);i.children&&i.children.length>0&&($t(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),P5(i.children,t,g,h,c)),!(i.path==null&&!i.index)&&t.push({path:h,score:QSe(h,i.index),routesMeta:g})};return e.forEach((i,l)=>{if(i.path===""||!i.path?.includes("?"))o(i,l);else for(let c of M5(i.path))o(i,l,!0,c)}),t}function M5(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let i=M5(r.join("/")),l=[];return l.push(...i.map(c=>c===""?o:[o,c].join("/"))),a&&l.push(...i),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function GSe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:XSe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var VSe=/^:[\w-]+$/,qSe=3,YSe=2,WSe=1,ZSe=10,KSe=-2,K$=e=>e==="*";function QSe(e,t){let n=e.split("/"),r=n.length;return n.some(K$)&&(r+=KSe),t&&(r+=YSe),n.filter(a=>!K$(a)).reduce((a,o)=>a+(VSe.test(o)?qSe:o===""?WSe:ZSe),r)}function XSe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function JSe(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",i=[];for(let l=0;l<r.length;++l){let c=r[l],d=l===r.length-1,p=o==="/"?t:t.slice(o.length)||"/",h=rb({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},p),g=c.route;if(!h&&d&&n&&!r[r.length-1].route.index&&(h=rb({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},p)),!h)return null;
825Object.assign(a,h.params),i.push({params:a,pathname:ui([o,h.pathname]),pathnameBase:a1e(ui([o,h.pathnameBase])),route:g}),h.pathnameBase!=="/"&&(o=ui([o,h.pathnameBase]))}return i}function rb(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=e1e(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((d,{paramName:p,isOptional:h},g)=>{if(p==="*"){let v=l[g]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const y=l[g];return h&&!y?d[p]=void 0:d[p]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:i,pattern:e}}function e1e(e,t=!1,n=!0){Cr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function t1e(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Cr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Yo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function n1e({basename:e,pathname:t}){return t==="/"?e:ui([e,t])}var j5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,MC=e=>j5.test(e);function r1e(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?vc(e):e,o;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?o=Q$(n.substring(1),"/"):o=Q$(n,t)):o=t,{pathname:o,search:o1e(r),hash:i1e(a)}}function Q$(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function kx(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function z5(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function jC(e){let t=z5(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function zC(e,t,n,r=!1){let a;typeof e=="string"?a=vc(e):(a={...e},$t(!a.pathname||!a.pathname.includes("?"),kx("?","pathname","search",a)),$t(!a.pathname||!a.pathname.includes("#"),kx("#","pathname","hash",a)),$t(!a.search||!a.search.includes("#"),kx("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,l;if(i==null)l=n;else{let h=t.length-1;if(!r&&i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),h-=1;a.pathname=g.join("/")}l=h>=0?t[h]:"/"}let c=r1e(a,l),d=i&&i!=="/"&&i.endsWith("/"),p=(o||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||p)&&(c.pathname+="/"),c}var ui=e=>e.join("/").replace(/\/\/+/g,"/"),a1e=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),o1e=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,i1e=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Dh=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Fp(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Sv(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var B5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function U5(e,t){let n=e;
825if(typeof n!="string"||!j5.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(B5)try{let o=new URL(window.location.href),i=n.startsWith("//")?new URL(o.protocol+n):new URL(n),l=Yo(i.pathname,t);i.origin===o.origin&&l!=null?n=l+i.search+i.hash:a=!0}catch{Cr(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}var Gs=Symbol("Uninstrumented");function s1e(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(a=>a({id:t.id,index:t.index,path:t.path,instrument(o){let i=Object.keys(n);for(let l of i)o[l]&&n[l].push(o[l])}}));let r={};if(typeof t.lazy=="function"&&n.lazy.length>0){let a=Du(n.lazy,t.lazy,()=>{});a&&(r.lazy=a)}if(typeof t.lazy=="object"){let a=t.lazy;["middleware","loader","action"].forEach(o=>{let i=a[o],l=n[`lazy.${o}`];if(typeof i=="function"&&l.length>0){let c=Du(l,i,()=>{});c&&(r.lazy=Object.assign(r.lazy||{},{[o]:c}))}})}return["loader","action"].forEach(a=>{let o=t[a];if(typeof o=="function"&&n[a].length>0){let i=o[Gs]??o,l=Du(n[a],i,(...c)=>X$(c[0]));l&&(a==="loader"&&i.hydrate===!0&&(l.hydrate=!0),l[Gs]=i,r[a]=l)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(a=>{let o=a[Gs]??a,i=Du(n.middleware,o,(...l)=>X$(l[0]));return i?(i[Gs]=o,i):a})),r}function l1e(e,t){let n={navigate:[],fetch:[]};if(t.forEach(r=>r({instrument(a){let o=Object.keys(a);for(let i of o)a[i]&&n[i].push(a[i])}})),n.navigate.length>0){let r=e.navigate[Gs]??e.navigate,a=Du(n.navigate,r,(...o)=>{let[i,l]=o;return{to:typeof i=="number"||typeof i=="string"?i:i?pi(i):".",...J$(e,l??{})}});a&&(a[Gs]=r,e.navigate=a)}if(n.fetch.length>0){let r=e.fetch[Gs]??e.fetch,a=Du(n.fetch,r,(...o)=>{let[i,,l,c]=o;return{href:l??".",fetcherKey:i,...J$(e,c??{})}});a&&(a[Gs]=r,e.fetch=a)}return e}function Du(e,t,n){return e.length===0?null:async(...r)=>{let a=await F5(e,n(...r),()=>t(...r),e.length-1);if(a.type==="error")throw a.value;return a.value}}async function F5(e,t,n,r){let a=e[r],o;if(a){let i,l=async()=>(i?console.error("You cannot call instrumented handlers more than once"):i=F5(e,t,n,r-1),o=await i,$t(o,"Expected a result"),o.type==="error"&&o.value instanceof Error?{status:"error",error:o.value}:{status:"success",error:void 0});try{await a(l,t)}catch(c){console.error("An instrumentation function threw an error:",c)}i||await l(),await i}else try{o={type:"success",value:await n()}}catch(i){o={type:"error",value:i}}return o||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function X$(e){let{request:t,context:n,params:r,unstable_pattern:a}=e;return{request:c1e(t),params:{...r},unstable_pattern:a,context:u1e(n)}}function J$(e,t){return{currentUrl:pi(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function c1e(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function u1e(e){if(f1e(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var d1e=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function f1e(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===d1e}var H5=["POST","PUT","PATCH","DELETE"],p1e=new Set(H5),h1e=["GET",...H5],m1e=new Set(h1e),G5=new Set([301,302,303,307,308]),g1e=new Set([307,308]),Nx={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},y1e={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Vf={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},b1e=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),V5="remix-router-transitions",q5=Symbol("ResetLoaderData");function v1e(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";$t(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],a=e.mapRouteProperties||b1e,o=a;if(e.unstable_instrumentations){let W=e.unstable_instrumentations;o=le=>({...a(le),...s1e(W.map(ye=>
825ye.route).filter(Boolean),le)})}let i={},l=Up(e.routes,o,void 0,i),c,d=e.basename||"/";d.startsWith("/")||(d=`/${d}`);let p=e.dataStrategy||T1e,h={...e.future},g=null,y=new Set,v=null,x=null,C=null,S=e.hydrationData!=null,A=Yi(l,e.history.location,d),k=!1,N=null,O;if(A==null&&!e.patchRoutesOnNavigation){let W=mo(404,{pathname:e.history.location.pathname}),{matches:le,route:ye}=Og(l);O=!0,A=le,N={[ye.id]:W}}else if(A&&!e.hydrationData&&br(A,l,e.history.location.pathname).active&&(A=null),A)if(A.some(W=>W.route.lazy))O=!1;else if(!A.some(W=>BC(W.route)))O=!0;else{let W=e.hydrationData?e.hydrationData.loaderData:null,le=e.hydrationData?e.hydrationData.errors:null;if(le){let ye=A.findIndex(Le=>le[Le.route.id]!==void 0);O=A.slice(0,ye+1).every(Le=>!$T(Le.route,W,le))}else O=A.every(ye=>!$T(ye.route,W,le))}else{O=!1,A=[];let W=br(null,l,e.history.location.pathname);W.active&&W.matches&&(k=!0,A=W.matches)}let I,D={historyAction:e.history.action,location:e.history.location,matches:A,initialized:O,navigation:Nx,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||N,fetchers:new Map,blockers:new Map},U="POP",J=null,P=!1,X,K=!1,Q=new Map,ne=null,ae=!1,H=!1,re=new Set,ee=new Map,ge=0,B=-1,V=new Map,G=new Set,L=new Map,de=new Map,_e=new Set,Ce=new Map,he,Be=null;function qe(){if(g=e.history.listen(({action:W,location:le,delta:ye})=>{if(he){he(),he=void 0;return}Cr(Ce.size===0||ye!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Le=Yt({currentLocation:D.location,nextLocation:le,historyAction:W});if(Le&&ye!=null){let Ue=new Promise(ot=>{he=ot});e.history.go(ye*-1),Nt(Le,{state:"blocked",location:le,proceed(){Nt(Le,{state:"proceeding",proceed:void 0,reset:void 0,location:le}),Ue.then(()=>e.history.go(ye))},reset(){let ot=new Map(D.blockers);ot.set(Le,Vf),lt({blockers:ot})}}),J?.resolve(),J=null;return}return en(W,le)}),n){F1e(t,Q);let W=()=>H1e(t,Q);t.addEventListener("pagehide",W),ne=()=>t.removeEventListener("pagehide",W)}return D.initialized||en("POP",D.location,{initialHydration:!0}),I}function nt(){g&&g(),ne&&ne(),y.clear(),X&&X.abort(),D.fetchers.forEach((W,le)=>an(le)),D.blockers.forEach((W,le)=>pt(le))}function dt(W){return y.add(W),()=>y.delete(W)}function lt(W,le={}){W.matches&&(W.matches=W.matches.map(Ue=>{let ot=i[Ue.route.id],Ye=Ue.route;return Ye.element!==ot.element||Ye.errorElement!==ot.errorElement||Ye.hydrateFallbackElement!==ot.hydrateFallbackElement?{...Ue,route:ot}:Ue})),D={...D,...W};let ye=[],Le=[];D.fetchers.forEach((Ue,ot)=>{Ue.state==="idle"&&(_e.has(ot)?ye.push(ot):Le.push(ot))}),_e.forEach(Ue=>{!D.fetchers.has(Ue)&&!ee.has(Ue)&&ye.push(Ue)}),[...y].forEach(Ue=>Ue(D,{deletedFetchers:ye,newErrors:W.errors??null,viewTransitionOpts:le.viewTransitionOpts,flushSync:le.flushSync===!0})),ye.forEach(Ue=>an(Ue)),Le.forEach(Ue=>D.fetchers.delete(Ue))}function Zt(W,le,{flushSync:ye}={}){let Le=D.actionData!=null&&D.navigation.formMethod!=null&&Jr(D.navigation.formMethod)&&D.navigation.state==="loading"&&W.state?._isRedirect!==!0,Ue;le.actionData?Object.keys(le.actionData).length>0?Ue=le.actionData:Ue=null:Le?Ue=D.actionData:Ue=null;let ot=le.loaderData?cP(D.loaderData,le.loaderData,le.matches||[],le.errors):D.loaderData,Ye=D.blockers;Ye.size>0&&(Ye=new Map(Ye),Ye.forEach((ht,it)=>Ye.set(it,Vf)));let Ve=ae?!1:Da(W,le.matches||D.matches),Ke=P===!0||D.navigation.formMethod!=null&&Jr(D.navigation.formMethod)&&W.state?._isRedirect!==!0;c&&(l=c,c=void 0),ae||U==="POP"||(U==="PUSH"?e.history.push(W,W.state):U==="REPLACE"&&e.history.replace(W,W.state));let at;if(U==="POP"){let ht=Q.get(D.location.pathname);ht&&ht.has(W.pathname)?at={currentLocation:D.location,nextLocation:W}:Q.has(W.pathname)&&(at={currentLocation:W,nextLocation:D.location})}else if(K){let ht=Q.get(D.location.pathname);ht?ht.add(W.pathname):(ht=new Set([W.pathname]),Q.set(D.location.pathname,ht)),at={currentLocation:D.location,nextLocation:W}}lt({...le,actionData:Ue,loaderData:ot,historyAction:U,location:W,initialized:!0,navigation:Nx,revalidation:"idle",restoreScrollPosition:Ve,preventScrollReset:Ke,blockers:Ye},{viewTransitionOpts:at,flushSync:ye===!0}),U="POP",P=!1,K=!1,ae=!1,H=!1,J?.resolve(),J=null,Be?.resolve(),Be=null}async function Qe(W,le){if(J?.resolve(),J=null,typeof W=="number"){J||(J=pP());let Ut=J.promise;return e.history.go(W),Ut}let ye=LT(D.location,D.matches,d,W,le?.fromRouteId,le?.relative),{path:Le,submission:Ue,error:ot}=eP(!1,ye,le),Ye=D.location,Ve=Bp(D.location,Le,le&&le.state);Ve={...Ve,...e.history.encodeLocation(Ve)};let Ke=le&&le.replace!=null?le.replace:void 0,at="PUSH";Ke===!0?at="REPLACE":Ke===!1||Ue!=null&&Jr(Ue.formMethod)&&Ue.formAction===D.location.pathname+D.location.search&&(at="REPLACE");let ht=le&&"preventScrollReset"in le?le.preventScrollReset===!0:void 0,it=(le&&le.flushSync)===!0,Wt=Yt({currentLocation:Ye,nextLocation:Ve,historyAction:at});if(Wt){Nt(Wt,{state:"blocked",location:Ve,proceed(){Nt(Wt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ve}),Qe(W,le)},reset(){let Ut=new Map(D.blockers);Ut.set(Wt,Vf),lt({blockers:Ut})}});return}await en(at,Ve,{submission:Ue,pendingError:ot,preventScrollReset:ht,replace:le&&le.replace,enableViewTransition:le&&le.viewTransition,flushSync:it,callSiteDefaultShouldRevalidate:le&&le.unstable_defaultShouldRevalidate})}function Ge(){Be||(Be=pP()),we(),lt({revalidation:"loading"});let W=Be.promise;return D.navigation.state==="submitting"?W:D.navigation.state==="idle"?(en(D.historyAction,D.location,{startUninterruptedRevalidation:!0}
825),W):(en(U||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation,enableViewTransition:K===!0}),W)}async function en(W,le,ye){X&&X.abort(),X=null,U=W,ae=(ye&&ye.startUninterruptedRevalidation)===!0,jn(D.location,D.matches),P=(ye&&ye.preventScrollReset)===!0,K=(ye&&ye.enableViewTransition)===!0;let Le=c||l,Ue=ye&&ye.overrideNavigation,ot=ye?.initialHydration&&D.matches&&D.matches.length>0&&!k?D.matches:Yi(Le,le,d),Ye=(ye&&ye.flushSync)===!0;if(ot&&D.initialized&&!H&&D1e(D.location,le)&&!(ye&&ye.submission&&Jr(ye.submission.formMethod))){Zt(le,{matches:ot},{flushSync:Ye});return}let Ve=br(ot,Le,le.pathname);if(Ve.active&&Ve.matches&&(ot=Ve.matches),!ot){let{error:zn,notFoundMatches:Bn,route:Ft}=St(le.pathname);Zt(le,{matches:Bn,loaderData:{},errors:{[Ft.id]:zn}},{flushSync:Ye});return}X=new AbortController;let Ke=Tu(e.history,le,X.signal,ye&&ye.submission),at=e.getContext?await e.getContext():new W$,ht;if(ye&&ye.pendingError)ht=[Fs(ot).route.id,{type:"error",error:ye.pendingError}];else if(ye&&ye.submission&&Jr(ye.submission.formMethod)){let zn=await tr(Ke,le,ye.submission,ot,at,Ve.active,ye&&ye.initialHydration===!0,{replace:ye.replace,flushSync:Ye});if(zn.shortCircuited)return;if(zn.pendingActionResult){let[Bn,Ft]=zn.pendingActionResult;if(Va(Ft)&&Fp(Ft.error)&&Ft.error.status===404){X=null,Zt(le,{matches:zn.matches,loaderData:{},errors:{[Bn]:Ft.error}});return}}ot=zn.matches||ot,ht=zn.pendingActionResult,Ue=Rx(le,ye.submission),Ye=!1,Ve.active=!1,Ke=Tu(e.history,Ke.url,Ke.signal)}let{shortCircuited:it,matches:Wt,loaderData:Ut,errors:Dn}=await sa(Ke,le,ot,at,Ve.active,Ue,ye&&ye.submission,ye&&ye.fetcherSubmission,ye&&ye.replace,ye&&ye.initialHydration===!0,Ye,ht,ye&&ye.callSiteDefaultShouldRevalidate);it||(X=null,Zt(le,{matches:Wt||ot,...uP(ht),loaderData:Ut,errors:Dn}))}async function tr(W,le,ye,Le,Ue,ot,Ye,Ve={}){we();let Ke=B1e(le,ye);if(lt({navigation:Ke},{flushSync:Ve.flushSync===!0}),ot){let it=await Yr(Le,le.pathname,W.signal);if(it.type==="aborted")return{shortCircuited:!0};if(it.type==="error"){if(it.partialMatches.length===0){let{matches:Ut,route:Dn}=Og(l);return{matches:Ut,pendingActionResult:[Dn.id,{type:"error",error:it.error}]}}let Wt=Fs(it.partialMatches).route.id;return{matches:it.partialMatches,pendingActionResult:[Wt,{type:"error",error:it.error}]}}else if(it.matches)Le=it.matches;else{let{notFoundMatches:Wt,error:Ut,route:Dn}=St(le.pathname);return{matches:Wt,pendingActionResult:[Dn.id,{type:"error",error:Ut}]}}}let at,ht=oy(Le,le);if(!ht.route.action&&!ht.route.lazy)at={type:"error",error:mo(405,{method:W.method,pathname:le.pathname,routeId:ht.route.id})};else{let it=Vu(o,i,W,Le,ht,Ye?[]:r,Ue),Wt=await Oe(W,it,Ue,null);if(at=Wt[ht.route.id],!at){for(let Ut of Le)if(Wt[Ut.route.id]){at=Wt[Ut.route.id];break}}if(W.signal.aborted)return{shortCircuited:!0}}if(Gl(at)){let it;return Ve&&Ve.replace!=null?it=Ve.replace:it=iP(at.response.headers.get("Location"),new URL(W.url),d,e.history)===D.location.pathname+D.location.search,await Re(W,at,!0,{submission:ye,replace:it}),{shortCircuited:!0}}if(Va(at)){let it=Fs(Le,ht.route.id);return(Ve&&Ve.replace)!==!0&&(U="PUSH"),{matches:Le,pendingActionResult:[it.route.id,at,ht.route.id]}}return{matches:Le,pendingActionResult:[ht.route.id,at]}}async function sa(W,le,ye,Le,Ue,ot,Ye,Ve,Ke,at,ht,it,Wt){let Ut=ot||Rx(le,Ye),Dn=Ye||Ve||fP(Ut),zn=!ae&&!at;if(Ue){if(zn){let Vn=Pn(it);lt({navigation:Ut,...Vn!==void 0?{actionData:Vn}:{}},{flushSync:ht})}let Ht=await Yr(ye,le.pathname,W.signal);if(Ht.type==="aborted")return{shortCircuited:!0};if(Ht.type==="error"){if(Ht.partialMatches.length===0){let{matches:Do,route:Br}=Og(l);return{matches:Do,loaderData:{},errors:{[Br.id]:Ht.error}}}let Vn=Fs(Ht.partialMatches).route.id;return{matches:Ht.partialMatches,loaderData:{},errors:{[Vn]:Ht.error}}}else if(Ht.matches)ye=Ht.matches;else{let{error:Vn,notFoundMatches:Do,route:Br}=St(le.pathname);return{matches:Do,loaderData:{},errors:{[Br.id]:Vn}}}}let Bn=c||l,{dsMatches:Ft,revalidatingFetchers:Rr}=tP(W,Le,o,i,e.history,D,ye,Dn,le,at?[]:r,at===!0,H,re,_e,L,G,Bn,d,e.patchRoutesOnNavigation!=null,it,Wt);if(B=++ge,!e.dataStrategy&&!Ft.some(Ht=>Ht.shouldLoad)&&!Ft.some(Ht=>Ht.route.middleware&&Ht.route.middleware.length>0)&&Rr.length===0){let Ht=Bt();return Zt(le,{matches:ye,loaderData:{},errors:it&&Va(it[1])?{[it[0]]:it[1].error}:null,...uP(it),...Ht?{fetchers:new Map(D.fetchers)}:{}},{flushSync:ht}),{shortCircuited:!0}}if(zn){let Ht={};if(!Ue){Ht.navigation=Ut;let Vn=Pn(it);Vn!==void 0&&(Ht.actionData=Vn)}Rr.length>0&&(Ht.fetchers=Y(Rr)),lt(Ht,{flushSync:ht})}Rr.forEach(Ht=>{zt(Ht.key),Ht.controller&&ee.set(Ht.key,Ht.controller)});let ga=()=>Rr.forEach(Ht=>zt(Ht.key));X&&X.signal.addEventListener("abort",ga);let{loaderResults:An,fetcherResults:Ro}=await ie(Ft,Rr,W,Le);if(W.signal.aborted)return{shortCircuited:!0};X&&X.signal.removeEventListener("abort",ga),Rr.forEach(Ht=>ee.delete(Ht.key));let Ia=Dg(An);if(Ia)return await Re(W,Ia.result,!0,{replace:Ke}),{shortCircuited:!0};if(Ia=Dg(Ro),Ia)return G.add(Ia.key),await Re(W,Ia.result,!0,{replace:Ke}),{shortCircuited:!0};let{loaderData:Oo,errors:to}=lP(D,ye,An,it,Rr,Ro);at&&D.errors&&(to={...D.errors,...to});let _i=Bt(),fl=la(B),pl=_i||fl||Rr.length>0;return{matches:ye,loaderData:Oo,errors:to,...pl?{fetchers:new Map(D.fetchers)}:{}}}function Pn(W){if(W&&!Va(W[1]))return{[W[0]]:W[1].data};if(D.actionData)return Object.keys(D.actionData).length===0?null:D.actionData}function Y(W){return W.forEach(le=>{let ye=D.fetchers.get(le.key),Le=qf(void 0,ye?ye.data:void 0);D.fetchers.set(le.key,Le)}),new Map(D.fetchers)}async function oe(W,le,ye,Le){zt(W);let Ue=(Le&&Le.flushSync)===!0,ot=c||l,Ye=LT(D.location,D.matches,d,ye,le,Le?.relative),Ve=Yi(ot,Ye,d),Ke=br(Ve,ot,Ye);if(Ke.active&&Ke.matches&&(Ve=Ke.matches),!Ve){rt(W,le,mo(404,{pathname:Ye}),{flushSync:Ue});return}let{path:at,submission:ht,error:it}=eP(!0,Ye,Le);
825if(it){rt(W,le,it,{flushSync:Ue});return}let Wt=e.getContext?await e.getContext():new W$,Ut=(Le&&Le.preventScrollReset)===!0;if(ht&&Jr(ht.formMethod)){await be(W,le,at,Ve,Wt,Ke.active,Ue,Ut,ht,Le&&Le.unstable_defaultShouldRevalidate);return}L.set(W,{routeId:le,path:at}),await Fe(W,le,at,Ve,Wt,Ke.active,Ue,Ut,ht)}async function be(W,le,ye,Le,Ue,ot,Ye,Ve,Ke,at){we(),L.delete(W);let ht=D.fetchers.get(W);Ie(W,U1e(Ke,ht),{flushSync:Ye});let it=new AbortController,Wt=Tu(e.history,ye,it.signal,Ke);if(ot){let Gt=await Yr(Le,new URL(Wt.url).pathname,Wt.signal,W);if(Gt.type==="aborted")return;if(Gt.type==="error"){rt(W,le,Gt.error,{flushSync:Ye});return}else if(Gt.matches)Le=Gt.matches;else{rt(W,le,mo(404,{pathname:ye}),{flushSync:Ye});return}}let Ut=oy(Le,ye);if(!Ut.route.action&&!Ut.route.lazy){let Gt=mo(405,{method:Ke.formMethod,pathname:ye,routeId:le});rt(W,le,Gt,{flushSync:Ye});return}ee.set(W,it);let Dn=ge,zn=Vu(o,i,Wt,Le,Ut,r,Ue),Bn=await Oe(Wt,zn,Ue,W),Ft=Bn[Ut.route.id];if(!Ft){for(let Gt of zn)if(Bn[Gt.route.id]){Ft=Bn[Gt.route.id];break}}if(Wt.signal.aborted){ee.get(W)===it&&ee.delete(W);return}if(_e.has(W)){if(Gl(Ft)||Va(Ft)){Ie(W,Gi(void 0));return}}else{if(Gl(Ft))if(ee.delete(W),B>Dn){Ie(W,Gi(void 0));return}else return G.add(W),Ie(W,qf(Ke)),Re(Wt,Ft,!1,{fetcherSubmission:Ke,preventScrollReset:Ve});if(Va(Ft)){rt(W,le,Ft.error);return}}let Rr=D.navigation.location||D.location,ga=Tu(e.history,Rr,it.signal),An=c||l,Ro=D.navigation.state!=="idle"?Yi(An,D.navigation.location,d):D.matches;$t(Ro,"Didn't find any matches after fetcher action");let Ia=++ge;V.set(W,Ia);let Oo=qf(Ke,Ft.data);D.fetchers.set(W,Oo);let{dsMatches:to,revalidatingFetchers:_i}=tP(ga,Ue,o,i,e.history,D,Ro,Ke,Rr,r,!1,H,re,_e,L,G,An,d,e.patchRoutesOnNavigation!=null,[Ut.route.id,Ft],at);_i.filter(Gt=>Gt.key!==W).forEach(Gt=>{let hl=Gt.key,Fh=D.fetchers.get(hl),Pd=qf(void 0,Fh?Fh.data:void 0);D.fetchers.set(hl,Pd),zt(hl),Gt.controller&&ee.set(hl,Gt.controller)}),lt({fetchers:new Map(D.fetchers)});let fl=()=>_i.forEach(Gt=>zt(Gt.key));it.signal.addEventListener("abort",fl);let{loaderResults:pl,fetcherResults:Ht}=await ie(to,_i,ga,Ue);if(it.signal.aborted)return;if(it.signal.removeEventListener("abort",fl),V.delete(W),ee.delete(W),_i.forEach(Gt=>ee.delete(Gt.key)),D.fetchers.has(W)){let Gt=Gi(Ft.data);D.fetchers.set(W,Gt)}let Vn=Dg(pl);if(Vn)return Re(ga,Vn.result,!1,{preventScrollReset:Ve});if(Vn=Dg(Ht),Vn)return G.add(Vn.key),Re(ga,Vn.result,!1,{preventScrollReset:Ve});let{loaderData:Do,errors:Br}=lP(D,Ro,pl,void 0,_i,Ht);la(Ia),D.navigation.state==="loading"&&Ia>B?($t(U,"Expected pending action"),X&&X.abort(),Zt(D.navigation.location,{matches:Ro,loaderData:Do,errors:Br,fetchers:new Map(D.fetchers)})):(lt({errors:Br,loaderData:cP(D.loaderData,Do,Ro,Br),fetchers:new Map(D.fetchers)}),H=!1)}async function Fe(W,le,ye,Le,Ue,ot,Ye,Ve,Ke){let at=D.fetchers.get(W);Ie(W,qf(Ke,at?at.data:void 0),{flushSync:Ye});let ht=new AbortController,it=Tu(e.history,ye,ht.signal);if(ot){let Ft=await Yr(Le,new URL(it.url).pathname,it.signal,W);if(Ft.type==="aborted")return;if(Ft.type==="error"){rt(W,le,Ft.error,{flushSync:Ye});return}else if(Ft.matches)Le=Ft.matches;else{rt(W,le,mo(404,{pathname:ye}),{flushSync:Ye});return}}let Wt=oy(Le,ye);ee.set(W,ht);let Ut=ge,Dn=Vu(o,i,it,Le,Wt,r,Ue),Bn=(await Oe(it,Dn,Ue,W))[Wt.route.id];if(ee.get(W)===ht&&ee.delete(W),!it.signal.aborted){if(_e.has(W)){Ie(W,Gi(void 0));return}if(Gl(Bn))if(B>Ut){Ie(W,Gi(void 0));return}else{G.add(W),await Re(it,Bn,!1,{preventScrollReset:Ve});return}if(Va(Bn)){rt(W,le,Bn.error);return}Ie(W,Gi(Bn.data))}}async function Re(W,le,ye,{submission:Le,fetcherSubmission:Ue,preventScrollReset:ot,replace:Ye}={}){ye||(J?.resolve(),J=null),le.response.headers.has("X-Remix-Revalidate")&&(H=!0);let Ve=le.response.headers.get("Location");$t(Ve,"Expected a Location header on the redirect Response"),Ve=iP(Ve,new URL(W.url),d,e.history);let Ke=Bp(D.location,Ve,{_isRedirect:!0});if(n){let Dn=!1;if(le.response.headers.has("X-Remix-Reload-Document"))Dn=!0;else if(MC(Ve)){const zn=$5(Ve,!0);Dn=zn.origin!==t.location.origin||Yo(zn.pathname,d)==null}if(Dn){Ye?t.location.replace(Ve):t.location.assign(Ve);return}}X=null;let at=Ye===!0||le.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:ht,formAction:it,formEncType:Wt}=D.navigation;!Le&&!Ue&&ht&&it&&Wt&&(Le=fP(D.navigation));let Ut=Le||Ue;if(g1e.has(le.response.status)&&Ut&&Jr(Ut.formMethod))await en(at,Ke,{submission:{...Ut,formAction:Ve},preventScrollReset:ot||P,enableViewTransition:ye?K:void 0});else{let Dn=Rx(Ke,Le);await en(at,Ke,{overrideNavigation:Dn,fetcherSubmission:Ue,preventScrollReset:ot||P,enableViewTransition:ye?K:void 0})}}async function Oe(W,le,ye,Le){let Ue,ot={};try{Ue=await C1e(p,W,le,Le,ye,!1)}catch(Ye){return le.filter(Ve=>
825Ve.shouldLoad).forEach(Ve=>{ot[Ve.route.id]={type:"error",error:Ye}}),ot}if(W.signal.aborted)return ot;if(!Jr(W.method))for(let Ye of le){if(Ue[Ye.route.id]?.type==="error")break;!Ue.hasOwnProperty(Ye.route.id)&&!D.loaderData.hasOwnProperty(Ye.route.id)&&(!D.errors||!D.errors.hasOwnProperty(Ye.route.id))&&Ye.shouldCallHandler()&&(Ue[Ye.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${Ye.route.id}`)})}for(let[Ye,Ve]of Object.entries(Ue))if(P1e(Ve)){let Ke=Ve.result;ot[Ye]={type:"redirect",response:R1e(Ke,W,Ye,le,d)}}else ot[Ye]=await N1e(Ve);return ot}async function ie(W,le,ye,Le){let Ue=Oe(ye,W,Le,null),ot=Promise.all(le.map(async Ke=>{if(Ke.matches&&Ke.match&&Ke.request&&Ke.controller){let ht=(await Oe(Ke.request,Ke.matches,Le,Ke.key))[Ke.match.route.id];return{[Ke.key]:ht}}else return Promise.resolve({[Ke.key]:{type:"error",error:mo(404,{pathname:Ke.path})}})})),Ye=await Ue,Ve=(await ot).reduce((Ke,at)=>Object.assign(Ke,at),{});return{loaderResults:Ye,fetcherResults:Ve}}function we(){H=!0,L.forEach((W,le)=>{ee.has(le)&&re.add(le),zt(le)})}function Ie(W,le,ye={}){D.fetchers.set(W,le),lt({fetchers:new Map(D.fetchers)},{flushSync:(ye&&ye.flushSync)===!0})}function rt(W,le,ye,Le={}){let Ue=Fs(D.matches,le);an(W),lt({errors:{[Ue.route.id]:ye},fetchers:new Map(D.fetchers)},{flushSync:(Le&&Le.flushSync)===!0})}function yt(W){return de.set(W,(de.get(W)||0)+1),_e.has(W)&&_e.delete(W),D.fetchers.get(W)||y1e}function Kt(W,le){zt(W,le?.reason),Ie(W,Gi(null))}function an(W){let le=D.fetchers.get(W);ee.has(W)&&!(le&&le.state==="loading"&&V.has(W))&&zt(W),L.delete(W),V.delete(W),G.delete(W),_e.delete(W),re.delete(W),D.fetchers.delete(W)}function Cn(W){let le=(de.get(W)||0)-1;le<=0?(de.delete(W),_e.add(W)):de.set(W,le),lt({fetchers:new Map(D.fetchers)})}function zt(W,le){let ye=ee.get(W);ye&&(ye.abort(le),ee.delete(W))}function Gn(W){for(let le of W){let ye=yt(le),Le=Gi(ye.data);D.fetchers.set(le,Le)}}function Bt(){let W=[],le=!1;for(let ye of G){let Le=D.fetchers.get(ye);$t(Le,`Expected fetcher: ${ye}`),Le.state==="loading"&&(G.delete(ye),W.push(ye),le=!0)}return Gn(W),le}function la(W){let le=[];for(let[ye,Le]of V)if(Le<W){let Ue=D.fetchers.get(ye);$t(Ue,`Expected fetcher: ${ye}`),Ue.state==="loading"&&(zt(ye),V.delete(ye),le.push(ye))}return Gn(le),le.length>0}function Nr(W,le){let ye=D.blockers.get(W)||Vf;return Ce.get(W)!==le&&Ce.set(W,le),ye}function pt(W){D.blockers.delete(W),Ce.delete(W)}function Nt(W,le){let ye=D.blockers.get(W)||Vf;$t(ye.state==="unblocked"&&le.state==="blocked"||ye.state==="blocked"&&le.state==="blocked"||ye.state==="blocked"&&le.state==="proceeding"||ye.state==="blocked"&&le.state==="unblocked"||ye.state==="proceeding"&&le.state==="unblocked",`Invalid blocker state transition: ${ye.state} -> ${le.state}`);let Le=new Map(D.blockers);Le.set(W,le),lt({blockers:Le})}function Yt({currentLocation:W,nextLocation:le,historyAction:ye}){if(Ce.size===0)return;Ce.size>1&&Cr(!1,"A router only supports one blocker at a time");let Le=Array.from(Ce.entries()),[Ue,ot]=Le[Le.length-1],Ye=D.blockers.get(Ue);if(!(Ye&&Ye.state==="proceeding")&&ot({currentLocation:W,nextLocation:le,historyAction:ye}))return Ue}function St(W){let le=mo(404,{pathname:W}),ye=c||l,{matches:Le,route:Ue}=Og(ye);return{notFoundMatches:Le,route:Ue,error:le}}function tn(W,le,ye){if(v=W,C=le,x=ye||null,!S&&D.navigation===Nx){S=!0;let Le=Da(D.location,D.matches);Le!=null&<({restoreScrollPosition:Le})}return()=>{v=null,C=null,x=null}}function Mn(W,le){return x&&x(W,le.map(Le=>HSe(Le,D.loaderData)))||W.key}function jn(W,le){if(v&&C){let ye=Mn(W,le);v[ye]=C()}}function Da(W,le){if(v){let ye=Mn(W,le),Le=v[ye];if(typeof Le=="number")return Le}return null}function br(W,le,ye){if(e.patchRoutesOnNavigation)if(W){if(Object.keys(W[0].params).length>0)return{active:!0,matches:np(le,ye,d,!0)}}else return{active:!0,matches:np(le,ye,d,!0)||[]};return{active:!1,matches:null}}async function Yr(W,le,ye,Le){if(!e.patchRoutesOnNavigation)return{type:"success",matches:W};let Ue=W;for(;;){let ot=c==null,Ye=c||l,Ve=i;try{await e.patchRoutesOnNavigation({signal:ye,path:le,matches:Ue,fetcherKey:Le,patch:(ht,it)=>
825{ye.aborted||nP(ht,it,Ye,Ve,o,!1)}})}catch(ht){return{type:"error",error:ht,partialMatches:Ue}}finally{ot&&!ye.aborted&&(l=[...l])}if(ye.aborted)return{type:"aborted"};let Ke=Yi(Ye,le,d),at=null;if(Ke){if(Object.keys(Ke[0].params).length===0)return{type:"success",matches:Ke};if(at=np(Ye,le,d,!0),!(at&&Ue.length<at.length&&Wr(Ue,at.slice(0,Ue.length))))return{type:"success",matches:Ke}}if(at||(at=np(Ye,le,d,!0)),!at||Wr(Ue,at))return{type:"success",matches:null};Ue=at}}function Wr(W,le){return W.length===le.length&&W.every((ye,Le)=>ye.route.id===le[Le].route.id)}function ma(W){i={},c=Up(W,o,void 0,i)}function vi(W,le,ye=!1){let Le=c==null;nP(W,le,c||l,i,o,ye),Le&&(l=[...l],lt({}))}return I={get basename(){return d},get future(){return h},get state(){return D},get routes(){return l},get window(){return t},initialize:qe,subscribe:dt,enableScrollRestoration:tn,navigate:Qe,fetch:oe,revalidate:Ge,createHref:W=>e.history.createHref(W),encodeLocation:W=>e.history.encodeLocation(W),getFetcher:yt,resetFetcher:Kt,deleteFetcher:Cn,dispose:nt,getBlocker:Nr,deleteBlocker:pt,patchRoutes:v
825i,_internalFetchControllers:ee,_internalSetRoutes:ma,_internalSetStateDoNotUseOrYouWillBreakYourApp(W){lt(W)}},e.unstable_instrumentations&&(I=l1e(I,e.unstable_instrumentations.map(W=>W.router).filter(Boolean))),I}function _1e(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function LT(e,t,n,r,a,o){let i,l;if(a){i=[];for(let d of t)if(i.push(d),d.route.id===a){l=d;break}}else i=t,l=t[t.length-1];let c=zC(r||".",jC(i),Yo(e.pathname,n)||e.pathname,o==="path");if(r==null&&(c.search=e.search,c.hash=e.hash),(r==null||r===""||r===".")&&l){let d=FC(c.search);if(l.route.index&&!d)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!l.route.index&&d){let p=new URLSearchParams(c.search),h=p.getAll("index");p.delete("index"),h.filter(y=>y).forEach(y=>p.append("index",y));let g=p.toString();c.search=g?`?${g}`:""}}return n!=="/"&&(c.pathname=n1e({basename:n,pathname:c.pathname})),pi(c)}function eP(e,t,n){if(!n||!_1e(n))return{path:t};if(n.formMethod&&!z1e(n.formMethod))return{path:t,error:mo(405,{method:n.formMethod})};let r=()=>({path:t,error:mo(400,{type:"invalid-body"})}),o=(n.formMethod||"get").toUpperCase(),i=X5(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Jr(o))return r();let h=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((g,[y,v])=>`${g}${y}=${v} 826`,""):String(n.body);return{path:t,submission:{formMethod:o,formAction:i,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!Jr(o))return r();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:o,formAction:i,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return r()}}}$t(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=MT(n.formData),c=n.formData;else if(n.body instanceof FormData)l=MT(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=sP(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=sP(l)}catch{return r()}let d={formMethod:o,formAction:i,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Jr(d.formMethod))return{path:t,submission:d};let p=vc(t);return e&&p.search&&FC(p.search)&&l.append("index",""),p.search=`?${l}`,{path:pi(p),submission:d}}function tP(e,t,n,r,a,o,i,l,c,d,p,h,g,y,v,x,C,S,A,k,N){let O=k?Va(k[1])?k[1].error:k[1].data:void 0,I=a.createURL(o.location),D=a.createURL(c),U;if(p&&o.errors){let ae=Object.keys(o.errors)[0];U=i.findIndex(H=>H.route.id===ae)}else if(k&&Va(k[1])){let ae=k[0];U=i.findIndex(H=>H.route.id===ae)-1}let J=k?k[1].statusCode:void 0,P=J&&J>=400,X={currentUrl:I,currentParams:o.matches[0]?.params||{},nextUrl:D,nextParams:i[0].params,...l,actionResult:O,actionStatus:J},K=Sv(i),Q=i.map((ae,H)=>{let{route:re}=ae,ee=null;if(U!=null&&H>U?ee=!1:re.lazy?ee=!0:BC(re)?p?ee=$T(re,o.loaderData,o.errors):E1e(o.loaderData,o.matches[H],ae)&&(ee=!0):ee=!1,ee!==null)return PT(n,r,e,K,ae,d,t,ee);let ge=!1;typeof N=="boolean"?ge=N:P?ge=!1:(h||I.pathname+I.search===D.pathname+D.search||I.search!==D.search||x1e(o.matches[H],ae))&&(ge=!0);let B={...X,defaultShouldRevalidate:ge},V=_p(ae,B);return PT(n,r,e,K,ae,d,t,V,B,N)}),ne=[];return v.forEach((ae,H)=>{if(p||!i.some(de=>de.route.id===ae.routeId)||y.has(H))return;let re=o.fetchers.get(H),ee=re&&re.state!=="idle"&&re.data===void 0,ge=Yi(C,ae.path,S);if(!ge){if(A&&ee)return;ne.push({key:H,routeId:ae.routeId,path:ae.path,matches:null,match:null,request:null,controller:null});return}if(x.has(H))return;let B=oy(ge,ae.path),V=new AbortController,G=Tu(a,ae.path,V.signal),L=null;if(g.has(H))g.delete(H),L=Vu(n,r,G,ge,B,d,t);else if(ee)h&&(L=Vu(n,r,G,ge,B,d,t));else{let de;typeof N=="boolean"?de=N:P?de=!1:de=h;let _e={...X,defaultShouldRevalidate:de};_p(B,_e)&&(L=Vu(n,r,G,ge,B,d,t,_e))}L&&ne.push({key:H,routeId:ae.routeId,path:ae.path,matches:L,match:B,request:G,controller:V})}),{dsMatches:Q,revalidatingFetchers:ne}}function BC(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function $T(e,t,n){if(e.lazy)return!0;
826if(!BC(e))return!1;let r=t!=null&&e.id in t,a=n!=null&&n[e.id]!==void 0;return!r&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!a}function E1e(e,t,n){let r=!t||n.route.id!==t.route.id,a=!e.hasOwnProperty(n.route.id);return r||a}function x1e(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function _p(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function nP(e,t,n,r,a,o){let i;if(e){let d=r[e];$t(d,`No route found to patch children into: routeId = ${e}`),d.children||(d.children=[]),i=d.children}else i=n;let l=[],c=[];if(t.forEach(d=>{let p=i.find(h=>Y5(d,h));p?c.push({existingRoute:p,newRoute:d}):l.push(d)}),l.length>0){let d=Up(l,a,[e||"_","patch",String(i?.length||"0")],r);i.push(...d)}if(o&&c.length>0)for(let d=0;d<c.length;d++){let{existingRoute:p,newRoute:h}=c[d],g=p,[y]=Up([h],a,[],{},!0);Object.assign(g,{element:y.element?y.element:g.element,errorElement:y.errorElement?y.errorElement:g.errorElement,hydrateFallbackElement:y.hydrateFallbackElement?y.hydrateFallbackElement:g.hydrateFallbackElement})}}function Y5(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>t.children?.some(a=>Y5(n,a))):!1}var rP=new WeakMap,W5=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let a=n[t.id];if($t(a,"No route found in manifest"),!a.lazy||typeof a.lazy!="object")return;let o=a.lazy[e];if(!o)return;let i=rP.get(a);i||(i={},rP.set(a,i));let l=i[e];if(l)return l;let c=(async()=>{let d=zSe(e),h=a[e]!==void 0&&e!=="hasErrorBoundary";if(d)Cr(!d,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(h)Cr(!1,`Route "${a.id}" has a static property "${e}" defined. The lazy property will be ignored.`);
826else{let g=await o();g!=null&&(Object.assign(a,{[e]:g}),Object.assign(a,r(a)))}typeof a.lazy=="object"&&(a.lazy[e]=void 0,Object.values(a.lazy).every(g=>g===void 0)&&(a.lazy=void 0))})();return i[e]=c,c},aP=new WeakMap;function w1e(e,t,n,r,a){let o=n[e.id];if($t(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let p=aP.get(o);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let h=(async()=>{$t(typeof e.lazy=="function","No lazy route function found");let g=await e.lazy(),y={};for(let v in g){let x=g[v];if(x===void 0)continue;let C=USe(v),A=o[v]!==void 0&&v!=="hasErrorBoundary";C?Cr(!C,"Route property "+v+" is not a supported property to be returned from a lazy route function. This property will be ignored."):A?Cr(!A,`Route "${o.id}" has a static property "${v}" defined but its lazy function is also returning a value for this property. The lazy route property "${v}" will be ignored.`):y[v]=x}Object.assign(o,y),Object.assign(o,{...r(o),lazy:void 0})})();return aP.set(o,h),h.catch(()=>{}),{lazyRoutePromise:h,lazyHandlerPromise:h}}let i=Object.keys(e.lazy),l=[],c;for(let p of i){if(a&&a.includes(p))continue;let h=W5({key:p,route:e,manifest:n,mapRouteProperties:r});h&&(l.push(h),p===t&&(c=h))}let d=l.length>0?Promise.all(l).then(()=>{}):void 0;return d?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:c}}async function oP(e){let t=e.matches.filter(a=>a.shouldLoad),n={};return(await Promise.all(t.map(a=>a.resolve()))).forEach((a,o)=>{n[t[o].route.id]=a}),n}async function T1e(e){return e.matches.some(t=>t.route.middleware)?Z5(e,()=>oP(e)):oP(e)}function Z5(e,t){return S1e(e,t,r=>{if(j1e(r))throw r;return r},L1e,n);function n(r,a,o){if(o)return Promise.resolve(Object.assign(o.value,{[a]:{type:"error",result:r}}));{let{matches:i}=e,l=Math.min(Math.max(i.findIndex(d=>d.route.id===a),0),Math.max(i.findIndex(d=>d.shouldCallHandler()),0)),c=Fs(i,i[l].route.id).route.id;return Promise.resolve({[c]:{type:"error",result:r}})}}}async function S1e(e,t,n,r,a){let{matches:o,request:i,params:l,context:c,unstable_pattern:d}=e,p=o.flatMap(g=>g.route.middleware?g.route.middleware.map(y=>[g.route.id,y]):[]);return await K5({request:i,params:l,context:c,unstable_pattern:d},p,t,n,r,a)}async function K5(e,t,n,r,a,o,i=0){let{request:l}=e;if(l.signal.aborted)throw l.signal.reason??new Error(`Request aborted: ${l.method} ${l.url}`);let c=t[i];if(!c)return await n();let[d,p]=c,h,g=async()=>{if(h)throw new Error("You may only call `next()` once per middleware");try{return h={value:await K5(e,t,n,r,a,o,i+1)},h.value}catch(y){return h={value:await o(y,d,h)},h.value}};try{let y=await p(e,g),v=y!=null?r(y):void 0;return a(v)?v:h?v??h.value:(h={value:await g()},h.value)}catch(y){return await o(y,d,h)}}function Q5(e,t,n,r,a){let o=W5({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=w1e(r.route,Jr(n.method)?"action":"loader",t,e,a);return{middleware:o,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function PT(e,t,n,r,a,o,i,l,c=null,d){let p=!1,h=Q5(e,t,n,a,o);return{...a,_lazyPromises:h,shouldLoad:l,shouldRevalidateArgs:c,shouldCallHandler(g){return p=!0,c?typeof d=="boolean"?_p(a,{...c,defaultShouldRevalidate:d}):typeof g=="boolean"?_p(a,{...c,defaultShouldRevalidate:g}):_p(a,c):l},resolve(g){let{lazy:y,loader:v,middleware:x}=a.route,C=p||l||g&&!Jr(n.method)&&(y||v),S=x&&x.length>0&&!v&&!y;return C&&(Jr(n.method)||!S)?A1e({request:n,unstable_pattern:r,match:a,lazyHandlerPromise:h?.handler,lazyRoutePromise:h?.route,handlerOverride:g,scopedContext:i}):Promise.resolve({type:"data",result:void 0})}}}function Vu(e,t,n,r,a,o,i,l=null){return r.map(c=>c.route.id!==a.route.id?{...c,shouldLoad:!1,shouldRevalidateArgs:l,shouldCallHandler:()=>!1,_lazyPromises:Q5(e,t,n,c,o),resolve:()=>Promise.resolve({type:"data",result:void 0})}:PT(e,t,n,Sv(r),c,o,i,!0,l))}async function C1e(e,t,n,r,a,o){n.some(d=>d._lazyPromises?.middleware)&&await Promise.all(n.map(d=>d._lazyPromises?.middleware));let i={request:t,unstable_pattern:Sv(n),params:n[0].params,context:a,matches:n},c=await e({...i,fetcherKey:r,runClientMiddleware:d=>{let p=i;
826return Z5(p,()=>d({...p,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(n.flatMap(d=>[d._lazyPromises?.handler,d._lazyPromises?.route]))}catch{}return c}async function A1e({request:e,unstable_pattern:t,match:n,lazyHandlerPromise:r,lazyRoutePromise:a,handlerOverride:o,scopedContext:i}){let l,c,d=Jr(e.method),p=d?"action":"loader",h=g=>{let y,v=new Promise((S,A)=>y=A);c=()=>y(),e.signal.addEventListener("abort",c);let x=S=>typeof g!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${p}" [routeId: ${n.route.id}]`)):g({request:e,unstable_pattern:t,params:n.params,context:i},...S!==void 0?[S]:[]),C=(async()=>{try{return{type:"data",result:await(o?o(A=>x(A)):x())}}catch(S){return{type:"error",result:S}}})();return Promise.race([C,v])};try{let g=d?n.route.action:n.route.loader;if(r||a)if(g){let y,[v]=await Promise.all([h(g).catch(x=>{y=x}),r,a]);if(y!==void 0)throw y;l=v}else{await r;let y=d?n.route.action:n.route.loader;if(y)[l]=await Promise.all([h(y),a]);else if(p==="action"){let v=new URL(e.url),x=v.pathname+v.search;throw mo(405,{method:e.method,pathname:x,routeId:n.route.id})}else return{type:"data",result:void 0}}else if(g)l=await h(g);else{let y=new URL(e.url),v=y.pathname+y.search;throw mo(404,{pathname:v})}}catch(g){return{type:"error",result:g}}finally{c&&e.signal.removeEventListener("abort",c)}return l}async function k1e(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function N1e(e){let{result:t,type:n}=e;if(UC(t)){let r;try{r=await k1e(t)}catch(a){return{type:"error",error:a}}return n==="error"?{type:"error",error:new Dh(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?dP(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:I1e(t),statusCode:Fp(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Fp(t)?t.status:void 0}:dP(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function R1e(e,t,n,r,a){let o=e.headers.get("Location");if($t(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!MC(o)){let i=r.slice(0,r.findIndex(l=>l.route.id===n)+1);o=LT(new URL(t.url),i,a,o),e.headers.set("Location",o)}return e}function iP(e,t,n,r){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(MC(e)){let o=e,i=o.startsWith("//")?new URL(t.protocol+o):new URL(o);if(a.includes(i.protocol))throw new Error("Invalid redirect location");let l=Yo(i.pathname,n)!=null;if(i.origin===t.origin&&l)return i.pathname+i.search+i.hash}try{let o=r.createURL(e);if(a.includes(o.protocol))throw new Error("Invalid redirect location")}catch{}return e}function Tu(e,t,n,r){let a=e.createURL(X5(t)).toString(),o={signal:n};if(r&&Jr(r.formMethod)){let{formMethod:i,formEncType:l}=r;o.method=i.toUpperCase(),l==="application/json"?(o.headers=new Headers({"Content-Type":l}),o.body=JSON.stringify(r.json)):l==="text/plain"?o.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?o.body=MT(r.formData):o.body=r.formData}return new Request(a,o)}function MT(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function sP(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function O1e(e,t,n,r=!1,a=!1){let o={},i=null,l,c=!1,d={},p=n&&Va(n[1])?n[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in t))return;let g=h.route.id,y=t[g];if($t(!Gl(y),"Cannot handle redirect results in processLoaderData"),Va(y)){let v=y.error;if(p!==void 0&&(v=p,p=void 0),i=i||{},a)i[g]=v;else{let x=Fs(e,g);i[x.route.id]==null&&(i[x.route.id]=v)}r||(o[g]=q5),c||(c=!0,l=Fp(y.error)?y.error.status:500),y.headers&&(d[g]=y.headers)}else o[g]=y.data,y.statusCode&&y.statusCode!==200&&!c&&(l=y.statusCode),y.headers&&(d[g]=y.headers)}),p!==void 0&&n&&(i={[n[0]]:p},n[2]&&(o[n[2]]=void 0)),{loaderData:o,errors:i,statusCode:l||200,loaderHeaders:d}}function lP(e,t,n,r,a,o){let{loaderData:i,errors:l}=O1e(t,n,r);return a.filter(c=>!c.matches||c.matches.some(d=>
826d.shouldLoad)).forEach(c=>{let{key:d,match:p,controller:h}=c;if(h&&h.signal.aborted)return;let g=o[d];if($t(g,"Did not find corresponding fetcher result"),Va(g)){let y=Fs(e.matches,p?.route.id);l&&l[y.route.id]||(l={...l,[y.route.id]:g.error}),e.fetchers.delete(d)}else if(Gl(g))$t(!1,"Unhandled fetcher revalidation redirect");else{let y=Gi(g.data);e.fetchers.set(d,y)}}),{loaderData:i,errors:l}}function cP(e,t,n,r){let a=Object.entries(t).filter(([,o])=>o!==q5).reduce((o,[i,l])=>(o[i]=l,o),{});for(let o of n){let i=o.route.id;if(!t.hasOwnProperty(i)&&e.hasOwnProperty(i)&&o.route.loader&&(a[i]=e[i]),r&&r.hasOwnProperty(i))break}return a}function uP(e){return e?Va(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Fs(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Og(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function mo(e,{pathname:t,routeId:n,method:r,type:a,message:o}={}){let i="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(i="Bad Request",r&&t&&n?l=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(i="Forbidden",l=`Route "${n}" does not match URL "${t}"`):e===404?(i="Not Found",l=`No route matches URL "${t}"`):e===405&&(i="Method Not Allowed",r&&t&&n?l=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(l=`Invalid request method "${r.toUpperCase()}"`)),new Dh(e||500,i,new Error(l),!0)}function Dg(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,a]=t[n];if(Gl(a))return{key:r,result:a}}}function X5(e){let t=typeof e=="string"?vc(e):e;return pi({...t,hash:""})}function D1e(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function I1e(e){return new Dh(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function L1e(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,n])=>typeof t=="string"&&$1e(n))}function $1e(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function P1e(e){return UC(e.result)&&G5.has(e.result.status)}function Va(e){return e.type==="error"}function Gl(e){return(e&&e.type)==="redirect"}function dP(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function UC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function M1e(e){return G5.has(e)}function j1e(e){return UC(e)&&M1e(e.status)&&e.headers.has("Location")}function z1e(e){return m1e.has(e.toUpperCase())}function Jr(e){return p1e.has(e.toUpperCase())}function FC(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function oy(e,t){let n=typeof t=="string"?vc(t).search:t.search;if(e[e.length-1].route.index&&FC(n||""))return e[e.length-1];let r=z5(e);return r[r.length-1]}function fP(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:o,json:i}=e;if(!(!t||!n||!r)){if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function Rx(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function B1e(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function qf(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function U1e(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Gi(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function F1e(e,t){try{let n=e.sessionStorage.getItem(V5);if(n){let r=JSON.parse(n);for(let[a,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function H1e(e,t){if(t.size>0){let n={};for(let[r,a]of t)n[r]=[...a];try{e.sessionStorage.setItem(V5,JSON.stringify(n))}catch(r){Cr(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function pP(){let e,t,n=new Promise((r,a)=>{e=async o=>{r(o);try{await n}catch{}},t=async o=>{a(o);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Ad=b.createContext(null);Ad.displayName="DataRouter";var Cv=b.createContext(null);Cv.displayName="DataRouterState";var G1e=b.createContext(!1),J5=b.createContext({isTransitioning:!1});J5.displayName="ViewTransition";var V1e=b.createContext(new Map);V1e.displayName="Fetchers";var q1e=b.createContext(null);
826q1e.displayName="Await";var Qo=b.createContext(null);Qo.displayName="Navigation";var HC=b.createContext(null);HC.displayName="Location";var os=b.createContext({outlet:null,matches:[],isDataRoute:!1});os.displayName="Route";var GC=b.createContext(null);GC.displayName="RouteError";var eH="REACT_ROUTER_ERROR",Y1e="REDIRECT",W1e="ROUTE_ERROR_RESPONSE";function Z1e(e){if(e.startsWith(`${eH}:${Y1e}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function K1e(e){if(e.startsWith(`${eH}:${W1e}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Dh(t.status,t.statusText,t.data)}catch{}}function Q1e(e,{relative:t}={}){$t(Av(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=b.useContext(Qo),{hash:a,pathname:o,search:i}=Ih(e,{relative:t}),l=o;return n!=="/"&&(l=o==="/"?n:ui([n,o])),r.createHref({pathname:l,search:i,hash:a})}function Av(){return b.useContext(HC)!=null}function _c(){return $t(Av(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(HC).location}var tH="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function nH(e){b.useContext(Qo).static||b.useLayoutEffect(e)}function X1e(){let{isDataRoute:e}=b.useContext(os);return e?dCe():J1e()}function J1e(){$t(Av(),"useNavigate() may be used only in the context of a <Router> component.");let e=b.useContext(Ad),{basename:t,navigator:n}=b.useContext(Qo),{matches:r}=b.useContext(os),{pathname:a}=_c(),o=JSON.stringify(jC(r)),i=b.useRef(!1);return nH(()=>{i.current=!0}),b.useCallback((c,d={})=>{if(Cr(i.current,tH),!i.current)return;if(typeof c=="number"){n.go(c);return}let p=zC(c,JSON.parse(o),a,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:ui([t,p.pathname])),(d.replace?n.replace:n.push)(p,d.state,d)},[t,n,o,a,e])}b.createContext(null);function Ih(e,{relative:t}={}){let{matches:n}=b.useContext(os),{pathname:r}=_c(),a=JSON.stringify(jC(n));return b.useMemo(()=>zC(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function eCe(e,t,n,r,a){$t(Av(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=b.useContext(Qo),{matches:i}=b.useContext(os),l=i[i.length-1],c=l?l.params:{},d=l?l.pathname:"/",p=l?l.pathnameBase:"/",h=l&&l.route;{let A=h&&h.path||"";aH(d,!h||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 827 828Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let g=_c(),y;y=g;let v=y.pathname||"/",x=v;if(p!=="/"){let A=p.replace(/^\//,"").split("/");x="/"+v.replace(/^\//,"").split("/").slice(A.length).join("/")}let C=Yi(e,{pathname:x});return Cr(h||C!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Cr(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),oCe(C&&C.map(A=>Object.assign({},A,{params:Object.assign({},c,A.params),pathname:ui([p,o.encodeLocation?o.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?p:ui([p,o.encodeLocation?o.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),i,n,r,a)}function tCe(){let e=uCe(),t=Fp(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=b.createElement(b.Fragment,null,b.createElement("p",null,"ð¿ Hey developer ð"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:o},"ErrorBoundary")," or"," ",b.createElement("code",{style:o},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application
828Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:a},n):null,i)}var nCe=b.createElement(tCe,null),rH=class extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=K1e(e.digest);n&&(e=n)}let t=e!==void 0?b.createElement(os.Provider,{value:this.props.routeContext},b.createElement(GC.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?b.createElement(rCe,{error:e},t):t}};rH.contextType=G1e;var Ox=new WeakMap;function rCe({children:e,error:t}){let{basename:n}=b.useContext(Qo);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Z1e(t.digest);if(r){let a=Ox.get(t);if(a)throw a;let o=U5(r.location,n);if(B5&&!Ox.get(t))if(o.isExternal||r.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:r.replace}));throw Ox.set(t,i),i}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function aCe({routeContext:e,match:t,children:n}){let r=b.useContext(Ad);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),b.createElement(os.Provider,{value:e},n)}function oCe(e,t=[],n=null,r=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,i=n?.errors;if(i!=null){let p=o.findIndex(h=>h.route.id&&i?.[h.route.id]!==void 0);$t(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,p+1))}let l=!1,c=-1;if(n)for(let p=0;p<o.length;p++){let h=o[p];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=p),h.route.id){let{loaderData:g,errors:y}=n,v=h.route.loader&&!g.hasOwnProperty(h.route.id)&&(!y||y[h.route.id]===void 0);if(h.route.lazy||v){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}let d=n&&r?(p,h)=>{r(p,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:Sv(n.matches),errorInfo:h})}:void 0;return o.reduceRight((p,h,g)=>{let y,v=!1,x=null,C=null;n&&(y=i&&h.route.id?i[h.route.id]:void 0,x=h.route.errorElement||nCe,l&&(c<0&&g===0?(aH("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,C=null):c===g&&(v=!0,C=h.route.hydrateFallbackElement||null)));let S=t.concat(o.slice(0,g+1)),A=()=>{let k;return y?k=x:v?k=C:h.route.Component?k=b.createElement(h.route.Component,null):h.route.element?k=h.route.element:k=p,b.createElement(aCe,{match:h,routeContext:{outlet:p,matches:S,isDataRoute:n!=null},children:k})};return n&&(h.route.ErrorBoundary||h.route.errorElement||g===0)?b.createElement(rH,{location:n.location,revalidation:n.revalidation,component:x,error:y,children:A(),routeContext:{outlet:null,matches:S,isDataRoute:!0},onError:d}):A()},null)}function VC(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function iCe(e){let t=b.useContext(Ad);return $t(t,VC(e)),t}function sCe(e){let t=b.useContext(Cv);return $t(t,VC(e)),t}function lCe(e){let t=b.useContext(os);return $t(t,VC(e)),t}function qC(e){let t=lCe(e),n=t.matches[t.matches.length-1];return $t(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function cCe(){return qC("useRouteId")}function uCe(){let e=b.useContext(GC),t=sCe("useRouteError"),n=qC("useRouteError");return e!==void 0?e:t.errors?.[n]}function dCe(){let{router:e}=iCe("useNavigate"),t=qC("useNavigate"),n=b.useRef(!1);return nH(()=>{n.current=!0}),b.useCallback(async(a,o={})=>{Cr(n.current,tH),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var hP={};function aH(e,t,n){!t&&!hP[e]&&(hP[e]=!0,Cr(!1,n))}function fCe(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Cr(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:b.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Cr(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:b.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Cr(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:b.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var pCe=["HydrateFallback","hydrateFallbackElement"];b.memo(hCe);function hCe({routes:e,future:t,state:n,onError:r}){return eCe(e,void 0,n,r,t)}var iy="get",sy="application/x-www-form-urlencoded";function kv(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function mCe(e){return kv(e)&&e.tagName.toLowerCase()==="button"}function gCe(e){return kv(e)&&e.tagName.toLowerCase()==="form"}function yCe(e){return kv(e)&&e.tagName.toLowerCase()==="input"}function bCe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function vCe(e,t){return e.button===0&&(!t||t==="_self")&&!bCe(e)}var Ig=null;function _Ce(){if(Ig===null)try{new FormData(document.createElement("form"),0),Ig=!1}catch{Ig=!0}return Ig}var ECe=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Dx(e){return e!=null&&!ECe.has(e)?(Cr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${sy}"`),null):e}function xCe(e,t){let n,r,a,o,i;if(gCe(e)){let l=e.getAttribute("action");r=l?Yo(l,t):null,n=e.getAttribute("method")||iy,a=Dx(e.getAttribute("enctype"))||sy,o=new FormData(e)}else if(mCe(e)||yCe(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||l.getAttribute("action");if(r=c?Yo(c,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||iy,a=Dx(e.getAttribute("formenctype"))||Dx(l.getAttribute("enctype"))||sy,o=new FormData(l,e),!_Ce()){let{name:d,type:p,value:h}=e;if(p==="image"){let g=d?`${d}.`:"";o.append(`${g}x`,"0"),o.append(`${g}y`,"0")}
828else d&&o.append(d,h)}}else{if(kv(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=iy,r=null,a=sy,i=e}return o&&a==="text/plain"&&(i=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function YC(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function wCe(e,t,n,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:a.pathname==="/"?a.pathname=`_root.${r}`:t&&Yo(a.pathname,t)==="/"?a.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${r}`,a}async function TCe(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function SCe(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function CCe(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let i=await TCe(o,n);return i.links?i.links():[]}return[]}));return RCe(r.flat(1).filter(SCe).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function mP(e,t,n,r,a,o){let i=(c,d)=>n[d]?c.route.id!==n[d].route.id:!0,l=(c,d)=>n[d].pathname!==c.pathname||n[d].route.path?.endsWith("*")&&n[d].params["*"]!==c.params["*"];return o==="assets"?t.filter((c,d)=>i(c,d)||l(c,d)):o==="data"?t.filter((c,d)=>{let p=r.routes[c.route.id];if(!p||!p.hasLoader)return!1;if(i(c,d)||l(c,d))return!0;if(c.route.shouldRevalidate){let h=c.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function ACe(e,t,{includeHydrateFallback:n}={}){return kCe(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function kCe(e){return[...new Set(e)]}function NCe(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function RCe(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(NCe(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function oH(){let e=b.useContext(Ad);return YC(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function OCe(){let e=b.useContext(Cv);return YC(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var WC=b.createContext(void 0);WC.displayName="FrameworkContext";function iH(){let e=b.useContext(WC);return YC(e,"You must render this element inside a <HydratedRouter> element"),e}function DCe(e,t){let n=b.useContext(WC),[r,a]=b.useState(!1),[o,i]=b.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:d,onMouseLeave:p,onTouchStart:h}=t,g=b.useRef(null);b.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let x=S=>{S.forEach(A=>{i(A.isIntersecting)})},C=new IntersectionObserver(x,{threshold:.5});return g.current&&C.observe(g.current),()=>{C.disconnect()}}},[e]),b.useEffect(()=>{if(r){let x=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(x)}}},[r]);let y=()=>{a(!0)},v=()=>{a(!1),i(!1)};return n?e!=="intent"?[o,g,{}]:[o,g,{onFocus:Yf(l,y),onBlur:Yf(c,v),onMouseEnter:Yf(d,y),onMouseLeave:Yf(p,v),onTouchStart:Yf(h,y)}]:[!1,g,{}]}function Yf(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function ICe({page:e,...t}){let{router:n}=oH(),r=b.useMemo(()=>Yi(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?b.createElement($Ce,{page:e,matches:r,...t}):null}function LCe(e){let{manifest:t,routeModules:n}=iH(),[r,a]=b.useState([]);return b.useEffect(()=>{let o=!1;return CCe(e,t,n).then(i=>{o||a(i)}),()=>{o=!0}},[e,t,n]),r}function $Ce({page:e,matches:t,...n}){let r=_c(),{future:a,manifest:o,routeModules:i}=iH(),{basename:l}=oH(),{loaderData:c,matches:d}=OCe(),p=b.useMemo(()=>mP(e,t,d,o,r,"data"),[e,t,d,o,r]),h=b.useMemo(()=>mP(e,t,d,o,r,"assets"),[e,t,d,o,r]),g=b.useMemo(()=>
828{if(e===r.pathname+r.search+r.hash)return[];let x=new Set,C=!1;if(t.forEach(A=>{let k=o.routes[A.route.id];!k||!k.hasLoader||(!p.some(N=>N.route.id===A.route.id)&&A.route.id in c&&i[A.route.id]?.shouldRevalidate||k.hasClientLoader?C=!0:x.add(A.route.id))}),x.size===0)return[];let S=wCe(e,l,a.unstable_trailingSlashAwareDataRequests,"data");return C&&x.size>0&&S.searchParams.set("_routes",t.filter(A=>x.has(A.route.id)).map(A=>A.route.id).join(",")),[S.pathname+S.search]},[l,a.unstable_trailingSlashAwareDataRequests,c,r,o,p,t,e,i]),y=b.useMemo(()=>ACe(h,o),[h,o]),v=LCe(h);return b.createElement(b.Fragment,null,g.map(x=>b.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),y.map(x=>b.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),v.map(({key:x,link:C})=>b.createElement("link",{key:x,nonce:n.nonce,...C,crossOrigin:C.crossOrigin??n.crossOrigin})))}function PCe(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var MCe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{MCe&&(window.__reactRouterVersion="7.13.0")}catch{}function sH(e,t){return v1e({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:$Se({window:t?.window}),hydrationData:t?.hydrationData||jCe(),routes:e,mapRouteProperties:fCe,hydrationRouteProperties:pCe,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function jCe(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:zCe(e.errors)}),e}function zCe(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,a]of t)if(a&&a.__type==="RouteErrorResponse")n[r]=new Dh(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let o=new Error(a.message);o.stack="",n[r]=o}}else n[r]=a;return n}var lH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cH=b.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:o,replace:i,state:l,target:c,to:d,preventScrollReset:p,viewTransition:h,unstable_defaultShouldRevalidate:g,...y},v){let{basename:x,unstable_useTransitions:C}=b.useContext(Qo),S=typeof d=="string"&&lH.test(d),A=U5(d,x);d=A.to;let k=Q1e(d,{relative:a}),[N,O,I]=DCe(r,y),D=HCe(d,{replace:i,state:l,target:c,preventScrollReset:p,relative:a,viewTransition:h,unstable_defaultShouldRevalidate:g,unstable_useTransitions:C});function U(P){t&&t(P),P.defaultPrevented||D(P)}let J=b.createElement("a",{...y,...I,href:A.absoluteURL||k,onClick:A.isExternal||o?t:U,ref:PCe(v,O),target:c,"data-discover":!S&&n==="render"?"true":void 0});return N&&!S?b.createElement(b.Fragment,null,J,b.createElement(ICe,{page:k})):J});cH.displayName="Link";var BCe=b.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:o,to:i,viewTransition:l,children:c,...d},p){let h=Ih(i,{relative:d.relative}),g=_c(),y=b.useContext(Cv),{navigator:v,basename:x}=b.useContext(Qo),C=y!=null&&WCe(h)&&l===!0,S=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,A=g.pathname,k=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(A=A.toLowerCase(),k=k?k.toLowerCase():null,S=S.toLowerCase()),k&&x&&(k=Yo(k,x)||k);const N=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let O=A===S||!a&&A.startsWith(S)&&A.charAt(N)==="/",I=k!=null&&(k===S||!a&&k.startsWith(S)&&k.charAt(S.length)==="/"),D={isActive:O,isPending:I,isTransitioning:C},U=O?t:void 0,J;typeof r=="function"?J=r(D):J=[r,O?"active":null,I?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let P=typeof o=="function"?o(D):o;return b.createElement(cH,{...d,"aria-current":U,className:J,ref:p,style:P,to:i,viewTransition:l},typeof c=="function"?c(D):c)});BCe.displayName="NavLink";var UCe=b.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:i=iy,action:l,onSubmit:c,relative:d,preventScrollReset:p,viewTransition:h,unstable_defaultShouldRevalidate:g,...y},v)=>{let{unstable_useTransitions:x}=b.useContext(Qo),C=qCe(),S=YCe(l,{relative:d}),A=i.toLowerCase()==="get"?"get":"post",k=typeof l=="string"&&lH.test(l),N=O=>{if(c&&c(O),O.defaultPrevented)return;O.preventDefault();let I=O.nativeEvent.submitter,D=I?.getAttribute("formmethod")||i,U=()=>C(I||O.currentTarget,{fetcherKey:t,method:D,navigate:n,replace:a,state:o,relative:d,preventScrollReset:p,viewTransition:h,unstable_defaultShouldRevalidate:g});x&&n!==!1?b.startTransition(()=>U()):U()};return b.createElement("form",{ref:v,method:A,action:S,onSubmit:r?c:N,...y,"data-discover":!k&&e==="render"?"true":void 0})});UCe.displayName="Form";function FCe(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function uH(e){let t=b.useContext(Ad);return $t(t,FCe(e)),t}function HCe(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:i,unstable_defaultShouldRevalidate:l,unstable_useTransitions:c}={}){let d=X1e(),p=_c(),h=Ih(e,{relative:o});return b.useCallback(g=>{if(vCe(g,t)){g.preventDefault();let y=n!==void 0?n:pi(p)===pi(h),v=()=>d(e,{replace:y,state:r,preventScrollReset:a,relative:o,viewTransition:i,unstable_defaultShouldRevalidate:l});c?b.startTransition(()=>v()):v()}},[p,d,h,n,r,t,e,a,o,i,l,c])}var GCe=0,VCe=()=>`__${String(++GCe)}__`;function qCe(){let{router:e}
828=uH("useSubmit"),{basename:t}=b.useContext(Qo),n=cCe(),r=e.fetch,a=e.navigate;return b.useCallback(async(o,i={})=>{let{action:l,method:c,encType:d,formData:p,body:h}=xCe(o,t);if(i.navigate===!1){let g=i.fetcherKey||VCe();await r(g,n,i.action||l,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:p,body:h,formMethod:i.method||c,formEncType:i.encType||d,flushSync:i.flushSync})}else await a(i.action||l,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:p,body:h,formMethod:i.method||c,formEncType:i.encType||d,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[r,a,t,n])}function YCe(e,{relative:t}={}){let{basename:n}=b.useContext(Qo),r=b.useContext(os);$t(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...Ih(e||".",{relative:t})},i=_c();if(e==null){o.search=i.search;let l=new URLSearchParams(o.search),c=l.getAll("index");if(c.some(p=>p==="")){l.delete("index"),c.filter(h=>h).forEach(h=>l.append("index",h));let p=l.toString();o.search=p?`?${p}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:ui([n,o.pathname])),pi(o)}function WCe(e,{relative:t}={}){let n=b.useContext(J5);$t(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=uH("useViewTransitionState"),a=Ih(e,{relative:t});if(!n.isTransitioning)return!1;let o=Yo(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Yo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return rb(a.pathname,i)!=null||rb(a.pathname,o)!=null}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var ZCe=class extends id{#e;#t=void 0;#n;#a;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),py(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Kl(n.mutationKey)!==Kl(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#o()}mutate(t,n){return this.#a=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??Z3();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){Sr.batch(()=>{if(this.#a&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#a.onSuccess?.(t.data,n,r,a)}catch(o){Promise.reject(o)}
828try{this.#a.onSettled?.(t.data,null,n,r,a)}catch(o){Promise.reject(o)}}else if(t?.type==="error"){try{this.#a.onError?.(t.error,n,r,a)}catch(o){Promise.reject(o)}try{this.#a.onSettled?.(void 0,t.error,n,r,a)}catch(o){Promise.reject(o)}}}this.listeners.forEach(n=>{n(this.#t)})})}};function KCe(e,t){const n=Jp(t),[r]=b.useState(()=>new ZCe(n,e));b.useEffect(()=>{r.setOptions(e)},[r,e]);const a=b.useSyncExternalStore(b.useCallback(i=>r.subscribe(Sr.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=b.useCallback((i,l)=>{r.mutate(i,l).catch(Ir)},[r]);if(a.error&&wS(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}var Lh=e=>e.type==="checkbox",Vl=e=>e instanceof Date,Sa=e=>e==null;const dH=e=>typeof e=="object";var hr=e=>!Sa(e)&&!Array.isArray(e)&&dH(e)&&!Vl(e),fH=e=>hr(e)&&e.target?Lh(e.target)?e.target.checked:e.target.value:e,QCe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,pH=(e,t)=>e.has(QCe(t)),XCe=e=>{const t=e.constructor&&e.constructor.prototype;return hr(t)&&t.hasOwnProperty("isPrototypeOf")},ZC=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function yn(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(ZC&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(hr(e)&&XCe(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=yn(e[a]));return r}var Nv=e=>/^\w*$/.test(e),hn=e=>e===void 0,Rv=e=>Array.isArray(e)?e.filter(Boolean):[],KC=e=>Rv(e.replace(/["|']|\]/g,"").split(/\.|\[/)),He=(e,t,n)=>{if(!t||!hr(e))return n;const r=(Nv(t)?[t]:KC(t)).reduce((a,o)=>Sa(a)?a:a[o],e);return hn(r)||r===e?hn(e[t])?n:e[t]:r},qa=e=>typeof e=="boolean",pa=e=>typeof e=="function",pn=(e,t,n)=>{let r=-1;const a=Nv(t)?[t]:KC(t),o=a.length,i=o-1;for(;++r<o;){const l=a[r];let c=n;if(r!==i){const d=e[l];c=hr(d)||Array.isArray(d)?d:isNaN(+a[r+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const ab={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_o={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ui={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},QC=ce.createContext(null);QC.displayName="HookFormControlContext";const Ov=()=>ce.useContext(QC);var hH=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==_o.all&&(t._proxyFormState[i]=!r||_o.all),n&&(n[i]=!0),e[i]}});return a};const Dv=typeof window<"u"?ce.useLayoutEffect:ce.useEffect;function JCe(e){const t=Ov(),{control:n=t,disabled:r,name:a,exact:o}=e||{},[i,l]=ce.useState(n._formState),c=ce.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Dv(()=>n._subscribe({name:a,formState:c.current,exact:o,callback:d=>{!r&&l({...n._formState,...d})}}),[a,r,o]),ce.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),ce.useMemo(()=>hH(i,n,c.current,!1),[i,n])}var Wa=e=>typeof e=="string",jT=(e,t,n,r,a)=>Wa(e)?(r&&t.watch.add(e),He(n,e,a)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),He(n,o))):(r&&(t.watchAll=!0),n),zT=e=>Sa(e)||!dH(e);function jo(e,t,n=new WeakSet){if(zT(e)||zT(t))return Object.is(e,t);if(Vl(e)&&Vl(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const o of r){const i=e[o];if(!a.includes(o))return!1;if(o!=="ref"){const l=t[o];if(Vl(i)&&Vl(l)||hr(i)&&hr(l)||Array.isArray(i)&&Array.isArray(l)?!jo(i,l,n):!Object.is(i,l))return!1}}return!0}function eAe(e){const t=Ov(),{control:n=t,name:r,defaultValue:a,disabled:o,exact:i,compute:l}=e||{},c=ce.useRef(a),d=ce.useRef(l),p=ce.useRef(void 0),h=ce.useRef(n),g=ce.useRef(r);d.current=l;const[y,v]=ce.useState(()=>{const N=n._getWatch(r,c.current);return d.current?d.current(N):N}),x=ce.useCallback(N=>{const O=jT(r,n._names,N||n._formValues,!1,c.current);return d.current?d.current(O):O},[n._formValues,n._names,r]),C=ce.useCallback(N=>{if(!o){const O=jT(r,n._names,N||n._formValues,!1,c.current);if(d.current){const I=d.current(O);jo(I,p.current)||(v(I),p.current=I)}else v(O)}},[n._formValues,n._names,o,r]);Dv(()=>((h.current!==n||!jo(g.current,r))&&(h.current=n,g.current=r,C()),n._subscribe({name:r,formState:{values:!0},exact:i,callback:N=>{C(N.values)}})),[n,i,r,C]),ce.useEffect(()=>n._removeUnmounted());const S=h.current!==n,A=g.current,k=ce.useMemo(()=>
vendor: 6,115 bytes, line 828
828{if(o)return null;const N=!S&&!jo(A,r);return S||N?x():null},[o,S,r,A,x]);return k!==null?k:y}function tAe(e){const t=Ov(),{name:n,disabled:r,control:a=t,shouldUnregister:o,defaultValue:i,exact:l=!0}=e,c=pH(a._names.array,n),d=ce.useMemo(()=>He(a._formValues,n,He(a._defaultValues,n,i)),[a,n,i]),p=eAe({control:a,name:n,defaultValue:d,exact:l}),h=JCe({control:a,name:n,exact:l}),g=ce.useRef(e),y=ce.useRef(void 0),v=ce.useRef(a.register(n,{...e.rules,value:p,...qa(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;const x=ce.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!He(h.errors,n)},isDirty:{enumerable:!0,get:()=>!!He(h.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!He(h.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!He(h.validatingFields,n)},error:{enumerable:!0,get:()=>He(h.errors,n)}}),[h,n]),C=ce.useCallback(N=>v.current.onChange({target:{value:fH(N),name:n},type:ab.CHANGE}),[n]),S=ce.useCallback(()=>v.current.onBlur({target:{value:He(a._formValues,n),name:n},type:ab.BLUR}),[n,a._formValues]),A=ce.useCallback(N=>{const O=He(a._fields,n);O&&O._f&&N&&(O._f.ref={focus:()=>pa(N.focus)&&N.focus(),select:()=>pa(N.select)&&N.select(),setCustomValidity:I=>pa(N.setCustomValidity)&&N.setCustomValidity(I),reportValidity:()=>pa(N.reportValidity)&&N.reportValidity()})},[a._fields,n]),k=ce.useMemo(()=>({name:n,value:p,...qa(r)||h.disabled?{disabled:h.disabled||r}:{},onChange:C,onBlur:S,ref:A}),[n,r,h.disabled,C,S,A,p]);return ce.useEffect(()=>{const N=a._options.shouldUnregister||o,O=y.current;O&&O!==n&&!c&&a.unregister(O),a.register(n,{...g.current.rules,...qa(g.current.disabled)?{disabled:g.current.disabled}:{}});const I=(D,U)=>{const J=He(a._fields,D);J&&J._f&&(J._f.mount=U)};if(I(n,!0),N){const D=yn(He(a._options.defaultValues,n,g.current.defaultValue));pn(a._defaultValues,n,D),hn(He(a._formValues,n))&&pn(a._formValues,n,D)}return!c&&a.register(n),y.current=n,()=>{(c?N&&!a._state.action:N)?a.unregister(n):I(n,!1)}},[n,a,c,o]),ce.useEffect(()=>{a._setDisabledField({disabled:r,name:n})},[r,n,a]),ce.useMemo(()=>({field:k,formState:h,fieldState:x}),[k,h,x])}const gP=e=>e.render(tAe(e)),XC=ce.createContext(null);XC.displayName="HookFormContext";const kd=()=>ce.useContext(XC),nAe=e=>{const{children:t,watch:n,getValues:r,getFieldState:a,setError:o,clearErrors:i,setValue:l,trigger:c,formState:d,resetField:p,reset:h,handleSubmit:g,unregister:y,control:v,register:x,setFocus:C,subscribe:S}=e;return ce.createElement(XC.Provider,{value:ce.useMemo(()=>({watch:n,getValues:r,getFieldState:a,setError:o,clearErrors:i,setValue:l,trigger:c,formState:d,resetField:p,reset:h,handleSubmit:g,unregister:y,control:v,register:x,setFocus:C,subscribe:S}),[i,v,d,a,r,g,x,h,p,o,C,l,S,c,y,n])},ce.createElement(QC.Provider,{value:v},t))};var rAe=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},Aa=e=>Array.isArray(e)?e:[e],yP=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(n=>n!==t)}}),unsubscribe:()=>{e=[]}}};function mH(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const a=e[r],o=t[r];if(a&&hr(a)&&o){const i=mH(a,o);hr(i)&&(n[r]=i)}else e[r]&&(n[r]=o)}return n}var Xr=e=>hr(e)&&!Object.keys(e).length,JC=e=>e.type==="file",ob=e=>{if(!ZC)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},gH=e=>e.type==="select-multiple",eA=e=>e.type==="radio",aAe=e=>eA(e)||Lh(e),Ix=e=>ob(e)&&e.isConnected;function oAe(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=hn(e)?r++:e[t[r++]];return e}function iAe(e){for(const t in e)if(e.hasOwnProperty(t)&&!hn(e[t]))return!1;return!0}function Zn(e,t){const n=Array.isArray(t)?t:Nv(t)?[t]:KC(t),r=n.length===1?e:oAe(e,n),a=n.length-1,o=n[a];return r&&delete r[o],a!==0&&(hr(r)&&Xr(r)||Array.isArray(r)&&iAe(r))&&Zn(e,n.slice(0,-1)),e}var sAe=e=>{for(const t in e)if(pa(e[t]))return!0;return!1};function yH(e){return Array.isArray(e)||hr(e)&&!sAe(e)}function BT(e,t={}){for(const n in e){const r=e[n];yH(r)?(t[n]=Array.isArray(r)?[]:{},BT(r,t[n])):hn(r)||(t[n]=!0)}return t}function Su(e,t,n){n||(n=BT(t));for(const r in e){const a=e[r];if(yH(a))hn(t)||zT(n[r])?n[r]=BT(a,Array.isArray(a)?[]:{}):Su(a,Sa(t)?{}:t[r],n[r]);else{const o=t[r];n[r]=!jo(a,o)}}return n}const bP={value:!1,isValid:!1},vP={value:!0,isValid:!0};var bH=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!hn(e[0].attributes.value)?hn(e[0].value)||e[0].value===""?vP:{value:e[0].value,isValid:!0}:vP:bP}return bP},vH=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>hn(e)?e:t?e===""?NaN:e&&+e:n&&Wa(e)?new Date(e):r?r(e):e;const _P={isValid:!1,value:null};var _H=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,_P):_P;function EP(e){const t=e.ref;return JC(t)?t.files:eA(t)?_H(e.refs).value:gH(t)?[...t.selectedOptions].map(({value:n})=>n):Lh(t)?bH(e.refs).value:vH(hn(t.value)?e.ref.value:t.value,e)}var lAe=(e,t,n,r)=>{const a={};for(const o of e){const i=He(t,o);i&&pn(a,o,i._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},ib=e=>e instanceof RegExp,Wf=e=>hn(e)?e:ib(e)?e.source:hr(e)?ib(e.value)?e.value.source:e.value:e,Iu=e=>({isOnSubmit:!e||e===_o.onSubmit,isOnBlur:e===_o.onBlur,isOnChange:e===_o.onChange,isOnAll:e===_o.all,isOnTouch:e===_o.onTouched});const xP="AsyncFunction";var cAe=e=>!!e&&!!e.validate&&!!(pa(e.validate)&&e.validate.constructor.name===xP||hr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===xP)),uAe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),UT=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const qu=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const o=He(e,a);if(o){const{_f:i,...l}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],a)&&!r||i.ref&&t(i.ref,i.name)&&!r)return!0;
vendor: 4,162 bytes, line 828
828if(qu(l,t))break}else if(hr(l)&&qu(l,t))break}}};function wP(e,t,n){const r=He(e,n);if(r||Nv(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const o=a.join("."),i=He(t,o),l=He(e,o);if(i&&!Array.isArray(i)&&n!==o)return{name:n};if(l&&l.type)return{name:o,error:l};if(l&&l.root&&l.root.type)return{name:`${o}.root`,error:l.root};a.pop()}return{name:n}}var dAe=(e,t,n,r)=>{n(e);const{name:a,...o}=e;return Xr(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!r||_o.all))},fAe=(e,t,n)=>!e||!t||e===t||Aa(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),pAe=(e,t,n,r,a)=>a.isOnAll?!1:!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:(n?r.isOnChange:a.isOnChange)?e:!0,hAe=(e,t)=>!Rv(He(e,t)).length&&Zn(e,t),EH=(e,t,n)=>{const r=Aa(He(e,n));return pn(r,"root",t[n]),pn(e,n,r),e};function TP(e,t,n="validate"){if(Wa(e)||Array.isArray(e)&&e.every(Wa)||qa(e)&&!e)return{type:n,message:Wa(e)?e:"",ref:t}}var mu=e=>hr(e)&&!ib(e)?e:{value:e,message:""},FT=async(e,t,n,r,a,o)=>{const{ref:i,refs:l,required:c,maxLength:d,minLength:p,min:h,max:g,pattern:y,validate:v,name:x,valueAsNumber:C,mount:S}=e._f,A=He(n,x);if(!S||t.has(x))return{};const k=l?l[0]:i,N=K=>{a&&k.reportValidity&&(k.setCustomValidity(qa(K)?"":K||""),k.reportValidity())},O={},I=eA(i),D=Lh(i),U=I||D,J=(C||JC(i))&&hn(i.value)&&hn(A)||ob(i)&&i.value===""||A===""||Array.isArray(A)&&!A.length,P=rAe.bind(null,x,r,O),X=(K,Q,ne,ae=Ui.maxLength,H=Ui.minLength)=>{const re=K?Q:ne;O[x]={type:K?ae:H,message:re,ref:i,...P(K?ae:H,re)}};if(o?!Array.isArray(A)||!A.length:c&&(!U&&(J||Sa(A))||qa(A)&&!A||D&&!bH(l).isValid||I&&!_H(l).isValid)){const{value:K,message:Q}=Wa(c)?{value:!!c,message:c}:mu(c);if(K&&(O[x]={type:Ui.required,message:Q,ref:k,...P(Ui.required,Q)},!r))return N(Q),O}if(!J&&(!Sa(h)||!Sa(g))){let K,Q;const ne=mu(g),ae=mu(h);if(!Sa(A)&&!isNaN(A)){const H=i.valueAsNumber||A&&+A;Sa(ne.value)||(K=H>ne.value),Sa(ae.value)||(Q=H<ae.value)}else{const H=i.valueAsDate||new Date(A),re=B=>new Date(new Date().toDateString()+" "+B),ee=i.type=="time",ge=i.type=="week";Wa(ne.value)&&A&&(K=ee?re(A)>re(ne.value):ge?A>ne.value:H>new Date(ne.value)),Wa(ae.value)&&A&&(Q=ee?re(A)<re(ae.value):ge?A<ae.value:H<new Date(ae.value))}if((K||Q)&&(X(!!K,ne.message,ae.message,Ui.max,Ui.min),!r))return N(O[x].message),O}if((d||p)&&!J&&(Wa(A)||o&&Array.isArray(A))){const K=mu(d),Q=mu(p),ne=!Sa(K.value)&&A.length>+K.value,ae=!Sa(Q.value)&&A.length<+Q.value;if((ne||ae)&&(X(ne,K.message,Q.message),!r))return N(O[x].message),O}if(y&&!J&&Wa(A)){const{value:K,message:Q}=mu(y);if(ib(K)&&!A.match(K)&&(O[x]={type:Ui.pattern,message:Q,ref:i,...P(Ui.pattern,Q)},!r))return N(Q),O}if(v){if(pa(v)){const K=await v(A,n),Q=TP(K,k);if(Q&&(O[x]={...Q,...P(Ui.validate,Q.message)},!r))return N(Q.message),O}else if(hr(v)){let K={};for(const Q in v){if(!Xr(K)&&!r)break;const ne=TP(await v[Q](A,n),k,Q);ne&&(K={...ne,...P(Q,ne.message)},N(ne.message),r&&(O[x]=K))}if(!Xr(K)&&(O[x]={ref:k,...K},!r))return O}}return N(!0),O};const mAe={mode:_o.onSubmit,reValidateMode:_o.onChange,shouldFocusError:!0};function gAe(e={}){let t={...mAe,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:pa(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},a=hr(t.defaultValues)||hr(t.values)?yn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:yn(a),i={action:!1,mount:!1,watch:!1,keepIsValid:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={...p};let g={...h};const y={array:yP(),state:yP()},v=t.criteriaMode===_o.all,x=Y=>oe=>{clearTimeout(d),d=setTimeout(Y,oe)},C=async Y=>{if(!i.keepIsValid&&!t.disabled&&(h.isValid||g.isValid||Y)){let oe;t.resolver?(oe=Xr((await U()).errors),S()):oe=await P(r,!0),oe!==n.isValid&&y.state.next({isValid:oe})}},S=(Y,oe)=>{!t.disabled&&(h.isValidating||h.validatingFields||g.isValidating||g.validatingFields)&&((Y||Array.from(l.mount)).forEac
vendor: 4,645 bytes, line 828
828h(be=>{be&&(oe?pn(n.validatingFields,be,oe):Zn(n.validatingFields,be))}),y.state.next({validatingFields:n.validatingFields,isValidating:!Xr(n.validatingFields)}))},A=(Y,oe=[],be,Fe,Re=!0,Oe=!0)=>{if(Fe&&be&&!t.disabled){if(i.action=!0,Oe&&Array.isArray(He(r,Y))){const ie=be(He(r,Y),Fe.argA,Fe.argB);Re&&pn(r,Y,ie)}if(Oe&&Array.isArray(He(n.errors,Y))){const ie=be(He(n.errors,Y),Fe.argA,Fe.argB);Re&&pn(n.errors,Y,ie),hAe(n.errors,Y)}if((h.touchedFields||g.touchedFields)&&Oe&&Array.isArray(He(n.touchedFields,Y))){const ie=be(He(n.touchedFields,Y),Fe.argA,Fe.argB);Re&&pn(n.touchedFields,Y,ie)}(h.dirtyFields||g.dirtyFields)&&(n.dirtyFields=Su(a,o)),y.state.next({name:Y,isDirty:K(Y,oe),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else pn(o,Y,oe)},k=(Y,oe)=>{pn(n.errors,Y,oe),y.state.next({errors:n.errors})},N=Y=>{n.errors=Y,y.state.next({errors:n.errors,isValid:!1})},O=(Y,oe,be,Fe)=>{const Re=He(r,Y);if(Re){const Oe=He(o,Y,hn(be)?He(a,Y):be);hn(Oe)||Fe&&Fe.defaultChecked||oe?pn(o,Y,oe?Oe:EP(Re._f)):ae(Y,Oe),i.mount&&!i.action&&C()}},I=(Y,oe,be,Fe,Re)=>{let Oe=!1,ie=!1;const we={name:Y};if(!t.disabled){if(!be||Fe){(h.isDirty||g.isDirty)&&(ie=n.isDirty,n.isDirty=we.isDirty=K(),Oe=ie!==we.isDirty);const Ie=jo(He(a,Y),oe);ie=!!He(n.dirtyFields,Y),Ie?Zn(n.dirtyFields,Y):pn(n.dirtyFields,Y,!0),we.dirtyFields=n.dirtyFields,Oe=Oe||(h.dirtyFields||g.dirtyFields)&&ie!==!Ie}if(be){const Ie=He(n.touchedFields,Y);Ie||(pn(n.touchedFields,Y,be),we.touchedFields=n.touchedFields,Oe=Oe||(h.touchedFields||g.touchedFields)&&Ie!==be)}Oe&&Re&&y.state.next(we)}return Oe?we:{}},D=(Y,oe,be,Fe)=>{const Re=He(n.errors,Y),Oe=(h.isValid||g.isValid)&&qa(oe)&&n.isValid!==oe;if(t.delayError&&be?(c=x(()=>k(Y,be)),c(t.delayError)):(clearTimeout(d),c=null,be?pn(n.errors,Y,be):Zn(n.errors,Y)),(be?!jo(Re,be):Re)||!Xr(Fe)||Oe){const ie={...Fe,...Oe&&qa(oe)?{isValid:oe}:{},errors:n.errors,name:Y};n={...n,...ie},y.state.next(ie)}},U=async Y=>(S(Y,!0),await t.resolver(o,t.context,lAe(Y||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),J=async Y=>{const{errors:oe}=await U(Y);if(S(Y),Y)for(const be of Y){const Fe=He(oe,be);Fe?pn(n.errors,be,Fe):Zn(n.errors,be)}else n.errors=oe;return oe},P=async(Y,oe,be={valid:!0})=>{for(const Fe in Y){const Re=Y[Fe];if(Re){const{_f:Oe,...ie}=Re;if(Oe){const we=l.array.has(Oe.name),Ie=Re._f&&cAe(Re._f);Ie&&h.validatingFields&&S([Oe.name],!0);const rt=await FT(Re,l.disabled,o,v,t.shouldUseNativeValidation&&!oe,we);if(Ie&&h.validatingFields&&S([Oe.name]),rt[Oe.name]&&(be.valid=!1,oe||e.shouldUseNativeValidation))break;!oe&&(He(rt,Oe.name)?we?EH(n.errors,rt,Oe.name):pn(n.errors,Oe.name,rt[Oe.name]):Zn(n.errors,Oe.name))}!Xr(ie)&&await P(ie,oe,be)}}return be.valid},X=()=>{for(const Y of l.unMount){const oe=He(r,Y);oe&&(oe._f.refs?oe._f.refs.every(be=>!Ix(be)):!Ix(oe._f.ref))&&Be(Y)}l.unMount=new Set},K=(Y,oe)=>!t.disabled&&(Y&&oe&&pn(o,Y,oe),!jo(V(),a)),Q=(Y,oe,be)=>jT(Y,l,{...i.mount?o:hn(oe)?a:Wa(Y)?{[Y]:oe}:oe},be,oe),ne=Y=>Rv(He(i.mount?o:a,Y,t.shouldUnregister?He(a,Y,[]):[])),ae=(Y,oe,be={})=>{const Fe=He(r,Y);let Re=oe;if(Fe){const Oe=Fe._f;Oe&&(!Oe.disabled&&pn(o,Y,vH(oe,Oe)),Re=ob(Oe.ref)&&Sa(oe)?"":oe,gH(Oe.ref)?[...Oe.ref.options].forEach(ie=>ie.selected=Re.includes(ie.value)):Oe.refs?Lh(Oe.ref)?Oe.refs.forEach(ie=>{(!ie.defaultChecked||!ie.disabled)&&(Array.isArray(Re)?ie.checked=!!Re.find(we=>we===ie.value):ie.checked=Re===ie.value||!!Re)}):Oe.refs.forEach(ie=>ie.checked=ie.value===Re):JC(Oe.ref)?Oe.ref.value="":(Oe.ref.value=Re,Oe.ref.type||y.state.next({name:Y,values:yn(o)})))}(be.shouldDirty||be.shouldTouch)&&I(Y,Re,be.shouldTouch,be.shouldDirty,!0),be.shouldValidate&&B(Y)},H=(Y,oe,be)=>{for(const Fe in oe){if(!oe.hasOwnProperty(Fe))return;const Re=oe[Fe],Oe=Y+"."+Fe,ie=He(r,Oe);(l.array.has(Y)||hr(Re)||ie&&!ie._f)&&!Vl(Re)?H(Oe,Re,be):ae(Oe,Re,be)}},re=(Y,oe,be={})=>{const Fe=He(r,Y),Re=l.array.has(Y),Oe=yn(oe);pn(o,Y,Oe),Re?(y.array.next({name:Y,values:yn(o)}),(h.isDirty||h.dirtyFields||g.isDirty||g.dirtyFields)&&be.shouldDirty&&y.state.next({name:Y,dirtyFields:Su(a,o),isDirty:K(Y,Oe)})):Fe&&!Fe._f&&!Sa(Oe)?H(Y,Oe,be):ae(Y,Oe,be),UT(Y,l)?y.state.next({...n,name:Y,values:yn(o)}):y.state.next({name:i.mount?Y:void 0,values:yn(o)})},ee=async Y=>{i.mount=!0;const oe=Y.target;let be=oe.name,Fe=!0;const Re=He(r,be),Oe=Ie=>{Fe=Number.isNaN(Ie)||Vl(Ie)&&isNaN(Ie.getTime())||jo(Ie,He(o,be,Ie))},ie=Iu(t.mode),we=Iu(t.reValidateMode);if(Re){let Ie,rt;const yt=oe.type?EP(Re._f):fH(Y),Kt=Y.type===ab.BLUR||Y.type===ab.FOCUS_OUT,an=!uAe(Re._f)&&!t.resolver&&!He(n.errors,be)&&!Re._f.deps||pAe(Kt,He(n.touchedFields,be),n.isSubmitted,we,ie),Cn=UT(be,l,Kt);
vendor: 5,416 bytes, line 828
828pn(o,be,yt),Kt?(!oe||!oe.readOnly)&&(Re._f.onBlur&&Re._f.onBlur(Y),c&&c(0)):Re._f.onChange&&Re._f.onChange(Y);const zt=I(be,yt,Kt),Gn=!Xr(zt)||Cn;if(!Kt&&y.state.next({name:be,type:Y.type,values:yn(o)}),an)return(h.isValid||g.isValid)&&(t.mode==="onBlur"?Kt&&C():Kt||C()),Gn&&y.state.next({name:be,...Cn?{}:zt});if(!Kt&&Cn&&y.state.next({...n}),t.resolver){const{errors:Bt}=await U([be]);if(S([be]),Oe(yt),Fe){const la=wP(n.errors,r,be),Nr=wP(Bt,r,la.name||be);Ie=Nr.error,be=Nr.name,rt=Xr(Bt)}}else S([be],!0),Ie=(await FT(Re,l.disabled,o,v,t.shouldUseNativeValidation))[be],S([be]),Oe(yt),Fe&&(Ie?rt=!1:(h.isValid||g.isValid)&&(rt=await P(r,!0)));Fe&&(Re._f.deps&&(!Array.isArray(Re._f.deps)||Re._f.deps.length>0)&&B(Re._f.deps),D(be,rt,Ie,zt))}},ge=(Y,oe)=>{if(He(n.errors,oe)&&Y.focus)return Y.focus(),1},B=async(Y,oe={})=>{let be,Fe;const Re=Aa(Y);if(t.resolver){const Oe=await J(hn(Y)?Y:Re);be=Xr(Oe),Fe=Y?!Re.some(ie=>He(Oe,ie)):be}else Y?(Fe=(await Promise.all(Re.map(async Oe=>{const ie=He(r,Oe);return await P(ie&&ie._f?{[Oe]:ie}:ie)}))).every(Boolean),!(!Fe&&!n.isValid)&&C()):Fe=be=await P(r);return y.state.next({...!Wa(Y)||(h.isValid||g.isValid)&&be!==n.isValid?{}:{name:Y},...t.resolver||!Y?{isValid:be}:{},errors:n.errors}),oe.shouldFocus&&!Fe&&qu(r,ge,Y?Re:l.mount),Fe},V=(Y,oe)=>{let be={...i.mount?o:a};return oe&&(be=mH(oe.dirtyFields?n.dirtyFields:n.touchedFields,be)),hn(Y)?be:Wa(Y)?He(be,Y):Y.map(Fe=>He(be,Fe))},G=(Y,oe)=>({invalid:!!He((oe||n).errors,Y),isDirty:!!He((oe||n).dirtyFields,Y),error:He((oe||n).errors,Y),isValidating:!!He(n.validatingFields,Y),isTouched:!!He((oe||n).touchedFields,Y)}),L=Y=>{Y&&Aa(Y).forEach(oe=>Zn(n.errors,oe)),y.state.next({errors:Y?n.errors:{}})},de=(Y,oe,be)=>{const Fe=(He(r,Y,{_f:{}})._f||{}).ref,Re=He(n.errors,Y)||{},{ref:Oe,message:ie,type:we,...Ie}=Re;pn(n.errors,Y,{...Ie,...oe,ref:Fe}),y.state.next({name:Y,errors:n.errors,isValid:!1}),be&&be.shouldFocus&&Fe&&Fe.focus&&Fe.focus()},_e=(Y,oe)=>pa(Y)?y.state.subscribe({next:be=>"values"in be&&Y(Q(void 0,oe),be)}):Q(Y,oe,!0),Ce=Y=>y.state.subscribe({next:oe=>{fAe(Y.name,oe.name,Y.exact)&&dAe(oe,Y.formState||h,sa,Y.reRenderRoot)&&Y.callback({values:{...o},...n,...oe,defaultValues:a})}}).unsubscribe,he=Y=>(i.mount=!0,g={...g,...Y.formState},Ce({...Y,formState:{...p,...Y.formState}})),Be=(Y,oe={})=>{for(const be of Y?Aa(Y):l.mount)l.mount.delete(be),l.array.delete(be),oe.keepValue||(Zn(r,be),Zn(o,be)),!oe.keepError&&Zn(n.errors,be),!oe.keepDirty&&Zn(n.dirtyFields,be),!oe.keepTouched&&Zn(n.touchedFields,be),!oe.keepIsValidating&&Zn(n.validatingFields,be),!t.shouldUnregister&&!oe.keepDefaultValue&&Zn(a,be);y.state.next({values:yn(o)}),y.state.next({...n,...oe.keepDirty?{isDirty:K()}:{}}),!oe.keepIsValid&&C()},qe=({disabled:Y,name:oe})=>{if(qa(Y)&&i.mount||Y||l.disabled.has(oe)){const be=l.disabled.has(oe)!==!!Y;Y?l.disabled.add(oe):l.disabled.delete(oe),be&&i.mount&&!i.action&&C()}},nt=(Y,oe={})=>{let be=He(r,Y);const Fe=qa(oe.disabled)||qa(t.disabled);return pn(r,Y,{...be||{},_f:{...be&&be._f?be._f:{ref:{name:Y}},name:Y,mount:!0,...oe}}),l.mount.add(Y),be?qe({disabled:qa(oe.disabled)?oe.disabled:t.disabled,name:Y}):O(Y,!0,oe.value),{...Fe?{disabled:oe.disabled||t.disabled}:{},...t.progressive?{required:!!oe.required,min:Wf(oe.min),max:Wf(oe.max),minLength:Wf(oe.minLength),maxLength:Wf(oe.maxLength),pattern:Wf(oe.pattern)}:{},name:Y,onChange:ee,onBlur:ee,ref:Re=>{if(Re){nt(Y,oe),be=He(r,Y);const Oe=hn(Re.value)&&Re.querySelectorAll&&Re.querySelectorAll("input,select,textarea")[0]||Re,ie=aAe(Oe),we=be._f.refs||[];if(ie?we.find(Ie=>Ie===Oe):Oe===be._f.ref)return;pn(r,Y,{_f:{...be._f,...ie?{refs:[...we.filter(Ix),Oe,...Array.isArray(He(a,Y))?[{}]:[]],ref:{type:Oe.type,name:Y}}:{ref:Oe}}}),O(Y,!1,void 0,Oe)}else be=He(r,Y,{}),be._f&&(be._f.mount=!1),(t.shouldUnregister||oe.shouldUnregister)&&!(pH(l.array,Y)&&i.action)&&l.unMount.add(Y)}}},dt=()=>t.shouldFocusError&&qu(r,ge,l.mount),lt=Y=>{qa(Y)&&(y.state.next({disabled:Y}),qu(r,(oe,be)=>{const Fe=He(r,be);Fe&&(oe.disabled=Fe._f.disabled||Y,Array.isArray(Fe._f.refs)&&Fe._f.refs.forEach(Re=>{Re.disabled=Fe._f.disabled||Y}))},0,!1))},Zt=(Y,oe)=>async be=>{let Fe;be&&(be.preventDefault&&be.preventDefault(),be.persist&&be.persist());let Re=yn(o);if(y.state.next({isSubmitting:!0}),t.resolver){const{errors:Oe,values:ie}=await U();S(),n.errors=Oe,Re=yn(ie)}else await P(r);if(l.disabled.size)for(const Oe of l.disabled)Zn(Re,Oe);if(Zn(n.errors,"root"),Xr(n.errors)){y.state.next({errors:{}});try{await Y(Re,be)}catch(Oe){Fe=Oe}}else oe&&await oe({...n.errors},be),dt(),setTimeout(dt);if(y.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Xr(n.errors)&&!Fe,submitCount:n.submitCount+1,errors:n.errors}),Fe)throw Fe},Qe=(Y,oe={})=>{He(r,Y)&&(hn(oe.defaultValue)?re(Y,yn(He(a,Y))):(re(Y,oe.defaultValue),pn(a,Y,yn(oe.defaultValue))),oe.keepTouched||Zn(n.touchedFields,Y),oe.keepDirty||(Zn(n.dirtyFields,Y),n.isDirty=oe.defaultValue?K(Y,yn(He(a,Y))):K()),oe.keepError||(Zn(n.errors,Y),h.isValid&&C()),y.state.next({...n}))},Ge=(Y,oe={})=>{const be=Y?yn(Y):a,Fe=yn(be),Re=Xr(Y),Oe=Re?a:Fe;if(oe.keepDefaultValues||(a=be),!oe.keepValues){if(oe.keepDirtyValues){const ie=new Set([...l.mount,...Object.keys(Su(a,o))]);for(const we of Array.from(ie)){const Ie=He(n.dirtyFields,we),rt=He(o,we),yt=He(Oe,we);Ie&&!hn(rt)?pn(Oe,we,rt):!Ie&&!hn(yt)&&re(we,yt)}}else{if(ZC&&hn(Y))for(const ie of l.mount){const we=He(r,ie);
828if(we&&we._f){const Ie=Array.isArray(we._f.refs)?we._f.refs[0]:we._f.ref;if(ob(Ie)){const rt=Ie.closest("form");if(rt){rt.reset();break}}}}if(oe.keepFieldsRef)for(const ie of l.mount)re(ie,He(Oe,ie));else r={}}o=t.shouldUnregister?oe.keepDefaultValues?yn(a):{}:yn(Oe),y.array.next({values:{...Oe}}),y.state.next({values:{...Oe}})}l={mount:oe.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!h.isValid||!!oe.keepIsValid||!!oe.keepDirtyValues||!t.shouldUnregister&&!Xr(Oe),i.watch=!!t.shouldUnregister,i.keepIsValid=!!oe.keepIsValid,i.action=!1,oe.keepErrors||(n.errors={}),y.state.next({submitCount:oe.keepSubmitCount?n.submitCount:0,isDirty:Re?!1:oe.keepDirty?n.isDirty:!!(oe.keepDefaultValues&&!jo(Y,a)),isSubmitted:oe.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Re?{}:oe.keepDirtyValues?oe.keepDefaultValues&&o?Su(a,o):n.dirtyFields:oe.keepDefaultValues&&Y?Su(a,Y):oe.keepDirty?n.dirtyFields:{},touchedFields:oe.keepTouched?n.touchedFields:{},errors:oe.keepErrors?n.errors:{},isSubmitSuccessful:oe.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:a})},en=(Y,oe)=>Ge(pa(Y)?Y(o):Y,{...t.resetOptions,...oe}),tr=(Y,oe={})=>{const be=He(r,Y),Fe=be&&be._f;if(Fe){const Re=Fe.refs?Fe.refs[0]:Fe.ref;Re.focus&&setTimeout(()=>{Re.focus(),oe.shouldSelect&&pa(Re.select)&&Re.select()})}},sa=Y=>{n={...n,...Y}},Pn={control:{register:nt,unregister:Be,getFieldState:G,handleSubmit:Zt,setError:de,_subscribe:Ce,_runSchema:U,_updateIsValidating:S,_focusError:dt,_getWatch:Q,_getDirty:K,_setValid:C,_setFieldArray:A,_setDisabledField:qe,_setErrors:N,_getFieldArray:ne,_reset:Ge,_resetDefaultValues:()=>pa(t.defaultValues)&&t.defaultValues().then(Y=>{en(Y,t.resetOptions),y.state.next({isLoading:!1})}),_removeUnmounted:X,_disableForm:lt,_subjects:y,_proxyFormState:h,get _fields(){return r},get _formValues(){return o},get _state(){return i},set _state(Y){i=Y},get _defaultValues(){return a},get _names(){return l},set _names(Y){l=Y},get _formState(){return n},get _options(){return t},set _options(Y){t={...t,...Y}}},subscribe:he,trigger:B,register:nt,handleSubmit:Zt,watch:_e,setValue:re,getValues:V,reset:en,resetField:Qe,clearErrors:L,unregister:Be,setError:de,setFocus:tr,getFieldState:G};return{...Pn,formControl:Pn}}var Os=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},Lx=(e,t,n={})=>n.shouldFocus||hn(n.shouldFocus)?n.focusName||`${e}.${hn(n.focusIndex)?t:n.focusIndex}.`:"",$x=(e,t)=>[...e,...Aa(t)],Px=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Mx(e,t,n){return[...e.slice(0,t),...Aa(n),...e.slice(t)]}var jx=(e,t,n)=>Array.isArray(e)?(hn(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],zx=(e,t)=>[...Aa(t),...Aa(e)];function yAe(e,t){let n=0;const r=[...e];for(const a of t)r.splice(a-n,1),n++;return Rv(r).length?r:[]}var Bx=(e,t)=>hn(t)?[]:yAe(e,Aa(t).sort((n,r)=>n-r)),Ux=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},SP=(e,t,n)=>(e[t]=n,e);function xH(e){const t=Ov(),{control:n=t,name:r,keyName:a="id",shouldUnregister:o,rules:i}=e,[l,c]=ce.useState(n._getFieldArray(r)),d=ce.useRef(n._getFieldArray(r).map(Os)),p=ce.useRef(!1);n._names.array.add(r),ce.useMemo(()=>i&&l.length>=0&&n.register(r,i),[n,r,l.length,i]),Dv(()=>n._subjects.array.subscribe({next:({values:N,name:O})=>{if(O===r||!O){const I=He(N,r);Array.isArray(I)&&(c(I),d.current=I.map(Os))}}}).unsubscribe,[n,r]);const h=ce.useCallback(N=>{p.current=!0,n._setFieldArray(r,N)},[n,r]),g=(N,O)=>{const I=Aa(yn(N)),D=$x(n._getFieldArray(r),I);n._names.focus=Lx(r,D.length-1,O),d.current=$x(d.current,I.map(Os)),h(D),c(D),n._setFieldArray(r,D,$x,{argA:Px(N)})},y=(N,O)=>{const I=Aa(yn(N)),D=zx(n._getFieldArray(r),I);n._names.focus=Lx(r,0,O),d.current=zx(d.current,I.map(Os)),h(D),c(D),n._setFieldArray(r,D,zx,{argA:Px(N)})},v=N=>{const O=Bx(n._getFieldArray(r),N);d.current=Bx(d.current,N),h(O),c(O),!Array.isArray(He(n._fields,r))&&pn(n._fields,r,void 0),n._setFieldArray(r,O,Bx,{argA:N})},x=(N,O,I)=>{const D=Aa(yn(O)),U=Mx(n._getFieldArray(r),N,D);n._names.focus=Lx(r,N,I),d.current=Mx(d.current,N,D.map(Os)),h(U),c(U),n._setFieldArray(r,U,Mx,{argA:N,argB:Px(O)})},C=(N,O)=>{const I=n._getFieldArray(r);Ux(I,N,O),Ux(d.current,N,O),h(I),c(I),n._setFieldArray(r,I,Ux,{argA:N,argB:O},!1)},S=(N,O)=>{const I=n._getFieldArray(r);jx(I,N,O),jx(d.current,N,O),h(I),c(I),n._setFieldArray(r,I,jx,{argA:N,argB:O},!1)},A=(N,O)=>{const I=yn(O),D=SP(n._getFieldArray(r),N,I);d.current=[...D].map((U,J)=>!U||J===N?Os():d.current[J]),h(D),c([...D]),n._setFieldArray(r,D,SP,{argA:N,argB:I},!0,!1)},k=N=>{const O=Aa(yn(N));d.current=O.map(Os),h([...O]),c([...O]),n._setFieldArray(r,[...O],I=>I,{},!0,!1)};return ce.useEffect(()=>{if(n._state.action=!1,UT(r,n._names)&&n._subjects.state.next({...n._formState}),p.current&&(!Iu(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!Iu(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(N=>{n._updateIsValidating([r]);const O=He(N.errors,r),I=He(n._formState.errors,r);(I?!O&&I.type||O&&(I.type!==O.type||I.message!==O.message):O&&O.type)&&(O?pn(n._formState.errors,r,O):Zn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const N=He(n._fields,r);N&&N._f&&!(Iu(n._options.reValidateMode).isOnSubmit&&Iu(n._options.mode).isOnSubmit)&&FT(N,n._names.disabled,n._formValues,n._options.criteriaMode===_o.all,n._options.shouldUseNativeValidation,!0).then(O=>!Xr(O)&&n._subjects.state.next({errors:EH(n._formState.errors,O,r)}))}n._subjects.state.next({name:r,values:yn(n._formValues)}
828),n._names.focus&&qu(n._fields,(N,O)=>{if(n._names.focus&&O.startsWith(n._names.focus)&&N.focus)return N.focus(),1}),n._names.focus="",n._setValid(),p.current=!1},[l,r,n]),ce.useEffect(()=>(!He(n._formValues,r)&&n._setFieldArray(r),()=>{const N=(O,I)=>{const D=He(n._fields,O);D&&D._f&&(D._f.mount=I)};n._options.shouldUnregister||o?n.unregister(r):N(r,!1)}),[r,n,a,o]),{swap:ce.useCallback(C,[h,r,n]),move:ce.useCallback(S,[h,r,n]),prepend:ce.useCallback(y,[h,r,n]),append:ce.useCallback(g,[h,r,n]),remove:ce.useCallback(v,[h,r,n]),insert:ce.useCallback(x,[h,r,n]),update:ce.useCallback(A,[h,r,n]),replace:ce.useCallback(k,[h,r,n]),fields:ce.useMemo(()=>l.map((N,O)=>({...N,[a]:d.current[O]||Os()})),[l,a])}}function bAe(e={}){const t=ce.useRef(void 0),n=ce.useRef(void 0),[r,a]=ce.useState({isDirty:!1,isValidating:!1,isLoading:pa(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:pa(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!pa(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:i,...l}=gAe(e);t.current={...l,formState:r}}const o=t.current.control;return o._options=e,Dv(()=>{const i=o._subscribe({formState:o._proxyFormState,callback:()=>a({...o._formState}),reRenderRoot:!0});return a(l=>({...l,isReady:!0})),o._formState.isReady=!0,i},[o]),ce.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),ce.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),ce.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),ce.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),ce.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==r.isDirty&&o._subjects.state.next({isDirty:i})}},[o,r.isDirty]),ce.useEffect(()=>{var i;e.values&&!jo(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),!((i=o._options.resetOptions)===null||i===void 0)&&i.keepIsValid||o._setValid(),n.current=e.values,a(l=>({...l}))):o._resetDefaultValues()},[o,e.values]),ce.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=ce.useMemo(()=>hH(r,o),[o,r]),t.current}function CP(e,[t,n]){return Math.min(n,Math.max(t,e))}function vAe(e){const t=_Ae(e),n=b.forwardRef((r,a)=>{const{children:o,...i}=r,l=b.Children.toArray(o),c=l.find(xAe);if(c){const d=c.props.children,p=l.map(h=>h===c?b.Children.count(d)>1?b.Children.only(null):b.isValidElement(d)?d.props.children:null:h);return M.jsx(t,{...i,ref:a,children:b.isValidElement(d)?b.cloneElement(d,void 0,p):null})}return M.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}function _Ae(e){const t=b.forwardRef((n,r)=>{const{children:a,...o}=n;if(b.isValidElement(a)){const i=TAe(a),l=wAe(o,a.props);return a.type!==b.Fragment&&(l.ref=r?ra(r,i):i),b.cloneElement(a,l)}return b.Children.count(a)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var EAe=Symbol("radix.slottable");function xAe(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===EAe}function wAe(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...l)=>{const c=o(...l);return a(...l),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function TAe(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function tA(e){const t=b.useRef({value:e,previous:e});return b.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var wH=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),SAe="VisuallyHidden",CAe=b.forwardRef((e,t)=>
vendor: 7,111 bytes, line 828
828M.jsx(st.span,{...e,ref:t,style:{...wH,...e.style}}));CAe.displayName=SAe;var AAe=[" ","Enter","ArrowUp","ArrowDown"],kAe=[" ","Enter"],rc="Select",[Iv,Lv,NAe]=p1(rc),[Nd,XBe]=eo(rc,[NAe,tl]),$v=tl(),[RAe,sl]=Nd(rc),[OAe,DAe]=Nd(rc),TH=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:i,defaultValue:l,onValueChange:c,dir:d,name:p,autoComplete:h,disabled:g,required:y,form:v}=e,x=$v(t),[C,S]=b.useState(null),[A,k]=b.useState(null),[N,O]=b.useState(!1),I=Vb(d),[D,U]=Ho({prop:r,defaultProp:a??!1,onChange:o,caller:rc}),[J,P]=Ho({prop:i,defaultProp:l,onChange:c,caller:rc}),X=b.useRef(null),K=C?v||!!C.closest("form"):!0,[Q,ne]=b.useState(new Set),ae=Array.from(Q).map(H=>H.props.value).join(";");return M.jsx(hh,{...x,children:M.jsxs(RAe,{required:y,scope:t,trigger:C,onTriggerChange:S,valueNode:A,onValueNodeChange:k,valueNodeHasChildren:N,onValueNodeHasChildrenChange:O,contentId:fr(),value:J,onValueChange:P,open:D,onOpenChange:U,dir:I,triggerPointerDownPosRef:X,disabled:g,children:[M.jsx(Iv.Provider,{scope:t,children:M.jsx(OAe,{scope:e.__scopeSelect,onNativeOptionAdd:b.useCallback(H=>{ne(re=>new Set(re).add(H))},[]),onNativeOptionRemove:b.useCallback(H=>{ne(re=>{const ee=new Set(re);return ee.delete(H),ee})},[]),children:n})}),K?M.jsxs(qH,{"aria-hidden":!0,required:y,tabIndex:-1,name:p,autoComplete:h,value:J,onChange:H=>P(H.target.value),disabled:g,form:v,children:[J===void 0?M.jsx("option",{value:""}):null,Array.from(Q)]},ae):null]})})};TH.displayName=rc;var SH="SelectTrigger",CH=b.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=$v(n),i=sl(SH,n),l=i.disabled||r,c=Pt(t,i.onTriggerChange),d=Lv(n),p=b.useRef("touch"),[h,g,y]=WH(x=>{const C=d().filter(k=>!k.disabled),S=C.find(k=>k.value===i.value),A=ZH(C,x,S);A!==void 0&&i.onValueChange(A.value)}),v=x=>{l||(i.onOpenChange(!0),y()),x&&(i.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})};return M.jsx(mh,{asChild:!0,...o,children:M.jsx(st.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":YH(i.value)?"":void 0,...a,ref:c,onClick:We(a.onClick,x=>{x.currentTarget.focus(),p.current!=="mouse"&&v(x)}),onPointerDown:We(a.onPointerDown,x=>{p.current=x.pointerType;const C=x.target;C.hasPointerCapture(x.pointerId)&&C.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(v(x),x.preventDefault())}),onKeyDown:We(a.onKeyDown,x=>{const C=h.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&g(x.key),!(C&&x.key===" ")&&AAe.includes(x.key)&&(v(),x.preventDefault())})})})});CH.displayName=SH;var AH="SelectValue",kH=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:i="",...l}=e,c=sl(AH,n),{onValueNodeHasChildrenChange:d}=c,p=o!==void 0,h=Pt(t,c.onValueNodeChange);return Vr(()=>{d(p)},[d,p]),M.jsx(st.span,{...l,ref:h,style:{pointerEvents:"none"},children:YH(c.value)?M.jsx(M.Fragment,{children:i}):o})});kH.displayName=AH;var IAe="SelectIcon",NH=b.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return M.jsx(st.span,{"aria-hidden":!0,...a,ref:t,children:r||"â¼"})});NH.displayName=IAe;var LAe="SelectPortal",RH=e=>M.jsx(_d,{asChild:!0,...e});RH.displayName=LAe;var ac="SelectContent",OH=b.forwardRef((e,t)=>{const n=sl(ac,e.__scopeSelect),[r,a]=b.useState();if(Vr(()=>{a(new DocumentFragment)},[]),!n.open){const o=r;return o?gd.createPortal(M.jsx(DH,{scope:e.__scopeSelect,children:M.jsx(Iv.Slot,{scope:e.__scopeSelect,children:M.jsx("div",{children:e.children})})}),o):null}return M.jsx(IH,{...e,ref:t})});OH.displayName=ac;var Po=10,[DH,ll]=Nd(ac),$Ae="SelectContentImpl",PAe=vAe("SelectContent.RemoveScroll"),IH=b.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:l,sideOffset:c,align:d,alignOffset:p,arrowPadding:h,collisionBoundary:g,collisionPadding:y,sticky:v,hideWhenDetached:x,avoidCollisions:C,...S}=e,A=sl(ac,n),[k,N]=b.useState(null),[O,I]=b.useState(null),D=Pt(t,he=>N(he)),[U,J]=b.useState(null),[P,X]=b.useState(null),K=Lv(n),[Q,ne]=b.useState(!1),ae=b.useRef(!1);b.useEffect(()=>{if(k)return ev(k)},[k]),qb();const H=b.useCallback(he=>{const[Be,...qe]=K().map(lt=>lt.ref.current),[nt]=qe.slice(-1),dt=document.activeElement;for(const lt of he)if(lt===dt||(lt?.scrollIntoView({block:"nearest"}),lt===Be&&O&&(O.scrollTop=0),lt===nt&&O&&(O.scrollTop=O.scrollHeight),lt?.focus(),document.activeElement!==dt))return},[K,O]),re=b.useCallback(()=>H([U,k]),[H,U,k]);b.useEffect(()=>{Q&&re()},[Q,re]);const{onOpenChange:ee,triggerPointerDownPosRef:ge}=A;b.useEffect(()=>{if(k){let he={x:0,y:0};const Be=nt=>{he={x:Math.abs(Math.round(nt.pageX)-(ge.current?.x??0)),y:Math.abs(Math.round(nt.pageY)-(ge.current?.y??0))}},qe=nt=>{he.x<=10&&he.y<=10?nt.preventDefault():k.contains(nt.target)||ee(!1),document.removeEventListener("pointermove",Be),ge.current=null};return ge.current!==null&&(document.addEventListener("pointermove",Be),document.addEventListener("pointerup",qe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Be),document.removeEventListener("pointerup",qe,{capture:!0})}}},[k,ee,ge]),b.useEffect(()=>{const he=()=>ee(!1);return window.addEventListener("blur",he),window.addEventListener("resize",he),()=>{window.removeEventListener("blur",he),window.removeEventListener("resize",he)}},[ee]);const[B,V]=WH(he=>{const Be=K().filter(dt=>!dt.disabled),qe=Be.find(dt=>dt.ref.current===document.activeElement),nt=ZH(Be,he,qe);nt&&setTimeout(()=>nt.ref.current.focus())}),G=b.useCallback((he,Be,qe)=>{const nt=!ae.current&&!qe;(A.value!==void 0&&A.value===Be||nt)&&(J(he),nt&&(ae.current=!0))},[A.value]),L=b.useCallback(()=>k?.focus(),[k]),de=b.useCallback((he,Be,qe)=>{const nt=!ae.current&&!qe;(A.value!==void 0&&A.value===Be||nt)&&X(he)},[A.value]),_e=r==="popper"?HT:LH,Ce=_e===HT?{side:l,sideOffset:c,align:d,alignOffset:p,arrowPadding:h,collisionBoundary:g,collisionPadding:y,sticky:v,hideWhenDetached:x,avoidCollisions:C}:{};return M.jsx(DH,{scope:n,content:k,viewport:O,onViewportChange:I,itemRefCallback:G,selectedItem:U,onItemLeave:L,itemTextRefCallback:de,focusSelectedItem:re,selectedItemText:P,position:r,isPositioned:Q,searchRef:B,children:M.jsx(yh,{as:PAe,allowPinchZoom:!0,children:M.jsx(fh,{asChild:!0,trapped:A.open,onMountAutoFocus:he=>{he.preventDefault()},onUnmountAutoFocus:We(a,he=>{A.trigger?.focus({preventScroll:!0}),he.preventDefault()}),children:M.jsx(yd,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:he=>he.preventDefault(),onDismiss:()=>A.onOpenChange(!1),children:M.jsx(_e,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:he=>he.preventDefault(),...S,...Ce,onPlaced:()=>ne(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:We(S.onKeyDown,he=>{const Be=he.ctrlKey||he.altKey||he.metaKey;
vendor: 1,080 bytes, line 828
828if(he.key==="Tab"&&he.preventDefault(),!Be&&he.key.length===1&&V(he.key),["ArrowUp","ArrowDown","Home","End"].includes(he.key)){let nt=K().filter(dt=>!dt.disabled).map(dt=>dt.ref.current);if(["ArrowUp","End"].includes(he.key)&&(nt=nt.slice().reverse()),["ArrowUp","ArrowDown"].includes(he.key)){const dt=he.target,lt=nt.indexOf(dt);nt=nt.slice(lt+1)}setTimeout(()=>H(nt)),he.preventDefault()}})})})})})})});IH.displayName=$Ae;var MAe="SelectItemAlignedPosition",LH=b.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=sl(ac,n),i=ll(ac,n),[l,c]=b.useState(null),[d,p]=b.useState(null),h=Pt(t,D=>p(D)),g=Lv(n),y=b.useRef(!1),v=b.useRef(!0),{viewport:x,selectedItem:C,selectedItemText:S,focusSelectedItem:A}=i,k=b.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&d&&x&&C&&S){const D=o.trigger.getBoundingClientRect(),U=d.getBoundingClientRect(),J=o.valueNode.getBoundingClientRect(),P=S.getBoundingClientRect();if(o.dir!=="rtl"){const dt=P.left-U.left,lt=J.left-dt,Zt=D.left-lt,Qe=D.width+Zt,Ge=Math.max(Qe,U.width),en=window.innerWidth-Po,tr=CP(lt,[Po,Math.max(Po,en-Ge)]);
vendor: 11,662 bytes, line 828
828l.style.minWidth=Qe+"px",l.style.left=tr+"px"}else{const dt=U.right-P.right,lt=window.innerWidth-J.right-dt,Zt=window.innerWidth-D.right-lt,Qe=D.width+Zt,Ge=Math.max(Qe,U.width),en=window.innerWidth-Po,tr=CP(lt,[Po,Math.max(Po,en-Ge)]);l.style.minWidth=Qe+"px",l.style.right=tr+"px"}const X=g(),K=window.innerHeight-Po*2,Q=x.scrollHeight,ne=window.getComputedStyle(d),ae=parseInt(ne.borderTopWidth,10),H=parseInt(ne.paddingTop,10),re=parseInt(ne.borderBottomWidth,10),ee=parseInt(ne.paddingBottom,10),ge=ae+H+Q+ee+re,B=Math.min(C.offsetHeight*5,ge),V=window.getComputedStyle(x),G=parseInt(V.paddingTop,10),L=parseInt(V.paddingBottom,10),de=D.top+D.height/2-Po,_e=K-de,Ce=C.offsetHeight/2,he=C.offsetTop+Ce,Be=ae+H+he,qe=ge-Be;if(Be<=de){const dt=X.length>0&&C===X[X.length-1].ref.current;l.style.bottom="0px";const lt=d.clientHeight-x.offsetTop-x.offsetHeight,Zt=Math.max(_e,Ce+(dt?L:0)+lt+re),Qe=Be+Zt;l.style.height=Qe+"px"}else{const dt=X.length>0&&C===X[0].ref.current;l.style.top="0px";const Zt=Math.max(de,ae+x.offsetTop+(dt?G:0)+Ce)+qe;l.style.height=Zt+"px",x.scrollTop=Be-de+x.offsetTop}l.style.margin=`${Po}px 0`,l.style.minHeight=B+"px",l.style.maxHeight=K+"px",r?.(),requestAnimationFrame(()=>y.current=!0)}},[g,o.trigger,o.valueNode,l,d,x,C,S,o.dir,r]);Vr(()=>k(),[k]);const[N,O]=b.useState();Vr(()=>{d&&O(window.getComputedStyle(d).zIndex)},[d]);const I=b.useCallback(D=>{D&&v.current===!0&&(k(),A?.(),v.current=!1)},[k,A]);return M.jsx(zAe,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:y,onScrollButtonChange:I,children:M.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:M.jsx(st.div,{...a,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});LH.displayName=MAe;var jAe="SelectPopperPosition",HT=b.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=Po,...o}=e,i=$v(n);return M.jsx(Qb,{...i,...o,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});HT.displayName=jAe;var[zAe,nA]=Nd(ac,{}),GT="SelectViewport",$H=b.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=ll(GT,n),i=nA(GT,n),l=Pt(t,o.onViewportChange),c=b.useRef(0);return M.jsxs(M.Fragment,{children:[M.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),M.jsx(Iv.Slot,{scope:n,children:M.jsx(st.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:We(a.onScroll,d=>{const p=d.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:g}=i;if(g?.current&&h){const y=Math.abs(c.current-p.scrollTop);if(y>0){const v=window.innerHeight-Po*2,x=parseFloat(h.style.minHeight),C=parseFloat(h.style.height),S=Math.max(x,C);if(S<v){const A=S+y,k=Math.min(v,A),N=A-k;h.style.height=k+"px",h.style.bottom==="0px"&&(p.scrollTop=N>0?N:0,h.style.justifyContent="flex-end")}}}c.current=p.scrollTop})})})]})});$H.displayName=GT;var PH="SelectGroup",[BAe,UAe]=Nd(PH),FAe=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=fr();return M.jsx(BAe,{scope:n,id:a,children:M.jsx(st.div,{role:"group","aria-labelledby":a,...r,ref:t})})});FAe.displayName=PH;var MH="SelectLabel",HAe=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=UAe(MH,n);return M.jsx(st.div,{id:a.id,...r,ref:t})});HAe.displayName=MH;var sb="SelectItem",[GAe,jH]=Nd(sb),zH=b.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...i}=e,l=sl(sb,n),c=ll(sb,n),d=l.value===r,[p,h]=b.useState(o??""),[g,y]=b.useState(!1),v=Pt(t,A=>c.itemRefCallback?.(A,r,a)),x=fr(),C=b.useRef("touch"),S=()=>{a||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return M.jsx(GAe,{scope:n,value:r,disabled:a,textId:x,isSelected:d,onItemTextChange:b.useCallback(A=>{h(k=>k||(A?.textContent??"").trim())},[]),children:M.jsx(Iv.ItemSlot,{scope:n,value:r,disabled:a,textValue:p,children:M.jsx(st.div,{role:"option","aria-labelledby":x,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...i,ref:v,onFocus:We(i.onFocus,()=>y(!0)),onBlur:We(i.onBlur,()=>y(!1)),onClick:We(i.onClick,()=>{C.current!=="mouse"&&S()}),onPointerUp:We(i.onPointerUp,()=>{C.current==="mouse"&&S()}),onPointerDown:We(i.onPointerDown,A=>{C.current=A.pointerType}),onPointerMove:We(i.onPointerMove,A=>{C.current=A.pointerType,a?c.onItemLeave?.():C.current==="mouse"&&A.currentTarget.focus({preventScroll:!0})}),onPointerLeave:We(i.onPointerLeave,A=>{A.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:We(i.onKeyDown,A=>{c.searchRef?.current!==""&&A.key===" "||(kAe.includes(A.key)&&S(),A.key===" "&&A.preventDefault())})})})})});zH.displayName=sb;var rp="SelectItemText",BH=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,i=sl(rp,n),l=ll(rp,n),c=jH(rp,n),d=DAe(rp,n),[p,h]=b.useState(null),g=Pt(t,S=>h(S),c.onItemTextChange,S=>l.itemTextRefCallback?.(S,c.value,c.disabled)),y=p?.textContent,v=b.useMemo(()=>M.jsx("option",{value:c.value,disabled:c.disabled,children:y},c.value),[c.disabled,c.value,y]),{onNativeOptionAdd:x,onNativeOptionRemove:C}=d;return Vr(()=>(x(v),()=>C(v)),[x,C,v]),M.jsxs(M.Fragment,{children:[M.jsx(st.span,{id:c.textId,...o,ref:g}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?gd.createPortal(o.children,i.valueNode):null]})});BH.displayName=rp;var UH="SelectItemIndicator",FH=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return jH(UH,n).isSelected?M.jsx(st.span,{"aria-hidden":!0,...r,ref:t}):null});FH.displayName=UH;var VT="SelectScrollUpButton",HH=b.forwardRef((e,t)=>{const n=ll(VT,e.__scopeSelect),r=nA(VT,e.__scopeSelect),[a,o]=b.useState(!1),i=Pt(t,r.onScrollButtonChange);return Vr(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollTop>0;o(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),a?M.jsx(VH,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});HH.displayName=VT;var qT="SelectScrollDownButton",GH=b.forwardRef((e,t)=>{const n=ll(qT,e.__scopeSelect),r=nA(qT,e.__scopeSelect),[a,o]=b.useState(!1),i=Pt(t,r.onScrollButtonChange);return Vr(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,p=Math.ceil(c.scrollTop)<d;o(p)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),a?M.jsx(VH,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});GH.displayName=qT;var VH=b.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=ll("SelectScrollButton",n),i=b.useRef(null),l=Lv(n),c=b.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return b.useEffect(()=>()=>c(),[c]),Vr(()=>{l().find(p=>p.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),M.jsx(st.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:We(a.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:We(a.onPointerMove,()=>{o.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:We(a.onPointerLeave,()=>{c()})})}),VAe="SelectSeparator",qAe=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return M.jsx(st.div,{"aria-hidden":!0,...r,ref:t})});qAe.displayName=VAe;var YT="SelectArrow",YAe=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=$v(n),o=sl(YT,n),i=ll(YT,n);return o.open&&i.position==="popper"?M.jsx(Xb,{...a,...r,ref:t}):null});YAe.displayName=YT;var WAe="SelectBubbleInput",qH=b.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const a=b.useRef(null),o=Pt(r,a),i=tA(t);return b.useEffect(()=>{const l=a.current;if(!l)return;const c=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&p){const h=new Event("change",{bubbles:!0});p.call(l,t),l.dispatchEvent(h)}},[i,t]),M.jsx(st.select,{...n,style:{...wH,...n.style},ref:o,defaultValue:t})});qH.displayName=WAe;function YH(e){return e===""||e===void 0}function WH(e){const t=Go(e),n=b.useRef(""),r=b.useRef(0),a=b.useCallback(i=>{const l=n.current+i;t(l),(function c(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>c(""),1e3))})(l)},[t]),o=b.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,o]}function ZH(e,t,n){const a=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=ZAe(e,Math.max(o,0));a.length===1&&(i=i.filter(d=>d!==n));const c=i.find(d=>d.textValue.toLowerCase().startsWith(a.toLowerCase()));return c!==n?c:void 0}function ZAe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var KAe=TH,QAe=CH,XAe=kH,JAe=NH,eke=RH,tke=OH,nke=$H,rke=zH,ake=BH,oke=FH,ike=HH,ske=GH;const KH=b.memo(({code:e,children:t,embedded:n,...r})=>{const{syntaxHighlighting:a}=Hn().options;uj(a?.highlighter,"Highlighter not found");const o=jz(a.highlighter,e??t,r.language,a.themes);return n?E.jsx(cj,{...r,children:o}):E.jsx(US,{...r,children:o})});KH.displayName="SyntaxHighlight";function QH({...e}){return E.jsx(KAe,{"data-slot":"select",...e})}function XH({...e}){return E.jsx(XAe,{"data-slot":"select-value",...e})}function JH({className:e,size:t="default",children:n,...r}){return E.jsxs(QAe,{"data-slot":"select-trigger","data-size":t,className:ec("border-input data-placeholder:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,E.jsx(JAe,{asChild:!0,children:E.jsx(Tb,{className:"size-4 opacity-50"})})]})}function eG({className:e,children:t,position:n="popper",align:r="center",...a}){return E.jsx(eke,{children:E.jsxs(tke,{"data-slot":"select-content",className:ec("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
828de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:r,...a,children:[E.jsx(lke,{}),E.jsx(nke,{className:ec("p-1",n==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:t}),E.jsx(cke,{})]})})}function ly({className:e,children:t,...n}){return E.jsxs(rke,{"data-slot":"select-item",className:ec("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[E.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:E.jsx(oke,{children:E.jsx(Xp,{className:"size-4"})})}),E.jsx(ake,{children:t})]})}function lke({className:e,...t}){return E.jsx(ike,{"data-slot":"select-scroll-up-button",className:ec("flex cursor-default items-center justify-center py-1",e),...t,children:E.jsx($q,{className:"size-4"})})}function cke({className:e,...t}){return E.jsx(ske,{"data-slot":"select-scroll-down-button",className:ec("flex cursor-default items-center justify-center py-1",e),...t,children:E.jsx(Tb,{className:"size-4"})})}const uke=({secret:e,revealed:t=!1,previewChars:n=5,className:r})=>{if(t)return E.jsx("span",{className:r,children:e});const a="â¢â¢â¢â¢ ".repeat(e.slice(0,-n).length/5)+"â¢".repeat(e.slice(0,-n).length%5),o=n>0?e.slice(-n):"";return E.jsx("span",{className:xe("block overflow-hidden text-ellipsis whitespace-nowrap",r),dir:"rtl",children:E.jsxs("span",{dir:"ltr",className:"inline",children:[E.jsx("span",{className:"opacity-50",children:a}),o&&E.jsx("span",{children:o})]})})},dke=e=>{const t=b.useRef(e);return t.current=e,b.useEffect(()=>{t.current=e},[e]),t};function tG({...e}){return E.jsx(mU,{"data-slot":"dropdown-menu",...e})}function nG({...e}){return E.jsx(gU,{"data-slot":"dropdown-menu-trigger",...e})}function rG({className:e,sideOffset:t=4,...n}){return E.jsx(O1,{children:E.jsx(yU,{"data-slot":"dropdown-menu-content",sideOffset:t,className:xe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function fke({...e}){return E.jsx(yse,{"data-slot":"dropdown-menu-group",...e})}function cy({className:e,inset:t,variant:n="default",...r}){return E.jsx(vU,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:xe("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function pke({className:e,inset:t,...n}){return E.jsx(bU,{"data-slot":"dropdown-menu-label","data-inset":t,className:xe("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function hke({className:e,...t}){return E.jsx(_U,{"data-slot":"dropdown-menu-separator",className:xe("bg-border -mx-1 my-1 h-px",e),...t})}const aG=b.forwardRef(({className:e,type:t,...n},r)=>E.jsx("input",{type:t,className:xe("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focu
828s-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));aG.displayName="Input";const $h=(e,t)=>{const n=b.forwardRef(({className:r,asChild:a,...o},i)=>{const l=a?ih:e;return b.createElement(l,{...o,ref:i,className:typeof t=="function"?t({className:r}):xe(t,r)})});return n.displayName=typeof e=="string"?`VariantComponent(${e})`:`VariantComponent(${e.displayName||e.name||"Component"})`,n};var Pv="Checkbox",[mke,JBe]=eo(Pv),[gke,rA]=mke(Pv);function yke(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:a,disabled:o,form:i,name:l,onCheckedChange:c,required:d,value:p="on",internal_do_not_use_render:h}=e,[g,y]=Ho({prop:n,defaultProp:a??!1,onChange:c,caller:Pv}),[v,x]=b.useState(null),[C,S]=b.useState(null),A=b.useRef(!1),k=v?!!i||!!v.closest("form"):!0,N={checked:g,disabled:o,setChecked:y,control:v,setControl:x,name:l,form:i,value:p,hasConsumerStoppedPropagationRef:A,required:d,defaultChecked:Ys(a)?!1:a,isFormControl:k,bubbleInput:C,setBubbleInput:S};return M.jsx(gke,{scope:t,...N,children:bke(h)?h(N):r})}var oG="CheckboxTrigger",iG=b.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},a)=>{const{control:o,value:i,disabled:l,checked:c,required:d,setControl:p,setChecked:h,hasConsumerStoppedPropagationRef:g,isFormControl:y,bubbleInput:v}=rA(oG,e),x=Pt(a,p),C=b.useRef(c);return b.useEffect(()=>{const S=o?.form;if(S){const A=()=>h(C.current);return S.addEventListener("reset",A),()=>S.removeEventListener("reset",A)}},[o,h]),M.jsx(st.button,{type:"button",role:"checkbox","aria-checked":Ys(c)?"mixed":c,"aria-required":d,"data-state":fG(c),"data-disabled":l?"":void 0,disabled:l,value:i,...r,ref:x,onKeyDown:We(t,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:We(n,S=>{h(A=>Ys(A)?!0:!A),v&&y&&(g.current=S.isPropagationStopped(),g.current||S.stopPropagation())})})});iG.displayName=oG;var sG=b.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:o,required:i,disabled:l,value:c,onCheckedChange:d,form:p,...h}=e;return M.jsx(yke,{__scopeCheckbox:n,checked:a,defaultChecked:o,disabled:l,required:i,onCheckedChange:d,name:r,form:p,value:c,internal_do_not_use_render:({isFormControl:g})=>M.jsxs(M.Fragment,{children:[M.jsx(iG,{...h,ref:t,__scopeCheckbox:n}),g&&M.jsx(dG,{__scopeCheckbox:n})]})})});sG.displayName=Pv;var lG="CheckboxIndicator",cG=b.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,o=rA(lG,n);return M.jsx(ha,{present:r||Ys(o.checked)||o.checked===!0,children:M.jsx(st.span,{"data-state":fG(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});cG.displayName=lG;var uG="CheckboxBubbleInput",dG=b.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:a,checked:o,defaultChecked:i,required:l,disabled:c,name:d,value:p,form:h,bubbleInput:g,setBubbleInput:y}=rA(uG,e),v=Pt(n,y),x=tA(o),C=_1(r);b.useEffect(()=>{const A=g;if(!A)return;const k=window.HTMLInputElement.prototype,O=Object.getOwnPropertyDescriptor(k,"checked").set,I=!a.current;if(x!==o&&O){const D=new Event("click",{bubbles:I});A.indeterminate=Ys(o),O.call(A,Ys(o)?!1:o),A.dispatchEvent(D)}},[g,x,o,a]);const S=b.useRef(Ys(o)?!1:o);return M.jsx(st.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??S.current,required:l,disabled:c,name:d,value:p,form:h,...t,tabIndex:-1,ref:v,style:{...t.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});dG.displayName=uG;function bke(e){return typeof e=="function"}function Ys(e){return e==="indeterminate"}function fG(e){return Ys(e)?"indeterminate":e?"checked":"unchecked"}function vke(e){const t=_ke(e),n=b.forwardRef((r,a)=>{const{children:o,...i}=r,l=b.Children.toArray(o),c=l.find(xke);if(c){const d=c.props.children,p=l.map(h=>h===c?b.Children.count(d)>1?b.Children.only(null):b.isValidElement(d)?d.props.children:null:h);return M.jsx(t,{...i,ref:a,children:b.isValidElement(d)?b.cloneElement(d,void 0,p):null})}return M.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}function _ke(e){const t=b.forwardRef((n,r)=>{const{children:a,...o}=n;if(b.isValidElement(a)){const i=Tke(a),l=wke(o,a.props);return a.type!==b.Fragment&&(l.ref=r?ra(r,i):i),b.cloneElement(a,l)}return b.Children.count(a)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Eke=Symbol("radix.slottable");function xke(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Eke}function wke(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...l)=>{const c=o(...l);return a(...l),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}
vendor: 4,402 bytes, line 828
828:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function Tke(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Mv="Popover",[pG,eUe]=eo(Mv,[tl]),Ph=tl(),[Ske,cl]=pG(Mv),hG=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!1}=e,l=Ph(t),c=b.useRef(null),[d,p]=b.useState(!1),[h,g]=Ho({prop:r,defaultProp:a??!1,onChange:o,caller:Mv});return M.jsx(hh,{...l,children:M.jsx(Ske,{scope:t,contentId:fr(),triggerRef:c,open:h,onOpenChange:g,onOpenToggle:b.useCallback(()=>g(y=>!y),[g]),hasCustomAnchor:d,onCustomAnchorAdd:b.useCallback(()=>p(!0),[]),onCustomAnchorRemove:b.useCallback(()=>p(!1),[]),modal:i,children:n})})};hG.displayName=Mv;var mG="PopoverAnchor",gG=b.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=cl(mG,n),o=Ph(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=a;return b.useEffect(()=>(i(),()=>l()),[i,l]),M.jsx(mh,{...o,...r,ref:t})});gG.displayName=mG;var yG="PopoverTrigger",Cke=b.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=cl(yG,n),o=Ph(n),i=Pt(t,a.triggerRef),l=M.jsx(st.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":xG(a.open),...r,ref:i,onClick:We(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?l:M.jsx(mh,{asChild:!0,...o,children:l})});Cke.displayName=yG;var aA="PopoverPortal",[Ake,kke]=pG(aA,{forceMount:void 0}),bG=e=>{const{__scopePopover:t,forceMount:n,children:r,container:a}=e,o=cl(aA,t);return M.jsx(Ake,{scope:t,forceMount:n,children:M.jsx(ha,{present:n||o.open,children:M.jsx(_d,{asChild:!0,container:a,children:r})})})};bG.displayName=aA;var rd="PopoverContent",vG=b.forwardRef((e,t)=>{const n=kke(rd,e.__scopePopover),{forceMount:r=n.forceMount,...a}=e,o=cl(rd,e.__scopePopover);return M.jsx(ha,{present:r||o.open,children:o.modal?M.jsx(Rke,{...a,ref:t}):M.jsx(Oke,{...a,ref:t})})});vG.displayName=rd;var Nke=vke("PopoverContent.RemoveScroll"),Rke=b.forwardRef((e,t)=>{const n=cl(rd,e.__scopePopover),r=b.useRef(null),a=Pt(t,r),o=b.useRef(!1);return b.useEffect(()=>{const i=r.current;if(i)return ev(i)},[]),M.jsx(yh,{as:Nke,allowPinchZoom:!0,children:M.jsx(_G,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:We(e.onCloseAutoFocus,i=>{i.preventDefault(),o.current||n.triggerRef.current?.focus()}),onPointerDownOutside:We(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;o.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:We(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),Oke=b.forwardRef((e,t)=>{const n=cl(rd,e.__scopePopover),r=b.useRef(!1),a=b.useRef(!1);return M.jsx(_G,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(r.current||n.triggerRef.current?.focus(),o.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const i=o.target;n.triggerRef.current?.contains(i)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})}),_G=b.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:p,...h}=e,g=cl(rd,n),y=Ph(n);return qb(),M.jsx(fh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:M.jsx(yd,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:p,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:M.jsx(Qb,{"data-state":xG(g.open),role:"dialog",id:g.contentId,...y,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),EG="PopoverClose",Dke=b.forwardRef((e,t)=>
828{const{__scopePopover:n,...r}=e,a=cl(EG,n);return M.jsx(st.button,{type:"button",...r,ref:t,onClick:We(e.onClick,()=>a.onOpenChange(!1))})});Dke.displayName=EG;var Ike="PopoverArrow",Lke=b.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Ph(n);return M.jsx(Xb,{...a,...r,ref:t})});Lke.displayName=Ike;function xG(e){return e?"open":"closed"}var $ke=hG,Pke=bG,wG=vG;const TG=b.forwardRef(({className:e,...t},n)=>E.jsx(Jt,{ref:n,className:xe("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));TG.displayName=Jt.displayName;const Mke=b.forwardRef(({className:e,...t},n)=>E.jsxs("div",{className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"",children:[E.jsx(Sb,{className:"size-4! shrink-0 opacity-50"}),E.jsx(Jt.Input,{ref:n,className:xe("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Mke.displayName=Jt.Input.displayName;const SG=b.forwardRef(({className:e,...t},n)=>E.jsx("div",{className:"flex items-center","cmdk-input-wrapper":"",children:E.jsx(Jt.Input,{ref:n,className:xe("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50","focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring",e),...t})}));SG.displayName=Jt.Input.displayName;const CG=b.forwardRef(({className:e,...t},n)=>E.jsx(Jt.List,{ref:n,className:xe("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));CG.displayName=Jt.List.displayName;const jke=b.forwardRef((e,t)=>E.jsx(Jt.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));jke.displayName=Jt.Empty.displayName;const zke=b.forwardRef(({className:e,...t},n)=>E.jsx(Jt.Group,{ref:n,className:xe("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));zke.displayName=Jt.Group.displayName;const Bke=b.forwardRef(({className:e,...t},n)=>E.jsx(Jt.Separator,{ref:n,className:xe("-mx-1 h-px bg-border",e),...t}));Bke.displayName=Jt.Separator.displayName;const AG=b.forwardRef(({className:e,...t},n)=>E.jsx(Jt.Item,{ref:n,className:xe("relative flex cursor-default gap-2 select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));AG.displayName=Jt.Item.displayName;const kG=b.forwardRef(({className:e,...t},n)=>E.jsx("div",{ref:n,className:xe("rounded-xl border bg-card text-card-foreground shadow-xs",e),...t}));kG.displayName="Card";const Uke=b.forwardRef(({className:e,...t},n)=>E.jsx("div",{ref:n,className:xe("flex flex-col space-y-1.5 p-6",e),...t}));Uke.displayName="CardHeader";const Fke=b.forwardRef(({className:e,...t},n)=>E.jsx("h3",{ref:n,className:xe("font-semibold leading-none tracking-tight",e),...t}));Fke.displayName="CardTitle";const Hke=b.forwardRef(({className:e,...t},n)=>E.jsx("p",{ref:n,className:xe("text-sm text-muted-foreground",e),...t}));Hke.displayName="CardDescription";const Gke=b.forwardRef(({className:e,...t},n)=>E.jsx("div",{ref:n,className:xe("p-6 pt-0",e),...t}));Gke.displayName="CardContent";const Vke=b.forwardRef(({className:e,...t},n)=>E.jsx("div",{ref:n,className:xe("flex items-center p-6 pt-0",e),...t}));Vke.displayName="CardFooter";var qke=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Yke=qke.reduce((e,t)=>{const n=lj(`Primitive.${t}`),r=b.forwardRef((a,o)=>{const{asChild:i,...l}=a,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),M.jsx(c,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Wke="Label",NG=b.forwardRef((e,t)=>
828M.jsx(Yke.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));NG.displayName=Wke;var RG=NG,oA="Radio",[Zke,OG]=eo(oA),[Kke,Qke]=Zke(oA),DG=b.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:a=!1,required:o,disabled:i,value:l="on",onCheck:c,form:d,...p}=e,[h,g]=b.useState(null),y=Pt(t,C=>g(C)),v=b.useRef(!1),x=h?d||!!h.closest("form"):!0;return M.jsxs(Kke,{scope:n,checked:a,disabled:i,children:[M.jsx(st.button,{type:"button",role:"radio","aria-checked":a,"data-state":PG(a),"data-disabled":i?"":void 0,disabled:i,value:l,...p,ref:y,onClick:We(e.onClick,C=>{a||c?.(),x&&(v.current=C.isPropagationStopped(),v.current||C.stopPropagation())})}),x&&M.jsx($G,{control:h,bubbles:!v.current,name:r,value:l,checked:a,required:o,disabled:i,form:d,style:{transform:"translateX(-100%)"}})]})});DG.displayName=oA;var IG="RadioIndicator",LG=b.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...a}=e,o=Qke(IG,n);return M.jsx(ha,{present:r||o.checked,children:M.jsx(st.span,{"data-state":PG(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t})})});LG.displayName=IG;var Xke="RadioBubbleInput",$G=b.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...a},o)=>{const i=b.useRef(null),l=Pt(i,o),c=tA(n),d=_1(t);return b.useEffect(()=>{const p=i.current;if(!p)return;const h=window.HTMLInputElement.prototype,y=Object.getOwnPropertyDescriptor(h,"checked").set;if(c!==n&&y){const v=new Event("click",{bubbles:r});y.call(p,n),p.dispatchEvent(v)}},[c,n,r]),M.jsx(st.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:l,style:{...a.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});$G.displayName=Xke;function PG(e){return e?"checked":"unchecked"}var Jke=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],jv="RadioGroup",[eNe,tUe]=eo(jv,[Jb,OG]),MG=Jb(),jG=OG(),[tNe,nNe]=eNe(jv),zG=b.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:a,value:o,required:i=!1,disabled:l=!1,orientation:c,dir:d,loop:p=!0,onValueChange:h,...g}=e,y=MG(n),v=Vb(d),[x,C]=Ho({prop:o,defaultProp:a??null,onChange:h,caller:jv});return M.jsx(tNe,{scope:n,name:r,required:i,disabled:l,value:x,onValueChange:C,children:M.jsx(EB,{asChild:!0,...y,orientation:c,dir:v,loop:p,children:M.jsx(st.div,{role:"radiogroup","aria-required":i,"aria-orientation":c,"data-disabled":l?"":void 0,dir:v,...g,ref:t})})})});zG.displayName=jv;var BG="RadioGroupItem",UG=b.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...a}=e,o=nNe(BG,n),i=o.disabled||r,l=MG(n),c=jG(n),d=b.useRef(null),p=Pt(t,d),h=o.value===a.value,g=b.useRef(!1);return b.useEffect(()=>{const y=x=>{Jke.includes(x.key)&&(g.current=!0)},v=()=>g.current=!1;return document.addEventListener("keydown",y),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",y),document.removeEventListener("keyup",v)}},[]),M.jsx(xB,{asChild:!0,...l,focusable:!i,active:h,children:M.jsx(DG,{disabled:i,required:o.required,checked:h,...c,...a,name:o.name,ref:p,onCheck:()=>o.onValueChange(a.value),onKeyDown:We(y=>{y.key==="Enter"&&y.preventDefault()}),onFocus:We(a.onFocus,()=>{g.current&&d.current?.click()})})})});UG.displayName=BG;var rNe="RadioGroupIndicator",FG=b.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,a=jG(n);return M.jsx(LG,{...a,...r,ref:t})});FG.displayName=rNe;var HG=zG,GG=UG,aNe=FG;let Fx;const oNe=e=>{if(e.errors?.[0])throw new Sp(e.errors[0].message,{developerHint:"Check your configuration value `apis.type` and `apis.input` in the Zudoku config."})};class iNe{constructor(t){this.config=t}#e=async()=>(Fx||(Fx=z(()=>import("./createServer-DhnTDN1o-BYpA31eJ.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(t=>t.createServer(this.config))),Fx);#t=async t=>this.config.server?fetch(this.config.server,t):(await this.#e()).fetch("http://localhost/graphql",t);fetch=async(t,n)=>{const r=t.match(/query (\w+)/)?.[1],a=await this.#t({method:"POST",body:JSON.stringify({query:t,variables:n,operationName:r}),headers:{"Content-Type":"application/json"}});if(!a.ok)throw new Error("Network response was not ok");const o=await a.json();return oNe(o),o.data}}function Hx(e,t){throw new Error(t)}function sNe(e){return typeof e=="object"&&e!==null}function lNe(e,t){throw new Error(t??"Unexpected invariant triggered.")}const cNe=/\r\n|[\n\r]/g;function WT(e,t){let n=0,r=1;for(const a of e.body.matchAll(cNe)){if(typeof a.index=="number"||lNe(),a.index>=t)break;n=a.index+a[0].length,r+=1}return{line:r,column:t+1-n}}function uNe(e){return VG(e.source,WT(e.source,e.start))}function VG(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,a=t.line-1,o=e.locationOffset.line-1,i=t.line+o,l=t.line===1?n:0,c=t.column+l,d=`${e.name}:${i}:${c} 829`,p=r.split(/\r\n|[\n\r]/g),h=p[a];if(h.length>120){const g=Math.floor(c/80),y=c%80,v=[];for(let x=0;x<h.length;
vendor: 9,849 bytes, lines 829-836
829x+=80)v.push(h.slice(x,x+80));return d+AP([[`${i} |`,v[0]],...v.slice(1,g+1).map(x=>["|",x]),["|","^".padStart(y)],["|",v[g+1]]])}return d+AP([[`${i-1} |`,p[a-1]],[`${i} |`,h],["|","^".padStart(c)],[`${i+1} |`,p[a+1]]])}function AP(e){const t=e.filter(([r,a])=>a!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,a])=>r.padStart(n)+(a?" "+a:"")).join(` 830`)}function dNe(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class iA extends Error{constructor(t,...n){var r,a,o;const{nodes:i,source:l,positions:c,path:d,originalError:p,extensions:h}=dNe(n);super(t),this.name="GraphQLError",this.path=d??void 0,this.originalError=p??void 0,this.nodes=kP(Array.isArray(i)?i:i?[i]:void 0);const g=kP((r=this.nodes)===null||r===void 0?void 0:r.map(v=>v.loc).filter(v=>v!=null));this.source=l??(g==null||(a=g[0])===null||a===void 0?void 0:a.source),this.positions=c??g?.map(v=>v.start),this.locations=c&&l?c.map(v=>WT(l,v)):g?.map(v=>WT(v.source,v.start));const y=sNe(p?.extensions)?p?.extensions:void 0;this.extensions=(o=h??y)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,iA):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=` 831 832`+uNe(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=` 833 834`+VG(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function kP(e){return e===void 0||e.length===0?void 0:e}function Wo(e,t,n){return new iA(`Syntax Error: ${n}`,{source:e,positions:[t]})}class nUe{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class qG{constructor(t,n,r,a,o,i){this.kind=t,this.start=n,this.end=r,this.line=a,this.column=o,this.value=i,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const fNe={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},pNe=new Set(Object.keys(fNe));function rUe(e){const t=e?.kind;return typeof t=="string"&&pNe.has(t)}var NP;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(NP||(NP={}));function ZT(e){return e===9||e===32}function Hp(e){return e>=48&&e<=57}function YG(e){return e>=97&&e<=122||e>=65&&e<=90}function WG(e){return YG(e)||e===95}function hNe(e){return YG(e)||Hp(e)||e===95}function mNe(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,a=-1;for(let i=0;i<e.length;++i){var o;const l=e[i],c=gNe(l);c!==l.length&&(r=(o=r)!==null&&o!==void 0?o:i,a=i,i!==0&&c<n&&(n=c))}return e.map((i,l)=>l===0?i:i.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,a+1)}function gNe(e){let t=0;for(;t<e.length&&ZT(e.charCodeAt(t));)++t;return t}function yNe(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),a=r.length===1,o=r.length>1&&r.slice(1).every(y=>y.length===0||ZT(y.charCodeAt(0))),i=n.endsWith('\\"""'),l=e.endsWith('"')&&!i,c=e.endsWith("\\"),d=l||c,p=!(t!=null&&t.minimize)&&(!a||e.length>70||d||o||i);let h="";const g=a&&ZT(e.charCodeAt(0));return(p&&!g||o)&&(h+=` 835`),h+=n,(p||d)&&(h+=` 836`),'"""'+h+'"""'}var bt;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(bt||(bt={}));let bNe=class{constructor(t){const n=new qG(bt.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==bt.EOF)do if(t.next)t=t.next;else{const n=_Ne(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===bt.COMMENT);return t}};function vNe(e){return e===bt.BANG||e===bt.DOLLAR||e===bt.AMP||e===bt.PAREN_L||e===bt.PAREN_R||e===bt.DOT||e===bt.SPREAD||e===bt.COLON||e===bt.EQUALS||e===bt.AT||e===bt.BRACKET_L||e===bt.BRACKET_R||e===bt.BRACE_L||e===bt.PIPE||e===bt.BRACE_R}function Rd(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function zv(e,t){return ZG(e.charCodeAt(t))&&KG(e.charCodeAt(t+1))}function ZG(e){return e>=55296&&e<=56319}function KG(e){return e>=56320&&e<=57343}function oc(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return bt.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function ir(e,t,n,r,a){const o=e.line,i=1+n-e.lineStart;return new qG(t,n,r,o,i,a)}function _Ne(e,t){const n=e.source.body,r=n.length;let a=t;for(;a<r;){const o=n.charCodeAt(a);switch(o){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a,++e.line,e.lineStart=a;continue;case 13:n.charCodeAt(a+1)===10?a+=2:++a,++e.line,e.lineStart=a;continue;case 35:return ENe(e,a);case 33:return ir(e,bt.BANG,a,a+1);case 36:return ir(e,bt.DOLLAR,a,a+1);case 38:return ir(e,bt.AMP,a,a+1);case 40:return ir(e,bt.PAREN_L,a,a+1);case 41:return ir(e,bt.PAREN_R,a,a+1);case 46:if(n.charCodeAt(a+1)===46&&n.charCodeAt(a+2)===46)return ir(e,bt.SPREAD,a,a+3);break;case 58:return ir(e,bt.COLON,a,a+1);case 61:return ir(e,bt.EQUALS,a,a+1);case 64:return ir(e,bt.AT,a,a+1);case 91:return ir(e,bt.BRACKET_L,a,a+1);case 93:return ir(e,bt.BRACKET_R,a,a+1);case 123:return ir(e,bt.BRACE_L,a,a+1);case 124:return ir(e,bt.PIPE,a,a+1);case 125:return ir(e,bt.BRACE_R,a,a+1);case 34:return n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34?ANe(e,a):wNe(e,a)}if(Hp(o)||o===45)return xNe(e,a,o);if(WG(o))return kNe(e,a);throw Wo(e.source,a,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Rd(o)||zv(n,a)?`Unexpected character: ${oc(e,a)}.`:`Invalid character: ${oc(e,a)}.`)}return ir(e,bt.EOF,r,r)}function ENe(e,t){const n=e.source.body,r=n.length;let a=t+1;for(;a<r;){const o=n.charCodeAt(a);if(o===10||o===13)break;if(Rd(o))++a;else if(zv(n,a))a+=2;else break}return ir(e,bt.COMMENT,t,a,n.slice(t+1,a))}function xNe(e,t,n){const r=e.source.body;let a=t,o=n,i=!1;if(o===45&&(o=r.charCodeAt(++a)),o===48){if(o=r.charCodeAt(++a),Hp(o))throw Wo(e.source,a,`Invalid number, unexpected digit after 0: ${oc(e,a)}.`)}else a=Gx(e,a,o),o=r.charCodeAt(a);if(o===46&&(i=!0,o=r.charCodeAt(++a),a=Gx(e,a,o),o=r.charCodeAt(a)),(o===69||o===101)&&(i=!0,o=r.charCodeAt(++a),(o===43||o===45)&&(o=r.charCodeAt(++a)),a=Gx(e,a,o),o=r.charCodeAt(a)),o===46||WG(o))throw Wo(e.source,a,`Invalid number, expected digit but got: ${oc(e,a)}.`);return ir(e,i?bt.FLOAT:bt.INT,t,a,r.slice(t,a))}function Gx(e,t,n){if(!Hp(n))throw Wo(e.source,t,`Invalid number, expected digit but got: ${oc(e,t)}.`);const r=e.source.body;let a=t+1;for(;Hp(r.charCodeAt(a));)++a;return a}function wNe(e,t){const n=e.source.body,r=n.length;let a=t+1,o=a,i="";for(;a<r;){const l=n.charCodeAt(a);if(l===34)return i+=n.slice(o,a),ir(e,bt.STRING,t,a+1,i);if(l===92){i+=n.slice(o,a);
vendor: 6,602 bytes, lines 836-918
836const c=n.charCodeAt(a+1)===117?n.charCodeAt(a+2)===123?TNe(e,a):SNe(e,a):CNe(e,a);i+=c.value,a+=c.size,o=a;continue}if(l===10||l===13)break;if(Rd(l))++a;else if(zv(n,a))a+=2;else throw Wo(e.source,a,`Invalid character within String: ${oc(e,a)}.`)}throw Wo(e.source,a,"Unterminated string.")}function TNe(e,t){const n=e.source.body;let r=0,a=3;for(;a<12;){const o=n.charCodeAt(t+a++);if(o===125){if(a<5||!Rd(r))break;return{value:String.fromCodePoint(r),size:a}}if(r=r<<4|ap(o),r<0)break}throw Wo(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+a)}".`)}function SNe(e,t){const n=e.source.body,r=RP(n,t+2);if(Rd(r))return{value:String.fromCodePoint(r),size:6};if(ZG(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const a=RP(n,t+8);if(KG(a))return{value:String.fromCodePoint(r,a),size:12}}throw Wo(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function RP(e,t){return ap(e.charCodeAt(t))<<12|ap(e.charCodeAt(t+1))<<8|ap(e.charCodeAt(t+2))<<4|ap(e.charCodeAt(t+3))}function ap(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function CNe(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` 837`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Wo(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function ANe(e,t){const n=e.source.body,r=n.length;let a=e.lineStart,o=t+3,i=o,l="";const c=[];for(;o<r;){const d=n.charCodeAt(o);if(d===34&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34){l+=n.slice(i,o),c.push(l);const p=ir(e,bt.BLOCK_STRING,t,o+3,mNe(c).join(` 838`));return e.line+=c.length-1,e.lineStart=a,p}if(d===92&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34&&n.charCodeAt(o+3)===34){l+=n.slice(i,o),i=o+1,o+=4;continue}if(d===10||d===13){l+=n.slice(i,o),c.push(l),d===13&&n.charCodeAt(o+1)===10?o+=2:++o,l="",i=o,a=o;continue}if(Rd(d))++o;else if(zv(n,o))o+=2;else throw Wo(e.source,o,`Invalid character within String: ${oc(e,o)}.`)}throw Wo(e.source,o,"Unterminated string.")}function kNe(e,t){const n=e.source.body,r=n.length;let a=t+1;for(;a<r;){const o=n.charCodeAt(a);if(hNe(o))++a;else break}return ir(e,bt.NAME,t,a,n.slice(t,a))}const NNe=10,QG=2;function XG(e){return Bv(e,[])}function Bv(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return RNe(e,t);default:return String(e)}}function RNe(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(ONe(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:Bv(r,n)}else if(Array.isArray(e))return INe(e,n);return DNe(e,n)}function ONe(e){return typeof e.toJSON=="function"}function DNe(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>QG?"["+LNe(e)+"]":"{ "+n.map(([r,a])=>r+": "+Bv(a,t)).join(", ")+" }"}function INe(e,t){if(e.length===0)return"[]";if(t.length>QG)return"[Array]";const n=Math.min(NNe,e.length),r=e.length-n,a=[];for(let o=0;o<n;++o)a.push(Bv(e[o],t));return r===1?a.push("... 1 more item"):r>1&&a.push(`... ${r} more items`),"["+a.join(", ")+"]"}function LNe(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const $Ne=globalThis.process&&!0,PNe=$Ne?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if(typeof e=="object"&&e!==null){var n;const r=t.prototype[Symbol.toStringTag],a=Symbol.toStringTag in e?e[Symbol.toStringTag]:(n=e.constructor)===null||n===void 0?void 0:n.name;if(r===a){const o=XG(e);throw new Error(`Cannot use ${r} "${o}" from another module or realm. 839 840Ensure that there is only one instance of "graphql" in the node_modules 841directory. If different versions of "graphql" are the dependencies of other 842relied on modules, use "resolutions" to ensure only one version is installed. 843 844https://yarnpkg.com/en/docs/selective-version-resolutions 845 846Duplicate "graphql" modules cannot be used at the same time since different 847versions may have different capabilities and behavior. The data from one 848version used in the function from another could produce confusing and 849spurious results.`)}}return!1};class JG{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||Hx(!1,`Body must be a string. Received: ${XG(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Hx(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Hx(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function MNe(e){return PNe(e,JG)}function jNe(e){const t=MNe(e)?e:new JG(e),n=t.body,r=new bNe(t);let a="",o=!1;for(;r.advance().kind!==bt.EOF;){const i=r.token,l=i.kind,c=!vNe(i.kind);o&&(c||i.kind===bt.SPREAD)&&(a+=" ");const d=n.slice(i.start,i.end);l===bt.BLOCK_STRING?a+=yNe(i.value,{minimize:!0}):a+=d,o=c}return a}const e6=b.createContext(void 0),oUe=({children:e,client:t})=>E.jsx(e6.Provider,{value:t,children:e}),t6=(e,t,...[n])=>({queryFn:()=>e.fetch(t,n),queryKey:[jNe(t.toString()),n]}),zNe=(e,...[t])=>{const n=b.use(e6);if(n===void 0)throw new Error("useGraphQL must be used within a GraphQLProvider");return t6(n,e,...t===void 0?[]:[t])};let Ec=class extends String{__apiType;value;__meta__;constructor(t,n){super(t),this.value=t,this.__meta__=n}toString(){return this.value}};const BNe=new Ec(` 850 fragment OperationsFragment on OperationItem { 851 slug 852 summary 853 method 854 description 855 operationId 856 contentTypes 857 path 858 deprecated 859 extensions 860 servers { 861 url 862 description 863 } 864 parameters { 865 name 866 in 867 description 868 required 869 schema 870 style 871 explode 872 examples { 873 name 874 description 875 externalValue 876 value 877 summary 878 } 879 } 880 requestBody { 881 content { 882 mediaType 883 encoding { 884 name 885 } 886 examples { 887 name 888 description 889 externalValue 890 value 891 summary 892 } 893 schema 894 } 895 description 896 required 897 } 898 responses { 899 statusCode 900 links 901 description 902 content { 903 examples { 904 name 905 description 906 externalValue 907 value 908 summary 909 } 910 mediaType 911 encoding { 912 name 913 } 914 schema 915 } 916 } 917} 918 `,{fragmentName:"OperationsFragment"}),UNe=new Ec(`
919 query ServersQuery($input: JSON!, $type: SchemaType!) { 920 schema(input: $input, type: $type) { 921 url 922 servers { 923 url 924 } 925 } 926} 927 `),FNe=new Ec(` 928 query SchemaWarmup($input: JSON!, $type: SchemaType!) { 929 schema(input: $input, type: $type) { 930 openapi 931 } 932} 933 `),HNe=new Ec(` 934 query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) { 935 schema(input: $input, type: $type) { 936 servers { 937 url 938 } 939 description 940 summary 941 title 942 url 943 version 944 tag(slug: $tag, untagged: $untagged) { 945 name 946 description 947 operations { 948 slug 949 ...OperationsFragment 950 } 951 extensions 952 next { 953 name 954 slug 955 extensions 956 } 957 prev { 958 name 959 slug 960 extensions 961 } 962 } 963 } 964} 965 fragment OperationsFragment on OperationItem { 966 slug 967 summary 968 method 969 description 970 operationId 971 contentTypes 972 path 973 deprecated 974 extensions 975 servers { 976 url 977 description 978 } 979 parameters { 980 name 981 in 982 description 983 required 984 schema 985 style 986 explode 987 examples { 988 name 989 description 990 externalValue 991 value 992 summary 993 } 994 } 995 requestBody { 996 content { 997 mediaType 998 encoding { 999 name 1000 } 1001 examples { 1002 name 1003 description 1004 externalValue 1005 value 1006 summary 1007 } 1008 schema 1009 } 1010 description 1011 required 1012 } 1013 responses { 1014 statusCode 1015 links 1016 description 1017 content { 1018 examples { 1019 name 1020 description 1021 externalValue 1022 value 1023 summary 1024 } 1025 mediaType 1026 encoding { 1027 name 1028 } 1029 schema 1030 } 1031 } 1032}`),GNe=new Ec(` 1033 query GetSchemas($input: JSON!, $type: SchemaType!) { 1034 schema(input: $input, type: $type) { 1035 title 1036 description 1037 summary 1038 components { 1039 schemas { 1040 name 1041 schema 1042 extensions 1043 } 1044 } 1045 } 1046} 1047 `),VNe=new Ec(` 1048 query getServerQuery($input: JSON!, $type: SchemaType!) { 1049 schema(input: $input, type: $type) { 1050 url 1051 servers { 1052 url 1053 } 1054 } 1055} 1056 `),qNe=new Ec(` 1057 query GetNavigationOperations($input: JSON!, $type: SchemaType!) { 1058 schema(input: $input, type: $type) { 1059 extensions 1060 tags { 1061 slug 1062 name 1063 extensions 1064 operations { 1065 summary 1066 slug 1067 method 1068 operationId 1069 path 1070 } 1071 } 1072 components { 1073 schemas { 1074 __typename 1075 } 1076 } 1077 } 1078} 1079 `),YNe={"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":UNe,"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n servers {\n url\n description\n }\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n":BNe,"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n":FNe,"\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n":HNe,"\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }
1079\n":GNe,"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":VNe,"\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n extensions\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n":qNe};function WNe(e){return YNe[e]??{}}function Zi({...e}){return E.jsx(mF,{"data-slot":"collapsible",...e})}function op({...e}){return E.jsx(W1,{"data-slot":"collapsible-trigger",...e})}function Ki({...e}){return E.jsx(K1,{"data-slot":"collapsible-content",...e})}function ZNe(){const e=navigator.userAgent.toLowerCase();if(e.indexOf("win")!==-1)return"windows";if(e.indexOf("mac")!==-1)return"apple";if(e.indexOf("linux")!==-1)return"linux";if(e.indexOf("x11")!==-1)return"unix"}function KNe(){return ZNe()==="apple"}const QNe={other:{alt:"Alt",meta:"Ctrl",ctrl:"Ctrl",shift:"â§",option:"Alt"},apple:{alt:"â¥",meta:"â",ctrl:"Ctrl",shift:"â§",option:"â¥"}},XNe=(e,t)=>{const n=e.toLowerCase().split("+"),r=n.includes("meta"),a=n.includes("shift"),o=n.includes("option")||n.includes("alt"),i=n.includes("ctrl"),l=e.split("+").pop(),c=b.useRef(t);return b.useEffect(()=>{c.current=t},[t]),b.useEffect(()=>{const d=p=>{(p.code===`Key${l?.toUpperCase()}`||p.code.toLowerCase()===l?.toLowerCase())&&p.metaKey===r&&p.shiftKey===a&&p.altKey===o&&p.ctrlKey===i&&(p.preventDefault(),c.current())};return window.addEventListener("keydown",d),()=>{window.removeEventListener("keydown",d)}},[l,r,a,o,i]),{trigger:()=>c.current(),label:n.map(d=>d==="meta"||d==="ctrl"||d==="alt"||d==="shift"||d==="option"?QNe[KNe()?"apple":"other"][d]:d)}},JNe=Nb()(Ob(e=>({selectedServer:void 0,setSelectedServer:t=>e({selectedServer:t})}),{name:"zudoku-selected-server"})),eRe=e=>{const{selectedServer:t,setSelectedServer:n}=JNe();return{selectedServer:b.useMemo(()=>t&&e.some(r=>r.url===t)?t:e.at(0)?.url??"",[t,e]),setSelectedServer:n}},n6=b.forwardRef(({className:e,...t},n)=>E.jsx("textarea",{className:xe("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));n6.displayName="Textarea";const Mh=(e=0)=>{if(e===0)return"0 B";const t=Math.floor(Math.log(e)/Math.log(1e3));return`${(e/1e3**t).toFixed(t?2:0)} ${t?`${"kMGTPEZY"[t-1]}B`:"B"}`},ic=({children:e,className:t})=>E.jsxs("div",{className:xe("grid grid-cols-[max-content_1fr_max-content] items-center gap-2 group bg-muted w-full h-10 ps-4 pe-2 border-b",t),children:[e,E.jsxs(op,{className:xe("flex items-center gap-4 group bg-muted w-full p-2 hover:bg-accent hover:brightness-95 opacity-75 rounded-md",t),children:[E.jsx(Mq,{className:"group-data-[state=closed]:hidden shrink-0",size:14}),E.jsx(zq,{className:"group-data-[state=open]:hidden shrink-0",size:14})]})]}),Ws=({children:e,className:t})=>E.jsx("span",{className:xe("font-semibold w-full text-start",t),children:e}),tRe=({examples:e,onSelect:t})=>E.jsxs(tG,{children:[E.jsx(nG,{asChild:!0,children:E.jsxs(zr,{variant:"ghost",size:"sm",className:"hover:bg-accent hover:brightness-95 gap-2",children:["Use Example",E.jsx(uw,{size:14})]})}),E.jsx(rG,{className:"max-w-72",children:e.map(n=>E.jsxs("div",{children:[E.jsx(pke,{children:n.mediaType}),E.jsx(hke,{}),E.jsx(fke,{children:n.examples?.map(r=>E.jsx(cy,{onSelect:()=>t(r,n.mediaType),children:E.jsx("span",{className:"line-clamp-1",title:r.summary??r.name,children:r.summary??r.name})},r.name))})]},n.mediaType))})]}),Uv=$h("div","grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5 [&>*:last-child_[data-slot=remove-button]]:invisible"),Gp=$h("div","group h-9 hover:bg-accent/75 ps-4 pe-2 grid col
1079-span-full grid-cols-subgrid items-center border-b"),Eo=$h(aG,"w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono"),sA=({onClick:e,className:t})=>E.jsx(Xa,{size:"icon-xs",variant:"ghost",className:xe("text-muted-foreground opacity-0 group-hover:brightness-95 focus-visible:opacity-100 group-hover:opacity-100",t),onClick:e,type:"button","data-slot":"remove-button",children:E.jsx(Cb,{size:14})});function jh({className:e,...t}){return E.jsx(sG,{"data-slot":"checkbox",className:xe("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:E.jsx(cG,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:E.jsx(Xp,{className:"size-3.5"})})})}const nRe=({index:e,manager:t})=>{const n=b.useRef(null),r=t.getValue(e,"value");return E.jsxs(Gp,{children:[E.jsx(jh,{...t.getCheckboxProps(e),disabled:!t.getValue(e,"name")}),E.jsx(Eo,{...t.getNameInputProps(e),placeholder:"Key"}),E.jsxs("div",{className:"flex items-center gap-1 flex-1",children:[r instanceof File?E.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0",children:[E.jsxs("div",{className:"flex items-center gap-1 border-b cursor-default",children:[E.jsx(cp,{size:12,className:"text-muted-foreground"}),E.jsx("span",{className:"text-xs truncate",title:`${r.name} (${Mh(r.size)})`,children:r.name})]}),E.jsx(Xa,{type:"button",variant:"ghost",size:"icon-xs",className:"opacity-50 hover:opacity-100 hover:brightness-95 transition-opacity",onClick:()=>t.setValue(e,"value",""),children:E.jsx(hY,{size:13})})]}):E.jsxs(E.Fragment,{children:[E.jsx(Eo,{...t.getValueInputProps(e),placeholder:"Value"}),E.jsx("input",{ref:n,type:"file",className:"hidden",onChange:a=>{const o=a.target.files?.[0];o&&(t.setValue(e,"value",o),t.setValue(e,"active",!0))}}),E.jsx(Xa,{type:"button",variant:"ghost",size:"icon-xs",onClick:()=>n.current?.click(),title:"Attach file",className:"opacity-0 focus-visible:opacity-100 group-hover:opacity-100 group-hover:brightness-95 transition-opacity",children:E.jsx(cp,{size:14})})]}),E.jsx(sA,{...t.getRemoveButtonProps(e)})]})]})},lA=e=>{const{control:t,name:n,defaultValue:r,isEmpty:a,shouldSetActive:o}=e,{setValue:i,watch:l,setFocus:c,register:d}=kd(),{fields:p,append:h,remove:g}=xH({control:t,name:n}),y=l(n),v=b.useRef(-1),x=b.useRef(-1),C=b.useCallback((P,X,K,Q)=>{(X==="value"||X==="name")&&(v.current=P),i(`${n}.${P}.${X}`,K),Q?.focus==="next"?c(X==="name"?`${n}.${P}.value`:`${n}.${P+1}.name`):Q?.focus==="previous"&&c(X==="name"?`${n}.${P-1}.value`:`${n}.${P}.name`)},[n,i,c]),S=b.useCallback(P=>a?a(P):!P.name&&!P.value,[a]),A=b.useCallback(P=>o?o(P):!!(P.name||P.value),[o]);b.useEffect(()=>{if(!y)return;if(x.current===-1){x.current=y.length,y.length===0&&h(r,{shouldFocus:!1});return}if(x.current=y.length,y.length===0){h(r,{shouldFocus:!1});return}if(y.length>1){const X=[];for(let K=0;K<y.length-1;K++){const Q=y[K];Q&&S(Q)&&!A(Q)&&X.push(K)}if(X.length>0){const K=X[0];if(K===void 0)return;for(let Q=X.length-1;Q>=0;Q--){const ne=X[Q];ne!==void 0&&g(ne)}if(v.current===K){const Q=y.length-X.length;K<Q?c(`${n}.${K}.name`):K>0?c(`${n}.${K-1}.name`):c(`${n}.0.name`)}v.current=-1}}const P=y[y.length-1];P&&!S(P)&&h(r,{shouldFocus:!1})},[y,h,g,r,S,n,c,A]),b.useEffect(()=>{if(!y)return;const P=[];for(let X=0;X<y.length;X++){const K=y[X];if(!K)continue;const Q=A(K);K.active!==Q&&P.push(()=>C(X,"active",Q))}P.length!==0&&b.startTransition(()=>P.forEach(X=>X()))},[y,A,C]);const k=b.useCallback(P=>{const X=y?.[P];return X?S(X):!0},[y,S]),N=b.useCallback((P,X)=>{const K=X==="name"?`${n}.${P}.value`:`${n}.${P+1}.name`,Q=X==="name"?`${n}.${P-1}.value`:`${n}.${P}.name`,ne=X==="value"||P>0;return ae=>{if(!(ae.target instanceof HTMLInputElement))return;const H=ae.target.selectionStart===0,re=ae.target.selectionStart===ae.target.value.length,ee=!ae.target.value;ae.key==="Enter"?c(K):ae.key==="Backspace"&&ee&&ne||ae.key==="ArrowLeft"&&H&&ne?(ae.preventDefault(),c(Q)):ae.key==="ArrowRight"&&re&&(ae.preventDefault(),c(K))}},[n,c]),O=b.useCallback(P=>({...d(`${n}.${P}.name`),onChange:X=>C(P,"name",X.target.value),onKeyDown:N(P,"name")}),[d,n,C,N]),I=b.useCallback(P=>({...d(`${n}.${P}.value`),onChange:X=>C(P,"value",X.target.value),onKeyDown:N(P,"value")}),[d,n,C,N]),D=b.useCallback(P=>({...d(`${n}.${P}.active`),checked:l(`${n}.${P}.active`)??!1,disabled:k(P),onCheckedChange:X=>{C(P,"active",X===!0)}}),[n,d,k,l,C]),U=b.useCallback((P,X)=>y?.[P]?.[X],[y]),J=b.useCallback(P=>({onClick:()=>g(P),disabled:P===p.length-1}),[g,p.length]);return{fields:p,getNameInputProps:O,getValueInputProps:I,getCheckboxProps:D,getRemoveButtonProps:J,setValue:C,getValue:U}},rRe=({content:e})=>{const{register:t,setValue:n,watch:r,control:a}=kd(),o=(e??[]).flatMap(N=>N.examples),[i,l,c,d,p]=r(["headers","file","bodyMode","body","multipartFormFields"]),h=b.useRef(null),[g,y]=b.useState(!1),v=N=>{n("file",N),N&&n("headers",i.filter(O=>O.name.toLowerCase()!=="content-type"||!O.active))},x=N=>{const O=N.target.files?.[0]??null;v(O)},C=N=>{N.preventDefault(),N.stopPropagation(),y(!0)},S=N=>{N.preventDefault(),N.stopPropagation(),y(!1)},A=N=>{N.preventDefault(),N.stopPropagation(),y(!1);const O=N.dataTransfer.files?.[0]??null;v(O)},k=lA({control:a,name:"multipartFormFields",defaultValue:{name:"",value:"",active:!1},isEmpty:N=>N.value instanceof File?!1:!N.name&&!N.value});return E.jsxs(Zi,{defaultOpen:!0,children:[E.jsxs(ic,{className:"items-center",children:[E.jsx(h7,{size:16}),E.jsxs(Ws,{className:"flex items-center justify-between",children:["Body",E.jsxs("div",{className:"flex items-center",children:[E.jsxs(tG,{children:[E.jsx(nG,{asChild:!0,children:E.jsxs(Xa,{variant:"ghost",size:"sm",className:"hover:bg-accent hover:brightness-95 gap-2",children:[c==="text"?E.jsxs(E.Fragment,{children:[E.jsx(kO,{size:14}),"Text"]}):c==="file"?E.jsxs(E.Fragment,{children:[E.jsx(cp,{size:14}),"File"]}):E.jsxs(E.Fragment,{children:[E.jsx(TO,{size:14}),"Multipart"]}),E.jsx(Tb,{size:14})]})}),E.jsxs(rG,{className:"min-w-40",children:[E.jsxs(cy,{onSelect:()=>n("bodyMode","text"),className:"gap-2",children:[E.jsx(kO,{size:14}),E.jsx("span",{className:"flex-1",children:"Text"}),E.jsx("span",{children:d.length>0&&E.jsx("div",{className:"w-1.5 h-1.5 bg-primary rounded-full"})})]}),E.jsxs(cy,{onSelect:()=>n("bodyMode","file"),className:"gap-2",children:[E.jsx(cp,{size:14}),E.jsx("span",{className:"flex-1",children:"File"}),E.jsx("span",{children:l&&E.jsx("div",{className:"w-1.5 h-1.5 bg-primary rounded-full"})})]}),E.jsxs(cy,{onSelect:()=>n("bodyMode","multipart"),className:"gap-2",children:[E.jsx(TO,{size:14,strokeWidth:1.5}),E.jsx("span",{className:"flex-1",children:"Multipart"}),E.jsx("span",{children:p?.some(N=>N.active)&&E.jsx("div",{className:"w-1.5 h-1.5 bg-primary rounded-full"})})]})]})]}),E.jsx("input",{ref:h,type:"file",className:"hidden",onChange:x}),E.jsx("div",{className:"w-px mx-1 h-5 bg-border"}),e&&o.length>0?E.jsx(tRe,{examples:e,onSelect:(N,O)=>
1079{n("body",JSON.stringify(N.value,null,2)),n("headers",[...i.filter(I=>I.name!=="Content-Type"),{name:"Content-Type",value:O,active:!0}])}}):E.jsx("div",{})]})]})]}),E.jsxs(Ki,{className:"CollapsibleContent flex flex-col gap-2",children:[c==="text"&&E.jsx(n6,{...t("body"),className:xe("w-full px-4 py-2.5 h-64 font-mono md:text-xs border-none rounded-none focus-visible:ring-0 transition-colors"),placeholder:"Body content"}),c==="file"&&E.jsxs("div",{role:"region","aria-label":"File upload drop zone",className:xe("flex flex-col items-center justify-center gap-4 min-h-[300px]"),onDragOver:C,onDragLeave:S,onDrop:A,children:[E.jsx("button",{type:"button",onClick:()=>h.current?.click(),className:xe("flex items-center justify-center gap-2 rounded-full size-20 p-0 border border-dashed border-muted-foreground/50 hover:bg-accent/75 transition-colors",(l||g)&&"border-solid",g&&"bg-accent border-primary"),children:E.jsx(cp,{className:xe("text-muted-foreground",g&&"text-primary"),size:30})}),l?E.jsxs("div",{className:"flex items-center justify-between gap-2 px-2 py-1.5 rounded-md border",children:[E.jsxs("span",{className:"text-sm truncate",title:l.name,children:[l.name," ",E.jsxs("span",{className:"text-muted-foreground",children:["(",Mh(l.size),")"]})]}),E.jsx(Xa,{type:"button",variant:"ghost",size:"icon-xxs",onClick:()=>v(null),children:E.jsx(Cb,{size:14})})]}):E.jsx("span",{className:"text-lg font-semibold text-muted-foreground",children:"Select or drop a file"})]}),c==="multipart"&&E.jsx(Uv,{children:k.fields.map((N,O)=>E.jsx(nRe,{index:O,manager:k},N.id))})]})]})},OP=(e,t,n)=>{const r=t.replace(/(:\w+|\{\w+})/g,o=>{const i=o.replace(/[:{}]/g,"");return n.pathParams.find(l=>l.name===i)?.value??o}),a=new URL(r.replace(/^\//,""),e.endsWith("/")?e:`${e}/`);return n.queryParams.filter(o=>o.active).forEach(o=>{a.searchParams.set(o.name,o.value)}),a};function aRe(e){return/^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(e)}function oRe(e){return/^audio\//i.test(e)}const iRe=(e,t)=>{const n=e.find(([r])=>r.toLowerCase()==="content-disposition")?.[1];if(n){const r=n.match(/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/);if(r?.[1])return r[1].replace(/['"]/g,"")}try{const r=new URL(t).pathname.split("/").pop()||"download";return r.includes(".")?r:"download"}catch{return"download"}},sRe=$ke,r6=b.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},a)=>E.jsx(Pke,{children:E.jsx(wG,{ref:a,align:t,sideOffset:n,className:xe("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));r6.displayName=wG.displayName;const lRe=({value:e,options:t,onChange:n,className:r,placeholder:a="Value",onEnterPress:o,onKeyDown:i,ref:l,onSelect:c}
1079)=>{const[d,p]=b.useState(!1),[h,g]=b.useState(!1),y=rs(x=>x.filtered.count),v=b.useRef(null);return E.jsxs(sRe,{open:d,children:[E.jsx(gG,{children:E.jsx(SG,{autoComplete:"off",ref:x=>{v.current=x,typeof l=="function"?l(x):l&&(l.current=x)},value:e?String(e):void 0,placeholder:a,className:xe("h-9 bg-transparent",r),onFocus:()=>p(!0),onBlur:()=>{h||p(!1)},onKeyDown:x=>{i?.(x),!x.defaultPrevented&&x.key==="Enter"&&(p(!1),v.current?.blur(),o?.(x))},onValueChange:x=>n(x)})}),E.jsx(r6,{onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),onOpenAutoFocus:x=>x.preventDefault(),className:xe("p-0 w-(--radix-popover-trigger-width)",{"border-0":y===0}),align:"start",side:"bottom",onWheel:x=>{x.stopPropagation()},onTouchMove:x=>{x.stopPropagation()},children:E.jsx(CG,{className:"max-h-[140px]",children:t.map(x=>E.jsx(AG,{value:x,onSelect:C=>{c?.(C),n(C),p(!1)},className:"cursor-pointer",children:x},x))})})]})},lb=({shouldFilter:e,...t})=>E.jsx(TG,{className:"bg-transparent",shouldFilter:e,children:E.jsx(lRe,{...t})}),cRe=Object.freeze(["Accept","Accept-Encoding","Accept-Language","Authorization","Cache-Control","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Range","Content-Security-Policy","Content-Type","Cookie","Date","ETag","Expires","Host","If-Modified-Since","Location","Origin","Pragma","Referer","Set-Cookie","User-Agent","X-Requested-With"]),uRe=({control:e,schemaHeaders:t,lockedHeaders:n})=>{const{watch:r,formState:a}=kd(),o=r("headers"),i=lA({control:e,name:"headers",defaultValue:{name:"",value:"",active:!1}}),l=t.filter(p=>!o.some(h=>h.name===p.name)).map(({name:p})=>p),c=i.fields.flatMap((p,h)=>n?.map(g=>g.toLowerCase()).includes(p.name.toLowerCase())?[h]:[]),d=n?.map(p=>({name:p,id:`locked-${p}`,value:"â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢",active:!0,locked:!0}))??[];return E.jsxs(Zi,{defaultOpen:!0,children:[E.jsxs(ic,{children:[E.jsx(fY,{size:14}),E.jsx(Ws,{children:"Headers"})]}),E.jsx(Ki,{className:"CollapsibleContent",children:E.jsx("div",{className:"flex flex-col gap-2",children:E.jsx("div",{className:"overflow-hidden",children:E.jsxs(Uv,{children:[d.map(p=>E.jsxs(_T,{children:[E.jsx(ET,{asChild:!0,children:E.jsxs(Gp,{className:"opacity-50 cursor-not-allowed font-mono text-xs min-h-10",children:[E.jsx(L7,{size:16}),E.jsx(Eo,{value:p.name,disabled:!0}),E.jsx("div",{children:p.value})]},p.id)}),E.jsx(xT,{alignOffset:10,side:"bottom",align:"start",children:E.jsx("p",{children:"This header is set by the selected authentication."})})]},p.id)),i.fields.map((p,h)=>{const g=t.find(S=>S.name===o.at(h)?.name),y=g?.enum&&g.enum.length>0,v=c.includes(h),x=i.getNameInputProps(h),C=i.getValueInputProps(h);return E.jsxs(Gp,{className:xe(v&&"text-amber-600",v&&!a.dirtyFields.headers?.[h]?.value&&"hidden"),children:[E.jsx(jh,{className:xe(v&&"hidden"),...i.getCheckboxProps(h)}),E.jsxs(_T,{children:[E.jsx(ET,{asChild:!0,children:E.jsx(Uq,{className:xe("text-amber-600",!v&&"hidden"),size:16})}),E.jsx(xT,{alignOffset:10,side:"bottom",align:"start",children:E.jsx("p",{children:"This header will be overwritten by the selected authentication."})})]}),E.jsx(Eo,{asChild:!0,children:E.jsx(lb,{...x,value:String(i.getValue(h,"name")),placeholder:"Name",options:[...l,...cRe],onChange:S=>i.setValue(h,"name",S),onSelect:S=>i.setValue(h,"name",S,{focus:"next"})})}),E.jsxs("div",{className:"flex items-center gap-2",children:[y?E.jsx(Eo,{asChild:!0,children:E.jsx(lb,{...C,value:String(i.getValue(h,"value")),shouldFilter:!1,options:g.enum??[],onChange:S=>i.setValue(h,"value",S),onSelect:S=>i.setValue(h,"value",S,{focus:"next"})})}):E.jsx(Eo,{placeholder:"Value",autoComplete:"off",...C}),E.jsx(sA,{...i.getRemoveButtonProps(h)})]})]},p.id)})]})})})})]})},dRe=hi("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Fv=b.forwardRef(({className:e,...t},n)=>E.jsx(RG,{ref:n,className:xe(dRe(),e),...t}));Fv.displayName=RG.displayName;const a6=b.forwardRef(({className:e,...t},n)=>E.jsx(HG,{className:xe("grid gap-2",e),...t,ref:n}));a6.displayName=HG.displayName;const o6=b.forwardRef(({className:e,...t},n)=>
1079E.jsx(GG,{ref:n,className:xe("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:E.jsx(aNe,{className:"flex items-center justify-center",children:E.jsx(JM,{className:"h-2.5 w-2.5 fill-current text-current"})})}));o6.displayName=GG.displayName;const i6=({identities:e,setValue:t,value:n})=>E.jsx("div",{className:"w-full overflow-hidden",children:E.jsx(a6,{onValueChange:r=>t(r),value:n,defaultValue:Ep,className:"gap-0",disabled:e?.length===0,children:[{id:Ep,label:"None"},...e??[]].map(r=>E.jsxs(Fv,{className:"h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",children:[E.jsx(o6,{value:r.id,id:r.id}),E.jsx("span",{children:r.label})]},r.id))})}),fRe=({onSubmit:e,identities:t,open:n,onOpenChange:r})=>{const[a,o]=b.useState(void 0),[i,l]=b.useState(!1);return E.jsx(Rh,{open:n,onOpenChange:r,children:E.jsxs(Oh,{children:[E.jsx(_v,{children:"Select an auth identity"}),E.jsx(NC,{children:"Please select an identity for this request."}),E.jsx(kG,{className:"max-h-80 overflow-auto",children:E.jsx(i6,{identities:t,setValue:o,value:a})}),E.jsxs(kC,{className:"flex flex-col gap-2",children:[E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx(jh,{id:"remember",checked:i,onCheckedChange:c=>l(c==="indeterminate"?!1:!!c)}),E.jsx(Fv,{htmlFor:"remember",children:"Remember my choice"})]}),E.jsx(zr,{onClick:()=>e({identity:a,rememberedIdentity:i}),children:"Send"})]})]})})},Vx=e=>Math.abs(Number.isNaN(Number(e))?e.toLowerCase().charCodeAt(0)-96:Number.isNaN(Number(e))?0:Number(e)),qx=e=>e.length>1?Number(e.split("").reduce((t,n)=>`${Vx(t)+Vx(n)}`)):Vx(e),DP=(e,t={})=>{const n=(3*qx(e)+2*qx(e)+qx(e))%360,{saturation:r=75,lightness:a=60}=t;return`${n}deg ${r}% ${a}%`},Yx="data-linked-param",pRe=e=>{const{resolvedTheme:t}=f1();return{text:DP(e,t==="light"?{saturation:95,lightness:38}:{}),background:DP(e,t==="light"?{saturation:85,lightness:40}:{})}},s6=({name:e,className:t,slug:n,title:r,children:a,onClick:o})=>{const i=b.useRef(null),l=n?.replace(/[{}]/g,""),c=e.replace(/[{}]/g,""),{text:d,background:p}=pRe(c),h=`hsl(${d} / 100%)`,g=`hsl(${p} / 10%)`,y=`hsl(${p} / 50%)`;return b.useEffect(()=>{if(!l||!i.current)return;const v=()=>{document.querySelectorAll(`[${Yx}="${l}"]`).forEach(S=>{S instanceof HTMLElement&&(S.dataset.active="true")})},x=()=>{document.querySelectorAll(`[${Yx}="${l}"]`).forEach(S=>{S instanceof HTMLElement&&(S.dataset.active="false")})},C=i.current;return C.addEventListener("mouseenter",v),C.addEventListener("mouseleave",x),()=>{C.removeEventListener("mouseenter",v),C.removeEventListener("mouseleave",x)}},[l]),E.jsx("span",{[Yx]:l,className:xe("relative transition-all duration-100 rounded-lg","border border-(--border-color) p-0.5 text-(--param-color) bg-(--background-color)","data-[active=true]:border-(--param-color) data-[active=true]:shadow-sm data-[active=true]:bottom-px",t),title:r,suppressHydrationWarning:!0,ref:i,onClick:o,style:{"--param-color":h,"--border-color":y,"--background-color":g},children:a??e})},hRe=({control:e,url:t})=>{const{fields:n}=xH({control:e,name:"pathParams"}),r=[...n].sort((a,o)=>t.indexOf(`{${a.name}}`)-t.indexOf(`{${o.name}}`));return E.jsx(Uv,{children:r.map((a,o)=>E.jsxs(Gp,{children:[E.jsx(gP,{control:e,name:`pathParams.${o}.name`,render:()=>E.jsx("div",{className:"flex items-center",children:E.jsx(s6,{slug:a.name,name:a.name,className:"font-mono text-xs px-2"})})}),E.jsx("div",{className:"flex justify-between items-center col-span-2",children:E.jsx(gP,{control:e,name:`pathParams.${o}.value`,render:({field:i})=>E.jsx(Eo,{...i,required:!0,placeholder:"Value"})})})]},a.id))})},mRe=({control:e,schemaQueryParams:t})=>{const{watch:n}=kd(),r=n("queryParams"),a=lA({control:e,name:"queryParams",defaultValue:{name:"",value:"",active:!1}}),o=t.map(l=>!!l.isRequired),i=t.length>0;return E.jsxs(Zi,{defaultOpen:!0,children:[E.jsxs(ic,{children:[E.jsx(bY,{size:16}),E.jsx(Ws,{children:"Query Parameters"})]}),E.jsx(Ki,{className:"CollapsibleContent",children:E.jsx(Uv,{children:a.fields.map((l,c)=>{const d=t.find(y=>y.name===r.at(c)?.name),p=d?.enum&&d.enum.length>0,h=a.getNameInputProps(c),g=a.getValueInputProps(c);return E.jsxs(Gp,{children:[E.jsx(jh,{...a.getCheckboxProps(c)}),o[c]?E.jsx(Eo,{asChild:!0,children:E.jsxs("label",{className:"flex items-center cursor-pointer gap-1",htmlFor:`queryParams.${c}.active`,title:o[c]?"Required field":void 0,children:[r[c]?.name,o[c]&&E.jsx("sup",{children:"Â *"})]})}):i?E.jsx(Eo,{asChild:!0,children:E.jsx(lb,{...h,value:String(a.getValue(c,"name")),placeholder:"Name",options:t.map(y=>y.name),onChange:y=>a.setValue(c,"name",y),onSelect:y=>a.setValue(c,"name",y,{focus:"next"})})}):E.jsx(Eo,{...h,placeholder:"Name"}),E.jsxs("div",{className:"flex justify-between items-center",children:[p?E.jsx(Eo,{asChild:!0,children:E.jsx(lb,{...g,value:String(a.getValue(c,"value")),shouldFilter:!1,options:d.enum??[],onChange:y=>a.setValue(c,"value",y),onSelect:y=>a.setValue(c,"value",y,{focus:"next"})})}):E.jsx(Eo,{placeholder:"Value","aria-label":"Query parameter value",...g}),E.jsx(sA,{...a.getRemoveButtonProps(c)})]})]},l.id)})})})]})},gRe=({open:e,setOpen:t,onSignUp:n,onLogin:r,onSkip:a})=>{const[o,i]=b.useState(!1),l=()=>{a?.(o),t(!1)};return E.jsx(Rh,{open:e,onOpenChange:t,children:E.jsxs(Oh,{children:[E.jsx(_v,{children:"Welcome to the Playground!"}),E.jsx(NC,{children:"The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login."}),E.jsxs(Fv,{className:"flex items-center gap-2 font-normal",children:[E.jsx(jh,{checked:o,onCheckedChange:c=>i(c===!0)}),"Don't show this again"]}),E.jsxs(kC,{className:"flex gap-2 sm:justify-between",children:[E.jsx(zr,{type:"button",variant:"outline",onClick:l,children:"Skip"}),E.jsxs("div",{className:"flex gap-2",children:[n&&E.jsx(zr,{type:"button",variant:"outline",onClick:n,children:"Sign Up"}),r&&E.jsx(zr,{type:"button",variant:"default",onClick:r,children:"Login"})]})]})]})})},yRe=Nb()(Ob((e,t)=>
1079({rememberedIdentity:null,setRememberedIdentity:n=>e({rememberedIdentity:n}),getRememberedIdentity:n=>n.find(r=>r===t().rememberedIdentity)}),{name:"identity-storage",storage:Rb(()=>sessionStorage)})),bRe=({path:e,renderParam:t})=>{let n=0;return e.split("/").map((r,a,o)=>{const i=Array.from(r.matchAll(/{([^}]+)}/g)),l=[];let c=0;return i.forEach(d=>{const[p,h]=d;if(!h)return;const g=d.index;g>c&&l.push(E.jsx(b.Fragment,{children:r.slice(c,g)},`text-${c}-${g}`)),l.push(E.jsx(b.Fragment,{children:t({name:h,originalValue:p,index:n++})},`param-${h}`)),c=g+p.length}),c<r.length&&l.push(E.jsx(b.Fragment,{children:r.slice(c)},`text-${c}-${r.length}`)),E.jsxs(b.Fragment,{children:[l,a<o.length-1&&"/",E.jsx("wbr",{})]},`${r}-${a}`)})},vRe=({url:e})=>{const{watch:t,setFocus:n}=kd(),[r]=t(["pathParams"]);return E.jsx(bRe,{path:e,renderParam:({name:a,originalValue:o,index:i})=>{const l=r.find(c=>c.name===a)?.value;return E.jsx(s6,{name:a,backgroundOpacity:"0",slug:a,onClick:()=>n(`pathParams.${i}.value`),children:l||o})}})},_Re=()=>{const{watch:e}=kd(),t=e("queryParams").filter(n=>n.active&&n.name).map((n,r,a)=>E.jsxs(b.Fragment,{children:[n.name,"=",encodeURIComponent(n.value).replaceAll("%20","+"),r<a.length-1&&"&",E.jsx("wbr",{})]},`${r}-${n.name}`));return E.jsxs(E.Fragment,{children:[t.length>0?"?":"",t]})},ERe=({status:e})=>{if(!e)return E.jsx("div",{className:"w-2 h-2 rounded-full bg-gray-500"});switch(Number(e.toString().slice(0,1))){case 2:return E.jsx("div",{className:"w-2 h-2 rounded-full bg-green-500"});case 4:return E.jsx("div",{className:"w-2 h-2 rounded-full bg-yellow-400"});case 5:return E.jsx("div",{className:"w-2 h-2 rounded-full bg-red-500"});default:return E.jsx("div",{className:"w-2 h-2 rounded-full bg-gray-500"})}},xRe=()=>{const e=b.useRef(null),t=b.useRef(null),n=b.useRef(Date.now()),r=b.useRef(null),a=b.useCallback(()=>{if(t.current){const o=Date.now()-n.current;t.current.nodeValue=o.toFixed()}r.current=requestAnimationFrame(a)},[]);return b.useLayoutEffect(()=>{const o=e.current;if(!o)return;const i=document.createTextNode("0");return o.appendChild(i),t.current=i,n.current=Date.now(),r.current=requestAnimationFrame(a),()=>{r.current&&cancelAnimationFrame(r.current),t.current&&o.contains(i)&&o.removeChild(i)}},[a]),E.jsx("span",{className:"inline-block text-end w-[3ch]",ref:e})},wRe=({status:e,time:t,size:n,isFinished:r,progress:a})=>{const o={200:"OK",201:"Created",202:"Accepted",204:"No Content",400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",500:"Internal Server Error"};return E.jsxs("div",{className:"relative shrink-0 flex h-10 text-xs gap-4 px-4 items-center justify-between font-mono border-b",children:[E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx(ERe,{status:e})," ",e??"Sending Request...",e?` ${o[e]}`:""]}),E.jsxs("div",{className:"flex gap-2",children:[E.jsxs("div",{children:[E.jsx("span",{className:"text-muted-foreground",children:"Size"})," ",E.jsx("span",{className:"inline-block text-end min-w-[5ch]",children:n?Mh(n):"- B"})]}),E.jsxs("div",{children:[E.jsx("span",{className:"text-muted-foreground",children:"Time"})," ",t!==void 0?`${t.toFixed(0)}`:E.jsx(xRe,{}),"ms"]})]}),E.jsx("div",{className:"h-full bg-neutral-500/10 absolute left-0 bottom-0 z-10 transition-all duration-200 ease-in-out",style:{opacity:r?0:1,width:r?0:`${a*100}%`}})]})},TRe=({blob:e,fileName:t,size:n,onDownload:r})=>{const[a,o]=b.useState(null);return b.useEffect(()=>{const i=URL.createObjectURL(e);return o(i),()=>{URL.revokeObjectURL(i)}},[e]),a?E.jsx("div",{className:"p-4 text-center",children:E.jsxs("div",{className:"flex flex-col items-center gap-4",children:[E.jsx("audio",{controls:!0,src:a,className:"w-full max-w-md",children:"Your browser does not support the audio element."}),E.jsxs(zr,{onClick:r,className:"flex items-center gap-2",children:[E.jsx(e2,{className:"h-4 w-4"}),"Download ",t," (",Mh(n),")"]})]})}):E.jsx("div",{className:"p-4 text-center",children:E.jsx("div",{className:"text-sm text-muted-foreground",children:"Loading audio..."})})};function cA(e){if(e===null)return"null";if(Array.isArray(e)){if(e.length===0)return"any[]";const t=e[0];return t===void 0?"any[]":`${cA(t)}[]`}return typeof e=="object"?SRe(e):typeof e}function SRe(e,t=""){const n=["{"];for(const[r,a]of Object.entries(e)){const o=cA(a);n.push(` ${r}: ${o};`)}return n.push("}"),n.join(` 1080`)}function CRe(e){return{lines:[`type GeneratedType = ${cA(e)};`]}}const ARe=e=>Object.entries({"application/json":"json","text/json":"json","text/html":"html","text/css":"css","text/javascript":"javascript","application/xml":"xml","application/xhtml+xml":"xhtml"}).find(([t])=>e.includes(t))?.[1],l6=e=>e.find(([t])=>t.toLowerCase()==="content-type")?.[1]||"",kRe=e=>{const t=l6(e);return ARe(t)},NRe=e=>{try{return JSON.stringify(JSON.parse(e),null,2)}catch{return null}},RRe=e=>{const t=["Content-Type","Content-Length","Authorization","X-RateLimit-Remaining","X-RateLimit-Limit","Cache-Control","ETag"].map(n=>n.toLowerCase());return[...e].sort(([n],[r])=>{const a=t.indexOf(n.toLowerCase()),o=t.indexOf(r.toLowerCase());return a===o?0:a===-1?1:o===-1?-1:a-o})},ni=3,Lg=$h("div","grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"),ip=$h("div","py-1 break-words"),$g=({value:e,header:t})=>{const n=["authorization","key","secret","token"].includes(t.toLowerCase()),[r,a]=b.useState(!n);return E.jsx(ip,{className:xe("max-h-28 overflow-auto",n&&"cursor-pointer flex group"),onClick:()=>{n&&a(o=>!o)},children:n?E.jsxs(E.Fragment,{children:[E.jsx(uke,{secret:e,previewChars:0,revealed:r}),r?E.jsx(u7,{size:14,className:xe("hidden group-hover:block")}):E.jsx(f7,{size:14,className:xe("hidden group-hover:block")})]}):e})},ORe=({body:e="",headers:t,request:n,size:r,isBinary:a=!1,fileName:o,blob:i})=>{const l=kRe(t),c=NRe(e),d=c||e,[p,h]=b.useState(c?"formatted":"raw"),g=eh({queryKey:["types",d],queryFn:async()=>CRe(JSON.parse(d)),enabled:p==="types"&&!a}),y=()=>
1080{if(i&&o){const x=URL.createObjectURL(i),C=document.createElement("a");C.href=x,C.download=o,document.body.appendChild(C),C.click(),document.body.removeChild(C),URL.revokeObjectURL(x)}},v=RRe([...t]);return E.jsxs(E.Fragment,{children:[E.jsxs(Zi,{defaultOpen:!0,children:[E.jsxs(ic,{children:[E.jsx(a7,{size:14}),E.jsx(Ws,{children:"Request Headers"})]}),E.jsx(Ki,{children:E.jsxs("div",{className:"grid grid-cols-[2fr_3fr] gap-x-6 text-sm",children:[n.headers.slice(0,ni).map(([x,C])=>E.jsxs(Lg,{children:[E.jsx(ip,{children:x}),E.jsx($g,{value:C,header:x})]},x)),n.headers.length>ni&&E.jsxs(Zi,{className:"col-span-full grid-cols-subgrid grid group",children:[E.jsxs(op,{className:"data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2",children:["Show ",n.headers.length-ni," more headers",E.jsx(uw,{size:12,className:"text-muted-foreground"})]}),E.jsxs(Ki,{className:"col-span-full grid grid-cols-subgrid",children:[n.headers.slice(ni).map(([x,C])=>E.jsxs(Lg,{children:[E.jsx(ip,{children:x}),E.jsx($g,{value:C,header:x})]},x)),E.jsxs(op,{className:"justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2",children:["Hide ",n.headers.length-ni," headers",E.jsx(wO,{size:12,className:"text-muted-foreground"})]})]})]})]})})]}),E.jsxs(Zi,{defaultOpen:!0,children:[E.jsxs(ic,{children:[E.jsx(n7,{size:14}),E.jsx(Ws,{children:"Response Headers"})]}),E.jsx(Ki,{children:E.jsxs("div",{className:"grid grid-cols-[2fr_3fr] gap-x-6 text-sm",children:[v.slice(0,ni).map(([x,C])=>E.jsxs(Lg,{children:[E.jsx(ip,{children:x}),E.jsx($g,{value:C,header:x})]},x)),v.length>ni&&E.jsxs(Zi,{className:"col-span-full grid-cols-subgrid grid group",children:[E.jsxs(op,{className:"data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2",children:["Show ",v.length-ni," more headers",E.jsx(uw,{size:12,className:"text-muted-foreground"})]}),E.jsxs(Ki,{className:"col-span-full grid grid-cols-subgrid",children:[v.slice(ni).map(([x,C])=>E.jsxs(Lg,{children:[E.jsx(ip,{children:x}),E.jsx($g,{value:C,header:x})]},x)),E.jsxs(op,{className:"justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2",children:["Hide ",v.length-ni," headers",E.jsx(wO,{size:12,className:"text-muted-foreground"})]})]})]})]})})]}),E.jsxs("div",{className:"flex gap-2 justify-between items-center border-b px-2 flex-0",children:[E.jsxs(Ws,{className:"flex items-center gap-2",children:[E.jsx(lY,{size:14}),"Response body"]}),c&&!a&&E.jsxs(QH,{value:p,onValueChange:x=>h(x),children:[E.jsx(JH,{className:"max-w-32 border-0 bg-transparent",children:E.jsx(XH,{placeholder:"View"})}),E.jsxs(eG,{children:[E.jsx(ly,{value:"formatted",children:"Formatted"}),E.jsx(ly,{value:"raw",children:"Raw"}),E.jsx(ly,{value:"types",children:"Types"})]})]})]}),E.jsx("div",{className:"flex-1",children:a?i&&oRe(l6(t))?E.jsx(TRe,{blob:i,fileName:o??"audio",size:r,onDownload:y}):E.jsx("div",{className:"p-4 text-center",children:E.jsxs("div",{className:"flex flex-col items-center gap-4",children:[E.jsx("div",{className:"text-lg font-semibold",children:"Binary Content"}),E.jsx("div",{className:"text-sm text-muted-foreground",children:"This response contains binary data that cannot be displayed as text."}),E.jsxs(zr,{onClick:y,className:"flex items-center gap-2",disabled:!i,children:[E.jsx(e2,{className:"h-4 w-4"}),"Download ",o||"file"," (",Mh(r),")"]})]})}):E.jsx(KH,{className:"text-xs flex-1",embedded:!0,fullHeight:!0,language:p==="types"?"typescript":p==="raw"?c?"plain":l:"json",code:(p==="raw"?e:p==="types"?g.data?.lines.join(` 1081`):d)??""})})]})},DRe=({queryMutation:e,showLongRunningWarning:t,onCancel:n,tip:r,isFinished:a,progress:o})=>E.jsxs("div",{className:"flex flex-col overflow-y-auto h-[80vh] bg-muted/50",children:[(e.isPending||e.data)&&E.jsx(wRe,{status:e.data?.status,time:e.data?.time,size:e.data?.size,isFinished:a,progress:o}),e.error?E.jsx("div",{className:"max-w-2/3 mx-auto mt-20",children:E.jsxs(G1,{children:[E.jsx(xY,{size:24,strokeWidth:1.5,className:"me-5"}),E.jsx(tF,{children:"Request failed"}
1081),E.jsx(nF,{children:e.error.message||String(e.error)||"Unexpected error"})]})}):e.data?E.jsx(ORe,{request:e.data.request,size:e.data.size,headers:e.data.headers,body:e.data.body,isBinary:e.data.isBinary,fileName:e.data.fileName,blob:e.data.blob}):e.isPending?E.jsx("div",{className:"grid place-items-center h-full",children:E.jsxs("div",{className:"flex flex-col gap-2 items-center mt-20",children:[E.jsx(H1,{}),E.jsxs("div",{className:xe("opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",t&&"opacity-100 pointer-events-auto"),children:["Looks like the request is taking longer than expected.",E.jsx(Xa,{type:"button",onClick:n,size:"sm",className:"w-fit",variant:"outline",children:"Cancel"})]})]})}):E.jsx("div",{className:"h-full grid place-items-center",children:E.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[E.jsx(K7,{size:64,className:"text-muted-foreground",strokeWidth:1.2}),E.jsx("span",{className:"text-[16px] font-semibold text-muted-foreground",children:"Send your first request"}),r]})})]}),c6=Nb()(Ob(e=>
1081({skipLogin:!1,setSkipLogin:t=>e({skipLogin:t})}),{name:"remember-skip-login",storage:Rb(()=>sessionStorage)}));z2(c6);const Ep="__none",IRe=({server:e,servers:t=[],url:n,method:r,headers:a=[],queryParams:o=[],pathParams:i=[],defaultBody:l="",examples:c,requiresLogin:d=!1,onLogin:p,onSignUp:h})=>{const{selectedServer:g,setSelectedServer:y}=eRe(t.map(Ge=>({url:Ge}))),[v,x]=b.useState(!1),C=aK(),{setRememberedIdentity:S,getRememberedIdentity:A}=yRe(),[,k]=b.useTransition(),{skipLogin:N,setSkipLogin:O}=c6(),[I,D]=b.useState(!1),[U,J]=b.useState(!1),P=b.useRef(void 0),X=dke(S),K=b.useRef(null),{label:Q}=XNe("meta+enter",()=>{K.current?.requestSubmit()}),ne=n.match(/\{([^}]+)\}/g)?.map(Ge=>Ge.slice(1,-1))??[],ae=[...i].sort((Ge,en)=>ne.indexOf(Ge.name)-ne.indexOf(en.name)),{register:H,control:re,handleSubmit:ee,watch:ge,setValue:B,...V}=bAe({defaultValues:{body:l,bodyMode:"text",file:null,multipartFormFields:[],queryParams:o.length>0?o.map(Ge=>({name:Ge.name,value:Ge.defaultValue??"",active:Ge.defaultActive??!1,enum:Ge.enum??[]})):[{name:"",value:"",active:!1,enum:[]}],pathParams:ae.map(Ge=>({name:Ge.name,value:Ge.defaultValue??""})),headers:a.length>0?a.map(Ge=>({name:Ge.name,value:Ge.defaultValue??"",active:Ge.defaultActive??!1})):[{name:"",value:"",active:!1}],identity:A([Ep,...C.data?.map(Ge=>Ge.id)??[]])}}),G=ge("identity"),L=b.useMemo(()=>C.data?.find(Ge=>Ge.id===G)?.authorizationFields,[C.data,G]);b.useEffect(()=>{G&&X.current(G)},[X,G]);const de=KCe({gcTime:0,mutationFn:async Ge=>{const en=performance.now(),tr=new window.Headers(Ge.headers.filter(oe=>oe.name&&oe.active).map(oe=>[oe.name,oe.value]));let sa;switch(Ge.bodyMode){case"file":sa=Ge.file||void 0,tr.delete("Content-Type");break;case"multipart":{const oe=new FormData;Ge.multipartFormFields?.filter(be=>be.name&&be.active).forEach(be=>oe.append(be.name,be.value)),sa=oe,tr.delete("Content-Type");break}default:sa=Ge.body||void 0;break}const Pn=new Request(OP(e??g,n,Ge),{method:r,headers:tr,body:["GET","HEAD"].includes(r.toUpperCase())?null:sa});Ge.identity!==Ep&&await C.data?.find(oe=>oe.id===Ge.identity)?.authorizeRequest(Pn);const Y=setTimeout(()=>J(!0),3210);P.current=new AbortController,P.current.signal.addEventListener("abort",()=>{clearTimeout(Y)});try{const oe=await fetch(Pn,{cache:"no-store",signal:P.current.signal});clearTimeout(Y),J(!1);const be=performance.now()-en,Fe=new URL(Pn.url),Re=Array.from(oe.headers.entries()),Oe=oe.headers.get("content-type")||"",ie=aRe(Oe);let we="",Ie,rt;ie?(Ie=await oe.blob(),rt=iRe(Re,Pn.url),we=`Binary content (${Oe})`):we=await oe.text();const yt=oe.headers.get("content-length");let Kt="";switch(Ge.bodyMode){case"text":Kt=Ge.body;break;case"file":Kt=`[File: ${Ge.file?.name??"Unknown"}]`;break;case"multipart":Kt=`[Multipart Form Data] 1082`,Kt+=Ge.multipartFormFields?.filter(an=>an.name&&an.active).map(an=>an.value instanceof File?`${an.name}: [File: ${an.value.name}]`:`${an.name}: ${an.value}`).join(` 1083`);break;default:Kt=Ge.body;break}return{status:oe.status,headers:Re,size:yt?Number(yt):we.length,body:we,time:be,isBinary:ie,fileName:rt,blob:Ie,request:{method:Pn.method.toUpperCase(),url:Pn.url,headers:[["Host",Fe.host],["User-Agent","Zudoku Playground"],...Array.from(Pn.headers.entries())],body:Kt}}}catch(oe){throw clearTimeout(Y),J(!1),oe instanceof TypeError?new Error("The request failed, possibly due to network issues or CORS policy."):oe}}}),_e=de.isPending,[Ce,he]=b.useState(!1);b.useEffect(()=>{const Ge=setTimeout(()=>he(_e),100);return()=>clearTimeout(Ge)},[_e]);const{isFinished:Be,progress:qe}=N3({isAnimating:Ce});b.useEffect(()=>()=>{P.current?.abort()},[]);const nt=E.jsx("div",{className:"inline-block opacity-50 hover:opacity-100 transition",children:e?E.jsx("span",{children:e.replace(/^https?:\/\//,"").replace(/\/$/,"")}):t.length>1&&E.jsxs(QH,{onValueChange:Ge=>{k(()=>y(Ge))},value:g,defaultValue:g,children:[E.jsx(JH,{className:"p-0 h-fit shadow-none border-none flex-row-reverse bg-transparent text-xs gap-0.5 translate-y-[4px]",children:E.jsx(XH,{})}),E.jsx(eG,{children:t.map(Ge=>E.jsx(ly,{value:Ge,children:Ge.replace(/^https?:\/\//,"").replace(/\/$/,"")},Ge))})]})}),dt=d&&!N&&!I,lt=["POST","PUT","PATCH","DELETE"].includes(r.toUpperCase()),[Zt,Qe]=ij();return E.jsx(nAe,{register:H,control:re,handleSubmit:ee,watch:ge,setValue:B,...V,children:E.jsx(TC,{delayDuration:150,children:E.jsxs("form",{ref:K,onKeyDown:Ge=>{Ge.key==="Enter"&&Ge.target instanceof HTMLInputElement&&Ge.preventDefault()},onSubmit:ee(Ge=>{C.data?.length===0||Ge.identity?de.mutate(Ge):x(!0)}),className:"relative",children:[E.jsx(fRe,{identities:C.data??[],open:v,onOpenChange:x,onSubmit:({rememberedIdentity:Ge,identity:en})=>{Ge&&B("identity",en??Ep),x(!1),de.mutate({...V.getValues(),identity:en})}}),E.jsx(gRe,{open:dt,setOpen:Ge=>{Ge||D(!0)},onSkip:Ge=>{D(!0),Ge&&O(!0)},onSignUp:h,onLogin:p}),E.jsxs("div",{className:"grid grid-cols-[1fr_1px_1fr] text-sm",children:[E.jsxs("div",{className:"col-span-3 p-4 border-b flex gap-2 items-stretch",children:[E.jsxs("div",{className:"flex flex-1 items-center w-full border rounded-md relative overflow-hidden",children:[E.jsx("div",{className:"border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center",children:r.toUpperCase()}),E.jsx("div",{className:"items-center px-2 font-mono text-xs break-all leading-6 relative h-full w-full",children:E.jsxs("div",{className:"h-full py-1.5",children:[nt,E.jsx(vRe,{url:n}),E.jsx(_Re,{})]})}),E.jsx("div",{className:"px-1",children:E.jsx(zr,{type:"button",onClick:()=>{Qe(OP(e??g,n,V.getValues()).toString())},variant:"ghost",size:"icon-xs",className:xe("hover:opacity-100 transition",Zt?"text-emerald-600 opacity-100":"opacity-50"),children:Zt?E.jsx(Xp,{className:"text-green-500",size:14}):E.jsx(_S,{size:14})})})]}),E.jsx(zr,{type:"submit",variant:de.isPending?"destructive":"default",onClick:Ge=>{de.isPending&&(P.current?.abort("Request cancelled by user"),Ge.preventDefault())},className:"w-18",children:de.isPending?"Cancel":"Send"})]}),E.jsxs("div",{className:"relative overflow-y-auto h-[80vh]",children:[C.data?.length!==0&&E.jsxs(Zi,{defaultOpen:!0,children:[E.jsxs(ic,{children:[E.jsx(T7,{size:16}),E.jsx(Ws,{children:"Authentication"})]}),E.jsx(Ki,{className:"CollapsibleContent",children:E.jsx(i6,{value:G,identities:C.data??[],setValue:Ge=>B("identity",Ge)})})]}),ae.length>0&&E.jsxs(Zi,{defaultOpen:!0,children:[E.jsxs(ic,{children:[E.jsx(eY,{size:16}),E.jsx(Ws,{children:"Path Parameters"})]}),E.jsx(Ki,{className:"CollapsibleContent",children:E.jsx(hRe,{url:n,control:re})})]}),E.jsx(mRe,{control:re,schemaQueryParams:o}),E.jsx(uRe,{control:re,schemaHeaders:a,lockedHeaders:L?.headers}),lt&&E.jsx(rRe,{content:c})]}
1083),E.jsx("div",{className:"w-full bg-muted-foreground/20"}),E.jsx(DRe,{queryMutation:de,showLongRunningWarning:U,isFinished:Be,progress:qe,tip:E.jsx("div",{className:"text-xs w-full",children:E.jsxs("span",{className:"text-muted-foreground",children:["Press"," ",E.jsx("kbd",{className:"text-foreground border rounded m-0.5 px-1 py-0.5 capitalize",children:Q.join(" + ")})," ","to send a request"]})}),onCancel:()=>{P.current?.abort("Request cancelled by the user"),J(!1)}})]})]})})})},LRe=e=>{const[t,n]=b.useState(!1),{isAuthEnabled:r,login:a,signup:o,isPending:i,isAuthenticated:l}=Ks();return E.jsxs(Rh,{onOpenChange:c=>n(c),children:[E.jsx(X_e,{asChild:!0,children:e.children??E.jsx(zr,{variant:"ghost",size:"icon-xs",className:"group",children:E.jsx(G7,{className:"fill-muted-foreground group-hover:fill-foreground transition",size:16,strokeWidth:1.5})})}),E.jsxs(Oh,{className:"max-w-screen-xl! w-full overflow-hidden p-0","aria-describedby":void 0,showCloseButton:!0,children:[E.jsx(Eh,{children:E.jsx(_v,{children:"Playground"})}),t&&E.jsx(IRe,{requiresLogin:r&&!l&&!i,onLogin:()=>a(),onSignUp:()=>o(),...e})]})]})},$Re=({tagCategories:e,tagGroups:t,expandAllTags:n})=>{const r=new Set,a=t.flatMap(i=>{const l=e.get(i.name),c=l?.type==="category"?l:void 0;c&&r.add(i.name);const d=i.tags.flatMap(p=>{if(p===i.name)return[];const h=e.get(p);return h?(r.add(p),h):[]});return!c&&d.length===0?[]:{...c,type:"category",label:c?.label??i.name,items:[...c?.items??[],...d],collapsible:c?.collapsible??!0,collapsed:c?.collapsed??!n}}),o=Array.from(e.entries()).filter(([i])=>!r.has(i)).map(([,i])=>i);return[...a,...o]},PRe={get:"green",post:"blue",put:"yellow",delete:"red",patch:"purple",options:"gray",head:"gray"},IP=({label:e,path:t,operations:n,collapsible:r,collapsed:a})=>({type:"category",label:e,link:{type:"doc",path:t,file:t,label:e},collapsible:r,collapsed:a,items:n.map(o=>({type:"link",label:o.summary??o.path,to:`${t}#${o.slug}`,badge:{label:o.method,color:PRe[o.method.toLowerCase()],invert:!0}}))}),u6=b.createContext(void 0),sUe=u6.Provider,MRe=()=>{const e=b.useContext(u6);if(!e)throw new Error("useOasConfig must be used within a OasConfigProvider");return e.config},jRe=e=>({path:e.routePath,async lazy(){const{OasProvider:t}=await z(async()=>{const{OasProvider:n}=await import("./OasProvider-CmKsn2YM-3tNrsx-2.js");return{OasProvider:n}},[],import.meta.url);return{element:E.jsx(t,{basePath:e.basePath,version:e.version,client:e.client,config:e.config})}},children:e.routes}),KT=({path:e,tag:t,untagged:n})=>({path:e,async lazy(){const{OperationList:r}=await z(async()=>{const{OperationList:a}=await import("./OperationList-BLs6s-B5-q3tKNpPV.js");return{OperationList:a}},__vite__mapDeps([3,4,5,1,6,7]),import.meta.url);return{element:E.jsx(r,{tag:t,untagged:n})}}}),zRe=({render:e,path:t})=>{const{type:n,input:r}=MRe(),{tag:a}=DS(),o=Sn(),i=zNe(p6,{type:n,input:r}),{data:{schema:l}}=CS(i),c=l.tags.at(0);return!a&&c?.slug?E.jsx(sZ,{to:{pathname:xW(t,{tag:c.slug}),search:o.search}}):a&&l.tags.some(d=>d.slug===a)?e(a):null},BRe=({path:e})=>({path:e,async lazy(){const{OperationList:t}=await z(async()=>{const{OperationList:n}=await import("./OperationList-BLs6s-B5-q3tKNpPV.js");return{OperationList:n}},__vite__mapDeps([3,4,5,1,6,7]),import.meta.url);return{element:E.jsx(zRe,{path:e,render:n=>E.jsx(t,{tag:n})})}}}),d6=({basePath:e,hasUntaggedOperations:t=!0})=>[...t?[KT({path:Tn(e,uA),untagged:!0})]:[],{path:Tn(e,"~schemas"),lazy:async()=>{const{SchemaList:n}=await z(async()=>{const{SchemaList:r}=await import("./SchemaList-CCZQsdBh-BkPYKIAO.js");return{SchemaList:r}},__vite__mapDeps([8,2,9,4,5,1]),import.meta.url);return{element:E.jsx(n,{})}}}],URe=({versionPath:e,tagPages:t,hasUntaggedOperations:n=!0})=>{const r=t.at(0)??(n?uA:void 0);return[r?{index:!0,loader:()=>b2(Tn(e,r))}:KT({path:e}),...t.map(a=>KT({path:Tn(e,a),tag:a})),...d6({basePath:e,hasUntaggedOperations:n})]},f6=e=>e.type==="raw"||!Array.isArray(e.input)?{versions:[],labels:{},downloadUrls:{}}:{versions:e.input.map(t=>t.path),labels:Object.fromEntries(e.input.map(t=>[t.path,t.label??t.path])),downloadUrls:Object.fromEntries(e.input.map(t=>[t.path,t.downloadUrl]))},FRe=({basePath:e,config:t,client:n})=>{const r=t.tagPages,{versions:a}=f6(t),o=Array.isArray(t.input)?t.input:void 0;return(a.length>1?[void 0,...a]:[void 0]).map(i=>{const l=Tn(e,i),c=(i?o?.find(d=>d.path===i):o?.[0])?.hasUntaggedOperations??!0;return jRe({basePath:e,version:i,routePath:l,routes:r?URe({versionPath:l,tagPages:r,hasUntaggedOperations:c}):[BRe({path:`${l}/:tag?`}),...d6({basePath:l,hasUntaggedOperations:c})],client:n,config:t})})},p6=WNe(` 1084 query GetNavigationOperations($input: JSON!, $type: SchemaType!) { 1085 schema(input: $input, type: $type) { 1086 extensions 1087 tags { 1088 slug 1089 name 1090 extensions 1091 operations { 1092 summary 1093 slug 1094 method 1095 operationId 1096 path 1097 } 1098 } 1099 components { 1100 schemas { 1101 __typename 1102 } 1103 } 1104 } 1105 } 1106`),uA="~endpoints",HRe=e=>{const t=Tn(e.path),n=new iNe(e);return{getHead:()=>
1106{if(e.type==="url"&&!e.skipPreload)return(Array.isArray(e.input)?e.input.map(r=>r.input):[e.input]).map(r=>E.jsx("link",{href:r,rel:"preload",as:"fetch",crossOrigin:"anonymous"},r));if(e.server)return E.jsx("link",{rel:"preconnect",href:e.server})},getMdxComponents:()=>({OpenPlaygroundButton:({server:r,method:a="get",url:o="/",children:i,...l})=>{if(!r)throw new Error("Server is required");return E.jsx(LRe,{url:o,method:a,server:r,...l,children:E.jsx(Xa,{className:"gap-2 items-center",variant:"outline",children:i??E.jsxs(E.Fragment,{children:["Open in Playground",E.jsx(Yq,{size:16})]})})})}}),getNavigation:async(r,a)=>{if(!di({path:t,end:!1},r))return[];const o=di({path:`${t}/:version?/:tag`,end:!0},r);try{const i=o?.params.version,{versions:l}=f6(e),c=i??l.at(0),{type:d}=e,p=Array.isArray(e.input)?e.input.find(S=>S.path===c)?.input??e.input[0]?.input:e.input,h=t6(n,p6,{type:d,input:p}),g=await a.queryClient.ensureQueryData(h),y=new Map(g.schema.tags.filter(S=>S.name&&S.operations.length>0).map(S=>{if(!S.name)throw new Error(`Tag ${S.slug} has no name`);const A=Tn(t,i,S.slug),k=S.extensions?.["x-zudoku-collapsed"]??!e.options?.expandAllTags,N=S.extensions?.["x-zudoku-collapsible"]??!0;return[S.name,IP({label:S.extensions?.["x-displayName"]??S.name,path:A,operations:S.operations,collapsed:k,collapsible:N})]})),v=g.schema.extensions?.["x-tagGroups"]??[],x=$Re({tagCategories:y,tagGroups:v,expandAllTags:e.options?.expandAllTags}),C=g.schema.tags.find(S=>!S.name)?.operations;return C&&C.length>0&&x.push(IP({label:x.length===0?"Endpoints":"Other endpoints",path:Tn(t,i,uA),operations:C,collapsed:!e.options?.expandAllTags})),g.schema.components?.schemas?.length&&x.push({type:"link",label:"Schemas",to:Tn(t,i,"~schemas")}),x}catch{return[]}},getRoutes:()=>FRe({basePath:t,config:e,client:n})}},h6=[],GRe=[],VRe=Array.isArray(xr.apis)?xr.apis:[xr.apis];h6.push(HRe({type:"file",input:[{path:"1.26.2",version:"1.26.2",downloadUrl:"/en/api/1.26.2/schema.yaml",label:"1.26.2",input:"/home/runner/work/docs-cakemail-api/docs-cakemail-api/multi-lang/docs-en/apis/openapi.yaml",hasUntaggedOperations:!1}],path:"/api",tagPages:["token","personal-access-tokens","account","user","list","contact","segment","campaign","campaign-blueprint","template","transactional-email","email-api","sender","dkim","domain","suppressed-email","form","webhook","interest","custom-attribute","tags","report","log","links","system-email","task","logo","sub-account","action","workflow","workflow-blueprint"],options:{examplesLanguage:xr.defaults?.apis?.examplesLanguage??xr.defaults?.examplesLanguage,supportedLanguages:xr.defaults?.apis?.supportedLanguages,disablePlayground:xr.defaults?.apis?.disablePlayground,disableSidecar:xr.defaults?.apis?.disableSidecar,showVersionSelect:xr.defaults?.apis?.showVersionSelect??"if-available",expandAllTags:xr.defaults?.apis?.expandAllTags??!0,expandApiInformation:xr.defaults?.apis?.expandApiInformation??!1,schemaDownload:xr.defaults?.apis?.schemaDownload,transformExamples:xr.defaults?.apis?.transformExamples,generateCodeSnippet:xr.defaults?.apis?.generateCodeSnippet,...VRe[0].options??{}},schemaImports:{
1106"/home/runner/work/docs-cakemail-api/docs-cakemail-api/multi-lang/docs-en/apis/openapi.yaml":()=>z(()=>import("./api-openapi.yaml-BYjtdEFS.js"),[],import.meta.url)
1106}}));const qRe=(e=[])=>({getRoutes:()=>{const t=[];return Db(e,n=>{n.type==="custom-page"&&t.push({path:n.path,element:n.element,handle:{layout:n.layout??"default"}})}),t}}),LP=qRe(xr.navigation),YRe=e=>({getRoutes:()=>Object.entries(e.fileImports).map(([t,n])=>({path:t,lazy:async()=>{const{MdxPage:r}=await z(async()=>{const{MdxPage:i}=await import("./MdxPage-DQa0PJ-t-B_ZxfcEd.js");return{MdxPage:i}},__vite__mapDeps([10,2,9,6,5]),import.meta.url),{default:a,...o}=await n();return{element:E.jsx(r,{basePath:e.basePath,mdxComponent:a,...o,defaultOptions:e.defaultOptions})}}}))}),WRe={"/introduction":()=>z(()=>import("./introduction-Eh6_KhQP.js"),[],import.meta.url),"/example":()=>z(()=>import("./example-pePHse3k.js"),[],import.meta.url),"/best-practices":()=>z(()=>import("./best-practices-D-wvrZRV.js"),__vite__mapDeps([11,7]),import.meta.url),"/guides/working-as-a-partner":()=>z(()=>import("./working-as-a-partner-YUQBuPWk.js"),[],import.meta.url),"/guides/webhook-event-catalog":()=>z(()=>import("./webhook-event-catalog-hT_bQ2F4.js"),[],import.meta.url),"/guides/webhook-compliance-events":()=>z(()=>import("./webhook-compliance-events-D6fL_05J.js"),[],import.meta.url),"/guides/using-webhooks":()=>z(()=>import("./using-webhooks-DV4WbD0R.js"),[],import.meta.url),"/guides/using-templates":()=>z(()=>import("./using-templates-vcu11gMn.js"),[],import.meta.url),"/guides/sending-your-first-campaign":()=>z(()=>import("./sending-your-first-campaign-U7Pb3Hoz.js"),[],import.meta.url),"/guides/sending-emails-smtp":()=>z(()=>import("./sending-emails-smtp-BSxdEA3B.js"),[],import.meta.url),"/guides/sending-emails-rest-api":()=>z(()=>import("./sending-emails-rest-api-5cUligMu.js"),[],import.meta.url),"/guides/next-gen-api-v10A":()=>z(()=>import("./next-gen-api-v10A-ClcmfYJU.js"),[],import.meta.url),"/guides/mcp-server":()=>z(()=>import("./mcp-server-BtLG7PzT.js"),[],import.meta.url),"/guides/managing-your-users":()=>z(()=>import("./managing-your-users-DB7L_SS3.js"),[],import.meta.url),"/guides/managing-your-contacts":()=>z(()=>import("./managing-your-contacts-CCE4KUiw.js"),[],import.meta.url),"/guides/login-to-cakemail-next-gen-from-inside-your-app":()=>z(()=>import("./login-to-cakemail-next-gen-from-inside-your-app-BfqJRIMZ.js"),[],import.meta.url),"/guides/getting-started-ng-api":()=>z(()=>import("./getting-started-ng-api-CArja3gD.js"),[],import.meta.url),"/guides/getting-started-email-api":()=>z(()=>import("./getting-started-email-api-C7zHok6q.js"),[],import.meta.url),"/guides/email-api-reference":()=>z(()=>import("./email-api-reference-CAQAswp9.js"),[],import.meta.url),"/guides/classic-api-compatibility":()=>z(()=>import("./classic-api-compatibility-TL6ll0Fj.js"),[],import.meta.url),"/guides/automating-your-emails":()=>z(()=>import("./automating-your-emails-DLlipLS5.js"),[],import.meta.url),"/docs/first-steps":()=>z(()=>import("./first-steps-B07Ct_Uz.js"),[],import.meta.url),"/claude/overview":()=>z(()=>import("./overview-DF9MWNM_.js"),[],import.meta.url),"/claude/installation":()=>z(()=>import("./installation-C31J6krx.js"),[],import.meta.url),"/claude/cakemail-for":()=>z(()=>import("./cakemail-for-BnV7Z0gW.js"),[],import.meta.url),"/claude/beta":()=>z(()=>import("./beta-C52l3Ymi.js"),[],import.meta.url),"/best-practices/list-building":()=>z(()=>import("./list-building-sFTs5N8T.js"),__vite__mapDeps([12,7]),import.meta.url),"/best-practices/getting-started":()=>z(()=>import("./getting-started-PhOlj_qs.js"),__vite__mapDeps([13,7]),import.meta.url),"/best-practices/engagement-optimization":()=>z(()=>import("./engagement-optimization-C6N8SIE5.js"),__vite__mapDeps([14,7]),import.meta.url),"/best-practices/email-design":()=>z(()=>import("./email-design-Cxg-Ne-7.js"),__vite__mapDeps([15,7]),import.meta.url),"/best-practices/deliverability":()=>z(()=>import("./deliverability-B6l7eowN.js"),__vite__mapDeps([16,7]),import.meta.url),"/best-practices/compliance-legal":()=>z(()=>import("./compliance-legal-DrFrl--F.js"),__vite__mapDeps([17,7]),import.meta.url),"/best-practices/advanced-strategies":()=>z(()=>import("./advanced-strategies-XoGg44OB.js"),__vite__mapDeps([18,7]),import.meta.url),"/resources-support/changelog/next-gen-api-v19"
1106:()=>z(()=>import("./next-gen-api-v19-Cm7w7lMt.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v18":()=>z(()=>import("./next-gen-api-v18-CdpF4_cV.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v17":()=>z(()=>import("./next-gen-api-v17-C3ofon2G.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v16":()=>z(()=>import("./next-gen-api-v16-2syZt7pj.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v15":()=>z(()=>import("./next-gen-api-v15-BS0gEuDp.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v14":()=>z(()=>import("./next-gen-api-v14-D4H5Wb4x.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v13":()=>z(()=>import("./next-gen-api-v13-BaujTVde.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v123":()=>z(()=>import("./next-gen-api-v123-CCh5hQTD.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v122":()=>z(()=>import("./next-gen-api-v122-D8r96F_Q.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v12":()=>z(()=>import("./next-gen-api-v12-DrfTNLAs.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v119":()=>z(()=>import("./next-gen-api-v119-CpIjvhjX.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v118":()=>z(()=>import("./next-gen-api-v118-DXLyPYSt.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v117":()=>z(()=>import("./next-gen-api-v117-DaXIR55W.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v115":()=>z(()=>import("./next-gen-api-v115-_yx5GCUH.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v114":()=>z(()=>import("./next-gen-api-v114-BcHqu4jZ.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v113":()=>z(()=>import("./next-gen-api-v113-DTdxGnNe.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v112":()=>z(()=>import("./next-gen-api-v112-BFDDPIDd.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v111":()=>z(()=>import("./next-gen-api-v111-Bb_Q0JUH.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v110":()=>z(()=>import("./next-gen-api-v110-B2b8c5Ws.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v11":()=>z(()=>import("./next-gen-api-v11-DBlEQA5A.js"),[],import.meta.url),"/resources-support/changelog/next-gen-api-v10":()=>z(()=>import("./next-gen-api-v10-CvsoxgOz.js"),[],import.meta.url),"/docs/senders/understanding-spf-dkim-dmarc":()=>z(()=>import("./understanding-spf-dkim-dmarc-B3LFJRwp.js"),[],import.meta.url),"/docs/senders/tracking-and-bounce-domains":()=>z(()=>import("./tracking-and-bounce-domains-Cbmyui9j.js"),[],import.meta.url),"/docs/senders/managing-senders":()=>z(()=>import("./managing-senders-DuIJYX-G.js"),[],import.meta.url),"/docs/senders/getting-started-authentication-senders":()=>z(()=>import("./getting-started-authentication-senders-v5QKOjya.js"),[],import.meta.url),"/docs/senders/authenticating-domains":()=>z(()=>import("./authenticating-domains-BbZW8nqX.js"),[],import.meta.url),"/docs/senders/adding-dns-records":()=>z(()=>import("./adding-dns-records-BVlfqrOQ.js"),[],import.meta.url),"/docs/partners/system-email-customization":()=>z(()=>import("./system-email-customization-xoeYhfLt.js"),[],import.meta.url),"/docs/partners/managing-client-features":()=>z(()=>import("./managing-client-features-BlJsCq-I.js"),[],import.meta.url),"/docs/partners/customizing-your-default-reseller-domain":()=>z(()=>import("./customizing-your-default-reseller-domain-D1NTv0b7.js"),[],import.meta.url),"/docs/partners/client-template-sharing":()=>z(()=>import("./client-template-sharing-IQY3i_WW.js"),[],import.meta.url),"/docs/integrations/connecting-cakemail-with-zapier":()=>z(()=>import("./connecting-cakemail-with-zapier-B9Rx09lO.js"),[],import.meta.url),"/docs/email-templates/working-with-smart-templates":()=>z(()=>import("./working-with-smart-templates-B13LCIqY.js"),[],import.meta.url),"/docs/email-templates/saving-campaigns-as-templates":()=>z(()=>import("./saving-campaigns-as-templates-Dsh80kDX.js"),[],import.meta.url),"/docs/email-templates/managing-email-templates":()=>z(()=>import("./managing-email-templates-WpWidA1q.js"),[],import.meta.url),"/docs/email-templates/importing-your-html-code":()=>z(()=>import("./importing-your-html-code-DfvMoxP3.js"),[],import.meta.url),"/docs/email-templates/deleting-a-template":()=>z(()=>import("./deleting-a-template-C6rvuUe2.js"),[],import.meta.url),"/docs/email-api/getting-started-with-the-email-api":()=>z(()=>import("./getting-started-with-the-email-api-BZSiAIMS.js"),[],import.meta.url),"/docs/delivery-troubleshooting/under-review-warnings":()=>z(()=>import("./under-review-warnings-CkdhqQPZ.js"),[],import.meta.url),"/docs/delivery-troubleshooting/test-email-links-not-working":()=>z(()=>import("./test-email-links-not-working-CJLmc0M6.js"),[],import.meta.url),"/docs/delivery-troubleshooting/spam-and-promotions-tab":()=>z(()=>import("./spam-and-promotions-tab-NbXaD5T4.js"),[],import.meta.url),"/docs/delivery-troubleshooting/sender-reputation":()=>z(()=>import("./sender-reputation-0w9WFToL.js"),[],import.meta.url),"/docs/delivery-troubleshooting/role-based-emails":()=>z(()=>import("./role-based-emails-2WVOYFKf.js"),[],import.meta.url),"/docs/delivery-troubleshooting/preventing-draft-loss":()=>z(()=>import("./preventing-draft-loss-DiD3AXhl.js"),[],import.meta.url),"/docs/delivery-troubleshooting/missing-emails":()=>z(()=>import("./missing-emails-BiJ4If33.js"),[],import.meta.url),"/docs/delivery-troubleshooting/image-display-issues":()=>z(()=>import("./image-display-issues-07tKXUDF.js"),[],import.meta.url),"/docs/delivery-troubleshooting/gmail-yahoo-sender-requirements":()=>z(()=>import("./gmail-yahoo-sender-requirements-C6CEZxdw.js"),[],import.meta.url),"/docs/delivery-troubleshooting/feedback-loops":()=>z(()=>import("./feedback-loops-l-eOXGnN.js"),[],import.meta.url),"/docs/delivery-troubleshooting/email-opens":()=>z(()=>import("./email-opens-CiJG1RWw.js"),[],import.meta.url),"/docs/delivery-troubleshooting/email-deliverability":()=>z(()=>import("./email-deliverability-CfRLZ-e0.js"),[],import.meta.url),"/docs/delivery-troubleshooting/email-bounces":()=>z(()=>import("./email-bounces-DcawCll1.js"),[],import.meta.url),"/docs/delivery-troubleshooting/domain-blacklisting":()=>z(()=>import("./domain-blacklisting-C_5T-Zvv.js"),[],import.meta.url),"/docs/delivery-troubleshooting/delivery-delays":()=>z(()=>import("./delivery-delays-B5U8cXV4.js"),[],import.meta.url),"/docs/delivery-troubleshooting/account-suspensions":()=>z(()=>import("./account-suspensions-BPtnTPlU.js"),[],import.meta.url),"/docs/campaign-creation/using-the-email-designer":()=>z(()=>import("./using-the-email-designer-CkMUKC-3.js"),[],import.meta.url),"/docs/campaign-creation/uploading-to-the-file-manager"
1106:()=>z(()=>import("./uploading-to-the-file-manager-BbfFnkWE.js"),[],import.meta.url),"/docs/campaign-creation/testing-your-campaign":()=>z(()=>import("./testing-your-campaign-QaskBlio.js"),[],import.meta.url),"/docs/campaign-creation/integrating-survey-forms":()=>z(()=>import("./integrating-survey-forms-DrVtzvRg.js"),[],import.meta.url),"/docs/campaign-creation/duplicating-campaigns":()=>z(()=>import("./duplicating-campaigns-Bv4hLLG4.js"),[],import.meta.url),"/docs/campaign-creation/deleting-a-campaign-draft":()=>z(()=>import("./deleting-a-campaign-draft-BY-VOgeN.js"),[],import.meta.url),"/docs/campaign-creation/creating-mobile-and-desktop-campaign-versions":()=>z(()=>import("./creating-mobile-and-desktop-campaign-versions-BPAHyT6R.js"),[],import.meta.url),"/docs/campaign-creation/creating-effective-preheaders":()=>z(()=>import("./creating-effective-preheaders-CBX0FuYI.js"),[],import.meta.url),"/docs/campaign-creation/creating-campaigns":()=>z(()=>import("./creating-campaigns-DtdkSMab.js"),[],import.meta.url),"/docs/campaign-creation/creating-ab-tests-campaigns":()=>z(()=>import("./creating-ab-tests-campaigns-Dm3i5Q8V.js"),[],import.meta.url),"/docs/campaign-creation/create-utm-tracking-links":()=>z(()=>import("./create-utm-tracking-links-Cr3UwxBG.js"),[],import.meta.url),"/docs/campaign-creation/adding-your-physical-address":()=>z(()=>import("./adding-your-physical-address-BjaBJagm.js"),[],import.meta.url),"/docs/campaign-creation/adding-unsubscribe-links":()=>z(()=>import("./adding-unsubscribe-links-CNKmb8Zg.js"),[],import.meta.url),"/docs/campaign-creation/adding-rss-feeds":()=>z(()=>import("./adding-rss-feeds-B4uJ1-np.js"),[],import.meta.url),"/docs/campaign-creation/adding-pdf-attachments":()=>z(()=>import("./adding-pdf-attachments-Og2__PKP.js"),[],import.meta.url),"/docs/campaign-creation/adding-anchor-links-to-the-email-content-with-html":()=>z(()=>import("./adding-anchor-links-to-the-email-content-with-html-BrIfeP94.js"),[],import.meta.url),"/docs/campaign-creation/adding-a-video-to-a-campaign":()=>z(()=>import("./adding-a-video-to-a-campaign-DNhZHxot.js"),[],import.meta.url),"/docs/campaign-creation/adding-a-calendar-link-to-a-campaign":()=>z(()=>import("./adding-a-calendar-link-to-a-campaign-D6NqtiU2.js"),[],import.meta.url),"/docs/billing/protecting-your-information":()=>z(()=>import("./protecting-your-information-kQKGBsJr.js"),[],import.meta.url),"/docs/billing/managing-your-billing":()=>z(()=>import("./managing-your-billing-OKZKPRDS.js"),[],import.meta.url),"/docs/billing/information-on-security":()=>z(()=>import("./information-on-security-DmqTjXZo.js"),[],import.meta.url),"/docs/billing/choosing-your-plan":()=>z(()=>import("./choosing-your-plan-CSlBhKoT.js"),[],import.meta.url),"/docs/automations/understanding-email-automation":()=>z(()=>import("./understanding-email-automation-Bu_3_lAA.js"),[],import.meta.url),"/docs/automations/tracking-customer-journeys-with-custom-attributes":()=>z(()=>import("./tracking-customer-journeys-with-custom-attributes-jce-dQ5f.js"),[],import.meta.url),"/docs/automations/creating-an-automation-with-branching-conditions":()=>z(()=>import("./creating-an-automation-with-branching-conditions-D_rWDrMt.js"),[],import.meta.url),"/docs/automations/creating-an-automated-welcome-email":()=>z(()=>import("./creating-an-automated-welcome-email-BzkwDBsB.js"),[],import.meta.url),"/docs/automations/creating-a-looping-automation":()=>z(()=>import("./creating-a-looping-automation-qXlcM9CR.js"),[],import.meta.url),"/docs/audience-building/working-with-forms":()=>z(()=>import("./working-with-forms-5usjRAYX.js"),[],import.meta.url),"/docs/audience-building/subscription-confirmation-email":()=>z(()=>import("./subscription-confirmation-email-VewgBWVz.js"),[],import.meta.url),"/docs/audience-building/subscriber-preference-center":()=>z(()=>import("./subscriber-preference-center-BoYDrU7M.js"),[],import.meta.url),"/docs/audience-building/default-sender-address-and-language":()=>z(()=>import("./default-sender-address-and-language-CurlJY4n.js"),[],import.meta.url),"/docs/audience-building/customizing-subscription-redirection-
1106pages":()=>z(()=>import("./customizing-subscription-redirection-pages-VLTGxtt9.js"),[],import.meta.url),"/docs/audience-building/creating-popups":()=>z(()=>import("./creating-popups-wcWgwwx8.js"),[],import.meta.url),"/docs/audience-building/creating-landing-pages":()=>z(()=>import("./creating-landing-pages-CL_7uG0Q.js"),[],import.meta.url),"/docs/audience-building/configuring-recaptcha":()=>z(()=>import("./configuring-recaptcha-rTSvKGD6.js"),[],import.meta.url),"/docs/audience-building/configuring-opt-in-emails":()=>z(()=>import("./configuring-opt-in-emails-CUF5UmKu.js"),[],import.meta.url),"/docs/audience/using-tags-to-track-engagement":()=>z(()=>import("./using-tags-to-track-engagement-9twFxiBt.js"),[],import.meta.url),"/docs/audience/updating-contact-information":()=>z(()=>import("./updating-contact-information-DB-apXRi.js"),[],import.meta.url),"/docs/audience/suppression-lists":()=>z(()=>import("./suppression-lists-rrls8IND.js"),[],import.meta.url),"/docs/audience/segmenting-by-engagement":()=>z(()=>import("./segmenting-by-engagement-Ps54edCL.js"),[],import.meta.url),"/docs/audience/removing-a-contact":()=>z(()=>import("./removing-a-contact-BtqS6Sfb.js"),[],import.meta.url),"/docs/audience/managing-contact-lists":()=>z(()=>import("./managing-contact-lists-B2-wRBqJ.js"),[],import.meta.url),"/docs/audience/importing-contacts-into-your-lists":()=>z(()=>import("./importing-contacts-into-your-lists-CT5Erq0D.js"),[],import.meta.url),"/docs/audience/exporting-a-contact-list":()=>z(()=>import("./exporting-a-contact-list-0Mq8X_Xs.js"),[],import.meta.url),"/docs/audience/deleting-lists":()=>z(()=>import("./deleting-lists-BqikCrF0.js"),[],import.meta.url),"/docs/audience/creating-dynamic-segments":()=>z(()=>import("./creating-dynamic-segments-JfZ4XXMk.js"),[],import.meta.url),"/docs/audience/creating-a-confirmation-campaign":()=>z(()=>import("./creating-a-confirmation-campaign-DfyFx1So.js"),[],import.meta.url),"/docs/audience/contact-status":()=>z(()=>import("./contact-status-A9Xealwh.js"),[],import.meta.url),"/docs/audience/adding-attributes-to-your-list":()=>z(()=>import("./adding-attributes-to-your-list-H0Qj1EC7.js"),[],import.meta.url),"/docs/analytics/understanding-campaign-reports":()=>z(()=>import("./understanding-campaign-reports-CMwwxdpz.js"),[],import.meta.url),"/docs/analytics/tracking-click-rate-activity":()=>z(()=>import("./tracking-click-rate-activity-DTLpT2pA.js"),[],import.meta.url),"/docs/analytics/tracking-campaign-performance":()=>z(()=>import("./tracking-campaign-performance-Bp1raMfC.js"),[],import.meta.url),"/docs/analytics/open-rates":()=>z(()=>import("./open-rates-CGRqQOPB.js"),[],import.meta.url),"/docs/analytics/email-click-rates":()=>z(()=>import("./email-click-rates-02wP4a7k.js"),[],import.meta.url),"/docs/analytics/email-bounces":()=>z(()=>import("./email-bounces-oC8HYi5J.js"),[],import.meta.url),"/docs/ai/creating-subject-lines-with-ai":()=>z(()=>import("./creating-subject-lines-with-ai-DB9YLmE3.js"),[],import.meta.url),"/docs/ai/creating-email-preheaders-with-ai":()=>z(()=>import("./creating-email-preheaders-with-ai-WpgQ8X_I.js"),[],import.meta.url),"/docs/ai/creating-content-with-ai":()=>z(()=>import("./creating-content-with-ai-gBdSVSoI.js"),[],import.meta.url),"/docs/account-settings/updating-my-company-profile":()=>z(()=>import("./updating-my-company-profile-CFmsrsB1.js"),[],import.meta.url),"/docs/account-settings/setting-your-timezone":()=>z(()=>import("./setting-your-timezone-BlipIBV3.js"),[],import.meta.url),"/docs/account-settings/reset-email-not-arriving":()=>z(()=>import("./reset-email-not-arriving-D1efld-2.js"),[],import.meta.url),"/docs/account-settings/personal-access-tokens":()=>z(()=>import("./personal-access-tokens-CK-FhKJq.js"),[],import.meta.url),"/docs/account-settings/multi-factor-authentication-mfa":()=>z(()=>import("./multi-factor-authentication-mfa-CW-Z5Dr4.js"),[],import.meta.url),"/docs/account-settings/finding-your-client-id":()=>z(()=>import("./finding-your-client-id-CylFdAps.js"),[],import.meta.url),"/docs/account-settings/exports":()=>z(()=>import("./exports-CyJ96v8X.js"),[],import.meta.url),"/docs/account-settings/configuring-your-brand":()=>z(()=>import("./configuring-your-brand-r9y5erQ7.js"),[],import.meta.url),"/docs/account-settings/c
1106hanging-your-language":()=>z(()=>import("./changing-your-language-DlELIBVP.js"),[],import.meta.url),"/docs/account-settings/cant-sign-in":()=>z(()=>import("./cant-sign-in-BoFJhRCS.js"),[],import.meta.url),"/docs/account-settings/canceling-your-account":()=>z(()=>import("./canceling-your-account-nEkwAPrU.js"),[],import.meta.url),"/docs/account-settings/adding-and-editing-users":()=>z(()=>import("./adding-and-editing-users-BaftGWnF.js"),[],import.meta.url),"/docs/personalization/using-merge-tags-and-fallbacks":()=>z(()=>import("./using-merge-tags-and-fallbacks-CDILfh0Z.js"),[],import.meta.url),"/docs/personalization/using-dynamic-content":()=>z(()=>import("./using-dynamic-content-D7bcn3SQ.js"),[],import.meta.url),"/docs/personalization/display-conditions":()=>z(()=>import("./display-conditions-B0VZ-UAe.js"),[],import.meta.url),"/docs/personalization/adding-merge-tags-to-a-campaign":()=>z(()=>import("./adding-merge-tags-to-a-campaign-c-xv2vfU.js"),[],import.meta.url),"/docs/personalization/adding-a-date-merge-tag":()=>z(()=>import("./adding-a-date-merge-tag-dGJ12STI.js"),[],import.meta.url),"/best-practices/list-building/why-purchased-email-lists-hurt-your-business":()=>z(()=>import("./why-purchased-email-lists-hurt-your-business-BvtvyLEK.js"),[],import.meta.url),"/best-practices/list-building/list-hygiene-maintaining-a-healthy-email-database":()=>z(()=>import("./list-hygiene-maintaining-a-healthy-email-database-CbHTBjri.js"),[],import.meta.url),"/best-practices/list-building/how-to-build-your-email-list-the-right-way":()=>z(()=>import("./how-to-build-your-email-list-the-right-way-5YTV0q5L.js"),[],import.meta.url),"/best-practices/list-building/email-list-growth-strategies-to-attract-new-subscribers":()=>z(()=>import("./email-list-growth-strategies-to-attract-new-subscribers-BS2_DI2Q.js"),[],import.meta.url),"/best-practices/list-building/double-opt-in-how-to-build-higher-quality-lists":()=>z(()=>import("./double-opt-in-how-to-build-higher-quality-lists-C_VXmijT.js"),[],import.meta.url),"/best-practices/list-building/building-a-quality-email-list-best-practices":()=>z(()=>import("./building-a-quality-email-list-best-practices-fdEBsmMy.js"),[],import.meta.url),"/best-practices/getting-started/glossary-of-email-marketing-terms":()=>z(()=>import("./glossary-of-email-marketing-terms-BISE0wWt.js"),[],import.meta.url),"/best-practices/getting-started/email-marketing-fundamentals-a-beginners-guide":()=>z(()=>import("./email-marketing-fundamentals-a-beginners-guide-BVgASrau.js"),[],import.meta.url),"/best-practices/getting-started/creating-your-first-email-template-a-beginners-guide":()=>z(()=>import("./creating-your-first-email-template-a-beginners-guide-C_ODeauI.js"),[],import.meta.url),"/best-practices/getting-started/benefits-of-using-an-email-marketing-provider":()=>z(()=>import("./benefits-of-using-an-email-marketing-provider-idlk3oNY.js"),[],import.meta.url),"/best-practices/engagement-optimization/re-engagement-campaigns-win-back-inactive-subscribers":()=>z(()=>import("./re-engagement-campaigns-win-back-inactive-subscribers-CpzhuIeS.js"),[],import.meta.url),"/best-practices/engagement-optimization/optimal-send-times-and-frequency-maximize-engagement":()=>z(()=>import("./optimal-send-times-and-frequency-maximize-engagement-Cx1Pf-y1.js"),[],import.meta.url),"/best-practices/engagement-optimization/how-to-increase-email-engagement-proven-strategies":()=>z(()=>import("./how-to-increase-email-engagement-proven-strategies-CNAXDBrj.js"),[],import.meta.url),"/best-practices/engagement-optimization/how-to-improve-email-open-rates-expert-tips":()=>z(()=>import("./how-to-improve-email-open-rates-expert-tips-BYSY1pSj.js"),[],import.meta.url),"/best-practices/engagement-optimization/email-subject-line-best-practices":()=>z(()=>import("./email-subject-line-best-practices-ZwkSvIqY.js"),[],import.meta.url),"/best-practices/engagement-optimization/email-marketing-benchmarks-what-are-good-open-rates":()=>z(()=>import("./email-marketing-benchmarks-what-are-good-open-rates-Dl4pP1_C.js"),[],import.meta.url),"/best-practices/email-design/why-image-only-emails-hurt-deliverability-and-engagement":()=>z(()=>import("./why-image-only-emails-hurt-deliverability-and-engagement-FLmQgk1I.js"),[],import.meta.url),"/best-practices/email-design/email-design-checklist":()=>z(()=>import("./email-design-checklist-CELnM4kk.js"),[],import.meta.url),"/best-practices/email-design/email-design-balancing-text-and-images-for-results":()=>z(()=>import("./email-design-balancing-text-and-images-for-results-BJzDKBDZ.js"),[],import.meta.url),"/best-practices/deliverability/why-you-should-use-your-own-domain-for-sending":()=>z(()=>import("./why-you-should-use-your-own-domain-for-sending-CMOcHOoj.js"),[],import.meta.url),"/best-practices/deliverability/how-to-reduce-spam-complaints-prevention-strategies":()=>z(()=>
1106import("./how-to-reduce-spam-complaints-prevention-strategies-CVHOuNcg.js"),[],import.meta.url),"/best-practices/deliverability/how-to-avoid-spam-traps-and-protect-your-reputation":()=>z(()=>import("./how-to-avoid-spam-traps-and-protect-your-reputation-CJs_5ZHR.js"),[],import.meta.url),"/best-practices/deliverability/email-deliverability-optimization-complete-guide":()=>z(()=>import("./email-deliverability-optimization-complete-guide-D6ECrik5.js"),[],import.meta.url),"/best-practices/deliverability/dedicated-ip-addresses-when-and-why-you-need-one":()=>z(()=>import("./dedicated-ip-addresses-when-and-why-you-need-one-_fmzNG9b.js"),[],import.meta.url),"/best-practices/deliverability/choosing-the-right-sender-email-address":()=>z(()=>import("./choosing-the-right-sender-email-address-DrD8T3D0.js"),[],import.meta.url),"/best-practices/deliverability/avoiding-noreply-email-addresses":()=>z(()=>import("./avoiding-noreply-email-addresses-C-iRC3Mp.js"),[],import.meta.url),"/best-practices/compliance-legal/why-you-should-never-sell-your-email-list":()=>z(()=>import("./why-you-should-never-sell-your-email-list-CXo526Va.js"),[],import.meta.url),"/best-practices/compliance-legal/required-email-content-for-legal-compliance":()=>z(()=>import("./required-email-content-for-legal-compliance-i5M7_fC2.js"),[],import.meta.url),"/best-practices/compliance-legal/permission-based-email-marketing-why-it-matters":()=>z(()=>import("./permission-based-email-marketing-why-it-matters-Dec9D2WC.js"),[],import.meta.url),"/best-practices/compliance-legal/global-email-compliance-understanding-anti-spam-laws":()=>z(()=>import("./global-email-compliance-understanding-anti-spam-laws-CDmAA8gr.js"),[],import.meta.url),"/best-practices/compliance-legal/gdpr-and-email-marketing-what-you-need-to-know":()=>z(()=>import("./gdpr-and-email-marketing-what-you-need-to-know-B2pB4QMt.js"),[],import.meta.url),"/best-practices/compliance-legal/email-permission-legal-requirements-and-best-practices":()=>z(()=>import("./email-permission-legal-requirements-and-best-practices-y0ImWghq.js"),[],import.meta.url),"/best-practices/compliance-legal/casl-compliance-canadas-anti-spam-law-explained":()=>z(()=>import("./casl-compliance-canadas-anti-spam-law-explained-unu4Sigt.js"),[],import.meta.url),"/best-practices/compliance-legal/can-spam-compliance-essential-requirements":()=>z(()=>import("./can-spam-compliance-essential-requirements-Bkcpvldt.js"),[],import.meta.url),"/best-practices/advanced-strategies/sending-email-campaigns-tips-and-recommendations":()=>z(()=>import("./sending-email-campaigns-tips-and-recommendations-DRRWJtCf.js"),[],import.meta.url),"/best-practices/advanced-strategies/how-to-change-your-sender-email-address":()=>z(()=>import("./how-to-change-your-sender-email-address-BHGt8VG8.js"),[],import.meta.url),"/best-practices/advanced-strategies/email-sender-reputation-how-to-build-and-maintain":()=>z(()=>import("./email-sender-reputation-how-to-build-and-maintain-DXuBcULE.js"),[],import.meta.url),"/best-practices/advanced-strategies/email-content-strategy-planning-successful-campaigns":()=>z(()=>import("./email-content-strategy-planning-successful-campaigns-BZAco8NA.js"),[],import.meta.url),"/api/guides/getting-started-ng-api":()=>z(()=>import("./getting-started-ng-api-BK-_N0FP.js"),[],import.meta.url),"/api/changelog/next-gen-api-v19":()=>z(()=>import("./next-gen-api-v19-uhP_Vw53.js"),[],import.meta.url),"/api/changelog/next-gen-api-v18":()=>z(()=>import("./next-gen-api-v18-BovTq7Vf.js"),[],import.meta.url),"/api/changelog/next-gen-api-v17":()=>z(()=>import("./next-gen-api-v17-DFedpjUD.js"),[],import.meta.url),"/api/changelog/next-gen-api-v16":()=>z(()=>import("./next-gen-api-v16-DQHWqKjS.js"),[],import.meta.url),"/api/changelog/next-gen-api-v15":()=>z(()=>import("./next-gen-api-v15-C9SEjQ6c.js"),[],import.meta.url),"/api/changelog/next-gen-api-v14":()=>z(()=>import("./next-gen-api-v14-DM9fH8tX.js"),[],import.meta.url),"/api/changelog/next-gen-api-v13":()=>z(()=>import("./next-gen-api-v13-FMPe9QOB.js"),[],import.meta.url),"/api/changelog/next-gen-api-v12":()=>z(()=>import("./next-gen-api-v12-t361APb1.js"),[],import.meta.url),"/api/changelog/next-gen-api-v118":()=>z(()=>import("./next-gen-api-v118-NkMN8g_M.js"),[],import.meta.url),"/api/changelog/next-gen-api-v117":()=>z(()=>import("./next-gen-api-v117-DApAfD2r.js"),[],import.meta.url),"/api/changelog/next-gen-api-v115":()=>z(()=>import("./next-gen-api-v115-Dh2HojIx.js"),[],import.meta.url),"/api/changelog/next-gen-api-v114":()=>z(()=>import("./next-gen-api-v114-ENTjQeoH.js"),[],import.meta.url),"/api/changelog/next-gen-api-v113":()=>z(()=>import("./next-gen-api-v113-Bt5ungeA.js"),[],import.meta.url),"/api/changelog/next-gen-api-v112":()=>z(()=>import("./next-gen-api-v112-CZt4vYiZ.js"),[],import.meta.url),"/api/changelog/next-gen-api-v111":()=>z(()=>import("./next-gen-api-v111-BYBPl62l.js"),[],import.meta.url),"/api/changelog/next-gen-api-v110":()=>z(()=>import("./next-gen-api-v110-oDr3k-QV.js"),[],import.meta.url),"/api/changelog/next-gen-api-v11":()=>z(()=>import("./next-gen-api-v11-D5z7T1VO.js"),[],import.meta.url),"/api/changelog/next-gen-api-v10A":()=>z(()=>import("./next-gen-api-v10A-CeCll6b5.js"),[],import.meta.url),"/api/changelog/next-gen-api-v10":()=>z(()=>import("./next-gen-api-v10-Cj1700Db.js"),[],import.meta.url)},$P=YRe({basePath:"/en",fileImports:WRe,defaultOptions:void 0}),ZRe=[{type:"category",label:"Documentation",icon:Eq,items:[{type:"category",label:"Getting Started",icon:NO,items:[{type:"doc",file:"/docs/first-steps",label:"First Steps",icon:void 0,display:void 0,categoryLabel:"Getting Started",path:"/docs/first-steps",rich:void 0}],link:void 0},{type:"category",label:"Account Settings",icon:X7,items:[{type:"doc",file:"/docs/account-settings/adding-and-editing-users",label:"Adding and Editing Users",icon:void 0,display:void 0,categoryLabel:"Account Settings",path:"/docs/account-settings/adding-and-editing-users",rich:void 0},{type:"doc",file:"/docs/account-settings/updating-my-company-profile",label:"Updating Your Organization Profile",icon:void 0,display:void 0,categoryLabel:"Account Settings",path:"/docs/account-settings/updating-my-company-profile",rich:void 0},{type:"doc",file:"/docs/account-settings/finding-your-client-id",label:"Your Account Panel: Client ID and Usage",icon:void 0,display:void 0,categoryLabel:"Account Settings",path:"/docs/account-settings/finding-your-client-id",rich:void 0}
1106,{type:"doc",file:"/docs/account-settings/setting-your-timezone",label:"Setting Your Timezone",icon:void 0,display:void 0,categoryLabel:"Account Settings",path:"/docs/account-settings/setting-your-timezone",rich:void 0},{type:"doc",file:"/docs/account-settings/changing-your-language",label:"Changing Your Account Language",icon:void 0,display:void 0,categoryLabel:"Account Settings",path:"/docs/account-settings/changing-your-language",rich:void 0},{type:"doc",file:"/docs/account-settings/multi-factor-authentication-mfa",label:"Setting Up Multi-Factor Authentication (MFA)",icon:void 0,display:void 0,categoryLabel:"Account Settings",path:"/docs/account-settings/multi-factor-authentication-mfa",rich:void 0},{type:"doc",file:"/docs/account-settings/cant-sign-in",label:"Troubleshooting Sign-In Problems",icon:void 0,display:void 0,categoryLabel:"Account Settings",path:"/docs/account-settings/cant-sign-in",rich:void 0},{type:"doc",file:"/docs/account-settings/reset-email-not-arriving",label:"Didn't Get the Password Reset Email?",icon:void 0,display:void 0,categoryLabel:"Account Settings",path:"/docs/account-settings/reset-email-not-arriving",rich:void 0},{type:"doc",file:"/docs/account-settings/configuring-your-brand",label:"Configuring Your Brand",icon:void 0,display:void 0,categoryLabel:"Account Settings",path:"/docs/account-settings/configuring-your-brand",rich:void 0},{type:"doc",file:"/docs/account-settings/exports",label:"Exporting Your Data",icon:void 0,display:void 0,categoryLabel:"Account Settings",path:"/docs/account-settings/exports",rich:void 0},{type:"doc",file:"/docs/account-settings/canceling-your-account",label:"Canceling Your Account",icon:void 0,display:void 0,categoryLabel:"Account Settings",path:"/docs/account-settings/canceling-your-account",rich:void 0},{type:"doc",file:"/docs/account-settings/personal-access-tokens",label:"Personal Access Tokens",icon:void 0,display:void 0,categoryLabel:"Account Settings",path:"/docs/account-settings/personal-access-tokens",rich:void 0}],link:void 0},{type:"category",label:"Senders",collapsible:!0,icon:s0,items:[{type:"doc",file:"docs/senders/getting-started-authentication-senders",label:"Getting Started with Senders and Authentication",icon:void 0,display:void 0,categoryLabel:"Senders",path:"docs/senders/getting-started-authentication-senders",rich:void 0},{type:"doc",file:"docs/senders/managing-senders",label:"Adding a Sender",icon:void 0,display:void 0,categoryLabel:"Senders",path:"docs/senders/managing-senders",rich:void 0},{type:"doc",file:"docs/senders/authenticating-domains",label:"Authenticating Your Domain",icon:void 0,display:void 0,categoryLabel:"Senders",path:"docs/senders/authenticating-domains",rich:void 0},{type:"doc",file:"docs/senders/tracking-and-bounce-domains",label:"Tracking and Bounce Domains",icon:void 0,display:void 0,categoryLabel:"Senders",path:"docs/senders/tracking-and-bounce-domains",rich:void 0},{type:"doc",file:"docs/senders/adding-dns-records",label:"Adding DNS Records at Your Hosting Provider",icon:void 0,display:void 0,categoryLabel:"Senders",path:"docs/senders/adding-dns-records",rich:void 0},{type:"doc",file:"docs/senders/understanding-spf-dkim-dmarc",label:"Understanding SPF, DKIM, and DMARC",icon:void 0,display:void 0,categoryLabel:"Senders",path:"docs/senders/understanding-spf-dkim-dmarc",rich:void 0}],link:void 0},{type:"category",label:"Campaigns Creation",collapsible:!0,icon:s0,items:[{type:"doc",file:"docs/campaign-creation/creating-campaigns",label:"Creating Campaigns",icon:void 0,display:void 0,categoryLabel:"Campaigns Creation",path:"docs/campaign-creation/creating-campaigns",rich:void 0},{type:"doc",file:"docs/campaign-creation/duplicating-campaigns",label:"Duplicating Campaigns",icon:void 0,display:void 0,categoryLabel:"Campaigns Creation",path:"docs/campaign-creation/duplicating-campaigns",rich:void 0},{type:"doc",file:"docs/campaign-creation/deleting-a-campaign-draft",label:"Deleting a Campaign Draft",icon:void 0,display:void 0,categoryLabel:"Campaigns Creation",path:"docs/campaign-creation/deleting-a-campaign-draft",rich:void 0},{type:"doc",file:"docs/campaign-creation/using-the-email-designer",label:"Using the Email Designer",icon:void 0,display:void 0,categoryLabel:"Campaigns Creation",path:"docs/campaign-creation/using-the-email-designer",rich:void 0},{type:"doc",file:"docs/campaign-creation/creating-mobile-and-desktop-campaign-versions",label:"Creating Mobile and Desktop Campaign Versions",icon:void 0,display:void 0,categoryLabel:"Campaigns Creation",path:"docs/campaign-creation/creating-mobile-and-desktop-campaign-versions",rich:void 0},{type:"doc",file:"docs/campaign-creation/adding-a-video-to-a-campaign",label:"Adding a Video to a Campaign",icon:void 0,display:void 0,categoryLabel:"Campaigns Creation",path:"docs/campaign-creation/adding-a-video-to-a-campaign",ric
1106h:void 0},{type:"doc",file:"docs/campaign-creation/adding-pdf-attachments",label:"Adding PDF Attachments",icon:void 0,display:void 0,categoryLabel:"Campaigns Creation",path:"docs/campaign-creation/adding-pdf-attachments",rich:void 0},{type:"doc",file:"docs/campaign-creation/adding-a-calendar-link-to-a-campaign",label:"Adding a Calendar Link to a Campaign",icon:void 0,display:void 0,categoryLabel:"Campaigns Creation",path:"docs/campaign-creation/adding-a-calendar-link-to-a-campaign",rich:void 0},{type:"doc",file:"docs/campaign-creation/creating-effective-preheaders",label:"Creating Effective Preheaders",icon:void 0,display:void 0,categoryLabel:"Campaigns Creation",path:"docs/campaign-creation/creating-effective-preheaders",rich:void 0},{type:"doc",file:"docs/campaign-creation/integrating-survey-forms",label:"Integrating Survey Forms",icon:void 0,display:void 0,categoryLabel:"Campaigns Creation",path:"docs/campaign-creation/integrating-survey-forms",rich:void 0},{type:"doc",file:"docs/campaign-creation/adding-unsubscribe-links",label:"Adding Unsubscribe Links",icon:void 0,display:void 0,categoryLabel:"Campaigns Creation",path:"docs/campaign-creation/adding-unsubscribe-links",rich:void 0},{type:"doc",file:"docs/campaign-creation/adding-your-physical-address",label:"Adding Your Physical Address",icon:void 0,display:void 0,categoryLabel:"Campaigns Creation",path:"docs/campaign-creation/adding-your-physical-address",rich:void 0},{type:"doc",file:"docs/campaign-creation/testing-your-campaign",label:"Testing Your Campaign",icon:void 0,display:void 0,categoryLabel:"Campaigns Creation",path:"docs/campaign-creation/testing-your-campaign",rich:void 0},{type:"doc",file:"docs/campaign-creation/creating-ab-tests-campaigns",label:"Creating A/B Test Campaigns",icon:void 0,display:void 0,categoryLabel:"Campaigns Creation",path:"docs/campaign-creation/creating-ab-tests-campaigns",rich:void 0},{type:"doc",file:"docs/campaign-creation/uploading-to-the-file-manager",label:"Uploading to the File Manager",icon:void 0,display:void 0,categoryLabel:"Campaigns Creation",path:"docs/campaign-creation/uploading-to-the-file-manager",rich:void 0},{type:"doc",file:"docs/campaign-creation/adding-rss-feeds",label:"Adding RSS Feeds",icon:void 0,display:void 0,categoryLabel:"Campaigns Creation",path:"docs/campaign-creation/adding-rss-feeds",rich:void 0},{type:"doc",file:"docs/campaign-creation/create-utm-tracking-links",label:"Creating UTM Tracking Links",icon:void 0,display:void 0,categoryLabel:"Campaigns Creation",path:"docs/campaign-creation/create-utm-tracking-links",rich:void 0}],link:void 0},{type:"category",label:"Personalization",collapsible:!0,icon:TY,items:[{type:"doc",file:"docs/personalization/using-dynamic-content",label:"Using Dynamic Content",icon:void 0,display:void 0,categoryLabel:"Personalization",path:"docs/personalization/using-dynamic-content",rich:void 0},{type:"doc",file:"docs/personalization/adding-merge-tags-to-a-campaign",label:"Adding Merge Tags to a Campaign",icon:void 0,display:void 0,categoryLabel:"Personalization",path:"docs/personalization/adding-merge-tags-to-a-campaign",rich:void 0},{type:"doc",file:"docs/personalization/display-conditions",label:"Display Conditions",icon:void 0,display:void 0,categoryLabel:"Personalization",path:"docs/personalization/display-conditions",rich:void 0},{type:"doc",file:"docs/personalization/using-merge-tags-and-fallbacks",label:"Using Merge Tags and Fallbacks",icon:void 0,display:void 0,categoryLabel:"Personalization",path:"docs/personalization/using-merge-tags-and-fallbacks",rich:void 0},{type:"doc",file:"docs/personalization/adding-a-date-merge-tag",label:"Adding a Date Merge Tag",icon:void 0,display:void 0,categoryLabel:"Personalization",path:"docs/personalization/adding-a-date-merge-tag",rich:void 0}],link:void 0},{type:"category",label:"AI Assistant",collapsible:!0,icon:Cq,items:[{type:"doc",file:"docs/ai/creating-content-with-ai",label:"Creating Content with AI",icon:void 0,display:void 0,categoryLabel:"AI Assistant",path:"docs/ai/creating-content-with-ai",rich:void 0},{type:"doc",file:"docs/ai/creating-subject-lines-with-ai",label:"Creating Subject Lines with AI",icon:void 0,display:void 0,categoryLabel:"AI Assistant",path:"docs/ai/creating-subject-lines-with-ai",rich:void 0},{type:"doc",file:"docs/ai/creating-email-preheaders-with-ai",label:"Creating Email Preheaders with AI",icon:void 0,display:void 0,categoryLabel:"AI Assistant",path:"docs/ai/creating-email-preheaders-with-ai",rich:void 0}],link:void 0},{type:"category",label:"Automations",collapsible:!0,icon:NY,items:[{type:"doc",file:"docs/automations/understanding-email-automation",label:"Understanding Email Automation",icon:void 0,display:void 0,categoryLabel:"Automations",path:"docs/automations/understanding-email-automation",rich:void 0},{type:"doc",file:"docs/automations/creating-an-automated-welcome-email",label:"Creating an Automated Welcome Email",icon:void 0,display:void 0,categoryLabel:"Automations",path:"docs/automations/creating-an-automated-welcome-email",rich:void 0},{type:"doc",file:"docs/automations/creating-an-automation-with-branching-conditions",label:"Creating an Automation with Branching Conditions",icon:void 0,display:void 0,categoryLabel:"Automations",path:"docs/automations/creating-an-automation-with-branching-conditions",rich:void 0},{type:"doc",file:"docs/automations/creating-a-looping-automation",label:"Creating a Looping Automation",icon:void 0,display:void 0,categoryLabel:"Automations",path:"docs/automations/creating-a-looping-automation",rich:void 0},{type:"doc",file:"docs/automations/tracking-customer-journeys-with-custom-attributes",label:"Tracking Customer Journeys with Custom Attributes",icon:void 0,display:void 0,categoryLabel:"Automations",path:"docs/automations/tracking-customer-journeys-with-custom-attributes",rich:void 0}],link:void 0},{type:"category",label:"Audience Building",collapsible:!0,icon:vq,items:[{type:"doc",file:"docs/audience-building/working-with-forms",label:"Creating a Form",icon:void 0,display:void 0,categoryLabel:"Audience Building",path:"docs/audience-building/working-with-forms",ric
1106h:void 0},{type:"doc",file:"docs/audience-building/configuring-recaptcha",label:"Configuring reCAPTCHA on Your Forms",icon:void 0,display:void 0,categoryLabel:"Audience Building",path:"docs/audience-building/configuring-recaptcha",rich:void 0},{type:"doc",file:"docs/audience-building/creating-landing-pages",label:"Creating Landing Pages",icon:void 0,display:void 0,categoryLabel:"Audience Building",path:"docs/audience-building/creating-landing-pages",rich:void 0},{type:"doc",file:"docs/audience-building/creating-popups",label:"Creating Pop-ups",icon:void 0,display:void 0,categoryLabel:"Audience Building",path:"docs/audience-building/creating-popups",rich:void 0},{type:"doc",file:"docs/audience-building/configuring-opt-in-emails",label:"Configuring and Personalizing Opt-In Emails",icon:void 0,display:void 0,categoryLabel:"Audience Building",path:"docs/audience-building/configuring-opt-in-emails",rich:void 0},{type:"doc",file:"docs/audience-building/subscriber-preference-center",label:"Setting Up Your Subscriber Preference Center",icon:void 0,display:void 0,categoryLabel:"Audience Building",path:"docs/audience-building/subscriber-preference-center",rich:void 0}],link:void 0},{type:"category",label:"Audience",collapsible:!0,icon:Jq,items:[{type:"doc",file:"docs/audience/managing-contact-lists",label:"Managing Contact Lists",icon:void 0,display:void 0,categoryLabel:"Audience",path:"docs/audience/managing-contact-lists",rich:void 0},{type:"doc",file:"docs/audience/importing-contacts-into-your-lists",label:"Importing Contacts into Your Lists",icon:void 0,display:void 0,categoryLabel:"Audience",path:"docs/audience/importing-contacts-into-your-lists",rich:void 0},{type:"doc",file:"docs/audience/updating-contact-information",label:"Updating Contact Information",icon:void 0,display:void 0,categoryLabel:"Audience",path:"docs/audience/updating-contact-information",rich:void 0},{type:"doc",file:"docs/audience/removing-a-contact",label:"Removing a Contact",icon:void 0,display:void 0,categoryLabel:"Audience",path:"docs/audience/removing-a-contact",rich:void 0},{type:"doc",file:"docs/audience/adding-attributes-to-your-list",label:"Adding Attributes to Your List",icon:void 0,display:void 0,categoryLabel:"Audience",path:"docs/audience/adding-attributes-to-your-list",rich:void 0},{type:"doc",file:"docs/audience/creating-dynamic-segments",label:"Creating Dynamic Segments",icon:void 0,display:void 0,categoryLabel:"Audience",path:"docs/audience/creating-dynamic-segments",rich:void 0},{type:"doc",file:"docs/audience/segmenting-by-engagement",label:"Segmenting by Engagement",icon:void 0,display:void 0,categoryLabel:"Audience",path:"docs/audience/segmenting-by-engagement",rich:void 0},{type:"doc",file:"docs/audience/creating-a-confirmation-campaign",label:"Creating a Confirmation Campaign",icon:void 0,display:void 0,categoryLabel:"Audience",path:"docs/audience/creating-a-confirmation-campaign",rich:void 0},{type:"doc",file:"docs/audience/using-tags-to-track-engagement",label:"Using Tags to Track Engagement",icon:void 0,display:void 0,categoryLabel:"Audience",path:"docs/audience/using-tags-to-track-engagement",rich:void 0},{type:"doc",file:"docs/audience/contact-status",label:"Contact Status",icon:void 0,display:void 0,categoryLabel:"Audience",path:"docs/audience/contact-status",rich:void 0},{type:"doc",file:"docs/audience/suppression-lists",label:"Managing Your Suppression List",icon:void 0,display:void 0,categoryLabel:"Audience",path:"docs/audience/suppression-lists",rich:void 0},{type:"doc",file:"docs/audience/exporting-a-contact-list",label:"Exporting a Contact List",icon:void 0,display:void 0,categoryLabel:"Audience",path:"docs/audience/exporting-a-contact-list",rich:void 0},{type:"doc",file:"docs/audience/deleting-lists",label:"Deleting Lists",icon:void 0,display:void 0,categoryLabel:"Audience",path:"docs/audience/deleting-lists",rich:void 0},{type:"doc",file:"docs/audience-building/default-sender-address-and-language",label:"Setting a List's Default Sender and Language",icon:void 0,display:void 0,categoryLabel:"Audience",path:"docs/audience-building/default-sender-address-and-language",rich:void 0},{type:"doc",file:"docs/audience-building/subscription-confirmation-email",label:"Subscription Confirmation Email Campaign",icon:void 0,display:void 0,categoryLabel:"Audience",path:"docs/audience-building/subscription-confirmation-email",rich:void 0}],link:void 0},{type:"category",label:"Analytics",collapsible:!0,icon:Rq,items:[{type:"doc",file:"docs/analytics/understanding-campaign-reports",label:"Understanding Campaign Reports",icon:void 0,display:void 0,categoryLabel:"Analytics",path:"docs/analytics/understanding-campaign-reports",rich:void 0},{type:"doc",file:"docs/analytics/tracking-campaign-performance",label:"Tracking Campaign Performance",icon:void 0,display:void 0,categoryLabel:"Analytics",path:"docs/analytics/tracking-campaign-performance",rich:void 0},{type:"doc",file:"docs/analytics/email-click-rates",label:"Email Click Rates",icon:void 0,display:void 0,categoryLabel:"Analytics",path:"docs/analytics/email-click-rates",ric
1106h:void 0},{type:"doc",file:"docs/analytics/open-rates",label:"Open Rates",icon:void 0,display:void 0,categoryLabel:"Analytics",path:"docs/analytics/open-rates",rich:void 0},{type:"doc",file:"docs/analytics/email-bounces",label:"Understanding Bounces, Complaints, and Unsubscribes",icon:void 0,display:void 0,categoryLabel:"Analytics",path:"docs/analytics/email-bounces",rich:void 0},{type:"doc",file:"docs/analytics/tracking-click-rate-activity",label:"Tracking Click Rate Activity",icon:void 0,display:void 0,categoryLabel:"Analytics",path:"docs/analytics/tracking-click-rate-activity",rich:void 0}],link:void 0},{type:"category",label:"Email Templates",collapsible:!0,icon:i0,items:[{type:"doc",file:"docs/email-templates/working-with-smart-templates",label:"Working with Smart Templates",icon:void 0,display:void 0,categoryLabel:"Email Templates",path:"docs/email-templates/working-with-smart-templates",rich:void 0},{type:"doc",file:"docs/email-templates/saving-campaigns-as-templates",label:"Saving Campaigns as Templates",icon:void 0,display:void 0,categoryLabel:"Email Templates",path:"docs/email-templates/saving-campaigns-as-templates",rich:void 0},{type:"doc",file:"docs/email-templates/managing-email-templates",label:"Managing Your Email Templates",icon:void 0,display:void 0,categoryLabel:"Email Templates",path:"docs/email-templates/managing-email-templates",rich:void 0},{type:"doc",file:"docs/email-templates/deleting-a-template",label:"Deleting a Template",icon:void 0,display:void 0,categoryLabel:"Email Templates",path:"docs/email-templates/deleting-a-template",rich:void 0},{type:"doc",file:"docs/email-templates/importing-your-html-code",label:"Importing Your HTML Code",icon:void 0,display:void 0,categoryLabel:"Email Templates",path:"docs/email-templates/importing-your-html-code",rich:void 0}],link:void 0},{type:"category",label:"Integrations",collapsible:!0,icon:i0,items:[{type:"doc",file:"docs/integrations/connecting-cakemail-with-zapier",label:"Connecting your account with Zapier",icon:void 0,display:void 0,categoryLabel:"Integrations",path:"docs/integrations/connecting-cakemail-with-zapier",rich:void 0}],link:void 0},{type:"category",label:"Email API",collapsible:!0,icon:ru,items:[{type:"doc",file:"docs/email-api/getting-started-with-the-email-api",label:"Getting Started with the Email API",icon:void 0,display:void 0,categoryLabel:"Email API",path:"docs/email-api/getting-started-with-the-email-api",rich:void 0}],link:void 0},{type:"category",label:"Partners",collapsible:!0,icon:i0,items:[{type:"doc",file:"docs/partners/customizing-your-default-reseller-domain",label:"Customizing Your Default Reseller Domain",icon:void 0,display:void 0,categoryLabel:"Partners",path:"docs/partners/customizing-your-default-reseller-domain",rich:void 0},{type:"doc",file:"docs/partners/system-email-customization",label:"System Email Customization",icon:void 0,display:void 0,categoryLabel:"Partners",path:"docs/partners/system-email-customization",rich:void 0},{type:"doc",file:"docs/partners/client-template-sharing",label:"Client Template Sharing",icon:void 0,display:void 0,categoryLabel:"Partners",path:"docs/partners/client-template-sharing",rich:void 0},{type:"doc",file:"docs/partners/managing-client-features",label:"Managing Client Features",icon:void 0,display:void 0,categoryLabel:"Partners",path:"docs/partners/managing-client-features",rich:void 0}],link:void 0},{type:"category",label:"Delivery Troubleshooting",collapsible:!0,icon:oY,items:[{type:"doc",file:"docs/delivery-troubleshooting/email-deliverability",label:"Email Deliverability",icon:void 0,display:void 0,categoryLabel:"Delivery Troubleshooting",path:"docs/delivery-troubleshooting/email-deliverability",ric
1106h:void 0},{type:"doc",file:"docs/delivery-troubleshooting/gmail-yahoo-sender-requirements",label:"Meeting Gmail and Yahoo Sender Requirements",icon:void 0,display:void 0,categoryLabel:"Delivery Troubleshooting",path:"docs/delivery-troubleshooting/gmail-yahoo-sender-requirements",rich:void 0},{type:"doc",file:"docs/delivery-troubleshooting/test-email-links-not-working",label:"My Test Email Links Are Not Working",icon:void 0,display:void 0,categoryLabel:"Delivery Troubleshooting",path:"docs/delivery-troubleshooting/test-email-links-not-working",rich:void 0},{type:"doc",file:"docs/delivery-troubleshooting/role-based-emails",label:"Role-based Emails",icon:void 0,display:void 0,categoryLabel:"Delivery Troubleshooting",path:"docs/delivery-troubleshooting/role-based-emails",rich:void 0},{type:"doc",file:"docs/delivery-troubleshooting/missing-emails",label:"Missing Emails",icon:void 0,display:void 0,categoryLabel:"Delivery Troubleshooting",path:"docs/delivery-troubleshooting/missing-emails",rich:void 0},{type:"doc",file:"docs/delivery-troubleshooting/under-review-warnings",label:"Under Review Warnings",icon:void 0,display:void 0,categoryLabel:"Delivery Troubleshooting",path:"docs/delivery-troubleshooting/under-review-warnings",rich:void 0},{type:"doc",file:"docs/delivery-troubleshooting/spam-and-promotions-tab",label:"Spam folder",icon:void 0,display:void 0,categoryLabel:"Delivery Troubleshooting",path:"docs/delivery-troubleshooting/spam-and-promotions-tab",rich:void 0},{type:"doc",file:"docs/delivery-troubleshooting/email-opens",label:"Email Opens",icon:void 0,display:void 0,categoryLabel:"Delivery Troubleshooting",path:"docs/delivery-troubleshooting/email-opens",rich:void 0},{type:"doc",file:"docs/delivery-troubleshooting/image-display-issues",label:"Image Display Issues",icon:void 0,display:void 0,categoryLabel:"Delivery Troubleshooting",path:"docs/delivery-troubleshooting/image-display-issues",rich:void 0},{type:"doc",file:"docs/delivery-troubleshooting/account-suspensions",label:"Account Suspensions",icon:void 0,display:void 0,categoryLabel:"Delivery Troubleshooting",path:"docs/delivery-troubleshooting/account-suspensions",rich:void 0},{type:"doc",file:"docs/delivery-troubleshooting/delivery-delays",label:"Delivery Delays",icon:void 0,display:void 0,categoryLabel:"Delivery Troubleshooting",path:"docs/delivery-troubleshooting/delivery-delays",rich:void 0},{type:"doc",file:"docs/delivery-troubleshooting/domain-blacklisting",label:"Domain Blacklisting",icon:void 0,display:void 0,categoryLabel:"Delivery Troubleshooting",path:"docs/delivery-troubleshooting/domain-blacklisting",rich:void 0},{type:"doc",file:"docs/delivery-troubleshooting/feedback-loops",label:"Feedback Loops",icon:void 0,display:void 0,categoryLabel:"Delivery Troubleshooting",path:"docs/delivery-troubleshooting/feedback-loops",rich:void 0},{type:"doc",file:"docs/delivery-troubleshooting/email-bounces",label:"Resolving Email Bounces",icon:void 0,display:void 0,categoryLabel:"Delivery Troubleshooting",path:"docs/delivery-troubleshooting/email-bounces",rich:void 0},{type:"doc",file:"docs/delivery-troubleshooting/sender-reputation",label:"Sender Reputation",icon:void 0,display:void 0,categoryLabel:"Delivery Troubleshooting",path:"docs/delivery-troubleshooting/sender-reputation",rich:void 0},{type:"doc",file:"docs/delivery-troubleshooting/preventing-draft-loss",label:"Preventing Draft Loss in the Editor",icon:void 0,display:void 0,categoryLabel:"Delivery Troubleshooting",path:"docs/delivery-troubleshooting/preventing-draft-loss",rich:void 0}],link:void 0},{type:"category",label:"Billing",collapsible:!0,icon:i7,items:[{type:"doc",file:"docs/billing/choosing-your-plan",label:"Choosing Your Plan",icon:void 0,display:void 0,categoryLabel:"Billing",path:"docs/billing/choosing-your-plan",rich:void 0},{type:"doc",file:"docs/billing/protecting-your-information",label:"Protecting Your Information",icon:void 0,display:void 0,categoryLabel:"Billing",path:"docs/billing/protecting-your-information",rich:void 0},{type:"doc",file:"docs/billing/managing-your-billing",label:"Managing Your Billing",icon:void 0,display:void 0,categoryLabel:"Billing",path:"docs/billing/managing-your-billing",rich:void 0}],link:void 0}],link:void 0},{type:"category",label:"Best Practices",icon:l0,items:[{type:"doc",file:"/best-practices",label:"Best Practices Overview",icon:l0,display:void 0,categoryLabel:"Best Practices",path:"/best-practices",rich:void 0},{type:"category",label:"Getting Started",icon:NO,link:{type:"doc",file:"best-practices/getting-started",label:"Getting Started with Email Marketing",icon:void 0,path:"best-practices/getting-started"},items:[{type:"doc",file:"best-practices/getting-started/email-marketing-fundamentals-a-beginners-guide",label:"Email Marketing Fundamentals: A Beginner's Guide",icon:void 0,display:void 0,categoryLabel:"Getting Started",path:"best-practices/getting-started/email-marketing-fundamentals-a-beginners-guide",rich:void 0},{type:"doc",file:"best-practices/getting-started/benefits-of-using-an-email-marketing-provider",label:"Benefits of Using an Email Marketing Provider",icon:void 0,display:void 0,categoryLabel:"Getting Started",path:"best-practices/getting-started/benefits-of-using-an-email-marketing-provider",rich:void 0},{type:"doc",file:"best-practices/getting-started/creating-your-first-email-template-a-beginners-guide",label:"Creating Your First Email Template: A Beginner's Guide",icon:void 0,display:void 0,categoryLabel:"Getting Started",path:"best-practices/getting-started/creating-your-first-email-template-a-beginners-guide",rich:void 0},{type:"doc",file:"best-practices/getting-started/glossary-of-email-marketing-terms",label:"Glossary of Email Marketing Terms",icon:void 0,display:void 0,categoryLabel:"Getting Started",path:"best-practices/getting-started/glossary-of-email-marketing-terms",rich:void 0}]},{type:"category",label:"List Building",icon:wq,link:{type:"doc",file:"best-practices/list-building",label:"List Building Best Practices",icon:void 0,path:"best-practices/list-building"},items:[{type:"doc",file:"best-practices/list-building/building-a-quality-email-list-best-practices",label:"Building a Quality Email List: Best Practices",icon:void 0,display:void 0,categoryLabel:"List Building",path:"best-practices/list-building/building-a-quality-email-list-best-practices",rich:void 0},{type:"doc",file:"best-practices/list-building/how-to-build-your-email-list-the-right-way",label:"How to Build Your Email List the Right Way",icon:void 0,display:void 0,categoryLabel:"List Building",path:"best-practices/list-building/how-to-build-your-email-list-the-right-way",rich:void 0},{type:"doc",file:"best-practices/list-building/email-list-growth-strategies-to-attract-new-subscribers",label:"Email List Growth: Strategies to Attract New Subscribers",icon:void 0,display:void 0,categoryLabel:"List Building",path:"best-practices/list-building/email-list-growth-strategies-to-attract-new-subscribers",rich:void 0},{type:"doc",file:"best-practices/list-building/list-hygiene-maintaining-a-healthy-email-database",label:"List Hygiene: Maintaining a Healthy Email Database",icon:void 0,display:void 0,categoryLabel:"List Building",path:"best-practices/list-building/list-hygiene-maintaining-a-healthy-email-database",rich:void 0},{type:"doc",file:"best-practices/list-building/double-opt-in-how-to-build-higher-quality-lists",label:"Double Opt-in: How to Build Higher Quality Email Lists",icon:void 0,display:void 0,categoryLabel:"List Building",path:"best-practices/list-building/double-opt-in-how-to-build-higher-quality-lists",ric
1106h:void 0},{type:"doc",file:"best-practices/list-building/why-purchased-email-lists-hurt-your-business",label:"Why Purchased Email Lists Hurt Your Business",icon:void 0,display:void 0,categoryLabel:"List Building",path:"best-practices/list-building/why-purchased-email-lists-hurt-your-business",rich:void 0}]},{type:"category",label:"Email Design",icon:c0,link:{type:"doc",file:"/best-practices/email-design",label:"Email Design Best Practices",icon:void 0,path:"/best-practices/email-design"},items:[{type:"doc",file:"best-practices/email-design/email-design-checklist",label:"Email Design Checklist",icon:void 0,display:void 0,categoryLabel:"Email Design",path:"best-practices/email-design/email-design-checklist",rich:void 0},{type:"doc",file:"best-practices/email-design/email-design-balancing-text-and-images-for-results",label:"Email Design: Balancing Text and Images for Better Results",icon:void 0,display:void 0,categoryLabel:"Email Design",path:"best-practices/email-design/email-design-balancing-text-and-images-for-results",rich:void 0},{type:"doc",file:"best-practices/email-design/why-image-only-emails-hurt-deliverability-and-engagement",label:"Why Image-only Emails Hurt Deliverability and Engagement",icon:void 0,display:void 0,categoryLabel:"Email Design",path:"best-practices/email-design/why-image-only-emails-hurt-deliverability-and-engagement",rich:void 0}]},{type:"category",label:"Deliverability",icon:l0,link:{type:"doc",file:"/best-practices/deliverability",label:"Email Deliverability Best Practices",icon:void 0,path:"/best-practices/deliverability"},items:[{type:"doc",file:"best-practices/deliverability/email-deliverability-optimization-complete-guide",label:"Email Deliverability Optimization: Complete Guide",icon:void 0,display:void 0,categoryLabel:"Deliverability",path:"best-practices/deliverability/email-deliverability-optimization-complete-guide",rich:void 0},{type:"doc",file:"best-practices/deliverability/choosing-the-right-sender-email-address",label:"Choosing the Right Sender Email Address",icon:void 0,display:void 0,categoryLabel:"Deliverability",path:"best-practices/deliverability/choosing-the-right-sender-email-address",rich:void 0},{type:"doc",file:"best-practices/deliverability/avoiding-noreply-email-addresses",label:"Avoiding 'noreply@' Email Addresses",icon:void 0,display:void 0,categoryLabel:"Deliverability",path:"best-practices/deliverability/avoiding-noreply-email-addresses",rich:void 0},{type:"doc",file:"best-practices/deliverability/why-you-should-use-your-own-domain-for-sending",label:"Why You Should Use Your Own Domain for Email Sending",icon:void 0,display:void 0,categoryLabel:"Deliverability",path:"best-practices/deliverability/why-you-should-use-your-own-domain-for-sending",rich:void 0},{type:"doc",file:"best-practices/deliverability/how-to-avoid-spam-traps-and-protect-your-reputation",label:"How to Avoid Spam Traps and Protect Your Sender Reputation",icon:void 0,display:void 0,categoryLabel:"Deliverability",path:"best-practices/deliverability/how-to-avoid-spam-traps-and-protect-your-reputation",rich:void 0},{type:"doc",file:"best-practices/deliverability/how-to-reduce-spam-complaints-prevention-strategies",label:"How to Reduce Spam Complaints: Prevention Strategies",icon:void 0,display:void 0,categoryLabel:"Deliverability",path:"best-practices/deliverability/how-to-reduce-spam-complaints-prevention-strategies",rich:void 0},{type:"doc",file:"best-practices/deliverability/dedicated-ip-addresses-when-and-why-you-need-one",label:"Dedicated IP Addresses: When and Why You Need One",icon:void 0,display:void 0,categoryLabel:"Deliverability",path:"best-practices/deliverability/dedicated-ip-addresses-when-and-why-you-need-one",rich:void 0}]},{type:"category",label:"Engagement Optimization",icon:x7,link:{type:"doc",file:"/best-practices/engagement-optimization",label:"Engagement Optimization Strategies",icon:void 0,path:"/best-practices/engagement-optimization"},items:[{type:"doc",file:"best-practices/engagement-optimization/email-subject-line-best-practices",label:"Email Subject Line Best Practices",icon:void 0,display:void 0,categoryLabel:"Engagement Optimization",path:"best-practices/engagement-optimization/email-subject-line-best-practices",rich:void 0},{type:"doc",file:"best-practices/engagement-optimization/how-to-improve-email-open-rates-expert-tips",label:"How to Improve Email Open Rates: Expert Tips",icon:void 0,display:void 0,categoryLabel:"Engagement Optimization",path:"best-practices/engagement-optimization/how-to-improve-email-open-rates-expert-tips",rich:void 0},{type:"doc",file:"best-practices/engagement-optimization/how-to-increase-email-engagement-proven-strategies",label:"How to Increase Email Engagement: Proven Strategies",icon:void 0,display:void 0,categoryLabel:"Engagement Optimization",path:"best-practices/engagement-optimization/how-to-increase-email-engagement-proven-strategies",rich:void 0},{type:"doc",file:"best-practices/engagement-optimization/optimal-send-times-and-frequency-maximize-engagement",label:"Optimal Send Times and Frequency: Ma
1106ximize Email Engagement",icon:void 0,display:void 0,categoryLabel:"Engagement Optimization",path:"best-practices/engagement-optimization/optimal-send-times-and-frequency-maximize-engagement",rich:void 0},{type:"doc",file:"best-practices/engagement-optimization/re-engagement-campaigns-win-back-inactive-subscribers",label:"Re-engagement Campaigns: Win Back Inactive Subscribers",icon:void 0,display:void 0,categoryLabel:"Engagement Optimization",path:"best-practices/engagement-optimization/re-engagement-campaigns-win-back-inactive-subscribers",rich:void 0},{type:"doc",file:"best-practices/engagement-optimization/email-marketing-benchmarks-what-are-good-open-rates",label:"Email Marketing Benchmarks: What Are Good Open, Click, and Bounce Rates?",icon:void 0,display:void 0,categoryLabel:"Engagement Optimization",path:"best-practices/engagement-optimization/email-marketing-benchmarks-what-are-good-open-rates",rich:void 0}]},{type:"category",label:"Compliance & Legal",icon:c0,link:{type:"doc",file:"/best-practices/compliance-legal",label:"Email Marketing Compliance & Legal Requirements",icon:void 0,path:"/best-practices/compliance-legal"},items:[{type:"doc",file:"best-practices/compliance-legal/global-email-compliance-understanding-anti-spam-laws",label:"Global Email Compliance: Understanding Anti-spam Laws",icon:void 0,display:void 0,categoryLabel:"Compliance & Legal",path:"best-practices/compliance-legal/global-email-compliance-understanding-anti-spam-laws",rich:void 0},{type:"doc",file:"best-practices/compliance-legal/can-spam-compliance-essential-requirements",label:"CAN-SPAM Compliance: Essential Requirements",icon:void 0,display:void 0,categoryLabel:"Compliance & Legal",path:"best-practices/compliance-legal/can-spam-compliance-essential-requirements",rich:void 0},{type:"doc",file:"best-practices/compliance-legal/casl-compliance-canadas-anti-spam-law-explained",label:"CASL Compliance: Canada's Anti-Spam Law",icon:void 0,display:void 0,categoryLabel:"Compliance & Legal",path:"best-practices/compliance-legal/casl-compliance-canadas-anti-spam-law-explained",rich:void 0},{type:"doc",file:"best-practices/compliance-legal/gdpr-and-email-marketing-what-you-need-to-know",label:"GDPR and Email Marketing: What You Need to Know",icon:void 0,display:void 0,categoryLabel:"Compliance & Legal",path:"best-practices/compliance-legal/gdpr-and-email-marketing-what-you-need-to-know",rich:void 0},{type:"doc",file:"best-practices/compliance-legal/required-email-content-for-legal-compliance",label:"Required Email Content for Legal Compliance",icon:void 0,display:void 0,categoryLabel:"Compliance & Legal",path:"best-practices/compliance-legal/required-email-content-for-legal-compliance",rich:void 0},{type:"doc",file:"best-practices/compliance-legal/permission-based-email-marketing-why-it-matters",label:"Permission-based Email Marketing: Why It Matters",icon:void 0,display:void 0,categoryLabel:"Compliance & Legal",path:"best-practices/compliance-legal/permission-based-email-marketing-why-it-matters",rich:void 0},{type:"doc",file:"best-practices/compliance-legal/email-permission-legal-requirements-and-best-practices",label:"Email Permission: Legal Requirements and Best Practices",icon:void 0,display:void 0,categoryLabel:"Compliance & Legal",path:"best-practices/compliance-legal/email-permission-legal-requirements-and-best-practices",rich:void 0},{type:"doc",file:"best-practices/compliance-legal/why-you-should-never-sell-your-email-list",label:"Why You Should Never Sell Your Email List",icon:void 0,display:void 0,categoryLabel:"Compliance & Legal",path:"best-practices/compliance-legal/why-you-should-never-sell-your-email-list",rich:void 0}]},{type:"category",label:"Advanced Strategies",icon:c0,link:{type:"doc",file:"/best-practices/advanced-strategies",label:"Advanced Email Marketing Strategies",icon:void 0,path:"/best-practices/advanced-strategies"},items:[{type:"doc",file:"best-practices/advanced-strategies/email-content-strategy-planning-successful-campaigns",label:"Email Content Strategy: Planning Successful Campaigns",icon:void 0,display:void 0,categoryLabel:"Advanced Strategies",path:"best-practices/advanced-strategies/email-content-strategy-planning-successful-campaigns",rich:void 0}
1106,{type:"doc",file:"best-practices/advanced-strategies/sending-email-campaigns-tips-and-recommendations",label:"Sending Email Campaigns: Tips and Recommendations",icon:void 0,display:void 0,categoryLabel:"Advanced Strategies",path:"best-practices/advanced-strategies/sending-email-campaigns-tips-and-recommendations",rich:void 0},{type:"doc",file:"best-practices/advanced-strategies/email-sender-reputation-how-to-build-and-maintain",label:"Email Sender Reputation: How to Build and Maintain It",icon:void 0,display:void 0,categoryLabel:"Advanced Strategies",path:"best-practices/advanced-strategies/email-sender-reputation-how-to-build-and-maintain",rich:void 0},{type:"doc",file:"best-practices/advanced-strategies/how-to-change-your-sender-email-address",label:"How to Change Your Sender Email Address Successfully",icon:void 0,display:void 0,categoryLabel:"Advanced Strategies",path:"best-practices/advanced-strategies/how-to-change-your-sender-email-address",rich:void 0}]}],link:void 0},{type:"category",label:"Developer Guides",icon:Cf,items:[{type:"category",label:"Cakemail API",icon:Cf,items:[{type:"doc",file:"guides/getting-started-ng-api",label:"Getting Started on Cakemail API",icon:void 0,display:void 0,categoryLabel:"Cakemail API",path:"guides/getting-started-ng-api",rich:void 0},{type:"doc",file:"guides/managing-your-contacts",label:"Managing your contacts",icon:void 0,display:void 0,categoryLabel:"Cakemail API",path:"guides/managing-your-contacts",rich:void 0},{type:"doc",file:"guides/sending-your-first-campaign",label:"Sending your first campaign",icon:void 0,display:void 0,categoryLabel:"Cakemail API",path:"guides/sending-your-first-campaign",rich:void 0},{type:"doc",file:"guides/managing-your-users",label:"Managing your users",icon:void 0,display:void 0,categoryLabel:"Cakemail API",path:"guides/managing-your-users",rich:void 0},{type:"doc",file:"guides/using-templates",label:"Using templates",icon:void 0,display:void 0,categoryLabel:"Cakemail API",path:"guides/using-templates",rich:void 0},{type:"doc",file:"guides/automating-your-emails",label:"Automating your emails",icon:void 0,display:void 0,categoryLabel:"Cakemail API",path:"guides/automating-your-emails",rich:void 0}],link:void 0},{type:"category",label:"Webhooks",icon:AY,items:[{type:"doc",file:"guides/using-webhooks",label:"Using webhooks",icon:void 0,display:void 0,categoryLabel:"Webhooks",path:"guides/using-webhooks",rich:void 0},{type:"doc",file:"guides/webhook-event-catalog",label:"Webhook event catalog",icon:void 0,display:void 0,categoryLabel:"Webhooks",path:"guides/webhook-event-catalog",rich:void 0},{type:"doc",file:"guides/webhook-compliance-events",label:"Compliance events",icon:void 0,display:void 0,categoryLabel:"Webhooks",path:"guides/webhook-compliance-events",rich:void 0}],link:void 0},{type:"category",label:"Email API",icon:s0,items:[{type:"doc",file:"guides/getting-started-email-api",label:"Getting started with Email API",icon:void 0,display:void 0,categoryLabel:"Email API",path:"guides/getting-started-email-api",rich:void 0},{type:"doc",file:"guides/sending-emails-rest-api",label:"Sending emails via REST API",icon:void 0,display:void 0,categoryLabel:"Email API",path:"guides/sending-emails-rest-api",rich:void 0},{type:"doc",file:"guides/sending-emails-smtp",label:"Email configuration",icon:void 0,display:void 0,categoryLabel:"Email API",path:"guides/sending-emails-smtp",rich:void 0},{type:"doc",file:"guides/email-api-reference",label:"Email API reference",icon:void 0,display:void 0,categoryLabel:"Email API",path:"guides/email-api-reference",rich:void 0}],link:void 0},{type:"category",label:"Partner API",icon:SO,items:[{type:"doc",file:"guides/working-as-a-partner",label:"Working as a partner",icon:void 0,display:void 0,categoryLabel:"Partner API",path:"guides/working-as-a-partner",rich:void 0},{type:"doc",file:"guides/login-to-cakemail-next-gen-from-inside-your-app",label:"Login to Cakemail Next-gen from inside your app",icon:void 0,display:void 0,categoryLabel:"Partner API",path:"guides/login-to-cakemail-next-gen-from-inside-your-app",rich:void 0}],link:void 0},{type:"category",label:"API Clients",icon:ru,items:[{type:"doc",file:"guides/next-gen-api-v10A",label:"Python and PHP Next-gen API clients",icon:void 0,display:void 0,categoryLabel:"API Clients",path:"guides/next-gen-api-v10A",rich:void 0}],link:void 0},{type:"category",label:"Classic API",icon:ru,items:[{type:"doc",file:"guides/classic-api-compatibility",label:"Classic API compatibility",icon:void 0,display:void 0,categoryLabel:"Classic API",path:"guides/classic-api-compatibility",ric
1106h:void 0}],link:void 0}],link:void 0},{type:"category",label:"API Reference",icon:ru,collapsed:!0,items:[{type:"link",to:"/api",label:"API Reference"}],link:void 0},{type:"category",label:"Resources and Support",icon:AO,link:{type:"doc",file:"resources-support/changelog/next-gen-api-v123",label:"Next-gen API v1.23",icon:void 0,path:"resources-support/changelog/next-gen-api-v123"},items:[{type:"category",label:"Support Resources",icon:AO,collapsed:!1,items:[{type:"link",icon:Cf,label:"Contact Support",to:"https://www.cakemail.com/contact-us"},{type:"link",icon:Cf,label:"Status Page",to:"https://status.cakemail.com/"},{type:"link",icon:Cf,label:"Product Release Notes",to:"https://www.cakemail.com/releases"}],link:void 0},{type:"category",label:"API Changelog",icon:Y7,items:[{type:"doc",file:"resources-support/changelog/next-gen-api-v123",label:"Next-gen API v1.23",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v123",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v122",label:"Next-gen API v1.22",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v122",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v119",label:"Next-gen API v1.19",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v119",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v118",label:"Next-gen API v1.18",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v118",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v117",label:"Next-gen API v1.17",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v117",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v115",label:"Next-gen API v1.15",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v115",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v114",label:"Next-gen API v1.14",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v114",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v113",label:"Next-gen API v1.13",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v113",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v112",label:"Next-gen API v1.12",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v112",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v111",label:"Next-gen API v1.11",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v111",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v110",label:"Next-gen API v1.10",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v110",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v19",label:"Next-gen API v1.9",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v19",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v18",label:"Next-gen API v1.8",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v18",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v17",label:"Next-gen API v1.7",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v17",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v16",label:"Next-gen API v1.6",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v16",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v15",label:"Next-gen API v1.5",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v15",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v14",label:"Next-gen API v1.4",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v14",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v13",label:"Next-gen API v1.3",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v13",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v12",label:"Next-gen API v1.2",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v12",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v11",label:"Next-gen API v1.1",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v11",rich:void 0},{type:"doc",file:"resources-support/changelog/next-gen-api-v10",label:"Next-gen API v1.0",icon:void 0,display:void 0,categoryLabel:"API Changelog",path:"resources-support/changelog/next-gen-api-v10",rich:void 0}],link:void 0},{type:"category",label:"Partner API",icon:SO,items:[{type:"doc",file:"guides/working-as-a-partner",label:"Working as a partner",icon:void 0,display:void 0,categoryLabel:"Partner API",path:"guides/working-as-a-partner",rich:void 0},{type:"doc",file:"guides/login-to-cakemail-next-gen-from-inside-your-app",label:"Login to Cakemail Next-gen from inside your app",icon:void 0,display:void 0,categoryLabel:"Partner API",path:"guides/login-to-cakemail-next-gen-from-inside-your-app",ric
1106h:void 0}],link:void 0},{type:"category",label:"API Clients",icon:ru,items:[{type:"doc",file:"guides/next-gen-api-v10A",label:"Python and PHP Next-gen API clients",icon:void 0,display:void 0,categoryLabel:"API Clients",path:"guides/next-gen-api-v10A",rich:void 0}],link:void 0},{type:"category",label:"Classic API",icon:ru,items:[{type:"doc",file:"guides/classic-api-compatibility",label:"Classic API compatibility",icon:void 0,display:void 0,categoryLabel:"Classic API",path:"guides/classic-api-compatibility",rich:void 0}],link:void 0}]}],KRe=[],QRe=e=>({getRoutes:()=>e.redirects.map(({from:t,to:n})=>({path:t,loader:()=>b2(n,301)}))}),XRe=[{from:"/",to:"/docs/first-steps"}],PP=QRe({redirects:XRe}),JRe=async e=>{await Promise.all([e.loadTheme(z(()=>import("./github-light-DAi9KRSo.js"),[],import.meta.url),z(()=>import("./github-dark-DHJKELXO.js"),[],import.meta.url)),e.loadLanguage(z(()=>import("./shellscript-Yzrsuije.js"),[],import.meta.url),z(()=>import("./javascript-wDzz0qaB.js"),[],import.meta.url),z(()=>import("./jsx-g9-lgVsj.js"),[],import.meta.url),z(()=>import("./typescript-BPQ3VLAy.js"),[],import.meta.url),z(()=>import("./tsx-COt5Ahok.js"),[],import.meta.url),z(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([19,20,21,22,23]),import.meta.url),z(()=>import("./jsonc-Des-eS-w.js"),[],import.meta.url),z(()=>import("./json-Cp-IABpG.js"),[],import.meta.url),z(()=>import("./python-B6aJPvgy.js"),[],import.meta.url),z(()=>import("./java-CylS5w8V.js"),[],import.meta.url),z(()=>import("./go-CxLEBnE3.js"),[],import.meta.url),z(()=>import("./csharp-COcwbKMJ.js"),[],import.meta.url),z(()=>import("./kotlin-BdnUsdx6.js"),[],import.meta.url),z(()=>import("./objective-c-DXmwc3jG.js"),[],import.meta.url),z(()=>import("./php-BFaTaxCn.js"),__vite__mapDeps([24,25,20,26,27,28,29,30]),import.meta.url),z(()=>import("./ruby-B7fw6oWC.js"),__vite__mapDeps([31,25,20,26,27,28,29,19,21,22,23,32,33,34,35]),import.meta.url),z(()=>import("./swift-Dg5xB15N.js"),[],import.meta.url),z(()=>import("./css-DPfMkruS.js"),[],import.meta.url),z(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([25,20,26]),import.meta.url),z(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([27,28]),import.meta.url),z(()=>import("./yaml-Buea-lGh.js"),[],import.meta.url),z(()=>import("./toml-vGWfd6FD.js"),[],import.meta.url),z(()=>import("./rust-B1yitclQ.js"),[],import.meta.url),z(()=>import("./markdown-Cvjx9yec.js"),[],import.meta.url),z(()=>import("./mdx-Cmh6b_Ma.js"),[],import.meta.url),z(()=>import("./zig-VOosw3JB.js"),[],import.meta.url),z(()=>import("./scala-C151Ov-r.js"),[],import.meta.url),z(()=>import("./dart-CF10PKvl.js"),[],import.meta.url),z(()=>import("./ocaml-C0hk2d4L.js"),[],import.meta.url),z(()=>import("./c-BIGW1oBm.js"),[],import.meta.url),z(()=>import("./cpp-I1joW8b8.js"),__vite__mapDeps([32,33,29]),import.meta.url),z(()=>import("./common-lisp-Cg-RD9OK.js"),[],import.meta.url),z(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([36,25,20,26]),import.meta.url),z(()=>import("./powershell-Dpen1YoG.js"),[],import.meta.url))])};var Zf={},MP;function eOe(){if(MP)return Zf;
1106MP=1,Object.defineProperty(Zf,"__esModule",{value:!0}),Zf.parse=i,Zf.serialize=d;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,o=(()=>{const g=function(){};return g.prototype=Object.create(null),g})();function i(g,y){const v=new o,x=g.length;if(x<2)return v;const C=y?.decode||p;let S=0;do{const A=g.indexOf("=",S);if(A===-1)break;const k=g.indexOf(";",S),N=k===-1?x:k;if(A>N){S=g.lastIndexOf(";",A-1)+1;continue}const O=l(g,S,A),I=c(g,A,O),D=g.slice(O,I);if(v[D]===void 0){let U=l(g,A+1,N),J=c(g,N,U);const P=C(g.slice(U,J));v[D]=P}S=N+1}while(S<x);return v}function l(g,y,v){do{const x=g.charCodeAt(y);if(x!==32&&x!==9)return y}while(++y<v);return v}function c(g,y,v){for(;y>v;){const x=g.charCodeAt(--y);if(x!==32&&x!==9)return y+1}return v}function d(g,y,v){const x=v?.encode||encodeURIComponent;if(!e.test(g))throw new TypeError(`argument name is invalid: ${g}`);const C=x(y);if(!t.test(C))throw new TypeError(`argument val is invalid: ${y}`);let S=g+"="+C;if(!v)return S;if(v.maxAge!==void 0){if(!Number.isInteger(v.maxAge))throw new TypeError(`option maxAge is invalid: ${v.maxAge}`);S+="; Max-Age="+v.maxAge}if(v.domain){if(!n.test(v.domain))throw new TypeError(`option domain is invalid: ${v.domain}`);S+="; Domain="+v.domain}if(v.path){if(!r.test(v.path))throw new TypeError(`option path is invalid: ${v.path}`);S+="; Path="+v.path}if(v.expires){if(!h(v.expires)||!Number.isFinite(v.expires.valueOf()))throw new TypeError(`option expires is invali
1106d: ${v.expires}`);S+="; Expires="+v.expires.toUTCString()}if(v.httpOnly&&(S+="; HttpOnly"),v.secure&&(S+="; Secure"),v.partitioned&&(S+="; Partitioned"),v.priority)switch(typeof v.priority=="string"?v.priority.toLowerCase():void 0){case"low":S+="; Priority=Low";break;case"medium":S+="; Priority=Medium";break;case"high":S+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${v.priority}`)}if(v.sameSite)switch(typeof v.sameSite=="string"?v.sameSite.toLowerCase():v.sameSite){case!0:case"strict":S+="; SameSite=Strict";break;case"lax":S+="; SameSite=Lax";break;case"none":S+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${v.sameSite}`)}return S}function p(g){if(g.indexOf("%")===-1)return g;try{return decodeURIComponent(g)}catch{return g}}function h(g){return a.call(g)==="[object Date]"}return Zf}eOe();[...bZ];new TextEncoder;(class extends ce.Component{constructor(e){super(e),this.state={error:null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:null,location:e.location}:{error:t.error,location:t.location}}render(){return this.state.error?ce.createElement(tOe,{error:this.state.error,renderAppShell:!0}):this.props.children}});function jP({renderAppShell:e,title:t,children:n}){return e?ce.createElement("html",{lang:"en"},ce.createElement("head",null,ce.createElement("meta",{charSet:"utf-8"}),ce.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),ce.createElement("title",null,t)),ce.createElement("body",null,ce.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n))):n}function tOe({error:e,renderAppShell:t}){console.error(e);let n=ce.createElement("script",{dangerouslySetInnerHTML:{__html:` 1107 console.log( 1108 "ð¿ Hey developer ð. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information." 1109 ); 1110 `}});if(NS(e))return ce.createElement(jP,{renderAppShell:t,title:"Unhandled Thrown Response!"},ce.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),n);let r;if(e instanceof Error)r=e;else{let a=e==null?"Unknown Error":typeof e=="object"&&"toString"in e?e.toString():JSON.stringify(e);r=new Error(a)}return ce.createElement(jP,{renderAppShell:t,title:"Application Error!"},ce.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),ce.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),n)}const nOe=e=>"getRoutes"in e&&typeof e.getRoutes=="function";let $r=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function rOe(e){return dA(e)}function dA(e){return Array.isArray(e)?aOe(e):e instanceof RegExp?e:typeof e=="object"?oOe(e):e}function aOe(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=dA(e[n]);return t}function oOe(e){let t={};for(let n in e)t[n]=dA(e[n]);return t}function m6(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function g6(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?g6(e.substring(0,e.length-1)):e.substr(~t+1)}var Wx=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Pg=class{static hasCaptures(e){return e===null?!1:(Wx.lastIndex=0,Wx.test(e))}static replaceCaptures(e,t,n){return e.replace(Wx,(r,a,o,i)=>{let l=n[parseInt(a||o,10)];if(l){let c=t.substring(l.start,l.end);for(;c[0]===".";)c=c.substring(1);switch(i){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return r})}};function y6(e,t){return e<t?-1:e>t?1:0}function b6(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let a=0;a<n;a++){let o=y6(e[a],t[a]);if(o!==0)return o}return 0}return n-r}function zP(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function v6(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var _6=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},cb=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(lOe(e),t)}static createFromParsedTheme(e,t){return uOe(e,t)}_cachedMatchRoot=new _6(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(a=>iOe(e.parent,a.parentScopes));return r?new E6(r.fontStyle,r.foreground,r.background):null}},Zx=class uy{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new uy(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new uy(n,t[r]);return n}push(t){return new uy(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}
vendor: 36,742 bytes, lines 1110-1112
1110toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function iOe(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!sOe(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function sOe(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var E6=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function lOe(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,o=t.length;a<o;a++){let i=t[a];if(!i.settings)continue;let l;if(typeof i.scope=="string"){let h=i.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),l=h.split(",")}else Array.isArray(i.scope)?l=i.scope:l=[""];let c=-1;if(typeof i.settings.fontStyle=="string"){c=0;let h=i.settings.fontStyle.split(" ");for(let g=0,y=h.length;g<y;g++)switch(h[g]){case"italic":c=c|1;break;case"bold":c=c|2;break;case"underline":c=c|4;break;case"strikethrough":c=c|8;break}}let d=null;typeof i.settings.foreground=="string"&&zP(i.settings.foreground)&&(d=i.settings.foreground);let p=null;typeof i.settings.background=="string"&&zP(i.settings.background)&&(p=i.settings.background);for(let h=0,g=l.length;h<g;h++){let v=l[h].trim().split(" "),x=v[v.length-1],C=null;v.length>1&&(C=v.slice(0,v.length-1),C.reverse()),n[r++]=new cOe(x,C,a,c,d,p)}}return n}var cOe=class{constructor(e,t,n,r,a,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=o}},ta=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(ta||{});function uOe(e,t){e.sort((c,d)=>{let p=y6(c.scope,d.scope);return p!==0||(p=b6(c.parentScopes,d.parentScopes),p!==0)?p:c.index-d.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let c=e.shift();c.fontStyle!==-1&&(n=c.fontStyle),c.foreground!==null&&(r=c.foreground),c.background!==null&&(a=c.background)}let o=new dOe(t),i=new E6(n,o.getId(r),o.getId(a)),l=new pOe(new QT(0,null,-1,0,0),[]);for(let c=0,d=e.length;c<d;c++){let p=e[c];l.insert(0,p.scope,p.parentScopes,p.fontStyle,o.getId(p.foreground),o.getId(p.background))}return new cb(o,i,l)}var dOe=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},fOe=Object.freeze([]),QT=class x6{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,o){this.scopeDepth=t,this.parentScopes=n||fOe,this.fontStyle=r,this.foreground=a,this.background=o}clone(){return new x6(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},pOe=class XT{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const o=n.parentScopes[a].length-t.parentScopes[r].length;if(o!==0)return o;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,o;if(r===-1?(a=t,o=""):(a=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(XT._cmpBySpecificity),n}insert(t,n,r,a,o,i){if(n===""){this._doInsertHere(t,r,a,o,i);return}let l=n.indexOf("."),c,d;l===-1?(c=n,d=""):(c=n.substring(0,l),d=n.substring(l+1));let p;this._children.hasOwnProperty(c)?p=this._children[c]:(p=new XT(this._mainRule.clone(),QT.cloneArr(this._rulesWithParentScopes)),this._children[c]=p),p.insert(t+1,d,r,a,o,i)}_doInsertHere(t,n,r,a,o){if(n===null){this._mainRule.acceptOverwrite(t,r,a,o);return}for(let i=0,l=this._rulesWithParentScopes.length;i<l;i++){let c=this._rulesWithParentScopes[i];if(b6(c.parentScopes,n)===0){c.acceptOverwrite(t,r,a,o);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new QT(t,n,r,a,o))}},ad=class po{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=po.getLanguageId(t),r=po.getTokenType(t),a=po.getFontStyle(t),o=po.getForeground(t),i=po.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:o,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,a,o,i,l){let c=po.getLanguageId(t),d=po.getTokenType(t),p=po.containsBalancedBrackets(t)?1:0,h=po.getFontStyle(t),g=po.getForeground(t),y=po.getBackground(t);return n!==0&&(c=n),r!==8&&(d=r),a!==null&&(p=a?1:0),o!==-1&&(h=o),i!==0&&(g=i),l!==0&&(y=l),(c<<0|d<<8|p<<10|h<<11|g<<15|y<<24)>>>0}};function ub(e,t){const n=[],r=hOe(e);let a=r.next();for(;a!==null;){let c=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let d=i();if(n.push({matcher:d,priority:c}),a!==",")break;a=r.next()}return n;function o(){if(a==="-"){a=r.next();const c=o();return d=>!!c&&!c(d)}if(a==="("){a=r.next();const c=l();return a===")"&&(a=r.next()),c}if(BP(a)){const c=[];do c.push(a),a=r.next();while(BP(a));return d=>t(c,d)}return null}function i(){const c=[];let d=o();for(;d;)c.push(d),d=o();return p=>c.every(h=>h(p))}function l(){const c=[];let d=i();for(;d&&(c.push(d),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");d=i()}return p=>c.some(h=>h(p))}}function BP(e){return!!e&&!!e.match(/[\w\.:]+/)}function hOe(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function w6(e){typeof e.dispose=="function"&&e.dispose()}var Vp=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},mOe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},gOe=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},yOe=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Vp(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new gOe;for(const n of e)bOe(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Vp){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function bOe(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Vp?dy({baseGrammar:o,selfGrammar:a},r):JT(e.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},r);const i=n.injections(e.scopeName);if(i)for(const l of i)r.add(new Vp(l))}function JT(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];db([r],t,n)}}function dy(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&db(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&db(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function db(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?m6({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&db(r.patterns,{...t,repository:a},n);const o=r.include;if(!o)continue;const i=T6(o);switch(i.kind){case 0:dy({...t,selfGrammar:t.baseGrammar},n);break;case 1:dy(t,n);break;case 2:JT(i.ruleName,{...t,repository:a},n);break;case 3:case 4:const l=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(l){const c={baseGrammar:t.baseGrammar,selfGrammar:l,repository:a};i.kind===4?JT(i.ruleName,c,n):dy(c,n)}else i.kind===4?n.add(new mOe(i.scopeName,i.ruleName)):n.add(new Vp(i.scopeName));break}}}var vOe=class{kind=0},_Oe=class{kind=1},EOe=class{constructor(e){this.ruleName=e}kind=2},xOe=class{constructor(e){this.scopeName=e}kind=3},wOe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function T6(e){if(e==="$base")return new vOe;if(e==="$self")return new _Oe;const t=e.indexOf("#");if(t===-1)return new xOe(e);if(t===0)return new EOe(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new wOe(n,r)}}var TOe=/\\(\d+)/,UP=/\\(\d+)/g,SOe=-1,S6=-2;var zh=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Pg.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Pg.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${g6(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Pg.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Pg.replaceCaptures(this._contentName,e,t)}},COe=class extends zh{retokenizeCapturedWithRuleId;constructor(e,t,n,r,a){super(e,t,n,r),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},AOe=class extends zh{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,a){super(e,t,n,null),this._match=new qp(r,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Yp,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},FP=class extends zh{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,a){super(e,t,n,r),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Yp,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},eS=class extends zh{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,a,o,i,l,c,d){super(e,t,n,r),this._begin=new qp(a,this.id),this.beginCaptures=o,this._end=new qp(i||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=c||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Yp;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},fb=class extends zh{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,a,o,i,l,c){super(e,t,n,r),this._begin=new qp(a,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new qp(i,S6),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Yp;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Yp,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}},C6=class Qr{static createCaptureRule(t,n,r,a,o){return t.registerRule(i=>new COe(n,i,r,a,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new AOe(t.$vscodeTextmateLocation,t.id,t.name,t.match,Qr._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=m6({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new FP(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Qr._compilePatterns(o,n,r))}return t.while?new fb(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Qr._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Qr._compileCaptures(t.whileCaptures||t.captures,n,r),Qr._compilePatterns(t.patterns,n,r)):new eS(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Qr._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Qr._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Qr._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let o=0;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const l=parseInt(i,10);l>o&&(o=l)}for(let i=0;i<=o;i++)a[i]=null;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const l=parseInt(i,10);let c=0;t[i].patterns&&(c=Qr.getCompiledRuleId(t[i],n,r)),a[l]=Qr.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,c)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let o=0,i=t.length;o<i;o++){const l=t[o];let c=-1;if(l.include){const d=T6(l.include);switch(d.kind){case 0:case 1:c=Qr.getCompiledRuleId(r[l.include],n,r);break;case 2:let p=r[d.ruleName];p&&(c=Qr.getCompiledRuleId(p,n,r));break;case 3:case 4:const h=d.scopeName,g=d.kind===4?d.ruleName:null,y=n.getExternalGrammar(h,r);if(y)if(g){let v=y.repository[g];v&&(c=Qr.getCompiledRuleId(v,n,y.repository))}else c=Qr.getCompiledRuleId(y.repository.$self,n,y.repository);break}}else c=Qr.getCompiledRuleId(l,n,r);if(c!==-1){const d=n.getRule(c);let p=!1;if((d instanceof FP||d instanceof eS||d instanceof fb)&&d.hasMissingPatterns&&d.patterns.length===0&&(p=!0),p)continue;a.push(c)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},qp=class A6{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let a=0,o=[],i=!1;for(let l=0;l<r;l++)if(t.charAt(l)==="\\"&&l+1<r){const d=t.charAt(l+1);d==="z"?(o.push(t.substring(a,l)),o.push("$(?!\\n)(?<!\\n)"),a=l+2):(d==="A"||d==="G")&&(i=!0),l++}this.hasAnchor=i,a===0?this.source=t:(o.push(t.substring(a,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=TOe.test(this.source):this.hasBackReferences=!1}clone(){return new A6(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(a=>t.substring(a.start,a.end));return UP.lastIndex=0,this.source.replace(UP,(a,o)=>v6(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],a=[],o,i,l,c;for(o=0,i=this.source.length;o<i;o++)l=this.source.charAt(o),t[o]=l,n[o]=l,r[o]=l,a[o]=l,l==="\\"&&o+1<i&&(c=this.source.charAt(o+1),c==="A"?(t[o+1]="ï¿¿",n[o+1]="ï¿¿",r[o+1]="A",a[o+1]="A"):c==="G"?(t[o+1]="ï¿¿",n[o+1]="G",r[o+1]="ï¿¿",a[o+1]="G"):(t[o+1]=c,n[o+1]=c,r[o+1]=c,a[o+1]=c),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Yp=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new HP(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(a=>a.resolveAnchors(t,n));return new HP(e,r,this._items.map(a=>a.ruleId))}},HP=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(` 1111`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Kx=class{constructor(e,t){this.languageId=e,this.tokenType=t}},kOe=class tS{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new Kx(t,8),this._embeddedLanguagesMatcher=new NOe(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?tS._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Kx(0,0);_getBasicScopeAttributes=new _6(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new Kx(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(tS.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},NOe=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>v6(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},GP=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function k6(e,t,n,r,a,o,i,l){const c=t.content.length;let d=!1,p=-1;if(i){const y=ROe(e,t,n,r,a,o);a=y.stack,r=y.linePos,n=y.isFirstLine,p=y.anchorPosition}const h=Date.now();for(;!d;){if(l!==0&&Date.now()-h>l)return new GP(a,!0);g()}return new GP(a,!1);function g(){const y=OOe(e,t,n,r,a,p);if(!y){o.produce(a,c),d=!0;return}const v=y.captureIndices,x=y.matchedRuleId,C=v&&v.length>0?v[0].end>r:!1;if(x===SOe){const S=a.getRule(e);o.produce(a,v[0].start),a=a.withContentNameScopesList(a.nameScopesList),sp(e,t,n,a,o,S.endCaptures,v),o.produce(a,v[0].end);const A=a;if(a=a.parent,p=A.getAnchorPos(),!C&&A.getEnterPos()===r){a=A,o.produce(a,c),d=!0;return}}else{const S=e.getRule(x);o.produce(a,v[0].start);const A=a,k=S.getName(t.content,v),N=a.contentNameScopesList.pushAttributed(k,e);if(a=a.push(x,r,p,v[0].end===c,null,N,N),S instanceof eS){const O=S;sp(e,t,n,a,o,O.beginCaptures,v),o.produce(a,v[0].end),p=v[0].end;const I=O.getContentName(t.content,v),D=N.pushAttributed(I,e);if(a=a.withContentNameScopesList(D),O.endHasBackReferences&&(a=a.withEndRule(O.getEndWithResolvedBackReferences(t.content,v))),!C&&A.hasSameRuleAs(a)){a=a.pop(),o.produce(a,c),d=!0;return}}else if(S instanceof fb){const O=S;sp(e,t,n,a,o,O.beginCaptures,v),o.produce(a,v[0].end),p=v[0].end;const I=O.getContentName(t.content,v),D=N.pushAttributed(I,e);if(a=a.withContentNameScopesList(D),O.whileHasBackReferences&&(a=a.withEndRule(O.getWhileWithResolvedBackReferences(t.content,v))),!C&&A.hasSameRuleAs(a)){a=a.pop(),o.produce(a,c),d=!0;return}}else if(sp(e,t,n,a,o,S.captures,v),o.produce(a,v[0].end),a=a.pop(),!C){a=a.safePop(),o.produce(a,c),d=!0;return}}v[0].end>r&&(r=v[0].end,n=!1)}}function ROe(e,t,n,r,a,o){let i=a.beginRuleCapturedEOL?0:-1;const l=[];for(let c=a;c;c=c.pop()){const d=c.getRule(e);d instanceof fb&&l.push({rule:d,stack:c})}for(let c=l.pop();c;c=l.pop()){const{ruleScanner:d,findOptions:p}=LOe(c.rule,e,c.stack.endRule,n,r===i),h=d.findNextMatchSync(t,r,p);if(h){if(h.ruleId!==S6){a=c.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(o.produce(c.stack,h.captureIndices[0].start),sp(e,t,n,c.stack,o,c.rule.whileCaptures,h.captureIndices),o.produce(c.stack,h.captureIndices[0].end),i=h.captureIndices[0].end,h.captureIndices[0].end>r&&(r=h.captureIndices[0].end,n=!1))}else{a=c.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:i,isFirstLine:n}}function OOe(e,t,n,r,a,o){const i=DOe(e,t,n,r,a,o),l=e.getInjections();if(l.length===0)return i;const c=IOe(l,e,t,n,r,a,o);if(!c)return i;if(!i)return c;const d=i.captureIndices[0].start,p=c.captureIndices[0].start;return p<d||c.priorityMatch&&p===d?c:i}function DOe(e,t,n,r,a,o){const i=a.getRule(e),{ruleScanner:l,findOptions:c}=N6(i,e,a.endRule,n,r===o),d=l.findNextMatchSync(t,r,c);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function IOe(e,t,n,r,a,o,i){let l=Number.MAX_VALUE,c=null,d,p=0;const h=o.contentNameScopesList.getScopeNames();for(let g=0,y=e.length;g<y;g++){const v=e[g];if(!v.matcher(h))continue;const x=t.getRule(v.ruleId),{ruleScanner:C,findOptions:S}=N6(x,t,null,r,a===i),A=C.findNextMatchSync(n,a,S);if(!A)continue;const k=A.captureIndices[0].start;if(!(k>=l)&&(l=k,c=A.captureIndices,d=A.ruleId,p=v.priority,l===a))break}return c?{priorityMatch:p===-1,captureIndices:c,matchedRuleId:d}:null}function N6(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function LOe(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function sp(e,t,n,r,a,o,i){if(o.length===0)return;const l=t.content,c=Math.min(o.length,i.length),d=[],p=i[0].end;for(let h=0;h<c;h++){const g=o[h];if(g===null)continue;const y=i[h];if(y.length===0)continue;if(y.start>p)break;for(;d.length>0&&d[d.length-1].endPos<=y.start;)a.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?a.produceFromScopes(d[d.length-1].scopes,y.start):a.produce(r,y.start),g.retokenizeCapturedWithRuleId){const x=g.getName(l,i),C=r.contentNameScopesList.pushAttributed(x,e),S=g.getContentName(l,i),A=C.pushAttributed(S,e),k=r.push(g.retokenizeCapturedWithRuleId,y.start,-1,!1,null,C,A),N=e.createOnigString(l.substring(0,y.end));k6(e,N,n&&y.start===0,y.start,k,a,!1,0),w6(N);continue}const v=g.getName(l,i);if(v!==null){const C=(d.length>0?d[d.length-1].scopes:r.contentNameScopesList).pushAttributed(v,e);d.push(new $Oe(C,y.end))}}for(;d.length>0;)a.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var $Oe=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function POe(e,t,n,r,a,o,i,l){return new jOe(e,t,n,r,a,o,i,l)}function VP(e,t,n,r,a){const o=ub(t,pb),i=C6.getCompiledRuleId(n,r,a.repository);for(const l of o)e.push({debugSelector:t,matcher:l.matcher,ruleId:i,grammar:a,priority:l.priority})}function pb(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(MOe(t[a],r))return n=a+1,!0;return!1})}function MOe(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var jOe=class{constructor(e,t,n,r,a,o,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new kOe(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=qP(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const c of Object.keys(a)){const d=ub(c,pb);for(const p of d)this._tokenTypeMatchers.push({matcher:p.matcher,type:a[c]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const a=r.injections;if(a)for(let i in a)VP(t,i,a[i],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(i=>{const l=this.getExternalGrammar(i);if(l){const c=l.injectionSelector;c&&VP(t,c,l,this,l)}})}return t.sort((a,o)=>a.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=qP(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=C6.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===nS.NULL){a=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),h=ad.set(0,d.languageId,d.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),g=this.getRule(this._rootId).getName(null,null);let y;g?y=xp.createRootAndLookUpScopeName(g,h,this):y=xp.createRoot("unknown",h),t=new nS(null,this._rootId,-1,-1,!1,null,y,y)}else a=!1,t.reset();e=e+` 1112`;const o=this.createOnigString(e),i=o.content.length,l=new BOe(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=k6(this,o,a,0,t,l,!0,r);return w6(o),{lineLength:i,lineTokens:l,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function qP(e,t){return e=rOe(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var xp=class ai{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=t?.scopePath??null;for(const o of n)a=Zx.push(a,o.scopeNames),r=new ai(r,a,o.encodedTokenAttributes);return r}static createRoot(t,n){return new ai(null,new Zx(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),o=new Zx(null,t),i=r.themeProvider.themeMatch(o),l=ai.mergeAttributes(n,a,i);return new ai(null,o,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return ai.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let a=-1,o=0,i=0;return r!==null&&(a=r.fontStyle,o=r.foregroundId,i=r.backgroundId),ad.set(t,n.languageId,n.tokenType,null,a,o,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return ai._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const o of r)a=ai._pushAttributed(a,o,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),o=t.scopePath.push(n),i=r.themeProvider.themeMatch(o),l=ai.mergeAttributes(t.tokenAttributes,a,i);return new ai(t,o,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},nS=class Ml{constructor(t,n,r,a,o,i,l,c){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=l,this.contentNameScopesList=c,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new Ml(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Ml._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?xp.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){Ml._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,o,i,l){return new Ml(this,t,n,r,a,o,i,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new Ml(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=xp.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new Ml(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,xp.fromExtension(r,n.contentNameScopesList))}},zOe=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):ub(n,pb).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>ub(n,pb).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},BOe=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,a=!1;if(this.balancedBracketSelectors?.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>
11120||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=e?.getScopeNames()??[];for(const i of this._tokenTypeOverrides)i.matcher(o)&&(r=ad.set(r,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(o))}if(a&&(r=ad.set(r,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,a=this._binaryTokens.length;r<a;r++)n[r]=this._binaryTokens[r];return n}},UOe=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,a){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,POe(e,o,t,n,r,a,this,this._onigLib))}return this._grammars.get(e)}},FOe=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new UOe(cb.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(cb.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new zOe(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,o){const i=new yOe(this._syncRegistry,t);for(;i.Q.length>0;)i.Q.map(l=>this._loadSingleGrammar(l.scopeName)),i.processQueue();return this._grammarForScopeName(t,n,r,a,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,o)}},rS=nS.NULL;const HOe=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Bh{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Bh.prototype.normal={};Bh.prototype.property={};Bh.prototype.space=void 0;function R6(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Bh(n,r,t)}function aS(e){return e.toLowerCase()}class Ra{constructor(t,n){this.attribute=n,this.property=t}}Ra.prototype.attribute="";Ra.prototype.booleanish=!1;Ra.prototype.boolean=!1;Ra.prototype.commaOrSpaceSeparated=!1;Ra.prototype.commaSeparated=!1;Ra.prototype.defined=!1;Ra.prototype.mustUseProperty=!1;Ra.prototype.number=!1;Ra.prototype.overloadedBoolean=!1;Ra.prototype.property="";Ra.prototype.spaceSeparated=!1;Ra.prototype.space=void 0;let GOe=0;const kt=xc(),ur=xc(),oS=xc(),ze=xc(),En=xc(),Yu=xc(),Ga=xc();function xc(){return 2**++GOe}const iS=Object.freeze(Object.defineProperty({__proto__:null,boolean:kt,booleanish:ur,commaOrSpaceSeparated:Ga,
vendor: 4,439 bytes, line 1112
1112commaSeparated:Yu,number:ze,overloadedBoolean:oS,spaceSeparated:En},Symbol.toStringTag,{value:"Module"})),Qx=Object.keys(iS);class fA extends Ra{constructor(t,n,r,a){let o=-1;if(super(t,n),YP(this,"space",a),typeof r=="number")for(;++o<Qx.length;){const i=Qx[o];YP(this,Qx[o],(r&iS[i])===iS[i])}}}fA.prototype.defined=!0;function YP(e,t,n){n&&(e[t]=n)}function Od(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new fA(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[aS(r)]=r,n[aS(o.attribute)]=r}return new Bh(t,n,e.space)}const O6=Od({properties:{ariaActiveDescendant:null,ariaAtomic:ur,ariaAutoComplete:null,ariaBusy:ur,ariaChecked:ur,ariaColCount:ze,ariaColIndex:ze,ariaColSpan:ze,ariaControls:En,ariaCurrent:null,ariaDescribedBy:En,ariaDetails:null,ariaDisabled:ur,ariaDropEffect:En,ariaErrorMessage:null,ariaExpanded:ur,ariaFlowTo:En,ariaGrabbed:ur,ariaHasPopup:null,ariaHidden:ur,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:En,ariaLevel:ze,ariaLive:null,ariaModal:ur,ariaMultiLine:ur,ariaMultiSelectable:ur,ariaOrientation:null,ariaOwns:En,ariaPlaceholder:null,ariaPosInSet:ze,ariaPressed:ur,ariaReadOnly:ur,ariaRelevant:null,ariaRequired:ur,ariaRoleDescription:En,ariaRowCount:ze,ariaRowIndex:ze,ariaRowSpan:ze,ariaSelected:ur,ariaSetSize:ze,ariaSort:null,ariaValueMax:ze,ariaValueMin:ze,ariaValueNow:ze,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function D6(e,t){return t in e?e[t]:t}function I6(e,t){return D6(e,t.toLowerCase())}const VOe=Od({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Yu,acceptCharset:En,accessKey:En,action:null,allow:null,allowFullScreen:kt,allowPaymentRequest:kt,allowUserMedia:kt,alt:null,as:null,async:kt,autoCapitalize:null,autoComplete:En,autoFocus:kt,autoPlay:kt,blocking:En,capture:null,charSet:null,checked:kt,cite:null,className:En,cols:ze,colSpan:null,content:null,contentEditable:ur,controls:kt,controlsList:En,coords:ze|Yu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:kt,defer:kt,dir:null,dirName:null,disabled:kt,download:oS,draggable:ur,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:kt,formTarget:null,headers:En,height:ze,hidden:oS,high:ze,href:null,hrefLang:null,htmlFor:En,httpEquiv:En,id:null,imageSizes:null,imageSrcSet:null,inert:kt,inputMode:null,integrity:null,is:null,isMap:kt,itemId:null,itemProp:En,itemRef:En,itemScope:kt,itemType:En,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:kt,low:ze,manifest:null,max:null,maxLength:ze,media:null,method:null,min:null,minLength:ze,multiple:kt,muted:kt,name:null,nonce:null,noModule:kt,noValidate:kt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:kt,optimum:ze,pattern:null,ping:En,placeholder:null,playsInl
1112ine:kt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:kt,referrerPolicy:null,rel:En,required:kt,reversed:kt,rows:ze,rowSpan:ze,sandbox:En,scope:null,scoped:kt,seamless:kt,selected:kt,shadowRootClonable:kt,shadowRootDelegatesFocus:kt,shadowRootMode:null,shape:null,size:ze,sizes:null,slot:null,span:ze,spellCheck:ur,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ze,step:null,style:null,tabIndex:ze,target:null,title:null,translate:null,type:null,typeMustMatch:kt,useMap:null,value:ur,width:ze,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:En,axis:null,background:null,bgColor:null,border:ze,borderColor:null,bottomMargin:ze,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:kt,declare:kt,event:null,face:null,frame:null,frameBorder:null,hSpace:ze,leftMargin:ze,link:null,longDesc:null,lowSrc:null,marginHeight:ze,marginWidth:ze,noResize:kt,noHref:kt,noShade:kt,noWrap:kt,object:null,profile:null,prompt:null,rev:null,rightMargin:ze,rules:null,scheme:null,scrolling:ur,standby:null,summary:null,text:null,topMargin:ze,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ze,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:kt,disableRemotePlayback:kt,prefix:null,property:null,results:ze,security:null,unselectable:null},space:"html",transform:I6}),qOe=Od({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
1112-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ga,accentHeight:ze,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ze,amplitude:ze,arabicForm:null,ascent:ze,attributeName:null,attributeType:null,azimuth:ze,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ze,by:null,calcMode:null,capHeight:ze,className:En,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ze,diffuseConstant:ze,direction:null,display:null,dur:null,divisor:ze,dominantBaseline:null,download:kt,dx:null,dy:null,edgeMode:null,editable:null,elevation:ze,enableBackground:null,end:null,event:null,exponent:ze,externalResourcesRequired:null,fill:null,fillOpacity:ze,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Yu,g2:Yu,glyphName:Yu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ze,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ze,horizOriginX:ze,horizOriginY:ze,id:null,ideographic:ze,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ze,k:ze,k1:ze,k2:ze,k3:ze,k4:ze,kernelMatrix:Ga,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ze,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ze,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 5,054 bytes, line 1112
1112Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ze,overlineThickness:ze,paintOrder:null,panose1:null,path:null,pathLength:ze,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:En,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ze,pointsAtY:ze,pointsAtZ:ze,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ga,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ga,rev:Ga,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ga,requiredFeatures:Ga,requiredFonts:Ga,requiredFormats:Ga,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ze,specularExponent:ze,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ze,strikethroughThickness:ze,string:null,stroke:null,strokeDashArray:Ga,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ze,strokeOpacity:ze,strokeWidth:null,style:null,surfaceScale:ze,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ga,tabIndex:ze,tableValues:null,target:null,targetX:ze,targetY:ze,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ga,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ze,underlineThickness:ze,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ze,values:null,vAlphabetic:ze,vMathematical:ze,vectorEffect:null,vHanging:ze,vIdeographic:ze,version:null,vertAdvY:ze,vertOriginX:ze,vertOriginY:ze,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ze,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:D6}),L6=Od({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),$6=Od({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:I6}),P6=Od({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),YOe=/[A-Z]/g,WP=/-[a-z]/g,WOe=/^data[-\w.:]+$/i;function ZOe(e,t){const n=aS(t);let r=t,a=Ra;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&WOe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(WP,QOe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!WP.test(o)){let i=o.replace(YOe,KOe);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}a=fA}return new a(r,t)}function KOe(e){return"-"+e.toLowerCase()}function QOe(e){return e.charAt(1).toUpperCase()}const XOe=R6([O6,VOe,L6,$6,P6],"html"),M6=R6([O6,qOe,L6,$6,P6],"svg"),ZP={}.hasOwnProperty;function JOe(e,t){const n=t||{};function r(a,...o){let i=r.invalid;const l=r.handlers;if(a&&ZP.call(a,e)){const c=String(a[e]);i=ZP.call(l,c)?l[c]:r.unknown}if(i)return i.call(this,a,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const eDe=/["&'<>`]/g,tDe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,nDe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,rDe=/[|\\{}()[\]^$+*?.]/g,KP=new WeakMap;function aDe(e,t){if(e=e.replace(t.subset?oDe(t.subset):eDe,r),t.subset||t.escapeOnly)return e;return e.replace(tDe,n).replace(nDe,r);function n(a,o,i){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,i.charCodeAt(o+2),t)}function r(a,o,i){return t.format(a.charCodeAt(0),i.charCodeAt(o+1),t)}}function oDe(e){let t=KP.get(e);return t||(t=iDe(e),KP.set(e,t)),t}function iDe(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(rDe,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const sDe=/[\dA-Fa-f]/;function lDe(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!sDe.test(String.fromCharCode(t))?r:r+";"}const cDe=/\d/;function uDe(e,t,n){const r="&#"+String(e);return n&&t&&!cDe.test(String.fromCharCode(t))?r:r+";"}const dDe=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslas
1112h","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Xx={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"Â¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"Â",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"Ã",Aacute:"Ã",Acirc:"Ã",Atilde:"Ã",Auml:"Ã",Aring:"Ã
",AElig:"Ã",Ccedil:"Ã",Egrave:"Ã",Eacute:"Ã",Ecirc:"Ã",Euml:"Ã",Igrave:"Ã",Iacute:"Ã",Icirc:"Ã",Iuml:"Ã",ETH:"Ã",Ntilde:"Ã",Ograve:"Ã",Oacute:"Ã",Ocirc:"Ã",Otilde:"Ã",Ouml:"Ã",times:"Ã",Oslash:"Ã",Ugrave:"Ã",Uacute:"Ã",Ucirc:"Ã",Uuml:"Ã",Yacute:"Ã",THORN:"Ã",szlig:"Ã",agrave:"à ",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"Ã¥",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"Ã",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"Æ",Alpha:"Î",Beta:"Î",Gamma:"Î",Delta:"Î",Epsilon:"Î",Zeta:"Î",Eta:"Î",Theta:"Î",Iota:"Î",Kappa:"Î",Lambda:"Î",Mu:"Î",Nu:"Î",Xi:"Î",Omicron:"Î",Pi:"Î ",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Î¥",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"Ï",rho:"Ï",sigmaf:"Ï",sigma:"Ï",tau:"Ï",upsilon:"Ï
",phi:"Ï",chi:"Ï",psi:"Ï",omega:"Ï",thetasym:"Ï",upsih:"Ï",piv:"Ï",bull:"â¢",hellip:"â¦",prime:"â²",Prime:"â³",oline:"â¾",frasl:"â",weierp:"â",image:"â",real:"â",trade:"â¢",alefsym:"âµ",larr:"â",uarr:"â",rarr:"â",darr:"â",harr:"â",crarr:"âµ",lArr:"â",uArr:"â",rArr:"â",dArr:"â",hArr:"â",forall:"â",part:"â",exist:"â",empty:"â
",nabla:"â",isin:"â",notin:"â",ni:"â",prod:"â",sum:"â",minus:"â",lowast:"â",radic:"â",prop:"â",infin:"â",ang:"â ",and:"â§",or:"â¨",cap:"â©",cup:"âª",int:"â«",there4:"â´",sim:"â¼",cong:"â
",asymp:"â",ne:"â ",equiv:"â¡",le:"â¤",ge:"â¥",sub:"â",sup:"â",nsub
vendor: 5,897 bytes, lines 1112-1114
1112:"â",sube:"â",supe:"â",oplus:"â",otimes:"â",perp:"â¥",sdot:"â ",lceil:"â",rceil:"â",lfloor:"â",rfloor:"â",lang:"â©",rang:"âª",loz:"â",spades:"â ",clubs:"â£",hearts:"â¥",diams:"â¦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Å",oelig:"Å",Scaron:"Å ",scaron:"Å¡",Yuml:"Ÿ",circ:"Ë",tilde:"Ë",ensp:"â",emsp:"â",thinsp:"â",zwnj:"â",zwj:"â",lrm:"â",rlm:"â",ndash:"â",mdash:"â",lsquo:"â",rsquo:"â",sbquo:"â",ldquo:"â",rdquo:"â",bdquo:"â",dagger:"â ",Dagger:"â¡",permil:"â°",lsaquo:"â¹",rsaquo:"âº",euro:"â¬"},fDe=["cent","copy","divide","gt","lt","not","para","times"],j6={}.hasOwnProperty,sS={};let Mg;for(Mg in Xx)j6.call(Xx,Mg)&&(sS[Xx[Mg]]=Mg);const pDe=/[^\dA-Za-z]/;function hDe(e,t,n,r){const a=String.fromCharCode(e);if(j6.call(sS,a)){const o=sS[a],i="&"+o;return n&&dDe.includes(o)&&!fDe.includes(o)&&(!r||t&&t!==61&&pDe.test(String.fromCharCode(t)))?i:i+";"}return""}function mDe(e,t,n){let r=lDe(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=hDe(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const o=uDe(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Wu(e,t){return aDe(e,Object.assign({format:mDe},t))}const gDe=/^>|^->|<!--|-->|--!>|<!-$/g,yDe=[">"],bDe=["<",">"];function vDe(e,t,n,r){return r.settings.bogusComments?"<?"+Wu(e.value,Object.assign({},r.settings.characterReferences,{subset:yDe}))+">":"<!--"+e.value.replace(gDe,a)+"-->";function a(o){return Wu(o,Object.assign({},r.settings.characterReferences,{subset:bDe}))}}function _De(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function QP(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function EDe(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function xDe(e){return e.join(" ").trim()}const wDe=/[ \t\n\f\r]/g;function pA(e){return typeof e=="object"?e.type==="text"?XP(e.value):!1:XP(e)}function XP(e){return e.replace(wDe,"")===""}const kr=B6(1),z6=B6(-1),TDe=[];function B6(e){return t;function t(n,r,a){const o=n?n.children:TDe;let i=(r||0)+e,l=o[i];if(!a)for(;l&&pA(l);)i+=e,l=o[i];return l}}const SDe={}.hasOwnProperty;function U6(e){return t;function t(n,r,a){return SDe.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const hA=U6({body:ADe,caption:Jx,colgroup:Jx,dd:ODe,dt:RDe,head:Jx,html:CDe,li:NDe,optgroup:DDe,option:IDe,p:kDe,rp:JP,rt:JP,tbody:$De,td:eM,tfoot:PDe,th:eM,thead:LDe,tr:MDe});function Jx(e,t,n){const r=kr(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&pA(r.value.charAt(0)))}function CDe(e,t,n){const r=kr(n,t);return!r||r.type!=="comment"}function ADe(e,t,n){const r=kr(n,t);return!r||r.type!=="comment"}function kDe(e,t,n){const r=kr(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function NDe(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&r.tagName==="li"}function RDe(e,t,n){const r=kr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function ODe(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function JP(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function DDe(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function IDe(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function LDe(e,t,n){const r=kr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function $De(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function PDe(e,t,n){return!kr(n,t)}function MDe(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function eM(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const jDe=U6({body:UDe,colgroup:FDe,head:BDe,html:zDe,tbody:HDe});function zDe(e){const t=kr(e,-1);return!t||t.type!=="comment"}function BDe(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function UDe(e){const t=kr(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&pA(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function FDe(e,t,n){const r=z6(n,t),a=kr(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&hA(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function HDe(e,t,n){const r=z6(n,t),a=kr(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&hA(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const jg={name:[[` 1113\f\r &/=>`.split(""),` 1114\f\r "&'/=>
vendor: 32,034 bytes, lines 1114-1121
1114\``.split("")],[`\0 1115\f\r "&'/<=>`.split(""),`\0 1116\f\r "&'/<=>\``.split("")]],unquoted:[[` 1117\f\r &>`.split(""),`\0 1118\f\r "&'<=>\``.split("")],[`\0 1119\f\r "&'<=>\``.split(""),`\0 1120\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function GDe(e,t,n,r){const a=r.schema,o=a.space==="svg"?!1:r.settings.omitOptionalTags;let i=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const l=[];let c;a.space==="html"&&e.tagName==="svg"&&(r.schema=M6);const d=VDe(r,e.properties),p=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,p&&(i=!1),(d||!o||!jDe(e,t,n))&&(l.push("<",e.tagName,d?" "+d:""),i&&(a.space==="svg"||r.settings.closeSelfClosing)&&(c=d.charAt(d.length-1),(!r.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(p),!i&&(!o||!hA(e,t,n))&&l.push("</"+e.tagName+">"),l.join("")}function VDe(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const o=qDe(e,a,t[a]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function qDe(e,t,n){const r=ZOe(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let i=e.quote,l;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const c=Wu(r.attribute,Object.assign({},e.settings.characterReferences,{subset:jg.name[a][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?EDe:xDe)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(l=Wu(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:jg.unquoted[a][o]}))),l!==n&&(e.settings.quoteSmart&&QP(n,i)>QP(n,e.alternative)&&(i=e.alternative),l=i+Wu(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?jg.single:jg.double)[a][o],attribute:!0}))+i),c+(l&&"="+l))}const YDe=["<","&"];function F6(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Wu(e.value,Object.assign({},r.settings.characterReferences,{subset:YDe}))}function WDe(e,t,n,r){return r.settings.allowDangerousHtml?e.value:F6(e,t,n,r)}function ZDe(e,t,n,r){return r.all(e)}const KDe=JOe("type",{invalid:QDe,unknown:XDe,handlers:{comment:vDe,doctype:_De,element:GDe,raw:WDe,root:ZDe,text:F6}});function QDe(e){throw new Error("Expected node, not `"+e+"`")}function XDe(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const JDe={},eIe={},tIe=[];function nIe(e,t){const n=t||JDe,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:rIe,all:aIe,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||HOe,characterReferences:n.characterReferences||eIe,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?M6:XOe,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function rIe(e,t,n){return KDe(e,t,n,this)}function aIe(e){const t=[],n=e&&e.children||tIe;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function hb(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[a]=o:a===r&&Object.assign(n,o);return n}function Zs(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function oIe(e){return Array.isArray(e)?e:[e]}async function H6(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function mA(e){return!e||["plaintext","txt","text","plain"].includes(e)}function iIe(e){return e==="ansi"||mA(e)}function gA(e){return e==="none"}function sIe(e){return gA(e)}function G6(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function Hv(e,t=!1){if(e.length===0)return[["",0]];const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let o=0;o<n.length;o+=2){const i=t?n[o]+(n[o+1]||""):n[o];a.push([i,r]),r+=n[o].length,r+=n[o+1]?.length||0}return a}function lIe(e){const t=Hv(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=a,i=0;for(const l of t){if(o<l.length)break;o-=l.length,i++}return{line:i,character:o}}function r(a,o){let i=0;for(let l=0;l<a;l++)i+=t[l].length;return i+=o,i}return{lines:t,indexToPos:n,posToIndex:r}}const yA="light-dark()",cIe=["color","background-color"];function uIe(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function dIe(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const o=n.filter(i=>a.offset<i&&i<a.offset+a.content.length).map(i=>i-a.offset).sort((i,l)=>i-l);return o.length?uIe(a,o):a})):e}function fIe(e,t,n,r,a="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(p=>mb(e.variants[p])),l=new Set(i.flatMap(p=>Object.keys(p))),c={},d=(p,h)=>{const g=h==="color"?"":h==="background-color"?"-bg":`-${h}`;return n+t[p]+(h==="color"?"":g)};return i.forEach((p,h)=>{for(const g of l){const y=p[g]||"inherit";if(h===0&&r&&cIe.includes(g))if(r===yA&&i.length>1){const v=t.findIndex(A=>A==="light"),x=t.findIndex(A=>A==="dark");if(v===-1||x===-1)throw new $r('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const C=i[v][g]||"inherit",S=i[x][g]||"inherit";c[g]=`light-dark(${C}, ${S})`,a==="css-vars"&&(c[d(h,g)]=y)}else c[g]=y;else a==="css-vars"&&(c[d(h,g)]=y)}}),o.htmlStyle=c,o}function mb(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&ta.Italic&&(t["font-style"]="italic"),e.fontStyle&ta.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&ta.Underline&&n.push("underline"),e.fontStyle&ta.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function lS(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const V6=new WeakMap;function Gv(e,t){V6.set(e,t)}function Wp(e){return V6.get(e)}class Dd{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Dd(Object.fromEntries(oIe(n).map(r=>[r,rS])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,a]=t;this.lang=r,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return pIe(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function pIe(e){const t=[],n=new Set;function r(a){if(n.has(a))return;n.add(a);const o=a?.nameScopesList?.scopeName;o&&t.push(o),a.parent&&r(a.parent)}return r(e),t}function hIe(e,t){if(!(e instanceof Dd))throw new $r("Invalid grammar state");return e.getInternalStack(t)}function mIe(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(i){if(typeof i=="number"){if(i<0||i>n.source.length)throw new $r(`Invalid decoration offset: ${i}. Code length: ${n.source.length}`);return{...a.indexToPos(i),offset:i}}else{const l=a.lines[i.line];if(l===void 0)throw new $r(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${a.lines.length}`);let c=i.character;if(c<0&&(c=l.length+c),c<0||c>l.length)throw new $r(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${l.length}`);return{...i,character:c,offset:a.posToIndex(i.line,c)}}};const a=lIe(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));gIe(o),e.set(n.meta,{decorations:o,converter:a,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const a=t(this).decorations.flatMap(i=>[i.start.offset,i.end.offset]);return dIe(n,a)},code(n){if(!this.options.decorations?.length)return;const r=t(this),a=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(a.length!==r.converter.lines.length)throw new $r(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(p,h,g,y){const v=a[p];let x="",C=-1,S=-1;if(h===0&&(C=0),g===0&&(S=0),g===Number.POSITIVE_INFINITY&&(S=v.children.length),C===-1||S===-1)for(let k=0;k<v.children.length;k++)x+=q6(v.children[k]),C===-1&&x.length===h&&(C=k+1),S===-1&&x.length===g&&(S=k+1);if(C===-1)throw new $r(`Failed to find start index for decoration ${JSON.stringify(y.start)}`);if(S===-1)throw new $r(`Failed to find end index for decoration ${JSON.stringify(y.end)}`);const A=v.children.slice(C,S);if(!y.alwaysWrap&&A.length===v.children.length)l(v,y,"line");else if(!y.alwaysWrap&&A.length===1&&A[0].type==="element")l(A[0],y,"token");else{const k={type:"element",tagName:"span",properties:{},children:A};l(k,y,"wrapper"),v.children.splice(C,A.length,k)}}function i(p,h){a[p]=l(a[p],h,"line")}function l(p,h,g){const y=h.properties||{},v=h.transform||(x=>x);return p.tagName=h.tagName||"span",p.properties={...p.properties,...y,class:p.properties.class},h.properties?.class&&G6(p,h.properties.class),p=v(p,g)||p,p}const c=[],d=r.decorations.sort((p,h)=>h.start.offset-p.start.offset||p.end.offset-h.end.offset);for(const p of d){const{start:h,end:g}=p;if(h.line===g.line)o(h.line,h.character,g.character,p);else if(h.line<g.line){o(h.line,h.character,Number.POSITIVE_INFINITY,p);for(let y=h.line+1;y<g.line;y++)c.unshift(()=>i(y,p));o(g.line,0,g.character,p)}}c.forEach(p=>p())}}}function gIe(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new $r(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],o=n.start.offset<=a.start.offset&&a.start.offset<n.end.offset,i=n.start.offset<a.end.offset&&a.end.offset<=n.end.offset,l=a.start.offset<=n.start.offset&&n.start.offset<a.end.offset,c=a.start.offset<n.end.offset&&n.end.offset<=a.end.offset;if(o||i||l||c){if(o&&i||l&&c||l&&n.start.offset===n.end.offset||i&&a.start.offset===a.end.offset)continue;throw new $r(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function q6(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(q6).join(""):""}const yIe=[mIe()];function gb(e){const t=bIe(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...yIe]}function bIe(e){const t=[],n=[],r=[];for(const a of e)switch(a.enforce){case"pre":t.push(a);break;case"post":n.push(a);break;default:r.push(a)}return{pre:t,post:n,normal:r}}var ql=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],ew={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function vIe(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function tM(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function _Ie(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)ew[r]&&t.push({type:"setDecoration",value:ew[r]});else if(r<=29){const a=ew[r-20];a&&(t.push({type:"resetDecoration",value:a}),a==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:ql[r-30]}});else if(r===38){const a=tM(e);a&&t.push({type:"setForegroundColor",value:a})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:ql[r-40]}});else if(r===48){const a=tM(e);a&&t.push({type:"setBackgroundColor",value:a})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:ql[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:ql[r-100+8]}})}return t}function EIe(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let o=0;do{const i=vIe(r,o),l=i.sequence?r.substring(o,i.startPosition):r.substring(o);if(l.length>0&&a.push({value:l,foreground:e,background:t,decorations:new Set(n)}),i.sequence){const c=_Ie(i.sequence);for(const d of c)d.type==="resetAll"?(e=null,t=null,n.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&n.delete(d.value);for(const d of c)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&n.add(d.value)}o=i.position}while(o<r.length);return a}}}var xIe={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function wIe(e=xIe){function t(l){return e[l]}function n(l){return`#${l.map(c=>Math.max(0,Math.min(c,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let d=0;d<ql.length;d++)r.push(t(ql[d]));let l=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let p=0;p<6;p++)for(let h=0;h<6;h++)r.push(n([l[d],l[p],l[h]]));let c=8;for(let d=0;d<24;d++,c+=10)r.push(n([c,c,c]));return r}function o(l){return a()[l]}function i(l){switch(l.type){case"named":return t(l.name);case"rgb":return n(l.rgb);case"table":return o(l.index)}}return{value:i}}const TIe={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function SIe(e,t,n){const r=hb(e,n),a=Hv(t),o=Object.fromEntries(ql.map(c=>{const d=`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`,p=e.colors?.[d];return[c,p||TIe[c]]})),i=wIe(o),l=EIe();return a.map(c=>l.parse(c[0]).map(d=>{let p,h;d.decorations.has("reverse")?(p=d.background?i.value(d.background):e.bg,h=d.foreground?i.value(d.foreground):e.fg):(p=d.foreground?i.value(d.foreground):e.fg,h=d.background?i.value(d.background):void 0),p=Zs(p,r),h=Zs(h,r),d.decorations.has("dim")&&(p=CIe(p));let g=ta.None;return d.decorations.has("bold")&&(g|=ta.Bold),d.decorations.has("italic")&&(g|=ta.Italic),d.decorations.has("underline")&&(g|=ta.Underline),d.decorations.has("strikethrough")&&(g|=ta.Strikethrough),{content:d.value,offset:c[1],color:p,bgColor:h,fontStyle:g}}))}function CIe(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const r=t[1];if(r.length===8){const a=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${a}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const a=r[0],o=r[1],i=r[2],l=r[3],c=Math.round(Number.parseInt(`${l}${l}`,16)/2).toString(16).padStart(2,"0");return`#${a}${a}${o}${o}${i}${i}${c}`}else if(r.length===3){const a=r[0],o=r[1],i=r[2];return`#${a}${a}${o}${o}${i}${i}80`}}}const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function bA(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n,a=e.resolveLangAlias(n.lang||"text");if(mA(a)||gA(r))return Hv(t).map(c=>[{content:c[0],offset:c[1]}]);const{theme:o,colorMap:i}=e.setTheme(r);if(a==="ansi")return SIe(o,t,n);const l=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==l.name)throw new $r(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(!n.grammarState.themes.includes(o.name))throw new $r(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return kIe(t,l,o,i,n)}function AIe(...e){if(e.length===2)return Wp(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=r;if(mA(a)||gA(o))throw new $r("Plain language does not have grammar state");if(a==="ansi")throw new $r("ANSI language does not have grammar state");const{theme:i,colorMap:l}=t.setTheme(o),c=t.getLanguage(a);return new Dd(vA(n,c,i,l,r).stateStack,c.name,i.name)}function kIe(e,t,n,r,a){const o=vA(e,t,n,r,a),i=new Dd(o.stateStack,t.name,n.name);return Gv(o.tokens,i),o.tokens}function vA(e,t,n,r,a){const o=hb(n,a),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:l=500}=a,c=Hv(e);let d=a.grammarState?hIe(a.grammarState,n.name)??rS:a.grammarContextCode!=null?vA(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:rS,p=[];const h=[];for(let g=0,y=c.length;g<y;g++){const[v,x]=c[g];if(v===""){p=[],h.push([]);continue}if(i>0&&v.length>=i){p=[],h.push([{content:v,offset:x,color:"",fontStyle:0}]);continue}let C,S,A;a.includeExplanation&&(C=t.tokenizeLine(v,d,l),S=C.tokens,A=0);const k=t.tokenizeLine2(v,d,l),N=k.tokens.length/2;for(let O=0;O<N;O++){const I=k.tokens[2*O],D=O+1<N?k.tokens[2*O+2]:v.length;if(I===D)continue;const U=k.tokens[2*O+1],J=Zs(r[ad.getForeground(U)],o),P=ad.getFontStyle(U),X={content:v.substring(I,D),offset:x+I,color:J,fontStyle:P};if(a.includeExplanation){const K=[];if(a.includeExplanation!=="scopeName")for(const ne of n.settings){let ae;switch(typeof ne.scope){case"string":ae=ne.scope.split(/,/).map(H=>H.trim());break;case"object":ae=ne.scope;break;default:continue}K.push({settings:ne,selectors:ae.map(H=>H.split(/ /))})}X.explanation=[];let Q=0;for(;I+Q<D;){const ne=S[A],ae=v.substring(ne.startIndex,ne.endIndex);Q+=ae.length,X.explanation.push({content:ae,scopes:a.includeExplanation==="scopeName"?NIe(ne.scopes):RIe(K,ne.scopes)}),A+=1}}p.push(X)}h.push(p),p=[],d=k.ruleStack}return{tokens:h,stateStack:d}}function NIe(e){return e.map(t=>({scopeName:t}))}function RIe(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];n[r]={scopeName:o,themeMatches:DIe(e,o,t.slice(0,r))}}return n}function nM(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function OIe(e,t,n){if(!nM(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)nM(e[r],n[a])&&(r-=1),a-=1;return r===-1}function DIe(e,t,n){const r=[];for(const{selectors:a,settings:o}of e)for(const i of a)if(OIe(i,t,n)){r.push(o);break}return r}function Y6(e,t,n){const r=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),a=r.map(c=>{const d=bA(e,t,{...n,theme:c.theme}),p=Wp(d),h=typeof c.theme=="string"?c.theme:c.theme.name;return{tokens:d,state:p,theme:h}}),o=IIe(...a.map(c=>c.tokens)),i=o[0].map((c,d)=>c.map((p,h)=>{const g={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(g.explanation=p.explanation),o.forEach((y,v)=>{const{content:x,explanation:C,offset:S,...A}=y[d][h];g.variants[r[v].color]=A}),g})),l=a[0].state?new Dd(Object.fromEntries(a.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),a[0].state.lang):void 0;return l&&Gv(i,l),i}function IIe(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(c=>c[r]),o=t.map(()=>[]);t.forEach((c,d)=>c.push(o[d]));const i=a.map(()=>0),l=a.map(c=>c[0]);for(;l.every(c=>c);){const c=Math.min(...l.map(d=>d.content.length));for(let d=0;d<n;d++){const p=l[d];p.content.length===c?(o[d].push(p),i[d]+=1,l[d]=a[d][i[d]]):(o[d].push({...p,content:p.content.slice(0,c)}),l[d]={...p,content:p.content.slice(c),offset:p.offset+c})}}}return t}function yb(e,t,n){let r,a,o,i,l,c;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:p="--shiki-",colorsRendering:h="css-vars"}=n,g=Object.entries(n.themes).filter(S=>S[1]).map(S=>({color:S[0],theme:S[1]})).sort((S,A)=>S.color===d?-1:A.color===d?1:0);if(g.length===0)throw new $r("`themes` option must not be empty");const y=Y6(e,t,n);if(c=Wp(y),d&&yA!==d&&!g.find(S=>S.color===d))throw new $r(`\`themes\` option must contain the defaultColor key \`${d}\``);const v=g.map(S=>e.getTheme(S.theme)),x=g.map(S=>S.color);o=y.map(S=>S.map(A=>fIe(A,x,p,d,h))),c&&Gv(o,c);const C=g.map(S=>hb(S.theme,n));a=rM(g,v,C,p,d,"fg",h),r=rM(g,v,C,p,d,"bg",h),i=`shiki-themes ${v.map(S=>S.name).join(" ")}`,l=d?void 0:[a,r].join(";")}else if("theme"in n){const d=hb(n.theme,n);o=bA(e,t,n);const p=e.getTheme(n.theme);r=Zs(p.bg,d),a=Zs(p.fg,d),i=p.name,c=Wp(o)}else throw new $r("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:r,themeName:i,rootStyle:l,grammarState:c}}function rM(e,t,n,r,a,o,i){return e.map((l,c)=>{const d=Zs(t[c][o],n[c])||"inherit",p=`${r+l.color}${o==="bg"?"-bg":""}:${d}`;if(c===0&&a){if(a===yA&&e.length>1){const h=e.findIndex(x=>x.color==="light"),g=e.findIndex(x=>x.color==="dark");if(h===-1||g===-1)throw new $r('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const y=Zs(t[h][o],n[h])||"inherit",v=Zs(t[g][o],n[g])||"inherit";return`light-dark(${y}, ${v});${p}`}return d}return i==="css-vars"?p:null}).filter(l=>!!l).join(";")}function bb(e,t,n,r={meta:{},options:n,codeToHast:(a,o)=>bb(e,a,o),codeToTokens:(a,o)=>yb(e,a,o)}){let a=t;for(const v of gb(n))a=v.preprocess?.call(r,a,n)||a;let{tokens:o,fg:i,bg:l,themeName:c,rootStyle:d,grammarState:p}=yb(e,a,n);const{mergeWhitespaces:h=!0,mergeSameStyleTokens:g=!1}=n;h===!0?o=$Ie(o):h==="never"&&(o=PIe(o)),g&&(o=MIe(o));const y={...r,get source(){return a}};for(const v of gb(n))o=v.tokens?.call(y,o)||o;return LIe(o,{...n,fg:i,bg:l,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??d},y,p)}function LIe(e,t,n,r=Wp(e)){const a=gb(t),o=[],i={type:"root",children:[]},{structure:l="classic",tabindex:c="0"}=t,d={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?d.style=t.rootStyle:d.style=`background-color:${t.bg};color:${t.fg}`),c!==!1&&c!=null&&(d.tabindex=c.toString());for(const[x,C]of Object.entries(t.meta||{}))x.startsWith("_")||(d[x]=C);let p={type:"element",tagName:"pre",properties:d,children:[],data:t.data},h={type:"element",tagName:"code",properties:{},children:o};const g=[],y={...n,structure:l,addClassToHast:G6,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return p},get code(){return h},get lines(){return g}};if(e.forEach((x,C)=>{C&&(l==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&o.push({type:"text",value:` 1121`}));let S={type:"element",tagName:"span",properties:{class:"line"},children:[]},A=0;for(const k of x){let N={type:"element",tagName:"span",properties:{...k.htmlAttrs},children:[{type:"text",value:k.content}]};const O=lS(k.htmlStyle||mb(k));O&&(N.properties.style=O);for(const I of a)N=I?.span?.call(y,N,C+1,A,S,k)||N;l==="inline"?i.children.push(N):l==="classic"&&S.children.push(N),A+=k.content.length}if(l==="classic"){for(const k of a)S=k?.line?.call(y,S,C+1)||S;g.push(S),o.push(S)}else l==="inline"&&g.push(S)}),l==="classic"){for(const x of a)h=x?.code?.call(y,h)||h;p.children.push(h);for(const x of a)p=x?.pre?.call(y,p)||p;i.children.push(p)}else if(l==="inline"){const x=[];let C={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const k of i.children)k.type==="element"&&k.tagName==="br"?(x.push(C),C={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(k.type==="element"||k.type==="text")&&C.children.push(k);x.push(C);let A={type:"element",tagName:"code",properties:{},children:x};for(const k of a)A=k?.code?.call(y,A)||A;i.children=[];for(let k=0;k<A.children.length;k++){k>0&&i.children.push({type:"element",tagName:"br",properties:{},children:[]});const N=A.children[k];N.type==="element"&&i.children.push(...N.children)}}let v=i;for(const x of a)v=x?.root?.call(y,v)||v;return r&&Gv(v,r),v}function $Ie(e){return e.map(t=>{const n=[];let r="",a;return t.forEach((o,i)=>{const c=!(o.fontStyle&&(o.fontStyle&ta.Underline||o.fontStyle&ta.Strikethrough));c&&o.content.match(/^\s+$/)&&t[i+1]?(a===void 0&&(a=o.offset),r+=o.content):r?(c?n.push({...o,offset:a,content:r+o.content}):n.push({content:r,offset:a},o),a=void 0,r=""):n.push(o)}),n})}function PIe(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,a,o,i]=r;if(!a&&!i)return n;const l=[{...n,offset:n.offset+a.length,content:o}];return a&&l.unshift({content:a,offset:n.offset}),i&&l.push({content:i,offset:n.offset+a.length+o.length}),l}))}function MIe(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const a=n[n.length-1],o=lS(a.htmlStyle||mb(a)),i=lS(r.htmlStyle||mb(r)),l=a.fontStyle&&(a.fontStyle&ta.Underline||a.fontStyle&ta.Strikethrough),c=r.fontStyle&&(r.fontStyle&ta.Underline||r.fontStyle&ta.Strikethrough);!l&&!c&&o===i?a.content+=r.content:n.push({...r})}return n})}const jIe=nIe;function zIe(e,t,n){const r={meta:{},options:n,codeToHast:(o,i)=>bb(e,o,i),codeToTokens:(o,i)=>yb(e,o,i)};let a=jIe(bb(e,t,n,r));for(const o of gb(n))a=o.postprocess?.call(r,a,n)||a;return a}const aM={light:"#333333",dark:"#bbbbbb"},oM={light:"#fffffe",dark:"#1e1e1e"},iM="__shiki_resolved";function _A(e){if(e?.[iM])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const l=t.settings?t.settings.find(c=>!c.name&&!c.scope):void 0;l?.settings?.foreground&&(r=l.settings.foreground),l?.settings?.background&&(n=l.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?aM.light:aM.dark),n||(n=t.type==="light"?oM.light:oM.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0;const o=new Map;function i(l){if(o.has(l))return o.get(l);a+=1;const c=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${c}`]?i(l):(o.set(l,c),c)}t.settings=t.settings.map(l=>{const c=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),d=l.settings?.background&&!l.settings.background.startsWith("#");if(!c&&!d)return l;const p={...l,settings:{...l.settings}};if(c){const h=i(l.settings.foreground);t.colorReplacements[h]=l.settings.foreground,p.settings.foreground=h}if(d){const h=i(l.settings.background);t.colorReplacements[h]=l.settings.background,p.settings.background=h}return p});for(const l of Object.keys(t.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!t.colors[l]?.startsWith("#")){const c=i(t.colors[l]);t.colorReplacements[c]=t.colors[l],t.colors[l]=c}return Object.defineProperty(t,iM,{enumerable:!1,writable:!1,value:!0}),t}async function W6(e){return Array.from(new Set((await Promise.all(e.filter(t=>!iIe(t)).map(async t=>await H6(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Z6(e){return(await Promise.all(e.map(async n=>sIe(n)?null:_A(await H6(n))))).filter(n=>!!n)}let BIe=3;function UIe(e,t=3){t>BIe||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class Lu extends Error{constructor(t){super(t),this.name="ShikiError"}}function K6(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Lu(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class FIe extends FOe{constructor(t,n,r,a={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=_A(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=cb.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=K6(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),r=n.filter(([a,o])=>!o);if(r.length){const a=n.filter(([o,i])=>i?(i.embeddedLanguages||i.embeddedLangs)?.some(c=>r.map(([d])=>d).includes(c)):!1).filter(o=>!r.includes(o));throw new Lu(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${a.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[a,o]of n)this._resolver.addLanguage(o);for(const[a,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const r of n)this._langGraph.set(r,this._langMap.get(r))}}class HIe{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)}
1121,n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let a=1;a<=n.length;a++){const o=n.slice(0,a).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let Kf=0;function GIe(e){Kf+=1,e.warnings!==!1&&Kf>=10&&Kf%10===0&&console.warn(`[Shiki] ${Kf} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Lu("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(_A),a=new HIe(e.engine,n),o=new FIe(a,r,n,e.langAlias);let i;function l(k){return K6(k,e.langAlias)}function c(k){S();const N=o.getGrammar(typeof k=="string"?k:k.name);if(!N)throw new Lu(`Language \`${k}\` not found, you may need to load it first`);return N}function d(k){if(k==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};S();const N=o.getTheme(k);if(!N)throw new Lu(`Theme \`${k}\` not found, you may need to load it first`);return N}function p(k){S();const N=d(k);i!==k&&(o.setTheme(N),i=k);const O=o.getColorMap();return{theme:N,colorMap:O}}function h(){return S(),o.getLoadedThemes()}function g(){return S(),o.getLoadedLanguages()}function y(...k){S(),o.loadLanguages(k.flat(1))}async function v(...k){return y(await W6(k))}function x(...k){S();for(const N of k.flat(1))o.loadTheme(N)}async function C(...k){return S(),x(await Z6(k))}function S(){if(t)throw new Lu("Shiki instance has been disposed")}function A(){t||(t=!0,o.dispose(),Kf-=1)}return{setTheme:p,getTheme:d,getLanguage:c,getLoadedThemes:h,getLoadedLanguages:g,resolveLangAlias:l,loadLanguage:v,loadLanguageSync:y,loadTheme:C,loadThemeSync:x,dispose:A,[Symbol.dispose]:A}}async function VIe(e){e.engine||UIe("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Z6(e.themes||[]),W6(e.langs||[]),e.engine]);return GIe({...e,themes:t,langs:n,engine:r})}async function qIe(e){const t=await VIe(e);return{getLastGrammarState:(...n)=>AIe(t,...n),codeToTokensBase:(n,r)=>bA(t,n,r),codeToTokensWithThemes:(n,r)=>Y6(t,n,r),codeToTokens:(n,r)=>yb(t,n,r),codeToHast:(n,r)=>bb(t,n,r),codeToHtml:(n,r)=>zIe(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function YIe(e){if(!e)return null;const t=e.match(/\{([\d,-]+)\}/);return t?t[1].split(",").flatMap(r=>{const a=r.split("-").map(o=>Number.parseInt(o,10));return a.length===1?[a[0]]:Array.from({length:a[1]-a[0]+1},(o,i)=>a[0]+i)}):null}const sM=Symbol("highlighted-lines");function WIe(e={}){const{className:t="highlighted",zeroIndexed:n=!1}=e;return{name:"@shikijs/transformers:meta-highlight",line(r,a){if(!this.options.meta?.__raw)return;const o=this.meta;o[sM]??=YIe(this.options.meta.__raw);const i=o[sM]??[],l=n?a-1:a;return i.includes(l)&&this.addClassToHast(r,t),r}}}function ZIe(e){return e?Array.from(e.matchAll(/\/((?:\\.|[^/])+)\//g)).map(n=>n[1].replace(/\\(.)/g,"$1")):[]}function KIe(e={}){const{className:t="highlighted-word"}=e;return{name:"@shikijs/transformers:meta-word-highlight",preprocess(n,r){if(!this.options.meta?.__raw)return;const a=ZIe(this.options.meta.__raw);r.decorations||=[];for(const o of a){const i=QIe(n,o);for(const l of i)r.decorations.push({start:l,end:l+o.length,properties:{class:t}})}}}}function QIe(e,t){const n=[];let r=0;for(;;){const a=e.indexOf(t,r);if(a===-1||a>=e.length||a<r)break;n.push(a),r=a+t.length}return n}function Id(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function XIe(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const EA=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),jr=String.raw;function Ld(e,t){if(e==null)throw new Error(t??"Value expected");return e}const Q6=jr`\[\^?`,X6=`c.? | C(?:-.?)?|${jr`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${jr`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${jr`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${jr`o\{[^\}]*\}?`}|${jr`\d{1,3}`}`,xA=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,zg=new RegExp(jr` 1122 \\ (?: 1123 ${X6} 1124 | [gk]<[^>]*>? 1125 | [gk]'[^']*'? 1126 | . 1127 ) 1128 | \( (?: 1129 \? (?: 1130 [:=!>({] 1131 | <[=!] 1132 | <[^>]*> 1133 | '[^']*' 1134 | ~\|? 1135 | #(?:[^)\\]|\\.?)* 1136 | [^:)]*[:)] 1137 )? 1138 | \*[^\)]*\)? 1139 )?
1140 | (?:${xA.source})+ 1141 | ${Q6} 1142 | . 1143`.replace(/\s+/g,""),"gsu"),tw=new RegExp(jr` 1144 \\ (?: 1145 ${X6} 1146 | . 1147 ) 1148 | \[:(?:\^?\p{Alpha}+|\^):\] 1149 | ${Q6} 1150 | && 1151 | . 1152`.replace(/\s+/g,""),"gsu");function JIe(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=bLe(n.flags),a=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX(){return a.at(-1)},numOpenGroups:0,popModX(){a.pop()},pushModX(h){a.push(h)},replaceCurrentModX(h){a[a.length-1]=h},singleline:n.rules.singleline};let i=[],l;for(zg.lastIndex=0;l=zg.exec(e);){const h=eLe(o,e,l[0],zg.lastIndex);h.tokens?i.push(...h.tokens):h.token&&i.push(h.token),h.lastIndex!==void 0&&(zg.lastIndex=h.lastIndex)}const c=[];let d=0;i.filter(h=>h.type==="GroupOpen").forEach(h=>{h.kind==="capturing"?h.number=++d:h.raw==="("&&c.push(h)}),d||c.forEach((h,g)=>{h.kind="capturing",h.number=g+1});const p=d||c.length;return{tokens:i.map(h=>h.type==="EscapedNumber"?_Le(h,p):h).flat(),flags:r}}function eLe(e,t,n,r){const[a,o]=n;if(n==="["||n==="[^"){const i=tLe(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(a==="\\"){if("AbBGyYzZ".includes(o))return{token:lM(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:dLe(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:eV(n)}}if(o==="K")return{token:tV("keep",n)};if(o==="N"||o==="R")return{token:Yl("newline",n,{negate:o==="N"})};if(o==="O")return{token:Yl("any",n)};if(o==="X")return{token:Yl("text_segment",n)};const i=J6(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(a==="("){if(o==="*")return{token:mLe(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:hLe(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:Cu("group",n)};if(n==="(?>")return{token:Cu("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Cu(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Cu("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Cu("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:lLe(n)}}if(e.getCurrentModX()){if(n==="#"){const i=t.indexOf(` 1153`,r);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(n)){const i=/\s+/y;return i.lastIndex=r,{lastIndex:i.exec(t)?i.lastIndex:r}}}if(n===".")return{token:Yl("dot",n)};if(n==="^"||n==="$"){const i=e.singleline?{"^":jr`\A`,$:jr`\Z`}[n]:n;return{token:lM(i,n)}}return n==="|"?{token:rLe(n)}:xA.test(n)?{tokens:ELe(n)}:{token:Qi(Id(n),n)}}function tLe(e,t,n){const r=[cM(t[1]==="^",t)];let a=1,o;for(tw.lastIndex=n;o=tw.exec(e);){const i=o[0];if(i[0]==="["&&i[1]!==":")a++,r.push(cM(i[1]==="^",i));else if(i==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(Qi(93,i));else if(a--,r.push(aLe(i)),!a)break}else{const l=nLe(i);Array.isArray(l)?r.push(...l):r.push(l)}}return{tokens:r,lastIndex:tw.lastIndex||e.length}}function nLe(e){if(e[0]==="\\")return J6(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!EA.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return Yl("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?oLe(e):e==="&&"?iLe(e):Qi(Id(e),e)}function J6(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return pLe(e);if("dDhHsSwW".includes(n))return gLe(e);if(e.startsWith(jr`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);
vendor: 4,415 bytes, line 1153
1153if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return yLe(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{const r=e.split(/\\x/).slice(1).map(i=>parseInt(i,16)),a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),o=new TextEncoder;return[...a].map(i=>{const l=[...o.encode(i)].map(c=>`\\x${c.toString(16)}`).join("");return Qi(Id(i),l)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return Qi(vLe(e),e);if(uM.has(n))return Qi(uM.get(n),e);if(/\d/.test(n))return sLe(t,e);if(e==="\\")throw new Error(jr`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Qi(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function rLe(e){return{type:"Alternator",raw:e}}function lM(e,t){return{type:"Assertion",kind:e,raw:t}}function eV(e){return{type:"Backreference",raw:e}}function Qi(e,t){return{type:"Character",value:e,raw:t}}function aLe(e){return{type:"CharacterClassClose",raw:e}}function oLe(e){return{type:"CharacterClassHyphen",raw:e}}function iLe(e){return{type:"CharacterClassIntersector",raw:e}}function cM(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function Yl(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function tV(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Ld(n.flags),raw:t}}function sLe(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function lLe(e){return{type:"GroupClose",raw:e}}function Cu(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function cLe(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function uLe(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function dLe(e){return{type:"Subroutine",raw:e}}const fLe=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),uM=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function pLe(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return Qi(Id(t.toUpperCase())-64,e)}function hLe(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??="";const a=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=fM(n),i=fM(r),l={};if(o&&(l.enable=o),i&&(l.disable=i),e.endsWith(")"))return t.replaceCurrentModX(a),tV("flags",e,{flags:l});if(e.endsWith(":"))return t.pushModX(a),t.numOpenGroups++,Cu("group",e,{...(o||i)&&{flags:l}});throw new Error(`Unexpected flag modifier "${e}"`)}function mLe(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:r,args:a}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const o=a?a.split(",").filter(p=>p!=="").map(p=>/^[+-]?\d+$/.test(p)?+p:p):[],[i,l,c]=o,d=fLe.has(n)?n.toLowerCase():"custom";switch(d){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof i=="string")throw new Error(`Named callout argument must be a number "${i}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(o.length===2&&(typeof l=="number"||!/^[<>X]$/.test(l)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${l}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${i}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(typeof l=="number"||!/^(?:[<>!=]=|[<>])$/.test(l))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${l}"`);
vendor: 4,000 bytes, line 1153
1153if(typeof c=="string"&&!/^[A-Za-z_]\w*$/.test(c))throw new Error(`Named callout argument three must be a tag or number "${c}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${d}"`)}return cLe(d,r??null,a?.split(",")??null,e)}function dM(e){let t=null,n,r;if(e[0]==="{"){const{minStr:a,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,i=1e5;if(+a>i||o&&+o>i)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+a,r=o===void 0?+a:o===""?1/0:+o,n>r&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=e[0]==="+"?1:0,r=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return uLe(t,n,r,e)}function gLe(e){const t=e[1].toLowerCase();return Yl({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function yLe(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return Yl("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function fM(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function bLe(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){const r=e[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(e.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[n+2]==="g"?"grapheme":"word",n+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return t}function vLe(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function _Le(e,t){const{raw:n,inCharClass:r}=e,a=n.slice(1);if(!r&&(a!=="0"&&a.length===1||a[0]!=="0"&&+a<=t))return[eV(n)];const o=[],i=a.match(/^[0-7]+|\d/g);for(let l=0;l<i.length;l++){const c=i[l];let d;if(l===0&&c!=="8"&&c!=="9"){if(d=parseInt(c,8),d>127)throw new Error(jr`Octal encoded byte above 177 unsupported "${n}"`)}else d=Id(c);o.push(Qi(d,(l===0?"\\":"")+c))}return o}function ELe(e){const t=[],n=new RegExp(xA,"gy");let r;for(;r=n.exec(e);){const a=r[0];if(a[0]==="{"){const o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(a);if(o){const{min:i,max:l}=o.groups;if(+i>+l&&a.endsWith("?")){n.lastIndex--,t.push(dM(a.slice(0,-1)));continue}}}t.push(dM(a))}return t}function nV(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(r=>t[r]===n[r])}function xLe(e){return wLe.has(e.type)}const wLe=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function rV(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=JIe(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),a=(g,y)=>{const v=r.tokens[o.nextIndex];switch(o.parent=g,o.nextIndex++,v.type){case"Alternator":return sc();case"Assertion":return TLe(v);case"Backreference":return SLe(v,o);case"Character":return Vv(v.value,{useLastValid:!!y.isCheckingRangeEnd});case"CharacterClassHyphen":return CLe(v,o,y);case"CharacterClassOpen":return ALe(v,o,y);case"CharacterSet":return kLe(v,o);case"Directive":return LLe(v.kind,{flags:v.flags});case"GroupOpen":return NLe(v,o,y);case"NamedCallout":return PLe(v.kind,v.tag,v.arguments);case"Quantifier":return RLe(v,o);
vendor: 2,018 bytes, line 1153
1153case"Subroutine":return OLe(v,o);default:throw new Error(`Unexpected token type "${v.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:a},i=jLe($Le(r.flags));let l=i.body[0];for(;o.nextIndex<r.tokens.length;){const g=a(l,{});g.type==="Alternative"?(i.body.push(g),l=g):l.body.push(g)}const{capturingGroups:c,hasNumberedRef:d,namedGroupsByName:p,subroutines:h}=o;if(d&&p.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:g}of h)if(typeof g=="number"){if(g>c.length)throw new Error("Subroutine uses a group number that's not defined");g&&(c[g-1].isSubroutined=!0)}else if(p.has(g)){if(p.get(g).length>1)throw new Error(jr`Subroutine uses a duplicate group name "\g<${g}>"`);p.get(g)[0].isSubroutined=!0}else throw new Error(jr`Subroutine uses a group name that's not defined "\g<${g}>"`);return i}function TLe({kind:e}){return cS(Ld({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===jr`\B`||e===jr`\Y`})}function SLe({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),a=(o,i=!1)=>{const l=t.capturingGroups.length;let c=!1;if(o>l)if(t.skipBackrefValidation)c=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,uS(i?l+1-o:o,{orphan:c})};if(n){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(o)return a(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${e}"`);
vendor: 18,522 bytes, lines 1153-1250
1153if(!t.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${e}"`);return uS(r)}return a(+r)}function CLe(e,t,n){const{tokens:r,walk:a}=t,o=t.parent,i=o.body.at(-1),l=r[t.nextIndex];if(!n.isCheckingRangeEnd&&i&&i.type!=="CharacterClass"&&i.type!=="CharacterClassRange"&&l&&l.type!=="CharacterClassOpen"&&l.type!=="CharacterClassClose"&&l.type!=="CharacterClassIntersector"){const c=a(o,{...n,isCheckingRangeEnd:!0});if(i.type==="Character"&&c.type==="Character")return o.body.pop(),ILe(i,c);throw new Error("Invalid character class range")}return Vv(Id("-"))}function ALe({negate:e},t,n){const{tokens:r,walk:a}=t,o=r[t.nextIndex],i=[fy()];let l=mM(o);for(;l.type!=="CharacterClassClose";){if(l.type==="CharacterClassIntersector")i.push(fy()),t.nextIndex++;else{const d=i.at(-1);d.body.push(a(d,n))}l=mM(r[t.nextIndex],o)}const c=fy({negate:e});return i.length===1?c.body=i[0].body:(c.kind="intersection",c.body=i.map(d=>d.body.length===1?d.body[0]:d)),t.nextIndex++,c}function kLe({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:a,skipPropertyNameValidation:o,unicodePropertyMap:i}=r;if(e==="property"){const l=qv(n);if(EA.has(l)&&!i?.has(l))e="posix",n=l;else return Au(n,{negate:t,normalizeUnknownPropertyNames:a,skipPropertyNameValidation:o,unicodePropertyMap:i})}return e==="posix"?MLe(n,{negate:t}):dS(e,{negate:t})}function NLe(e,t,n){const{tokens:r,capturingGroups:a,namedGroupsByName:o,skipLookbehindValidation:i,walk:l}=t,c=zLe(e),d=c.type==="AbsenceFunction",p=hM(c),h=p&&c.negate;if(c.type==="CapturingGroup"&&(a.push(c),c.name&&XIe(o,c.name,[]).push(c)),d&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let g=gM(r[t.nextIndex]);for(;g.type!=="GroupClose";){if(g.type==="Alternator")c.body.push(sc()),t.nextIndex++;else{const y=c.body.at(-1),v=l(y,{...n,isInAbsenceFunction:n.isInAbsenceFunction||d,isInLookbehind:n.isInLookbehind||p,isInNegLookbehind:n.isInNegLookbehind||h});if(y.body.push(v),(p||n.isInLookbehind)&&!i){const x="Lookbehind includes a pattern not allowed by Oniguruma";if(h||n.isInNegLookbehind){if(pM(v)||v.type==="CapturingGroup")throw new Error(x)}else if(pM(v)||hM(v)&&v.negate)throw new Error(x)}}g=gM(r[t.nextIndex])}return t.nextIndex++,c}function RLe({kind:e,min:t,max:n},r){const a=r.parent,o=a.body.at(-1);if(!o||!xLe(o))throw new Error("Quantifier requires a repeatable token");const i=oV(e,t,n,o);return a.body.pop(),i}function OLe({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let a=e.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(a);if(o){const l=+o.groups.num,c=n.length;if(t.hasNumberedRef=!0,a={"":l,"+":c+l,"-":c+1-l}[o.groups.sign],a<1)throw new Error("Invalid subroutine number")}else a==="0"&&(a=0);const i=iV(a);return r.push(i),i}function DLe(e,t){return{type:"AbsenceFunction",kind:e,body:Uh(t?.body)}}function sc(e){return{type:"Alternative",body:sV(e?.body)}}function cS(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!t?.negate),n}function uS(e,t){const n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function aV(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!BLe(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:Uh(t?.body)}}function Vv(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:e}}function fy(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:sV(e?.body)}}function ILe(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function dS(e,t){const n=!!t?.negate,r={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(r.negate=n),(e==="text_segment"||e==="newline"&&!n)&&(r.variableLength=!0),r}function LLe(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Ld(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function $Le(e){return{type:"Flags",...e}}function zo(e){const t=e?.atomic,n=e?.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:Uh(e?.body)}}function zl(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Uh(e?.body)}}function PLe(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function MLe(e,t){const n=!!t?.negate;if(!EA.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function oV(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function jLe(e,t){return{type:"Regex",body:Uh(t?.body),flags:e}}function iV(e){return{type:"Subroutine",ref:e}}function Au(e,t){const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=n.unicodePropertyMap?.get(qv(e));if(!r){if(n.normalizeUnknownPropertyNames)r=ULe(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(jr`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function zLe({flags:e,kind:t,name:n,negate:r,number:a}){switch(t){case"absence_repeater":return DLe("repeater");case"atomic":return zo({atomic:!0});case"capturing":return aV(a,{name:n});case"group":return zo({flags:e});case"lookahead":case"lookbehind":return zl({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function Uh(e){if(e===void 0)e=[sc()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function sV(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function pM(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function hM(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function BLe(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function ULe(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function qv(e){return e.replace(/[- _]+/g,"").toLowerCase()}function mM(e,t){return Ld(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function gM(e){return Ld(e,"Unclosed group")}function wp(e,t,n=null){function r(o,i){for(let l=0;l<o.length;l++){const c=a(o[l],i,l,o);l=Math.max(-1,l+c)}}function a(o,i=null,l=null,c=null){let d=0,p=!1;const h={node:o,parent:i,key:l,container:c,root:e,remove(){Bg(c).splice(Math.max(0,gu(l)+d),1),d--,p=!0},removeAllNextSiblings(){return Bg(c).splice(gu(l)+1)},removeAllPrevSiblings(){const S=gu(l)+d;return d-=S,Bg(c).splice(0,Math.max(0,S))},replaceWith(S,A={}){const k=!!A.traverse;c?c[Math.max(0,gu(l)+d)]=S:Ld(i,"Can't replace root node")[l]=S,k&&a(S,i,l,c),p=!0},replaceWithMultiple(S,A={}){const k=!!A.traverse;if(Bg(c).splice(Math.max(0,gu(l)+d),1,...S),d+=S.length-1,k){let N=0;for(let O=0;O<S.length;O++)N+=a(S[O],i,gu(l)+O+N,c)}p=!0},skip(){p=!0}},{type:g}=o,y=t["*"],v=t[g],x=typeof y=="function"?y:y?.enter,C=typeof v=="function"?v:v?.enter;if(x?.(h,n),C?.(h,n),!p)switch(g){case"AbsenceFunction":case"CapturingGroup":case"Group":r(o.body,o);break;case"Alternative":case"CharacterClass":r(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":a(o.min,o,"min"),a(o.max,o,"max");break;case"LookaroundAssertion":r(o.body,o);break;case"Quantifier":a(o.body,o,"body");break;case"Regex":r(o.body,o),a(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${g}"`)}return v?.exit?.(h,n),y?.exit?.(h,n),d}return a(e),e}function Bg(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function gu(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const FLe=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function HLe(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function GLe(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const To=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function wA(e,t,n,r){const a=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let i=0,l="";for(const c of e.matchAll(a)){const{0:d,groups:{$skip:p}}=c;if(!p&&(!r||r===To.DEFAULT==!i)){n instanceof Function?l+=n(c,{context:i?To.CHAR_CLASS:To.DEFAULT,negated:o[o.length-1]}):l+=n;continue}d[0]==="["?(i++,o.push(d[1]==="^")):d==="]"&&i&&(i--,o.pop()),l+=d}return l}function lV(e,t,n,r){wA(e,t,n,r)}function VLe(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const a=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=n;let o=0,i;for(;i=a.exec(e);){const{0:l,groups:{$skip:c}}=i;if(!c&&(!r||r===To.DEFAULT==!o))return i;l==="["?o++:l==="]"&&o&&o--,a.lastIndex==i.index&&a.lastIndex++}return null}function Ug(e,t,n){return!!VLe(e,t,0,n)}function qLe(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,a=0,o=1,i;for(;i=n.exec(e);){const[l]=i;if(l==="[")a++;else if(a)l==="]"&&a--;else if(l==="(")o++;else if(l===")"&&(o--,!o)){r=i.index;break}}return e.slice(t,r)}const yM=new RegExp(String.raw`(?<noncapturingStart>${FLe})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function YLe(e,t){const n=t?.hiddenCaptures??[];let r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const a="(?>",o="(?:(?=(",i=[0],l=[];let c=0,d=0,p=NaN,h;do{h=!1;let g=0,y=0,v=!1,x;for(yM.lastIndex=Number.isNaN(p)?0:p+o.length;x=yM.exec(e);){const{0:C,index:S,groups:{capturingStart:A,noncapturingStart:k}}=x;if(C==="[")g++;else if(g)C==="]"&&g--;else if(C===a&&!v)p=S,v=!0;else if(v&&k)y++;else if(A)v?y++:(c++,i.push(c+d));else if(C===")"&&v){if(!y){d++;const N=c+d;if(e=`${e.slice(0,p)}${o}${e.slice(p+a.length,S)}))<$$${N}>)${e.slice(S+1)}`,h=!0,l.push(N),HLe(n,N),r.size){const O=new Map;r.forEach((I,D)=>{O.set(D>=N?D+1:D,I.map(U=>U>=N?U+1:U))}),r=O}break}y--}}}while(h);return n.push(...l),e=wA(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:g,groups:{backrefNum:y,wrappedBackrefNum:v}})=>{if(y){const x=+y;if(x>i.length-1)throw new Error(`Backref "${g}" greater than number of captures`);return`\\${i[x]}`}return`\\${v}`},To.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const cV=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,nw=new RegExp(String.raw` 1154\\(?: \d+ 1155 | c[A-Za-z] 1156 | [gk]<[^>]+> 1157 | [pPu]\{[^\}]+\} 1158 | u[A-Fa-f\d]{4} 1159 | x[A-Fa-f\d]{2} 1160 ) 1161| \((?: \? (?: [:=!>] 1162 | <(?:[=!]|[^>]+>) 1163 | [A-Za-z\-]+: 1164 | \(DEFINE\) 1165 ))? 1166| (?<qBase>${cV})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 1167| \\?. 1168`.replace(/\s+/g,""),"gsu");function WLe(e){if(!new RegExp(`${cV}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,a="",o=0,i;for(nw.lastIndex=0;i=nw.exec(e);){const{0:l,index:c,groups:{qBase:d,qMod:p,invalidQ:h}}=i;if(l==="[")o||(r=c),o++;else if(l==="]")o?o--:r=null;else if(!o)if(p==="+"&&a&&!a.startsWith("(")){if(h)throw new Error(`Invalid quantifier "${l}"`);let g=-1;if(/^\{\d+\}$/.test(d))e=GLe(e,c+d.length,p,"");else{if(a===")"||a==="]"){const y=a===")"?n:r;if(y===null)throw new Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,y)}(?>${e.slice(y,c)}${d})${e.slice(c+l.length)}`}else e=`${e.slice(0,c-a.length)}(?>${a}${d})${e.slice(c+l.length)}`;g+=4}nw.lastIndex+=g}else l[0]==="("?t.push(c):l===")"&&(n=t.length?t.pop():null);a=l}return{pattern:e}}const xo=String.raw,ZLe=xo`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,fS=xo`\(\?R=(?<rDepth>[^\)]+)\)|${ZLe}`,Yv=xo`\(\?<(?![=!])(?<captureName>[^>]+)>`,uV=xo`${Yv}|(?<unnamed>\()(?!\?)`,$l=new RegExp(xo`${Yv}|${fS}|\(\?|\\?.`,"gsu"),rw="Cannot use multiple overlapping recursions";function KLe(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let a=t?.captureTransfers??new Map;if(!new RegExp(fS,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:n};if(r==="plugin"&&Ug(e,xo`\(\?\(DEFINE\)`,To.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],i=Ug(e,xo`\\[1-9]`,To.DEFAULT),l=new Map,c=[];let d=!1,p=0,h=0,g;for($l.lastIndex=0;g=$l.exec(e);){const{0:y,groups:{captureName:v,rDepth:x,gRNameOrNum:C,gRDepth:S}}=g;if(y==="[")p++;else if(p)y==="]"&&p--;else if(x){if(bM(x),d)throw new Error(rw);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const A=e.slice(0,g.index),k=e.slice($l.lastIndex);if(Ug(k,fS,To.DEFAULT))throw new Error(rw);const N=+x-1;e=vM(A,k,N,!1,n,o,h),a=EM(a,A,N,o.length,0,h);break}else if(C){bM(S);let A=!1;for(const K of c)if(K.name===C||K.num===+C){if(A=!0,K.hasRecursedWithin)throw new Error(rw);break}if(!A)throw new Error(xo`Recursive \g cannot be used outside the referenced group "${r==="external"?C:xo`\g<${C}&R=${S}>`}"`);const k=l.get(C),N=qLe(e,k);if(i&&Ug(N,xo`${Yv}|\((?!\?)`,To.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const O=e.slice(k,g.index),I=N.slice(O.length+y.length),D=o.length,U=+S-1,J=vM(O,I,U,!0,n,o,h);a=EM(a,O,U,o.length-D,D,h);const P=e.slice(0,k),X=e.slice(k+N.length);e=`${P}${J}${X}`,$l.lastIndex+=J.length-y.length-O.length-I.length,c.forEach(K=>K.hasRecursedWithin=!0),d=!0}else if(v)h++,l.set(String(h),$l.lastIndex),l.set(v,$l.lastIndex),c.push({num:h,name:v});else if(y[0]==="("){const A=y==="(";A&&(h++,l.set(String(h),$l.lastIndex)),c.push(A?{num:h}:{})}else y===")"&&c.pop()}return n.push(...o),{pattern:e,captureTransfers:a,hiddenCaptures:n}}function bM(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function vM(e,t,n,r,a,o,i){const l=new Set;r&&lV(e+t,Yv,({groups:{captureName:d}})=>{l.add(d)},To.DEFAULT);const c=[n,r?l:null,a,o,i];return`${e}${_M(`(?:${e}`,"forward",...c)}(?:)${_M(`${t})`,"backward",...c)}${t}`}function _M(e,t,n,r,a,o,i){const c=p=>t==="forward"?p+2:n-p+2-1;let d="";for(let p=0;p<n;p++){const h=c(p);d+=wA(e,xo`${uV}|\\k<(?<backref>[^>]+)>`,({0:g,groups:{captureName:y,unnamed:v,backref:x}})=>{if(x&&r&&!r.has(x))return g;const C=`_$${h}`;if(v||y){const S=i+o.length+1;return o.push(S),QLe(a,S),v?g:`(?<${y}${C}>`}return xo`\k<${x}${C}>`},To.DEFAULT)}return d}function QLe(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function EM(e,t,n,r,a,o){if(e.size&&r){let i=0;lV(t,uV,()=>i++,To.DEFAULT);const l=o-i+a,c=new Map;return e.forEach((d,p)=>{const h=(r-i*n)/n,g=i*n,y=p>l+i?p+r:p,v=[];for(const x of d)if(x<=l)v.push(x);else if(x>l+i+h)v.push(x+r);else if(x<=l+i)for(let C=0;C<=n;C++)v.push(x+i*C);else for(let C=0;C<=n;C++)v.push(x+g+h*C);c.set(y,v)}),c}return e}var Tr=String.fromCodePoint,Et=String.raw,es={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("[[]]","v")}catch{return!1}return!0})()};es.bugFlagVLiteralHyphenIsRange=es.unicodeSets?(()=>{try{new RegExp(Et`[\d\-a]`,"v")}catch{return!0}return!1})():!1;es.bugNestedClassIgnoresNegation=es.unicodeSets&&new RegExp("[[^a]]","v").test("a");function vb(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function Zp(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function pS(e,t){return xM[e]>=xM[t]}function XLe(e,t){if(e==null)throw new Error(t??"Value expected");return e}var xM={ES2025:2025,ES2024:2024,ES2018:2018},JLe={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function dV(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!JLe[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=es.flagGroups?"ES2025":es.unicodeSets?"ES2024":"ES2018"),t}var e$e="[ -\r ]",t$e=new Set([Tr(304),Tr(305)]),Fi=Et`[\p{L}\p{M}\p{N}\p{Pc}]`;function fV(e){if(t$e.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),a=a$e.get(n),o=n$e.get(n),i=r$e.get(n);return[...r].length===1&&t.add(r),i&&t.add(i),a&&t.add(a),t.add(n),o&&t.add(o),[...t]}var TA=new Map(`C Other 1169Cc Control cntrl 1170Cf Format 1171Cn Unassigned 1172Co Private_Use 1173Cs Surrogate 1174L Letter 1175LC Cased_Letter 1176Ll Lowercase_Letter 1177Lm Modifier_Letter 1178Lo Other_Letter 1179Lt Titlecase_Letter 1180Lu Uppercase_Letter 1181M Mark Combining_Mark 1182Mc Spacing_Mark 1183Me Enclosing_Mark 1184Mn Nonspacing_Mark 1185N Number 1186Nd Decimal_Number digit 1187Nl Letter_Number 1188No Other_Number 1189P Punctuation punct 1190Pc Connector_Punctuation 1191Pd Dash_Punctuation 1192Pe Close_Punctuation 1193Pf Final_Punctuation 1194Pi Initial_Punctuation 1195Po Other_Punctuation 1196Ps Open_Punctuation 1197S Symbol 1198Sc Currency_Symbol 1199Sk Modifier_Symbol 1200Sm Math_Symbol 1201So Other_Symbol 1202Z Separator 1203Zl Line_Separator 1204Zp Paragraph_Separator 1205Zs Space_Separator 1206ASCII 1207ASCII_Hex_Digit AHex 1208Alphabetic Alpha 1209Any 1210Assigned 1211Bidi_Control Bidi_C 1212Bidi_Mirrored Bidi_M 1213Case_Ignorable CI 1214Cased 1215Changes_When_Casefolded CWCF 1216Changes_When_Casemapped CWCM 1217Changes_When_Lowercased CWL 1218Changes_When_NFKC_Casefolded CWKCF 1219Changes_When_Titlecased CWT 1220Changes_When_Uppercased CWU 1221Dash 1222Default_Ignorable_Code_Point DI 1223Deprecated Dep 1224Diacritic Dia 1225Emoji 1226Emoji_Component EComp 1227Emoji_Modifier EMod 1228Emoji_Modifier_Base EBase 1229Emoji_Presentation EPres 1230Extended_Pictographic ExtPict 1231Extender Ext 1232Grapheme_Base Gr_Base 1233Grapheme_Extend Gr_Ext 1234Hex_Digit Hex 1235IDS_Binary_Operator IDSB 1236IDS_Trinary_Operator IDST 1237ID_Continue IDC 1238ID_Start IDS 1239Ideographic Ideo 1240Join_Control Join_C 1241Logical_Order_Exception LOE 1242Lowercase Lower 1243Math 1244Noncharacter_Code_Point NChar 1245Pattern_Syntax Pat_Syn 1246Pattern_White_Space Pat_WS 1247Quotation_Mark QMark 1248Radical 1249Regional_Indicator RI 1250Sentence_Terminal STerm
1251Soft_Dotted SD 1252Terminal_Punctuation Term 1253Unified_Ideograph UIdeo 1254Uppercase Upper 1255Variation_Selector VS 1256White_Space space 1257XID_Continue XIDC 1258XID_Start XIDS`.split(/\s/).map(e=>[qv(e),e])),n$e=new Map([["s",Tr(383)],[Tr(383),"s"]]),r$e=new Map([[Tr(223),Tr(7838)],[Tr(107),Tr(8490)],[Tr(229),Tr(8491)],[Tr(969),Tr(8486)]]),a$e=new Map([Bs(453),Bs(456),Bs(459),Bs(498),...aw(8072,8079),...aw(8088,8095),...aw(8104,8111),Bs(8124),Bs(8140),Bs(8188)]),o$e=new Map([["alnum",Et`[\p{Alpha}\p{Nd}]`],["alpha",Et`\p{Alpha}`],["ascii",Et`\p{ASCII}`],["blank",Et`[\p{Zs}\t]`],["cntrl",Et`\p{Cc}`],["digit",Et`\p{Nd}`],["graph",Et`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",Et`\p{Lower}`],["print",Et`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",Et`[\p{P}\p{S}]`],["space",Et`\p{space}`],["upper",Et`\p{Upper}`],["word",Et`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",Et`\p{AHex}`]]);function i$e(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Bs(e){const t=Tr(e);return[t.toLowerCase(),t]}function aw(e,t){return i$e(e,t).map(n=>Bs(n))}var pV=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function s$e(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};hV(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:pS(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};wp(e,l$e,r);const a={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},o={currentFlags:a,prevFlags:null,globalFlags:a,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};wp(e,c$e,o);const i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return wp(e,u$e,i),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var l$e={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:a}=e;if(a==="repeater"){const o=zo();o.body[0].body.push(zl({negate:!0,body:r}),Au("Any"));const i=zo();i.body[0].body.push(oV("greedy",0,1/0,o)),n(Kn(i,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const a=e.body.filter(o=>o.kind==="flags");for(let o=n+1;o<t.body.length;o++){const i=t.body[o];Zp(r,i,[]).push(...a)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const n=gV(t.get(e));if(n){const r=zo({flags:n});r.body[0].body=e.body,e.body=[Kn(r,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:a,remove:o,replaceWith:i},l){const{kind:c,negate:d}=e,{asciiWordBoundaries:p,avoidSubclass:h,supportedGNodes:g,wordIsAscii:y}=l;if(c==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${d?"Y":"y"}"`);if(c==="line_end")i(Kn(zl({body:[sc({body:[cS("string_end")]}),sc({body:[Vv(10)]})]}),t));else if(c==="line_start")i(Kn(Hi(Et`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c==="search_start")if(g.has(e))a.flags.sticky=!0,o();else{const v=r[n-1];if(v&&g$e(v))i(Kn(zl({negate:!0}),t));else{if(h)throw new Error(Et`Uses "\G" in a way that requires a subclass`);i(Us(cS("string_start"),t)),l.strategy="clip_search"}}else if(!(c==="string_end"||c==="string_start"))if(c==="string_end_newline")i(Kn(Hi(Et`(?=\n?\z)`),t));else if(c==="word_boundary"){if(!y&&!p){const v=`(?:(?<=${Fi})(?!${Fi})|(?<!${Fi})(?=${Fi}))`,x=`(?:(?<=${Fi})(?=${Fi})|(?<!${Fi})(?!${Fi}))`;i(Kn(Hi(d?x:v),t))}}else throw new Error(`Unexpected assertion kind "${c}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!iw(n)&&(n=ow(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!iw(r)&&(r=ow(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){if(t.kind==="intersection"){const r=fy({body:[e]});n(Kn(r,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:a,digitIsAscii:o,spaceIsAscii:i,wordIsAscii:l}){const{kind:c,negate:d,value:p}=e;
vendor: 19,392 bytes, lines 1258-1261
1258if(o&&(c==="digit"||p==="digit")){n(Us(dS("digit",{negate:d}),t));return}if(i&&(c==="space"||p==="space")){n(Kn(sw(Hi(e$e),d),t));return}if(l&&(c==="word"||p==="word")){n(Us(dS("word",{negate:d}),t));return}if(c==="any")n(Us(Au("Any"),t));else if(c==="digit")n(Us(Au("Nd",{negate:d}),t));else if(c!=="dot")if(c==="text_segment"){if(r==="strict")throw new Error(Et`Use of "\X" requires non-strict accuracy`);const h="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",g=Et`\p{RI}{2}|${h}(?:\u200D${h})*`;n(Kn(Hi(Et`(?>\r\n|${a?Et`\p{RGI_Emoji}`:g}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c==="hex")n(Us(Au("AHex",{negate:d}),t));else if(c==="newline")n(Kn(Hi(d?`[^ 1259]`:`(?>\r 1260?|[ 1261\v\f \u2028\u2029])`),t));else if(c==="posix")if(!a&&(p==="graph"||p==="print")){if(r==="strict")throw new Error(`POSIX class "${p}" requires min target ES2024 or non-strict accuracy`);let h={graph:"!-~",print:" -~"}[p];d&&(h=`\0-${Tr(h.codePointAt(0)-1)}${Tr(h.codePointAt(2)+1)}-ô¿¿`),n(Kn(Hi(`[${h}]`),t))}else n(Kn(sw(Hi(o$e.get(p)),d),t));else if(c==="property")TA.has(qv(p))||(e.key="sc");else if(c==="space")n(Us(Au("space",{negate:d}),t));else if(c==="word")n(Kn(sw(Hi(Fi),d),t));else throw new Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:a,removeAllPrevSiblings:o,removeAllNextSiblings:i}){const{kind:l,flags:c}=e;if(l==="flags")if(!c.enable&&!c.disable)r();else{const d=zo({flags:c});d.body[0].body=i(),a(Kn(d,t),{traverse:!0})}else if(l==="keep"){const d=n.body[0],h=n.body.length===1&&nV(d,{type:"Group"})&&d.body[0].body.length===1?d.body[0]:n;if(t.parent!==h||h.body.length>1)throw new Error(Et`Uses "\K" in a way that's unsupported`);const g=zl({behind:!0});g.body[0].body=o(),a(Kn(g,t))}else throw new Error(`Unexpected directive kind "${l}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if(r==="fail")n(Kn(zl({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=zo();t.body[0].body.push(e.body),e.body=Kn(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,a=!1;for(const o of e.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const i=bV(o.body);i?(r=!0,Array.isArray(i)?n.push(...i):n.push(i)):a=!0}r&&!a&&n.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(Et`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!iw(n)&&(n=ow(n,t),e.ref=n)}},c$e={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:a}=e;r||n.set(e,[...t.get(a).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:a,groupsByName:o,multiplexCapturesToLeftByRef:i,openRefs:l,reffedNodesByReferencer:c}){const d=a.get(e);if(d&&l.has(e.number)){const h=Us(wM(e.number),t);c.set(h,l.get(e.number)),n(h);return}l.set(e.number,e),i.set(e.number,[]),e.name&&Zp(i,e.name,[]);const p=i.get(e.name??e.number);for(let h=0;h<p.length;h++){const g=p[h];if(d===g.node||d&&d===g.origin||e===g.origin){p.splice(h,1);break}}if(i.get(e.number).push({node:e,origin:d}),e.name&&i.get(e.name).push({node:e,origin:d}),e.name){const h=Zp(o,e.name,new Map);let g=!1;if(d)g=!0;else for(const y of h.values())if(!y.hasDuplicateNameToRemove){g=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:g})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=vb(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:a,ref:o}=e;if(a){let p=t;for(;(p=p.parent)&&!(p.type==="CapturingGroup"&&(p.name===o||p.number===o)););r.reffedNodesByReferencer.set(e,p);return}const i=r.subroutineRefMap.get(o),l=o===0,c=l?wM(0):mV(i,r.groupOriginByCopy,null);let d=c;if(!l){const p=gV(p$e(i,g=>g.type==="Group"&&!!g.flags)),h=p?vb(r.globalFlags,p):r.globalFlags;d$e(h,r.currentFlags)||(d=zo({flags:h$e(h)}),d.body[0].body.push(c))}n(Kn(d,t),{traverse:!l})}},u$e={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const o=r.reffedNodesByReferencer.get(e).filter(i=>f$e(i,e));if(!o.length)n(Kn(zl({negate:!0}),t));else if(o.length>1){const i=zo({atomic:!0,body:o.reverse().map(l=>sc({body:[uS(l.number)]}))});n(Kn(i,t))}else e.ref=o[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const a=aV();e.body.at(-1).body.push(a)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function hV(e){wp(e,{"*"({node:t,parent:n}){t.parent=n}})}function d$e(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function f$e(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=yV(n.parent);for(const a of r){if(a===n)break;if(a===e||vV(a,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function mV(e,t,n,r){const a=Array.isArray(e)?[]:{};for(const[o,i]of Object.entries(e))o==="parent"?a.parent=Array.isArray(n)?r:n:i&&typeof i=="object"?a[o]=mV(i,t,a,n):(o==="type"&&i==="CapturingGroup"&&t.set(a,t.get(e)??e),a[o]=i);return a}function wM(e){const t=iV(e);return t.isRecursive=!0,t}function p$e(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function ow(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function gV(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(a=>{r.enable?.[a]&&(delete n.disable[a],n.enable[a]=!0),r.disable?.[a]&&(n.disable[a]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function h$e({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function yV(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function bV(e){const t=e.find(n=>n.kind==="search_start"||y$e(n,{negate:!1})||!m$e(n));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const n=[];for(const r of t.body){const a=bV(r.body);if(!a)return null;Array.isArray(a)?n.push(...a):n.push(a)}return n}return null}function vV(e,t){const n=yV(e)??[];for(const r of n)if(r===t||vV(r,t))return!0;return!1}function m$e({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function g$e(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function y$e(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&nV(e.body[0],{type:"Assertion",kind:"search_start"})}function iw(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Hi(e,t){const r=rV(e,{...t,unicodePropertyMap:TA}).body;return r.length>1||r[0].body.length>1?zo({body:r}):r[0].body[0]}function sw(e,t){return e.negate=t,e}function Us(e,t){return e.parent=t,e}function Kn(e,t){return hV(e),e.parent=t,e}function b$e(e,t){const n=dV(t),r=pS(n.target,"ES2024"),a=pS(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,l=null;if(!a){const y=[e.flags.ignoreCase];wp(e,v$e,{getCurrentModI:()=>y.at(-1),popModI(){y.pop()},pushModI(v){y.push(v)},setHasCasedChar(){y.at(-1)?i=!0:l=!0}})}const c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!l)};let d=e;const p={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:d,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!a&&i&&l),useFlagMods:a,useFlagV:r,verbose:n.verbose};function h(y){return p.lastNode=d,d=y,XLe(_$e[y.type],`Unexpected node type "${y.type}"`)(y,p,h)}const g={pattern:e.body.map(h).join("|"),flags:h(e.flags),options:{...e.options}};return r||(delete g.options.force.v,g.options.disable.v=!0,g.options.unicodeSetsPlugin=null),g._captureTransfers=new Map,g._hiddenCaptures=[],p.captureMap.forEach((y,v)=>{y.hidden&&g._hiddenCaptures.push(v),y.transferTo&&Zp(g._captureTransfers,y.transferTo,[]).push(v)}),g}var v$e={"*":{enter({node:e},t){if(SM(e)){const n=t.getCurrentModI();t.pushModI(e.flags?vb({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){SM(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){SA(Tr(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),_V(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&pV.has(e.value)&&t.setHasCasedChar()}},_$e={Alternative({body:e},t,n){return e.map(n).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?Et`\B`:Et`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){const{body:r,name:a,number:o}=e,i={ignoreCase:t.currentFlags.ignoreCase},l=t.originMap.get(e);return l&&(i.hidden=!0,o>l.number&&(i.transferTo=l.number)),t.captureMap.set(o,i),`(${a?`?<${a}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=Tr(e),r=yu(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&SA(n)){const a=fV(n);return t.inCharClass?a.join(""):a.length>1?`[${a.join("")}]`:a[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:a,parent:o}=e;let{body:i}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");es.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(CM)&&(i=[Vv(45),...i.filter(d=>!CM(d))]);const l=()=>`[${a?"^":""}${i.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||es.bugNestedClassIgnoresNegation)&&!a){const p=i.filter(h=>h.type==="CharacterClass"&&h.kind==="union"&&h.negate);if(p.length){const h=zo(),g=h.body[0];return h.parent=o,g.parent=h,i=i.filter(y=>!p.includes(y)),e.body=i,i.length?(e.parent=g,g.body.push(e)):h.body.pop(),p.forEach(y=>{const v=sc({body:[y]});y.parent=v,v.parent=h,h.body.push(v)}),n(h)}}t.inCharClass=!0;const d=l();return t.inCharClass=!1,d}const c=i[0];if(r==="union"&&!a&&c&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&!(es.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&o.kind==="intersection"&&i.length===1&&c.type!=="CharacterClassRange"))return i.map(n).join("");if(!t.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return l()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,a={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=yu(n,a),i=yu(r,a),l=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const c=_V(e);S$e(c).forEach(p=>{l.add(Array.isArray(p)?`${yu(p[0],a)}-${yu(p[1],a)}`:yu(p,a))})}return`${o}-${i}${[...l].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},a){if(e==="dot")return a.currentFlags.dotAll?a.appliedGlobalFlags.dotAll||a.useFlagMods?".":"[^]":Et`[^\n]`;if(e==="digit")return t?Et`\D`:Et`\d`;if(e==="property"){if(a.useAppliedIgnoreCase&&a.currentFlags.ignoreCase&&pV.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?Et`\P`:Et`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?Et`\W`:Et`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:n,parent:r},a,o){const i=a.currentFlags;n&&(a.currentFlags=vb(i,n));const l=t.map(o).join("|"),c=!a.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!a.useFlagMods||!n)?l:`(?${C$e(e,n,a.useFlagMods)}${l})`;return a.currentFlags=i,c},LookaroundAssertion({body:e,kind:t,negate:n},r,a){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(a).join("|")})`},Quantifier(e,t,n){return n(e.body)+A$e(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return t===0?`(?R=${r})`:Et`\g<${t}&R=${r}>`}},E$e=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),x$e=new Set(["-","\\","]","^","["]),w$e=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),TM=new Map([[9,Et`\t`],[10,Et`\n`],[11,Et`\v`],[12,Et`\f`],[13,Et`\r`],[8232,Et`\u2028`],[8233,Et`\u2029`],[65279,Et`\uFEFF`]]),T$e=/^\p{Cased}$/u;function SA(e){return T$e.test(e)}function _V(e,t){const n=!!t?.firstOnly,r=e.min.value,a=e.max.value,o=[];if(r<65&&(a===65535||a>=131071)||r===65536&&a>=131071)return o;for(let i=r;i<=a;i++){const l=Tr(i);if(!SA(l))continue;const c=fV(l).filter(d=>{const p=d.codePointAt(0);return p<r||p>a});if(c.length&&(o.push(...c),n))break}return o}function yu(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(TM.has(e))return TM.get(e);if(e<32||e>126&&e<160||e>262143||t&&k$e(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const a=n?r?w$e:x$e:E$e,o=Tr(e);return(a.has(o)?"\\":"")+o}function S$e(e){const t=e.map(a=>a.codePointAt(0)).sort((a,o)=>a-o),n=[];let r=null;for(let a=0;a<t.length;a++)t[a+1]===t[a]+1?r??=t[a]:r===null?n.push(t[a]):(n.push([r,t[a]]),r=null);return n}function C$e(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:a,disable:o}=t;r=(a?.ignoreCase?"i":"")+(a?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${r}:`}function A$e({kind:e,max:t,min:n}){let r;return!n&&t===1?r="?":!n&&t===1/0?r="*":n===1&&t===1/0?r="+":n===t?r=`{${n}}`:r=`{${n},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[e]}function SM({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function k$e(e){return e>47&&e<58}function CM({type:e,value:t}){return e==="Character"&&t===45}var N$e=class hS extends RegExp{#e=new Map;#t=null;#n;#a=null;#r=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,n,r){const a=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw new Error("Cannot provide options when copying a regexp");const o=t;super(o,n),this.#n=o.source,o instanceof hS&&(this.#e=o.#e,this.#a=o.#a,this.#r=o.#r,this.rawOptions=o.rawOptions)}else{const o={hiddenCaptures:[],strategy:null,transfers:[],...r};super(a?"":t,n),this.#n=t,this.#e=O$e(o.hiddenCaptures,o.transfers),this.#r=o.strategy,this.rawOptions=r??{}}a||(this.#t=this)}exec(t){if(!this.#t){const{lazyCompile:a,...o}=this.rawOptions;this.#t=new hS(this.#n,this.flags,o)}const n=this.global||this.sticky,r=this.lastIndex;if(this.#r==="clip_search"&&n&&r){this.lastIndex=0;const a=this.#o(t.slice(r));return a&&(R$e(a,r,t,this.hasIndices),this.lastIndex+=r),a}return this.#o(t)}#o(t){this.#t.lastIndex=this.lastIndex;const n=super.exec.call(this.#t,t);if(this.lastIndex=this.#t.lastIndex,!n||!this.#e.size)return n;const r=[...n];n.length=1;let a;this.hasIndices&&(a=[...n.indices],n.indices.length=1);const o=[0];for(let i=1;i<r.length;i++){const{hidden:l,transferTo:c}=this.#e.get(i)??{};if(l?o.push(null):(o.push(n.length),n.push(r[i]),this.hasIndices&&n.indices.push(a[i])),c&&r[i]!==void 0){const d=o[c];if(!d)throw new Error(`Invalid capture transfer to "${d}"`);if(n[d]=r[i],this.hasIndices&&(n.indices[d]=a[i]),n.groups){this.#a||(this.#a=D$e(this.source));const p=this.#a.get(c);p&&(n.groups[p]=r[i],this.hasIndices&&(n.indices.groups[p]=a[i]))}}}return n}};function R$e(e,t,n,r){if(e.index+=t,e.input=n,r){const a=e.indices;for(let i=0;i<a.length;i++){const l=a[i];l&&(a[i]=[l[0]+t,l[1]+t])}const o=a.groups;o&&Object.keys(o).forEach(i=>{const l=o[i];l&&(o[i]=[l[0]+t,l[1]+t])})}}function O$e(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,a]of t)for(const o of a)Zp(n,o,{}).transferTo=r;return n}function D$e(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,a=0,o;for(;o=t.exec(e);){const{0:i,groups:{capture:l,name:c}}=o;i==="["?r++:r?i==="]"&&r--:l&&(a++,c&&n.set(a,c))}return n}function I$e(e,t){const n=L$e(e,t);return n.options?new N$e(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function L$e(e,t){const n=dV(t),r=rV(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:TA}),a=s$e(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=b$e(a,n),i=KLe(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),l=WLe(i.pattern),c=YLe(l.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),d={pattern:c.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const p=c.hiddenCaptures.sort((v,x)=>v-x),h=Array.from(c.captureTransfers),g=a._strategy,y=d.pattern.length>=n.lazyCompileLength;(p.length||h.length||g||y)&&(d.options={...p.length&&{hiddenCaptures:p},...h.length&&{transfers:h},...g&&{strategy:g},...y&&{lazyCompile:y}})}return d}const AM=4294967295;class $$e{constructor(t,n={}){this.patterns=t,this.options=n;const{forgiving:r=!1,cache:a,regexConstructor:o}=n;
1261if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(i=>{if(typeof i!="string")return i;const l=a?.get(i);if(l){if(l instanceof RegExp)return l;if(r)return null;throw l}try{const c=o(i);return a?.set(i,c),c}catch(c){if(a?.set(i,c),r)return null;throw c}})}regexps;findNextMatchSync(t,n,r){const a=typeof t=="string"?t:t.content,o=[];function i(l,c,d=0){return{index:l,captureIndices:c.indices.map(p=>p==null?{start:AM,end:AM,length:0}:{start:p[0]+d,end:p[1]+d,length:p[1]-p[0]})}}for(let l=0;l<this.regexps.length;l++){const c=this.regexps[l];if(c)try{c.lastIndex=n;const d=c.exec(a);if(!d)continue;if(d.index===n)return i(l,d,0);o.push([l,d,0])}catch(d){if(this.options.forgiving)continue;throw d}}if(o.length){const l=Math.min(...o.map(c=>c[1].index));for(const[c,d,p]of o)if(d.index===l)return i(c,d,p)}return null}}function P$e(e,t){return I$e(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function M$e(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=n=>P$e(n,{target:t.target}),{createScanner(n){return new $$e(n,t)},createString(n){return{content:n}}}}const j$e=M$e({forgiving:!0}),z$e=qIe({engine:j$e,langAlias:{markup:"html",svg:"xml",mathml:"xml",atom:"xml",ssml:"xml",rss:"xml",webmanifest:"json"}}),EV=await z$e;WIe(),KIe();function ke(e,t,n){function r(l,c){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:c,constr:i,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,c);const d=i.prototype,p=Object.keys(d);for(let h=0;h<p.length;h++){const g=p[h];g in l||(l[g]=d[g].bind(l))}}const a=n?.Parent??Object;class o extends a{}Object.defineProperty(o,"name",{value:e});function i(l){var c;const d=n?.Parent?new o:this;r(d,l),(c=d._zod).deferred??(c.deferred=[]);for(const p of d._zod.deferred)p();return d}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:l=>n?.Parent&&l instanceof n.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}class Zu extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class xV extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const wV={};function lc(e){return wV}function TV(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>t.indexOf(+r)===-1).map(([r,a])=>a)}function mS(e,t){return typeof t=="bigint"?t.toString():t}function CA(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function AA(e){return e==null}function kA(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function B$e(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let a=(r.split(".")[1]||"").length;if(a===0&&/\d?e-\d?/.test(r)){const c=r.match(/\d?e-(\d?)/);c?.[1]&&(a=Number.parseInt(c[1]))}const o=n>a?n:a,i=Number.parseInt(e.toFixed(o).replace(".","")),l=Number.parseInt(t.toFixed(o).replace(".",""));return i%l/10**o}const kM=Symbol("evaluating");function cn(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==kM)return r===void 0&&(r=kM,r=n()),r},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function wc(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ul(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function NM(e){return JSON.stringify(e)}function U$e(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const SV="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function _b(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const F$e=CA(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Kp(e){if(_b(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(_b(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function CV(e){return Kp(e)?{...e}:Array.isArray(e)?[...e]:e}const H$e=new Set(["string","number","symbol"]);function Wv(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function dl(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function ut(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function G$e(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const V$e={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function q$e(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const o=ul(e._zod.def,{get shape(){const i={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(i[l]=n.shape[l])}return wc(this,"shape",i),i},checks:[]});return dl(e,o)}function Y$e(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const o=ul(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete i[l]}return wc(this,"shape",i),i},checks:[]});return dl(e,o)}function W$e(e,t){if(!Kp(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const o=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot over
1261write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const a=ul(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return wc(this,"shape",o),o}});return dl(e,a)}function Z$e(e,t){if(!Kp(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=ul(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return wc(this,"shape",r),r}});return dl(e,n)}function K$e(e,t){const n=ul(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return wc(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return dl(e,n)}function Q$e(e,t,n){const a=t._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=ul(t._zod.def,{get shape(){const l=t._zod.def.shape,c={...l};if(n)for(const d in n){if(!(d in l))throw new Error(`Unrecognized key: "${d}"`);n[d]&&(c[d]=e?new e({type:"optional",innerType:l[d]}):l[d])}else for(const d in l)c[d]=e?new e({type:"optional",innerType:l[d]}):l[d];return wc(this,"shape",c),c},checks:[]});return dl(t,i)}function X$e(e,t,n){const r=ul(t._zod.def,{get shape(){const a=t._zod.def.shape,o={...a};if(n)for(const i in n){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(o[i]=new e({type:"nonoptional",innerType:a[i]}))}else for(const i in a)o[i]=new e({type:"nonoptional",innerType:a[i]});return wc(this,"shape",o),o}});return dl(t,r)}function $u(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function AV(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Fg(e){return typeof e=="string"?e:e?.message}function cc(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const a=Fg(e.inst?._zod.def?.error?.(e))??Fg(t?.error?.(e))??Fg(n.customError?.(e))??Fg(n.localeError?.(e))??"Invalid input";r.message=a}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function NA(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Qp(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const kV=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,mS,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},NV=ke("$ZodError",kV),RV=ke("$ZodError",kV,{Parent:Error});function J$e(e,t=n=>n.message){const n={},r=[];for(const a of e.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}function ePe(e,t=n=>n.message){const n={_errors:[]},r=a=>{for(const o of a.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(i=>r({issues:i}));else if(o.code==="invalid_key")r({issues:o.issues});else if(o.code==="invalid_element")r({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else{let i=n,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(i[c]=i[c]||{_errors:[]},i[c]._errors.push(t(o))):i[c]=i[c]||{_errors:[]},i=i[c],l++}}};return r(e),n}const RA=e=>(t,n,r,a)=>{const o=r?Object.assign(r,{async:!1}):{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new Zu;if(i.issues.length){const l=new(a?.Err??e)(i.issues.map(c=>cc(c,o,lc())));throw SV(l,a?.callee),l}return i.value},OA=e=>async(t,n,r,a)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise&&(i=await i),i.issues.length){const l=new(a?.Err??e)(i.issues.map(c=>cc(c,o,lc())));throw SV(l,a?.callee),l}return i.value},Zv=e=>(t,n,r)=>{const a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new Zu;return o.issues.length?{success:!1,error:new(e??NV)(o.issues.map(i=>cc(i,a,lc())))}:{success:!0,data:o.value}},tPe=Zv(RV),Kv=e=>async(t,n,r)=>{const a=r?Object.assign(r,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},a);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(i=>cc(i,a,lc())))}:{success:!0,data:o.value}},nPe=Kv(RV),rPe=e=>(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return RA(e)(t,n,a)},aPe=e=>(t,n,r)=>RA(e)(t,n,r),oPe=e=>async(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return OA(e)(t,n,a)},iPe=e=>async(t,n,r)=>OA(e)(t,n,r),sPe=e=>(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Zv(e)(t,n,a)},lPe=e=>(t,n,r)=>Zv(e)(t,n,r),cPe=e=>async(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Kv(e)(t,n,a)},uPe=e=>async(t,n,r)=>Kv(e)(t,n,r),dPe=/^[cC][^\s-]{8,}
vendor: 28,501 bytes, lines 1261-1297
1261$/,fPe=/^[0-9a-z]+$/,pPe=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,hPe=/^[0-9a-vA-V]{20}$/,mPe=/^[A-Za-z0-9]{27}$/,gPe=/^[a-zA-Z0-9_-]{21}$/,yPe=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,bPe=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,RM=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,vPe=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,_Pe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function EPe(){return new RegExp(_Pe,"u")}const xPe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,wPe=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,TPe=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,SPe=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,CPe=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,OV=/^[A-Za-z0-9_-]*$/,APe=/^\+[1-9]\d{6,14}$/,DV="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",kPe=new RegExp(`^${DV}$`);function IV(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function NPe(e){return new RegExp(`^${IV(e)}$`)}function RPe(e){const t=IV({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${DV}T(?:${r})$`)}const OPe=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},DPe=/^-?\d+$/,IPe=/^-?\d+(?:\.\d+)?$/,LPe=/^(?:true|false)$/i,$Pe=/^[^A-Z]*$/,PPe=/^[^a-z]*$/,Oa=ke("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),LV={number:"number",bigint:"bigint",object:"date"},$V=ke("$ZodCheckLessThan",(e,t)=>{Oa.init(e,t);const n=LV[typeof t.value];e._zod.onattach.push(r=>{const a=r._zod.bag,o=(t.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?a.maximum=t.value:a.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),PV=ke("$ZodCheckGreaterThan",(e,t)=>{Oa.init(e,t);const n=LV[typeof t.value];e._zod.onattach.push(r=>{const a=r._zod.bag,o=(t.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?a.minimum=t.value:a.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),MPe=ke("$ZodCheckMultipleOf",(e,t)=>{Oa.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):B$e(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),jPe=ke("$ZodCheckNumberFormat",(e,t)=>{Oa.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[a,o]=V$e[t.format];e._zod.onattach.push(i=>{const l=i._zod.bag;l.format=t.format,l.minimum=a,l.maximum=o,n&&(l.pattern=DPe)}),e._zod.check=i=>{const l=i.value;if(n){if(!Number.isInteger(l)){i.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?i.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):i.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}l<a&&i.issues.push({origin:"number",input:l,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),l>o&&i.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),zPe=ke("$ZodCheckMaxLength",(e,t)=>{var n;Oa.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!AA(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const a=r.value;if(a.length<=t.maximum)return;const i=NA(a);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),BPe=ke("$ZodCheckMinLength",(e,t)=>{var n;Oa.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!AA(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const a=r.value;if(a.length>=t.minimum)return;const i=NA(a);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),UPe=ke("$ZodCheckLengthEquals",(e,t)=>{var n;Oa.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!AA(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=r=>{const a=r.value,o=a.length;if(o===t.length)return;const i=NA(a),l=o>t.length;r.issues.push({origin:i,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Qv=ke("$ZodCheckStringFormat",(e,t)=>{var n,r;Oa.init(e,t),e._zod.onattach.push(a=>{const o=a._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),FPe=ke("$ZodCheckRegex",(e,t)=>{Qv.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),HPe=ke("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=$Pe),Qv.init(e,t)}),GPe=ke("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=PPe),Qv.init(e,t)}),VPe=ke("$ZodCheckIncludes",(e,t)=>{Oa.init(e,t);const n=Wv(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(a=>{const o=a._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),qPe=ke("$ZodCheckStartsWith",(e,t)=>{Oa.init(e,t);const n=new RegExp(`^${Wv(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),YPe=ke("$ZodCheckEndsWith",(e,t)=>{Oa.init(e,t);const n=new RegExp(`.*${Wv(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),WPe=ke("$ZodCheckOverwrite",(e,t)=>{Oa.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class ZPe{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(` 1262`).filter(i=>i),a=Math.min(...r.map(i=>i.length-i.trimStart().length)),o=r.map(i=>i.slice(a)).map(i=>" ".repeat(this.indent*2)+i);for(const i of o)this.content.push(i)}compile(){const t=Function,n=this?.args,a=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,a.join(` 1263`))}}const KPe={major:4,minor:3,patch:6},Jn=ke("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=KPe;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const o of a._zod.onattach)o(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const a=(i,l,c)=>{let d=$u(i),p;for(const h of l){if(h._zod.def.when){if(!h._zod.def.when(i))continue}else if(d)continue;const g=i.issues.length,y=h._zod.check(i);if(y instanceof Promise&&c?.async===!1)throw new Zu;if(p||y instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await y,i.issues.length!==g&&(d||(d=$u(i,g)))});else{if(i.issues.length===g)continue;d||(d=$u(i,g))}}return p?p.then(()=>i):i},o=(i,l,c)=>{if($u(i))return i.aborted=!0,i;const d=a(l,r,c);if(d instanceof Promise){if(c.async===!1)throw new Zu;return d.then(p=>e._zod.parse(p,c))}return e._zod.parse(d,c)};e._zod.run=(i,l)=>{if(l.skipChecks)return e._zod.parse(i,l);if(l.direction==="backward"){const d=e._zod.parse({value:i.value,issues:[]},{...l,skipChecks:!0});return d instanceof Promise?d.then(p=>o(p,i,l)):o(d,i,l)}const c=e._zod.parse(i,l);if(c instanceof Promise){if(l.async===!1)throw new Zu;return c.then(d=>a(d,r,l))}return a(c,r,l)}}cn(e,"~standard",()=>({validate:a=>{try{const o=tPe(e,a);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return nPe(e,a).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),DA=ke("$ZodString",(e,t)=>{Jn.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??OPe(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),On=ke("$ZodStringFormat",(e,t)=>{Qv.init(e,t),DA.init(e,t)}),QPe=ke("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=bPe),On.init(e,t)}),XPe=ke("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=RM(r))}else t.pattern??(t.pattern=RM());On.init(e,t)}),JPe=ke("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=vPe),On.init(e,t)}),eMe=ke("$ZodURL",(e,t)=>{On.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),a=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=a.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),tMe=ke("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=EPe()),On.init(e,t)}),nMe=ke("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=gPe),On.init(e,t)}),rMe=ke("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=dPe),On.init(e,t)}),aMe=ke("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=fPe),On.init(e,t)}),oMe=ke("$ZodULID",(e,t)=>{t.pattern??(t.pattern=pPe),On.init(e,t)}),iMe=ke("$ZodXID",(e,t)=>{t.pattern??(t.pattern=hPe),On.init(e,t)}),sMe=ke("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=mPe),On.init(e,t)}),lMe=ke("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=RPe(t)),On.init(e,t)}),cMe=ke("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=kPe),On.init(e,t)}),uMe=ke("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=NPe(t)),On.init(e,t)}),dMe=ke("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=yPe),On.init(e,t)}),fMe=ke("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=xPe),On.init(e,t),e._zod.bag.format="ipv4"}),pMe=ke("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=wPe),On.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),hMe=ke("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=TPe),On.init(e,t)}),mMe=ke("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=SPe),On.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[a,o]=r;if(!o)throw new Error;const i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${a}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function MV(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const gMe=ke("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=CPe),On.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{MV(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function yMe(e){if(!OV.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return MV(n)}const bMe=ke("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=OV),On.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{yMe(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),vMe=ke("$ZodE164",(e,t)=>{t.pattern??(t.pattern=APe),On.init(e,t)});function _Me(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const a=JSON.parse(atob(r));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}const EMe=ke("$ZodJWT",(e,t)=>{On.init(e,t),e._zod.check=n=>{_Me(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),jV=ke("$ZodNumber",(e,t)=>{Jn.init(e,t),e._zod.pattern=e._zod.bag.pattern??IPe,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const a=n.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return n;const o=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:a,inst:e,...o?{received:o}:{}}),n}}),xMe=ke("$ZodNumberFormat",(e,t)=>{jPe.init(e,t),jV.init(e,t)}),wMe=ke("$ZodBoolean",(e,t)=>{Jn.init(e,t),e._zod.pattern=LPe,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const a=n.value;return typeof a=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),n}}),TMe=ke("$ZodUnknown",(e,t)=>{Jn.init(e,t),e._zod.parse=n=>n}),SMe=ke("$ZodNever",(e,t)=>{Jn.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function OM(e,t,n){e.issues.length&&t.issues.push(...AV(n,e.issues)),t.value[n]=e.value}const CMe=ke("$ZodArray",(e,t)=>{Jn.init(e,t),e._zod.parse=(n,r)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),n;n.value=Array(a.length);const o=[];for(let i=0;i<a.length;i++){const l=a[i],c=t.element._zod.run({value:l,issues:[]},r);c instanceof Promise?o.push(c.then(d=>OM(d,n,i))):OM(c,n,i)}return o.length?Promise.all(o).then(()=>n):n}});function Eb(e,t,n,r,a){if(e.issues.length){if(a&&!(n in r))return;t.issues.push(...AV(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function zV(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=G$e(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function BV(e,t,n,r,a,o){const i=[],l=a.keySet,c=a.catchall._zod,d=c.def.type,p=c.optout==="optional";for(const h in t){if(l.has(h))continue;if(d==="never"){i.push(h);continue}const g=c.run({value:t[h],issues:[]},r);g instanceof Promise?e.push(g.then(y=>Eb(y,n,h,t,p))):Eb(g,n,h,t,p)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}const AMe=ke("$ZodObject",(e,t)=>{if(Jn.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const l=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...l};return Object.defineProperty(t,"shape",{value:c}),c}})}const r=CA(()=>zV(t));cn(e._zod,"propValues",()=>{const l=t.shape,c={};for(const d in l){const p=l[d]._zod;if(p.values){c[d]??(c[d]=new Set);for(const h of p.values)c[d].add(h)}}return c});const a=_b,o=t.catchall;let i;e._zod.parse=(l,c)=>{i??(i=r.value);const d=l.value;if(!a(d))return l.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),l;l.value={};const p=[],h=i.shape;for(const g of i.keys){const y=h[g],v=y._zod.optout==="optional",x=y._zod.run({value:d[g],issues:[]},c);x instanceof Promise?p.push(x.then(C=>Eb(C,l,g,d,v))):Eb(x,l,g,d,v)}return o?BV(p,d,l,c,r.value,e):p.length?Promise.all(p).then(()=>l):l}}),kMe=ke("$ZodObjectJIT",(e,t)=>{AMe.init(e,t);const n=e._zod.parse,r=CA(()=>zV(t)),a=g=>{const y=new ZPe(["shape","payload","ctx"]),v=r.value,x=k=>{const N=NM(k);return`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`};y.write("const input = payload.value;");const C=Object.create(null);let S=0;for(const k of v.keys)C[k]=`key_${S++}`;y.write("const newResult = {};");for(const k of v.keys){const N=C[k],O=NM(k),D=g[k]?._zod?.optout==="optional";y.write(`const ${N} = ${x(k)};`),D?y.write(` 1264 if (${N}.issues.length) { 1265 if (${O} in input) { 1266 payload.issues = payload.issues.concat(${N}.issues.map(iss => ({ 1267 ...iss, 1268 path: iss.path ? [${O}, ...iss.path] : [${O}] 1269 }))); 1270 } 1271 } 1272 1273 if (${N}.value === undefined) { 1274 if (${O} in input) { 1275 newResult[${O}] = undefined; 1276 } 1277 } else { 1278 newResult[${O}] = ${N}.value; 1279 } 1280 1281 `):y.write(` 1282 if (${N}.issues.length) { 1283 payload.issues = payload.issues.concat(${N}.issues.map(iss => ({ 1284 ...iss, 1285 path: iss.path ? [${O}, ...iss.path] : [${O}] 1286 }))); 1287 } 1288 1289 if (${N}.value === undefined) { 1290 if (${O} in input) { 1291 newResult[${O}] = undefined; 1292 } 1293 } else { 1294 newResult[${O}] = ${N}.value; 1295 } 1296 1297 `)}y.write("payload.value = newResult;"),y.write("return payload;");const A=y.compile();return(k,N)=>A(g,k,N)};let o;const i=_b,l=!wV.jitless,d=l&&F$e.value,p=t.catchall;let h;e._zod.parse=(g,y)=>{h??(h=r.value);const v=g.value;return i(v)?l&&d&&y?.async===!1&&y.jitless!==!0?(o||(o=a(t.shape)),g=o(g,y),p?BV([],v,g,y,h,e):g):n(g,y):(g.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),g)}});function DM(e,t,n,r){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const a=e.filter(o=>!$u(o));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(i=>cc(i,r,lc())))}),t)}const NMe=ke("$ZodUnion",(e,t)=>{Jn.init(e,t),cn(e._zod,"optin",()=>t.options.some(a=>a._zod.optin==="optional")?"optional":void 0),cn(e._zod,"optout",()=>t.options.some(a=>a._zod.optout==="optional")?"optional":void 0),cn(e._zod,"values",()=>{if(t.options.every(a=>a._zod.values))return new Set(t.options.flatMap(a=>Array.from(a._zod.values)))}),cn(e._zod,"pattern",()=>{if(t.options.every(a=>a._zod.pattern)){const a=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${a.map(o=>kA(o.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(a,o)=>{if(n)return r(a,o);let i=!1;const l=[];for(const c of t.options){const d=c._zod.run({value:a.value,issues:[]},o);if(d instanceof Promise)l.push(d),i=!0;else{if(d.issues.length===0)return d;l.push(d)}}return i?Promise.all(l).then(c=>DM(c,a,e,o)):DM(l,a,e,o)}}),RMe=ke("$ZodIntersection",(e,t)=>{Jn.init(e,t),e._zod.parse=(n,r)=>{const a=n.value,o=t.left._zod.run({value:a,issues:[]},r),i=t.right._zod.run({value:a,issues:[]},r);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([c,d])=>IM(n,c,d)):IM(n,o,i)}});function gS(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Kp(e)&&Kp(t)){const n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),a={...e,...t};for(const o of r){const i=gS(e[o],t[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};a[o]=i.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const a=e[r],o=t[r],i=gS(a,o);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function IM(e,t,n){const r=new Map;let a;for(const l of t.issues)if(l.code==="unrecognized_keys"){a??(a=l);for(const c of l.keys)r.has(c)||r.set(c,{}),r.get(c).l=!0}else e.issues.push(l);for(const l of n.issues)if(l.code==="unrecognized_keys")for(const c of l.keys)r.has(c)||r.set(c,{}),r.get(c).r=!0;else e.issues.push(l);const o=[...r].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(o.length&&a&&e.issues.push({...a,keys:o}),$u(e))return e;const i=gS(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const OMe=ke("$ZodEnum",(e,t)=>{Jn.init(e,t);const n=TV(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(a=>H$e.has(typeof a)).map(a=>typeof a=="string"?Wv(a):a.toString()).join("|")})$`),e._zod.parse=(a,o)=>{const i=a.value;return r.has(i)||a.issues.push({code:"invalid_value",values:n,input:i,inst:e}),a}}),DMe=ke("$ZodTransform",(e,t)=>{Jn.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new xV(e.constructor.name);const a=t.transform(n.value,n);if(r.async)return(a instanceof Promise?a:Promise.resolve(a)).then(i=>(n.value=i,n));if(a instanceof Promise)throw new Zu;return n.value=a,n}});function LM(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const UV=ke("$ZodOptional",(e,t)=>{Jn.init(e,t),e._zod.optin="optional",e._zod.optout="optional",cn(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),cn(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${kA(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(o=>LM(o,n.value)):LM(a,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),IMe=ke("$ZodExactOptional",(e,t)=>{UV.init(e,t),cn(e._zod,"values",()=>t.innerType._zod.values),cn(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),LMe=ke("$ZodNullable",(e,t)=>{Jn.init(e,t),cn(e._zod,"optin",()=>t.innerType._zod.optin),cn(e._zod,"optout",()=>t.innerType._zod.optout),cn(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${kA(n.source)}|null)$`):void 0}),cn(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),$Me=ke("$ZodDefault",(e,t)=>{Jn.init(e,t),e._zod.optin="optional",cn(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(o=>$M(o,t)):$M(a,t)}});function $M(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const PMe=ke("$ZodPrefault",(e,t)=>{Jn.init(e,t),e._zod.optin="optional",cn(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),MMe=ke("$ZodNonOptional",(e,t)=>{Jn.init(e,t),cn(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(o=>PM(o,e)):PM(a,e)}});function PM(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const jMe=ke("$ZodCatch",(e,t)=>{Jn.init(e,t),cn(e._zod,"optin",()=>t.innerType._zod.optin),cn(e._zod,"optout",()=>t.innerType._zod.optout),cn(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(i=>cc(i,r,lc()))},input:n.value}),n.issues=[]),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(o=>cc(o,r,lc()))},input:n.value}),n.issues=[]),n)}}),zMe=ke("$ZodPipe",(e,t)=>{Jn.init(e,t),cn(e._zod,"values",()=>t.in._zod.values),cn(e._zod,"optin",()=>t.in._zod.optin),cn(e._zod,"optout",()=>t.out._zod.optout),cn(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const o=t.out._zod.run(n,r);return o instanceof Promise?o.then(i=>Hg(i,t.in,r)):Hg(o,t.in,r)}const a=t.in._zod.run(n,r);return a instanceof Promise?a.then(o=>Hg(o,t.out,r)):Hg(a,t.out,r)}});function Hg(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const BMe=ke("$ZodReadonly",(e,t)=>{Jn.init(e,t),cn(e._zod,"propValues",()=>t.innerType._zod.propValues),cn(e._zod,"values",()=>t.innerType._zod.values),cn(e._zod,"optin",()=>t.innerType?._zod?.optin),cn(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(MM):MM(a)}});function MM(e){return e.value=Object.freeze(e.value),e}const UMe=ke("$ZodCustom",(e,t)=>{Oa.init(e,t),Jn.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,a=t.fn(r);if(a instanceof Promise)return a.then(o=>jM(o,n,r,e));jM(a,n,r,e)}});function jM(e,t,n,r){if(!e){const a={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(a.params=r._zod.def.params),t.issues.push(Qp(a))}}var zM;class FMe{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const a={...r,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function HMe(){return new FMe}(zM=globalThis).__zod_globalRegistry??(zM.__zod_globalRegistry=HMe());const lp=globalThis.__zod_globalRegistry;function GMe(e,t){return new e({type:"string",...ut(t)})}
vendor: 4,931 bytes, line 1297
1297function VMe(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ut(t)})}function BM(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ut(t)})}function qMe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ut(t)})}function YMe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ut(t)})}function WMe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ut(t)})}function ZMe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ut(t)})}function KMe(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ut(t)})}function QMe(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ut(t)})}function XMe(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ut(t)})}function JMe(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ut(t)})}function e2e(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ut(t)})}function t2e(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ut(t)})}function n2e(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ut(t)})}function r2e(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ut(t)})}function a2e(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ut(t)})}function o2e(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ut(t)})}function i2e(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ut(t)})}function s2e(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ut(t)})}function l2e(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ut(t)})}function c2e(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ut(t)})}function u2e(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ut(t)})}function d2e(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ut(t)})}function f2e(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ut(t)})}function p2e(e,t){return new e({type:"string",format:"date",check:"string_format",...ut(t)})}function h2e(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ut(t)})}function m2e(e,t){return new e({type:"string",format:"duration",check:"string_format",...ut(t)})}function g2e(e,t){return new e({type:"number",checks:[],...ut(t)})}function y2e(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ut(t)})}function b2e(e,t){return new e({type:"boolean",...ut(t)})}function v2e(e){return new e({type:"unknown"})}function _2e(e,t){return new e({type:"never",...ut(t)})}function UM(e,t){return new $V({check:"less_than",...ut(t),value:e,inclusive:!1})}function lw(e,t){return new $V({check:"less_than",...ut(t),value:e,inclusive:!0})}function FM(e,t){return new PV({check:"greater_than",...ut(t),value:e,inclusive:!1})}function cw(e,t){return new PV({check:"greater_than",...ut(t),value:e,inclusive:!0})}function HM(e,t){return new MPe({check:"multiple_of",...ut(t),value:e})}function FV(e,t){return new zPe({check:"max_length",...ut(t),maximum:e})}function xb(e,t){return new BPe({check:"min_length",...ut(t),minimum:e})}function HV(e,t){return new UPe({check:"length_equals",...ut(t),length:e})}function E2e(e,t){return new FPe({check:"string_format",format:"regex",...ut(t),pattern:e})}function x2e(e){return new HPe({check:"string_format",format:"lowercase",...ut(e)})}function w2e(e){return new GPe({check:"string_format",format:"uppercase",...ut(e)})}function T2e(e,t){return new VPe({check:"string_format",format:"includes",...ut(t),includes:e})}function S2e(e,t){return new qPe({check:"string_format",format:"starts_with",...ut(t),prefix:e})}function C2e(e,t){return new YPe({check:"string_format",format:"ends_with",...ut(t),suffix:e})}function $d(e){return new WPe({check:"overwrite",tx:e})}function A2e(e){return $d(t=>t.normalize(e))}function k2e(){return $d(e=>e.trim())}function N2e(){return $d(e=>e.toLowerCase())}function R2e(){return $d(e=>e.toUpperCase())}function O2e(){return $d(e=>U$e(e))}function D2e(e,t,n){return new e({type:"array",element:t,...ut(n)})}function I2e(e,t,n){return new e({type:"custom",check:"custom",fn:t,...ut(n)})}function L2e(e){const t=$2e(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Qp(r,n.value,t._zod.def));else{const a=r;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=t),a.continue??(a.continue=!t._zod.def.abort),n.issues.push(Qp(a))}}
vendor: 14,712 bytes, lines 1297-1299
1297,e(n.value,n)));return t}function $2e(e,t){const n=new Oa({check:"custom",...ut(t)});return n._zod.check=e,n}function GV(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??lp,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function qr(e,t,n={path:[],schemaPath:[]}){var r;const a=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const l=e._zod.toJSONSchema?.();if(l)i.schema=l;else{const p={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,p);else{const g=i.schema,y=t.processors[a.type];if(!y)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);y(e,t,g,p)}const h=e._zod.parent;h&&(i.ref||(i.ref=h),qr(h,t,p),t.seen.get(h).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Object.assign(i.schema,c),t.io==="input"&&da(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&i.schema._prefault&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function VV(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const i of e.seen.entries()){const l=e.metadataRegistry.get(i[0])?.id;if(l){const c=r.get(l);if(c&&c!==i[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(l,i[0])}}const a=i=>{const l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const h=e.external.registry.get(i[0])?.id,g=e.external.uri??(v=>v);if(h)return{ref:g(h)};const y=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=y,{defId:y,ref:`${g("__shared")}#/${l}/${y}`}}if(i[1]===n)return{ref:"#"};const d=`#/${l}/`,p=i[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:d+p}},o=i=>{if(i[1].schema.$ref)return;const l=i[1],{ref:c,defId:d}=a(i);l.def={...l.schema},d&&(l.defId=d);const p=l.schema;for(const h in p)delete p[h];p.$ref=c};if(e.cycles==="throw")for(const i of e.seen.entries()){const l=i[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root> 1298 1299Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const i of e.seen.entries()){const l=i[1];if(t===i[0]){o(i);continue}if(e.external){const d=e.external.registry.get(i[0])?.id;if(t!==i[0]&&d){o(i);continue}}if(e.metadataRegistry.get(i[0])?.id){o(i);continue}if(l.cycle){o(i);continue}if(l.count>1&&e.reused==="ref"){o(i);continue}}}function qV(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=i=>{const l=e.seen.get(i);if(l.ref===null)return;const c=l.def??l.schema,d={...c},p=l.ref;if(l.ref=null,p){r(p);const g=e.seen.get(p),y=g.schema;if(y.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(y)):Object.assign(c,y),Object.assign(c,d),i._zod.parent===p)for(const x in c)x==="$ref"||x==="allOf"||x in d||delete c[x];if(y.$ref&&g.def)for(const x in c)x==="$ref"||x==="allOf"||x in g.def&&JSON.stringify(c[x])===JSON.stringify(g.def[x])&&delete c[x]}const h=i._zod.parent;if(h&&h!==p){r(h);const g=e.seen.get(h);if(g?.schema.$ref&&(c.$ref=g.schema.$ref,g.def))for(const y in c)y==="$ref"||y==="allOf"||y in g.def&&JSON.stringify(c[y])===JSON.stringify(g.def[y])&&delete c[y]}e.override({zodSchema:i,jsonSchema:c,path:l.path??[]})};for(const i of[...e.seen.entries()].reverse())r(i[0]);const a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const i=e.external.registry.get(t)?.id;if(!i)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(i)}Object.assign(a,n.def??n.schema);const o=e.external?.defs??{};for(const i of e.seen.entries()){const l=i[1];l.def&&l.defId&&(o[l.defId]=l.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?a.$defs=o:a.definitions=o);try{const i=JSON.parse(JSON.stringify(a));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:wb(t,"input",e.processors),output:wb(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function da(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return da(r.element,n);if(r.type==="set")return da(r.valueType,n);if(r.type==="lazy")return da(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return da(r.innerType,n);if(r.type==="intersection")return da(r.left,n)||da(r.right,n);if(r.type==="record"||r.type==="map")return da(r.keyType,n)||da(r.valueType,n);if(r.type==="pipe")return da(r.in,n)||da(r.out,n);if(r.type==="object"){for(const a in r.shape)if(da(r.shape[a],n))return!0;return!1}if(r.type==="union"){for(const a of r.options)if(da(a,n))return!0;return!1}if(r.type==="tuple"){for(const a of r.items)if(da(a,n))return!0;return!!(r.rest&&da(r.rest,n))}return!1}const P2e=(e,t={})=>n=>{const r=GV({...n,processors:t});return qr(e,r),VV(r,e),qV(r,e)},wb=(e,t,n={})=>r=>{const{libraryOptions:a,target:o}=r??{},i=GV({...a??{},target:o,io:t,processors:n});return qr(e,i),VV(i,e),qV(i,e)},M2e={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},j2e=(e,t,n,r)=>{const a=n;a.type="string";const{minimum:o,maximum:i,format:l,patterns:c,contentEncoding:d}=e._zod.bag;if(typeof o=="number"&&(a.minLength=o),typeof i=="number"&&(a.maxLength=i),l&&(a.format=M2e[l]??l,a.format===""&&delete a.format,l==="time"&&delete a.format),d&&(a.contentEncoding=d),c&&c.size>0){const p=[...c];p.length===1?a.pattern=p[0].source:p.length>1&&(a.allOf=[...p.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},z2e=(e,t,n,r)=>{const a=n,{minimum:o,maximum:i,format:l,multipleOf:c,exclusiveMaximum:d,exclusiveMinimum:p}=e._zod.bag;typeof l=="string"&&l.includes("int")?a.type="integer":a.type="number",typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(a.minimum=p,a.exclusiveMinimum=!0):a.exclusiveMinimum=p),typeof o=="number"&&(a.minimum=o,typeof p=="number"&&t.target!=="draft-04"&&(p>=o?delete a.minimum:delete a.exclusiveMinimum)),typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(a.maximum=d,a.exclusiveMaximum=!0):a.exclusiveMaximum=d),typeof i=="number"&&(a.maximum=i,typeof d=="number"&&t.target!=="draft-04"&&(d<=i?delete a.maximum:delete a.exclusiveMaximum)),typeof c=="number"&&(a.multipleOf=c)},B2e=(e,t,n,r)=>{n.type="boolean"},U2e=(e,t,n,r)=>{n.not={}},F2e=(e,t,n,r)=>{},H2e=(e,t,n,r)=>{const a=e._zod.def,o=TV(a.entries);o.every(i=>typeof i=="number")&&(n.type="number"),o.every(i=>typeof i=="string")&&(n.type="string"),n.enum=o},G2e=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},V2e=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},q2e=(e,t,n,r)=>{const a=n,o=e._zod.def,{minimum:i,maximum:l}=e._zod.bag;typeof i=="number"&&(a.minItems=i),typeof l=="number"&&(a.maxItems=l),a.type="array",a.items=qr(o.element,t,{...r,path:[...r.path,"items"]})},Y2e=(e,t,n,r)=>{const a=n,o=e._zod.def;a.type="object",a.properties={};const i=o.shape;for(const d in i)a.properties[d]=qr(i[d],t,{...r,path:[...r.path,"properties",d]});const l=new Set(Object.keys(i)),c=new Set([...l].filter(d=>{const p=o.shape[d]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));c.size>0&&(a.required=Array.from(c)),o.catchall?._zod.def.type==="never"?a.additionalProperties=!1:o.catchall?o.catchall&&(a.additionalProperties=qr(o.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},W2e=(e,t,n,r)=>{const a=e._zod.def,o=a.inclusive===!1,i=a.options.map((l,c)=>qr(l,t,{...r,path:[...r.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=i:n.anyOf=i},Z2e=(e,t,n,r)=>{const a=e._zod.def,o=qr(a.left,t,{...r,path:[...r.path,"allOf",0]}),i=qr(a.right,t,{...r,path:[...r.path,"allOf",1]}),l=d=>"allOf"in d&&Object.keys(d).length===1,c=[...l(o)?o.allOf:[o],...l(i)?i.allOf:[i]];n.allOf=c},K2e=(e,t,n,r)=>{const a=e._zod.def,o=qr(a.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=a.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},Q2e=(e,t,n,r)=>{const a=e._zod.def;qr(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType},X2e=(e,t,n,r)=>{const a=e._zod.def;qr(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},J2e=(e,t,n,r)=>{const a=e._zod.def;qr(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},eje=(e,t,n,r)=>{const a=e._zod.def;qr(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType;let i;try{i=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},tje=(e,t,n,r)=>{const a=e._zod.def,o=t.io==="input"?a.in._zod.def.type==="transform"?a.out:a.in:a.out;qr(o,t,r);const i=t.seen.get(e);i.ref=o},nje=(e,t,n,r)=>{const a=e._zod.def;qr(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType,n.readOnly=!0},YV=(e,t,n,r)=>{const a=e._zod.def;qr(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType},rje=ke("ZodISODateTime",(e,t)=>{lMe.init(e,t),$n.init(e,t)});function aje(e){return f2e(rje,e)}const oje=ke("ZodISODate",(e,t)=>{cMe.init(e,t),$n.init(e,t)});function ije(e){return p2e(oje,e)}const sje=ke("ZodISOTime",(e,t)=>{uMe.init(e,t),$n.init(e,t)});function lje(e){return h2e(sje,e)}const cje=ke("ZodISODuration",(e,t)=>{dMe.init(e,t),$n.init(e,t)});function uje(e){return m2e(cje,e)}const dje=(e,t)=>{NV.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>ePe(e,n)},flatten:{value:n=>J$e(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,mS,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,mS,2)}},isEmpty:{get(){return e.issues.length===0}}})},No=ke("ZodError",dje,{Parent:Error}),fje=RA(No),pje=OA(No),hje=Zv(No),mje=Kv(No),gje=rPe(No),yje=aPe(No),bje=oPe(No),vje=iPe(No),_je=sPe(No),Eje=lPe(No),xje=cPe(No),wje=uPe(No),er=ke("ZodType",(e,t)=>(Jn.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:wb(e,"input"),output:wb(e,"output")}}),e.toJSONSchema=P2e(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(ul(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>dl(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>fje(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>hje(e,n,r),e.parseAsync=async(n,r)=>pje(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>mje(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>gje(e,n,r),e.decode=(n,r)=>yje(e,n,r),e.encodeAsync=async(n,r)=>bje(e,n,r),e.decodeAsync=async(n,r)=>vje(e,n,r),e.safeEncode=(n,r)=>_je(e,n,r),e.safeDecode=(n,r)=>Eje(e,n,r),e.safeEncodeAsync=async(n,r)=>xje(e,n,r),e.safeDecodeAsync=async(n,r)=>wje(e,n,r),e.refine=(n,r)=>e.check(yze(n,r)),e.superRefine=n=>e.check(bze(n)),e.overwrite=n=>e.check($d(n)),e.optional=()=>YM(e),e.exactOptional=()=>aze(e),e.nullable=()=>WM(e),e.nullish=()=>YM(WM(e)),e.nonoptional=n=>uze(e,n),e.array=()=>Wje(e),e.or=n=>Qje([e,n]),e.and=n=>Jje(e,n),e.transform=n=>ZM(e,nze(n)),e.default=n=>sze(e,n),e.prefault=n=>cze(e,n),e.catch=n=>fze(e,n),e.pipe=n=>ZM(e,n),e.readonly=()=>mze(e),e.describe=n=>{const r=e.clone();return lp.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return lp.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return lp.get(e);const r=e.clone();return lp.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),WV=ke("_ZodString",(e,t)=>{DA.init(e,t),er.init(e,t),e._zod.processJSONSchema=(r,a,o)=>j2e(e,r,a);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(E2e(...r)),e.includes=(...r)=>e.check(T2e(...r)),e.startsWith=(...r)=>e.check(S2e(...r)),e.endsWith=(...r)=>e.check(C2e(...r)),e.min=(...r)=>e.check(xb(...r)),e.max=(...r)=>e.check(FV(...r)),e.length=(...r)=>e.check(HV(...r)),e.nonempty=(...r)=>e.check(xb(1,...r)),e.lowercase=r=>e.check(x2e(r)),e.uppercase=r=>e.check(w2e(r)),e.trim=()=>e.check(k2e()),e.normalize=(...r)=>e.check(A2e(...r)),e.toLowerCase=()=>e.check(N2e()),e.toUpperCase=()=>e.check(R2e()),e.slugify=()=>e.check(O2e())}),Tje=ke("ZodString",(e,t)=>{DA.init(e,t),WV.init(e,t),e.email=n=>e.check(VMe(Sje,n)),e.url=n=>e.check(KMe(Cje,n)),e.jwt=n=>e.check(d2e(Uje,n)),e.emoji=n=>e.check(QMe(Aje,n)),e.guid=n=>e.check(BM(GM,n)),e.uuid=n=>e.check(qMe(Gg,n)),e.uuidv4=n=>e.check(YMe(Gg,n)),e.uuidv6=n=>e.check(WMe(Gg,n)),e.uuidv7=n=>e.check(ZMe(Gg,n)),e.nanoid=n=>e.check(XMe(kje,n)),e.guid=n=>e.check(BM(GM,n)),e.cuid=n=>e.check(JMe(Nje,n)),e.cuid2=n=>e.check(e2e(Rje,n)),e.ulid=n=>e.check(t2e(Oje,n)),e.base64=n=>e.check(l2e(jje,n)),e.base64url=n=>e.check(c2e(zje,n)),e.xid=n=>e.check(n2e(Dje,n)),e.ksuid=n=>e.check(r2e(Ije,n)),e.ipv4=n=>e.check(a2e(Lje,n)),e.ipv6=n=>e.check(o2e($je,n)),e.cidrv4=n=>e.check(i2e(Pje,n)),e.cidrv6=n=>e.check(s2e(Mje,n)),e.e164=n=>e.check(u2e(Bje,n)),e.datetime=n=>e.check(aje(n)),e.date=n=>e.check(ije(n)),e.time=n=>e.check(lje(n)),e.duration=n=>e.check(uje(n))});function Ds(e){return GMe(Tje,e)}const $n=ke("ZodStringFormat",(e,t)=>{On.init(e,t),WV.init(e,t)}),Sje=ke("ZodEmail",(e,t)=>{JPe.init(e,t),$n.init(e,t)}),GM=ke("ZodGUID",(e,t)=>{QPe.init(e,t),$n.init(e,t)}),Gg=ke("ZodUUID",(e,t)=>{XPe.init(e,t),$n.init(e,t)}),Cje=ke("ZodURL",(e,t)=>{eMe.init(e,t),$n.init(e,t)}),Aje=ke("ZodEmoji",(e,t)=>{tMe.init(e,t),$n.init(e,t)}),kje=ke("ZodNanoID",(e,t)=>{nMe.init(e,t),$n.init(e,t)}),Nje=ke("ZodCUID",(e,t)=>{rMe.init(e,t),$n.init(e,t)}),Rje=ke("ZodCUID2",(e,t)=>{aMe.init(e,t),$n.init(e,t)}
vendor: 4,327 bytes, line 1299
1299),Oje=ke("ZodULID",(e,t)=>{oMe.init(e,t),$n.init(e,t)}),Dje=ke("ZodXID",(e,t)=>{iMe.init(e,t),$n.init(e,t)}),Ije=ke("ZodKSUID",(e,t)=>{sMe.init(e,t),$n.init(e,t)}),Lje=ke("ZodIPv4",(e,t)=>{fMe.init(e,t),$n.init(e,t)}),$je=ke("ZodIPv6",(e,t)=>{pMe.init(e,t),$n.init(e,t)}),Pje=ke("ZodCIDRv4",(e,t)=>{hMe.init(e,t),$n.init(e,t)}),Mje=ke("ZodCIDRv6",(e,t)=>{mMe.init(e,t),$n.init(e,t)}),jje=ke("ZodBase64",(e,t)=>{gMe.init(e,t),$n.init(e,t)}),zje=ke("ZodBase64URL",(e,t)=>{bMe.init(e,t),$n.init(e,t)}),Bje=ke("ZodE164",(e,t)=>{vMe.init(e,t),$n.init(e,t)}),Uje=ke("ZodJWT",(e,t)=>{EMe.init(e,t),$n.init(e,t)}),ZV=ke("ZodNumber",(e,t)=>{jV.init(e,t),er.init(e,t),e._zod.processJSONSchema=(r,a,o)=>z2e(e,r,a),e.gt=(r,a)=>e.check(FM(r,a)),e.gte=(r,a)=>e.check(cw(r,a)),e.min=(r,a)=>e.check(cw(r,a)),e.lt=(r,a)=>e.check(UM(r,a)),e.lte=(r,a)=>e.check(lw(r,a)),e.max=(r,a)=>e.check(lw(r,a)),e.int=r=>e.check(VM(r)),e.safe=r=>e.check(VM(r)),e.positive=r=>e.check(FM(0,r)),e.nonnegative=r=>e.check(cw(0,r)),e.negative=r=>e.check(UM(0,r)),e.nonpositive=r=>e.check(lw(0,r)),e.multipleOf=(r,a)=>e.check(HM(r,a)),e.step=(r,a)=>e.check(HM(r,a)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function bu(e){return g2e(ZV,e)}const Fje=ke("ZodNumberFormat",(e,t)=>{xMe.init(e,t),ZV.init(e,t)});function VM(e){return y2e(Fje,e)}const Hje=ke("ZodBoolean",(e,t)=>{wMe.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>B2e(e,n,r)});function Is(e){return b2e(Hje,e)}const Gje=ke("ZodUnknown",(e,t)=>{TMe.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>F2e()});function qM(){return v2e(Gje)}const Vje=ke("ZodNever",(e,t)=>{SMe.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>U2e(e,n,r)});function qje(e){return _2e(Vje,e)}const Yje=ke("ZodArray",(e,t)=>{CMe.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>q2e(e,n,r,a),e.element=t.element,e.min=(n,r)=>e.check(xb(n,r)),e.nonempty=n=>e.check(xb(1,n)),e.max=(n,r)=>e.check(FV(n,r)),e.length=(n,r)=>e.check(HV(n,r)),e.unwrap=()=>e.element});function Wje(e,t){return D2e(Yje,e,t)}const Zje=ke("ZodObject",(e,t)=>{kMe.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Y2e(e,n,r,a),cn(e,"shape",()=>t.shape),e.keyof=()=>eze(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:qM()}),e.loose=()=>e.clone({...e._zod.def,catchall:qM()}),e.strict=()=>e.clone({...e._zod.def,catchall:qje()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>W$e(e,n),e.safeExtend=n=>Z$e(e,n),e.merge=n=>K$e(e,n),e.pick=n=>q$e(e,n),e.omit=n=>Y$e(e,n),e.partial=(...n)=>Q$e(QV,e,n[0]),e.required=(...n)=>X$e(XV,e,n[0])});function KV(e,t){const n={type:"object",shape:e??{},...ut(t)};return new Zje(n)}const Kje=ke("ZodUnion",(e,t)=>{NMe.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>W2e(e,n,r,a),e.options=t.options});function Qje(e,t){return new Kje({type:"union",options:e,...ut(t)})}const Xje=ke("ZodIntersection",(e,t)=>{RMe.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Z2e(e,n,r,a)});function Jje(e,t){return new Xje({type:"intersection",left:e,right:t})}const yS=ke("ZodEnum",(e,t)=>{OMe.init(e,t),er.init(e,t),e._zod.processJSONSchema=(r,a,o)=>H2e(e,r,a),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,a)=>{const o={};for(const i of r)if(n.has(i))o[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new yS({...t,checks:[],...ut(a),entries:o})},e.exclude=(r,a)=>{const o={...t.entries};for(const i of r)if(n.has(i))delete o[i];else throw new Error(`Key ${i} not found in enum`);return new yS({...t,checks:[],...ut(a),entries:o})}});function eze(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new yS({type:"enum",entries:n,...ut(t)})}const tze=ke("ZodTransform",(e,t)=>{DMe.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>V2e(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new xV(e.constructor.name);n.addIssue=o=>
1299{if(typeof o=="string")n.issues.push(Qp(o,n.value,t));else{const i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(Qp(i))}};const a=t.transform(n.value,n);return a instanceof Promise?a.then(o=>(n.value=o,n)):(n.value=a,n)}});function nze(e){return new tze({type:"transform",transform:e})}const QV=ke("ZodOptional",(e,t)=>{UV.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>YV(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function YM(e){return new QV({type:"optional",innerType:e})}const rze=ke("ZodExactOptional",(e,t)=>{IMe.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>YV(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function aze(e){return new rze({type:"optional",innerType:e})}const oze=ke("ZodNullable",(e,t)=>{LMe.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>K2e(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function WM(e){return new oze({type:"nullable",innerType:e})}const ize=ke("ZodDefault",(e,t)=>{$Me.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>X2e(e,n,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function sze(e,t){return new ize({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():CV(t)}})}const lze=ke("ZodPrefault",(e,t)=>{PMe.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>J2e(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function cze(e,t){return new lze({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():CV(t)}})}const XV=ke("ZodNonOptional",(e,t)=>{MMe.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Q2e(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function uze(e,t){return new XV({type:"nonoptional",innerType:e,...ut(t)})}const dze=ke("ZodCatch",(e,t)=>{jMe.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>eje(e,n,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function fze(e,t){return new dze({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const pze=ke("ZodPipe",(e,t)=>{zMe.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>tje(e,n,r,a),e.in=t.in,e.out=t.out});function ZM(e,t){return new pze({type:"pipe",in:e,out:t})}const hze=ke("ZodReadonly",(e,t)=>{BMe.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>nje(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function mze(e){return new hze({type:"readonly",innerType:e})}const gze=ke("ZodCustom",(e,t)=>{UMe.init(e,t),er.init(e,t),e._zod.processJSONSchema=(n,r,a)=>G2e(e,n)});function yze(e,t={}){return I2e(gze,e,t)}function bze(e){return L2e(e)}const vze=KV({devPortalZuploBranding:Is(),numberOfProjects:bu(),numberOfUsers:bu(),egressGbPerMonth:bu(),requestsPerMonth:bu(),numberOfApiKeys:bu(),customDomains:bu(),advancedAnalyticsEnabled:Is(),devPortalAnalyticsEnabled:Is(),premiumSupport:Is(),emergencyPhoneSupport:Is(),rbacEnabled:Is(),onPremEnabled:Is(),largeBuildRunners:Is()});KV({entitlements:vze,environmentType:Ds().optional(),deploymentName:Ds(),deploymentUrl:Ds().optional(),projectId:Ds().optional(),projectType:Ds().optional(),sourceType:Ds().optional(),accountName:Ds().optional(),projectName:Ds().optional()});const _ze=()=>{},Eze={buildConfig:_ze()},xze={BASE_URL:"/en",DEV:!1,IS_ZUPLO:!1,MODE:"production",PROD:!0,SENTRY_DSN:void 0,SSR:!1,ZUPLO_BUILD_CONFIG:void 0,ZUPLO_BUILD_ID:void 0,ZUPLO_ENVIRONMENT_TYPE:void 0,ZUPLO_PUBLIC_DEPLOYMENT_NAME:void 0,ZUPLO_SERVER_URL:void 0};await JRe(EV);const wze=e=>({basePath:e.basePath,canonicalUrlOrigin:e.canonicalUrlOrigin,protectedRoutes:e.protectedRoutes,site:{...e.site,showPoweredBy:Eze.buildConfig?.entitlements.devPortalZuploBranding??e.site?.showPoweredBy,logo:e.site?.logo},slots:e.slots,metadata:{favicon:"https://cdn.zudoku.dev/logos/favicon.svg",title:"%s - Zudoku",...e.metadata},navigation:ZRe,navigationRules:KRe,mdx:e.mdx,plugins:[...$P?[$P]:[],...h6,...PP?[PP]:[],...LP?[LP]:[],...GRe,...e.plugins??[]],syntaxHighlighting:{highlighter:EV,themes:e.syntaxHighlighting?.themes}}),Tze=(e,t=!0)=>[...e.plugins??[],...e.authentication?[e.authentication]:[]].flatMap(a=>nOe(a)?a.getRoutes():[]).concat(t?[400,404,500].map(a=>({path:`/${a}`,element:M.jsx(U$,{statusCode:a})})):[]).concat([{path:"*",element:M.jsx(U$,{statusCode:404})}]).map(a=>({...a,errorElement:M.jsx(O5,{className:"w-full m-0"})})),Sze=e=>{const t=wze(e),n=Tze(t,e.enableStatusPages);return[{element:M.jsxs(P3,{...t,env:xze,children:[M.jsx(CSe,{buildId:void 0,environmentType:void 0}),M.jsx(ah,{})]}),hydrateFallbackElement:M.jsx("div",{children:"Loading..."}),children:[{element:M.jsx(ASe,{children:M.jsx(SSe,{})}),errorElement:M.jsx(O5,{}),children:n.map(r=>r.handle?.layout==="none"?r:Cze(r))}]}]},Cze=e=>({element:M.jsx(TSe,{}),children:[e]}),KM=Sze(xr),IA=document.getElementById("root");window.ZUDOKU_VERSION="0.69.0";IA.childElementCount>0?Nze(KM):kze(KM);console.log(`%cZUDOKU%c by Zuplo v${window.ZUDOKU_VERSION}`,["color: #FF00BD","line-height: 50px","font-weight: bolder","font-size: 30px","-webkit-text-stroke-width: 1px","-webkit-text-stroke-color: #FF00BD","text-transform: uppercase","text-align: center","letter-spacing: 5px"].join(" ;"),["color: #Df0097","line-height: 50px","font-weight: bolder","font-size: 15px","text-align: center","letter-spacing: 5px"].join(" ;")),console.log("» Learn more about Zudoku https://zudoku.dev");async function Aze(e){const t=window.location.pathname,n=Yi(e,t,xr.basePath)?.filter(r=>r.route.lazy);n?.length&&await Promise.all(n.map(async r=>{if(typeof r.route.lazy!="function")return;const a=await r.route.lazy();Object.assign(r.route,{...a,lazy:void 0})}))}function kze(e){const t=sH(e,{basename:xr.basePath});I5.createRoot(IA).render(M.jsx(D5,{router:t}))}async function Nze(e){await Aze(e);const t=sH(e,{basename:xr.basePath});I5.hydrateRoot(IA,M.jsx(D5,{hydrate:!0,router:t}))}window.addEventListener("vite:preloadError",e=>{e.preventDefault(),window.location.reload()});
1299export{cve as $,bNe as A,bt as B,zNe as C,nUe as D,z as E,vNe as F,ah as G,J1 as H,Wo as I,Ze as J,hNe as K,WNe as L,sNe as M,eC as N,CC as O,NP as P,Xa as Q,Qge as R,ld as S,Uze as T,Sn as U,Fze as V,fNe as W,bv as X,WG as Y,k5 as Z,Zi as _,E as a,Xp as a0,_S as a1,tG as a2,nG as a3,Tb as a4,rG as a5,cy as a6,t2 as a7,Vb as a8,Ho as a9,MZ as aA,bRe as aB,s6 as aC,KH as aD,mF as aE,Nce as aF,LRe as aG,Mq as aH,TC as aI,_T as aJ,ET as aK,CO as aL,xT as aM,Hze as aN,Gze as aO,nle as aP,sd as aQ,QH as aR,JH as aS,XH as aT,eG as aU,ly as aV,ij as aW,e2 as aX,Dce as aY,$q as aZ,eo as aa,fr as ab,st as ac,Jb as ad,EB as ae,xB as af,We as ag,ha as ah,ih as ai,hi as aj,DS as ak,eRe as al,eh as am,aK as an,sZ as ao,uA as ap,Qve as aq,Wve as ar,Yve as as,wC as at,zq as au,zz as av,Ps as aw,Eh as ax,my as ay,Hn as az,iA as b,rUe as c,f6 as d,yNe as e,Tn as f,MRe as g,Vi as h,sUe as i,M as j,op as k,zr as l,vS as m,Ki as n,oUe as o,Hz as p,Hx as q,b as r,XG as s,CS as t,lNe as u,PNe as v,sh as w,MNe as x,xe as y,JG as z}; 1300//# sourceMappingURL=entry.client-By2py5za.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.