vendor: 7,029 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Pricing-TFCyw4QU.js","assets/card-YhcXsgc-.js","assets/badge-Dbv-Gyjw.js","assets/Submit-BoMUYN6d.js","assets/input-Cl0lHrG1.js","assets/label-SyZJhERm.js","assets/textarea-COruUDs4.js","assets/checkbox-C7jjoXVu.js","assets/index-CK9pSEvz.js","assets/select-CA_ahBNA.js","assets/index-BdQq_4o_.js","assets/index-C67OAif1.js","assets/Combination-CwImtd36.js","assets/chevron-down-o0O9BEhX.js","assets/switch-cZmaMs0n.js","assets/upload-5hMdLCnA.js","assets/image-CBPp9CoF.js","assets/usStates-B4CJ8k57.js","assets/combobox-BL_c_KH2.js","assets/scroll-area-BRk6iMzM.js","assets/FAQ-BuWpzfiC.js","assets/accordion-BHRQvi_k.js","assets/index-tj1XnQUw.js","assets/Contact-TLwHTg4y.js","assets/loader-circle-CJLhVh3T.js","assets/clock-TKTYWG1T.js","assets/types-DKTlFuW_.js","assets/Success-CI9RRYao.js","assets/circle-check-B-9_amDT.js","assets/Auth-Dxl9P5Jj.js","assets/CoverIQLogo-CzVoSKk6.js","assets/dialog-DdO7Qigu.js","assets/index-Cq5c7T1w.js","assets/use-user-context-273nm-HG.js","assets/useQuery-Cn2GYK7_.js","assets/proxy-9219R9Z4.js","assets/arrow-left-DzAKsRTj.js","assets/eye-off-CRVbQPdo.js","assets/eye-O7mFT9mg.js","assets/EmailVerification-B9I_xHF7.js","assets/ResetPassword-BsnNcVnR.js","assets/SetNewPassword-BsBDVNcc.js","assets/lock-Bme9IXB1.js","assets/Onboarding-NieJLadB.js","assets/radio-group-CjG_IK_o.js","assets/index-BRKSiAoi.js","assets/circle-DrQuZXCF.js","assets/phoneUtils-BOPhCllu.js","assets/tag-BR7My3V_.js","assets/SelfMeasureOnboarding-CopwfrDt.js","assets/client-C4T7E75X.js","assets/building-2-CVRa69Tp.js","assets/truck-DdnxvSPN.js","assets/MerlinOnboarding-dwODW2Aj.js","assets/Dashboard-DsMLpvp9.js","assets/use-mobile-Lf-Zaw6n.js","assets/separator-mrMjAzxP.js","assets/use-permissions-BOu6m74Z.js","assets/accountValidation-Ci9LgUlQ.js","assets/calendar-days-D4dMlRhH.js","assets/users-BX6MV00A.js","assets/move-AUxYI31E.js","assets/circle-check-big-C3_1LRRr.js","assets/MeasurementTypeModal-CJwux0Gf.js","assets/ruler-DyC2vDqQ.js","assets/waves-49s6Vi8t.js","assets/log-out-DiF8jjB1.js","assets/plus-DQCE10_Q.js","assets/dollar-sign-BlgNxXdD.js","assets/layout-dashboard-D7Y2qrLE.js","assets/receipt-DC-XCmD1.js","assets/circle-user-BwNhgYmF.js","assets/shield-check-COTq51v4.js","assets/graduation-cap-4MMIuuAc.js","assets/settings-BkFwC-qv.js","assets/circle-help-D-FMdEqr.js","assets/lightbulb-BqXrQi_p.js","assets/user-x-MbTrBVyN.js","assets/alert-B7g8PAOT.js","assets/circle-alert-BTUPF68a.js","assets/en-US-DSSwd-Ay.js","assets/endOfMonth-BNqLjwTF.js","assets/DashboardHome-DUVJMmAf.js","assets/roleHelpers-D_cHQHpo.js","assets/search-DDl7uLbn.js","assets/clipboard-list-CzWw3LRh.js","assets/plane-l-fUPxrQ.js","assets/map-pin-Dp1NlgcL.js","assets/chevron-right-CfpowS5Y.js","assets/activity-UK6jq40_.js","assets/trending-up-BHPmvNOU.js","assets/briefcase-DLEH0-q6.js","assets/index-BZntjqwP.js","assets/format-Dbvp4nIN.js","assets/DashboardHomeV2-C3IXpES_.js","assets/use-job-counts-0y_unHjo.js","assets/JobsNew-Bjob0ntx.js","assets/skeleton-card-T3dYHcGV.js","assets/mapbox-UvBGMhQI.js","assets/PreparedByCombobox-DLwEuTO8.js","assets/AssignTechnicianSelect-DPBeGNIg.js","assets/use-jobs-C4pDkf0J.js","assets/useMutation-m4kXs6Vy.js","assets/user-check-CHpFPar3.js","assets/chevron-left-CbbCm9Xt.js","assets/zap-qFhZCHNR.js","assets/triangle-alert-D-vTEvSg.js","assets/external-link-B15WI0HR.js","assets/JobsList-h_Z5Y3pi.js","assets/statusHelpers-C-o6INf5.js","assets/alert-dialog-DZmcLPvz.js","assets/use-swipe-back-EPl1Guf2.js","assets/PageShell-B10vwUXD.js","assets/GradientHero-AjBHnIrH.js","assets/StatCard-CAiVvW27.js","assets/StatusPill-BXxSNvpL.js","assets/BackNav-D3ALmgQI.js","assets/subDays-DA1zjmpr.js","assets/subMonths-CAPHzFFn.js","assets/arrow-up-down-CxBU9Wh6.js","assets/index-DGYLyq7h.js","assets/phone-BPTwzzyE.js","assets/arrow-up-Bj5yuvP4.js","assets/arrow-down-XPASL-Bt.js","assets/JobDetail-2ojze9H3.js","assets/tabs-BoDaGt6T.js","assets/shield-CaKJgkiz.js","assets/droneMeasurementAreas-DrGKYD9W.js","assets/circle-x-CgIf6vk4.js","assets/beadTypes-DhJ-nXig.js","assets/pdfGenerator-B6qALqGP.js","assets/coverDetailLabels-COym0HY2.js","assets/aeromeasure-geometry-CjTyiTb6.js","assets/square-pen-7tISElDd.js","assets/collapsible-BN2hKf1a.js","assets/measurementParser-Bx5QWwbo.js","assets/table-Dsfi_hQN.js","assets/rotate-ccw-jTHpNfPY.js","assets/pencil-D_YPZZOz.js","assets/download-BF5kVEuW.js","assets/crosshair-Ox8yAwjy.js","assets/progress-R3cIn9je.js","assets/SectionLabel-Cd0g-DGU.js","assets/DetailCard-6M5w1Z5l.js","assets/user-T-gZBDUl.js","assets/info-Ck8SzL7e.js","assets/Settings-DwfAUVsX.js","assets/MyAccount-DGUAw2uX.js","assets/key-round-BCkzIaKR.js","assets/PlanUpgrade-CxfamAWG.js","assets/Users-CaTdAQSW.js","assets/Companies-x33xux-q.js","assets/loading-spinner-CODVflCs.js","assets/CompanyDetail-Co2Elpnh.js","assets/SellCover-QuUWHxxP.js","assets/kaleidoscapes-cover-DSZoKR90.js","assets/CreateQuote-B24oe8lA.js","assets/MapboxPoolMeasurement--SahKBuU.js","assets/undo-2-Dgnqaq_X.js","assets/MapboxPoolMeasurement-8T4XfZzk.css","assets/save-Bd1h-d-5.js","assets/house-CYorOZrp.js","assets/MyQuotes-CCtfgOIY.js","assets/use-quotes-BHoPR5ra.js","assets/dropdown-menu-BVlQrfx5.js","assets/QuoteDetail-PM6fskwk.js","assets/ReferralCodes-CKyDpl6C.js","assets/clipboard-tOxIlE5C.js","assets/copy-DW-vNOn4.js","assets/SignUpCodes-Bk__jUjL.js","assets/MyCustomers-CgvEQc6c.js","assets/QuickActionCard-CoaRJFrr.js","assets/CustomerProfile-XhBOmbGy.js","assets/CustomerMeasurementNew-BqxNa_E8.js","assets/Help-q9oaMmDR.js","assets/message-square-C7Lwi50d.js","assets/FeatureRequest-BQV8fxuo.js","assets/Academy-DIi2Mh_h.js","assets/use-academy-progress-C4s0IxSm.js","assets/AcademyGuide-Dne4CROs.js","assets/IncompleteSignups-BfZiBqMl.js","assets/construction-B6YV-OYw.js","assets/SelfMeasureSuccess-DwRX2tEG.js","assets/TestAccountSetup-doIy7alG.js","assets/ABMeasure-BJV1Mgqx.js","assets/minus-70DQlS2h.js","assets/zoom-out-BJuJ7G-7.js","assets/samplePoolData-xU9Kr0cg.js","assets/ABMeasureIntro-CJZBGjjM.js","assets/DronePhotoMeasure-Cpxjzc1N.js","assets/hand-B95zGBnJ.js","assets/RoughQuote-NhuHNzW3.js","assets/RoughQuoteLanding-BkiTzpha.js","assets/RoughQuoteAuth-C2b_LVah.js","assets/RoughQuoteDashboard-Boa1aBtJ.js","assets/RoughQuoteProfileSetup-BIV0rzEz.js","assets/RoughQuoteDetail-7t2Tcj6L.js","assets/RoughQuoteJoin-DqObf5HA.js","assets/MerlinDealerLandingV3-CiXA7uQZ.js","assets/coveriq-logo-new-cropped-BbZtqqNv.js","assets/Start-80ttxR6G.js","assets/DistributorAuth-D83yj5vC.js","assets/DistributorDashboard-BMggZle7.js","assets/user-plus-BX6VPiw3.js","assets/MultiCompanyHome-BOk2TU65.js","assets/Calendar-Si-KRIkE.js"])))=>i.map(i=>d[i]); 2var XE=Object.defineProperty;var Rh=e=>{throw TypeError(e)};var JE=(e,t,n)=>t in e?XE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var b=(e,t,n)=>JE(e,typeof t!="symbol"?t+"":t,n),vc=(e,t,n)=>t.has(e)||Rh("Cannot "+n);var R=(e,t,n)=>(vc(e,t,"read from private field"),n?n.call(e):t.get(e)),le=(e,t,n
vendor: 4,547 bytes, lines 2-10
2)=>t.has(e)?Rh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Z=(e,t,n,r)=>(vc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ve=(e,t,n)=>(vc(e,t,"access private method"),n);var Ji=(e,t,n,r)=>({set _(s){Z(e,t,s,n)},get _(){return R(e,t,r)}});function ZE(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(r,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)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(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();var g$=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Li(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function y$(e){if(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 s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var Iy={exports:{}},Ol={},My={exports:{}},ae={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its 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 Fi=Symbol.for("react.element"),e1=Symbol.for("react.portal"),t1=Symbol.for("react.fragment"),n1=Symbol.for("react.strict_mode"),r1=Symbol.for("react.profiler"),s1=Symbol.for("react.provider"),o1=Symbol.for("react.context"),i1=Symbol.for("react.forward_ref"),a1=Symbol.for("react.suspense"),l1=Symbol.for("react.memo"),c1=Symbol.for("react.lazy"),Ah=Symbol.iterator;function u1(e){return e===null||typeof e!="object"?null:(e=Ah&&e[Ah]||e["@@iterator"],typeof e=="function"?e:null)}var jy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dy=Object.assign,$y={};function uo(e,t,n){this.props=e,this.context=t,this.refs=$y,this.updater=n||jy}uo.prototype.isReactComponent={};uo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};uo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ly(){}Ly.prototype=uo.prototype;function qd(e,t,n){this.props=e,this.context=t,this.refs=$y,this.updater=n||jy}var Kd=qd.prototype=new Ly;Kd.constructor=qd;Dy(Kd,uo.prototype);Kd.isPureReactComponent=!0;var kh=Array.isArray,Fy=Object.prototype.hasOwnProperty,Yd={current:null},zy={key:!0,ref:!0,__self:!0,__source:!0};function Uy(e,t,n){var r,s={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Fy.call(t,r)&&!zy.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var a=Array(l),c=0;c<l;c++)a[c]=arguments[c+2];s.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:Fi,type:e,key:o,ref:i,props:s,_owner:Yd.current}}function d1(e,t){return{$$typeof:Fi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Xd(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fi}function f1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var _h=/\/+/g;function wc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?f1(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 10-18
10function Pa(e,t,n,r,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Fi:case e1:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+wc(i,0):r,kh(s)?(n="",e!=null&&(n=e.replace(_h,"$&/")+"/"),Pa(s,t,n,"",function(c){return c})):s!=null&&(Xd(s)&&(s=d1(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(_h,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",kh(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+wc(o,l);i+=Pa(o,t,n,a,s)}else if(a=u1(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+wc(o,l++),i+=Pa(o,t,n,a,s);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Zi(e,t,n){if(e==null)return e;var r=[],s=0;return Pa(e,r,"","",function(o){return t.call(n,o,s++)}),r}function p1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var nt={current:null},Ra={transition:null},h1={ReactCurrentDispatcher:nt,ReactCurrentBatchConfig:Ra,ReactCurrentOwner:Yd};function Hy(){throw Error("act(...) is not supported in production builds of React.")}ae.Children={map:Zi,forEach:function(e,t,n){Zi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Zi(e,function(){t++}),t},toArray:function(e){return Zi(e,function(t){return t})||[]},only:function(e){if(!Xd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ae.Component=uo;ae.Fragment=t1;ae.Profiler=r1;ae.PureComponent=qd;ae.StrictMode=n1;ae.Suspense=a1;ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=h1;ae.act=Hy;ae.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Dy({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=Yd.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Fy.call(t,a)&&!zy.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var c=0;c<a;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:Fi,type:e.type,key:s,ref:o,props:r,_owner:i}};ae.createContext=function(e){return e={$$typeof:o1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:s1,_context:e},e.Consumer=e};ae.createElement=Uy;ae.createFactory=function(e){var t=Uy.bind(null,e);return t.type=e,t};ae.createRef=function(){return{current:null}};ae.forwardRef=function(e){return{$$typeof:i1,render:e}};ae.isValidElement=Xd;ae.lazy=function(e){return{$$typeof:c1,_payload:{_status:-1,_result:e},_init:p1}};ae.memo=function(e,t){return{$$typeof:l1,type:e,compare:t===void 0?null:t}};ae.startTransition=function(e){var t=Ra.transition;Ra.transition={};try{e()}finally{Ra.transition=t}};ae.unstable_act=Hy;ae.useCallback=function(e,t){return nt.current.useCallback(e,t)};ae.useContext=function(e){return nt.current.useContext(e)};ae.useDebugValue=function(){};ae.useDeferredValue=function(e){return nt.current.useDeferredValue(e)};ae.useEffect=function(e,t){return nt.current.useEffect(e,t)};ae.useId=function(){return nt.current.useId()};ae.useImperativeHandle=function(e,t,n){return nt.current.useImperativeHandle(e,t,n)};ae.useInsertionEffect=function(e,t){return nt.current.useInsertionEffect(e,t)};ae.useLayoutEffect=function(e,t){return nt.current.useLayoutEffect(e,t)};ae.useMemo=function(e,t){return nt.current.useMemo(e,t)};ae.useReducer=function(e,t,n){return nt.current.useReducer(e,t,n)};ae.useRef=function(e){return nt.current.useRef(e)};ae.useState=function(e){return nt.current.useState(e)};ae.useSyncExternalStore=function(e,t,n){return nt.current.useSyncExternalStore(e,t,n)};ae.useTransition=function(){return nt.current.useTransition()};ae.version="18.3.1";My.exports=ae;var v=My.exports;const N=Li(v),Il=ZE({__proto__:null,default:N},[v]);/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its 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 m1=v,g1=Symbol.for("react.element"),y1=Symbol.for("react.fragment"),v1=Object.prototype.hasOwnProperty,w1=m1.__SECRET_INT
vendor: 10,245 bytes, lines 18-34
18ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,x1={key:!0,ref:!0,__self:!0,__source:!0};function By(e,t,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)v1.call(t,r)&&!x1.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:g1,type:e,key:o,ref:i,props:s,_owner:w1.current}}Ol.Fragment=y1;Ol.jsx=By;Ol.jsxs=By;Iy.exports=Ol;var h=Iy.exports,Vy={exports:{}},St={},Wy={exports:{}},Qy={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */(function(e){function t(_,O){var $=_.length;_.push(O);e:for(;0<$;){var ee=$-1>>>1,G=_[ee];if(0<s(G,O))_[ee]=O,_[$]=G,$=ee;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var O=_[0],$=_.pop();if($!==O){_[0]=$;e:for(var ee=0,G=_.length,se=G>>>1;ee<se;){var oe=2*(ee+1)-1,ke=_[oe],Be=oe+1,fe=_[Be];if(0>s(ke,$))Be<G&&0>s(fe,ke)?(_[ee]=fe,_[Be]=$,ee=Be):(_[ee]=ke,_[oe]=$,ee=oe);else if(Be<G&&0>s(fe,$))_[ee]=fe,_[Be]=$,ee=Be;else break e}}return O}function s(_,O){var $=_.sortIndex-O.sortIndex;return $!==0?$:_.id-O.id}if(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 a=[],c=[],u=1,d=null,f=3,p=!1,g=!1,m=!1,E=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(_){for(var O=n(c);O!==null;){if(O.callback===null)r(c);else if(O.startTime<=_)r(c),O.sortIndex=O.expirationTime,t(a,O);else break;O=n(c)}}function S(_){if(m=!1,x(_),!g)if(n(a)!==null)g=!0,Y(C);else{var O=n(c);O!==null&&X(S,O.startTime-_)}}function C(_,O){g=!1,m&&(m=!1,w(k),k=-1),p=!0;var $=f;try{for(x(O),d=n(a);d!==null&&(!(d.expirationTime>O)||_&&!B());){var ee=d.callback;if(typeof ee=="function"){d.callback=null,f=d.priorityLevel;var G=ee(d.expirationTime<=O);O=e.unstable_now(),typeof G=="function"?d.callback=G:d===n(a)&&r(a),x(O)}else r(a);d=n(a)}if(d!==null)var se=!0;else{var oe=n(c);oe!==null&&X(S,oe.startTime-O),se=!1}return se}finally{d=null,f=$,p=!1}}var T=!1,P=null,k=-1,D=5,M=-1;function B(){return!(e.unstable_now()-M<D)}function L(){if(P!==null){var _=e.unstable_now();M=_;var O=!0;try{O=P(!0,_)}finally{O?ne():(T=!1,P=null)}}else T=!1}var ne;if(typeof y=="function")ne=function(){y(L)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,J=j.port2;j.port1.onmessage=L,ne=function(){J.postMessage(null)}}else ne=function(){E(L,0)};function Y(_){P=_,T||(T=!0,ne())}function X(_,O){k=E(function(){_(e.unstable_now())},O)}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(_){_.callback=null},e.unstable_continueExecution=function(){g||p||(g=!0,Y(C))},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var O=3;break;default:O=f}var $=f;f=O;try{return _()}finally{f=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,O){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var $=f;f=_;try{return O()}finally{f=$}},e.unstable_scheduleCallback=function(_,O,$){var ee=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?ee+$:ee):$=ee,_){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=$+G,_={id:u++,callback:O,priorityLevel:_,startTime:$,expirationTime:G,sortIndex:-1},$>ee?(_.sortIndex=$,t(c,_),n(a)===null&&_===n(c)&&(m?(w(k),k=-1):m=!0,X(S,$-ee))):(_.sortIndex=G,t(a,_),g||p||(g=!0,Y(C))),_},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(_){var O=f;return function(){var $=f;f=O;try{return _.apply(this,arguments)}finally{f=$}}}})(Qy);Wy.exports=Qy;var E1=Wy.exports;/** 27 * @license React 28 * react-dom.production.min.js 29 * 30 * Copyright (c) Facebook, Inc. and its affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var S1=v,wt=E1;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Gy=new Set,si={};function os(e,t){Xs(e,t),Xs(e+"Capture",t)}function Xs(e,t){for(si[e]=t,e=0;e<t.length;e++)Gy.add(t[e])}var An=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gu=Object.prototype.hasOwnProperty,b1=/^[: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]*$/,Nh={},Oh={};function C1(e){return gu.call(Oh,e)?!0:gu.call(Nh,e)?!1:b1.test(e)?Oh[e]=!0:(Nh[e]=!0,!1)}function T1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function P1(e,t,n,r){if(t===null||typeof t>"u"||T1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function rt(e,t,n,r,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ue[e]=new rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ue[t]=new rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ue[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ue[e]=new rt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ue[e]=new rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ue[e]=new rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ue[e]=new rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ue[e]=new rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ue[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Jd=/[\-:]([a-z])/g;function Zd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Jd,Zd);Ue[t]=new rt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Jd,Zd);Ue[t]=new rt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Jd,Zd);Ue[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ue[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ue.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ue[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function ef(e,t,n,r){var s=Ue.hasOwnProperty(t)?Ue[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(P1(t,n,s,r)&&(n=null),r||s===null?C1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}
vendor: 5,498 bytes, lines 34-38
34var jn=S1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ea=Symbol.for("react.element"),ys=Symbol.for("react.portal"),vs=Symbol.for("react.fragment"),tf=Symbol.for("react.strict_mode"),yu=Symbol.for("react.profiler"),qy=Symbol.for("react.provider"),Ky=Symbol.for("react.context"),nf=Symbol.for("react.forward_ref"),vu=Symbol.for("react.suspense"),wu=Symbol.for("react.suspense_list"),rf=Symbol.for("react.memo"),Yn=Symbol.for("react.lazy"),Yy=Symbol.for("react.offscreen"),Ih=Symbol.iterator;function bo(e){return e===null||typeof e!="object"?null:(e=Ih&&e[Ih]||e["@@iterator"],typeof e=="function"?e:null)}var Ce=Object.assign,xc;function Lo(e){if(xc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);xc=t&&t[1]||""}return` 35`+xc+e}var Ec=!1;function Sc(e,t){if(!e||Ec)return"";Ec=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(` 36`),o=r.stack.split(` 37`),i=s.length-1,l=o.length-1;1<=i&&0<=l&&s[i]!==o[l];)l--;for(;1<=i&&0<=l;i--,l--)if(s[i]!==o[l]){if(i!==1||l!==1)do if(i--,l--,0>l||s[i]!==o[l]){var a=` 38`+s[i].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=i&&0<=l);break}}}finally{Ec=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Lo(e):""}function R1(e){switch(e.tag){case 5:return Lo(e.type);case 16:return Lo("Lazy");case 13:return Lo("Suspense");case 19:return Lo("SuspenseList");case 0:case 2:case 15:return e=Sc(e.type,!1),e;case 11:return e=Sc(e.type.render,!1),e;case 1:return e=Sc(e.type,!0),e;default:return""}}function xu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case vs:return"Fragment";case ys:return"Portal";case yu:return"Profiler";case tf:return"StrictMode";case vu:return"Suspense";case wu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ky:return(e.displayName||"Context")+".Consumer";case qy:return(e._context.displayName||"Context")+".Provider";case nf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rf:return t=e.displayName||null,t!==null?t:xu(e.type)||"Memo";case Yn:t=e._payload,e=e._init;try{return xu(e(t))}catch{}}return null}function A1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xu(t);case 8:return t===tf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Er(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function k1(e){var t=Xy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ta(e){e._valueTracker||(e._valueTracker=k1(e))}function Jy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Xy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ga(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Eu(e,t){var n=t.checked;return Ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Mh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Er(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Zy(e,t){t=t.checked,t!=null&&ef(e,"checked",t,!1)}function Su(e,t){Zy(e,t);var n=Er(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bu(e,t.type,n):t.hasOwnProperty("defaultValue")&&bu(e,t.type,Er(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}
vendor: 4,180 bytes, line 38
38function jh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function bu(e,t,n){(t!=="number"||Ga(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fo=Array.isArray;function Os(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Er(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Cu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(I(91));return Ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Dh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(I(92));if(Fo(n)){if(1<n.length)throw Error(I(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Er(n)}}function ev(e,t){var n=Er(t.value),r=Er(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function $h(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function tv(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Tu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?tv(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var na,nv=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(na=na||document.createElement("div"),na.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=na.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function oi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_1=["Webkit","ms","Moz","O"];Object.keys(Wo).forEach(function(e){_1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wo[t]=Wo[e]})});function rv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wo.hasOwnProperty(e)&&Wo[e]?(""+t).trim():t+"px"}function sv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=rv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var N1=Ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Pu(e,t){if(t){if(N1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function Ru(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
38ing";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Au=null;function sf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ku=null,Is=null,Ms=null;function Lh(e){if(e=Hi(e)){if(typeof ku!="function")throw Error(I(280));var t=e.stateNode;t&&(t=Ll(t),ku(e.stateNode,e.type,t))}}function ov(e){Is?Ms?Ms.push(e):Ms=[e]:Is=e}function iv(){if(Is){var e=Is,t=Ms;if(Ms=Is=null,Lh(e),t)for(e=0;e<t.length;e++)Lh(t[e])}}function av(e,t){return e(t)}function lv(){}var bc=!1;function cv(e,t,n){if(bc)return e(t,n);bc=!0;try{return av(e,t,n)}finally{bc=!1,(Is!==null||Ms!==null)&&(lv(),iv())}}function ii(e,t){var n=e.stateNode;if(n===null)return null;var r=Ll(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(I(231,t,typeof n));return n}var _u=!1;if(An)try{var Co={};Object.defineProperty(Co,"passive",{get:function(){_u=!0}}),window.addEventListener("test",Co,Co),window.removeEventListener("test",Co,Co)}catch{_u=!1}function O1(e,t,n,r,s,o,i,l,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Qo=!1,qa=null,Ka=!1,Nu=null,I1={onError:function(e){Qo=!0,qa=e}};function M1(e,t,n,r,s,o,i,l,a){Qo=!1,qa=null,O1.apply(I1,arguments)}function j1(e,t,n,r,s,o,i,l,a){if(M1.apply(this,arguments),Qo){if(Qo){var c=qa;Qo=!1,qa=null}else throw Error(I(198));Ka||(Ka=!0,Nu=c)}}function is(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function uv(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Fh(e){if(is(e)!==e)throw Error(I(188))}function D1(e){var t=e.alternate;if(!t){if(t=is(e),t===null)throw Error(I(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return Fh(s),e;if(o===r)return Fh(s),t;o=o.sibling}throw Error(I(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i)throw Error(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function dv(e){return e=D1(e),e!==null?fv(e):null}function fv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=fv(e);if(t!==null)return t;e=e.sibling}return null}var pv=wt.unstable_scheduleCallback,zh=wt.unstable_cancelCallback,$1=wt.unstable_shouldYield,L1=wt.unstable_requestPaint,Ae=wt.unstable_now,F1=wt.unstable_getCurrentPriorityLevel,of=wt.unstable_ImmediatePriority,hv=wt.unstable_UserBlockingPriority,Ya=wt.unstable_NormalPriority,z1=wt.unstable_LowPriority,mv=wt.unstable_IdlePriority,Ml=null,un=null;function U1(e){if(un&&typeof un.onCommitFiberRoot=="function")try{un.onCommitFiberRoot(Ml,e,void 0,(e.current.flags&128)===128)}catch{}}var Qt=Math.clz32?Math.clz32:V1,H1=Math.log,B1=Math.LN2;function V1(e){return e>>>=0,e===0?32:31-(H1(e)/B1|0)|0}var ra=64,sa=4194304;function zo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xa(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~s;l!==0?r=zo(l):(o&=i,o!==0&&(r=zo(o)))}else i=n&~s,i!==0?r=zo(i):o!==0&&(r=zo(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,o=t&-t,s>=o||s===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Qt(t),s=1<<n,r|=e[n],t&=~s;return r}function W1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Q1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Qt(o),l=1<<i,a=s[i];a===-1?(!(l&n)||l&r)&&(s[i]=W1(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function Ou(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}
vendor: 4,209 bytes, line 38
38function gv(){var e=ra;return ra<<=1,!(ra&4194240)&&(ra=64),e}function Cc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Qt(t),e[t]=n}function G1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Qt(n),o=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~o}}function af(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Qt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var pe=0;function yv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var vv,lf,wv,xv,Ev,Iu=!1,oa=[],dr=null,fr=null,pr=null,ai=new Map,li=new Map,Zn=[],q1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Uh(e,t){switch(e){case"focusin":case"focusout":dr=null;break;case"dragenter":case"dragleave":fr=null;break;case"mouseover":case"mouseout":pr=null;break;case"pointerover":case"pointerout":ai.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":li.delete(t.pointerId)}}function To(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[s]},t!==null&&(t=Hi(t),t!==null&&lf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function K1(e,t,n,r,s){switch(t){case"focusin":return dr=To(dr,e,t,n,r,s),!0;case"dragenter":return fr=To(fr,e,t,n,r,s),!0;case"mouseover":return pr=To(pr,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return ai.set(o,To(ai.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,li.set(o,To(li.get(o)||null,e,t,n,r,s)),!0}return!1}function Sv(e){var t=Dr(e.target);if(t!==null){var n=is(t);if(n!==null){if(t=n.tag,t===13){if(t=uv(n),t!==null){e.blockedOn=t,Ev(e.priority,function(){wv(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Aa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Mu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Au=r,n.target.dispatchEvent(r),Au=null}else return t=Hi(n),t!==null&&lf(t),e.blockedOn=n,!1;t.shift()}return!0}function Hh(e,t,n){Aa(e)&&n.delete(t)}function Y1(){Iu=!1,dr!==null&&Aa(dr)&&(dr=null),fr!==null&&Aa(fr)&&(fr=null),pr!==null&&Aa(pr)&&(pr=null),ai.forEach(Hh),li.forEach(Hh)}function Po(e,t){e.blockedOn===t&&(e.blockedOn=null,Iu||(Iu=!0,wt.unstable_scheduleCallback(wt.unstable_NormalPriority,Y1)))}function ci(e){function t(s){return Po(s,e)}if(0<oa.length){Po(oa[0],e);for(var n=1;n<oa.length;n++){var r=oa[n];r.blockedOn===e&&(r.blockedOn=null)}}for(dr!==null&&Po(dr,e),fr!==null&&Po(fr,e),pr!==null&&Po(pr,e),ai.forEach(t),li.forEach(t),n=0;n<Zn.length;n++)r=Zn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Zn.length&&(n=Zn[0],n.blockedOn===null);)Sv(n),n.blockedOn===null&&Zn.shift()}var js=jn.ReactCurrentBatchConfig,Ja=!0;function X1(e,t,n,r){var s=pe,o=js.transition;js.transition=null;try{pe=1,cf(e,t,n,r)}finally{pe=s,js.transition=o}}function J1(e,t,n,r){var s=pe,o=js.transition;js.transition=null;try{pe=4,cf(e,t,n,r)}finally{pe=s,js.transition=o}}function cf(e,t,n,r){if(Ja){var s=Mu(e,t,n,r);if(s===null)Mc(e,t,r,Za,n),Uh(e,r);else if(K1(s,e,t,n,r))r.stopPropagation();else if(Uh(e,r),t&4&&-1<q1.indexOf(e)){for(;s!==null;){var o=Hi(s);if(o!==null&&vv(o),o=Mu(e,t,n,r),o===null&&Mc(e,t,r,Za,n),o===s)break;s=o}s!==null&&r.stopPropagation()}else Mc(e,t,r,null,n)}}var Za=null;function Mu(e,t,n,r){if(Za=null,e=sf(r),e=Dr(e),e!==null)if(t=is(e),t===null)e=null;else if(n=t.tag,n===13){if(e=uv(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Za=e,null}
vendor: 12,178 bytes, line 38
38function bv(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(F1()){case of:return 1;case hv:return 4;case Ya:case z1:return 16;case mv:return 536870912;default:return 16}default:return 16}}var ar=null,uf=null,ka=null;function Cv(){if(ka)return ka;var e,t=uf,n=t.length,r,s="value"in ar?ar.value:ar.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return ka=s.slice(e,1<r?1-r:void 0)}function _a(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ia(){return!0}function Bh(){return!1}function bt(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ia:Bh,this.isPropagationStopped=Bh,this}return Ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ia)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ia)},persist:function(){},isPersistent:ia}),t}var fo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},df=bt(fo),Ui=Ce({},fo,{view:0,detail:0}),Z1=bt(Ui),Tc,Pc,Ro,jl=Ce({},Ui,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ff,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ro&&(Ro&&e.type==="mousemove"?(Tc=e.screenX-Ro.screenX,Pc=e.screenY-Ro.screenY):Pc=Tc=0,Ro=e),Tc)},movementY:function(e){return"movementY"in e?e.movementY:Pc}}),Vh=bt(jl),eS=Ce({},jl,{dataTransfer:0}),tS=bt(eS),nS=Ce({},Ui,{relatedTarget:0}),Rc=bt(nS),rS=Ce({},fo,{animationName:0,elapsedTime:0,pseudoElement:0}),sS=bt(rS),oS=Ce({},fo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),iS=bt(oS),aS=Ce({},fo,{data:0}),Wh=bt(aS),lS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cS={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"},uS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uS[e])?!!t[e]:!1}function ff(){return dS}var fS=Ce({},Ui,{key:function(e){if(e.key){var t=lS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_a(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ff,charCode:function(e){return e.type==="keypress"?_a(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_a(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),pS=bt(fS),hS=Ce({},jl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qh=bt(hS),mS=Ce({},Ui,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ff}),gS=bt(mS),yS=Ce({},fo,{propertyName:0,elapsedTime:0,pseudoElement:0}),vS=bt(yS),wS=Ce({},jl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),xS=bt(wS),ES=[9,13,27,32],pf=An&&"CompositionEvent"in window,Go=null;An&&"documentMode"in document&&(Go=document.documentMode);var SS=An&&"TextEvent"in window&&!Go,Tv=An&&(!pf||Go&&8<Go&&11>=Go),Gh=" ",qh=!1;function Pv(e,t){switch(e){case"keyup":return ES.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ws=!1;function bS(e,t){switch(e){case"compositionend":return Rv(t);case"keypress":return t.which!==32?null:(qh=!0,Gh);case"textInput":return e=t.data,e===Gh&&qh?null:e;default:return null}}function CS(e,t){if(ws)return e==="compositionend"||!pf&&Pv(e,t)?(e=Cv(),ka=uf=ar=null,ws=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Tv&&t.locale!=="ko"?null:t.data;default:return null}}var TS={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 Kh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!TS[e.type]:t==="textarea"}function Av(e,t,n,r){ov(r),t=el(t,"onChange"),0<t.length&&(n=new df("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qo=null,ui=null;function PS(e){Fv(e,0)}function Dl(e){var t=Ss(e);if(Jy(t))return e}function RS(e,t){if(e==="change")return t}var kv=!1;if(An){var Ac;if(An){var kc="oninput"in document;if(!kc){var Yh=document.createElement("div");Yh.setAttribute("oninput","return;"),kc=typeof Yh.oninput=="function"}Ac=kc}else Ac=!1;kv=Ac&&(!document.documentMode||9<document.documentMode)}function Xh(){qo&&(qo.detachEvent("onpropertychange",_v),ui=qo=null)}function _v(e){if(e.propertyName==="value"&&Dl(ui)){var t=[];Av(t,ui,e,sf(e)),cv(PS,t)}}function AS(e,t,n){e==="focusin"?(Xh(),qo=t,ui=n,qo.attachEvent("onpropertychange",_v)):e==="focusout"&&Xh()}function kS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Dl(ui)}function _S(e,t){if(e==="click")return Dl(t)}function NS(e,t){if(e==="input"||e==="change")return Dl(t)}function OS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qt=typeof Object.is=="function"?Object.is:OS;function di(e,t){if(qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!gu.call(t,s)||!qt(e[s],t[s]))return!1}return!0}function Jh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zh(e,t){var n=Jh(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Jh(n)}}function Nv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ov(){for(var e=window,t=Ga();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ga(e.document)}return t}function hf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function IS(e){var t=Ov(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Nv(n.ownerDocument.documentElement,n)){if(r!==null&&hf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,o=Math.min(r.start,s);r=r.end===void 0?o:Math.min(r.end,s),!e.extend&&o>r&&(s=r,r=o,o=s),s=Zh(n,o);var i=Zh(n,r);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var MS=An&&"documentMode"in document&&11>=document.documentMode,xs=null,ju=null,Ko=null,Du=!1;function em(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Du||xs==null||xs!==Ga(r)||(r=xs,"selectionStart"in r&&hf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ko&&di(Ko,r)||(Ko=r,r=el(ju,"onSelect"),0<r.length&&(t=new df("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xs)))}function aa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Es={animationend:aa("Animation","AnimationEnd"),animationiteration:aa("Animation","AnimationIteration"),animationstart:aa("Animation","AnimationStart"),transitionend:aa("Transition","TransitionEnd")},_c={},Iv={};An&&(Iv=document.createElement("div").style,"AnimationEvent"in window||(delete Es.animationend.animation,delete Es.animationiteration.animation,delete Es.animationstart.animation),"TransitionEvent"in window||delete Es.transitionend.transition);function $l(e){if(_c[e])return _c[e];if(!Es[e])return e;var t=Es[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Iv)return _c[e]=t[n];return e}var Mv=$l("animationend"),jv=$l("animationiteration"),Dv=$l("animationstart"),$v=$l("transitionend"),Lv=new Map,tm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Lv.set(e,t),os(t,[e])}for(var Nc=0;Nc<tm.length;Nc++){var Oc=tm[Nc],jS=Oc.toLowerCase(),DS=Oc[0].toUpperCase()+Oc.slice(1);
vendor: 5,251 bytes, line 38
38Rr(jS,"on"+DS)}Rr(Mv,"onAnimationEnd");Rr(jv,"onAnimationIteration");Rr(Dv,"onAnimationStart");Rr("dblclick","onDoubleClick");Rr("focusin","onFocus");Rr("focusout","onBlur");Rr($v,"onTransitionEnd");Xs("onMouseEnter",["mouseout","mouseover"]);Xs("onMouseLeave",["mouseout","mouseover"]);Xs("onPointerEnter",["pointerout","pointerover"]);Xs("onPointerLeave",["pointerout","pointerover"]);os("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));os("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));os("onBeforeInput",["compositionend","keypress","textInput","paste"]);os("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));os("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));os("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Uo="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(" "),$S=new Set("cancel close invalid load scroll toggle".split(" ").concat(Uo));function nm(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,j1(r,t,void 0,e),e.currentTarget=null}function Fv(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],a=l.instance,c=l.currentTarget;if(l=l.listener,a!==o&&s.isPropagationStopped())break e;nm(s,l,c),o=a}else for(i=0;i<r.length;i++){if(l=r[i],a=l.instance,c=l.currentTarget,l=l.listener,a!==o&&s.isPropagationStopped())break e;nm(s,l,c),o=a}}}if(Ka)throw e=Nu,Ka=!1,Nu=null,e}function ye(e,t){var n=t[Uu];n===void 0&&(n=t[Uu]=new Set);var r=e+"__bubble";n.has(r)||(zv(t,e,2,!1),n.add(r))}function Ic(e,t,n){var r=0;t&&(r|=4),zv(n,e,r,t)}var la="_reactListening"+Math.random().toString(36).slice(2);function fi(e){if(!e[la]){e[la]=!0,Gy.forEach(function(n){n!=="selectionchange"&&($S.has(n)||Ic(n,!1,e),Ic(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[la]||(t[la]=!0,Ic("selectionchange",!1,t))}}function zv(e,t,n,r){switch(bv(t)){case 1:var s=X1;break;case 4:s=J1;break;default:s=cf}n=s.bind(null,t,n,e),s=void 0,!_u||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Mc(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===s||a.nodeType===8&&a.parentNode===s))return;i=i.return}for(;l!==null;){if(i=Dr(l),i===null)return;if(a=i.tag,a===5||a===6){r=o=i;continue e}l=l.parentNode}}r=r.return}cv(function(){var c=o,u=sf(n),d=[];e:{var f=Lv.get(e);if(f!==void 0){var p=df,g=e;switch(e){case"keypress":if(_a(n)===0)break e;case"keydown":case"keyup":p=pS;break;case"focusin":g="focus",p=Rc;break;case"focusout":g="blur",p=Rc;break;case"beforeblur":case"afterblur":p=Rc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Vh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=tS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=gS;break;case Mv:case jv:case Dv:p=sS;break;case $v:p=vS;break;case"scroll":p=Z1;break;case"wheel":p=xS;break;case"copy":case"cut":case"paste":p=iS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Qh}var m=(t&4)!==0,E=!m&&e==="scroll",w=m?f!==null?f+"Capture":null:f;m=[];for(var y=c,x;y!==null;){x=y;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,w!==null&&(S=ii(y,w),S!=null&&m.push(pi(y,S,x)))),E)break;y=y.return}0<m.length&&(f=new p(f,g,null,n,u),d.push({event:f,listeners:m}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==Au&&(g=n.relatedTarget||n.fromElement)&&(Dr(g)||g[kn]))break e;if((p||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,p?(g=n.relatedTarget||n.toElement,p=c,g=g?Dr(g):null,g!==null&&(E=is(g),g!==E||g.tag!==5&&g.tag!==6)&&(g=null)):(p=null,g=c),p!==g)){if(m=Vh,S="onMouseLeave",w="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(m=Qh,S="onPointerLeave",w="onPointerEnter",y="pointer"),E=p==null?f:Ss(p),x=g==null?f:Ss(g),f=new m(S,y+"leave",p,n,u),f.target=E,f.relatedTarget=x,S=null,Dr(u)===c&&(m=new m(w,y+"enter",g,n,u),m.target=x,m.relatedTarget=E,S=m),E=S,p&&g)t:{for(m=p,w=g,y=0,x=m;x;x=ps(x))y++;for(x=0,S=w;S;S=ps(S))x++;for(;0<y-x;)m=ps(m),y--;for(;0<x-y;)w=ps(w),x--;for(;y--;){if(m===w||w!==null&&m===w.alternate)break t;m=ps(m),w=ps(w)}m=null}else m=null;p!==null&&rm(d,f,p,m,!1),g!==null&&E!==null&&rm(d,E,g,m,!0)}}
vendor: 7,582 bytes, lines 38-39
38e:{if(f=c?Ss(c):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var C=RS;else if(Kh(f))if(kv)C=NS;else{C=kS;var T=AS}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=_S);if(C&&(C=C(e,c))){Av(d,C,n,u);break e}T&&T(e,f,c),e==="focusout"&&(T=f._wrapperState)&&T.controlled&&f.type==="number"&&bu(f,"number",f.value)}switch(T=c?Ss(c):window,e){case"focusin":(Kh(T)||T.contentEditable==="true")&&(xs=T,ju=c,Ko=null);break;case"focusout":Ko=ju=xs=null;break;case"mousedown":Du=!0;break;case"contextmenu":case"mouseup":case"dragend":Du=!1,em(d,n,u);break;case"selectionchange":if(MS)break;case"keydown":case"keyup":em(d,n,u)}var P;if(pf)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else ws?Pv(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(Tv&&n.locale!=="ko"&&(ws||k!=="onCompositionStart"?k==="onCompositionEnd"&&ws&&(P=Cv()):(ar=u,uf="value"in ar?ar.value:ar.textContent,ws=!0)),T=el(c,k),0<T.length&&(k=new Wh(k,e,null,n,u),d.push({event:k,listeners:T}),P?k.data=P:(P=Rv(n),P!==null&&(k.data=P)))),(P=SS?bS(e,n):CS(e,n))&&(c=el(c,"onBeforeInput"),0<c.length&&(u=new Wh("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=P))}Fv(d,t)})}function pi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function el(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=ii(e,n),o!=null&&r.unshift(pi(e,o,s)),o=ii(e,t),o!=null&&r.push(pi(e,o,s))),e=e.return}return r}function ps(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function rm(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var l=n,a=l.alternate,c=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&c!==null&&(l=c,s?(a=ii(n,o),a!=null&&i.unshift(pi(n,a,l))):s||(a=ii(n,o),a!=null&&i.push(pi(n,a,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var LS=/\r\n?/g,FS=/\u0000|\uFFFD/g;function sm(e){return(typeof e=="string"?e:""+e).replace(LS,` 39`).replace(FS,"")}function ca(e,t,n){if(t=sm(t),sm(e)!==t&&n)throw Error(I(425))}function tl(){}var $u=null,Lu=null;function Fu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var zu=typeof setTimeout=="function"?setTimeout:void 0,zS=typeof clearTimeout=="function"?clearTimeout:void 0,om=typeof Promise=="function"?Promise:void 0,US=typeof queueMicrotask=="function"?queueMicrotask:typeof om<"u"?function(e){return om.resolve(null).then(e).catch(HS)}:zu;function HS(e){setTimeout(function(){throw e})}function jc(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),ci(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);ci(t)}function hr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function im(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),an="__reactFiber$"+po,hi="__reactProps$"+po,kn="__reactContainer$"+po,Uu="__reactEvents$"+po,BS="__reactListeners$"+po,VS="__reactHandles$"+po;function Dr(e){var t=e[an];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kn]||n[an]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=im(e);e!==null;){if(n=e[an])return n;e=im(e)}return t}e=n,n=e.parentNode}return null}function Hi(e){return e=e[an]||e[kn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ss(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function Ll(e){return e[hi]||null}var Hu=[],bs=-1;function Ar(e){return{current:e}}function ve(e){0>bs||(e.current=Hu[bs],Hu[bs]=null,bs--)}function me(e,t){bs++,Hu[bs]=e.current,e.current=t}var Sr={},Je=Ar(Sr),at=Ar(!1),Jr=Sr;function Js(e,t){var n=e.type.contextTypes;if(!n)return Sr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function lt(e){return e=e.childContextTypes,e!=null}function nl(){ve(at),ve(Je)}function am(e,t,n){if(Je.current!==Sr)throw Error(I(168));me(Je,t),me(at,n)}function Uv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(I(108,A1(e)||"Unknown",s));return Ce({},n,r)}function rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sr,Jr=Je.current,me(Je,e),me(at,at.current),!0}function lm(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=Uv(e,t,Jr),r.__reactInternalMemoizedMergedChildContext=e,ve(at),ve(Je),me(Je,e)):ve(at),me(at,n)}var Sn=null,Fl=!1,Dc=!1;function Hv(e){Sn===null?Sn=[e]:Sn.push(e)}function WS(e){Fl=!0,Hv(e)}function kr(){if(!Dc&&Sn!==null){Dc=!0;var e=0,t=pe;try{var n=Sn;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Sn=null,Fl=!1}catch(s){throw Sn!==null&&(Sn=Sn.slice(e+1)),pv(of,kr),s}finally{pe=t,Dc=!1}}return null}var Cs=[],Ts=0,sl=null,ol=0,At=[],kt=0,Zr=null,Cn=1,Tn="";function Mr(e,t){Cs[Ts++]=ol,Cs[Ts++]=sl,sl=e,ol=t}function Bv(e,t,n){At[kt++]=Cn,At[kt++]=Tn,At[kt++]=Zr,Zr=e;var r=Cn;e=Tn;var s=32-Qt(r)-1;r&=~(1<<s),n+=1;var o=32-Qt(t)+s;if(30<o){var i=s-s%5;o=(r&(1<<i)-1).toString(32),r>>=i,s-=i,Cn=1<<32-Qt(t)+s|n<<s|r,Tn=o+e}else Cn=1<<o|n<<s|r,Tn=e}function mf(e){e.return!==null&&(Mr(e,1),Bv(e,1,0))}function gf(e){for(;e===sl;)sl=Cs[--Ts],Cs[Ts]=null,ol=Cs[--Ts],Cs[Ts]=null;for(;e===Zr;)Zr=At[--kt],At[kt]=null,Tn=At[--kt],At[kt]=null,Cn=At[--kt],At[kt]=null}var yt=null,gt=null,xe=!1,Vt=null;function Vv(e,t){var n=_t(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function cm(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,yt=e,gt=hr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,yt=e,gt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Zr!==null?{id:Cn,overflow:Tn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=_t(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,yt=e,gt=null,!0):!1;default:return!1}}function Bu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Vu(e){if(xe){var t=gt;if(t){var n=t;if(!cm(e,t)){if(Bu(e))throw Error(I(418));t=hr(n.nextSibling);var r=yt;t&&cm(e,t)?Vv(r,n):(e.flags=e.flags&-4097|2,xe=!1,yt=e)}}else{if(Bu(e))throw Error(I(418));e.flags=e.flags&-4097|2,xe=!1,yt=e}}}function um(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;yt=e}function ua(e){if(e!==yt)return!1;if(!xe)return um(e),xe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Fu(e.type,e.memoizedProps)),t&&(t=gt)){if(Bu(e))throw Wv(),Error(I(418));for(;t;)Vv(e,t),t=hr(t.nextSibling)}if(um(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317)
vendor: 14,247 bytes, line 39
39);e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){gt=hr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}gt=null}}else gt=yt?hr(e.stateNode.nextSibling):null;return!0}function Wv(){for(var e=gt;e;)e=hr(e.nextSibling)}function Zs(){gt=yt=null,xe=!1}function yf(e){Vt===null?Vt=[e]:Vt.push(e)}var QS=jn.ReactCurrentBatchConfig;function Ao(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(I(309));var r=n.stateNode}if(!r)throw Error(I(147,e));var s=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var l=s.refs;i===null?delete l[o]:l[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(I(284));if(!n._owner)throw Error(I(290,e))}return e}function da(e,t){throw e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function dm(e){var t=e._init;return t(e._payload)}function Qv(e){function t(w,y){if(e){var x=w.deletions;x===null?(w.deletions=[y],w.flags|=16):x.push(y)}}function n(w,y){if(!e)return null;for(;y!==null;)t(w,y),y=y.sibling;return null}function r(w,y){for(w=new Map;y!==null;)y.key!==null?w.set(y.key,y):w.set(y.index,y),y=y.sibling;return w}function s(w,y){return w=vr(w,y),w.index=0,w.sibling=null,w}function o(w,y,x){return w.index=x,e?(x=w.alternate,x!==null?(x=x.index,x<y?(w.flags|=2,y):x):(w.flags|=2,y)):(w.flags|=1048576,y)}function i(w){return e&&w.alternate===null&&(w.flags|=2),w}function l(w,y,x,S){return y===null||y.tag!==6?(y=Bc(x,w.mode,S),y.return=w,y):(y=s(y,x),y.return=w,y)}function a(w,y,x,S){var C=x.type;return C===vs?u(w,y,x.props.children,S,x.key):y!==null&&(y.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Yn&&dm(C)===y.type)?(S=s(y,x.props),S.ref=Ao(w,y,x),S.return=w,S):(S=$a(x.type,x.key,x.props,null,w.mode,S),S.ref=Ao(w,y,x),S.return=w,S)}function c(w,y,x,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=Vc(x,w.mode,S),y.return=w,y):(y=s(y,x.children||[]),y.return=w,y)}function u(w,y,x,S,C){return y===null||y.tag!==7?(y=qr(x,w.mode,S,C),y.return=w,y):(y=s(y,x),y.return=w,y)}function d(w,y,x){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Bc(""+y,w.mode,x),y.return=w,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ea:return x=$a(y.type,y.key,y.props,null,w.mode,x),x.ref=Ao(w,null,y),x.return=w,x;case ys:return y=Vc(y,w.mode,x),y.return=w,y;case Yn:var S=y._init;return d(w,S(y._payload),x)}if(Fo(y)||bo(y))return y=qr(y,w.mode,x,null),y.return=w,y;da(w,y)}return null}function f(w,y,x,S){var C=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return C!==null?null:l(w,y,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ea:return x.key===C?a(w,y,x,S):null;case ys:return x.key===C?c(w,y,x,S):null;case Yn:return C=x._init,f(w,y,C(x._payload),S)}if(Fo(x)||bo(x))return C!==null?null:u(w,y,x,S,null);da(w,x)}return null}function p(w,y,x,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return w=w.get(x)||null,l(y,w,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ea:return w=w.get(S.key===null?x:S.key)||null,a(y,w,S,C);case ys:return w=w.get(S.key===null?x:S.key)||null,c(y,w,S,C);case Yn:var T=S._init;return p(w,y,x,T(S._payload),C)}if(Fo(S)||bo(S))return w=w.get(x)||null,u(y,w,S,C,null);da(y,S)}return null}function g(w,y,x,S){for(var C=null,T=null,P=y,k=y=0,D=null;P!==null&&k<x.length;k++){P.index>k?(D=P,P=null):D=P.sibling;var M=f(w,P,x[k],S);if(M===null){P===null&&(P=D);break}e&&P&&M.alternate===null&&t(w,P),y=o(M,y,k),T===null?C=M:T.sibling=M,T=M,P=D}if(k===x.length)return n(w,P),xe&&Mr(w,k),C;if(P===null){for(;k<x.length;k++)P=d(w,x[k],S),P!==null&&(y=o(P,y,k),T===null?C=P:T.sibling=P,T=P);return xe&&Mr(w,k),C}for(P=r(w,P);k<x.length;k++)D=p(P,w,k,x[k],S),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?k:D.key),y=o(D,y,k),T===null?C=D:T.sibling=D,T=D);return e&&P.forEach(function(B){return t(w,B)}),xe&&Mr(w,k),C}function m(w,y,x,S){var C=bo(x);if(typeof C!="function")throw Error(I(150));if(x=C.call(x),x==null)throw Error(I(151));for(var T=C=null,P=y,k=y=0,D=null,M=x.next();P!==null&&!M.done;k++,M=x.next()){P.index>k?(D=P,P=null):D=P.sibling;var B=f(w,P,M.value,S);if(B===null){P===null&&(P=D);break}e&&P&&B.alternate===null&&t(w,P),y=o(B,y,k),T===null?C=B:T.sibling=B,T=B,P=D}if(M.done)return n(w,P),xe&&Mr(w,k),C;if(P===null){for(;!M.done;k++,M=x.next())M=d(w,M.value,S),M!==null&&(y=o(M,y,k),T===null?C=M:T.sibling=M,T=M);return xe&&Mr(w,k),C}for(P=r(w,P);!M.done;k++,M=x.next())M=p(P,w,k,M.value,S),M!==null&&(e&&M.alternate!==null&&P.delete(M.key===null?k:M.key),y=o(M,y,k),T===null?C=M:T.sibling=M,T=M);return e&&P.forEach(function(L){return t(w,L)}),xe&&Mr(w,k),C}function E(w,y,x,S){if(typeof x=="object"&&x!==null&&x.type===vs&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case ea:e:{for(var C=x.key,T=y;T!==null;){if(T.key===C){if(C=x.type,C===vs){if(T.tag===7){n(w,T.sibling),y=s(T,x.props.children),y.return=w,w=y;break e}}else if(T.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Yn&&dm(C)===T.type){n(w,T.sibling),y=s(T,x.props),y.ref=Ao(w,T,x),y.return=w,w=y;break e}n(w,T);break}else t(w,T);T=T.sibling}x.type===vs?(y=qr(x.props.children,w.mode,S,x.key),y.return=w,w=y):(S=$a(x.type,x.key,x.props,null,w.mode,S),S.ref=Ao(w,y,x),S.return=w,w=S)}return i(w);case ys:e:{for(T=x.key;y!==null;){if(y.key===T)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(w,y.sibling),y=s(y,x.children||[]),y.return=w,w=y;break e}else{n(w,y);break}else t(w,y);y=y.sibling}y=Vc(x,w.mode,S),y.return=w,w=y}return i(w);case Yn:return T=x._init,E(w,y,T(x._payload),S)}if(Fo(x))return g(w,y,x,S);if(bo(x))return m(w,y,x,S);da(w,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(w,y.sibling),y=s(y,x),y.return=w,w=y):(n(w,y),y=Bc(x,w.mode,S),y.return=w,w=y),i(w)):n(w,y)}return E}var eo=Qv(!0),Gv=Qv(!1),il=Ar(null),al=null,Ps=null,vf=null;function wf(){vf=Ps=al=null}function xf(e){var t=il.current;ve(il),e._currentValue=t}function Wu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ds(e,t){al=e,vf=Ps=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(it=!0),e.firstContext=null)}function Ot(e){var t=e._currentValue;if(vf!==e)if(e={context:e,memoizedValue:t,next:null},Ps===null){if(al===null)throw Error(I(308));Ps=e,al.dependencies={lanes:0,firstContext:e}}else Ps=Ps.next=e;return t}var $r=null;function Ef(e){$r===null?$r=[e]:$r.push(e)}function qv(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Ef(t)):(n.next=s.next,s.next=n),t.interleaved=n,_n(e,r)}function _n(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Xn=!1;function Sf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Kv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Pn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,_n(e,n)}return s=r.interleaved,s===null?(t.next=t,Ef(r)):(t.next=s.next,s.next=t),r.interleaved=t,_n(e,n)}function Na(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,af(e,n)}}function fm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ll(e,t,n,r){var s=e.updateQueue;Xn=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var a=l,c=a.next;a.next=null,i===null?o=c:i.next=c,i=a;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==i&&(l===null?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=a))}if(o!==null){var d=s.baseState;i=0,u=c=a=null,l=o;do{var f=l.lane,p=l.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,m=l;switch(f=t,p=n,m.tag){case 1:if(g=m.payload,typeof g=="function"){d=g.call(p,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=m.payload,f=typeof g=="function"?g.call(p,d,f):g,f==null)break e;d=Ce({},d,f);break e;case 2:Xn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=s.effects,f===null?s.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(c=u=p,a=d):u=u.next=p,i|=f;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;f=l,l=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(u===null&&(a=d),s.baseState=a,s.firstBaseUpdate=c,s.lastBaseUpdate=u,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);ts|=i,e.lanes=i,e.memoizedState=d}}function pm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(I(191,s));s.call(r)}}}var Bi={},dn=Ar(Bi),mi=Ar(Bi),gi=Ar(Bi);function Lr(e){if(e===Bi)throw Error(I(174));return e}function bf(e,t){switch(me(gi,t),me(mi,e),me(dn,Bi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Tu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Tu(t,e)}ve(dn),me(dn,t)}function to(){ve(dn),ve(mi),ve(gi)}function Yv(e){Lr(gi.current);var t=Lr(dn.current),n=Tu(t,e.type);t!==n&&(me(mi,e),me(dn,n))}function Cf(e){mi.current===e&&(ve(dn),ve(mi))}var Ee=Ar(0);function cl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $c=[];function Tf(){for(var e=0;e<$c.length;e++)$c[e]._workInProgressVersionPrimary=null;$c.length=0}var Oa=jn.ReactCurrentDispatcher,Lc=jn.ReactCurrentBatchConfig,es=0,Se=null,Ie=null,$e=null,ul=!1,Yo=!1,yi=0,GS=0;function We(){throw Error(I(321))}function Pf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qt(e[n],t[n]))return!1;return!0}function Rf(e,t,n,r,s,o){if(es=o,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Oa.current=e===null||e.memoizedState===null?XS:JS,e=n(r,s),Yo){o=0;do{if(Yo=!1,yi=0,25<=o)throw Error(I(301));o+=1,$e=Ie=null,t.updateQueue=null,Oa.current=ZS,e=n(r,s)}while(Yo)}if(Oa.current=dl,t=Ie!==null&&Ie.next!==null,es=0,$e=Ie=Se=null,ul=!1,t)throw Error(I(300));return e}function Af(){var e=yi!==0;return yi=0,e}function tn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?Se.memoizedState=$e=e:$e=$e.next=e,$e}function It(){if(Ie===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=$e===null?Se.memoizedState:$e.next;if(t!==null)$e=t,Ie=e;else{if(e===null)throw Error(I(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},$e===null?Se.memoizedState=$e=e:$e=$e.next=e}return $e}function vi(e,t){return typeof t=="function"?t(e):t}function Fc(e){var t=It(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=Ie,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){o=s.next,r=r.baseState;var l=i=null,a=null,c=o;do{var u=c.lane;if((es&u)===u)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(l=a=d,i=r):a=a.next=d,Se.lanes|=u,ts|=u}c=c.next}while(c!==null&&c!==o);a===null?i=r:a.next=l,qt(r,t.memoizedState)||(it=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do o=s.lane,Se.lanes|=o,ts|=o,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function zc(e){var t=It(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);qt(o,t.memoizedState)||(it=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Xv(){}function Jv(e,t){var n=Se,r=It(),s=t(),o=!qt(r.memoizedState,s);if(o&&(r.memoizedState=s,it=!0),r=r.queue,kf(t0.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||$e!==null&&$e.memoizedState.tag&1){if(n.flags|=2048,wi(9,e0.bind(null,n,r,s,t),void 0,null),Le===null)throw Error(I(349));es&30||Zv(n,t,s)}return s}function Zv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function e0(e,t,n,r){t.value=n,t.getSnapshot=r,n0(t)&&r0(e)}
vendor: 5,411 bytes, line 39
39function t0(e,t,n){return n(function(){n0(t)&&r0(e)})}function n0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qt(e,n)}catch{return!0}}function r0(e){var t=_n(e,1);t!==null&&Gt(t,e,1,-1)}function hm(e){var t=tn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vi,lastRenderedState:e},t.queue=e,e=e.dispatch=YS.bind(null,Se,e),[t.memoizedState,e]}function wi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function s0(){return It().memoizedState}function Ia(e,t,n,r){var s=tn();Se.flags|=e,s.memoizedState=wi(1|t,n,void 0,r===void 0?null:r)}function zl(e,t,n,r){var s=It();r=r===void 0?null:r;var o=void 0;if(Ie!==null){var i=Ie.memoizedState;if(o=i.destroy,r!==null&&Pf(r,i.deps)){s.memoizedState=wi(t,n,o,r);return}}Se.flags|=e,s.memoizedState=wi(1|t,n,o,r)}function mm(e,t){return Ia(8390656,8,e,t)}function kf(e,t){return zl(2048,8,e,t)}function o0(e,t){return zl(4,2,e,t)}function i0(e,t){return zl(4,4,e,t)}function a0(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function l0(e,t,n){return n=n!=null?n.concat([e]):null,zl(4,4,a0.bind(null,t,e),n)}function _f(){}function c0(e,t){var n=It();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Pf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function u0(e,t){var n=It();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Pf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function d0(e,t,n){return es&21?(qt(n,t)||(n=gv(),Se.lanes|=n,ts|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,it=!0),e.memoizedState=n)}function qS(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=Lc.transition;Lc.transition={};try{e(!1),t()}finally{pe=n,Lc.transition=r}}function f0(){return It().memoizedState}function KS(e,t,n){var r=yr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},p0(e))h0(t,n);else if(n=qv(e,t,n,r),n!==null){var s=tt();Gt(n,e,r,s),m0(n,t,r)}}function YS(e,t,n){var r=yr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(p0(e))h0(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,l=o(i,n);if(s.hasEagerState=!0,s.eagerState=l,qt(l,i)){var a=t.interleaved;a===null?(s.next=s,Ef(t)):(s.next=a.next,a.next=s),t.interleaved=s;return}}catch{}finally{}n=qv(e,t,s,r),n!==null&&(s=tt(),Gt(n,e,r,s),m0(n,t,r))}}function p0(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function h0(e,t){Yo=ul=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function m0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,af(e,n)}}var dl={readContext:Ot,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},XS={readContext:Ot,useCallback:function(e,t){return tn().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:mm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ia(4194308,4,a0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ia(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ia(4,2,e,t)},useMemo:function(e,t){var n=tn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=tn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=KS.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=tn();return e={current:e},t.memoizedState=e},useState:hm,useDebugValue:_f,useDeferredValue:function(e){return tn().memoizedState=e},useTransition:function(){var e=hm(!1),t=e[0];return e=qS.bind(null,e[1]),tn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,s=tn();if(xe){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),Le===null)throw Error(I(349));es&30||Zv(r,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,mm(t0.bind(null,r,o,e),[e]),r.flags|=2048,wi(9,e0.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=tn(),t=Le.identifierPrefix;if(xe){var n=Tn,r=Cn;n=(r&~(1<<32-Qt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=GS++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},JS={readContext:Ot,useCallback:c0,useContext:Ot,useEffect:kf,useImperativeHandle:l0,useInsertionEffect:o0,useLayoutEffect:i0,useMemo:u0,useReducer:Fc,useRef:s0,useState:function(){return Fc(vi)},useDebugValue:_f,useDeferredValue:function(e){var t=It();return d0(t,Ie.memoizedState,e)},useTransition:function(){var e=Fc(vi)[0],t=It().memoizedState;return[e,t]},useMutableSource:Xv,useSyncExternalStore:Jv,useId:f0,unstable_isNewReconciler:!1},ZS={readContext:Ot,useCallback:c0,useContext:Ot,useEffect:kf,useImperativeHandle:l0,useInsertionEffect:o0,useLayoutEffect:i0,useMemo:u0,useReducer:zc,useRef
vendor: 4,086 bytes, lines 39-41
39:s0,useState:function(){return zc(vi)},useDebugValue:_f,useDeferredValue:function(e){var t=It();return Ie===null?t.memoizedState=e:d0(t,Ie.memoizedState,e)},useTransition:function(){var e=zc(vi)[0],t=It().memoizedState;return[e,t]},useMutableSource:Xv,useSyncExternalStore:Jv,useId:f0,unstable_isNewReconciler:!1};function Ft(e,t){if(e&&e.defaultProps){t=Ce({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Qu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ul={isMounted:function(e){return(e=e._reactInternals)?is(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tt(),s=yr(e),o=Pn(r,s);o.payload=t,n!=null&&(o.callback=n),t=mr(e,o,s),t!==null&&(Gt(t,e,s,r),Na(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tt(),s=yr(e),o=Pn(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=mr(e,o,s),t!==null&&(Gt(t,e,s,r),Na(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tt(),r=yr(e),s=Pn(n,r);s.tag=2,t!=null&&(s.callback=t),t=mr(e,s,r),t!==null&&(Gt(t,e,r,n),Na(t,e,r))}};function gm(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!di(n,r)||!di(s,o):!0}function g0(e,t,n){var r=!1,s=Sr,o=t.contextType;return typeof o=="object"&&o!==null?o=Ot(o):(s=lt(t)?Jr:Je.current,r=t.contextTypes,o=(r=r!=null)?Js(e,s):Sr),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ul,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function ym(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ul.enqueueReplaceState(t,t.state,null)}function Gu(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Sf(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Ot(o):(o=lt(t)?Jr:Je.current,s.context=Js(e,o)),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Qu(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Ul.enqueueReplaceState(s,s.state,null),ll(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function no(e,t){try{var n="",r=t;do n+=R1(r),r=r.return;while(r);var s=n}catch(o){s=` 40Error generating stack: `+o.message+` 41`+o.stack}return{value:e,source:t,stack:s,digest:null}}function Uc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function qu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var eb=typeof WeakMap=="function"?WeakMap:Map;function y0(e,t,n){n=Pn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,sd=r),qu(e,t)},n}function v0(e,t,n){n=Pn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){qu(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){qu(e,t),typeof r!="function"&&(gr===null?gr=new Set([this]):gr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function vm(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new eb;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=hb.bind(null,e,t,n),t.then(e,e))}function wm(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}
vendor: 10,061 bytes, line 41
41function xm(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Pn(-1,1),t.tag=2,mr(n,t,1))),n.lanes|=1),e)}var tb=jn.ReactCurrentOwner,it=!1;function Ze(e,t,n,r){t.child=e===null?Gv(t,null,n,r):eo(t,e.child,n,r)}function Em(e,t,n,r,s){n=n.render;var o=t.ref;return Ds(t,s),r=Rf(e,t,n,r,o,s),n=Af(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Nn(e,t,s)):(xe&&n&&mf(t),t.flags|=1,Ze(e,t,r,s),t.child)}function Sm(e,t,n,r,s){if(e===null){var o=n.type;return typeof o=="function"&&!Lf(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,w0(e,t,o,r,s)):(e=$a(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:di,n(i,r)&&e.ref===t.ref)return Nn(e,t,s)}return t.flags|=1,e=vr(o,r),e.ref=t.ref,e.return=t,t.child=e}function w0(e,t,n,r,s){if(e!==null){var o=e.memoizedProps;if(di(o,r)&&e.ref===t.ref)if(it=!1,t.pendingProps=r=o,(e.lanes&s)!==0)e.flags&131072&&(it=!0);else return t.lanes=e.lanes,Nn(e,t,s)}return Ku(e,t,n,r,s)}function x0(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},me(As,pt),pt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,me(As,pt),pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,me(As,pt),pt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,me(As,pt),pt|=r;return Ze(e,t,s,n),t.child}function E0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ku(e,t,n,r,s){var o=lt(n)?Jr:Je.current;return o=Js(t,o),Ds(t,s),n=Rf(e,t,n,r,o,s),r=Af(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Nn(e,t,s)):(xe&&r&&mf(t),t.flags|=1,Ze(e,t,n,s),t.child)}function bm(e,t,n,r,s){if(lt(n)){var o=!0;rl(t)}else o=!1;if(Ds(t,s),t.stateNode===null)Ma(e,t),g0(t,n,r),Gu(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var a=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ot(c):(c=lt(n)?Jr:Je.current,c=Js(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||a!==c)&&ym(t,i,r,c),Xn=!1;var f=t.memoizedState;i.state=f,ll(t,r,i,s),a=t.memoizedState,l!==r||f!==a||at.current||Xn?(typeof u=="function"&&(Qu(t,n,u,r),a=t.memoizedState),(l=Xn||gm(t,n,l,r,f,a,c))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=c,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Kv(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Ft(t.type,l),i.props=c,d=t.pendingProps,f=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ot(a):(a=lt(n)?Jr:Je.current,a=Js(t,a));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==d||f!==a)&&ym(t,i,r,a),Xn=!1,f=t.memoizedState,i.state=f,ll(t,r,i,s);var g=t.memoizedState;l!==d||f!==g||at.current||Xn?(typeof p=="function"&&(Qu(t,n,p,r),g=t.memoizedState),(c=Xn||gm(t,n,c,r,f,g,a)||!1)?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,g,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,g,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),i.props=r,i.state=g,i.context=a,r=c):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Yu(e,t,n,r,o,s)}function Yu(e,t,n,r,s,o){E0(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return s&&lm(t,n,!1),Nn(e,t,o);r=t.stateNode,tb.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=eo(t,e.child,null,o),t.child=eo(t,null,l,o)):Ze(e,t,l,o),t.memoizedState=r.state,s&&lm(t,n,!0),t.child}function S0(e){var t=e.stateNode;t.pendingContext?am(e,t.pendingContext,t.pendingContext!==t.context):t.context&&am(e,t.context,!1),bf(e,t.containerInfo)}function Cm(e,t,n,r,s){return Zs(),yf(s),t.flags|=256,Ze(e,t,n,r),t.child}var Xu={dehydrated:null,treeContext:null,retryLane:0};function Ju(e){return{baseLanes:e,cachePool:null,transitions:null}}function b0(e,t,n){var r=t.pendingProps,s=Ee.current,o=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),me(Ee,s&1),e===null)return Vu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Vl(i,r,0,null),e=qr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ju(n),t.memoizedState=Xu,e):Nf(t,i));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return nb(e,t,i,r,l,s,n);if(o){o=r.fallback,i=t.mode,s=e.child,l=s.sibling;var a={mode:"hidden",children:r.children};return!(i&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=vr(s,a),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?o=vr(l,o):(o=qr(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?Ju(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Xu,r}return o=e.child,e=o.sibling,r=vr(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Nf(e,t){return t=Vl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fa(e,t,n,r){return r!==null&&yf(r),eo(t,e.child,null,n),e=Nf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nb(e,t,n,r,s,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Uc(Error(I(422))),fa(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,s=t.mode,r=Vl({mode:"visible",children:r.children},s,0,null),o=qr(o,s,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&eo(t,e.child,null,i),t.child.memoizedState=Ju(i),t.memoizedState=Xu,o);if(!(t.mode&1))return fa(e,t,i,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(I(419)),r=Uc(o,r,void 0),fa(e,t,i,r)}if(l=(i&e.childLanes)!==0,it||l){if(r=Le,r!==null){switch(i&-i){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,_n(e,s),Gt(r,e,s,-1))}return $f(),r=Uc(Error(I(421))),fa(e,t,i,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=mb.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,gt=hr(s.nextSibling),yt=t,xe=!0,Vt=null,e!==null&&(At[kt++]=Cn,At[kt++]=Tn,At[kt++]=Zr,Cn=e.id,Tn=e.overflow,Zr=t),t=Nf(t,r.children),t.flags|=4096,t)}function Tm(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wu(e.return,t,n)}function Hc(e,t,n,r,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=s)}function C0(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(Ze(e,t,r.children,n),r=Ee.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Tm(e,n,t);else if(e.tag===19)Tm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(me(Ee,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&cl(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Hc(t,!1,s,n,o);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&cl(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Hc(t,!0,n,null,o);break;case"together":Hc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ma(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Nn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ts|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(I(153));
vendor: 5,451 bytes, line 41
41if(t.child!==null){for(e=t.child,n=vr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function rb(e,t,n){switch(t.tag){case 3:S0(t),Zs();break;case 5:Yv(t);break;case 1:lt(t.type)&&rl(t);break;case 4:bf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;me(il,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(me(Ee,Ee.current&1),t.flags|=128,null):n&t.child.childLanes?b0(e,t,n):(me(Ee,Ee.current&1),e=Nn(e,t,n),e!==null?e.sibling:null);me(Ee,Ee.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return C0(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),me(Ee,Ee.current),r)break;return null;case 22:case 23:return t.lanes=0,x0(e,t,n)}return Nn(e,t,n)}var T0,Zu,P0,R0;T0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Zu=function(){};P0=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Lr(dn.current);var o=null;switch(n){case"input":s=Eu(e,s),r=Eu(e,r),o=[];break;case"select":s=Ce({},s,{value:void 0}),r=Ce({},r,{value:void 0}),o=[];break;case"textarea":s=Cu(e,s),r=Cu(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=tl)}Pu(n,r);var i;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var l=s[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(si.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var a=r[c];if(l=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&a!==l&&(a!=null||l!=null))if(c==="style")if(l){for(i in l)!l.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&l[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(o||(o=[]),o.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(si.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&ye("scroll",e),o||l===a||(o=[])):(o=o||[]).push(c,a))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};R0=function(e,t,n,r){n!==r&&(t.flags|=4)};function ko(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function sb(e,t,n){var r=t.pendingProps;switch(gf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return lt(t.type)&&nl(),Qe(t),null;case 3:return r=t.stateNode,to(),ve(at),ve(Je),Tf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ua(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vt!==null&&(ad(Vt),Vt=null))),Zu(e,t),Qe(t),null;case 5:Cf(t);var s=Lr(gi.current);if(n=t.type,e!==null&&t.stateNode!=null)P0(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(I(166));return Qe(t),null}if(e=Lr(dn.current),ua(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[an]=t,r[hi]=o,e=(t.mode&1)!==0,n){case"dialog":ye("cancel",r),ye("close",r);break;case"iframe":case"object":case"embed":ye("load",r);break;case"video":case"audio":for(s=0;s<Uo.length;s++)ye(Uo[s],r);break;case"source":ye("error",r);break;case"img":case"image":case"link":ye("error",r),ye("load",r);break;case"details":ye("toggle",r);break;case"input":Mh(r,o),ye("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},ye("invalid",r);break;case"textarea":Dh(r,o),ye("invalid",r)}Pu(n,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var l=o[i];i==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&ca(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&ca(r.textContent,l,e),s=["children",""+l]):si.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&ye("scroll",r)}switch(n){case"input":ta(r),jh(r,o,!0);break;case"textarea":ta(r),$h(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=tl)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=tv(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>
41",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[an]=t,e[hi]=r,T0(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ru(n,r),n){case"dialog":ye("cancel",e),ye("close",e),s=r;break;case"iframe":case"object":case"embed":ye("load",e),s=r;break;case"video":case"audio":for(s=0;s<Uo.length;s++)ye(Uo[s],e);s=r;break;case"source":ye("error",e),s=r;break;case"img":case"image":case"link":ye("error",e),ye("load",e),s=r;break;case"details":ye("toggle",e),s=r;break;case"input":Mh(e,r),s=Eu(e,r),ye("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Ce({},r,{value:void 0}),ye("invalid",e);break;case"textarea":Dh(e,r),s=Cu(e,r),ye("invalid",e);break;default:s=r}Pu(n,s),l=s;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?sv(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&nv(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&oi(e,a):typeof a=="number"&&oi(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(si.hasOwnProperty(o)?a!=null&&o==="onScroll"&&ye("scroll",e):a!=null&&ef(e,o,a,i))}switch(n){case"input":ta(e),jh(e,r,!1);break;case"textarea":ta(e),$h(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Er(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Os(e,!!r.multiple,o,!1):r.defaultValue!=null&&Os(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=tl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Qe(t),null;case 6:if(e&&t.stateNode!=null)R0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(n=Lr(gi.current),Lr(dn.current),ua(t)){if(r=t.stateNode,n=t.memoizedProps,r[an]=t,(o=r.nodeValue!==n)&&(e=yt,e!==null))switch(e.tag){case 3:ca(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ca(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[an]=t,t.stateNode=r}return Qe(t),null;case 13:if(ve(Ee),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xe&>!==null&&t.mode&1&&!(t.flags&128))Wv(),Zs(),t.flags|=98560,o=!1;else if(o=ua(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(I(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(I(317)
vendor: 4,408 bytes, line 41
41);o[an]=t}else Zs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Qe(t),o=!1}else Vt!==null&&(ad(Vt),Vt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ee.current&1?je===0&&(je=3):$f())),t.updateQueue!==null&&(t.flags|=4),Qe(t),null);case 4:return to(),Zu(e,t),e===null&&fi(t.stateNode.containerInfo),Qe(t),null;case 10:return xf(t.type._context),Qe(t),null;case 17:return lt(t.type)&&nl(),Qe(t),null;case 19:if(ve(Ee),o=t.memoizedState,o===null)return Qe(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)ko(o,!1);else{if(je!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=cl(e),i!==null){for(t.flags|=128,ko(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return me(Ee,Ee.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ae()>ro&&(t.flags|=128,r=!0,ko(o,!1),t.lanes=4194304)}else{if(!r)if(e=cl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ko(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!xe)return Qe(t),null}else 2*Ae()-o.renderingStartTime>ro&&n!==1073741824&&(t.flags|=128,r=!0,ko(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ae(),t.sibling=null,n=Ee.current,me(Ee,r?n&1|2:n&1),t):(Qe(t),null);case 22:case 23:return Df(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?pt&1073741824&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function ob(e,t){switch(gf(t),t.tag){case 1:return lt(t.type)&&nl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return to(),ve(at),ve(Je),Tf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Cf(t),null;case 13:if(ve(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));Zs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(Ee),null;case 4:return to(),null;case 10:return xf(t.type._context),null;case 22:case 23:return Df(),null;case 24:return null;default:return null}}var pa=!1,Xe=!1,ib=typeof WeakSet=="function"?WeakSet:Set,F=null;function Rs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Re(e,t,r)}else n.current=null}function ed(e,t,n){try{n()}catch(r){Re(e,t,r)}}var Pm=!1;function ab(e,t){if($u=Ja,e=Ov(),hf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,l=-1,a=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||s!==0&&d.nodeType!==3||(l=i+s),d!==o||r!==0&&d.nodeType!==3||(a=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===s&&(l=i),f===o&&++u===r&&(a=i),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lu={focusedElem:e,selectionRange:n},Ja=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,E=g.memoizedState,w=t.stateNode,y=w.getSnapshotBeforeUpdate(t.elementType===t.type?m:Ft(t.type,m),E);w.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;
vendor: 1,660 bytes, line 41
41case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(S){Re(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return g=Pm,Pm=!1,g}function Xo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,o!==void 0&&ed(t,n,o)}s=s.next}while(s!==r)}}function Hl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function td(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function A0(e){var t=e.alternate;t!==null&&(e.alternate=null,A0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[an],delete t[hi],delete t[Uu],delete t[BS],delete t[VS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function k0(e){return e.tag===5||e.tag===3||e.tag===4}function Rm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||k0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tl));
vendor: 19,465 bytes, line 41
41else if(r!==4&&(e=e.child,e!==null))for(nd(e,t,n),e=e.sibling;e!==null;)nd(e,t,n),e=e.sibling}function rd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(rd(e,t,n),e=e.sibling;e!==null;)rd(e,t,n),e=e.sibling}var Fe=null,Bt=!1;function Vn(e,t,n){for(n=n.child;n!==null;)_0(e,t,n),n=n.sibling}function _0(e,t,n){if(un&&typeof un.onCommitFiberUnmount=="function")try{un.onCommitFiberUnmount(Ml,n)}catch{}switch(n.tag){case 5:Xe||Rs(n,t);case 6:var r=Fe,s=Bt;Fe=null,Vn(e,t,n),Fe=r,Bt=s,Fe!==null&&(Bt?(e=Fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fe.removeChild(n.stateNode));break;case 18:Fe!==null&&(Bt?(e=Fe,n=n.stateNode,e.nodeType===8?jc(e.parentNode,n):e.nodeType===1&&jc(e,n),ci(e)):jc(Fe,n.stateNode));break;case 4:r=Fe,s=Bt,Fe=n.stateNode.containerInfo,Bt=!0,Vn(e,t,n),Fe=r,Bt=s;break;case 0:case 11:case 14:case 15:if(!Xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&ed(n,t,i),s=s.next}while(s!==r)}Vn(e,t,n);break;case 1:if(!Xe&&(Rs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Re(n,t,l)}Vn(e,t,n);break;case 21:Vn(e,t,n);break;case 22:n.mode&1?(Xe=(r=Xe)||n.memoizedState!==null,Vn(e,t,n),Xe=r):Vn(e,t,n);break;default:Vn(e,t,n)}}function Am(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ib),t.forEach(function(r){var s=gb.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function $t(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var o=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:Fe=l.stateNode,Bt=!1;break e;case 3:Fe=l.stateNode.containerInfo,Bt=!0;break e;case 4:Fe=l.stateNode.containerInfo,Bt=!0;break e}l=l.return}if(Fe===null)throw Error(I(160));_0(o,i,s),Fe=null,Bt=!1;var a=s.alternate;a!==null&&(a.return=null),s.return=null}catch(c){Re(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)N0(t,e),t=t.sibling}function N0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if($t(t,e),Jt(e),r&4){try{Xo(3,e,e.return),Hl(3,e)}catch(m){Re(e,e.return,m)}try{Xo(5,e,e.return)}catch(m){Re(e,e.return,m)}}break;case 1:$t(t,e),Jt(e),r&512&&n!==null&&Rs(n,n.return);break;case 5:if($t(t,e),Jt(e),r&512&&n!==null&&Rs(n,n.return),e.flags&32){var s=e.stateNode;try{oi(s,"")}catch(m){Re(e,e.return,m)}}if(r&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&Zy(s,o),Ru(l,i);var c=Ru(l,o);for(i=0;i<a.length;i+=2){var u=a[i],d=a[i+1];u==="style"?sv(s,d):u==="dangerouslySetInnerHTML"?nv(s,d):u==="children"?oi(s,d):ef(s,u,d,c)}switch(l){case"input":Su(s,o);break;case"textarea":ev(s,o);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?Os(s,!!o.multiple,p,!1):f!==!!o.multiple&&(o.defaultValue!=null?Os(s,!!o.multiple,o.defaultValue,!0):Os(s,!!o.multiple,o.multiple?[]:"",!1))}s[hi]=o}catch(m){Re(e,e.return,m)}}break;case 6:if($t(t,e),Jt(e),r&4){if(e.stateNode===null)throw Error(I(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(m){Re(e,e.return,m)}}break;case 3:if($t(t,e),Jt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ci(t.containerInfo)}catch(m){Re(e,e.return,m)}break;case 4:$t(t,e),Jt(e);break;case 13:$t(t,e),Jt(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(Mf=Ae())),r&4&&Am(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(Xe=(c=Xe)||u,$t(t,e),Xe=c):$t(t,e),Jt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(F=e,u=e.child;u!==null;){for(d=F=u;F!==null;){switch(f=F,p=f.child,f.tag){case 0:case 11:case 14:case 15:Xo(4,f,f.return);break;case 1:Rs(f,f.return);var g=f.stateNode;if(typeof g.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Re(r,n,m)}}break;case 5:Rs(f,f.return);break;case 22:if(f.memoizedState!==null){_m(d);continue}}p!==null?(p.return=f,F=p):_m(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{s=d.stateNode,c?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=d.stateNode,a=d.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=rv("display",i))}catch(m){Re(e,e.return,m)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){Re(e,e.return,m)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:$t(t,e),Jt(e),r&4&&Am(e);break;case 21:break;default:$t(t,e),Jt(e)}}function Jt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(k0(n)){var r=n;break e}n=n.return}throw Error(I(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(oi(s,""),r.flags&=-33);var o=Rm(e);rd(e,o,s);break;case 3:case 4:var i=r.stateNode.containerInfo,l=Rm(e);nd(e,l,i);break;default:throw Error(I(161))}}catch(a){Re(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lb(e,t,n){F=e,O0(e)}function O0(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var s=F,o=s.child;if(s.tag===22&&r){var i=s.memoizedState!==null||pa;if(!i){var l=s.alternate,a=l!==null&&l.memoizedState!==null||Xe;l=pa;var c=Xe;if(pa=i,(Xe=a)&&!c)for(F=s;F!==null;)i=F,a=i.child,i.tag===22&&i.memoizedState!==null?Nm(s):a!==null?(a.return=i,F=a):Nm(s);for(;o!==null;)F=o,O0(o),o=o.sibling;F=s,pa=l,Xe=c}km(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,F=o):km(e)}}function km(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Xe||Hl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xe)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Ft(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&pm(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}pm(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&ci(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}Xe||t.flags&512&&td(t)}catch(f){Re(t,t.return,f)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function _m(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function Nm(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Hl(4,t)}catch(a){Re(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(a){Re(t,s,a)}}var o=t.return;try{td(t)}catch(a){Re(t,o,a)}break;case 5:var i=t.return;try{td(t)}catch(a){Re(t,i,a)}}}catch(a){Re(t,t.return,a)}if(t===e){F=null;break}var l=t.sibling;if(l!==null){l.return=t.return,F=l;break}F=t.return}}var cb=Math.ceil,fl=jn.ReactCurrentDispatcher,Of=jn.ReactCurrentOwner,Nt=jn.ReactCurrentBatchConfig,ce=0,Le=null,Ne=null,ze=0,pt=0,As=Ar(0),je=0,xi=null,ts=0,Bl=0,If=0,Jo=null,ot=null,Mf=0,ro=1/0,En=null,pl=!1,sd=null,gr=null,ha=!1,lr=null,hl=0,Zo=0,od=null,ja=-1,Da=0;function tt(){return ce&6?Ae():ja!==-1?ja:ja=Ae()}function yr(e){return e.mode&1?ce&2&&ze!==0?ze&-ze:QS.transition!==null?(Da===0&&(Da=gv()),Da):(e=pe,e!==0||(e=window.event,e=e===void 0?16:bv(e.type)),e):1}function Gt(e,t,n,r){if(50<Zo)throw Zo=0,od=null,Error(I(185));zi(e,n,r),(!(ce&2)||e!==Le)&&(e===Le&&(!(ce&2)&&(Bl|=n),je===4&&er(e,ze)),ct(e,r),n===1&&ce===0&&!(t.mode&1)&&(ro=Ae()+500,Fl&&kr()))}function ct(e,t){var n=e.callbackNode;Q1(e,t);var r=Xa(e,e===Le?ze:0);if(r===0)n!==null&&zh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&zh(n),t===1)e.tag===0?WS(Om.bind(null,e)):Hv(Om.bind(null,e)),US(function(){!(ce&6)&&kr()}),n=null;else{switch(yv(r)){case 1:n=of;break;case 4:n=hv;break;case 16:n=Ya;break;case 536870912:n=mv;break;default:n=Ya}n=z0(n,I0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function I0(e,t){if(ja=-1,Da=0,ce&6)throw Error(I(327));var n=e.callbackNode;if($s()&&e.callbackNode!==n)return null;var r=Xa(e,e===Le?ze:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ml(e,r);else{t=r;var s=ce;ce|=2;var o=j0();(Le!==e||ze!==t)&&(En=null,ro=Ae()+500,Gr(e,t));do try{fb();break}catch(l){M0(e,l)}while(!0);wf(),fl.current=o,ce=s,Ne!==null?t=0:(Le=null,ze=0,t=je)}if(t!==0){if(t===2&&(s=Ou(e),s!==0&&(r=s,t=id(e,s))),t===1)throw n=xi,Gr(e,0),er(e,r),ct(e,Ae()),n;if(t===6)er(e,r);else{if(s=e.current.alternate,!(r&30)&&!ub(s)&&(t=ml(e,r),t===2&&(o=Ou(e),o!==0&&(r=o,t=id(e,o))),t===1))throw n=xi,Gr(e,0),er(e,r),ct(e,Ae()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(I(345));case 2:jr(e,ot,En);break;case 3:if(er(e,r),(r&130023424)===r&&(t=Mf+500-Ae(),10<t)){if(Xa(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){tt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=zu(jr.bind(null,e,ot,En),t);break}jr(e,ot,En);break;case 4:if(er(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var i=31-Qt(r);o=1<<i,i=t[i],i>s&&(s=i),r&=~o}if(r=s,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cb(r/1960))-r,10<r){e.timeoutHandle=zu(jr.bind(null,e,ot,En),r);break}jr(e,ot,En);break;case 5:jr(e,ot,En);break;default:throw Error(I(329))}}}return ct(e,Ae()),e.callbackNode===n?I0.bind(null,e):null}function id(e,t){var n=Jo;return e.current.memoizedState.isDehydrated&&(Gr(e,t).flags|=256),e=ml(e,t),e!==2&&(t=ot,ot=n,t!==null&&ad(t)),e}function ad(e){ot===null?ot=e:ot.push.apply(ot,e)}function ub(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],o=s.getSnapshot;s=s.value;try{if(!qt(o(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function er(e,t){for(t&=~If,t&=~Bl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Qt(t),r=1<<n;e[n]=-1,t&=~r}}function Om(e){if(ce&6)throw Error(I(327));$s();var t=Xa(e,0);if(!(t&1))return ct(e,Ae()),null;var n=ml(e,t);if(e.tag!==0&&n===2){var r=Ou(e);r!==0&&(t=r,n=id(e,r))}if(n===1)throw n=xi,Gr(e,0),er(e,t),ct(e,Ae()),n;if(n===6)throw Error(I(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,jr(e,ot,En),ct(e,Ae()),null}function jf(e,t){var n=ce;ce|=1;try{return e(t)}finally{ce=n,ce===0&&(ro=Ae()+500,Fl&&kr())}}function ns(e){lr!==null&&lr.tag===0&&!(ce&6)&&$s();var t=ce;ce|=1;var n=Nt.transition,r=pe;try{if(Nt.transition=null,pe=1,e)return e()}finally{pe=r,Nt.transition=n,ce=t,!(ce&6)&&kr()}}function Df(){pt=As.current,ve(As)}function Gr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,zS(n)),Ne!==null)for(n=Ne.return;n!==null;){var r=n;switch(gf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&nl();break;case 3:to(),ve(at),ve(Je),Tf();break;case 5:Cf(r);break;case 4:to();break;case 13:ve(Ee);break;case 19:ve(Ee);break;case 10:xf(r.type._context);break;case 22:case 23:Df()}n=n.return}if(Le=e,Ne=e=vr(e.current,null),ze=pt=t,je=0,xi=null,If=Bl=ts=0,ot=Jo=null,$r!==null){for(t=0;t<$r.length;t++)if(n=$r[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=s,r.next=i}n.pending=r}$r=null}return e}function M0(e,t){do{var n=Ne;try{if(wf(),Oa.current=dl,ul){for(var r=Se.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}ul=!1}if(es=0,$e=Ie=Se=null,Yo=!1,yi=0,Of.current=null,n===null||n.return===null){je=1,xi=t,Ne=null;break}e:{var o=e,i=n.return,l=n,a=t;if(t=ze,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,u=l,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=wm(i);if(p!==null){p.flags&=-257,xm(p,i,l,o,t),p.mode&1&&vm(o,c,t),t=p,a=c;var g=t.updateQueue;if(g===null){var m=new Set;m.add(a),t.updateQueue=m}else g.add(a);break e}else{if(!(t&1)){vm(o,c,t),$f();break e}a=Error(I(426))}}else if(xe&&l.mode&1){var E=wm(i);if(E!==null){!(E.flags&65536)&&(E.flags|=256),xm(E,i,l,o,t),yf(no(a,l));break e}}o=a=no(a,l),je!==4&&(je=2),Jo===null?Jo=[o]:Jo.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var w=y0(o,a,t);fm(o,w);break e;case 1:l=a;var y=o.type,x=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(gr===null||!gr.has(x)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=v0(o,l,t);fm(o,S);break e}}o=o.return}while(o!==null)}$0(n)}catch(C){t=C,Ne===n&&n!==null&&(Ne=n=n.return);continue}break}while(!0)}function j0(){var e=fl.current;return fl.current=dl,e===null?dl:e}function $f(){(je===0||je===3||je===2)&&(je=4),Le===null||!(ts&268435455)&&!(Bl&268435455)||er(Le,ze)}function ml(e,t){var n=ce;ce|=2;var r=j0();(Le!==e||ze!==t)&&(En=null,Gr(e,t));do try{db();break}catch(s){M0(e,s)}while(!0);if(wf(),ce=n,fl.current=r,Ne!==null)throw Error(I(261));return Le=null,ze=0,je}function db(){for(;Ne!==null;)D0(Ne)}function fb(){for(;Ne!==null&&!$1();)D0(Ne)}function D0(e){var t=F0(e.alternate,e,pt);e.memoizedProps=e.pendingProps,t===null?$0(e):Ne=t,Of.current=null}function $0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ob(n,t),n!==null){n.flags&=32767,Ne=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{je=6,Ne=null;return}}else if(n=sb(n,t,pt),n!==null){Ne=n;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);je===0&&(je=5)}function jr(e,t,n){var r=pe,s=Nt.transition;try{Nt.transition=null,pe=1,pb(e,t,n,r)}finally{Nt.transition=s,pe=r}return null}function pb(e,t,n,r){do $s();while(lr!==null);if(ce&6)throw Error(I(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(I(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(G1(e,o),e===Le&&(Ne=Le=null,ze=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ha||(ha=!0,z0(Ya,function(){return $s(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Nt.transition,Nt.transition=null;var i=pe;pe=1;var l=ce;ce|=4,Of.current=null,ab(e,n),N0(n,e),IS(Lu),Ja=!!$u,Lu=$u=null,e.current=n,lb(n),L1(),ce=l,pe=i,Nt.transition=o}else e.current=n;if(ha&&(ha=!1,lr=e,hl=s),o=e.pendingLanes,o===0&&(gr=null),U1(n.stateNode),ct(e,Ae()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(pl)throw pl=!1,e=sd,sd=null,e;return hl&1&&e.tag!==0&&$s(),o=e.pendingLanes,o&1?e===od?Zo++:(Zo=0,od=e):Zo=0,kr(),null}function $s(){if(lr!==null){var e=yv(hl),t=Nt.transition,n=pe;try{if(Nt.transition=null,pe=16>e?16:e,lr===null)var r=!1;else{if(e=lr,lr=null,hl=0,ce&6)throw Error(I(331));var s=ce;for(ce|=4,F=e.current;F!==null;){var o=F,i=o.child;if(F.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a<l.length;a++){var c=l[a];for(F=c;F!==null;){var u=F;switch(u.tag){case 0:case 11:case 15:Xo(8,u,o)}var d=u.child;if(d!==null)d.return=u,F=d;else for(;F!==null;){u=F;var f=u.sibling,p=u.return;if(A0(u),u===c){F=null;break}if(f!==null){f.return=p,F=f;break}F=p}}}var g=o.alternate;if(g!==null){var m=g.child;if(m!==null){g.child=null;do{var E=m.sibling;m.sibling=null,m=E}while(m!==null)}}F=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,F=i;else e:for(;F!==null;){if(o=F,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Xo(9,o,o.return)}var w=o.sibling;if(w!==null){w.return=o.return,F=w;break e}F=o.return}}var y=e.current;for(F=y;F!==null;){i=F;var x=i.child;if(i.subtreeFlags&2064&&x!==null)x.return=i,F=x;else e:for(i=y;F!==null;){if(l=F,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Hl(9,l)}}catch(C){Re(l,l.return,C)}if(l===i){F=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,F=S;break e}F=l.return}}if(ce=s,kr(),un&&typeof un.onPostCommitFiberRoot=="function")try{un.onPostCommitFiberRoot(Ml,e)}catch{}r=!0}return r}finally{pe=n,Nt.transition=t}}return!1}function Im(e,t,n){t=no(n,t),t=y0(e,t,1),e=mr(e,t,1),t=tt(),e!==null&&(zi(e,1,t),ct(e,t))}function Re(e,t,n){if(e.tag===3)Im(e,e,n);else for(;t!==null;){if(t.tag===3){Im(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gr===null||!gr.has(r))){e=no(n,e),e=v0(t,e,1),t=mr(t,e,1),e=tt(),t!==null&&(zi(t,1,e),ct(t,e));break}}t=t.return}}function hb(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&n,Le===e&&(ze&n)===n&&(je===4||je===3&&(ze&130023424)===ze&&500>Ae()-Mf?Gr(e,0):If|=n),ct(e,t)}function L0(e,t){t===0&&(e.mode&1?(t=sa,sa<<=1,!(sa&130023424)&&(sa=4194304)):t=1);var n=tt();e=_n(e,t),e!==null&&(zi(e,t,n),ct(e,n))}function mb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),L0(e,n)}function gb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(I(314))}r!==null&&r.delete(t),L0(e,n)}var F0;F0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||at.current)it=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return it=!1,rb(e,t,n);it=!!(e.flags&131072)}else it=!1,xe&&t.flags&1048576&&Bv(t,ol,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ma(e,t),e=t.pendingProps;var s=Js(t,Je.current);Ds(t,n),s=Rf(null,t,r,e,s,n);var o=Af();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,lt(r)?(o=!0,rl(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Sf(t),s.updater=Ul,t.stateNode=s,s._reactInternals=t,Gu(t,r,e,n),t=Yu(null,t,r,!0,o,n)):(t.tag=0,xe&&o&&mf(t),Ze(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ma(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=vb(r),e=Ft(r,e),s){case 0:t=Ku(null,t,r,e,n);break e;case 1:t=bm(null,t,r,e,n);break e;case 11:t=Em(null,t,r,e,n);break e;case 14:t=Sm(null,t,r,Ft(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ft(r,s),Ku(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ft(r,s),bm(e,t,r,s,n);case 3:e:{if(S0(t),e===null)throw Error(I(387));
vendor: 4,912 bytes, line 41
41r=t.pendingProps,o=t.memoizedState,s=o.element,Kv(e,t),ll(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=no(Error(I(423)),t),t=Cm(e,t,r,n,s);break e}else if(r!==s){s=no(Error(I(424)),t),t=Cm(e,t,r,n,s);break e}else for(gt=hr(t.stateNode.containerInfo.firstChild),yt=t,xe=!0,Vt=null,n=Gv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zs(),r===s){t=Nn(e,t,n);break e}Ze(e,t,r,n)}t=t.child}return t;case 5:return Yv(t),e===null&&Vu(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,Fu(r,s)?i=null:o!==null&&Fu(r,o)&&(t.flags|=32),E0(e,t),Ze(e,t,i,n),t.child;case 6:return e===null&&Vu(t),null;case 13:return b0(e,t,n);case 4:return bf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=eo(t,null,r,n):Ze(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ft(r,s),Em(e,t,r,s,n);case 7:return Ze(e,t,t.pendingProps,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,o=t.memoizedProps,i=s.value,me(il,r._currentValue),r._currentValue=i,o!==null)if(qt(o.value,i)){if(o.children===s.children&&!at.current){t=Nn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){i=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Pn(-1,n&-n),a.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?a.next=a:(a.next=u.next,u.next=a),c.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Wu(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(I(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Wu(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Ze(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ds(t,n),s=Ot(s),r=r(s),t.flags|=1,Ze(e,t,r,n),t.child;case 14:return r=t.type,s=Ft(r,t.pendingProps),s=Ft(r.type,s),Sm(e,t,r,s,n);case 15:return w0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ft(r,s),Ma(e,t),t.tag=1,lt(r)?(e=!0,rl(t)):e=!1,Ds(t,n),g0(t,r,s),Gu(t,r,s,n),Yu(null,t,r,!0,e,n);case 19:return C0(e,t,n);case 22:return x0(e,t,n)}throw Error(I(156,t.tag))};function z0(e,t){return pv(e,t)}function yb(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,n,r){return new yb(e,t,n,r)}function Lf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vb(e){if(typeof e=="function")return Lf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===nf)return 11;if(e===rf)return 14}return 2}function vr(e,t){var n=e.alternate;return n===null?(n=_t(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $a(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")Lf(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case vs:return qr(n.children,s,o,t);case tf:i=8,s|=8;break;case yu:return e=_t(12,n,t,s|2),e.elementType=yu,e.lanes=o,e;case vu:return e=_t(13,n,t,s),e.elementType=vu,e.lanes=o,e;case wu:return e=_t(19,n,t,s),e.elementType=wu,e.lanes=o,e;case Yy:return Vl(n,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qy:i=10;break e;case Ky:i=9;break e;case nf:i=11;break e;case rf:i=14;break e;case Yn:i=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=_t(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function qr(e,t,n,r){return e=_t(7,e,r,t),e.lanes=n,e}function Vl(e,t,n,r){return e=_t(22,e,r,t),e.elementType=Yy,e.lanes=n,e.stateNode={isHidden:!1},e}function Bc(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function Vc(e,t,n){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}
vendor: 5,453 bytes, line 41
41function wb(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cc(0),this.expirationTimes=Cc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cc(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Ff(e,t,n,r,s,o,i,l,a){return e=new wb(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=_t(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sf(o),e}function xb(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ys,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function U0(e){if(!e)return Sr;e=e._reactInternals;e:{if(is(e)!==e||e.tag!==1)throw Error(I(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(lt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(I(171))}if(e.tag===1){var n=e.type;if(lt(n))return Uv(e,n,t)}return t}function H0(e,t,n,r,s,o,i,l,a){return e=Ff(n,r,!0,e,s,o,i,l,a),e.context=U0(null),n=e.current,r=tt(),s=yr(n),o=Pn(r,s),o.callback=t??null,mr(n,o,s),e.current.lanes=s,zi(e,s,r),ct(e,r),e}function Wl(e,t,n,r){var s=t.current,o=tt(),i=yr(s);return n=U0(n),t.context===null?t.context=n:t.pendingContext=n,t=Pn(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=mr(s,t,i),e!==null&&(Gt(e,s,i,o),Na(e,s,i)),i}function gl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Mm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function zf(e,t){Mm(e,t),(e=e.alternate)&&Mm(e,t)}function Eb(){return null}var B0=typeof reportError=="function"?reportError:function(e){console.error(e)};function Uf(e){this._internalRoot=e}Ql.prototype.render=Uf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));Wl(e,t,null,null)};Ql.prototype.unmount=Uf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ns(function(){Wl(null,e,null,null)}),t[kn]=null}};function Ql(e){this._internalRoot=e}Ql.prototype.unstable_scheduleHydration=function(e){if(e){var t=xv();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zn.length&&t!==0&&t<Zn[n].priority;n++);Zn.splice(n,0,e),n===0&&Sv(e)}};function Hf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Gl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function jm(){}function Sb(e,t,n,r,s){if(s){if(typeof r=="function"){var o=r;r=function(){var c=gl(i);o.call(c)}}var i=H0(t,r,e,0,null,!1,!1,"",jm);return e._reactRootContainer=i,e[kn]=i.current,fi(e.nodeType===8?e.parentNode:e),ns(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var c=gl(a);l.call(c)}}var a=Ff(e,0,!1,null,null,!1,!1,"",jm);return e._reactRootContainer=a,e[kn]=a.current,fi(e.nodeType===8?e.parentNode:e),ns(function(){Wl(t,a,n,r)}),a}function ql(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var l=s;s=function(){var a=gl(i);l.call(a)}}Wl(t,i,e,s)}else i=Sb(n,t,e,s,r);return gl(i)}vv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=zo(t.pendingLanes);n!==0&&(af(t,n|1),ct(t,Ae()),!(ce&6)&&(ro=Ae()+500,kr()))}break;case 13:ns(function(){var r=_n(e,1);if(r!==null){var s=tt();Gt(r,e,1,s)}}),zf(e,1)}};lf=function(e){if(e.tag===13){var t=_n(e,134217728);if(t!==null){var n=tt();Gt(t,e,134217728,n)}zf(e,134217728)}};wv=function(e){if(e.tag===13){var t=yr(e),n=_n(e,t);if(n!==null){var r=tt();Gt(n,e,t,r)}zf(e,t)}};xv=function(){return pe};Ev=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}};ku=function(e,t,n){switch(t){case"input":if(Su(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Ll(r);if(!s)throw Error(I(90));Jy(r),Su(r,s)}}}break;case"textarea":ev(e,n);break;case"select":t=n.value,t!=null&&Os(e,!!n.multiple,t,!1)}};av=jf;lv=ns;var bb={usingClientEntryPoint:!1,Events:[Hi,Ss,Ll,ov,iv,jf]},_o={findFiberByHostInstance:Dr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Cb={bundleType:_o.bundleType,version:_o.version,rendererPackageName:_o.rendererPackageName,rendererConfig:_o.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:jn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dv(e),e===null?null:e.stateNode},findFiberByHostInstance:_o.findFiberByHostInstance||Eb,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
41if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ma=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ma.isDisabled&&ma.supportsFiber)try{Ml=ma.inject(Cb),un=ma}catch{}}St.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bb;St.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Hf(t))throw Error(I(200));return xb(e,t,null,n)};St.createRoot=function(e,t){if(!Hf(e))throw Error(I(299));var n=!1,r="",s=B0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Ff(e,1,!1,null,null,n,!1,r,s),e[kn]=t.current,fi(e.nodeType===8?e.parentNode:e),new Uf(t)};St.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=dv(t),e=e===null?null:e.stateNode,e};St.flushSync=function(e){return ns(e)};St.hydrate=function(e,t,n){if(!Gl(t))throw Error(I(200));return ql(null,e,t,!0,n)};St.hydrateRoot=function(e,t,n){if(!Hf(e))throw Error(I(405));var r=n!=null&&n.hydratedSources||null,s=!1,o="",i=B0;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=H0(t,null,e,1,n??null,s,!1,o,i),e[kn]=t.current,fi(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Ql(t)};St.render=function(e,t,n){if(!Gl(t))throw Error(I(200));return ql(null,e,t,!1,n)};St.unmountComponentAtNode=function(e){if(!Gl(e))throw Error(I(40));return e._reactRootContainer?(ns(function(){ql(null,null,e,!1,function(){e._reactRootContainer=null,e[kn]=null})}),!0):!1};St.unstable_batchedUpdates=jf;St.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Gl(n))throw Error(I(200));if(e==null||e._reactInternals===void 0)throw Error(I(38));return ql(e,t,n,!1,r)};St.version="18.3.1-next-f1338f8080-20240426";function V0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(V0)}catch(e){console.error(e)}}V0(),Vy.exports=St;var Vi=Vy.exports;const W0=Li(Vi);var Q0,Dm=Vi;Q0=Dm.createRoot,Dm.hydrateRoot;const Tb="modulepreload",Pb=function(e){return"/"+e},$m={},z=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));s=Promise.allSettled(n.map(a=>{if(a=Pb(a),a in $m)return;$m[a]=!0;const c=a.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Tb,c||(d.as="script"),d.crossOrigin="",d.href=a,l&&d.setAttribute("nonce",l),document.head.appendChild(d),c)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${a}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return s.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},Rb=1,Ab=3e3;let Wc=0;function kb(){return Wc=(Wc+1)%Number.MAX_SAFE_INTEGER,Wc.toString()}const Qc=new Map,Lm=e=>{if(Qc.has(e))return;const t=setTimeout(()=>{Qc.delete(e),ei({type:"REMOVE_TOAST",toastId:e})},Ab);Qc.set(e,t)},_b=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Rb)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Lm(n):e.toasts.forEach(r=>{Lm(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},La=[];let Fa={toasts:[]};
41function ei(e){Fa=_b(Fa,e),La.forEach(t=>{t(Fa)})}function Nb({...e}){const t=kb(),n=s=>ei({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>ei({type:"DISMISS_TOAST",toastId:t});return ei({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),setTimeout(()=>{r()},3e3),{id:t,dismiss:r,update:n}}function G0(){const[e,t]=v.useState(Fa);return v.useEffect(()=>(La.push(t),()=>{const n=La.indexOf(t);n>-1&&La.splice(n,1)}),[e]),{...e,toast:Nb,dismiss:n=>ei({type:"DISMISS_TOAST",toastId:n})}}function Me(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Fm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Kl(...e){return t=>{let n=!1;const r=e.map(s=>{const o=Fm(s,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let s=0;s<r.length;s++){const o=r[s];typeof o=="function"?o():Fm(e[s],null)}}}}function Kt(...e){return v.useCallback(Kl(...e),e)}function v$(e,t){const n=v.createContext(t),r=o=>{const{children:i,...l}=o,a=v.useMemo(()=>l,Object.values(l));return h.jsx(n.Provider,{value:a,children:i})};r.displayName=e+"Provider";function s(o){const i=v.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,s]}function Yl(e,t=[]){let n=[];function r(o,i){const l=v.createContext(i),a=n.length;n=[...n,i];const c=d=>{var w;const{scope:f,children:p,...g}=d,m=((w=f==null?void 0:f[e])==null?void 0:w[a])||l,E=v.useMemo(()=>g,Object.values(g));return h.jsx(m.Provider,{value:E,children:p})};c.displayName=o+"Provider";function u(d,f){var m;const p=((m=f==null?void 0:f[e])==null?void 0:m[a])||l,g=v.useContext(p);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${o}\``)}return[c,u]}const s=()=>{const o=n.map(i=>v.createContext(i));return function(l){const a=(l==null?void 0:l[e])||o;return v.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return s.scopeName=e,[r,Ob(s,...t)]}function Ob(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((l,{useScope:a,scopeName:c})=>{const d=a(o)[`__scope${c}`];return{...l,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function zm(e){const t=Ib(e),n=v.forwardRef((r,s)=>{const{children:o,...i}=r,l=v.Children.toArray(o),a=l.find(jb);if(a){const c=a.props.children,u=l.map(d=>d===a?v.Children.count(c)>1?v.Children.only(null):v.isValidElement(c)?c.props.children:null:d);return h.jsx(t,{...i,ref:s,children:v.isValidElement(c)?v.cloneElement(c,void 0,u):null})}return h.jsx(t,{...i,ref:s,children:o})});return n.displayName=`${e}.Slot`,n}function Ib(e){const t=v.forwardRef((n,r)=>{const{children:s,...o}=n;if(v.isValidElement(s)){const i=$b(s),l=Db(o,s.props);return s.type!==v.Fragment&&(l.ref=r?Kl(r,i):i),v.cloneElement(s,l)}return v.Children.count(s)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Mb=Symbol("radix.slottable");function jb(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Mb}function Db(e,t){const n={...t};for(const r in t){const s=e[r],o=t[r];/^on[A-Z]/.test(r)?s&&o?n[r]=(...l)=>{const a=o(...l);return s(...l),a}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}function $b(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Lb(e){const t=e+"CollectionProvider",[n,r]=Yl(t),[s,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:E,children:w}=m,y=N.useRef(null),x=N.useRef(new Map).current;return h.jsx(s,{scope:E,itemMap:x,collectionRef:y,children:w})};i.displayName=t;const l=e+"CollectionSlot",a=zm(l),c=N.forwardRef((m,E)=>{const{scope:w,children:y}=m,x=o(l,w),S=Kt(E,x.collectionRef);return h.jsx(a,{ref:S,children:y})});c.displayName=l;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=zm(u),p=N.forwardRef((m,E)=>{const{scope:w,children:y,...x}=m,S=N.useRef(null),C=Kt(E,S),T=o(u,w);return N.useEffect(()=>(T.itemMap.set(S,{ref:S,...x}
vendor: 9,695 bytes, line 41
41),()=>void T.itemMap.delete(S))),h.jsx(f,{[d]:"",ref:C,children:y})});p.displayName=u;function g(m){const E=o(e+"CollectionConsumer",m);return N.useCallback(()=>{const y=E.collectionRef.current;if(!y)return[];const x=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(E.itemMap.values()).sort((T,P)=>x.indexOf(T.ref.current)-x.indexOf(P.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:i,Slot:c,ItemSlot:p},g,r]}function Fb(e){const t=zb(e),n=v.forwardRef((r,s)=>{const{children:o,...i}=r,l=v.Children.toArray(o),a=l.find(Hb);if(a){const c=a.props.children,u=l.map(d=>d===a?v.Children.count(c)>1?v.Children.only(null):v.isValidElement(c)?c.props.children:null:d);return h.jsx(t,{...i,ref:s,children:v.isValidElement(c)?v.cloneElement(c,void 0,u):null})}return h.jsx(t,{...i,ref:s,children:o})});return n.displayName=`${e}.Slot`,n}function zb(e){const t=v.forwardRef((n,r)=>{const{children:s,...o}=n;if(v.isValidElement(s)){const i=Vb(s),l=Bb(o,s.props);return s.type!==v.Fragment&&(l.ref=r?Kl(r,i):i),v.cloneElement(s,l)}return v.Children.count(s)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ub=Symbol("radix.slottable");function Hb(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ub}function Bb(e,t){const n={...t};for(const r in t){const s=e[r],o=t[r];/^on[A-Z]/.test(r)?s&&o?n[r]=(...l)=>{const a=o(...l);return s(...l),a}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}function Vb(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dt=Wb.reduce((e,t)=>{const n=Fb(`Primitive.${t}`),r=v.forwardRef((s,o)=>{const{asChild:i,...l}=s,a=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(a,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function q0(e,t){e&&Vi.flushSync(()=>e.dispatchEvent(t))}function br(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Qb(e,t=globalThis==null?void 0:globalThis.document){const n=br(e);v.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Gb="DismissableLayer",ld="dismissableLayer.update",qb="dismissableLayer.pointerDownOutside",Kb="dismissableLayer.focusOutside",Um,K0=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bf=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:i,onDismiss:l,...a}=e,c=v.useContext(K0),[u,d]=v.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=v.useState({}),g=Kt(t,P=>d(P)),m=Array.from(c.layers),[E]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=m.indexOf(E),y=u?m.indexOf(u):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,S=y>=w,C=Xb(P=>{const k=P.target,D=[...c.branches].some(M=>M.contains(k));!S||D||(s==null||s(P),i==null||i(P),P.defaultPrevented||l==null||l())},f),T=Jb(P=>{const k=P.target;[...c.branches].some(M=>M.contains(k))||(o==null||o(P),i==null||i(P),P.defaultPrevented||l==null||l())},f);return Qb(P=>{y===c.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},f),v.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Um=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Hm(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Um)}},[u,f,n,c]),v.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Hm())},[u,c]),v.useEffect(()=>{const P=()=>p({});return document.addEventListener(ld,P),()=>document.removeEventListener(ld,P)},[]),h.jsx(dt.div,{...a,ref:g,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:Me(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Me(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Me(e.onPointerDownCapture,C.onPointerDownCapture)})});Bf.displayName=Gb;var Yb="DismissableLayerBranch",Y0=v.forwardRef((e,t)=>{const n=v.useContext(K0),r=v.useRef(null),s=Kt(t,r);return v.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),h.jsx(dt.div,{...e,ref:s})});Y0.displayName=Yb;function Xb(e,t=globalThis==null?void 0:globalThis.document){const n=br(e),r=v.useRef(!1),s=v.useRef(()=>{});return v.useEffect(()=>{const o=l=>{if(l.target&&!r.current){let a=function(){X0(qb,n,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=a,t.addEventListener("click",s.current,{once:!0})):a()}else t.removeEventListener("click",s.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Jb(e,t=globalThis==null?void 0:globalThis.document){const n=br(e),r=v.useRef(!1);return v.useEffect(()=>{const s=o=>{o.target&&!r.current&&X0(Kb,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Hm(){const e=new CustomEvent(ld);document.dispatchEvent(e)}function X0(e,t,n,{discrete:r}){const s=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?q0(s,o):s.dispatchEvent(o)}var Zb=Bf,eC=Y0,On=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},tC="Portal",J0=v.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[s,o]=v.useState(!1);On(()=>o(!0),[]);const i=n||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?W0.createPortal(h.jsx(dt.div,{...r,ref:t}),i):null});J0.displayName=tC;function nC(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var Vf=e=>{const{present:t,children:n}=e,r=rC(t),s=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),o=Kt(r.ref,sC(s));return typeof n=="function"||r.isPresent?v.cloneElement(s,{ref:o}):null};Vf.displayName="Presence";function rC(e){const[t,n]=v.useState(),r=v.useRef(null),s=v.useRef(e),o=v.useRef("none"),i=e?"mounted":"unmounted",[l,a]=nC(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const c=ga(r.current);o.current=l==="mounted"?c:"none"},[l]),On(()=>{const c=r.current,u=s.current;if(u!==e){const f=o.current,p=ga(c);e?a("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?a("UNMOUNT"):a(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,a]),On(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=p=>{const m=ga(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(a("ANIMATION_END"),!s.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},f=p=>{p.target===t&&(o.current=ga(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:v.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function ga(e){return(e==null?void 0:e.animationName)||"none"}function sC(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var oC=Il[" useInsertionEffect ".trim().toString()]||On;function Z0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,o,i]=iC({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:s;{const u=v.useRef(e!==void 0);v.useEffect(()=>{const d=u.current;d!==l&&console.warn(`${r} is changing from ${d?"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.`),u.current=l},[l,r])}const c=v.useCallback(u=>{var d;if(l){const f=aC(u)?u(e):u;f!==e&&((d=i.current)==null||d.call(i,f))}else o(u)},[l,e,o,i]);return[a,c]}function iC({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),s=v.useRef(n),o=v.useRef(t);return oC(()=>{o.current=t},[t]),v.useEffect(()=>{var i;s.current!==n&&((i=o.current)==null||i.call(o,n),s.current=n)},[n,s]),[n,r,o]}function aC(e){return typeof e=="function"}var lC=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"}),cC="VisuallyHidden",Xl=v.forwardRef((e,t)=>
41h.jsx(dt.span,{...e,ref:t,style:{...lC,...e.style}}));Xl.displayName=cC;var uC=Xl,Wf="ToastProvider",[Qf,dC,fC]=Lb("Toast"),[ew]=Yl("Toast",[fC]),[pC,Jl]=ew(Wf),tw=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:i}=e,[l,a]=v.useState(null),[c,u]=v.useState(0),d=v.useRef(!1),f=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Wf}\`. Expected non-empty \`string\`.`),h.jsx(Qf.Provider,{scope:t,children:h.jsx(pC,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:o,toastCount:c,viewport:l,onViewportChange:a,onToastAdd:v.useCallback(()=>u(p=>p+1),[]),onToastRemove:v.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:i})})};tw.displayName=Wf;var nw="ToastViewport",hC=["F8"],cd="toast.viewportPause",ud="toast.viewportResume",rw=v.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=hC,label:s="Notifications ({hotkey})",...o}=e,i=Jl(nw,n),l=dC(n),a=v.useRef(null),c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),f=Kt(t,d,i.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=i.toastCount>0;v.useEffect(()=>{const E=w=>{var x;r.length!==0&&r.every(S=>w[S]||w.code===S)&&((x=d.current)==null||x.focus())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[r]),v.useEffect(()=>{const E=a.current,w=d.current;if(g&&E&&w){const y=()=>{if(!i.isClosePausedRef.current){const T=new CustomEvent(cd);w.dispatchEvent(T),i.isClosePausedRef.current=!0}},x=()=>{if(i.isClosePausedRef.current){const T=new CustomEvent(ud);w.dispatchEvent(T),i.isClosePausedRef.current=!1}},S=T=>{!E.contains(T.relatedTarget)&&x()},C=()=>{E.contains(document.activeElement)||x()};return E.addEventListener("focusin",y),E.addEventListener("focusout",S),E.addEventListener("pointermove",y),E.addEventListener("pointerleave",C),window.addEventListener("blur",y),window.addEventListener("focus",x),()=>{E.removeEventListener("focusin",y),E.removeEventListener("focusout",S),E.removeEventListener("pointermove",y),E.removeEventListener("pointerleave",C),window.removeEventListener("blur",y),window.removeEventListener("focus",x)}}},[g,i.isClosePausedRef]);const m=v.useCallback(({tabbingDirection:E})=>{const y=l().map(x=>{const S=x.ref.current,C=[S,...RC(S)];return E==="forwards"?C:C.reverse()});return(E==="forwards"?y.reverse():y).flat()},[l]);return v.useEffect(()=>{const E=d.current;if(E){const w=y=>{var C,T,P;const x=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!x){const k=document.activeElement,D=y.shiftKey;if(y.target===E&&D){(C=c.current)==null||C.focus();return}const L=m({tabbingDirection:D?"backwards":"forwards"}),ne=L.findIndex(j=>j===k);Gc(L.slice(ne+1))?y.preventDefault():D?(T=c.current)==null||T.focus():(P=u.current)==null||P.focus()}};return E.addEventListener("keydown",w),()=>E.removeEventListener("keydown",w)}},[l,m]),h.jsxs(eC,{ref:a,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&h.jsx(dd,{ref:c,onFocusFromOutsideViewport:()=>{const E=m({tabbingDirection:"forwards"});Gc(E)}}),h.jsx(Qf.Slot,{scope:n,children:h.jsx(dt.ol,{tabIndex:-1,...o,ref:f})}),g&&h.jsx(dd,{ref:u,onFocusFromOutsideViewport:()=>{const E=m({tabbingDirection:"backwards"});Gc(E)}})]})});rw.displayName=nw;var sw="ToastFocusProxy",dd=v.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,o=Jl(sw,n);return h.jsx(Xl,{tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:i=>{var c;const l=i.relatedTarget;!((c=o.viewport)!=null&&c.contains(l))&&r()}})});dd.displayName=sw;var Wi="Toast",mC="toast.swipeStart",gC="toast.swipeMove",yC="toast.swipeCancel",vC="toast.swipeEnd",ow=v.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:o,...i}=e,[l,a]=Z0({prop:r,defaultProp:s??!0,onChange:o,caller:Wi});return h.jsx(Vf,{present:n||l,children:h.jsx(EC,{open:l,...i,ref:t,onClose:()=>a(!1),onPause:br(e.onPause),onResume:br(e.onResume),onSwipeStart:Me(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Me(e.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Me(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Me(e.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),a(!1)})})})});ow.displayName=Wi;var[wC,xC]=ew(Wi,{onClose(){}}),EC=v.forwardRef((e,t)=>
41{const{__scopeToast:n,type:r="foreground",duration:s,open:o,onClose:i,onEscapeKeyDown:l,onPause:a,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...g}=e,m=Jl(Wi,n),[E,w]=v.useState(null),y=Kt(t,j=>w(j)),x=v.useRef(null),S=v.useRef(null),C=s||m.duration,T=v.useRef(0),P=v.useRef(C),k=v.useRef(0),{onToastAdd:D,onToastRemove:M}=m,B=br(()=>{var J;(E==null?void 0:E.contains(document.activeElement))&&((J=m.viewport)==null||J.focus()),i()}),L=v.useCallback(j=>{!j||j===1/0||(window.clearTimeout(k.current),T.current=new Date().getTime(),k.current=window.setTimeout(B,j))},[B]);v.useEffect(()=>{const j=m.viewport;if(j){const J=()=>{L(P.current),c==null||c()},Y=()=>{const X=new Date().getTime()-T.current;P.current=P.current-X,window.clearTimeout(k.current),a==null||a()};return j.addEventListener(cd,Y),j.addEventListener(ud,J),()=>{j.removeEventListener(cd,Y),j.removeEventListener(ud,J)}}},[m.viewport,C,a,c,L]),v.useEffect(()=>{o&&!m.isClosePausedRef.current&&L(C)},[o,C,m.isClosePausedRef,L]),v.useEffect(()=>(D(),()=>M()),[D,M]);const ne=v.useMemo(()=>E?fw(E):null,[E]);return m.viewport?h.jsxs(h.Fragment,{children:[ne&&h.jsx(SC,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:ne}),h.jsx(wC,{scope:n,onClose:B,children:Vi.createPortal(h.jsx(Qf.ItemSlot,{scope:n,children:h.jsx(Zb,{asChild:!0,onEscapeKeyDown:Me(l,()=>{m.isFocusedToastEscapeKeyDownRef.current||B(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:h.jsx(dt.li,{tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":m.swipeDirection,...g,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Me(e.onKeyDown,j=>{j.key==="Escape"&&(l==null||l(j.nativeEvent),j.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,B()))}),onPointerDown:Me(e.onPointerDown,j=>{j.button===0&&(x.current={x:j.clientX,y:j.clientY})}),onPointerMove:Me(e.onPointerMove,j=>{if(!x.current)return;const J=j.clientX-x.current.x,Y=j.clientY-x.current.y,X=!!S.current,_=["left","right"].includes(m.swipeDirection),O=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,$=_?O(0,J):0,ee=_?0:O(0,Y),G=j.pointerType==="touch"?10:2,se={x:$,y:ee},oe={originalEvent:j,delta:se};X?(S.current=se,ya(gC,d,oe,{discrete:!1})):Bm(se,m.swipeDirection,G)?(S.current=se,ya(mC,u,oe,{discrete:!1}),j.target.setPointerCapture(j.pointerId)):(Math.abs(J)>G||Math.abs(Y)>G)&&(x.current=null)}),onPointerUp:Me(e.onPointerUp,j=>{const J=S.current,Y=j.target;if(Y.hasPointerCapture(j.pointerId)&&Y.releasePointerCapture(j.pointerId),S.current=null,x.current=null,J){const X=j.currentTarget,_={originalEvent:j,delta:J};Bm(J,m.swipeDirection,m.swipeThreshold)?ya(vC,p,_,{discrete:!0}):ya(yC,f,_,{discrete:!0}),X.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),SC=e=>{const{__scopeToast:t,children:n,...r}=e,s=Jl(Wi,t),[o,i]=v.useState(!1),[l,a]=v.useState(!1);return TC(()=>i(!0)),v.useEffect(()=>{const c=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(c)},[]),l?null:h.jsx(J0,{asChild:!0,children:h.jsx(Xl,{...r,children:o&&h.jsxs(h.Fragment,{children:[s.label," ",n]})})})},bC="ToastTitle",iw=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(dt.div,{...r,ref:t})});iw.displayName=bC;var CC="ToastDescription",aw=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(dt.div,{...r,ref:t})});aw.displayName=CC;var lw="ToastAction",cw=v.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?h.jsx(dw,{altText:n,asChild:!0,children:h.jsx(Gf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${lw}\`. Expected non-empty \`string\`.`),null)});cw.displayName=lw;var uw="ToastClose",Gf=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=xC(uw,n);return h.jsx(dw,{asChild:!0,children:h.jsx(dt.button,{type:"button",...r,ref:t,onClick:Me(e.onClick,s.onClose)})})});Gf.displayName=uw;var dw=v.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return h.jsx(dt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function fw(e){const t=[];
vendor: 9,263 bytes, lines 41-135
41return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),PC(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...fw(r))}}),t}function ya(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?q0(s,o):s.dispatchEvent(o)}var Bm=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),o=r>s;return t==="left"||t==="right"?o&&r>n:!o&&s>n};function TC(e=()=>{}){const t=br(e);On(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function PC(e){return e.nodeType===e.ELEMENT_NODE}function RC(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Gc(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var AC=tw,pw=rw,hw=ow,mw=iw,gw=aw,yw=cw,vw=Gf;function ww(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=ww(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function xw(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=ww(e))&&(r&&(r+=" "),r+=t);return r}const Vm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Wm=xw,Ew=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Wm(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=o==null?void 0:o[c];if(u===null)return null;const f=Vm(u)||Vm(d);return s[c][f]}),l=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...p}=u;return Object.entries(p).every(g=>{let[m,E]=g;return Array.isArray(E)?E.includes({...o,...l}[m]):{...o,...l}[m]===E})?[...c,d,f]:c},[]);return Wm(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)};/** 42 * @license lucide-react v0.462.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */const kC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sw=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 47 * @license lucide-react v0.462.0 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */var _C={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"};/** 52 * @license lucide-react v0.462.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */const NC=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:o,iconNode:i,...l},a)=>v.createElement("svg",{ref:a,..._C,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Sw("lucide",s),...l},[...i.map(([c,u])=>v.createElement(c,u)),...Array.isArray(o)?o:[o]]));/** 57 * @license lucide-react v0.462.0 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree. 61 */const He=(e,t)=>{const n=v.forwardRef(({className:r,...s},o)=>v.createElement(NC,{ref:o,iconNode:t,className:Sw(`lucide-${kC(e)}`,r),...s}));return n.displayName=`${e}`,n};/** 62 * @license lucide-react v0.462.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */const OC=He("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 67 * @license lucide-react v0.462.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */const fd=He("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 72 * @license lucide-react v0.462.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */const IC=He("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/** 77 * @license lucide-react v0.462.0 - ISC 78 * 79 * This source code is licensed under the ISC license. 80 * See the LICENSE file in the root directory of this source tree. 81 */const Qm=He("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 82 * @license lucide-react v0.462.0 - ISC 83 * 84 * This source code is licensed under the ISC license. 85 * See the LICENSE file in the root directory of this source tree. 86 */const MC=He("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/** 87 * @license lucide-react v0.462.0 - ISC 88 * 89 * This source code is licensed under the ISC license. 90 * See the LICENSE file in the root directory of this source tree. 91 */const jC=He("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 92 * @license lucide-react v0.462.0 - ISC 93 * 94 * This source code is licensed under the ISC license. 95 * See the LICENSE file in the root directory of this source tree. 96 */const DC=He("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 97 * @license lucide-react v0.462.0 - ISC 98 * 99 * This source code is licensed under the ISC license. 100 * See the LICENSE file in the root directory of this source tree. 101 */const $C=He("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 102 * @license lucide-react v0.462.0 - ISC 103 * 104 * This source code is licensed under the ISC license. 105 * See the LICENSE file in the root directory of this source tree. 106 */const LC=He("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** 107 * @license lucide-react v0.462.0 - ISC 108 * 109 * This source code is licensed under the ISC license. 110 * See the LICENSE file in the root directory of this source tree. 111 */const FC=He("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 112 * @license lucide-react v0.462.0 - ISC 113 * 114 * This source code is licensed under the ISC license. 115 * See the LICENSE file in the root directory of this source tree. 116 */const zC=He("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 117 * @license lucide-react v0.462.0 - ISC 118 * 119 * This source code is licensed under the ISC license. 120 * See the LICENSE file in the root directory of this source tree. 121 */const bw=He("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/** 122 * @license lucide-react v0.462.0 - ISC 123 * 124 * This source code is licensed under the ISC license. 125 * See the LICENSE file in the root directory of this source tree. 126 */const UC=He("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 127 * @license lucide-react v0.462.0 - ISC 128 * 129 * This source code is licensed under the ISC license. 130 * See the LICENSE file in the root directory of this source tree. 131 */const HC=He("Send",[["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"}]]);/** 132 * @license lucide-react v0.462.0 - ISC 133 * 134 * This source code is licensed under the ISC license. 135 * See the LICENSE file in the root directory of this source tree.
136 */const Cw=He("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 137 * @license lucide-react v0.462.0 - ISC 138 * 139 * This source code is licensed under the ISC license. 140 * See the LICENSE file in the root directory of this source tree. 141 */const BC=He("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 142 * @license lucide-react v0.462.0 - ISC 143 * 144 * This source code is licensed under the ISC license. 145 * See the LICENSE file in the root directory of this source tree. 146 */const Tw=He("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),qf="-",VC=e=>{const t=QC(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const l=i.split(qf);return l[0]===""&&l.length!==1&&l.shift(),Pw(l,t)||WC(i)},getConflictingClassGroupIds:(i,l)=>{const a=n[i]||[];return l&&r[i]?[...a,...r[i]]:a}}},Pw=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Pw(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(qf);return(i=t.validators.find(({validator:l})=>l(o)))==null?void 0:i.classGroupId},Gm=/^\[(.+)\]$/,WC=e=>{if(Gm.test(e)){const t=Gm.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},QC=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return qC(Object.entries(e.classGroups),n).forEach(([o,i])=>{pd(i,r,o,t)}),r},pd=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:qm(t,s);o.classGroupId=n;return}if(typeof s=="function"){if(GC(s)){pd(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,i])=>{pd(i,qm(t,o),n,r)})})},qm=(e,t)=>
vendor: 4,773 bytes, line 146
146{let n=e;return t.split(qf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},GC=e=>e.isThemeGetter,qC=(e,t)=>t?e.map(([n,r])=>{const s=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,l])=>[t+i,l])):o);return[n,s]}):e,KC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return s(o,i),i},set(o,i){n.has(o)?n.set(o,i):s(o,i)}}},Rw="!",YC=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],o=t.length,i=l=>{const a=[];let c=0,u=0,d;for(let E=0;E<l.length;E++){let w=l[E];if(c===0){if(w===s&&(r||l.slice(E,E+o)===t)){a.push(l.slice(u,E)),u=E+o;continue}if(w==="/"){d=E;continue}}w==="["?c++:w==="]"&&c--}const f=a.length===0?l:l.substring(u),p=f.startsWith(Rw),g=p?f.substring(1):f,m=d&&d>u?d-u:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:m}};return n?l=>n({className:l,parseClassName:i}):i},XC=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},JC=e=>({cache:KC(e.cacheSize),parseClassName:YC(e),...VC(e)}),ZC=/\s+/,eT=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(ZC);let l="";for(let a=i.length-1;a>=0;a-=1){const c=i[a],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(c);let g=!!p,m=r(g?f.substring(0,p):f);if(!m){if(!g){l=c+(l.length>0?" "+l:l);continue}if(m=r(f),!m){l=c+(l.length>0?" "+l:l);continue}g=!1}const E=XC(u).join(":"),w=d?E+Rw:E,y=w+m;if(o.includes(y))continue;o.push(y);const x=s(m,g);for(let S=0;S<x.length;++S){const C=x[S];o.push(w+C)}l=c+(l.length>0?" "+l:l)}return l};function tT(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Aw(t))&&(r&&(r+=" "),r+=n);return r}const Aw=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Aw(e[r]))&&(n&&(n+=" "),n+=t);return n};function nT(e,...t){let n,r,s,o=i;function i(a){const c=t.reduce((u,d)=>d(u),e());return n=JC(c),r=n.cache.get,s=n.cache.set,o=l,l(a)}function l(a){const c=r(a);if(c)return c;const u=eT(a,n);return s(a,u),u}return function(){return o(tT.apply(null,arguments))}}const ge=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},kw=/^\[(?:([a-z-]+):)?(.+)\]$/i,rT=/^\d+\/\d+$/,sT=new Set(["px","full","screen"]),oT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,iT=/\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$/,aT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yn=e=>Ls(e)||sT.has(e)||rT.test(e),Wn=e=>ho(e,"length",yT),Ls=e=>!!e&&!Number.isNaN(Number(e)),qc=e=>ho(e,"number",Ls),No=e=>!!e&&Number.isInteger(Number(e)),uT=e=>e.endsWith("%")&&Ls(e.slice(0,-1)),re=e=>kw.test(e),Qn=e=>oT.test(e),dT=new Set(["length","size","percentage"]),fT=e=>ho(e,dT,_w),pT=e=>ho(e,"position",_w),hT=new Set(["image","url"]),mT=e=>ho(e,hT,wT),gT=e=>ho(e,"",vT),Oo=()=>!0,ho=(e,t,n)=>{const r=kw.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},yT=e=>iT.test(e)&&!aT.test(e),_w=()=>!1,vT=e=>lT.test(e),wT=e=>cT.test(e),xT=()=>{const e=ge("colors"),t=ge("spacing"),n=ge("blur"),r=ge("brightness"),s=ge("borderColor"),o=ge("borderRadius"),i=ge("borderSpacing"),l=ge("borderWidth"),a=ge("contrast"),c=ge("grayscale"),u=ge("hueRotate"),d=ge("invert"),f=ge("gap"),p=ge("gradientColorStops"),g=ge("gradientColorStopPositions"),m=ge("inset"),E=ge("margin"),w=ge("opacity"),y=ge("padding"),x=ge("saturate"),S=ge("scale"),C=ge("sepia"),T=ge("skew"),P=ge("space"),k=ge("translate"),D=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",re,t],L=()=>[re,t],ne=()=>["",yn,Wn],j=()=>["auto",Ls,re],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",re],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>[Ls,re];return{cacheSize:500,separator:":",theme:{colors:[Oo],spacing:[yn,Wn],blur:["none","",Qn,re],brightness:ee(),borderColor:[e],borderRadius:["n
146one","","full",Qn,re],borderSpacing:L(),borderWidth:ne(),contrast:ee(),grayscale:O(),hueRotate:ee(),invert:O(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[uT,Wn],inset:B(),margin:B(),opacity:ee(),padding:L(),saturate:ee(),scale:ee(),sepia:O(),skew:ee(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",re]}],container:["container"],columns:[{columns:[Qn]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),re]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",No,re]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",re]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",No,re]}],"grid-cols":[{"grid-cols":[Oo]}],"col-start-end":[{col:["auto",{span:["full",No,re]},re]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[Oo]}],"row-start-end":[{row:["auto",{span:[No,re]},re]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",re]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",..._()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[E]}],mx:[{mx:[E]}],my:[{my:[E]}],ms:[{ms:[E]}],me:[{me:[E]}],mt:[{mt:[E]}],mr:[{mr:[E]}],mb:[{mb:[E]}],ml:[{ml:[E]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",re,t]}],"min-w":[{"min-w":[re,t,"min","max","fit"]}],"max-w":[{"max-w":[re,t,"none","full","min","max","fit","prose",{screen:[Qn]},Qn]}],h:[{h:[re,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[re,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Qn,Wn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qc]}],"font-family":[{font:[Oo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",re]}],"line-clamp":[{"line-clamp":["none",Ls,qc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",yn,re]}],"list-image":[{"list-image":["none",re]}],"list-style-type":[{list:["none","disc","decimal",re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",yn,Wn]}],"underline-offset":[{"underline-offset":["auto",yn,re]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),pT]}
vendor: 4,184 bytes, line 146
146],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",fT]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},mT]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:Y()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[yn,re]}],"outline-w":[{outline:[yn,Wn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[yn,Wn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Qn,gT]}],"shadow-color":[{shadow:[Oo]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",Qn,re]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",re]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",re]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[No,re]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",re]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","
146none","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",re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[yn,Wn,qc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},ET=nT(xT);function Dn(...e){return ET(xw(e))}function w$(){if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();const e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;const t=Array.from(e,n=>n.toString(16).padStart(2,"0")).join("");return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}const ST=AC,Nw=v.forwardRef(({className:e,...t},n)=>h.jsx(pw,{ref:n,className:Dn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));
146Nw.displayName=pw.displayName;const bT=Ew("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ow=v.forwardRef(({className:e,variant:t,...n},r)=>h.jsx(hw,{ref:r,className:Dn(bT({variant:t}),e),...n}));Ow.displayName=hw.displayName;const CT=v.forwardRef(({className:e,...t},n)=>h.jsx(yw,{ref:n,className:Dn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));CT.displayName=yw.displayName;const Iw=v.forwardRef(({className:e,...t},n)=>h.jsx(vw,{ref:n,className:Dn("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:h.jsx(Tw,{className:"h-4 w-4"})}));Iw.displayName=vw.displayName;const Mw=v.forwardRef(({className:e,...t},n)=>h.jsx(mw,{ref:n,className:Dn("text-sm font-semibold",e),...t}));Mw.displayName=mw.displayName;const jw=v.forwardRef(({className:e,...t},n)=>h.jsx(gw,{ref:n,className:Dn("text-sm opacity-90",e),...t}));jw.displayName=gw.displayName;function TT(){const{toasts:e}=G0();return h.jsxs(ST,{children:[e.map(function({id:t,title:n,description:r,action:s,...o}){return h.jsxs(Ow,{...o,children:[h.jsxs("div",{className:"grid gap-1",children:[n&&h.jsx(Mw,{children:n}),r&&h.jsx(jw,{children:r})]}),s,h.jsx(Iw,{})]},t)}),h.jsx(Nw,{})]})}var Km=["light","dark"],PT="(prefers-color-scheme: dark)",RT=v.createContext(void 0),AT={setTheme:e=>{},themes:[]},kT=()=>{var e;return(e=v.useContext(RT))!=null?e:AT};v.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:o,value:i,attrs:l,nonce:a})=>{let c=o==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(g=>`'${g}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=s?Km.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(g,m=!1,E=!0)=>{let w=i?i[g]:g,y=m?g+"|| ''":`'${w}'`,x="";return s&&E&&!m&&Km.includes(g)&&(x+=`d.style.colorScheme = '${g}';`),n==="class"?m||w?x+=`c.add(${y})`:x+="null":w&&(x+=`d[s](n,${y})`),x},p=e?`!function(){${u}${f(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${PT}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}${c?"":"else{"+f(o,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}else{${f(o,!1,!1)};}${d}}catch(t){}}();`;return v.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:p}})});var _T=e=>{switch(e){case"success":return IT;case"info":return jT;case"warning":return MT;case"error":return DT;default:return null}},NT=Array(12).fill(0),OT=({visible:e,className:t})=>N.createElement("div",{className:["sonner-loading-wrapper",t].filter(
146Boolean).join(" "),"data-visible":e},N.createElement("div",{className:"sonner-spinner"},NT.map((n,r)=>N.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),IT=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),MT=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},N.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),jT=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),DT=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),$T=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},N.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),N.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),LT=()=>{let[e,t]=N.useState(document.hidden);return N.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},hd=1,FT=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:hd++,o=this.toasts.find(l=>l.id===s),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...e,id:s,title:n}),{...l,...e,id:s,dismissible:i,title:n}):l):this.addToast({title:n,...r,dismissible:i,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
146this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0,o,i=r.then(async a=>{if(o=["resolve",a],N.isValidElement(a))s=!1,this.create({id:n,type:"default",message:a});else if(UT(a)&&!a.ok){s=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,u=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:c,description:u})}else if(t.success!==void 0){s=!1;let c=typeof t.success=="function"?await t.success(a):t.success,u=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:c,description:u})}}).catch(async a=>{if(o=["reject",a],t.error!==void 0){s=!1;let c=typeof t.error=="function"?await t.error(a):t.error,u=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:c,description:u})}}).finally(()=>{var a;s&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),l=()=>new Promise((a,c)=>i.then(()=>o[0]==="reject"?c(o[1]):a(o[1])).catch(c));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||hd++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},st=new FT,zT=(e,t)=>{let n=(t==null?void 0:t.id)||hd++;return st.addToast({title:e,...t,id:n}),n},UT=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",HT=zT,BT=()=>st.toasts,VT=()=>st.getActiveToasts(),x$=Object.assign(HT,{success:st.success,info:st.info,warning:st.warning,error:st.error,custom:st.custom,message:st.message,promise:st.promise,dismiss:st.dismiss,loading:st.loading},{getHistory:BT,getToasts:VT});function WT(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}WT(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
146left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
146:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
146--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 147`);function va(e){return e.label!==void 0}var QT=3,GT="32px",qT="16px",Ym=4e3,KT=356,YT=14,XT=20,JT=200;function Lt(...e){return e.filter(Boolean).join(" ")}function ZT(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var e2=e=>{var t,n,r,s,o,i,l,a,c,u,d;let{invert:f,toast:p,unstyled:g,interacting:m,setHeights:E,visibleToasts:w,heights:y,index:x,toasts:S,expanded:C,removeToast:T,defaultRichColors:P,closeButton:k,style:D,cancelButtonStyle:M,actionButtonStyle:B,className:L="",descriptionClassName:ne="",duration:j,position:J,gap:Y,loadingIcon:X,expandByDefault:_,classNames:O,icons:$,closeButtonAriaLabel:ee="Close toast",pauseWhenPageIsHidden:G}=e,[se,oe]=N.useState(null),[ke,Be]=N.useState(null),[fe,as]=N.useState(!1),[Ln,_r]=N.useState(!1),[Fn,ls]=N.useState(!1),[zn,Ki]=N.useState(!1),[hc,Yi]=N.useState(!1),[mc,Eo]=N.useState(0),[cs,Eh]=N.useState(0),So=N.useRef(p.duration||j||Ym),Sh=N.useRef(null),Nr=N.useRef(null),HE=x===0,BE=x+1<=w,Ct=p.type,us=p.dismissible!==!1,VE=p.className||"",WE=p.descriptionClassName||"",Xi=N.useMemo(()=>y.findIndex(te=>te.toastId===p.id)||0,[y,p.id]),QE=N.useMemo(()=>{var te;return(te=p.closeButton)!=null?te:k},[p.closeButton,k]),bh=N.useMemo(()=>p.duration||j||Ym,[p.duration,j]),gc=N.useRef(0),ds=N.useRef(0),Ch=N.useRef(0),fs=N.useRef(null),[GE,qE]=J.split("-"),Th=N.useMemo(()=>y.reduce((te,he,we)=>we>=Xi?te:te+he.height,0),[y,Xi]),Ph=LT(),KE=p.invert||f,yc=Ct==="loading";ds.current=N.useMemo(()=>Xi*Y+Th,[Xi,Th]),N.useEffect(()=>{So.current=bh},[bh]),N.useEffect(()=>{as(!0)},[]),N.useEffect(()=>{let te=Nr.current;if(te){let he=te.getBoundingClientRect().height;return Eh(he),E(we=>[{toastId:p.id,height:he,position:p.position},...we]),()=>E(we=>we.filter(Mt=>Mt.toastId!==p.id))}},[E,p.id]),N.useLayoutEffect(()=>{if(!fe)return;let te=Nr.current,he=te.style.height;te.style.height="auto";let we=te.getBoundingClientRect().height;te.style.height=he,Eh(we),E(Mt=>Mt.find(jt=>jt.toastId===p.id)?Mt.map(jt=>jt.toastId===p.id?{...jt,height:we}:jt):[{toastId:p.id,height:we,position:p.position},...Mt])},[fe,p.title,p.description,E,p.id]);let Un=N.useCallback(()=>{_r(!0),Eo(ds.current),E(te=>te.filter(he=>he.toastId!==p.id)),setTimeout(()=>{T(p)},JT)},[p,T,E,ds]);N.useEffect(()=>{if(p.promise&&Ct==="loading"||p.duration===1/0||p.type==="loading")return;let te;return C||m||G&&Ph?(()=>{if(Ch.current<gc.current){let he=new Date().getTime()-gc.current;So.current=So.current-he}
147Ch.current=new Date().getTime()})():So.current!==1/0&&(gc.current=new Date().getTime(),te=setTimeout(()=>{var he;(he=p.onAutoClose)==null||he.call(p,p),Un()},So.current)),()=>clearTimeout(te)},[C,m,p,Ct,G,Ph,Un]),N.useEffect(()=>{p.delete&&Un()},[Un,p.delete]);function YE(){var te,he,we;return $!=null&&$.loading?N.createElement("div",{className:Lt(O==null?void 0:O.loader,(te=p==null?void 0:p.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":Ct==="loading"},$.loading):X?N.createElement("div",{className:Lt(O==null?void 0:O.loader,(he=p==null?void 0:p.classNames)==null?void 0:he.loader,"sonner-loader"),"data-visible":Ct==="loading"},X):N.createElement(OT,{className:Lt(O==null?void 0:O.loader,(we=p==null?void 0:p.classNames)==null?void 0:we.loader),visible:Ct==="loading"})}return N.createElement("li",{tabIndex:0,ref:Nr,className:Lt(L,VE,O==null?void 0:O.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,O==null?void 0:O.default,O==null?void 0:O[Ct],(n=p==null?void 0:p.classNames)==null?void 0:n[Ct]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:P,"data-styled":!(p.jsx||p.unstyled||g),"data-mounted":fe,"data-promise":!!p.promise,"data-swiped":hc,"data-removed":Ln,"data-visible":BE,"data-y-position":GE,"data-x-position":qE,"data-index":x,"data-front":HE,"data-swiping":Fn,"data-dismissible":us,"data-type":Ct,"data-invert":KE,"data-swipe-out":zn,"data-swipe-direction":ke,"data-expanded":!!(C||_&&fe),style:{"--index":x,"--toasts-before":x,"--z-index":S.length-x,"--offset":`${Ln?mc:ds.current}px`,"--initial-height":_?"auto":`${cs}px`,...D,...p.style},onDragEnd:()=>{ls(!1),oe(null),fs.current=null},onPointerDown:te=>{yc||!us||(Sh.current=new Date,Eo(ds.current),te.target.setPointerCapture(te.pointerId),te.target.tagName!=="BUTTON"&&(ls(!0),fs.current={x:te.clientX,y:te.clientY}))},onPointerUp:()=>{var te,he,we,Mt;if(zn||!us)return;fs.current=null;let jt=Number(((te=Nr.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Hn=Number(((he=Nr.current)==null?void 0:he.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Or=new Date().getTime()-((we=Sh.current)==null?void 0:we.getTime()),Dt=se==="x"?jt:Hn,Bn=Math.abs(Dt)/Or;if(Math.abs(Dt)>=XT||Bn>.11){Eo(ds.current),(Mt=p.onDismiss)==null||Mt.call(p,p),Be(se==="x"?jt>0?"right":"left":Hn>0?"down":"up"),Un(),Ki(!0),Yi(!1);return}ls(!1),oe(null)},onPointerMove:te=>{var he,we,Mt,jt;if(!fs.current||!us||((he=window.getSelection())==null?void 0:he.toString().length)>0)return;let Hn=te.clientY-fs.current.y,Or=te.clientX-fs.current.x,Dt=(we=e.swipeDirections)!=null?we:ZT(J);!se&&(Math.abs(Or)>1||Math.abs(Hn)>1)&&oe(Math.abs(Or)>Math.abs(Hn)?"x":"y");let Bn={x:0,y:0};se==="y"?(Dt.includes("top")||Dt.includes("bottom"))&&(Dt.includes("top")&&Hn<0||Dt.includes("bottom")&&Hn>0)&&(Bn.y=Hn):se==="x"&&(Dt.includes("left")||Dt.includes("right"))&&(Dt.includes("left")&&Or<0||Dt.includes("right")&&Or>0)&&(Bn.x=Or),(Math.abs(Bn.x)>0||Math.abs(Bn.y)>0)&&Yi(!0),(Mt=Nr.current)==null||Mt.style.setProperty("--swipe-amount-x",`${Bn.x}px`),(jt=Nr.current)==null||jt.style.setProperty("--swipe-amount-y",`${Bn.y}px`)}},QE&&!p.jsx?N.createElement("button",{"aria-label":ee,"data-disabled":yc,"data-close-button":!0,onClick:yc||!us?()=>{}:()=>{var te;Un(),(te=p.onDismiss)==null||te.call(p,p)},className:Lt(O==null?void 0:O.closeButton,(s=p==null?void 0:p.classNames)==null?void 0:s.closeButton)},(o=$==null?void 0:$.close)!=null?o:$T):null,p.jsx||v.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:N.createElement(N.Fragment,null,Ct||p.icon||p.promise?N.createElement("div",{"data-icon":"",className:Lt(O==null?void 0:O.icon,(i=p==null?void 0:p.classNames)==null?void 0:i.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||YE():null,p.type!=="loading"?p.icon||($==null?void 0:$[Ct])||_T(Ct):null):null,N.createElement("div",{"data-content":"",className:Lt(O==null?void 0:O.content,(l=p==null?void 0:p.classNames)==null?void 0:l.content)},N.createElement("div",{"data-title":"",className:Lt(O==null?void 0:O.title,(a=p==null?void 0:p.classNames)==null?void 0:a.title)},typeof p.title=="function"?p.title():p.title),p.description?N.createElement("div",{"data-description":"",className:Lt(ne,WE,O==null?void 0:O.de
147scription,(c=p==null?void 0:p.classNames)==null?void 0:c.description)},typeof p.description=="function"?p.description():p.description):null),v.isValidElement(p.cancel)?p.cancel:p.cancel&&va(p.cancel)?N.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||M,onClick:te=>{var he,we;va(p.cancel)&&us&&((we=(he=p.cancel).onClick)==null||we.call(he,te),Un())},className:Lt(O==null?void 0:O.cancelButton,(u=p==null?void 0:p.classNames)==null?void 0:u.cancelButton)},p.cancel.label):null,v.isValidElement(p.action)?p.action:p.action&&va(p.action)?N.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||B,onClick:te=>{var he,we;va(p.action)&&((we=(he=p.action).onClick)==null||we.call(he,te),!te.defaultPrevented&&Un())},className:Lt(O==null?void 0:O.actionButton,(d=p==null?void 0:p.classNames)==null?void 0:d.actionButton)},p.action.label):null))};function Xm(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function t2(e,t){let n={};return[e,t].forEach((r,s)=>{let o=s===1,i=o?"--mobile-offset":"--offset",l=o?qT:GT;function a(c){["top","right","bottom","left"].forEach(u=>{n[`${i}-${u}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${i}-${c}`]=l:n[`${i}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):a(l)}),n}var n2=v.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:i,className:l,offset:a,mobileOffset:c,theme:u="light",richColors:d,duration:f,style:p,visibleToasts:g=QT,toastOptions:m,dir:E=Xm(),gap:w=YT,loadingIcon:y,icons:x,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:C}=e,[T,P]=N.useState([]),k=N.useMemo(()=>Array.from(new Set([r].concat(T.filter(G=>G.position).map(G=>G.position)))),[T,r]),[D,M]=N.useState([]),[B,L]=N.useState(!1),[ne,j]=N.useState(!1),[J,Y]=N.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=N.useRef(null),_=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=N.useRef(null),$=N.useRef(!1),ee=N.useCallback(G=>{P(se=>{var oe;return(oe=se.find(ke=>ke.id===G.id))!=null&&oe.delete||st.dismiss(G.id),se.filter(({id:ke})=>ke!==G.id)})},[]);return N.useEffect(()=>st.subscribe(G=>{if(G.dismiss){P(se=>se.map(oe=>oe.id===G.id?{...oe,delete:!0}:oe));return}setTimeout(()=>{W0.flushSync(()=>{P(se=>{let oe=se.findIndex(ke=>ke.id===G.id);return oe!==-1?[...se.slice(0,oe),{...se[oe],...G},...se.slice(oe+1)]:[G,...se]})})})}),[]),N.useEffect(()=>{if(u!=="system"){Y(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Y("dark"):Y("light")),typeof window>"u")return;let G=window.matchMedia("(prefers-color-scheme: dark)");try{G.addEventListener("change",({matches:se})=>{Y(se?"dark":"light")})}catch{G.addListener(({matches:oe})=>{try{Y(oe?"dark":"light")}catch(ke){console.error(ke)}})}},[u]),N.useEffect(()=>{T.length<=1&&L(!1)},[T]),N.useEffect(()=>{let G=se=>{var oe,ke;s.every(Be=>se[Be]||se.code===Be)&&(L(!0),(oe=X.current)==null||oe.focus()),se.code==="Escape"&&(document.activeElement===X.current||(ke=X.current)!=null&&ke.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",G),()=>document.removeEventListener("keydown",G)},[s]),N.useEffect(()=>{if(X.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,$.current=!1)}},[X.current]),N.createElement("section",{ref:t,"aria-label":`${S} ${_}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},k.map((G,se)=>{var oe;let[ke,Be]=G.split("-");return T.length?N.createElement("ol",{key:G,dir:E==="auto"?Xm():E,tabIndex:-1,ref:X,className:l,"data-sonner-toaster":!0,"data-theme":J,"data-y-position":ke,"data-lifted":B&&T.length>1&&!o,"data-x-position":Be,style:{"--front-toast-height":`${((oe=D[0])==null?void 0:oe.height)||0}px`,"--width":`${KT}px`,"--gap":`${w}px`,...p,...t2(a,c)},onBlur:fe=>{$.current&&!fe.currentTarget.contains(fe.relatedTarget)&&($.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||$.current||($.current=!0,O.current=fe.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{ne||L(!1)},onDragEnd:()=>L(!1),onPointerDown:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||j(!0)},onPointerUp:()=>j(!1)},T.filter(fe=>!fe.position&&se===0||fe.position===G).map((fe,as)=>{var Ln,_r;return N.createElement(e2,{key:fe.id,icons:x,index:as,toast:fe,defaultRichColors:d,duration:(Ln=m==null?void 0:m.duration)!=null?Ln:f,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:n,visibleToasts:g,closeButton:(_r=m==null?void 0:m.closeButton)!=null?_r:i,interacting:ne,position:G,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:ee,toasts:T.filter(Fn=>Fn.position==fe.position),heights:D.filter(Fn=>Fn.position==fe.position),setHeights:M,expandByDefault:o,gap:w,loadingIcon:y,expanded:B,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))});const r2=({...e})=>{const{theme:t="system"}=kT();return h.jsx(n2,{theme:t,className:"toaster group",position:"bottom-right",duration:2e3,toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var s2=Il[" useId ".trim().toString()]||(()=>{}),o2=0;function i2(e){const[t,n]=v.useState(s2());return On(()=>{n(r=>r??String(o2++))},[e]),e||(t?`radix-${t}`:"")}const a2=["top","right","bottom","left"],Cr=Math.min,ht=Math.max,yl=Math.round,wa=Math.floor,fn=e=>({x:e,y:e}
vendor: 10,499 bytes, line 147
147),l2={left:"right",right:"left",bottom:"top",top:"bottom"},c2={start:"end",end:"start"};function md(e,t,n){return ht(e,Cr(t,n))}function In(e,t){return typeof e=="function"?e(t):e}function Mn(e){return e.split("-")[0]}function mo(e){return e.split("-")[1]}function Kf(e){return e==="x"?"y":"x"}function Yf(e){return e==="y"?"height":"width"}const u2=new Set(["top","bottom"]);function ln(e){return u2.has(Mn(e))?"y":"x"}function Xf(e){return Kf(ln(e))}function d2(e,t,n){n===void 0&&(n=!1);const r=mo(e),s=Xf(e),o=Yf(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=vl(i)),[i,vl(i)]}function f2(e){const t=vl(e);return[gd(e),t,gd(t)]}function gd(e){return e.replace(/start|end/g,t=>c2[t])}const Jm=["left","right"],Zm=["right","left"],p2=["top","bottom"],h2=["bottom","top"];function m2(e,t,n){switch(e){case"top":case"bottom":return n?t?Zm:Jm:t?Jm:Zm;case"left":case"right":return t?p2:h2;default:return[]}}function g2(e,t,n,r){const s=mo(e);let o=m2(Mn(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(gd)))),o}function vl(e){return e.replace(/left|right|bottom|top/g,t=>l2[t])}function y2(e){return{top:0,right:0,bottom:0,left:0,...e}}function Dw(e){return typeof e!="number"?y2(e):{top:e,right:e,bottom:e,left:e}}function wl(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function eg(e,t,n){let{reference:r,floating:s}=e;const o=ln(t),i=Xf(t),l=Yf(i),a=Mn(t),c=o==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,f=r[l]/2-s[l]/2;let p;switch(a){case"top":p={x:u,y:r.y-s.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-s.width,y:d};break;default:p={x:r.x,y:r.y}}switch(mo(t)){case"start":p[i]-=f*(n&&c?-1:1);break;case"end":p[i]+=f*(n&&c?-1:1);break}return p}async function v2(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:l,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=In(t,e),g=Dw(p),E=l[f?d==="floating"?"reference":"floating":d],w=wl(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(E)))==null||n?E:E.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),y=d==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),S=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},C=wl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:x,strategy:a}):y);return{top:(w.top-C.top+g.top)/S.y,bottom:(C.bottom-w.bottom+g.bottom)/S.y,left:(w.left-C.left+g.left)/S.x,right:(C.right-w.right+g.right)/S.x}}const w2=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,l=o.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=eg(c,r,a),f=r,p={},g=0;for(let E=0;E<l.length;E++){var m;const{name:w,fn:y}=l[E],{x,y:S,data:C,reset:T}=await y({x:u,y:d,initialPlacement:r,placement:f,strategy:s,middlewareData:p,rects:c,platform:{...i,detectOverflow:(m=i.detectOverflow)!=null?m:v2},elements:{reference:e,floating:t}});u=x??u,d=S??d,p={...p,[w]:{...p[w],...C}},T&&g<=50&&(g++,typeof T=="object"&&(T.placement&&(f=T.placement),T.rects&&(c=T.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):T.rects),{x:u,y:d}=eg(c,f,a)),E=-1)}return{x:u,y:d,placement:f,strategy:s,middlewareData:p}},x2=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:i,elements:l,middlewareData:a}=t,{element:c,padding:u=0}=In(e,t)||{};if(c==null)return{};const d=Dw(u),f={x:n,y:r},p=Xf(s),g=Yf(p),m=await i.getDimensions(c),E=p==="y",w=E?"top":"left",y=E?"bottom":"right",x=E?"clientHeight":"clientWidth",S=o.reference[g]+o.reference[p]-f[p]-o.floating[g],C=f[p]-o.reference[p],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let P=T?T[x]:0;(!P||!await(i.isElement==null?void 0:i.isElement(T)))&&(P=l.floating[x]||o.floating[g]);const k=S/2-C/2,D=P/2-m[g]/2-1,M=Cr(d[w],D),B=Cr(d[y],D),L=M,ne=P-m[g]-B,j=P/2-m[g]/2+k,J=md(L,j,ne),Y=!a.arrow&&mo(s)!=null&&j!==J&&o.reference[g]/2-(j<L?M:B)-m[g]/2<0,X=Y?j<L?j-L:j-ne:0;return{[p]:f[p]+X,data:{[p]:J,centerOffset:j-J-X,...Y&&{alignmentOffset:X}},reset:Y}}}),E2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:i,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...E}=In(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const w=Mn(s),y=ln(l),x=Mn(l)===l,S=await(a.isRTL==null?void 0:a.isRTL(c.floating)),C=f||(x||!m?[vl(l)]:f2(l)),T=g!=="none";!f&&T&&C.push(...g2(l,m,g,S));const P=[l,...C],k=await a.detectOverflow(t,E),D=[];let M=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&D.push(k[w]),d){const j=d2(s,i,S);D.push(k[j[0]],k[j[1]])}if(M=[...M,{placement:s,overflows:D}],!D.every(j=>j<=0)){var B,L;const j=(((B=o.flip)==null?void 0:B.index)||0)+1,J=P[j];if(J&&(!(d==="alignment"?y!==ln(J):!1)||M.every(_=>ln(_.placement)===y?_.overflows[0]>0:!0)))return{data:{index:j,overflows:M},reset:{placement:J}};let Y=(L=M.filter(X=>X.overflows[0]<=0).sort((X,_)=>X.overflows[1]-_.overflows[1])[0])==null?void 0:L.placement;if(!Y)switch(p){case"bestFit":{var ne;const X=(ne=M.filter(_=>{if(T){const O=ln(_.placement);return O===y||O==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(O=>O>0).reduce((O,$)=>O+$,0)]).sort((_,O)=>_[1]-O[1])[0])==null?void 0:ne[0];X&&(Y=X);break}case"initialPlacement":Y=l;break}if(s!==Y)return{reset:{placement:Y}}}return{}}}};function tg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ng(e){return a2.some(t=>e[t]>=0)}const S2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:s="referenceHidden",...o}=In(e,t);switch(s){case"referenceHidden":{const i=await r.detectOverflow(t,{...o,elementContext:"reference"}),l=tg(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:ng(l)}}}case"escaped":{const i=await r.detectOverflow(t,{...o,altBoundary:!0}),l=tg(i,n.floating);return{data:{escapedOffsets:l,escaped:ng(l)}}}default:return{}}}}},$w=new Set(["left","top"]);async function b2(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=Mn(n),l=mo(n),a=ln(n)==="y",c=$w.has(i)?-1:1,u=o&&a?-1:1,d=In(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof g=="number"&&(p=l==="end"?g*-1:g),a?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const C2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:i,middlewareData:l}=t,a=await b2(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+a.x,y:o+a.y,data:{...a,placement:i}}}}},T2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s,platform:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:w=>{let{x:y,y:x}=w;return{x:y,y:x}}},...c}=In(e,t),u={x:n,y:r},d=await o.detectOverflow(t,c),f=ln(Mn(s)),p=Kf(f);let g=u[p],m=u[f];if(i){const w=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=g+d[w],S=g-d[y];g=md(x,g,S)}if(l){const w=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=m+d[w],S=m-d[y];m=md(x,m,S)}const E=a.fn({...t,[p]:g,[f]:m});return{...E,data:{x:E.x-n,y:E.y-r,enabled:{[p]:i,[f]:l}}}}}},P2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:o,middlewareData:i}=t,{offset:l=0,mainAxis:a=!0,crossAxis:c=!0}=In(e,t),u={x:n,y:r},d=ln(s),f=Kf(d);let p=u[f],g=u[d];const m=In(l,t),E=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(a){const x=f==="y"?"height":"width",S=o.reference[f]-o.floating[x]+E.mainAxis,C=o.reference[f]+o.reference[x]-E.mainAxis;p<S?p=S:p>C&&(p=C)}if(c){var w,y;const x=f==="y"?"width":"height",S=$w.has(Mn(s)),C=o.reference[d]-o.floating[x]+(S&&((w=i.offset)==null?void 0:w[d])||0)+(S?0:E.crossAxis),T=o.reference[d]+o.reference[x]+(S?0:((y=i.offset)==null?void 0:y[d])||0)-(S?E.crossAxis:0);g<C?g=C:g>T&&(g=T)}return{[f]:p,[d]:g}}}},R2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:i,elements:l}=t,{apply:a=()=>{},...c}=In(e,t),u=await i.detectOverflow(t,c),d=Mn(s),f=mo(s),p=ln(s)==="y",{width:g,height:m}=o.floating;let E,w;d==="top"||d==="bottom"?(E=d,w=f===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(w=d,E=f==="end"?"top":"bottom");const y=m-u.top-u.bottom,x=g-u.left-u.right,S=Cr(m-u[E],y),C=Cr(g-u[w],x),T=!t.middlewareData.shift;let P=S,k=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=y),T&&!f){const M=ht(u.left,0),B=ht(u.right,0),L=ht(u.top,0),ne=ht(u.bottom,0);p?k=g-2*(M!==0||B!==0?M+B:ht(u.left,u.right)):P=m-2*(L!==0||ne!==0?L+ne:ht(u.top,u.bottom))}await a({...t,availableWidth:k,availableHeight:P});const D=await i.getDimensions(l.floating);return g!==D.width||m!==D.height?{reset:{rects:!0}}:{}}}};function Zl(){return typeof window<"u"}function go(e){return Lw(e)?(e.nodeName||"").toLowerCase():"#document"}function vt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function hn(e){var t;return(t=(Lw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Lw(e){return Zl()?e instanceof Node||e instanceof vt(e).Node:!1}function Yt(e){return Zl()?e instanceof Element||e instanceof vt(e).Element:!1}function pn(e){return Zl()?e instanceof HTMLElement||e instanceof vt(e).HTMLElement:!1}function rg(e){return!Zl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof vt(e).ShadowRoot}const A2=new Set(["inline","contents"]);function Qi(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Xt(e);
vendor: 16,530 bytes, line 147
147return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!A2.has(s)}const k2=new Set(["table","td","th"]);function _2(e){return k2.has(go(e))}const N2=[":popover-open",":modal"];function ec(e){return N2.some(t=>{try{return e.matches(t)}catch{return!1}})}const O2=["transform","translate","scale","rotate","perspective"],I2=["transform","translate","scale","rotate","perspective","filter"],M2=["paint","layout","strict","content"];function Jf(e){const t=Zf(),n=Yt(e)?Xt(e):e;return O2.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)||I2.some(r=>(n.willChange||"").includes(r))||M2.some(r=>(n.contain||"").includes(r))}function j2(e){let t=Tr(e);for(;pn(t)&&!so(t);){if(Jf(t))return t;if(ec(t))return null;t=Tr(t)}return null}function Zf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const D2=new Set(["html","body","#document"]);function so(e){return D2.has(go(e))}function Xt(e){return vt(e).getComputedStyle(e)}function tc(e){return Yt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Tr(e){if(go(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rg(e)&&e.host||hn(e);return rg(t)?t.host:t}function Fw(e){const t=Tr(e);return so(t)?e.ownerDocument?e.ownerDocument.body:e.body:pn(t)&&Qi(t)?t:Fw(t)}function Ei(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Fw(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),i=vt(s);if(o){const l=yd(i);return t.concat(i,i.visualViewport||[],Qi(s)?s:[],l&&n?Ei(l):[])}return t.concat(s,Ei(s,[],n))}function yd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zw(e){const t=Xt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=pn(e),o=s?e.offsetWidth:n,i=s?e.offsetHeight:r,l=yl(n)!==o||yl(r)!==i;return l&&(n=o,r=i),{width:n,height:r,$:l}}function ep(e){return Yt(e)?e:e.contextElement}function Fs(e){const t=ep(e);if(!pn(t))return fn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=zw(t);let i=(o?yl(n.width):n.width)/r,l=(o?yl(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const $2=fn(0);function Uw(e){const t=vt(e);return!Zf()||!t.visualViewport?$2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function L2(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==vt(e)?!1:t}function rs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=ep(e);let i=fn(1);t&&(r?Yt(r)&&(i=Fs(r)):i=Fs(e));const l=L2(o,n,r)?Uw(o):fn(0);let a=(s.left+l.x)/i.x,c=(s.top+l.y)/i.y,u=s.width/i.x,d=s.height/i.y;if(o){const f=vt(o),p=r&&Yt(r)?vt(r):r;let g=f,m=yd(g);for(;m&&r&&p!==g;){const E=Fs(m),w=m.getBoundingClientRect(),y=Xt(m),x=w.left+(m.clientLeft+parseFloat(y.paddingLeft))*E.x,S=w.top+(m.clientTop+parseFloat(y.paddingTop))*E.y;a*=E.x,c*=E.y,u*=E.x,d*=E.y,a+=x,c+=S,g=vt(m),m=yd(g)}}return wl({width:u,height:d,x:a,y:c})}function nc(e,t){const n=tc(e).scrollLeft;return t?t.left+n:rs(hn(e)).left+n}function Hw(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-nc(e,n),s=n.top+t.scrollTop;return{x:r,y:s}}function F2(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const o=s==="fixed",i=hn(r),l=t?ec(t.floating):!1;if(r===i||l&&o)return n;let a={scrollLeft:0,scrollTop:0},c=fn(1);const u=fn(0),d=pn(r);if((d||!d&&!o)&&((go(r)!=="body"||Qi(i))&&(a=tc(r)),pn(r))){const p=rs(r);c=Fs(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=i&&!d&&!o?Hw(i,a):fn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-a.scrollTop*c.y+u.y+f.y}}function z2(e){return Array.from(e.getClientRects())}function U2(e){const t=hn(e),n=tc(e),r=e.ownerDocument.body,s=ht(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ht(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+nc(e);const l=-n.scrollTop;return Xt(r).direction==="rtl"&&(i+=ht(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:i,y:l}}const sg=25;function H2(e,t){const n=vt(e),r=hn(e),s=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,l=0,a=0;if(s){o=s.width,i=s.height;const u=Zf();(!u||u&&t==="fixed")&&(l=s.offsetLeft,a=s.offsetTop)}const c=nc(r);if(c<=0){const u=r.ownerDocument,d=u.body,f=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-p);g<=sg&&(o-=g)}else c<=sg&&(o+=c);return{width:o,height:i,x:l,y:a}}const B2=new Set(["absolute","fixed"]);function V2(e,t){const n=rs(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=pn(e)?Fs(e):fn(1),i=e.clientWidth*o.x,l=e.clientHeight*o.y,a=s*o.x,c=r*o.y;return{width:i,height:l,x:a,y:c}}function og(e,t,n){let r;if(t==="viewport")r=H2(e,n);else if(t==="document")r=U2(hn(e));else if(Yt(t))r=V2(t,n);else{const s=Uw(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return wl(r)}function Bw(e,t){const n=Tr(e);return n===t||!Yt(n)||so(n)?!1:Xt(n).position==="fixed"||Bw(n,t)}function W2(e,t){const n=t.get(e);if(n)return n;let r=Ei(e,[],!1).filter(l=>Yt(l)&&go(l)!=="body"),s=null;const o=Xt(e).position==="fixed";let i=o?Tr(e):e;for(;Yt(i)&&!so(i);){const l=Xt(i),a=Jf(i);!a&&l.position==="fixed"&&(s=null),(o?!a&&!s:!a&&l.position==="static"&&!!s&&B2.has(s.position)||Qi(i)&&!a&&Bw(e,i))?r=r.filter(u=>u!==i):s=l,i=Tr(i)}return t.set(e,r),r}function Q2(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const i=[...n==="clippingAncestors"?ec(t)?[]:W2(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((c,u)=>{const d=og(t,u,s);return c.top=ht(d.top,c.top),c.right=Cr(d.right,c.right),c.bottom=Cr(d.bottom,c.bottom),c.left=ht(d.left,c.left),c},og(t,l,s));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function G2(e){const{width:t,height:n}=zw(e);return{width:t,height:n}}function q2(e,t,n){const r=pn(t),s=hn(t),o=n==="fixed",i=rs(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const a=fn(0);function c(){a.x=nc(s)}if(r||!r&&!o)if((go(t)!=="body"||Qi(s))&&(l=tc(t)),r){const p=rs(t,!0,o,t);a.x=p.x+t.clientLeft,a.y=p.y+t.clientTop}else s&&c();o&&!r&&s&&c();const u=s&&!r&&!o?Hw(s,l):fn(0),d=i.left+l.scrollLeft-a.x-u.x,f=i.top+l.scrollTop-a.y-u.y;return{x:d,y:f,width:i.width,height:i.height}}function Kc(e){return Xt(e).position==="static"}function ig(e,t){if(!pn(e)||Xt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return hn(e)===n&&(n=n.ownerDocument.body),n}function Vw(e,t){const n=vt(e);if(ec(e))return n;if(!pn(e)){let s=Tr(e);for(;s&&!so(s);){if(Yt(s)&&!Kc(s))return s;s=Tr(s)}return n}let r=ig(e,t);for(;r&&_2(r)&&Kc(r);)r=ig(r,t);return r&&so(r)&&Kc(r)&&!Jf(r)?n:r||j2(e)||n}const K2=async function(e){const t=this.getOffsetParent||Vw,n=this.getDimensions,r=await n(e.floating);return{reference:q2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Y2(e){return Xt(e).direction==="rtl"}const X2={convertOffsetParentRelativeRectToViewportRelativeRect:F2,getDocumentElement:hn,getClippingRect:Q2,getOffsetParent:Vw,getElementRects:K2,getClientRects:z2,getDimensions:G2,getScale:Fs,isElement:Yt,isRTL:Y2};function Ww(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function J2(e,t){let n=null,r;const s=hn(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(l||t(),!f||!p)return;const g=wa(d),m=wa(s.clientWidth-(u+f)),E=wa(s.clientHeight-(d+p)),w=wa(u),x={rootMargin:-g+"px "+-m+"px "+-E+"px "+-w+"px",threshold:ht(0,Cr(1,a))||1};let S=!0;function C(T){const P=T[0].intersectionRatio;if(P!==a){if(!S)return i();P?i(!1,P):r=setTimeout(()=>{i(!1,1e-7)},1e3)}P===1&&!Ww(c,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(C,{...x,root:s.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return i(!0),o}function Z2(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,c=ep(e),u=s||o?[...c?Ei(c):[],...Ei(t)]:[];u.forEach(w=>{s&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const d=c&&l?J2(c,n):null;let f=-1,p=null;i&&(p=new ResizeObserver(w=>{let[y]=w;y&&y.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),c&&!a&&p.observe(c),p.observe(t));let g,m=a?rs(e):null;a&&E();function E(){const w=rs(e);m&&!Ww(m,w)&&n(),m=w,g=requestAnimationFrame(E)}return n(),()=>{var w;u.forEach(y=>{s&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),d==null||d(),(w=p)==null||w.disconnect(),p=null,a&&cancelAnimationFrame(g)}}const eP=C2,tP=T2,nP=E2,rP=R2,sP=S2,ag=x2,oP=P2,iP=(e,t,n)=>{const r=new Map,s={platform:X2,...n},o={...s.platform,_c:r};return w2(e,t,{...s,platform:o})};var aP=typeof document<"u",lP=function(){},za=aP?v.useLayoutEffect:lP;function xl(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,s;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(!xl(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const o=s[r];if(!(o==="_owner"&&e.$$typeof)&&!xl(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Qw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lg(e,t){const n=Qw(e);return Math.round(t*n)/n}function Yc(e){const t=v.useRef(e);return za(()=>{t.current=e}),t}function cP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:o,floating:i}={},transform:l=!0,whileElementsMounted:a,open:c}=e,[u,d]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(r);xl(f,r)||p(r);const[g,m]=v.useState(null),[E,w]=v.useState(null),y=v.useCallback(_=>{_!==T.current&&(T.current=_,m(_))},[]),x=v.useCallback(_=>{_!==P.current&&(P.current=_,w(_))},[]),S=o||g,C=i||E,T=v.useRef(null),P=v.useRef(null),k=v.useRef(u),D=a!=null,M=Yc(a),B=Yc(s),L=Yc(c),ne=v.useCallback(()=>{if(!T.current||!P.current)return;const _={placement:t,strategy:n,middleware:f};B.current&&(_.platform=B.current),iP(T.current,P.current,_).then(O=>{const $={...O,isPositioned:L.current!==!1};j.current&&!xl(k.current,$)&&(k.current=$,Vi.flushSync(()=>{d($)}))})},[f,t,n,B,L]);za(()=>{c===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,d(_=>({..._,isPositioned:!1})))},[c]);const j=v.useRef(!1);za(()=>(j.current=!0,()=>{j.current=!1}),[]),za(()=>{if(S&&(T.current=S),C&&(P.current=C),S&&C){if(M.current)return M.current(S,C,ne);ne()}},[S,C,ne,M,D]);const J=v.useMemo(()=>({reference:T,floating:P,setReference:y,setFloating:x}),[y,x]),Y=v.useMemo(()=>({reference:S,floating:C}),[S,C]),X=v.useMemo(()=>{const _={position:n,left:0,top:0};if(!Y.floating)return _;const O=lg(Y.floating,u.x),$=lg(Y.floating,u.y);return l?{..._,transform:"translate("+O+"px, "+$+"px)",...Qw(Y.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:$}},[n,l,Y.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:ne,refs:J,elements:Y,floatingStyles:X}),[u,ne,J,Y,X])}const uP=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ag({element:r.current,padding:s}).fn(n):{}:r?ag({element:r,padding:s}).fn(n):{}}}},dP=(e,t)=>({...eP(e),options:[e,t]}),fP=(e,t)=>({...tP(e),options:[e,t]}),pP=(e,t)=>({...oP(e),options:[e,t]}),hP=(e,t)=>({...nP(e),options:[e,t]}),mP=(e,t)=>({...rP(e),options:[e,t]}),gP=(e,t)=>({...sP(e),options:[e,t]}),yP=(e,t)=>({...uP(e),options:[e,t]});var vP="Arrow",Gw=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...o}=e;return h.jsx(dt.svg,{...o,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gw.displayName=vP;var wP=Gw;function xP(e){const[t,n]=v.useState(void 0);return On(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let i,l;if("borderBoxSize"in o){const a=o.borderBoxSize,c=Array.isArray(a)?a[0]:a;i=c.inlineSize,l=c.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 tp="Popper",[qw,Kw]=Yl(tp),[EP,Yw]=qw(tp),Xw=e=>{const{__scopePopper:t,children:n}=e,[r,s]=v.useState(null);return h.jsx(EP,{scope:t,anchor:r,onAnchorChange:s,children:n})};Xw.displayName=tp;var Jw="PopperAnchor",Zw=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,o=Yw(Jw,n),i=v.useRef(null),l=Kt(t,i),a=v.useRef(null);return v.useEffect(()=>{const c=a.current;a.current=(r==null?void 0:r.current)||i.current,c!==a.current&&o.onAnchorChange(a.current)}),r?null:h.jsx(dt.div,{...s,ref:l})});Zw.displayName=Jw;var np="PopperContent",[SP,bP]=qw(np),ex=v.forwardRef((e,t)=>{var fe,as,Ln,_r,Fn,ls;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:g,...m}=e,E=Yw(np,n),[w,y]=v.useState(null),x=Kt(t,zn=>y(zn)),[S,C]=v.useState(null),T=xP(S),P=(T==null?void 0:T.width)??0,k=(T==null?void 0:T.height)??0,D=r+(o!=="center"?"-"+o:""),M=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},B=Array.isArray(c)?c:[c],L=B.length>0,ne={padding:M,boundary:B.filter(TP),altBoundary:L},{refs:j,floatingStyles:J,placement:Y,isPositioned:X,middlewareData:_}=cP({strategy:"fixed",placement:D,whileElementsMounted:(...zn)=>Z2(...zn,{animationFrame:p==="always"}),elements:{reference:E.anchor},middleware:[dP({mainAxis:s+k,alignmentAxis:i}),a&&fP({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?pP():void 0,...ne}),a&&hP({...ne}),mP({...ne,apply:({elements:zn,rects:Ki,availableWidth:hc,availableHeight:Yi})=>{const{width:mc,height:Eo}=Ki.reference,cs=zn.floating.style;cs.setProperty("--radix-popper-available-width",`${hc}px`),cs.setProperty("--radix-popper-available-height",`${Yi}px`),cs.setProperty("--radix-popper-anchor-width",`${mc}px`),cs.setProperty("--radix-popper-anchor-height",`${Eo}px`)}}),S&&yP({element:S,padding:l}),PP({arrowWidth:P,arrowHeight:k}),f&&gP({strategy:"referenceHidden",...ne})]}),[O,$]=rx(Y),ee=br(g);On(()=>{X&&(ee==null||ee())},[X,ee]);const G=(fe=_.arrow)==null?void 0:fe.x,se=(as=_.arrow)==null?void 0:as.y,oe=((Ln=_.arrow)==null?void 0:Ln.centerOffset)!==0,[ke,Be]=v.useState();return On(()=>{w&&Be(window.getComputedStyle(w).zIndex)},[w]),h.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:X?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ke,"--radix-popper-transform-origin":[(_r=_.transformOrigin)==null?void 0:_r.x,(Fn=_.transformOrigin)==null?void 0:Fn.y].join(" "),...((ls=_.hide)==null?void 0:ls.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(SP,{scope:n,placedSide:O,onArrowChange:C,arrowX:G,arrowY:se,shouldHideArrow:oe,children:h.jsx(dt.div,{"data-side":O,"data-align":$,...m,ref:x,style:{...m.style,animation:X?void 0:"none"}})})})});ex.displayName=np;var tx="PopperArrow",CP={top:"bottom",right:"left",bottom:"top",left:"right"},nx=v.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,o=bP(tx,r),i=CP[o.placedSide];return h.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:h.jsx(wP,{...s,ref:n,style:{...s.style,display:"block"}})})});nx.displayName=tx;function TP(e){return e!==null}var PP=e=>({name:"transformOrigin",options:e,fn(t){var E,w,y;const{placement:n,rects:r,middlewareData:s}
vendor: 8,368 bytes, line 147
147=t,i=((E=s.arrow)==null?void 0:E.centerOffset)!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[c,u]=rx(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((w=s.arrow)==null?void 0:w.x)??0)+l/2,p=(((y=s.arrow)==null?void 0:y.y)??0)+a/2;let g="",m="";return c==="bottom"?(g=i?d:`${f}px`,m=`${-a}px`):c==="top"?(g=i?d:`${f}px`,m=`${r.floating.height+a}px`):c==="right"?(g=`${-a}px`,m=i?d:`${p}px`):c==="left"&&(g=`${r.floating.width+a}px`,m=i?d:`${p}px`),{data:{x:g,y:m}}}});function rx(e){const[t,n="center"]=e.split("-");return[t,n]}var RP=Xw,AP=Zw,kP=ex,_P=nx,NP=Symbol("radix.slottable");function OP(e){const t=({children:n})=>h.jsx(h.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=NP,t}var[rc]=Yl("Tooltip",[Kw]),sc=Kw(),sx="TooltipProvider",IP=700,vd="tooltip.open",[MP,rp]=rc(sx),ox=e=>{const{__scopeTooltip:t,delayDuration:n=IP,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:o}=e,i=v.useRef(!0),l=v.useRef(!1),a=v.useRef(0);return v.useEffect(()=>{const c=a.current;return()=>window.clearTimeout(c)},[]),h.jsx(MP,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(a.current),i.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:v.useCallback(c=>{l.current=c},[]),disableHoverableContent:s,children:o})};ox.displayName=sx;var Si="Tooltip",[jP,oc]=rc(Si),ix=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:s,onOpenChange:o,disableHoverableContent:i,delayDuration:l}=e,a=rp(Si,e.__scopeTooltip),c=sc(t),[u,d]=v.useState(null),f=i2(),p=v.useRef(0),g=i??a.disableHoverableContent,m=l??a.delayDuration,E=v.useRef(!1),[w,y]=Z0({prop:r,defaultProp:s??!1,onChange:P=>{P?(a.onOpen(),document.dispatchEvent(new CustomEvent(vd))):a.onClose(),o==null||o(P)},caller:Si}),x=v.useMemo(()=>w?E.current?"delayed-open":"instant-open":"closed",[w]),S=v.useCallback(()=>{window.clearTimeout(p.current),p.current=0,E.current=!1,y(!0)},[y]),C=v.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y(!1)},[y]),T=v.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{E.current=!0,y(!0),p.current=0},m)},[m,y]);return v.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),h.jsx(RP,{...c,children:h.jsx(jP,{scope:t,contentId:f,open:w,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:v.useCallback(()=>{a.isOpenDelayedRef.current?T():S()},[a.isOpenDelayedRef,T,S]),onTriggerLeave:v.useCallback(()=>{g?C():(window.clearTimeout(p.current),p.current=0)},[C,g]),onOpen:S,onClose:C,disableHoverableContent:g,children:n})})};ix.displayName=Si;var wd="TooltipTrigger",ax=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=oc(wd,n),o=rp(wd,n),i=sc(n),l=v.useRef(null),a=Kt(t,l,s.onTriggerChange),c=v.useRef(!1),u=v.useRef(!1),d=v.useCallback(()=>c.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),h.jsx(AP,{asChild:!0,...i,children:h.jsx(dt.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:a,onPointerMove:Me(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:Me(e.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:Me(e.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Me(e.onFocus,()=>{c.current||s.onOpen()}),onBlur:Me(e.onBlur,s.onClose),onClick:Me(e.onClick,s.onClose)})})});ax.displayName=wd;var DP="TooltipPortal",[E$,$P]=rc(DP,{forceMount:void 0}),oo="TooltipContent",lx=v.forwardRef((e,t)=>{const n=$P(oo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...o}=e,i=oc(oo,e.__scopeTooltip);return h.jsx(Vf,{present:r||i.open,children:i.disableHoverableContent?h.jsx(cx,{side:s,...o,ref:t}):h.jsx(LP,{side:s,...o,ref:t})})}),LP=v.forwardRef((e,t)=>{const n=oc(oo,e.__scopeTooltip),r=rp(oo,e.__scopeTooltip),s=v.useRef(null),o=Kt(t,s),[i,l]=v.useState(null),{trigger:a,onClose:c}=n,u=s.current,{onPointerInTransitChange:d}=r,f=v.useCallback(()=>{l(null),d(!1)},[d]),p=v.useCallback((g,m)=>{const E=g.currentTarget,w={x:g.clientX,y:g.clientY},y=BP(w,E.getBoundingClientRect()),x=VP(w,y),S=WP(m.getBoundingClientRect()),C=GP([...x,...S]);l(C),d(!0)},[d]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(a&&u){const g=E=>p(E,u),m=E=>p(E,a);return a.addEventListener("pointerleave",g),u.addEventListener("pointerleave",m),()=>{a.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",m)}}},[a,u,p,f]),v.useEffect(()=>{if(i){const g=m=>{const E=m.target,w={x:m.clientX,y:m.clientY},y=(a==null?void 0:a.contains(E))||(u==null?void 0:u.contains(E)),x=!QP(w,i);y?f():x&&(f(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[a,u,i,c,f]),h.jsx(cx,{...e,ref:o})}),[FP,zP]=rc(Si,{isInside:!1}),UP=OP("TooltipContent"),cx=v.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...l}=e,a=oc(oo,n),c=sc(n),{onClose:u}=a;return v.useEffect(()=>(document.addEventListener(vd,u),()=>document.removeEventListener(vd,u)),[u]),v.useEffect(()=>{if(a.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(a.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[a.trigger,u]),h.jsx(Bf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:h.jsxs(kP,{"data-state":a.stateAttribute,...c,...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:[h.jsx(UP,{children:r}),h.jsx(FP,{scope:n,isInside:!0,children:h.jsx(uC,{id:a.contentId,role:"tooltip",children:s||r})})]})})});lx.displayName=oo;var ux="TooltipArrow",HP=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=sc(n);return zP(ux,n).isInside?null:h.jsx(_P,{...s,...r,ref:t})});HP.displayName=ux;function BP(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,s,o)){case o:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function VP(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 WP(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function QP(e,t){const{x:n,y:r}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const l=t[o],a=t[i],c=l.x,u=l.y,d=a.x,f=a.y;u>r!=f>r&&n<(d-c)*(r-u)/(f-u)+c&&(s=!s)}return s}function GP(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),qP(t)}function qP(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const o=n[n.length-1],i=n[n.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))n.pop();else break}n.push(s)}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 KP=ox,YP=ix,XP=ax,dx=lx;const JP=KP,S$=YP,b$=XP,ZP=v.forwardRef(({className:e,sideOffset:t=4,...n},r)=>h.jsx(dx,{ref:r,sideOffset:t,className:Dn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md 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]:sli
147de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));ZP.displayName=dx.displayName;var ic=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},eR={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},tr,Gd,Cy,tR=(Cy=class{constructor(){le(this,tr,eR);le(this,Gd,!1)}setTimeoutProvider(e){Z(this,tr,e)}setTimeout(e,t){return R(this,tr).setTimeout(e,t)}clearTimeout(e){R(this,tr).clearTimeout(e)}setInterval(e,t){return R(this,tr).setInterval(e,t)}clearInterval(e){R(this,tr).clearInterval(e)}},tr=new WeakMap,Gd=new WeakMap,Cy),xd=new tR;function nR(e){setTimeout(e,0)}var ac=typeof window>"u"||"Deno"in globalThis;function zt(){}function rR(e,t){return typeof e=="function"?e(t):e}function sR(e){return typeof e=="number"&&e>=0&&e!==1/0}function oR(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ed(e,t){return typeof e=="function"?e(t):e}function iR(e,t){return typeof e=="function"?e(t):e}function cg(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:i,stale:l}=e;if(i){if(r){if(t.queryHash!==sp(i,t.options))return!1}else if(!Ci(t.queryKey,i))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||o&&!o(t))}function ug(e,t){const{exact:n,status:r,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(bi(t.options.mutationKey)!==bi(o))return!1}else if(!Ci(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function sp(e,t){return((t==null?void 0:t.queryKeyHashFn)||bi)(e)}function bi(e){return JSON.stringify(e,(t,n)=>Sd(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Ci(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ci(e[n],t[n])):!1}var aR=Object.prototype.hasOwnProperty;function fx(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=dg(e)&&dg(t);if(!r&&!(Sd(e)&&Sd(t)))return t;const o=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),l=i.length,a=r?new Array(l):{};let c=0;for(let u=0;u<l;u++){const d=r?u:i[u],f=e[d],p=t[d];if(f===p){a[d]=f,(r?u<o:aR.call(e,d))&&c++;continue}if(f===null||p===null||typeof f!="object"||typeof p!="object"){a[d]=p;continue}const g=fx(f,p,n+1);a[d]=g,g===f&&c++}return o===l&&c===o?e:a}function C$(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 dg(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Sd(e){if(!fg(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!fg(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function fg(e){return Object.prototype.toString.call(e)==="[object Object]"}function lR(e){return new Promise(t=>{xd.setTimeout(t,e)})}function cR(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?fx(e,t):t}function uR(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function dR(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var op=Symbol();function px(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===op?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function T$(e,t){return typeof e=="function"?e(...t):!!e}function fR(e,t,n){let r=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??(s=t()),r||(r=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),e}var zr,nr,Bs,Ty,pR=(Ty=class extends ic{constructor(){super();le(this,zr);le(this,nr);le(this,Bs);Z(this,Bs,t=>{if(!ac&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,nr)||this.setEventListener(R(this,Bs))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,nr))==null||t.call(this),Z(this,nr,void 0))}setEventListener(t){var n;Z(this,Bs,t),(n=R(this,nr))==null||n.call(this),Z(this,nr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){R(this,zr)!==t&&(Z(this,zr,t),this.onFocus())}onFocus(){const t=this.isFocused();
147this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof R(this,zr)=="boolean"?R(this,zr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},zr=new WeakMap,nr=new WeakMap,Bs=new WeakMap,Ty),hx=new pR;function hR(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}var mR=nR;function gR(){let e=[],t=0,n=l=>{l()},r=l=>{l()},s=mR;const o=l=>{t?e.push(l):s(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&s(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||i()}return a},batchCalls:l=>(...a)=>{o(()=>{l(...a)})},schedule:o,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{s=l}}}var et=gR(),Vs,rr,Ws,Py,yR=(Py=class extends ic{constructor(){super();le(this,Vs,!0);le(this,rr);le(this,Ws);Z(this,Ws,t=>{if(!ac&&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(){R(this,rr)||this.setEventListener(R(this,Ws))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,rr))==null||t.call(this),Z(this,rr,void 0))}setEventListener(t){var n;Z(this,Ws,t),(n=R(this,rr))==null||n.call(this),Z(this,rr,t(this.setOnline.bind(this)))}setOnline(t){R(this,Vs)!==t&&(Z(this,Vs,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return R(this,Vs)}},Vs=new WeakMap,rr=new WeakMap,Ws=new WeakMap,Py),El=new yR;function vR(e){return Math.min(1e3*2**e,3e4)}function mx(e){return(e??"online")==="online"?El.isOnline():!0}var bd=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function gx(e){let t=!1,n=0,r;const s=hR(),o=()=>s.status!=="pending",i=m=>{var E;if(!o()){const w=new bd(m);f(w),(E=e.onCancel)==null||E.call(e,w)}},l=()=>{t=!0},a=()=>{t=!1},c=()=>hx.isFocused()&&(e.networkMode==="always"||El.isOnline())&&e.canRun(),u=()=>mx(e.networkMode)&&e.canRun(),d=m=>{o()||(r==null||r(),s.resolve(m))},f=m=>{o()||(r==null||r(),s.reject(m))},p=()=>new Promise(m=>{var E;r=w=>{(o()||c())&&m(w)},(E=e.onPause)==null||E.call(e)}).then(()=>{var m;r=void 0,o()||(m=e.onContinue)==null||m.call(e)}),g=()=>{if(o())return;let m;const E=n===0?e.initialPromise:void 0;try{m=E??e.fn()}catch(w){m=Promise.reject(w)}Promise.resolve(m).then(d).catch(w=>{var T;if(o())return;const y=e.retry??(ac?0:3),x=e.retryDelay??vR,S=typeof x=="function"?x(n,w):x,C=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,w);if(t||!C){f(w);return}n++,(T=e.onFail)==null||T.call(e,n,w),lR(S).then(()=>c()?void 0:p()).then(()=>{t?f(w):g()})})};return{promise:s,status:()=>s.status,cancel:i,continue:()=>(r==null||r(),s),cancelRetry:l,continueRetry:a,canStart:u,start:()=>(u()?g():p().then(g),s)}}var Ur,Ry,yx=(Ry=class{constructor(){le(this,Ur)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),sR(this.gcTime)&&Z(this,Ur,xd.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ac?1/0:5*60*1e3))}clearGcTimeout(){R(this,Ur)&&(xd.clearTimeout(R(this,Ur)),Z(this,Ur,void 0))}},Ur=new WeakMap,Ry),Hr,Qs,Pt,Br,De,ji,Vr,Ut,xn,Ay,wR=(Ay=class extends yx{constructor(t){super();le(this,Ut);le(this,Hr);le(this,Qs);le(this,Pt);le(this,Br);le(this,De);le(this,ji);le(this,Vr);Z(this,Vr,!1),Z(this,ji,t.defaultOptions),this.setOptions(t.options),this.observers=[],Z(this,Br,t.client),Z(this,Pt,R(this,Br).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Z(this,Hr,hg(this.options)),this.state=t.state??R(this,Hr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=R(this,De))==null?void 0:t.promise}setOptions(t){if(this.options={...R(this,ji),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=hg(this.options);n.data!==void 0&&(this.setState(pg(n.data,n.dataUpdatedAt)),Z(this,Hr,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,Pt).remove(this)}setData(t,n){const r=cR(this.state.data,t,this.options);return Ve(this,Ut,xn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ve(this,Ut,xn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=R(this,De))==null?void 0:r.promise;return(s=R(this,De))==null||s.cancel(t),n?n.then(zt).catch(zt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,Hr))}isActive(){return this.observers.some(t=>iR(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===op||this.state.dataUpdateCount+this.state.errorUpdate
147Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ed(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:!oR(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,De))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,De))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),R(this,Pt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(R(this,De)&&(R(this,Vr)?R(this,De).cancel({revert:!0}):R(this,De).cancelRetry()),this.scheduleGc()),R(this,Pt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ve(this,Ut,xn).call(this,{type:"invalidate"})}async fetch(t,n){var a,c,u,d,f,p,g,m,E,w,y,x;if(this.state.fetchStatus!=="idle"&&((a=R(this,De))==null?void 0:a.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(R(this,De))return R(this,De).continueRetry(),R(this,De).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(C=>C.options.queryFn);S&&this.setOptions(S.options)}const r=new AbortController,s=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(Z(this,Vr,!0),r.signal)})},o=()=>{const S=px(this.options,n),T=(()=>{const P={client:R(this,Br),queryKey:this.queryKey,meta:this.meta};return s(P),P})();return Z(this,Vr,!1),this.options.persister?this.options.persister(S,T,this):S(T)},l=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:R(this,Br),state:this.state,fetchFn:o};return s(S),S})();(c=this.options.behavior)==null||c.onFetch(l,this),Z(this,Qs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=l.fetchOptions)==null?void 0:u.meta))&&Ve(this,Ut,xn).call(this,{type:"fetch",meta:(d=l.fetchOptions)==null?void 0:d.meta}),Z(this,De,gx({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:S=>{S instanceof bd&&S.revert&&this.setState({...R(this,Qs),fetchStatus:"idle"}),r.abort()},onFail:(S,C)=>{Ve(this,Ut,xn).call(this,{type:"failed",failureCount:S,error:C})},onPause:()=>{Ve(this,Ut,xn).call(this,{type:"pause"})},onContinue:()=>{Ve(this,Ut,xn).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const S=await R(this,De).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(p=(f=R(this,Pt).config).onSuccess)==null||p.call(f,S,this),(m=(g=R(this,Pt).config).onSettled)==null||m.call(g,S,this.state.error,this),S}catch(S){if(S instanceof bd){if(S.silent)return R(this,De).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw Ve(this,Ut,xn).call(this,{type:"error",error:S}),(w=(E=R(this,Pt).config).onError)==null||w.call(E,S,this),(x=(y=R(this,Pt).config).onSettled)==null||x.call(y,this.state.data,S,this),S}finally{this.scheduleGc()}}},Hr=new WeakMap,Qs=new WeakMap,Pt=new WeakMap,Br=new WeakMap,De=new WeakMap,ji=new WeakMap,Vr=new WeakMap,Ut=new WeakSet,xn=function(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,...xR(r.data,this.options),fetchMeta:t.meta??null};case"success":const s={...r,...pg(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Z(this,Qs,t.manual?s:void 0),s;case"error":const o=t.error;
147return{...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),et.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),R(this,Pt).notify({query:this,type:"updated",action:t})})},Ay);function xR(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:mx(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function pg(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function hg(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"}}function mg(e){return{onFetch:(t,n)=>{var u,d,f,p,g;const r=t.options,s=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,o=((p=t.state.data)==null?void 0:p.pages)||[],i=((g=t.state.data)==null?void 0:g.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const c=async()=>{let m=!1;const E=x=>{fR(x,()=>t.signal,()=>m=!0)},w=px(t.options,t.fetchOptions),y=async(x,S,C)=>{if(m)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const P=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};return E(B),B})(),k=await w(P),{maxPages:D}=t.options,M=C?dR:uR;return{pages:M(x.pages,k,D),pageParams:M(x.pageParams,S,D)}};if(s&&o.length){const x=s==="backward",S=x?ER:gg,C={pages:o,pageParams:i},T=S(r,C);l=await y(C,T,x)}else{const x=e??o.length;do{const S=a===0?i[0]??r.initialPageParam:gg(r,l);if(a>0&&S==null)break;l=await y(l,S),a++}while(a<x)}return l};t.options.persister?t.fetchFn=()=>{var m,E;return(E=(m=t.options).persister)==null?void 0:E.call(m,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function gg(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 ER(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Di,rn,qe,Wr,sn,Kn,ky,SR=(ky=class extends yx{constructor(t){super();le(this,sn);le(this,Di);le(this,rn);le(this,qe);le(this,Wr);Z(this,Di,t.client),this.mutationId=t.mutationId,Z(this,qe,t.mutationCache),Z(this,rn,[]),this.state=t.state||bR(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){R(this,rn).includes(t)||(R(this,rn).push(t),this.clearGcTimeout(),R(this,qe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Z(this,rn,R(this,rn).filter(n=>n!==t)),this.scheduleGc(),R(this,qe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){R(this,rn).length||(this.state.status==="pending"?this.scheduleGc():R(this,qe).remove(this))}continue(){var t;return((t=R(this,Wr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,l,a,c,u,d,f,p,g,m,E,w,y,x,S,C,T,P;const n=()=>{Ve(this,sn,Kn).call(this,{type:"continue"})},r={client:R(this,Di),meta:this.options.meta,mutationKey:this.options.mutationKey};Z(this,Wr,gx({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(k,D)=>{Ve(this,sn,Kn).call(this,{type:"failed",failureCount:k,error:D})},onPause:()=>{Ve(this,sn,Kn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,qe).canRun(this)}));const s=this.state.status==="pending",o=!R(this,Wr).canStart();try{if(s)n();else{Ve(this,sn,Kn).call(this,{type:"pending",variables:t,isPaused:o}),R(this,qe).config.onMutate&&await R(this,qe).config.onMutate(t,this,r);
147const D=await((l=(i=this.options).onMutate)==null?void 0:l.call(i,t,r));D!==this.state.context&&Ve(this,sn,Kn).call(this,{type:"pending",context:D,variables:t,isPaused:o})}const k=await R(this,Wr).start();return await((c=(a=R(this,qe).config).onSuccess)==null?void 0:c.call(a,k,t,this.state.context,this,r)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,k,t,this.state.context,r)),await((p=(f=R(this,qe).config).onSettled)==null?void 0:p.call(f,k,null,this.state.variables,this.state.context,this,r)),await((m=(g=this.options).onSettled)==null?void 0:m.call(g,k,null,t,this.state.context,r)),Ve(this,sn,Kn).call(this,{type:"success",data:k}),k}catch(k){try{await((w=(E=R(this,qe).config).onError)==null?void 0:w.call(E,k,t,this.state.context,this,r))}catch(D){Promise.reject(D)}try{await((x=(y=this.options).onError)==null?void 0:x.call(y,k,t,this.state.context,r))}catch(D){Promise.reject(D)}try{await((C=(S=R(this,qe).config).onSettled)==null?void 0:C.call(S,void 0,k,this.state.variables,this.state.context,this,r))}catch(D){Promise.reject(D)}try{await((P=(T=this.options).onSettled)==null?void 0:P.call(T,void 0,k,t,this.state.context,r))}catch(D){Promise.reject(D)}throw Ve(this,sn,Kn).call(this,{type:"error",error:k}),k}finally{R(this,qe).runNext(this)}}},Di=new WeakMap,rn=new WeakMap,qe=new WeakMap,Wr=new WeakMap,sn=new WeakSet,Kn=function(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),et.batch(()=>{R(this,rn).forEach(r=>{r.onMutationUpdate(t)}),R(this,qe).notify({mutation:this,type:"updated",action:t})})},ky);function bR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var bn,Ht,$i,_y,CR=(_y=class extends ic{constructor(t={}){super();le(this,bn);le(this,Ht);le(this,$i);this.config=t,Z(this,bn,new Set),Z(this,Ht,new Map),Z(this,$i,0)}build(t,n,r){const s=new SR({client:t,mutationCache:this,mutationId:++Ji(this,$i)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){R(this,bn).add(t);const n=xa(t);if(typeof n=="string"){const r=R(this,Ht).get(n);r?r.push(t):R(this,Ht).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(R(this,bn).delete(t)){const n=xa(t);if(typeof n=="string"){const r=R(this,Ht).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&R(this,Ht).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=xa(t);if(typeof n=="string"){const r=R(this,Ht).get(n),s=r==null?void 0:r.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=xa(t);if(typeof n=="string"){const s=(r=R(this,Ht).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){et.batch(()=>{R(this,bn).forEach(t=>{this.notify({type:"removed",mutation:t})}),R(this,bn).clear(),R(this,Ht).clear()})}getAll(){return Array.from(R(this,bn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ug(n,r))}findAll(t={}){return this.getAll().filter(n=>ug(t,n))}notify(t){et.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return et.batch(()=>Promise.all(t.map(n=>n.continue().catch(zt))))}},bn=new WeakMap,Ht=new WeakMap,$i=new WeakMap,_y);function xa(e){var t;return(t=e.options.scope)==null?void 0:t.id}var on,Ny,TR=(Ny=class extends ic{constructor(t={}){super();le(this,on);this.config=t,Z(this,on,new Map)}build(t,n,r){const s=n.queryKey,o=n.queryHash??sp(s,n);let i=this.get(o);
147return i||(i=new wR({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){R(this,on).has(t.queryHash)||(R(this,on).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=R(this,on).get(t.queryHash);n&&(t.destroy(),n===t&&R(this,on).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){et.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return R(this,on).get(t)}getAll(){return[...R(this,on).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>cg(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>cg(t,r)):n}notify(t){et.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){et.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){et.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},on=new WeakMap,Ny),Pe,sr,or,Gs,qs,ir,Ks,Ys,Oy,PR=(Oy=class{constructor(e={}){le(this,Pe);le(this,sr);le(this,or);le(this,Gs);le(this,qs);le(this,ir);le(this,Ks);le(this,Ys);Z(this,Pe,e.queryCache||new TR),Z(this,sr,e.mutationCache||new CR),Z(this,or,e.defaultOptions||{}),Z(this,Gs,new Map),Z(this,qs,new Map),Z(this,ir,0)}mount(){Ji(this,ir)._++,R(this,ir)===1&&(Z(this,Ks,hx.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Pe).onFocus())})),Z(this,Ys,El.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Pe).onOnline())})))}unmount(){var e,t;Ji(this,ir)._--,R(this,ir)===0&&((e=R(this,Ks))==null||e.call(this),Z(this,Ks,void 0),(t=R(this,Ys))==null||t.call(this),Z(this,Ys,void 0))}isFetching(e){return R(this,Pe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,sr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,Pe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=R(this,Pe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ed(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return R(this,Pe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=R(this,Pe).get(r.queryHash),o=s==null?void 0:s.state.data,i=rR(t,o);if(i!==void 0)return R(this,Pe).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return et.batch(()=>R(this,Pe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,Pe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=R(this,Pe);et.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=R(this,Pe);return et.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=et.batch(()=>R(this,Pe).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(zt).catch(zt)}invalidateQueries(e,t={}){return et.batch(()=>(R(this,Pe).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=et.batch(()=>R(this,Pe).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(zt)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(zt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=R(this,Pe).build(this,t);return n.isStaleByTime(Ed(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(zt).catch(zt)}fetchInfiniteQuery(e){return e.behavior=mg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(zt).catch(zt)}ensureInfiniteQueryData(e){return e.behavior=mg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return El.isOnline()?R(this,sr).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Pe)}getMutationCache(){return R(this,sr)}getDefaultOptions(){return R(this,or)}setDefaultOptions(e){Z(this,or,e)}setQueryDefaults(e,t){R(this,Gs).set(bi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,Gs).values()],n={};return t.forEach(r=>{Ci(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){R(this,qs).set(bi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,qs).values()],n={};return t.forEach(r=>{Ci(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,or).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=sp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===op&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,or).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,Pe).clear(),R(this,sr).clear()}},Pe=new WeakMap,sr=new WeakMap,or=new WeakMap,Gs=new WeakMap,qs=new WeakMap,ir=new WeakMap,Ks=new WeakMap,Ys=new WeakMap,Oy),vx=v.createContext(void 0),P$=e=>{const t=v.useContext(vx);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},RR=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(vx.Provider,{value:e,children:t}));/** 148 * @remix-run/router v1.23.2 149 * 150 * Copyright (c) Remix Software Inc. 151 * 152 * This source code is licensed under the MIT license found in the 153 * LICENSE.md file in the root directory of this source tree. 154 * 155 * @license MIT 156 */function Ti(){return Ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ti.apply(this,arguments)}var cr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(cr||(cr={}));const yg="popstate";function AR(e){e===void 0&&(e={});function t(r,s){let{pathname:o,search:i,hash:l}=r.location;return Cd("",{pathname:o,search:i,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Sl(s)}return _R(t,n,null,e)}function be(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ip(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function kR(){return Math.random().toString(36).substr(2,8)}function vg(e,t){return{usr:e.state,key:e.key,idx:t}}function Cd(e,t,n,r){return n===void 0&&(n=null),Ti({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?yo(t):t,{state:n,key:t&&t.key||r||kR()})}function Sl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function yo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function _R(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,i=s.history,l=cr.Pop,a=null,c=u();c==null&&(c=0,i.replaceState(Ti({},i.state,{idx:c}),""));function u(){return(i.state||{idx:null}).idx}function d(){l=cr.Pop;let E=u(),w=E==null?null:E-c;c=E,a&&a({action:l,location:m.location,delta:w})}function f(E,w){l=cr.Push;let y=Cd(m.location,E,w);c=u()+1;let x=vg(y,c),S=m.createHref(y);try{i.pushState(x,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;s.location.assign(S)}o&&a&&a({action:l,location:m.location,delta:1})}function p(E,w){l=cr.Replace;let y=Cd(m.location,E,w);c=u();let x=vg(y,c),S=m.createHref(y);i.replaceState(x,"",S),o&&a&&a({action:l,location:m.location,delta:0})}function g(E){let w=s.location.origin!=="null"?s.location.origin:s.location.href,y=typeof E=="string"?E:Sl(E);return y=y.replace(/ $/,"%20"),be(w,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,w)}let m={get action(){return l},get location(){return e(s,i)},listen(E){if(a)throw new Error("A history only accepts one active listener");return s.addEventListener(yg,d),a=E,()=>{s.removeEventListener(yg,d),a=null}},createHref(E){return t(s,E)},createURL:g,encodeLocation(E){let w=g(E);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:f,replace:p,go(E){return i.go(E)}};return m}var wg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(wg||(wg={}));function NR(e,t,n){return n===void 0&&(n="/"),OR(e,t,n)}function OR(e,t,n,r){let s=typeof t=="string"?yo(t):t,o=io(s.pathname||"/",n);if(o==null)return null;let i=wx(e);IR(i);let l=null;for(let a=0;l==null&&a<i.length;++a){let c=VR(o);l=HR(i[a],c)}return l}function wx(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(o,i,l)=>{let a={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};a.relativePath.startsWith("/")&&(be(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not val
156id. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let c=wr([r,a.relativePath]),u=n.concat(a);o.children&&o.children.length>0&&(be(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),wx(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:zR(c,o.index),routesMeta:u})};return e.forEach((o,i)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))s(o,i);else for(let a of xx(o.path))s(o,i,a)}),t}function xx(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return s?[o,""]:[o];let i=xx(r.join("/")),l=[];return l.push(...i.map(a=>a===""?o:[o,a].join("/"))),s&&l.push(...i),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function IR(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:UR(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const MR=/^:[\w-]+$/,jR=3,DR=2,$R=1,LR=10,FR=-2,xg=e=>e==="*";function zR(e,t){let n=e.split("/"),r=n.length;return n.some(xg)&&(r+=FR),t&&(r+=DR),n.filter(s=>!xg(s)).reduce((s,o)=>s+(MR.test(o)?jR:o===""?$R:LR),r)}function UR(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function HR(e,t,n){let{routesMeta:r}=e,s={},o="/",i=[];for(let l=0;l<r.length;++l){let a=r[l],c=l===r.length-1,u=o==="/"?t:t.slice(o.length)||"/",d=Td({path:a.relativePath,caseSensitive:a.caseSensitive,end:c},u),f=a.route;if(!d)return null;
vendor: 4,788 bytes, lines 156-165
156Object.assign(s,d.params),i.push({params:s,pathname:wr([o,d.pathname]),pathnameBase:KR(wr([o,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(o=wr([o,d.pathnameBase]))}return i}function Td(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=BR(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:f,isOptional:p}=u;if(f==="*"){let m=l[d]||"";i=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const g=l[d];return p&&!g?c[f]=void 0:c[f]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:i,pattern:e}}function BR(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ip(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=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function VR(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ip(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function io(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)||"/"}const WR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,QR=e=>WR.test(e);function GR(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?yo(e):e,o;if(n)if(QR(n))o=n;else{if(n.includes("//")){let i=n;n=n.replace(/\/\/+/g,"/"),ip(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+n))}n.startsWith("/")?o=Eg(n.substring(1),"/"):o=Eg(n,t)}else o=t;return{pathname:o,search:YR(r),hash:XR(s)}}function Eg(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Xc(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 qR(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ap(e,t){let n=qR(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function lp(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=yo(e):(s=Ti({},e),be(!s.pathname||!s.pathname.includes("?"),Xc("?","pathname","search",s)),be(!s.pathname||!s.pathname.includes("#"),Xc("#","pathname","hash",s)),be(!s.search||!s.search.includes("#"),Xc("#","search","hash",s)));let o=e===""||s.pathname==="",i=o?"/":s.pathname,l;if(i==null)l=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;s.pathname=f.join("/")}l=d>=0?t[d]:"/"}let a=GR(s,l),c=i&&i!=="/"&&i.endsWith("/"),u=(o||i===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(c||u)&&(a.pathname+="/"),a}const wr=e=>e.join("/").replace(/\/\/+/g,"/"),KR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),YR=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,XR=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function JR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ex=["post","put","patch","delete"];new Set(Ex);const ZR=["get",...Ex];new Set(ZR);/** 157 * React Router v6.30.3 158 * 159 * Copyright (c) Remix Software Inc. 160 * 161 * This source code is licensed under the MIT license found in the 162 * LICENSE.md file in the root directory of this source tree. 163 * 164 * @license MIT 165 */function Pi(){return Pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pi.apply(this,arguments)}const lc=v.createContext(null),Sx=v.createContext(null),$n=v.createContext(null),cc=v.createContext(null),mn=v.createContext({outlet:null,matches:[],isDataRoute:!1}),bx=v.createContext(null);function eA(e,t){let{relative:n}=t===void 0?{}:t;vo()||be(!1);let{basename:r,navigator:s}=v.useContext($n),{hash:o,pathname:i,search:l}=uc(e,{relative:n}),a=i;
vendor: 4,876 bytes, line 165
165return r!=="/"&&(a=i==="/"?r:wr([r,i])),s.createHref({pathname:a,search:l,hash:o})}function vo(){return v.useContext(cc)!=null}function gn(){return vo()||be(!1),v.useContext(cc).location}function Cx(e){v.useContext($n).static||v.useLayoutEffect(e)}function Gi(){let{isDataRoute:e}=v.useContext(mn);return e?mA():tA()}function tA(){vo()||be(!1);let e=v.useContext(lc),{basename:t,future:n,navigator:r}=v.useContext($n),{matches:s}=v.useContext(mn),{pathname:o}=gn(),i=JSON.stringify(ap(s,n.v7_relativeSplatPath)),l=v.useRef(!1);return Cx(()=>{l.current=!0}),v.useCallback(function(c,u){if(u===void 0&&(u={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let d=lp(c,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:wr([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,i,o,e])}const nA=v.createContext(null);function rA(e){let t=v.useContext(mn).outlet;return t&&v.createElement(nA.Provider,{value:e},t)}function R$(){let{matches:e}=v.useContext(mn),t=e[e.length-1];return t?t.params:{}}function uc(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext($n),{matches:s}=v.useContext(mn),{pathname:o}=gn(),i=JSON.stringify(ap(s,r.v7_relativeSplatPath));return v.useMemo(()=>lp(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function sA(e,t){return oA(e,t)}function oA(e,t,n,r){vo()||be(!1);let{navigator:s}=v.useContext($n),{matches:o}=v.useContext(mn),i=o[o.length-1],l=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let c=gn(),u;if(t){var d;let E=typeof t=="string"?yo(t):t;a==="/"||(d=E.pathname)!=null&&d.startsWith(a)||be(!1),u=E}else u=c;let f=u.pathname||"/",p=f;if(a!=="/"){let E=a.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(E.length).join("/")}let g=NR(e,{pathname:p}),m=uA(g&&g.map(E=>Object.assign({},E,{params:Object.assign({},l,E.params),pathname:wr([a,s.encodeLocation?s.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?a:wr([a,s.encodeLocation?s.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),o,n,r);return t&&m?v.createElement(cc.Provider,{value:{location:Pi({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:cr.Pop}},m):m}function iA(){let e=hA(),t=JR(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:s},n):null,null)}const aA=v.createElement(iA,null);class lA extends v.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){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(mn.Provider,{value:this.props.routeContext},v.createElement(bx.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cA(e){let{routeContext:t,match:n,children:r}=e,s=v.useContext(lc);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(mn.Provider,{value:t},r)}function uA(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,l=(s=n)==null?void 0:s.errors;if(l!=null){let u=i.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id])!==void 0);u>=0||be(!1),i=i.slice(0,Math.min(i.length,u+1))}let a=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<i.length;u++){let d=i[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:f,errors:p}=n,g=d.route.loader&&f[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||g){a=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((u,d,f)=>{let p,g=!1,m=null,E=null;n&&(p=l&&d.route.id?l[d.route.id]:void 0,m=d.route.errorElement||aA,a&&(c<0&&f===0?(gA("route-fallback"),g=!0,E=null):c===f&&(g=!0,E=d.route.hydrateFallbackElement||null)));let w=t.concat(i.slice(0,f+1)),y=()=>{let x;return p?x=m:g?x=E:d.route.Component?x=v.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=u,v.createElement(cA,{match:d,routeC
165ontext:{outlet:u,matches:w,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?v.createElement(lA,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:y(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):y()},null)}var Tx=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Tx||{}),Px=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Px||{});function dA(e){let t=v.useContext(lc);return t||be(!1),t}function fA(e){let t=v.useContext(Sx);return t||be(!1),t}function pA(e){let t=v.useContext(mn);return t||be(!1),t}function Rx(e){let t=pA(),n=t.matches[t.matches.length-1];return n.route.id||be(!1),n.route.id}function hA(){var e;let t=v.useContext(bx),n=fA(),r=Rx();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function mA(){let{router:e}=dA(Tx.UseNavigateStable),t=Rx(Px.UseNavigateStable),n=v.useRef(!1);return Cx(()=>{n.current=!0}),v.useCallback(function(s,o){o===void 0&&(o={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Pi({fromRouteId:t},o)))},[e,t])}const Sg={};function gA(e,t,n){Sg[e]||(Sg[e]=!0)}function yA(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function vA(e){let{to:t,replace:n,state:r,relative:s}=e;vo()||be(!1);let{future:o,static:i}=v.useContext($n),{matches:l}=v.useContext(mn),{pathname:a}=gn(),c=Gi(),u=lp(t,ap(l,o.v7_relativeSplatPath),a,s==="path"),d=JSON.stringify(u);return v.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:s}),[c,d,s,n,r]),null}function A$(e){return rA(e.context)}function U(e){be(!1)}function wA(e){let{basename:t="/",children:n=null,location:r,navigationType:s=cr.Pop,navigator:o,static:i=!1,future:l}=e;vo()&&be(!1);let a=t.replace(/^\/*/,"/"),c=v.useMemo(()=>({basename:a,navigator:o,static:i,future:Pi({v7_relativeSplatPath:!1},l)}),[a,l,o,i]);typeof r=="string"&&(r=yo(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:g="default"}=r,m=v.useMemo(()=>{let E=io(u,a);return E==null?null:{location:{pathname:E,search:d,hash:f,state:p,key:g},navigationType:s}},[a,u,d,f,p,g,s]);return m==null?null:v.createElement($n.Provider,{value:c},v.createElement(cc.Provider,{children:n,value:m}))}function xA(e){let{children:t,location:n}=e;return sA(Pd(t),n)}new Promise(()=>{});function Pd(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,s)=>{if(!v.isValidElement(r))return;let o=[...t,s];if(r.type===v.Fragment){n.push.apply(n,Pd(r.props.children,o));return}r.type!==U&&be(!1),!r.props.index||!r.props.children||be(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Pd(r.props.children,o)),n.push(i)}),n}/** 166 * React Router DOM v6.30.3 167 * 168 * Copyright (c) Remix Software Inc. 169 * 170 * This source code is licensed under the MIT license found in the 171 * LICENSE.md file in the root directory of this source tree. 172 * 173 * @license MIT 174 */function bl(){return bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bl.apply(this,arguments)}function Ax(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,o;for(o=0;o<r.length;o++)s=r[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function EA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function SA(e,t){return e.button===0&&(!t||t==="_self")&&!EA(e)}function Rd(e){return e===void 0&&(e=""),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(s=>[n,s]):[[n,r]])},[]))}function bA(e,t){let n=Rd(e);return t&&t.forEach((r,s)=>
174{n.has(s)||t.getAll(s).forEach(o=>{n.append(s,o)})}),n}const CA=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],TA=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],PA="6";try{window.__reactRouterVersion=PA}catch{}const RA=v.createContext({isTransitioning:!1}),AA="startTransition",bg=Il[AA];function kA(e){let{basename:t,children:n,future:r,window:s}=e,o=v.useRef();o.current==null&&(o.current=AR({window:s,v5Compat:!0}));let i=o.current,[l,a]=v.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},u=v.useCallback(d=>{c&&bg?bg(()=>a(d)):a(d)},[a,c]);return v.useLayoutEffect(()=>i.listen(u),[i,u]),v.useEffect(()=>yA(r),[r]),v.createElement(wA,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i,future:r})}const _A=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",NA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mt=v.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:o,replace:i,state:l,target:a,to:c,preventScrollReset:u,viewTransition:d}=t,f=Ax(t,CA),{basename:p}=v.useContext($n),g,m=!1;if(typeof c=="string"&&NA.test(c)&&(g=c,_A))try{let x=new URL(window.location.href),S=c.startsWith("//")?new URL(x.protocol+c):new URL(c),C=io(S.pathname,p);S.origin===x.origin&&C!=null?c=C+S.search+S.hash:m=!0}catch{}let E=eA(c,{relative:s}),w=IA(c,{replace:i,state:l,target:a,preventScrollReset:u,relative:s,viewTransition:d});function y(x){r&&r(x),x.defaultPrevented||w(x)}return v.createElement("a",bl({},f,{href:g||E,onClick:m||o?r:y,ref:n,target:a}))}),k$=v.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:s=!1,className:o="",end:i=!1,style:l,to:a,viewTransition:c,children:u}=t,d=Ax(t,TA),f=uc(a,{relative:d.relative}),p=gn(),g=v.useContext(Sx),{navigator:m,basename:E}=v.useContext($n),w=g!=null&&MA(f)&&c===!0,y=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,x=p.pathname,S=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;s||(x=x.toLowerCase(),S=S?S.toLowerCase():null,y=y.toLowerCase()),S&&E&&(S=io(S,E)||S);const C=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let T=x===y||!i&&x.startsWith(y)&&x.charAt(C)==="/",P=S!=null&&(S===y||!i&&S.startsWith(y)&&S.charAt(y.length)==="/"),k={isActive:T,isPending:P,isTransitioning:w},D=T?r:void 0,M;typeof o=="function"?M=o(k):M=[o,T?"active":null,P?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let B=typeof l=="function"?l(k):l;return v.createElement(mt,bl({},d,{"aria-current":D,className:M,ref:n,style:B,to:a,viewTransition:c}),typeof u=="function"?u(k):u)});var Ad;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ad||(Ad={}));var Cg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Cg||(Cg={}));function OA(e){let t=v.useContext(lc);return t||be(!1),t}function IA(e,t){let{target:n,replace:r,state:s,preventScrollReset:o,relative:i,viewTransition:l}=t===void 0?{}:t,a=Gi(),c=gn(),u=uc(e,{relative:i});return v.useCallback(d=>{if(SA(d,n)){d.preventDefault();let f=r!==void 0?r:Sl(c)===Sl(u);a(e,{replace:f,state:s,preventScrollReset:o,relative:i,viewTransition:l})}},[c,a,u,r,s,n,e,o,i,l])}function _$(e){let t=v.useRef(Rd(e)),n=v.useRef(!1),r=gn(),s=v.useMemo(()=>bA(r.search,n.current?null:t.current),[r.search]),o=Gi(),i=v.useCallback((l,a)=>{const c=Rd(typeof l=="function"?l(s):l);n.current=!0,o("?"+c,a)},[o,s]);return[s,i]}function MA(e,t){t===void 0&&(t={});let n=v.useContext(RA);n==null&&be(!1);let{basename:r}=OA(Ad.useViewTransitionState),s=uc(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=io(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=io(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Td(s.pathname,i)!=null||Td(s.pathname,o)!=null}const kx=v.createContext(void 0);function jA({children:e}){const[t,n]=v.useState(null);return h.jsx(kx.Provider,{value:{impersonatedUser:t,setImpersonatedUser:n,isImpersonating:!!t},children:e})}function N$(){const e=v.useContext(kx);if(e===void 0)throw new Error("useImpersonation must be used within ImpersonationProvider");return e}var DA=typeof Element<"u",$A=typeof Map=="function",LA=typeof Set=="function",FA=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ua(e,t){if(e===t)return!0;
174if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ua(e[r],t[r]))return!1;return!0}var o;if($A&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Ua(r.value[1],t.get(r.value[0])))return!1;return!0}if(LA&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(FA&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(DA&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!Ua(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var zA=function(t,n){try{return Ua(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const UA=Li(zA);var HA=function(e,t,n,r,s,o,i,l){if(!e){var a;if(t===void 0)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,s,o,i,l],u=0;a=new Error(t.replace(/%s/g,function(){return c[u++]})),a.name="Invariant Violation"}throw a.framesToPop=1,a}},BA=HA;const Tg=Li(BA);var VA=function(t,n,r,s){var o=r?r.call(s,t,n):void 0;if(o!==void 0)return!!o;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var i=Object.keys(t),l=Object.keys(n);if(i.length!==l.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(n),c=0;c<i.length;c++){var u=i[c];if(!a(u))return!1;var d=t[u],f=n[u];if(o=r?r.call(s,d,f,u):void 0,o===!1||o===void 0&&d!==f)return!1}return!0};const WA=Li(VA);var _x=(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))(_x||{}),Jc={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"]}},Pg=Object.values(_x),cp={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},QA=Object.entries(cp).reduce((e,[t,n])=>(e[n]=t,e),{}),Wt="data-rh",zs={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Us=(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},GA=e=>{let t=Us(e,"title");const n=Us(e,zs.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Us(e,zs.DEFAULT_TITLE);return t||r||void 0},qA=e=>Us(e,zs.ON_CHANGE_CLIENT_STATE)||(()=>{}),Zc=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),KA=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let o=0;o<s.length;o+=1){const l=s[o].toLowerCase();if(e.indexOf(l)!==-1&&r[l])return n.concat(r)}}return n},[]),YA=e=>console&&typeof console.warn=="function"&&console.warn(e),Io=(e,t,n)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&YA(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,o)=>{const i={};o.filter(a=>{let c;const u=Object.keys(a);for(let f=0;f<u.length;f+=1){const p=u[f],g=p.toLowerCase();t.indexOf(g)!==-1&&!(c==="rel"&&a[c].toLowerCase()==="canonical")&&!(g==="rel"&&a[g].toLowerCase()==="stylesheet")&&(c=g),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(c=p)}if(!c||!a[c])return!1;const d=a[c].toLowerCase();return r[c]||(r[c]={}),i[c]||(i[c]={}),r[c][d]?!1:(i[c][d]=!0,!0)}
174).reverse().forEach(a=>s.push(a));const l=Object.keys(i);for(let a=0;a<l.length;a+=1){const c=l[a],u={...r[c],...i[c]};r[c]=u}return s},[]).reverse()},XA=(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},JA=e=>({baseTag:KA(["href"],e),bodyAttributes:Zc("bodyAttributes",e),defer:Us(e,zs.DEFER),encode:Us(e,zs.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Zc("htmlAttributes",e),linkTags:Io("link",["rel","href"],e),metaTags:Io("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Io("noscript",["innerHTML"],e),onChangeClientState:qA(e),scriptTags:Io("script",["src","innerHTML"],e),styleTags:Io("style",["cssText"],e),title:GA(e),titleAttributes:Zc("titleAttributes",e),prioritizeSeoTags:XA(e,zs.PRIORITIZE_SEO_TAGS)}),Nx=e=>Array.isArray(e)?e.join(""):e,ZA=(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},eu=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(ZA(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Rg=(e,t)=>({...e,[t]:void 0}),ek=["noscript","script","style"],kd=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Ox=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),tk=(e,t,n,r)=>{const s=Ox(n),o=Nx(t);return s?`<${e} ${Wt}="true" ${s}>${kd(o,r)}</${e}>`:`<${e} ${Wt}="true">${kd(o,r)}</${e}>`},nk=(e,t,n=!0)=>t.reduce((r,s)=>{const o=s,i=Object.keys(o).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const d=typeof o[u]>"u"?u:`${u}="${kd(o[u],n)}"`;return c?`${c} ${d}`:d},""),l=o.innerHTML||o.cssText||"",a=ek.indexOf(e)===-1;return`${r}<${e} ${Wt}="true" ${i}${a?"/>":`>${l}</${e}>`}`},""),Ix=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=cp[r];return n[s||r]=e[r],n},t),rk=(e,t,n)=>{const r={key:t,[Wt]:!0},s=Ix(n,r);return[N.createElement("title",s,t)]},Ha=(e,t)=>t.map((n,r)=>{const s={key:r,[Wt]:!0};return Object.keys(n).forEach(o=>{const l=cp[o]||o;if(l==="innerHTML"||l==="cssText"){const a=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:a}}else s[l]=n[o]}),N.createElement(e,s)}),Tt=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>rk(e,t.title,t.titleAttributes),toString:()=>tk(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Ix(t),toString:()=>Ox(t)};default:return{toComponent:()=>Ha(e,t),toString:()=>nk(e,t,n)}}},sk=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=eu(e,Jc.meta),o=eu(t,Jc.link),i=eu(n,Jc.script);return{priorityMethods:{toComponent:()=>[...Ha("meta",s.priority),...Ha("link",o.priority),...Ha("script",i.priority)],toString:()=>`${Tt("meta",s.priority,r)} ${Tt("link",o.priority,r)} ${Tt("script",i.priority,r)}`},metaTags:s.default,linkTags:o.default,scriptTags:i.default}},ok=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:o,styleTags:i,title:l="",titleAttributes:a,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:d,scriptTags:f}=e,p={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:p,linkTags:u,metaTags:d,scriptTags:f}=sk(e)),{priority:p,base:Tt("base",t,r),bodyAttributes:Tt("bodyAttributes",n,r),htmlAttributes:Tt("htmlAttributes",s,r),link:Tt("link",u,r),meta:Tt("meta",d,r),noscript:Tt("noscript",o,r),script:Tt("script",f,r),style:Tt("style",i,r),title:Tt("title",{title:l,titleAttributes:a},r)}},_d=ok,Ea=[],Mx=!!(typeof window<"u"&&window.document&&window.document.createElement),Nd=class{constructor(e,t){b(this,"instances",[]);b(this,"canUseDOM",Mx);b(this,"context");b(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Ea:this.instances,add:e=>{(this.canUseDOM?Ea:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Ea:this.instances).indexOf(e);(this.canUseDOM?Ea:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=_d({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},ik={},jx=N.createContext(ik),Qr,Dx=(Qr=class extends v.Component{constructor(n){super(n);b(this,"helmetData");this.helmetData=new Nd(this.props.context||{},Qr.canUseDOM)}render(){return N.createElement(jx.Provider,{value:this.helmetData.value},this.props.children)}},b(Qr,"canUseDOM",Mx),Qr),hs=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Wt}]`),s=[].slice.call(r),o=[];let i;return t&&t.length&&t.forEach(l=>{const a=document.createElement(e);for(const c in l)if(Object.prototype.hasOwnProperty.call(l,c))if(c==="innerHTML")a.innerHTML=l.innerHTML;else if(c==="cssText")a.styleSheet?a.styleSheet.cssText=l.cssText:a.appendChild(document.createTextNode(l.cssText));else{const u=c,d=typeof l[u]>"u"?"":l[u];a.setAttribute(c,d)}a.setAttribute(Wt,"true"),s.some((c,u)=>(i=u,a.isEqualNode(c)))?s.splice(i,1):o.push(a)}
174),s.forEach(l=>{var a;return(a=l.parentNode)==null?void 0:a.removeChild(l)}),o.forEach(l=>n.appendChild(l)),{oldTags:s,newTags:o}},Od=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Wt),s=r?r.split(","):[],o=[...s],i=Object.keys(t);for(const l of i){const a=t[l]||"";n.getAttribute(l)!==a&&n.setAttribute(l,a),s.indexOf(l)===-1&&s.push(l);const c=o.indexOf(l);c!==-1&&o.splice(c,1)}for(let l=o.length-1;l>=0;l-=1)n.removeAttribute(o[l]);s.length===o.length?n.removeAttribute(Wt):n.getAttribute(Wt)!==i.join(",")&&n.setAttribute(Wt,i.join(","))},ak=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Nx(e)),Od("title",t)},Ag=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:o,metaTags:i,noscriptTags:l,onChangeClientState:a,scriptTags:c,styleTags:u,title:d,titleAttributes:f}=e;Od("body",r),Od("html",s),ak(d,f);const p={baseTag:hs("base",n),linkTags:hs("link",o),metaTags:hs("meta",i),noscriptTags:hs("noscript",l),scriptTags:hs("script",c),styleTags:hs("style",u)},g={},m={};Object.keys(p).forEach(E=>{const{newTags:w,oldTags:y}=p[E];w.length&&(g[E]=w),y.length&&(m[E]=p[E].oldTags)}),t&&t(),a(e,g,m)},Mo=null,lk=e=>{Mo&&cancelAnimationFrame(Mo),e.defer?Mo=requestAnimationFrame(()=>{Ag(e,()=>{Mo=null})}):(Ag(e),Mo=null)},ck=lk,kg=class extends v.Component{constructor(){super(...arguments);b(this,"rendered",!1)}shouldComponentUpdate(t){return!WA(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const s=JA(t.get().map(o=>{const i={...o.props};return delete i.context,i}));Dx.canUseDOM?ck(s):_d&&(r=_d(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},mu,uk=(mu=class extends v.Component{shouldComponentUpdate(e){return!UA(Rg(this.props,"helmetData"),Rg(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 Tg(Pg.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 ${Pg.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Tg(!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 N.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...o}=r.props,i=Object.keys(o).reduce((a,c)=>(a[QA[c]||c]=o[c],a),{});let{type:l}=r;
174switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(r,s),l){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,i,s);break;default:t=this.mapObjectTypeChildren(r,t,i,s);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 Nd)){const s=r;r=new Nd(s.context,!0),delete n.helmetData}return r?N.createElement(kg,{...n,context:r.value}):N.createElement(jx.Consumer,null,s=>N.createElement(kg,{...n,context:s}))}},b(mu,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),mu),dk=Symbol.for("react.lazy"),Cl=Il[" use ".trim().toString()];function fk(e){return typeof e=="object"&&e!==null&&"then"in e}function $x(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===dk&&"_payload"in e&&fk(e._payload)}function pk(e){const t=mk(e),n=v.forwardRef((r,s)=>{let{children:o,...i}=r;$x(o)&&typeof Cl=="function"&&(o=Cl(o._payload));const l=v.Children.toArray(o),a=l.find(yk);if(a){const c=a.props.children,u=l.map(d=>d===a?v.Children.count(c)>1?v.Children.only(null):v.isValidElement(c)?c.props.children:null:d);return h.jsx(t,{...i,ref:s,children:v.isValidElement(c)?v.cloneElement(c,void 0,u):null})}return h.jsx(t,{...i,ref:s,children:o})});return n.displayName=`${e}.Slot`,n}var hk=pk("Slot");function mk(e){const t=v.forwardRef((n,r)=>{let{children:s,...o}=n;if($x(s)&&typeof Cl=="function"&&(s=Cl(s._payload)),v.isValidElement(s)){const i=wk(s),l=vk(o,s.props);return s.type!==v.Fragment&&(l.ref=r?Kl(r,i):i),v.cloneElement(s,l)}return v.Children.count(s)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gk=Symbol("radix.slottable");function yk(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gk}function vk(e,t){const n={...t};for(const r in t){const s=e[r],o=t[r];/^on[A-Z]/.test(r)?s&&o?n[r]=(...l)=>{const a=o(...l);return s(...l),a}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}function wk(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const xk=Ew("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-md hover:shadow-lg hover:scale-[1.02] active:scale-[0.98]",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm hover:shadow-md",outline:"border-2 border-primary bg-background text-primary hover:bg-primary hover:text-primary-foreground hover:scale-[1.02] active:scale-[0.98]",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-sm hover:shadow-md",ghost:"hover:bg-accent/10 hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",hero:"bg-primary text-primary-foreground hover:bg-primary-dark shadow-lg hover:shadow-xl text-base px-8 py-6 h-auto hover:scale-[1.02] active:scale-[0.98]"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3 text-xs",lg:"h-12 rounded-md px-8 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ks=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},o)=>{const i=r?hk:"button";return h.jsx(i,{className:Dn(xk({variant:t,size:n,className:e})),ref:o,...s})});ks.displayName="Button";const Ek=5*60*1e3,tu="app_current_version";function Sk(){const[e,t]=v.useState(null),[n,r]=v.useState(!1),{toast:s}=G0(),o=v.useCallback(async()=>{try{const i=await fetch(`/version.json?t=${Date.now()}`,{cache:"no-cache",headers:{"Cache-Control":"no-cache",Pragma:"no-cache"}});if(!i.ok){console.warn("Failed to fetch version info");return}const a=(await i.json()).version,c=localStorage.getItem(tu);if(!c){localStorage.setItem(tu,a),t(a);return}c!==a&&!n&&(console.log("New version available:",a,"Current:",c),r(!0),s({title:"Update Available",description:h.jsxs("div",{className:"flex flex-col gap-2",children:[h.jsxs("p",{children:["A new version of CoverIQ is available (v",a,")"]}),h.jsxs(ks,{size:"sm",onClick:()=>{localStorage.setItem(tu,a),window.location.reload()},className:"w-full",children:[h.jsx(UC,{className:"h-4 w-4 mr-2"}
174),"Update Now"]})]}),duration:1/0}))}catch(i){console.error("Error checking for updates:",i)}},[n,s]);return v.useEffect(()=>{o();const i=setInterval(o,Ek),l=()=>{o()};return window.addEventListener("focus",l),()=>{clearInterval(i),window.removeEventListener("focus",l)}},[o]),{currentVersion:e,hasUpdate:n,checkForUpdates:o}}const bk="/assets/coveriq-logo-new-C036C0HE.png",_g="https://calendar.app.google/fmx9VfxHR4NaprFE7",Ck=()=>{const e=gn(),t=Gi(),[n,r]=v.useState(!1),[s,o]=v.useState(!1),i=[{to:"/",label:"Home"},{to:"/why-choose-us",label:"Why Choose Us"},{to:"/how-it-works",label:"How It Works"},{to:"/contact",label:"Contact"}];v.useEffect(()=>{const a=localStorage.getItem("cognitoAccessToken");o(!!a)},[]);const l=a=>{t("/auth")};return h.jsxs("nav",{className:"sticky top-0 z-50 w-full bg-white/95 backdrop-blur-md supports-[backdrop-filter]:bg-white/80 border-b border-slate-200 shadow-sm",children:[h.jsx("div",{className:"container mx-auto px-4",children:h.jsxs("div",{className:"flex items-center justify-between h-16 md:h-16 relative",children:[h.jsx("div",{className:"md:hidden flex items-center",children:h.jsx("button",{type:"button",className:"p-2 -ml-2 rounded-lg hover:bg-slate-100 transition-colors touch-manipulation",onClick:()=>r(a=>!a),"aria-label":"Toggle menu","aria-expanded":n,children:n?h.jsx(Tw,{size:24}):h.jsx(zC,{size:24})})}),h.jsx(mt,{to:"/",className:"flex items-center md:flex-none absolute left-1/2 -translate-x-1/2 md:relative md:left-0 md:translate-x-0 mt-3 md:mt-6",children:h.jsx("img",{src:bk,alt:"CoverIQ",className:"h-40 md:h-48 w-auto object-contain"})}),h.jsx("div",{className:"md:hidden w-10"}),h.jsxs("div",{className:"hidden md:flex items-center gap-1 lg:gap-4 xl:gap-6 flex-1 justify-end",children:[i.map(a=>h.jsx(mt,{to:a.to,className:`text-sm font-medium transition-colors hover:text-primary whitespace-nowrap px-2 py-1.5 rounded-md ${e.pathname===a.to?"text-primary bg-primary/5":"text-slate-600 hover:bg-slate-50"}`,children:a.label},a.to)),h.jsxs("a",{href:_g,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-sm font-medium text-accent hover:text-accent/80 transition-colors whitespace-nowrap px-2 py-1.5 rounded-md hover:bg-accent/5",children:[h.jsx(fd,{className:"h-4 w-4"}),h.jsx("span",{className:"hidden lg:inline",children:"Book a Demo"}),h.jsx("span",{className:"lg:hidden",children:"Demo"})]}),s?h.jsx(ks,{size:"sm",className:"text-sm px-4 h-9",onClick:()=>t("/app"),children:"Dashboard"}):h.jsx(ks,{size:"sm",className:"text-sm px-4 h-9",onClick:()=>l(),children:"Login"})]})]})}),n&&h.jsx("div",{className:"md:hidden fixed inset-x-0 top-16 bottom-0 z-40 bg-white border-t border-slate-200 overflow-y-auto",children:h.jsxs("div",{className:"container mx-auto px-4 py-4 space-y-1",children:[i.map(a=>h.jsx(mt,{to:a.to,className:`flex items-center py-3.5 px-4 text-base font-medium rounded-xl transition-colors ${e.pathname===a.to?"text-primary bg-primary/5":"text-slate-700 hover:bg-slate-50 active:bg-slate-100"}`,onClick:()=>r(!1),children:a.label},a.to)),h.jsxs("a",{href:_g,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 py-3.5 px-4 text-base font-medium text-accent rounded-xl hover:bg-accent/5 active:bg-accent/10 transition-colors",onClick:()=>r(!1),children:[h.jsx(fd,{className:"h-5 w-5"}),"Book a Demo"]}),h.jsx("div",{className:"pt-4 px-4",children:s?h.jsx(ks,{className:"w-full h-12 text-base font-semibold",onClick:()=>{r(!1),t("/app")},children:"Dashboard"}):h.jsx(ks,{className:"w-full h-12 text-base font-semibold",onClick:()=>{r(!1),l()},children:"Login"})})]})})]})};function Tk(){const{pathname:e}=gn();return v.useEffect(()=>{window.scrollTo(0,0)},[e]),null}function Pk(){const[e,t]=v.useState(null);return v.useEffect(()=>{fetch("/version.json").then(n=>n.json()).then(n=>t(n)).catch(n=>console.error("Failed to load version info:",n))},[]),e?h.jsxs("div",{className:"text-xs text-muted-foreground",children:["v",e.version]}):null}const Rk=()=>(gn().pathname,h.jsx("footer",{className:"bg-muted border-t border-border",children:h.jsxs("div",{className:"container mx-auto px-4 py-12",children:[h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex items-center space-x-2",children:[h.jsx("div",{className:"w-8 h-8 bg-primary rounded-md flex items-center justify-center",children:h.jsx("span",{className:"text-primary-foreground font-bold text-lg",children:"C"})}),h.jsx("span",{className:"font-bold text-xl",children:"CoverIQ"})]}),h.jsx("p",{className:"text-sm text-muted-foreground",children:"Drone-precise pool measurements for safety cover professionals"}),h.jsxs("div",{className:"flex space-x-4",children:[h.jsx("a",{href:"#","aria-label":"Facebook",className:"text-muted-foreground hover:text-primary transition-colors",children:h.jsx(jC,{size:20})}),h.jsx("a",{href:"#","aria-label":"Instagram",className:"text-muted-foreground hover:text-primary transition-colors",children:h.jsx($C,{size:20})})]})]}),h.jsxs("div",{children:[h.jsx("h3",{className:"font-semibold mb-4",children:"Qu
174ick Links"}),h.jsxs("ul",{className:"space-y-2 text-sm",children:[h.jsx("li",{children:h.jsx(mt,{to:"/",onClick:()=>window.scrollTo(0,0),className:"text-muted-foreground hover:text-primary transition-colors",children:"Home"})}),h.jsx("li",{children:h.jsx(mt,{to:"/why-choose-us",onClick:()=>window.scrollTo(0,0),className:"text-muted-foreground hover:text-primary transition-colors",children:"Why Choose Us"})}),h.jsx("li",{children:h.jsx(mt,{to:"/how-it-works",onClick:()=>window.scrollTo(0,0),className:"text-muted-foreground hover:text-primary transition-colors",children:"How It Works"})})]})]}),h.jsxs("div",{children:[h.jsx("h3",{className:"font-semibold mb-4",children:"Legal"}),h.jsxs("ul",{className:"space-y-2 text-sm",children:[h.jsx("li",{children:h.jsx(mt,{to:"/terms",onClick:()=>window.scrollTo(0,0),className:"text-muted-foreground hover:text-primary transition-colors",children:"Terms of Service"})}),h.jsx("li",{children:h.jsx(mt,{to:"/privacy",onClick:()=>window.scrollTo(0,0),className:"text-muted-foreground hover:text-primary transition-colors",children:"Privacy Policy"})}),h.jsx("li",{children:h.jsx(mt,{to:"/contact",onClick:()=>window.scrollTo(0,0),className:"text-muted-foreground hover:text-primary transition-colors",children:"Contact Us"})})]})]}),h.jsxs("div",{children:[h.jsx("h3",{className:"font-semibold mb-4",children:"Contact"}),h.jsx("ul",{className:"space-y-3 text-sm",children:h.jsxs("li",{className:"flex items-center space-x-2",children:[h.jsx(FC,{size:16,className:"text-muted-foreground flex-shrink-0"}),h.jsx("a",{href:"mailto:[email protected]",className:"text-muted-foreground hover:text-primary transition-colors",children:"[email protected]"})]})}),h.jsx("p",{className:"text-xs text-muted-foreground mt-4",children:"Hours: Mon-Fri 8AM-6PM EST"})]})]}),h.jsx("div",{className:"border-t border-border mt-8 pt-8 text-center text-sm text-muted-foreground",children:h.jsxs("div",{className:"flex items-center justify-center gap-4",children:[h.jsxs("p",{children:["© ",new Date().getFullYear()," CoverIQ. All rights reserved."]}),h.jsx("span",{className:"text-muted-foreground/50",children:"â¢"}),h.jsx(Pk,{})]})})]})})),Ak=({title:e,description:t,canonical:n,keywords:r,ogImage:s="https://coveriq.ai/og-image-v2.jpg",type:o="website",structuredData:i})=>{const l=`${e} | CoverIQ`,a="https://coveriq.ai",c=n?`${a}${n}`:a;return h.jsxs(uk,{children:[h.jsx("title",{children:l}),h.jsx("meta",{name:"title",content:l}),h.jsx("meta",{name:"description",content:t}),r&&h.jsx("meta",{name:"keywords",content:r}),h.jsx("link",{rel:"canonical",href:c}),h.jsx("meta",{property:"og:type",content:o}),h.jsx("meta",{property:"og:url",content:c}),h.jsx("meta",{property:"og:title",content:l}),h.jsx("meta",{property:"og:description",content:t}),h.jsx("meta",{property:"og:image",content:s}),h.jsx("meta",{property:"og:image:width",content:"1200"}),h.jsx("meta",{property:"og:image:height",content:"630"}),h.jsx("meta",{property:"og:site_name",content:"CoverIQ"}),h.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),h.jsx("meta",{name:"twitter:url",content:c}),h.jsx("meta",{name:"twitter:title",content:l}),h.jsx("meta",{name:"twitter:description",content:t}),h.jsx("meta",{name:"twitter:image",content:s}),i&&h.jsx("script",{type:"application/ld+json",children:JSON.stringify(i)})]})},kk=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){var r;(r=e.httpHandler)==null||r.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),_k=e=>({httpHandler:e.httpHandler()});var Ri;(function(e){e.HTTP="http",e.HTTPS="https"})(Ri||(Ri={}));var Ai;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(Ai||(Ai={}));const Id="__smithy_context";class xt{constructor(t){b(this,"method");b(this,"protocol");b(this,"hostname");b(this,"port");b(this,"path");b(this,"query");b(this,"headers");b(this,"username");b(this,"password");b(this,"fragment");b(this,"body");this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){const n=new xt({...t,headers:{...t.headers}});return n.query&&(n.query=Nk(n.query)),n}static isInstance(t){if(!t)return!1;const n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){return xt.clone(this)}}function Nk(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];
174return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}class ao{constructor(t){b(this,"statusCode");b(this,"reason");b(this,"headers");b(this,"body");this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}}const Ok=e=>t=>async n=>{if(!xt.isInstance(n.request))return t(n);const{request:r}=n,{handlerProtocol:s=""}=e.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]=r.hostname+(r.port?":"+r.port:"");else if(!r.headers.host){let o=r.hostname;r.port!=null&&(o+=`:${r.port}`),r.headers.host=o}return t(n)},Ik={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Mk=e=>({applyToStack:t=>{t.add(Ok(e),Ik)}}),jk=()=>(e,t)=>async n=>{var r,s;try{const o=await e(n),{clientName:i,commandName:l,logger:a,dynamoDbDocumentClientOptions:c={}}=t,{overrideInputFilterSensitiveLog:u,overrideOutputFilterSensitiveLog:d}=c,f=u??t.inputFilterSensitiveLog,p=d??t.outputFilterSensitiveLog,{$metadata:g,...m}=o.output;return(r=a==null?void 0:a.info)==null||r.call(a,{clientName:i,commandName:l,input:f(n.input),output:p(m),metadata:g}),o}catch(o){const{clientName:i,commandName:l,logger:a,dynamoDbDocumentClientOptions:c={}}=t,{overrideInputFilterSensitiveLog:u}=c,d=u??t.inputFilterSensitiveLog;throw(s=a==null?void 0:a.error)==null||s.call(a,{clientName:i,commandName:l,input:d(n.input),error:o,metadata:o.$metadata}),o}},Dk={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},$k=e=>({applyToStack:t=>{t.add(jk(),Dk)}}),Lk={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},Fk=()=>e=>async t=>e(t),zk=e=>({applyToStack:t=>{t.add(Fk(),Lk)}}),wo=e=>e[Id]||(e[Id]={}),Rn=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},Uk=(e,t)=>{if(!t||t.length===0)return e;const n=[];for(const r of t)for(const s of e)s.schemeId.split("#")[1]===r&&n.push(s);for(const r of e)n.find(({schemeId:s})=>s===r.schemeId)||n.push(r);return n};function Hk(e){const t=new Map;for(const n of e)t.set(n.schemeId,n);return t}const Bk=(e,t)=>(n,r)=>async s=>{var d;const o=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,s.input)),i=e.authSchemePreference?await e.authSchemePreference():[],l=Uk(o,i),a=Hk(e.httpAuthSchemes),c=wo(r),u=[];for(const f of l){const p=a.get(f.schemeId);if(!p){u.push(`HttpAuthScheme \`${f.schemeId}\` was not enabled for this service.`);continue}const g=p.identityProvider(await t.identityProviderConfigProvider(e));if(!g){u.push(`HttpAuthScheme \`${f.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:m={},signingProperties:E={}}=((d=f.propertiesExtractor)==null?void 0:d.call(f,e,r))||{};f.identityProperties=Object.assign(f.identityProperties||{},m),f.signingProperties=Object.assign(f.signingProperties||{},E),c.selectedHttpAuthScheme={httpAuthOption:f,identity:await g(f.identityProperties),signer:p.signer};break}if(!c.selectedHttpAuthScheme)throw new Error(u.join(` 175`));return n(s)},Vk={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Wk=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(Bk(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),Vk)}}),Qk={name:"serializerMiddleware"},Gk=e=>t=>{throw t},qk=(e,t)=>{},Kk=e=>(t,n)=>async r=>{if(!xt.isInstance(r.request))return t(r);const o=wo(n).selectedHttpAuthScheme;if(!o)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:i={}},identity:l,signer:a}=o,c=await t({...r,request:await a.sign(r.request,l,i)}).catch((a.errorHandler||Gk)(i));return(a.successHandler||qk)(c.response,i),c},Yk={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Xk=e=>({applyToStack:t=>{t.addRelativeTo(Kk(),Yk)}}),ti=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},Lx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
175+/",Ng=Object.entries(Lx).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),Jk=Lx.split(""),Hs=6,ni=8,Zk=63,dc=e=>{let t=e.length/4*3;e.slice(-2)==="=="?t-=2:e.slice(-1)==="="&&t--;const n=new ArrayBuffer(t),r=new DataView(n);for(let s=0;s<e.length;s+=4){let o=0,i=0;for(let c=s,u=s+3;c<=u;c++)if(e[c]!=="="){if(!(e[c]in Ng))throw new TypeError(`Invalid character ${e[c]} in base64 string.`);o|=Ng[e[c]]<<(u-c)*Hs,i+=Hs}else o>>=Hs;const l=s/4*3;o>>=i%ni;const a=Math.floor(i/ni);for(let c=0;c<a;c++){const u=(a-c-1)*ni;r.setUint8(l+c,(o&255<<u)>>u)}}return new Uint8Array(n)},lo=e=>new TextEncoder().encode(e),ki=e=>typeof e=="string"?lo(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),up=e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)};function Tl(e){let t;typeof e=="string"?t=lo(e):t=e;const n=typeof t=="object"&&typeof t.length=="number",r=typeof t=="object"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number";if(!n&&!r)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let s="";for(let o=0;o<t.length;o+=3){let i=0,l=0;for(let c=o,u=Math.min(o+3,t.length);c<u;c++)i|=t[c]<<(u-c-1)*ni,l+=ni;const a=Math.ceil(l/Hs);i<<=a*Hs-l;for(let c=1;c<=a;c++){const u=(a-c)*Hs;s+=Jk[(i&Zk<<u)>>u]}s+="==".slice(0,4-a)}return s}class Kr extends Uint8Array{static fromString(t,n="utf-8"){if(typeof t=="string")return n==="base64"?Kr.mutate(dc(t)):Kr.mutate(lo(t));throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,Kr.prototype),t}transformToString(t="utf-8"){return t==="base64"?Tl(this):up(this)}}const Yr=e=>encodeURIComponent(e).replace(/[!'()*]/g,e_),e_=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function t_(e){const t=[];for(let n of Object.keys(e).sort()){const r=e[n];if(n=Yr(n),Array.isArray(r))for(let s=0,o=r.length;s<o;s++)t.push(`${n}=${Yr(r[s])}`);else{let s=n;(r||typeof r=="string")&&(s+=`=${Yr(r)}`),t.push(s)}}return t.join("&")}function Og(e,t){return new Request(e,t)}function n_(e=0){return new Promise((t,n)=>{e&&setTimeout(()=>{const r=new Error(`Request did not complete within ${e} ms`);r.name="TimeoutError",n(r)},e)})}const nu={supported:void 0};class dp{constructor(t){b(this,"config");b(this,"configProvider");typeof t=="function"?this.configProvider=t().then(n=>n||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config)),nu.supported===void 0&&(nu.supported=typeof Request<"u"&&"keepalive"in Og("https://[::1]"))}static create(t){return typeof(t==null?void 0:t.handle)=="function"?t:new dp(t)}destroy(){}async handle(t,{abortSignal:n,requestTimeout:r}={}){var y;this.config||(this.config=await this.configProvider);const s=r??this.config.requestTimeout,o=this.config.keepAlive===!0,i=this.config.credentials;if(n!=null&&n.aborted){const x=new Error("Request aborted");return x.name="AbortError",Promise.reject(x)}let l=t.path;const a=t_(t.query||{});a&&(l+=`?${a}`),t.fragment&&(l+=`#${t.fragment}`);let c="";if(t.username!=null||t.password!=null){const x=t.username??"",S=t.password??"";c=`${x}:${S}@`}const{port:u,method:d}=t,f=`${t.protocol}//${c}${t.hostname}${u?`:${u}`:""}${l}`,p=d==="GET"||d==="HEAD"?void 0:t.body,g={body:p,headers:new Headers(t.headers),method:d,credentials:i};(y=this.config)!=null&&y.cache&&(g.cache=this.config.cache),p&&(g.duplex="half"),typeof AbortController<"u"&&(g.signal=n),nu.supported&&(g.keepalive=o),typeof this.config.requestInit=="function"&&Object.assign(g,this.config.requestInit(t));let m=()=>{};const E=Og(f,g),w=[fetch(E).then(x=>{const S=x.headers,C={};for(const P of S.entries())C[P[0]]=P[1];return x.body!=null?{response:new ao({headers:C,reason:x.statusText,statusCode:x.status,body:x.body})}:x.blob().then(P=>({response:new ao({headers:C,reason:x.statusText,statusCode:x.status,body:P})}))}),n_(s)];return n&&w.push(new Promise((x,S)=>{const C=()=>{const T=new Error("Request aborted");T.name="AbortError",S(T)};if(typeof n.addEventListener=="function"){const T=n;T.addEventListener("abort",C,{once:!0}),m=()=>T.removeEventListener("abort",C)}else n.onabort=C})),Promise.race(w).finally(m)}updateHttpClientConfig(t,n){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[t]=n,r))}httpHandlerConfigs(){return this.config??{}}}const r_=async e=>{var t;return typeof Blob=="function"&&e instanceof Blob||((t=e.constructor)==null?void 0:t.name)==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await e.arrayBuffer()):s_(e):o_(e)};async function s_(e){const t=await i_(e),n=dc(t);return new Uint8Array(n)}async function o_(e){const t=[],n=e.getReader();let r=!1,s=0;for(;!r;){const{done:l,value:a}=await n.read();a&&(t.push(a),s+=a.length),r=l}const o=new Uint8Array(s);let i=0;
175for(const l of t)o.set(l,i),i+=l.length;return o}function i_(e){return new Promise((t,n)=>{const r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(new Error("Reader aborted too early"));const s=r.result??"",o=s.indexOf(","),i=o>-1?o+1:s.length;t(s.substring(i))},r.onabort=()=>n(new Error("Read aborted")),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}const Fx={},Md={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),Fx[e]=t,Md[t]=e}function a_(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const r=e.slice(n,n+2).toLowerCase();if(r in Md)t[n/2]=Md[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t}function Xr(e){let t="";for(let n=0;n<e.byteLength;n++)t+=Fx[e[n]];return t}const jd=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Kr.mutate(e);if(!e)return Kr.mutate(new Uint8Array);const n=t.streamCollector(e);return Kr.mutate(await n)},Ba=e=>typeof e=="function"?e():e,zx=(e,t,n,r,s)=>({name:t,namespace:e,traits:n,input:r,output:s}),l_=e=>(t,n)=>async r=>{var d,f,p,g;const{response:s}=await t(r),{operationSchema:o}=wo(n),[,i,l,a,c,u]=o??[];try{const m=await e.protocol.deserializeResponse(zx(i,l,a,c,u),{...e,...n},s);return{response:s,output:m}}catch(m){if(Object.defineProperty(m,"$response",{value:s,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in m)){const E="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{m.message+=` 176 `+E}catch{!n.logger||((f=(d=n.logger)==null?void 0:d.constructor)==null?void 0:f.name)==="NoOpLogger"?console.warn(E):(g=(p=n.logger)==null?void 0:p.warn)==null||g.call(p,E)}typeof m.$responseBodyText<"u"&&m.$response&&(m.$response.body=m.$responseBodyText);try{if(ao.isInstance(s)){const{headers:w={}}=s,y=Object.entries(w);m.$metadata={httpStatusCode:s.statusCode,requestId:ru(/^x-[\w-]+-request-?id$/,y),extendedRequestId:ru(/^x-[\w-]+-id-2$/,y),cfId:ru(/^x-[\w-]+-cf-id$/,y)}}}catch{}}throw m}},ru=(e,t)=>(t.find(([n])=>n.match(e))||[void 0,void 0])[1],c_=e=>(t,n)=>async r=>{var f;const{operationSchema:s}=wo(n),[,o,i,l,a,c]=s??[],u=(f=n.endpointV2)!=null&&f.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint,d=await e.protocol.serializeRequest(zx(o,i,l,a,c),r.input,{...e,...n,endpoint:u});return t({...r,request:d})},u_={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},d_={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function f_(e){return{applyToStack:t=>{t.add(c_(e),d_),t.add(l_(e),u_),e.protocol.setSerdeContext(e)}}}function Ho(e){if(typeof e=="object")return e;e=e|0;const t={};let n=0;for(const r of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>n++&1)===1&&(t[r]=1);return t}const Ig={it:Symbol.for("@smithy/nor-struct-it")},Jn=class Jn{constructor(t,n){b(this,"ref");b(this,"memberName");b(this,"symbol",Jn.symbol);b(this,"name");b(this,"schema");b(this,"_isMemberSchema");b(this,"traits");b(this,"memberTraits");b(this,"normalizedTraits");this.ref=t,this.memberName=n;const r=[];let s=t,o=t;for(this._isMemberSchema=!1;su(s);)r.push(s[1]),s=s[0],o=Ba(s),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let i=r.length-1;i>=0;--i){const l=r[i];Object.assign(this.memberTraits,Ho(l))}}else this.memberTraits=0;if(o instanceof Jn){const i=this.memberTraits;Object.assign(this,o),this.memberTraits=Object.assign({},i,o.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??o.memberName;return}if(this.schema=Ba(o),p_(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(o),this.traits=0),this._isMemberSchema&&!n)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](t){const n=this.prototype.isPrototypeOf(t);return!n&&typeof t=="object"&&t!==null?t.symbol===this.symbol:n}static of(t){const n=Ba(t);if(n instanceof Jn)return n;if(su(n)){const[r,s]=n;if(r instanceof Jn)return Object.assign(r.getMergedTraits(),Ho(s)),r;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}return new Jn(n)}getSchema(){const t=this.schema;return Array.isArray(t)&&t[0]===0?t[4]:t}getName(t=!1){const{name:n}=this;return!t&&n&&n.includes("#")?n.split("#")[1]:n||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const t=this.getSchema();return typeof t=="number"?t>=64&&t<128:t[0]===1}isMapSchema(){const t=this.getSchema();return typeof t=="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){const t=this.getSchema();if(typeof t!="object")return!1;const n=t[0];return n===3||n===-3||n===4}isUnionSchema(){const t=this.getSchema();return typeof t!="object"?!1:t[0]===4}isBlobSchema(){const t=this.getSchema();return t===21||t===42}isTimestampSchema(){const t=this.getSchema();return typeof t=="number"&&t>=4&&t<=7}
176isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return Ho(this.memberTraits)}getOwnTraits(){return Ho(this.traits)}getKeySchema(){const[t,n]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!n)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const r=this.getSchema(),s=t?15:r[4]??0;return jo([s,0],"key")}getValueSchema(){const t=this.getSchema(),[n,r,s]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],o=typeof t=="number"?63&t:t&&typeof t=="object"&&(r||s)?t[3+t[0]]:n?15:void 0;if(o!=null)return jo([o,0],r?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(t){const n=this.getSchema();if(this.isStructSchema()&&n[4].includes(t)){const r=n[4].indexOf(t),s=n[5][r];return jo(su(s)?s:[s,0],t)}if(this.isDocumentSchema())return jo([15,0],t);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${t}.`)}getMemberSchemas(){const t={};try{for(const[n,r]of this.structIterator())t[n]=r}catch{}return t}getEventStreamMember(){if(this.isStructSchema()){for(const[t,n]of this.structIterator())if(n.isStreaming()&&n.isStructSchema())return t}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const t=this.getSchema(),n=t[4].length;let r=t[Ig.it];if(r&&n===r.length){yield*r;return}r=Array(n);for(let s=0;s<n;++s){const o=t[4][s],i=jo([t[5][s],0],o);yield r[s]=[o,i]}t[Ig.it]=r}};b(Jn,"symbol",Symbol.for("@smithy/nor"));let ut=Jn;function jo(e,t){if(e instanceof ut)return Object.assign(e,{memberName:t,_isMemberSchema:!0});const n=ut;return new n(e,t)}const su=e=>Array.isArray(e)&&e.length===2,p_=e=>Array.isArray(e)&&e.length>=5,nn=class nn{constructor(t,n=new Map,r=new Map){b(this,"namespace");b(this,"schemas");b(this,"exceptions");this.namespace=t,this.schemas=n,this.exceptions=r}static for(t){return nn.registries.has(t)||nn.registries.set(t,new nn(t)),nn.registries.get(t)}copyFrom(t){const{schemas:n,exceptions:r}=this;for(const[s,o]of t.schemas)n.has(s)||n.set(s,o);for(const[s,o]of t.exceptions)r.has(s)||r.set(s,o)}register(t,n){const r=this.normalizeShapeId(t);for(const s of[this,nn.for(r.split("#")[0])])s.schemas.set(r,n)}getSchema(t){const n=this.normalizeShapeId(t);if(!this.schemas.has(n))throw new Error(`@smithy/core/schema - schema not found for ${n}`);return this.schemas.get(n)}registerError(t,n){const r=t,s=r[1];for(const o of[this,nn.for(s)])o.schemas.set(s+"#"+r[2],r),o.exceptions.set(r,n)}getErrorCtor(t){const n=t;return this.exceptions.has(n)?this.exceptions.get(n):nn.for(n[1]).exceptions.get(n)}getBaseException(){for(const t of this.exceptions.keys())if(Array.isArray(t)){const[,n,r]=t,s=n+"#"+r;if(s.startsWith("smithy.ts.sdk.synthetic.")&&s.endsWith("ServiceException"))return t}}find(t){return[...this.schemas.values()].find(t)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(t){return t.includes("#")?t:this.namespace+"#"+t}};b(nn,"registries",new Map);let H=nn;const Dd=e=>{if(e!=null){if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&S_.warn(E_(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},h_=Math.ceil(2**127*(2-2**-23)),Mg=e=>{const t=Dd(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>h_)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},m_=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},jg=e=>Ux(e,16),Dg=e=>Ux(e,8),Ux=(e,t)=>{const n=m_(e);
176if(n!==void 0&&g_(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},g_=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},y_=e=>Dd(typeof e=="string"?fc(e):e),v_=e=>Mg(typeof e=="string"?fc(e):e),w_=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,fc=e=>{const t=e.match(w_);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},Pl=e=>jg(typeof e=="string"?fc(e):e),x_=e=>Dg(typeof e=="string"?fc(e):e),E_=e=>String(new TypeError(e).stack||e).split(` 177`).slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join(` 178`),S_={warn:console.warn},b_=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],fp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C_(e){const t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),s=e.getUTCDate(),o=e.getUTCHours(),i=e.getUTCMinutes(),l=e.getUTCSeconds(),a=s<10?`0${s}`:`${s}`,c=o<10?`0${o}`:`${o}`,u=i<10?`0${i}`:`${i}`,d=l<10?`0${l}`:`${l}`;return`${b_[r]}, ${a} ${fp[n]} ${t} ${c}:${u}:${d} GMT`}const T_=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),P_=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=T_.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[n,r,s,o,i,l,a,c,u]=t,d=Pl(_i(r)),f=xr(s,"month",1,12),p=xr(o,"day",1,31),g=Va(d,f,p,{hours:i,minutes:l,seconds:a,fractionalMilliseconds:c});return u.toUpperCase()!="Z"&&g.setTime(g.getTime()-F_(u)),g},R_=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),A_=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),k_=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),__=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=R_.exec(e);if(t){const[n,r,s,o,i,l,a,c]=t;return Va(Pl(_i(o)),ou(s),xr(r,"day",1,31),{hours:i,minutes:l,seconds:a,fractionalMilliseconds:c})}if(t=A_.exec(e),t){const[n,r,s,o,i,l,a,c]=t;return M_(Va(O_(o),ou(s),xr(r,"day",1,31),{hours:i,minutes:l,seconds:a,fractionalMilliseconds:c}))}if(t=k_.exec(e),t){const[n,r,s,o,i,l,a,c]=t;return Va(Pl(_i(c)),ou(r),xr(s.trimLeft(),"day",1,31),{hours:o,minutes:i,seconds:l,fractionalMilliseconds:a})}throw new TypeError("Invalid RFC-7231 date-time value")},N_=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=y_(e);else if(typeof e=="object"&&e.tag===1)t=e.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(t*1e3))},Va=(e,t,n,r)=>{const s=t-1;return D_(e,s,n),new Date(Date.UTC(e,s,n,xr(r.hours,"hour",0,23),xr(r.minutes,"minute",0,59),xr(r.seconds,"seconds",0,60),L_(r.fractionalMilliseconds)))},O_=e=>{const t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+Pl(_i(e));return n<t?n+100:n},I_=50*365*24*60*60*1e3,M_=e=>e.getTime()-new Date().getTime()>I_?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,ou=e=>{const t=fp.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},j_=[31,28,31,30,31,30,31,31,30,31,30,31],D_=(e,t,n)=>{let r=j_[t];if(t===1&&$_(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${fp[t]} in ${e}: ${n}`)},$_=e=>e%4===0&&(e%100!==0||e%400===0),xr=(e,t,n,r)=>{const s=x_(_i(e));if(s<n||s>r)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return s},L_=e=>e==null?0:v_("0."+e)*1e3,F_=e=>{const t=e[0];let n=1;if(t=="+")n=1;else if(t=="-")n=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);const r=Number(e.substring(1,3)),s=Number(e.substring(4,6));return n*(r*60+s)*60*1e3},_i=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)},$g=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ge=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),Hx=()=>
178{if($g)return $g();const e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Ge[e[0]]+Ge[e[1]]+Ge[e[2]]+Ge[e[3]]+"-"+Ge[e[4]]+Ge[e[5]]+"-"+Ge[e[6]]+Ge[e[7]]+"-"+Ge[e[8]]+Ge[e[9]]+"-"+Ge[e[10]]+Ge[e[11]]+Ge[e[12]]+Ge[e[13]]+Ge[e[14]]+Ge[e[15]]},ur=function(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})};ur.from=e=>e&&typeof e=="object"&&(e instanceof ur||"deserializeJSON"in e)?e:typeof e=="string"||Object.getPrototypeOf(e)===String.prototype?ur(String(e)):ur(JSON.stringify(e));ur.fromObject=ur.from;const Lg=/^-?\d*(\.\d+)?$/;class cn{constructor(t,n){b(this,"string");b(this,"type");if(this.string=t,this.type=n,!Lg.test(t))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!="object")return!1;const n=t;return cn.prototype.isPrototypeOf(t)||n.type==="bigDecimal"&&Lg.test(n.string)}}class z_{constructor(){b(this,"serdeContext")}setSerdeContext(t){this.serdeContext=t}}class U_ extends z_{constructor(n){super();b(this,"options");b(this,"compositeErrorRegistry");this.options=n,this.compositeErrorRegistry=H.for(n.defaultNamespace);for(const r of n.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return xt}getResponseType(){return ao}setSerdeContext(n){this.serdeContext=n,this.serializer.setSerdeContext(n),this.deserializer.setSerdeContext(n),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(n)}updateServiceEndpoint(n,r){if("url"in r){n.protocol=r.url.protocol,n.hostname=r.url.hostname,n.port=r.url.port?Number(r.url.port):void 0,n.path=r.url.pathname,n.fragment=r.url.hash||void 0,n.username=r.url.username||void 0,n.password=r.url.password||void 0,n.query||(n.query={});for(const[s,o]of r.url.searchParams.entries())n.query[s]=o;return n}else return n.protocol=r.protocol,n.hostname=r.hostname,n.port=r.port?Number(r.port):void 0,n.path=r.path,n.query={...r.query},n}setHostPrefix(n,r,s){var l,a;if((l=this.serdeContext)!=null&&l.disableHostPrefix)return;const o=ut.of(r.input),i=Ho(r.traits??{});if(i.endpoint){let c=(a=i.endpoint)==null?void 0:a[0];if(typeof c=="string"){const u=[...o.structIterator()].filter(([,d])=>d.getMergedTraits().hostLabel);for(const[d]of u){const f=s[d];if(typeof f!="string")throw new Error(`@smithy/core/schema - ${d} in input must be a string as hostLabel.`);c=c.replace(`{${d}}`,f)}n.hostname=c+n.hostname}}}deserializeMetadata(n){return{httpStatusCode:n.statusCode,requestId:n.headers["x-amzn-requestid"]??n.headers["x-amzn-request-id"]??n.headers["x-amz-request-id"],extendedRequestId:n.headers["x-amz-id-2"],cfId:n.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:n,requestSchema:r,initialRequest:s}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:n,requestSchema:r,initialRequest:s})}async deserializeEventStream({response:n,responseSchema:r,initialResponseContainer:s}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:n,responseSchema:r,initialResponseContainer:s})}async loadEventStreamCapability(){const{EventStreamSerde:n}=await z(async()=>{const{EventStreamSerde:r}=await import("./index-BLbZ2vi3.js");return{EventStreamSerde:r}},[]);return new n({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(n,r,s,o,i){return[]}getEventStreamMarshaller(){const n=this.serdeContext;if(!n.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return n.eventStreamMarshaller}}class H_ extends U_{async serializeRequest(t,n,r){const s=this.serializer,o={},i={},l=await r.endpoint(),a=ut.of(t==null?void 0:t.input),c=a.getSchema();let u;const d=new xt({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:o,headers:i,body:void 0});l&&(this.updateServiceEndpoint(d,l),this.setHostPrefix(d,t,n));const f={...n};if(n){const p=a.getEventStreamMember();if(p){if(f[p]){const g={};for(const[m,E]of a.structIterator())m!==p&&f[m]&&(s.write(E,f[m]),g[m]=s.flush());u=await this.serializeEventStream({eventStream:f[p],requestSchema:a,initialRequest:g})}}else s.write(c,f),u=s.flush()}return d.headers=i,d.query=o,d.body=u,d.method="POST",d}async deserializeResponse(t,n,r){const s=this.deserializer,o=ut.of(t.output),i={};if(r.statusCode>=300){const a=await jd(r.body,n);throw a.byteLength>0&&Object.assign(i,await s.read(15,a)),await this.handleError(t,n,r,i,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const a in r.headers){const c=r.headers[a];delete r.headers[a],r.headers[a.toLowerCase()]=c}const l=o.getEventStreamMember();if(l)i[l]=await this.deserializeEventStream({response:r,responseSchema:o,initialResponseContainer:i});else{const a=await jd(r.body,n);a.byteLength>0&&Object.assign(i,await s.read(o,a))}return i.$metadata=this.deserializeMetadata(r),i}}function Bx(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();const{httpLabel:n,httpPrefixHeaders:r,httpHeader:s,httpQuery:o}=e.getMergedTraits();return(t.httpBindings?typeof r=="string"||s?6:o||n?5:void 0:void 0)??t.timestampFormat.default}function B_(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}class V_{constructor(t){b(this,"authSchemes",new Map);for(const[n,r]of Object.entries(t))r!==void 0&&this.authSchemes.set(n,r)}
178getIdentityProvider(t){return this.authSchemes.get(t)}}class W_{async sign(t,n,r){return t}}const Q_=e=>function(n){return Vx(n)&&n.expiration.getTime()-Date.now()<e},G_=3e5,q_=Q_(G_),Vx=e=>e.expiration!==void 0,K_=(e,t,n)=>{if(e===void 0)return;const r=typeof e!="function"?async()=>Promise.resolve(e):e;let s,o,i,l=!1;const a=async c=>{o||(o=r(c));try{s=await o,i=!0,l=!1}finally{o=void 0}return s};return t===void 0?async c=>((!i||c!=null&&c.forceRefresh)&&(s=await a(c)),s):async c=>((!i||c!=null&&c.forceRefresh)&&(s=await a(c)),l?s:n(s)?(t(s)&&await a(c),s):(l=!0,s))},Y_=void 0;function X_(e){return e===void 0?!0:typeof e=="string"&&e.length<=50}function J_(e){const t=ti(e.userAgentAppId??Y_),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n=="string"?[[n]]:n,userAgentAppId:async()=>{var s,o;const r=await t();if(!X_(r)){const i=((o=(s=e.logger)==null?void 0:s.constructor)==null?void 0:o.name)==="NoOpLogger"||!e.logger?console:e.logger;typeof r!="string"?i==null||i.warn("userAgentAppId must be a string or undefined."):r.length>50&&(i==null||i.warn("The provided userAgentAppId exceeds the maximum length of 50 characters."))}return r}})}class Z_{constructor({size:t,params:n}){b(this,"capacity");b(this,"data",new Map);b(this,"parameters",[]);this.capacity=t??50,n&&(this.parameters=n)}get(t,n){const r=this.hash(t);if(r===!1)return n();if(!this.data.has(r)){if(this.data.size>this.capacity+10){const s=this.data.keys();let o=0;for(;;){const{value:i,done:l}=s.next();if(this.data.delete(i),l||++o>10)break}}this.data.set(r,n())}return this.data.get(r)}size(){return this.data.size}hash(t){let n="";const{parameters:r}=this;if(r.length===0)return!1;for(const s of r){const o=String(t[s]??"");if(o.includes("|;"))return!1;n+=o+"|;"}return n}}const eN=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),pp=e=>eN.test(e)||e.startsWith("[")&&e.endsWith("]"),tN=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),qi=(e,t=!1)=>{if(!t)return tN.test(e);const n=e.split(".");for(const r of n)if(!qi(r))return!1;return!0},Ni={},Oi="endpoints";function Pr(e){return typeof e!="object"||e==null?e:"ref"in e?`$${Pr(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Pr).join(", ")})`:JSON.stringify(e,null,2)}class Et extends Error{constructor(t){super(t),this.name="EndpointError"}}const nN=(e,t)=>e===t,rN=e=>{const t=e.split("."),n=[];for(const r of t){const s=r.indexOf("[");if(s!==-1){if(r.indexOf("]")!==r.length-1)throw new Et(`Path: '${e}' does not end with ']'`);const o=r.slice(s+1,-1);if(Number.isNaN(parseInt(o)))throw new Et(`Invalid array index: '${o}' in path: '${e}'`);s!==0&&n.push(r.slice(0,s)),n.push(o)}else n.push(r)}return n},Wx=(e,t)=>rN(t).reduce((n,r)=>{if(typeof n!="object")throw new Et(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(n)?n[parseInt(r)]:n[r]},e),sN=e=>e!=null,oN=e=>!e,iu={[Ri.HTTP]:80,[Ri.HTTPS]:443},iN=e=>{const t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){const{hostname:f,port:p,protocol:g="",path:m="",query:E={}}=e,w=new URL(`${g}//${f}${p?`:${p}`:""}${m}`);return w.search=Object.entries(E).map(([y,x])=>`${y}=${x}`).join("&"),w}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const n=t.href,{host:r,hostname:s,pathname:o,protocol:i,search:l}=t;if(l)return null;const a=i.slice(0,-1);if(!Object.values(Ri).includes(a))return null;const c=pp(s),u=n.includes(`${r}:${iu[a]}`)||typeof e=="string"&&e.includes(`${r}:${iu[a]}`),d=`${r}${u?`:${iu[a]}`:""}`;return{scheme:a,authority:d,path:o,normalizedPath:o.endsWith("/")?o:`${o}/`,isIp:c}},aN=(e,t)=>e===t,lN=(e,t,n,r)=>t>=n||e.length<n||/[^\u0000-\u007f]/.test(e)?null:r?e.substring(e.length-n,e.length-t):e.substring(t,n),cN=e=>encodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),uN={booleanEquals:nN,getAttr:Wx,isSet:sN,isValidHostLabel:qi,not:oN,parseURL:iN,stringEquals:aN,substring:lN,uriEncode:cN},Qx=(e,t)=>{const n=[],r={...t.endpointParams,...t.referenceRecord};let s=0;for(;s<e.length;){const o=e.indexOf("{",s);if(o===-1){n.push(e.slice(s));break}n.push(e.slice(s,o));const i=e.indexOf("}",o);if(i===-1){n.push(e.slice(o));break}e[o+1]==="{"&&e[i+1]==="}"&&(n.push(e.slice(o+1,i)),s=i+2);const l=e.substring(o+1,i);if(l.includes("#")){const[a,c]=l.split("#");n.push(Wx(r[a],c))}else n.push(r[l]);s=i+1}return n.join("")},dN=({ref:e},t)=>({...t.endpointParams,...t.referenceRecord})[e],pc=(e,t,n)=>
178{if(typeof e=="string")return Qx(e,n);if(e.fn)return qx.callFunction(e,n);if(e.ref)return dN(e,n);throw new Et(`'${t}': ${String(e)} is not a string, function or reference.`)},Gx=({fn:e,argv:t},n)=>{const r=t.map(o=>["boolean","number"].includes(typeof o)?o:qx.evaluateExpression(o,"arg",n)),s=e.split(".");return s[0]in Ni&&s[1]!=null?Ni[s[0]][s[1]](...r):uN[e](...r)},qx={evaluateExpression:pc,callFunction:Gx},fN=({assign:e,...t},n)=>{var s,o;if(e&&e in n.referenceRecord)throw new Et(`'${e}' is already defined in Reference Record.`);const r=Gx(t,n);return(o=(s=n.logger)==null?void 0:s.debug)==null||o.call(s,`${Oi} evaluateCondition: ${Pr(t)} = ${Pr(r)}`),{result:r===""?!0:!!r,...e!=null&&{toAssign:{name:e,value:r}}}},hp=(e=[],t)=>{var r,s;const n={};for(const o of e){const{result:i,toAssign:l}=fN(o,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!i)return{result:i};l&&(n[l.name]=l.value,(s=(r=t.logger)==null?void 0:r.debug)==null||s.call(r,`${Oi} assign: ${l.name} := ${Pr(l.value)}`))}return{result:!0,referenceRecord:n}},pN=(e,t)=>Object.entries(e).reduce((n,[r,s])=>({...n,[r]:s.map(o=>{const i=pc(o,"Header value entry",t);if(typeof i!="string")throw new Et(`Header '${r}' value '${i}' is not a string`);return i})}),{}),Kx=(e,t)=>Object.entries(e).reduce((n,[r,s])=>({...n,[r]:Xx.getEndpointProperty(s,t)}),{}),Yx=(e,t)=>{if(Array.isArray(e))return e.map(n=>Yx(n,t));switch(typeof e){case"string":return Qx(e,t);case"object":if(e===null)throw new Et(`Unexpected endpoint property: ${e}`);return Xx.getEndpointProperties(e,t);case"boolean":return e;default:throw new Et(`Unexpected endpoint property type: ${typeof e}`)}},Xx={getEndpointProperty:Yx,getEndpointProperties:Kx},hN=(e,t)=>{const n=pc(e,"Endpoint URL",t);if(typeof n=="string")try{return new URL(n)}catch(r){throw console.error(`Failed to construct URL with ${n}`,r),r}throw new Et(`Endpoint URL must be a string, got ${typeof n}`)},mN=(e,t)=>{var u,d;const{conditions:n,endpoint:r}=e,{result:s,referenceRecord:o}=hp(n,t);if(!s)return;const i={...t,referenceRecord:{...t.referenceRecord,...o}},{url:l,properties:a,headers:c}=r;return(d=(u=t.logger)==null?void 0:u.debug)==null||d.call(u,`${Oi} Resolving endpoint from template: ${Pr(r)}`),{...c!=null&&{headers:pN(c,i)},...a!=null&&{properties:Kx(a,i)},url:hN(l,i)}},gN=(e,t)=>{const{conditions:n,error:r}=e,{result:s,referenceRecord:o}=hp(n,t);if(s)throw new Et(pc(r,"Error",{...t,referenceRecord:{...t.referenceRecord,...o}}))},Jx=(e,t)=>{for(const n of e)if(n.type==="endpoint"){const r=mN(n,t);if(r)return r}else if(n.type==="error")gN(n,t);else if(n.type==="tree"){const r=Zx.evaluateTreeRule(n,t);if(r)return r}else throw new Et(`Unknown endpoint rule: ${n}`);throw new Et("Rules evaluation failed")},yN=(e,t)=>{const{conditions:n,rules:r}=e,{result:s,referenceRecord:o}=hp(n,t);if(s)return Zx.evaluateRules(r,{...t,referenceRecord:{...t.referenceRecord,...o}})},Zx={evaluateRules:Jx,evaluateTreeRule:yN},vN=(e,t)=>{var c,u,d,f;const{endpointParams:n,logger:r}=t,{parameters:s,rules:o}=e;(u=(c=t.logger)==null?void 0:c.debug)==null||u.call(c,`${Oi} Initial EndpointParams: ${Pr(n)}`);const i=Object.entries(s).filter(([,p])=>p.default!=null).map(([p,g])=>[p,g.default]);if(i.length>0)for(const[p,g]of i)n[p]=n[p]??g;const l=Object.entries(s).filter(([,p])=>p.required).map(([p])=>p);for(const p of l)if(n[p]==null)throw new Et(`Missing required parameter: '${p}'`);const a=Jx(o,{endpointParams:n,logger:r,referenceRecord:{}});return(f=(d=t.logger)==null?void 0:d.debug)==null||f.call(d,`${Oi} Resolved endpoint: ${Pr(a)}`),a},eE=(e,t=!1)=>{if(t){for(const n of e.split("."))if(!eE(n))return!1;return!0}return!(!qi(e)||e.length<3||e.length>63||e!==e.toLowerCase()||pp(e))},Fg=":",wN="/",xN=e=>{const t=e.split(Fg);if(t.length<6)return null;const[n,r,s,o,i,...l]=t;if(n!=="arn"||r===""||s===""||l.join(Fg)==="")return null;const a=l.map(c=>c.split(wN)).flat();return{partition:r,service:s,region:o,accountId:i,resourceId:a}},EN=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supp
178ortsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],SN={partitions:EN};let bN=SN;const CN=e=>{const{partitions:t}=bN;for(const r of t){const{regions:s,outputs:o}=r;for(const[i,l]of Object.entries(s))if(i===e)return{...o,...l}}for(const r of t){const{regionRegex:s,outputs:o}=r;if(new RegExp(s).test(e))return{...o}}const n=t.find(r=>r.id==="aws");if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}},TN={isVirtualHostableS3Bucket:eE,parseArn:xN,partition:CN};Ni.aws=TN;function PN(e){const t={};if(e=e.replace(/^\?/,""),e)for(const n of e.split("&")){let[r,s=null]=n.split("=");r=decodeURIComponent(r),s&&(s=decodeURIComponent(s)),r in t?Array.isArray(t[r])?t[r].push(s):t[r]=[t[r],s]:t[r]=s}return t}const Rl=e=>{if(typeof e=="string")return Rl(new URL(e));const{hostname:t,pathname:n,port:r,protocol:s,search:o}=e;let i;return o&&(i=PN(o)),{hostname:t,port:r?parseInt(r):void 0,protocol:s,path:n,query:i}};function RN(e,t,n){return e.$source||(e.$source={}),e.$source[t]=n,e}function Zt(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}const zg=e=>{var t,n;return ao.isInstance(e)?((t=e.headers)==null?void 0:t.date)??((n=e.headers)==null?void 0:n.Date):void 0},tE=e=>new Date(Date.now()+e),AN=(e,t)=>Math.abs(tE(t).getTime()-e)>=3e5,Ug=(e,t)=>{const n=Date.parse(e);return AN(n,t)?n-Date.now():t},ri=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},kN=async e=>{var c,u,d;const t=ri("context",e.context),n=ri("config",e.config),r=(d=(u=(c=t.endpointV2)==null?void 0:c.properties)==null?void 0:u.authSchemes)==null?void 0:d[0],o=await ri("signer",n.signer)(r),i=e==null?void 0:e.signingRegion,l=e==null?void 0:e.signingRegionSet,a=e==null?void 0:e.signingName;return{config:n,signer:o,signingRegion:i,signingRegionSet:l,signingName:a}};class _N{async sign(t,n,r){var d;if(!xt.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const s=await kN(r),{config:o,signer:i}=s;let{signingRegion:l,signingName:a}=s;const c=r.context;if(((d=c==null?void 0:c.authSchemes)==null?void 0:d.length)??!1){const[f,p]=c.authSchemes;(f==null?void 0:f.name)==="sigv4a"&&(p==null?void 0:p.name)==="sigv4"&&(l=(p==null?void 0:p.signingRegion)??l,a=(p==null?void 0:p.signingName)??a)}return await i.sign(t,{signingDate:tE(o.systemClockOffset),signingRegion:l,signingService:a})}errorHandler(t){return n=>{const r=n.ServerTime??zg(n.$response);if(r){const s=ri("config",t.config),o=s.systemClockOffset;s.systemClockOffset=Ug(r,s.systemClockOffset),s.systemClockOffset!==o&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}throw n}}successHandler(t,n){const r=zg(t);if(r){const s=ri("config",n.config);s.systemClockOffset=Ug(r,s.systemClockOffset)}}}const NN=(e,t,n)=>{let r,s,o,i=!1;const l=async()=>{s||(s=e());try{r=await s,o=!0,i=!1}finally{s=void 0}return r};return async a=>((!o||a!=null&&a.forceRefresh)&&(r=await l()),r)}
178,ON="X-Amz-Algorithm",IN="X-Amz-Credential",nE="X-Amz-Date",MN="X-Amz-SignedHeaders",jN="X-Amz-Expires",rE="X-Amz-Signature",sE="X-Amz-Security-Token",oE="authorization",iE=nE.toLowerCase(),DN="date",$N=[oE,iE,DN],LN=rE.toLowerCase(),$d="x-amz-content-sha256",FN=sE.toLowerCase(),zN={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},UN=/^proxy-/,HN=/^sec-/,au="AWS4-HMAC-SHA256",BN="AWS4-HMAC-SHA256-PAYLOAD",VN="UNSIGNED-PAYLOAD",WN=50,aE="aws4_request",QN=60*60*24*7,Sa={},lu=[],cu=(e,t,n)=>`${e}/${t}/${n}/${aE}`,GN=async(e,t,n,r,s)=>{const o=await Hg(e,t.secretAccessKey,t.accessKeyId),i=`${n}:${r}:${s}:${Xr(o)}:${t.sessionToken}`;if(i in Sa)return Sa[i];for(lu.push(i);lu.length>WN;)delete Sa[lu.shift()];let l=`AWS4${t.secretAccessKey}`;for(const a of[n,r,s,aE])l=await Hg(e,l,a);return Sa[i]=l},Hg=(e,t,n)=>{const r=new e(t);return r.update(ki(n)),r.digest()},Bg=({headers:e},t,n)=>{const r={};for(const s of Object.keys(e).sort()){if(e[s]==null)continue;const o=s.toLowerCase();(o in zN||t!=null&&t.has(o)||UN.test(o)||HN.test(o))&&(!n||n&&!n.has(o))||(r[o]=e[s].trim().replace(/\s+/g," "))}return r},qN=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]",uu=async({headers:e,body:t},n)=>{for(const r of Object.keys(e))if(r.toLowerCase()===$d)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||qN(t)){const r=new n;return r.update(ki(t)),Xr(await r.digest())}return VN};class KN{format(t){const n=[];for(const o of Object.keys(t)){const i=lo(o);n.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(t[o]))}const r=new Uint8Array(n.reduce((o,i)=>o+i.byteLength,0));let s=0;for(const o of n)r.set(o,s),s+=o.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":const s=new Uint8Array(9);return s[0]=5,s.set(t.value.bytes,1),s;case"binary":const o=new DataView(new ArrayBuffer(3+t.value.byteLength));o.setUint8(0,6),o.setUint16(1,t.value.byteLength,!1);const i=new Uint8Array(o.buffer);return i.set(t.value,3),i;case"string":const l=lo(t.value),a=new DataView(new ArrayBuffer(3+l.byteLength));a.setUint8(0,7),a.setUint16(1,l.byteLength,!1);const c=new Uint8Array(a.buffer);return c.set(l,3),c;case"timestamp":const u=new Uint8Array(9);return u[0]=8,u.set(mp.fromNumber(t.value.valueOf()).bytes,1),u;
178case"uuid":if(!YN.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const d=new Uint8Array(17);return d[0]=9,d.set(a_(t.value.replace(/\-/g,"")),1),d}}}var Vg;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Vg||(Vg={}));const YN=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class mp{constructor(t){b(this,"bytes");if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const n=new Uint8Array(8);for(let r=7,s=Math.abs(Math.round(t));r>-1&&s>0;r--,s/=256)n[r]=s;return t<0&&Wg(n),new mp(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&Wg(t),parseInt(Xr(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function Wg(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}const XN=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},JN=(e,t={})=>{var s,o;const{headers:n,query:r={}}=xt.clone(e);for(const i of Object.keys(n)){const l=i.toLowerCase();(l.slice(0,6)==="x-amz-"&&!((s=t.unhoistableHeaders)!=null&&s.has(l))||(o=t.hoistableHeaders)!=null&&o.has(l))&&(r[i]=n[i],delete n[i])}return{...e,headers:n,query:r}},Qg=e=>{e=xt.clone(e);for(const t of Object.keys(e.headers))$N.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},ZN=({query:e={}})=>{const t=[],n={};for(const r of Object.keys(e)){if(r.toLowerCase()===LN)continue;const s=Yr(r);t.push(s);const o=e[r];typeof o=="string"?n[s]=`${s}=${Yr(o)}`:Array.isArray(o)&&(n[s]=o.slice(0).reduce((i,l)=>i.concat([`${s}=${Yr(l)}`]),[]).sort().join("&"))}return t.sort().map(r=>n[r]).filter(r=>r).join("&")},eO=e=>tO(e).toISOString().replace(/\.\d{3}Z$/,"Z"),tO=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;class nO{constructor({applyChecksum:t,credentials:n,region:r,service:s,sha256:o,uriEscapePath:i=!0}){b(this,"service");b(this,"regionProvider");b(this,"credentialProvider");b(this,"sha256");b(this,"uriEscapePath");b(this,"applyChecksum");this.service=s,this.sha256=o,this.uriEscapePath=i,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=Rn(r),this.credentialProvider=Rn(n)}createCanonicalRequest(t,n,r){const s=Object.keys(n).sort();return`${t.method} 179${this.getCanonicalPath(t)} 180${ZN(t)} 181${s.map(o=>`${o}:${n[o]}`).join(` 182`)} 183 184${s.join(";")} 185${r}`}async createStringToSign(t,n,r,s){const o=new this.sha256;o.update(ki(r));const i=await o.digest();return`${s} 186${t} 187${n} 188${Xr(i)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const n=[];for(const o of t.split("/"))(o==null?void 0:o.length)!==0&&o!=="."&&(o===".."?n.pop():n.push(o));const r=`${t!=null&&t.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&(t!=null&&t.endsWith("/"))?"/":""}`;return Yr(r).replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(t){const n=eO(t).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}}class Gg extends nO{constructor({applyChecksum:n,credentials:r,region:s,service:o,sha256:i,uriEscapePath:l=!0}){super({applyChecksum:n,credentials:r,region:s,service:o,sha256:i,uriEscapePath:l});b(this,"headerFormatter",new KN)}async presign(n,r={}
vendor: 1,965 bytes, lines 188-189
188){const{signingDate:s=new Date,expiresIn:o=3600,unsignableHeaders:i,unhoistableHeaders:l,signableHeaders:a,hoistableHeaders:c,signingRegion:u,signingService:d}=r,f=await this.credentialProvider();this.validateResolvedCredentials(f);const p=u??await this.regionProvider(),{longDate:g,shortDate:m}=this.formatDate(s);if(o>QN)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const E=cu(m,p,d??this.service),w=JN(Qg(n),{unhoistableHeaders:l,hoistableHeaders:c});f.sessionToken&&(w.query[sE]=f.sessionToken),w.query[ON]=au,w.query[IN]=`${f.accessKeyId}/${E}`,w.query[nE]=g,w.query[jN]=o.toString(10);const y=Bg(w,i,a);return w.query[MN]=this.getCanonicalHeaderList(y),w.query[rE]=await this.getSignature(g,E,this.getSigningKey(f,p,m,d),this.createCanonicalRequest(w,y,await uu(n,this.sha256))),w}async sign(n,r){return typeof n=="string"?this.signString(n,r):n.headers&&n.payload?this.signEvent(n,r):n.message?this.signMessage(n,r):this.signRequest(n,r)}async signEvent({headers:n,payload:r},{signingDate:s=new Date,priorSignature:o,signingRegion:i,signingService:l}){const a=i??await this.regionProvider(),{shortDate:c,longDate:u}=this.formatDate(s),d=cu(c,a,l??this.service),f=await uu({headers:{},body:r},this.sha256),p=new this.sha256;p.update(n);const g=Xr(await p.digest()),m=[BN,u,d,o,g,f].join(` 189`);return this.signString(m,{signingDate:s,signingRegion:a,signingService:l})}async signMessage(n,{signingDate:r=new Date,signingRegion:s,signingService:o}){return this.signEvent({headers:this.headerFormatter.format(n.message.headers),payload:n.message.body},{signingDate:r,signingRegion:s,signingService:o,priorSignature:n.priorSignature}).then(l=>({message:n.message,signature:l}))}async signString(n,{signingDate:r=new Date,signingRegion:s,signingService:o}={}){const i=await this.credentialProvider();this.validateResolvedCredentials(i);const l=s??await this.regionProvider(),{shortDate:a}
189=this.formatDate(r),c=new this.sha256(await this.getSigningKey(i,l,a,o));return c.update(ki(n)),Xr(await c.digest())}async signRequest(n,{signingDate:r=new Date,signableHeaders:s,unsignableHeaders:o,signingRegion:i,signingService:l}={}){const a=await this.credentialProvider();this.validateResolvedCredentials(a);const c=i??await this.regionProvider(),u=Qg(n),{longDate:d,shortDate:f}=this.formatDate(r),p=cu(f,c,l??this.service);u.headers[iE]=d,a.sessionToken&&(u.headers[FN]=a.sessionToken);const g=await uu(u,this.sha256);!XN($d,u.headers)&&this.applyChecksum&&(u.headers[$d]=g);const m=Bg(u,o,s),E=await this.getSignature(d,p,this.getSigningKey(a,c,f,l),this.createCanonicalRequest(u,m,g));return u.headers[oE]=`${au} Credential=${a.accessKeyId}/${p}, SignedHeaders=${this.getCanonicalHeaderList(m)}, Signature=${E}`,u}async getSignature(n,r,s,o){const i=await this.createStringToSign(n,r,o,au),l=new this.sha256(await s);return l.update(ki(i)),Xr(await l.digest())}getSigningKey(n,r,s,o){return GN(this.sha256,n,s,r,o||this.service)}}const rO=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(c){c&&c!==t&&c!==r&&(n=!0),t=c;const u=sO(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}),d=oO(e,u);if(n&&!d.attributed){const f=typeof t=="object"&&t!==null;r=async p=>{const m=await d(p);return f&&(!m.$source||Object.keys(m.$source).length===0)?RN(m,"CREDENTIALS_CODE","e"):m},r.memoized=d.memoized,r.configBound=d.configBound,r.attributed=!0}else r=d},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;const{signingEscapePath:s=!0,systemClockOffset:o=e.systemClockOffset||0,sha256:i}=e;let l;return e.signer?l=ti(e.signer):e.regionInfoProvider?l=()=>ti(e.region)().then(async c=>[await e.regionInfoProvider(c,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},c]).then(([c,u])=>{const{signingRegion:d,signingService:f}=c;e.signingRegion=e.signingRegion||d||u,e.signingName=e.signingName||f||e.serviceId;const p={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:s},g=e.signerConstructor||Gg;return new g(p)}):l=async c=>{c=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await ti(e.region)(),properties:{}},c);const u=c.signingRegion,d=c.signingName;e.signingRegion=e.signingRegion||u,e.signingName=e.signingName||d||e.serviceId;const f={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:s},p=e.signerConstructor||Gg;return new p(f)},Object.assign(e,{systemClockOffset:o,signingEscapePath:s,signer:l})};function sO(e,{credentials:t,credentialDefaultProvider:n}){let r;return t?t!=null&&t.memoized?r=t:r=K_(t,q_,Vx):n?r=ti(n(Object.assign({},e,{parentClientConfig:e}))):r=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function oO(e,t){if(t.configBound)return t;const n=async r=>t({...r,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}const qg=typeof TextEncoder=="function"?new TextEncoder:null,iO=e=>{if(typeof e=="string"){if(qg)return qg.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){const r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}else{if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size}throw new Error(`Body Length computation failed for ${e}`)},Ir=(e,t)=>{const n=[];if(e&&n.push(e),t)for(const r of t)n.push(r);return n},Gn=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,Al=()=>{let e=[],t=[],n=!1;const r=new Set,s=d=>d.sort((f,p)=>Kg[p.step]-Kg[f.step]||Yg[p.priority||"normal"]-Yg[f.priority||"normal"]),o=d=>{let f=!1;const p=g=>{const m=Ir(g.name,g.aliases);if(m.includes(d)){f=!0;for(const E of m)r.delete(E);return!1}return!0};return e=e.filter(p),t=t.filter(p),f},i=d=>{let f=!1;const p=g=>{if(g.middleware===d){f=!0;for(const m of Ir(g.name,g.aliases))r.delete(m);return!1}return!0};return e=e.filter(p),t=t.filter(p),f},l=d=>{var f;return e.forEach(p=>{d.add(p.middleware,{...p})}),t.forEach(p=>{d.addRelativeTo(p.middleware,{...p})}),(f=d.identifyOnResolve)==null||f.call(d,u.identifyOnResolve()),d},a=d=>{const f=[];return d.before.forEach(p=>{p.before.length===0&&p.after.length===0?f.push(p):f.push(...a(p))}
189),f.push(d),d.after.reverse().forEach(p=>{p.before.length===0&&p.after.length===0?f.push(p):f.push(...a(p))}),f},c=(d=!1)=>{const f=[],p=[],g={};return e.forEach(E=>{const w={...E,before:[],after:[]};for(const y of Ir(w.name,w.aliases))g[y]=w;f.push(w)}),t.forEach(E=>{const w={...E,before:[],after:[]};for(const y of Ir(w.name,w.aliases))g[y]=w;p.push(w)}),p.forEach(E=>{if(E.toMiddleware){const w=g[E.toMiddleware];if(w===void 0){if(d)return;throw new Error(`${E.toMiddleware} is not found when adding ${Gn(E.name,E.aliases)} middleware ${E.relation} ${E.toMiddleware}`)}E.relation==="after"&&w.after.push(E),E.relation==="before"&&w.before.push(E)}}),s(f).map(a).reduce((E,w)=>(E.push(...w),E),[])},u={add:(d,f={})=>{const{name:p,override:g,aliases:m}=f,E={step:"initialize",priority:"normal",middleware:d,...f},w=Ir(p,m);if(w.length>0){if(w.some(y=>r.has(y))){if(!g)throw new Error(`Duplicate middleware name '${Gn(p,m)}'`);for(const y of w){const x=e.findIndex(C=>{var T;return C.name===y||((T=C.aliases)==null?void 0:T.some(P=>P===y))});if(x===-1)continue;const S=e[x];if(S.step!==E.step||E.priority!==S.priority)throw new Error(`"${Gn(S.name,S.aliases)}" middleware with ${S.priority} priority in ${S.step} step cannot be overridden by "${Gn(p,m)}" middleware with ${E.priority} priority in ${E.step} step.`);e.splice(x,1)}}for(const y of w)r.add(y)}e.push(E)},addRelativeTo:(d,f)=>{const{name:p,override:g,aliases:m}=f,E={middleware:d,...f},w=Ir(p,m);if(w.length>0){if(w.some(y=>r.has(y))){if(!g)throw new Error(`Duplicate middleware name '${Gn(p,m)}'`);for(const y of w){const x=t.findIndex(C=>{var T;return C.name===y||((T=C.aliases)==null?void 0:T.some(P=>P===y))});if(x===-1)continue;const S=t[x];if(S.toMiddleware!==E.toMiddleware||S.relation!==E.relation)throw new Error(`"${Gn(S.name,S.aliases)}" middleware ${S.relation} "${S.toMiddleware}" middleware cannot be overridden by "${Gn(p,m)}" middleware ${E.relation} "${E.toMiddleware}" middleware.`);t.splice(x,1)}}for(const y of w)r.add(y)}t.push(E)},clone:()=>l(Al()),use:d=>{d.applyToStack(u)},remove:d=>typeof d=="string"?o(d):i(d),removeByTag:d=>{let f=!1;const p=g=>{const{tags:m,name:E,aliases:w}=g;if(m&&m.includes(d)){const y=Ir(E,w);for(const x of y)r.delete(x);return f=!0,!1}return!0};return e=e.filter(p),t=t.filter(p),f},concat:d=>{var p;const f=l(Al());return f.use(d),f.identifyOnResolve(n||f.identifyOnResolve()||(((p=d.identifyOnResolve)==null?void 0:p.call(d))??!1)),f},applyToStack:l,identify:()=>c(!0).map(d=>{const f=d.step??d.relation+" "+d.toMiddleware;return Gn(d.name,d.aliases)+" - "+f}),identifyOnResolve(d){return typeof d=="boolean"&&(n=d),n},resolve:(d,f)=>{for(const p of c().map(g=>g.middleware).reverse())d=p(d,f);return n&&console.log(u.identify()),d}};return u},Kg={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Yg={high:3,normal:2,low:1};class aO{constructor(t){b(this,"config");b(this,"middlewareStack",Al());b(this,"initConfig");b(this,"handlers");this.config=t;const{protocol:n,protocolSettings:r}=t;r&&typeof n=="function"&&(t.protocol=new n(r))}send(t,n,r){const s=typeof n!="function"?n:void 0,o=typeof n=="function"?n:r,i=s===void 0&&this.config.cacheMiddleware===!0;let l;if(i){this.handlers||(this.handlers=new WeakMap);const a=this.handlers;a.has(t.constructor)?l=a.get(t.constructor):(l=t.resolveMiddleware(this.middlewareStack,this.config,s),a.set(t.constructor,l))}else delete this.handlers,l=t.resolveMiddleware(this.middlewareStack,this.config,s);if(o)l(t).then(a=>o(null,a.output),a=>o(a)).catch(()=>{});else return l(t).then(a=>a.output)}destroy(){var t,n,r;(r=(n=(t=this.config)==null?void 0:t.requestHandler)==null?void 0:n.destroy)==null||r.call(n),delete this.handlers}}const du="***SensitiveInformation***";function Ld(e,t){if(t==null)return t;const n=ut.of(e);if(n.getMergedTraits().sensitive)return du;
189if(n.isListSchema()){if(!!n.getValueSchema().getMergedTraits().sensitive)return du}else if(n.isMapSchema()){if(!!n.getKeySchema().getMergedTraits().sensitive||!!n.getValueSchema().getMergedTraits().sensitive)return du}else if(n.isStructSchema()&&typeof t=="object"){const r=t,s={};for(const[o,i]of n.structIterator())r[o]!=null&&(s[o]=Ld(i,r[o]));return s}return t}class lE{constructor(){b(this,"middlewareStack",Al());b(this,"schema")}static classBuilder(){return new lO}resolveMiddlewareWithContext(t,n,r,{middlewareFn:s,clientName:o,commandName:i,inputFilterSensitiveLog:l,outputFilterSensitiveLog:a,smithyContext:c,additionalContext:u,CommandCtor:d}){for(const E of s.bind(this)(d,t,n,r))this.middlewareStack.use(E);const f=t.concat(this.middlewareStack),{logger:p}=n,g={logger:p,clientName:o,commandName:i,inputFilterSensitiveLog:l,outputFilterSensitiveLog:a,[Id]:{commandInstance:this,...c},...u},{requestHandler:m}=n;return f.resolve(E=>m.handle(E.request,r||{}),g)}}class lO{constructor(){b(this,"_init",()=>{});b(this,"_ep",{});b(this,"_middlewareFn",()=>[]);b(this,"_commandName","");b(this,"_clientName","");b(this,"_additionalContext",{});b(this,"_smithyContext",{});b(this,"_inputFilterSensitiveLog");b(this,"_outputFilterSensitiveLog");b(this,"_serializer",null);b(this,"_deserializer",null);b(this,"_operationSchema")}init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,n,r={}){return this._smithyContext={service:t,operation:n,...r},this}c(t={}){return this._additionalContext=t,this}n(t,n){return this._clientName=t,this._commandName=n,this}f(t=r=>r,n=r=>r){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=n,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){const t=this;let n;return n=class extends lE{constructor(...[s]){super();b(this,"input");b(this,"serialize",t._serializer);b(this,"deserialize",t._deserializer);this.input=s??{},t._init(this),this.schema=t._operationSchema}static getEndpointParameterInstructions(){return t._ep}resolveMiddleware(s,o,i){const l=t._operationSchema,a=(l==null?void 0:l[4])??(l==null?void 0:l.input),c=(l==null?void 0:l[5])??(l==null?void 0:l.output);return this.resolveMiddlewareWithContext(s,o,i,{CommandCtor:n,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(l?Ld.bind(null,a):u=>u),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(l?Ld.bind(null,c):u=>u),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}}}}class _s extends Error{constructor(n){super(n.message);b(this,"$fault");b(this,"$response");b(this,"$retryable");b(this,"$metadata");Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=n.name,this.$fault=n.$fault,this.$metadata=n.$metadata}static isInstance(n){if(!n)return!1;const r=n;return _s.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](n){if(!n)return!1;const r=n;return this===_s?_s.isInstance(n):_s.isInstance(n)?r.name&&this.name?this.prototype.isPrototypeOf(n)||r.name===this.name:this.prototype.isPrototypeOf(n):!1}}const Xg=(e,t={})=>{Object.entries(t).filter(([,r])=>r!==void 0).forEach(([r,s])=>{(e[r]==null||e[r]==="")&&(e[r]=s)});const n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e},cO=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},cE=Object.values(Ai),uO=e=>{const t=[];for(const n in Ai){const r=Ai[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}for(const[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};const r=n.algorithmId(),s=n.checksumConstructor();cE.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=s:e.checksumAlgorithms[r]=s,t.push(n)},checksumAlgorithms(){return t}}},dO=e=>{const t={};
189return e.checksumAlgorithms().forEach(n=>{const r=n.algorithmId();cE.includes(r)&&(t[r]=n.checksumConstructor())}),t},fO=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),pO=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t},hO=e=>Object.assign(uO(e),fO(e)),mO=e=>Object.assign(dO(e),pO(e));class uE{trace(){}debug(){}info(){}warn(){}error(){}}class gO{constructor(t=!1){b(this,"queryCompat");this.queryCompat=t}resolveRestContentType(t,n){const r=n.getMemberSchemas(),s=Object.values(r).find(o=>!!o.getMergedTraits().httpPayload);if(s){const o=s.getMergedTraits().mediaType;return o||(s.isStringSchema()?"text/plain":s.isBlobSchema()?"application/octet-stream":t)}else if(!n.isUnitSchema()&&Object.values(r).find(i=>{const{httpQuery:l,httpQueryParams:a,httpHeader:c,httpLabel:u,httpPrefixHeaders:d}=i.getMergedTraits();return!l&&!a&&!c&&!u&&d===void 0}))return t}async getErrorSchemaOrThrowBaseException(t,n,r,s,o,i){let l=n,a=t;t.includes("#")&&([l,a]=t.split("#"));const c={$metadata:o,$fault:r.statusCode<500?"client":"server"},u=H.for(l);try{return{errorSchema:(i==null?void 0:i(u,a))??u.getSchema(t),errorMetadata:c}}catch{s.message=s.message??s.Message??"UnknownError";const f=H.for("smithy.ts.sdk.synthetic."+l),p=f.getBaseException();if(p){const g=f.getErrorCtor(p)??Error;throw this.decorateServiceException(Object.assign(new g({name:a}),c),s)}throw this.decorateServiceException(Object.assign(new Error(a),c),s)}}decorateServiceException(t,n={}){var r,s,o,i;if(this.queryCompat){const l=t.Message??n.Message,a=Xg(t,n);l&&(a.message=l),a.Error={...a.Error,Type:(r=a.Error)==null?void 0:r.Type,Code:(s=a.Error)==null?void 0:s.Code,Message:((o=a.Error)==null?void 0:o.message)??((i=a.Error)==null?void 0:i.Message)??l};const c=a.$metadata.requestId;return c&&(a.RequestId=c),a}return Xg(t,n)}setQueryCompatError(t,n){var s;const r=(s=n.headers)==null?void 0:s["x-amzn-query-error"];if(t!==void 0&&r!=null){const[o,i]=r.split(";"),l=Object.entries(t),a={Code:o,Type:i};Object.assign(t,a);for(const[c,u]of l)a[c==="message"?"Message":c]=u;delete a.__type,t.Error=a}}queryCompatOutput(t,n){t.Error&&(n.Error=t.Error),t.Type&&(n.Type=t.Type),t.Code&&(n.Code=t.Code)}findQueryCompatibleError(t,n){try{return t.getSchema(n)}catch{return t.find(s=>{var o;return((o=ut.of(s).getMergedTraits().awsQueryError)==null?void 0:o[0])===n})}}}class gp{constructor(){b(this,"serdeContext")}setSerdeContext(t){this.serdeContext=t}}class yO{constructor(t,n){b(this,"from");b(this,"to");b(this,"keys");this.from=t,this.to=n,this.keys=new Set(Object.keys(this.from).filter(r=>r!=="__type"))}mark(t){this.keys.delete(t)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const t=this.keys.values().next().value,n=this.from[t];this.to.$unknown=[t,n]}}}function vO(e,t,n){if(n!=null&&n.source){const r=n.source;if(typeof t=="number"&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||r!==String(t)))return r.includes(".")?new cn(r,"bigDecimal"):BigInt(r)}return t}const wO=(e,t)=>jd(e,t).then(n=>((t==null?void 0:t.utf8Encoder)??up)(n)),xO=(e,t)=>wO(e,t).then(n=>{if(n.length)try{return JSON.parse(n)}catch(r){throw(r==null?void 0:r.name)==="SyntaxError"&&Object.defineProperty(r,"$responseBodyText",{value:n}),r}return{}}),EO=(e,t)=>{const n=(o,i)=>Object.keys(o).find(l=>l.toLowerCase()===i.toLowerCase()),r=o=>{let i=o;return typeof i=="number"&&(i=i.toString()),i.indexOf(",")>=0&&(i=i.split(",")[0]),i.indexOf(":")>=0&&(i=i.split(":")[0]),i.indexOf("#")>=0&&(i=i.split("#")[1]),i},s=n(e.headers,"x-amzn-errortype");if(s!==void 0)return r(e.headers[s]);if(t&&typeof t=="object"){const o=n(t,"code");if(o&&t[o]!==void 0)return r(t[o]);if(t.__type!==void 0)return r(t.__type)}};class SO extends gp{constructor(n){super();b(this,"settings");this.settings=n}async read(n,r){return this._read(n,typeof r=="string"?JSON.parse(r,vO):await xO(r,this.serdeContext))}readObject(n,r){return this._read(n,r)}_read(n,r){const s=r!==null&&typeof r=="object",o=ut.of(n);if(s){if(o.isStructSchema()){const l=r,a=o.isUnionSchema(),c={};let u;const{jsonName:d}=this.settings;d&&(u={});let f;a&&(f=new yO(l,c));for(const[p,g]of o.structIterator()){let m=p;d&&(m=g.getMergedTraits().jsonName??m,u[m]=p),a&&f.mark(m),l[m]!=null&&(c[p]=this._read(g,l[m]))}if(a)f.writeUnknown();else if(typeof l.__type=="string")for(const[p,g]of Object.entries(l)){const m=d?u[p]??p:p;m in c||(c[m]=g)}return c}if(Array.isArray(r)&&o.isListSchema()){const l=o.getValueSchema(),a=[],c=!!o.getMergedTraits().sparse;for(const u of r)(c||u!=null)&&a.push(this._read(l,u));return a}if(o.isMapSchema()){const l=o.getValueSchema(),a={},c=!!o.getMergedTraits().sparse;for(const[u,d]of Object.entries(r))(c||d!=null)&&(a[u]=this._read(l,d));return a}}if(o.isBlobSchema()&&typeof r=="string")return dc(r);const i=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&i)return i==="application/json"||i.endsWith("+json")?ur.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Bx(o,this.settings)){case 5:return P_(r);case 6:return __(r);case 7:return N_(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}
189if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof cn)return r;const l=r;return l.type==="bigDecimal"&&"string"in l?new cn(l.string,l.type):new cn(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema())if(s){const l=Array.isArray(r)?[]:{};for(const[a,c]of Object.entries(r))c instanceof cn?l[a]=c:l[a]=this._read(o,c);return l}else return structuredClone(r);return r}}const Jg="Î";class bO{constructor(){b(this,"values",new Map);b(this,"counter",0);b(this,"stage",0)}createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(t,n)=>{if(n instanceof cn){const r=`${Jg+"nv"+this.counter++}_`+n.string;return this.values.set(`"${r}"`,n.string),r}if(typeof n=="bigint"){const r=n.toString(),s=`${Jg+"b"+this.counter++}_`+r;return this.values.set(`"${s}"`,r),s}return n}}replaceInJson(t){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return t;for(const[n,r]of this.values)t=t.replace(n,r);return t}}class CO extends gp{constructor(n){super();b(this,"settings");b(this,"buffer");b(this,"useReplacer",!1);b(this,"rootSchema");this.settings=n}write(n,r){this.rootSchema=ut.of(n),this.buffer=this._write(this.rootSchema,r)}writeDiscriminatedDocument(n,r){this.write(n,r),typeof this.buffer=="object"&&(this.buffer.__type=ut.of(n).getName(!0))}flush(){const{rootSchema:n,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,n!=null&&n.isStructSchema()||n!=null&&n.isDocumentSchema()){if
189(!r)return JSON.stringify(this.buffer);const s=new bO;return s.replaceInJson(JSON.stringify(this.buffer,s.createReplacer(),0))}return this.buffer}_write(n,r,s){var l,a;const o=r!==null&&typeof r=="object",i=ut.of(n);if(o){if(i.isStructSchema()){const c=r,u={},{jsonName:d}=this.settings;let f;d&&(f={});for(const[p,g]of i.structIterator()){const m=this._write(g,c[p],i);if(m!==void 0){let E=p;d&&(E=g.getMergedTraits().jsonName??p,f[p]=E),u[E]=m}}if(i.isUnionSchema()&&Object.keys(u).length===0){const{$unknown:p}=c;if(Array.isArray(p)){const[g,m]=p;u[g]=this._write(15,m)}}else if(typeof c.__type=="string")for(const[p,g]of Object.entries(c)){const m=d?f[p]??p:p;m in u||(u[m]=this._write(15,g))}return u}if(Array.isArray(r)&&i.isListSchema()){const c=i.getValueSchema(),u=[],d=!!i.getMergedTraits().sparse;for(const f of r)(d||f!=null)&&u.push(this._write(c,f));return u}if(i.isMapSchema()){const c=i.getValueSchema(),u={},d=!!i.getMergedTraits().sparse;for(const[f,p]of Object.entries(r))(d||p!=null)&&(u[f]=this._write(c,p));return u}if(r instanceof Uint8Array&&(i.isBlobSchema()||i.isDocumentSchema()))return i===this.rootSchema?r:(((l=this.serdeContext)==null?void 0:l.base64Encoder)??Tl)(r);if(r instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema()))switch(Bx(i,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return C_(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof cn&&(this.useReplacer=!0)}if(!(r===null&&(s!=null&&s.isStructSchema()))){if(i.isStringSchema()){if
189(typeof r>"u"&&i.isIdempotencyToken())return Hx();const c=i.getMergedTraits().mediaType;return r!=null&&c&&(c==="application/json"||c.endsWith("+json"))?ur.from(r):r}if(typeof r=="number"&&i.isNumericSchema())return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&i.isBlobSchema())return i===this.rootSchema?r:(((a=this.serdeContext)==null?void 0:a.base64Encoder)??Tl)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),i.isDocumentSchema())if(o){const c=Array.isArray(r)?[]:{};for(const[u,d]of Object.entries(r))d instanceof cn?(this.useReplacer=!0,c[u]=d):c[u]=this._write(i,d);return c}else return structuredClone(r);return r}}}class TO extends gp{constructor(n){super();b(this,"settings");this.settings=n}createSerializer(){const n=new CO(this.settings);return n.setSerdeContext(this.serdeContext),n}createDeserializer(){const n=new SO(this.settings);return n.setSerdeContext(this.serdeContext),n}}class PO extends H_{constructor({defaultNamespace:n,serviceTarget:r,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:n});b(this,"serializer");b(this,"deserializer");b(this,"serviceTarget");b(this,"codec");b(this,"mixin");b(this,"awsQueryCompatible");
189this.serviceTarget=r,this.codec=o??new TO({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!s,this.mixin=new gO(this.awsQueryCompatible)}async serializeRequest(n,r,s){const o=await super.serializeRequest(n,r,s);return o.path.endsWith("/")||(o.path+="/"),Object.assign(o.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${n.name}`}),this.awsQueryCompatible&&(o.headers["x-amzn-query-mode"]="true"),(Ba(n.input)==="unit"||!o.body)&&(o.body="{}"),o}getPayloadCodec(){return this.codec}async handleError(n,r,s,o,i){this.awsQueryCompatible&&this.mixin.setQueryCompatError(o,s);const l=EO(s,o)??"Unknown",{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,s,o,i,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),u=ut.of(a),d=o.message??o.Message??"Unknown",f=H.for(a[1]).getErrorCtor(a)??Error,p=new f(d),g={};for(const[m,E]of u.structIterator())o[m]!=null&&(g[m]=this.codec.createDeserializer().readObject(E,o[m]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(o,g),this.mixin.decorateServiceException(Object.assign(p,c,{$fault:u.getMergedTraits().error,message:d},g),o)}}class RO extends PO{constructor({defaultNamespace:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:s}){super({defaultNamespace:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}const AO=/\d{12}\.ddb/;async function kO(e,t,n){var o,i,l,a,c,u,d;const r=n.request;if(((o=r==null?void 0:r.headers)==null?void 0:o["smithy-protocol"])==="rpc-v2-cbor"&&Zt(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){const f=await t.retryStrategy();typeof f.acquireInitialRetryToken=="function"?(l=(i=f.constructor)==null?void 0:i.name)!=null&&l.includes("Adaptive")?Zt(e,"RETRY_MODE_ADAPTIVE","F"):Zt(e,"RETRY_MODE_STANDARD","E"):Zt(e,"RETRY_MODE_LEGACY","D")}if(typeof t.accountIdEndpointMode=="function"){const f=e.endpointV2;switch(String((a=f==null?void 0:f.url)==null?void 0:a.hostname).match(AO)&&Zt(e,"ACCOUNT_ID_ENDPOINT","O"),await((c=t.accountIdEndpointMode)==null?void 0:c.call(t))){case"disabled":Zt(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Zt(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Zt(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const s=(d=(u=e.__smithy_context)==null?void 0:u.selectedHttpAuthScheme)==null?void 0:d.identity;if(s!=null&&s.$source){const f=s;f.accountId&&Zt(e,"RESOLVED_ACCOUNT_ID","T");for(const[p,g]of Object.entries(f.$source??{}))Zt(e,p,g)}}const Zg="user-agent",fu="x-amz-user-agent",ey=" ",pu="/",_O=/[^!$%&'*+\-.^_`|~\w]/g,NO=/[^!$%&'*+\-.^_`|~\w#]/g,ty="-",OO=1024;function IO(e){let t="";for(const n in e){const r=e[n];if(t.length+r.length+1<=OO){t.length?t+=","+r:t+=r;continue}break}return t}const MO=e=>(t,n)=>async r=>{var p,g,m,E;const{request:s}=r;if(!xt.isInstance(s))return t(r);const{headers:o}=s,i=((p=n==null?void 0:n.userAgent)==null?void 0:p.map(ba))||[],l=(await e.defaultUserAgentProvider()).map(ba);await kO(n,e,r);const a=n;l.push(`m/${IO(Object.assign({},(g=n.__smithy_context)==null?void 0:g.features,(m=a.__aws_sdk_context)==null?void 0:m.features))}`);const c=((E=e==null?void 0:e.customUserAgent)==null?void 0:E.map(ba))||[],u=await e.userAgentAppId();u&&l.push(ba(["app",`${u}`]));const d=[].concat([...l,...i,...c]).join(ey),f=[...l.filter(w=>w.startsWith("aws-sdk-")),...c].join(ey);return e.runtime!=="browser"?(f&&(o[fu]=o[fu]?`${o[Zg]} ${f}`:f),o[Zg]=d):o[fu]=d,t({...r,request:s})},ba=e=>{var i;const t=e[0].split(pu).map(l=>l.replace(_O,ty)).join(pu),n=(i=e[1])==null?void 0:i.replace(NO,ty),r=t.indexOf(pu),s=t.substring(0,r);let o=t.substring(r+1);return s==="api"&&(o=o.toLowerCase()),[s,o,n].filter(l=>l&&l.length>0).reduce((l,a,c)=>{switch(c){case 0:return a;case 1:return`${l}/${a}`;default:return`${l}#${a}`}},"")},jO={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},DO=e=>({applyToStack:t=>{t.add(MO(e),jO)}}),$O=!1,LO=!1,ny=new Set,FO=(e,t=qi)=>{if(!ny.has(e)&&!t(e))if(e==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else ny.add(e)},dE=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),zO=e=>dE(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,UO=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{const r=typeof t=="function"?await t():t,s=zO(r);return FO(s),s},useFipsEndpoint:async()=>{const r=typeof t=="string"?t:await t();return dE(r)?!0:typeof n!="function"?Promise.resolve(!!n):n()}})},ry="content-length";function HO(e){return t=>async n=>{const r=n.request;if(xt.isInstance(r)){const{body:s,headers:o}=r;if(s&&Object.keys(o).map(i=>i.toLowerCase()).indexOf(ry)===-1)try{const i=e(s);r.headers={...r.headers,[ry]:String(i)}}catch{}}return t({...n,request:r})}}const BO={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},VO=e=>({applyToStack:t=>{t.add(HO(e.bodyLengthChecker),BO)}}),WO=async e=>{const t=(e==null?void 0:e.Bucket)||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),YO(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!KO(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP
189=!0),e},QO=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,GO=/(\d+\.){3}\d+/,qO=/\.\./,KO=e=>QO.test(e)&&!GO.test(e)&&!qO.test(e),YO=e=>{const[t,n,r,,,s]=e.split(":"),o=t==="arn"&&e.split(":").length>=6,i=!!(o&&n&&r&&s);if(o&&!i)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return i},XO=(e,t,n,r=!1)=>{const s=async()=>{let o;if(r){const i=n.clientContextParams;o=(i==null?void 0:i[e])??n[e]??n[t]}else o=n[e]??n[t];return typeof o=="function"?o():o};return e==="credentialScope"||t==="CredentialScope"?async()=>{const o=typeof n.credentials=="function"?await n.credentials():n.credentials;return(o==null?void 0:o.credentialScope)??(o==null?void 0:o.CredentialScope)}:e==="accountId"||t==="AccountId"?async()=>{const o=typeof n.credentials=="function"?await n.credentials():n.credentials;return(o==null?void 0:o.accountId)??(o==null?void 0:o.AccountId)}:e==="endpoint"||t==="endpoint"?async()=>{if(n.isCustomEndpoint===!1)return;const o=await s();if(o&&typeof o=="object"){if("url"in o)return o.url.href;if("hostname"in o){const{protocol:i,hostname:l,port:a,path:c}=o;return`${i}//${l}${a?":"+a:""}${c}`}}return o}:s},fE=async e=>{},pE=e=>typeof e=="object"?"url"in e?Rl(e.url):e:Rl(e),JO=async(e,t,n,r)=>{if(!n.isCustomEndpoint){let i;n.serviceConfiguredEndpoint?i=await n.serviceConfiguredEndpoint():i=await fE(n.serviceId),i&&(n.endpoint=()=>Promise.resolve(pE(i)),n.isCustomEndpoint=!0)}const s=await ZO(e,t,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return n.endpointProvider(s,r)},ZO=async(e,t,n)=>{var o;const r={},s=((o=t==null?void 0:t.getEndpointParameterInstructions)==null?void 0:o.call(t))||{};for(const[i,l]of Object.entries(s))switch(l.type){case"staticContextParams":r[i]=l.value;break;case"contextParams":r[i]=e[l.name];break;case"clientContextParams":case"builtInParams":r[i]=await XO(l.name,i,n,l.type!=="builtInParams")();break;case"operationContextParams":r[i]=l.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(l))}return Object.keys(s).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()==="s3"&&await WO(r),r},eI=({config:e,instructions:t})=>(n,r)=>async s=>{var l,a,c;e.isCustomEndpoint&&B_(r,"ENDPOINT_OVERRIDE","N");const o=await JO(s.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=o,r.authSchemes=(l=o.properties)==null?void 0:l.authSchemes;const i=(a=r.authSchemes)==null?void 0:a[0];if(i){r.signing_region=i.signingRegion,r.signing_service=i.signingName;const u=wo(r),d=(c=u==null?void 0:u.selectedHttpAuthScheme)==null?void 0:c.httpAuthOption;d&&(d.signingProperties=Object.assign(d.signingProperties||{},{signing_region:i.signingRegion,signingRegion:i.signingRegion,signing_service:i.signingName,signingName:i.signingName,signingRegionSet:i.signingRegionSet},i.properties))}return n({...s})},tI={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Qk.name},nI=(e,t)=>({applyToStack:n=>{n.addRelativeTo(eI({config:e,instructions:t}),tI)}}),rI=e=>{const t=e.tls??!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:s}=e,o=n!=null?async()=>pE(await Rn(n)()):void 0,l=Object.assign(e,{endpoint:o,tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:Rn(r??!1),useFipsEndpoint:Rn(s??!1)});let a;return l.serviceConfiguredEndpoint=async()=>(e.serviceId&&!a&&(a=fE(e.serviceId)),a),l};var co;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(co||(co={}));const kl=3,sI=co.STANDARD,oI=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],iI=["TimeoutError","RequestTimeout","RequestTimeoutException"],aI=[500,502,503,504],lI=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],cI=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],uI=e=>(e==null?void 0:e.$retryable)!==void 0,dI=e=>{var t;return(t=e.$metadata)==null?void 0:t.clockSkewCorrected}
189,fI=e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return e&&e instanceof TypeError?t.has(e.message):!1},hE=e=>{var t,n;return((t=e.$metadata)==null?void 0:t.httpStatusCode)===429||oI.includes(e.name)||((n=e.$retryable)==null?void 0:n.throttling)==!0},yp=(e,t=0)=>{var n;return uI(e)||dI(e)||iI.includes(e.name)||lI.includes((e==null?void 0:e.code)||"")||cI.includes((e==null?void 0:e.code)||"")||aI.includes(((n=e.$metadata)==null?void 0:n.httpStatusCode)||0)||fI(e)||e.cause!==void 0&&t<=10&&yp(e.cause,t+1)},pI=e=>{var t;if(((t=e.$metadata)==null?void 0:t.httpStatusCode)!==void 0){const n=e.$metadata.httpStatusCode;return 500<=n&&n<=599&&!yp(e)}return!1},Nl=class Nl{constructor(t){b(this,"beta");b(this,"minCapacity");b(this,"minFillRate");b(this,"scaleConstant");b(this,"smooth");b(this,"currentCapacity",0);b(this,"enabled",!1);b(this,"lastMaxRate",0);b(this,"measuredTxRate",0);b(this,"requestCount",0);b(this,"fillRate");b(this,"lastThrottleTime");b(this,"lastTimestamp",0);b(this,"lastTxRateBucket");b(this,"maxCapacity");b(this,"timeWindow",0);this.beta=(t==null?void 0:t.beta)??.7,this.minCapacity=(t==null?void 0:t.minCapacity)??1,this.minFillRate=(t==null?void 0:t.minFillRate)??.5,this.scaleConstant=(t==null?void 0:t.scaleConstant)??.4,this.smooth=(t==null?void 0:t.smooth)??.8;const n=this.getCurrentTimeInSeconds();this.lastThrottleTime=n,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){const n=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>Nl.setTimeoutFn(r,n))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){const t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}const n=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+n),this.lastTimestamp=t}updateClientSendingRate(t){let n;if(this.updateMeasuredRate(),hE(t)){const s=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=s,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(s),this.enableTokenBucket()}else this.calculateTimeWindow(),n=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}
189cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const t=this.getCurrentTimeInSeconds(),n=Math.floor(t*2)/2;if(this.requestCount++,n>this.lastTxRateBucket){const r=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}};b(Nl,"setTimeoutFn",setTimeout);let Fd=Nl;const zd=100,mE=20*1e3,hI=500,sy=500,mI=5,gI=10,yI=1,vI="amz-sdk-invocation-id",wI="amz-sdk-request",xI=()=>{let e=zd;return{computeNextBackoffDelay:r=>Math.floor(Math.min(mE,Math.random()*2**r*e)),setDelayBase:r=>{e=r}}},oy=({retryDelay:e,retryCount:t,retryCost:n})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(mE,e),getRetryCost:()=>n});class gE{constructor(t){b(this,"maxAttempts");b(this,"mode",co.STANDARD);b(this,"capacity",sy);b(this,"retryBackoffStrategy",xI());b(this,"maxAttemptsProvider");this.maxAttempts=t,this.maxAttemptsProvider=typeof t=="function"?t:async()=>t}async acquireInitialRetryToken(t){return oy({retryDelay:zd,retryCount:0})}async refreshRetryTokenForRetry(t,n){const r=await this.getMaxAttempts();if(this.shouldRetry(t,n,r)){const s=n.errorType;this.retryBackoffStrategy.setDelayBase(s==="THROTTLING"?hI:zd);const o=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),i=n.retryAfterHint?Math.max(n.retryAfterHint.getTime()-Date.now()||0,o):o,l=this.getCapacityCost(s);return this.capacity-=l,oy({retryDelay:i,retryCount:t.getRetryCount()+1,retryCost:l})}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.max(sy,this.capacity+(t.getRetryCost()??yI))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${kl}`),kl}}shouldRetry(t,n,r){return t.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(n.errorType)&&this.isRetryableError(n.errorType)}getCapacityCost(t){return t==="TRANSIENT"?gI:mI}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}}class EI{constructor(t,n){b(this,"maxAttemptsProvider");b(this,"rateLimiter");b(this,"standardRetryStrategy");b(this,"mode",co.ADAPTIVE);this.maxAttemptsProvider=t;const{rateLimiter:r}=n??{};this.rateLimiter=r??new Fd,this.standardRetryStrategy=new gE(t)}async acquireInitialRetryToken(t){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(t)}async refreshRetryTokenForRetry(t,n){return this.rateLimiter.updateClientSendingRate(n),this.standardRetryStrategy.refreshRetryTokenForRetry(t,n)}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t)}}const SI=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),bI=e=>{const{retryStrategy:t,retryMode:n,maxAttempts:r}=e,s=Rn(r??kl);return Object.assign(e,{maxAttempts:s,retryStrategy:async()=>t||(await Rn(n)()===co.ADAPTIVE?new EI(s):new gE(s))})},CI=e=>(e==null?void 0:e.body)instanceof ReadableStream,TI=e=>(t,n)=>async r=>{var i;let s=await e.retryStrategy();const o=await e.maxAttempts();if(PI(s)){s=s;let l=await s.acquireInitialRetryToken(n.partition_id),a=new Error,c=0,u=0;const{request:d}=r,f=xt.isInstance(d);for(f&&(d.headers[vI]=Hx());;)try{f&&(d.headers[wI]=`attempt=${c+1}; max=${o}`);const{response:p,output:g}=await t(r);return s.recordSuccess(l),g.$metadata.attempts=c+1,g.$metadata.totalRetryDelay=u,{response:p,output:g}}catch(p){const g=RI(p);if(a=SI(p),f&&CI(d))throw(i=n.logger instanceof uE?console:n.logger)==null||i.warn("An error was encountered in a non-retryable streaming request."),a;try{l=await s.refreshRetryTokenForRetry(l,g)}catch{throw a.$metadata||(a.$metadata={}),a.$metadata.attempts=c+1,a.$metadata.totalRetryDelay=u,a}c=l.getRetryCount();const m=l.getRetryDelay();u+=m,await new Promise(E=>setTimeout(E,m))}}else return s=s,s!=null&&s.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(t,r)},PI=e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u",RI=e=>{const t={error:e,errorType:AI(e)},n=NI(e.$response);return n&&(t.retryAfterHint=n),t},AI=e=>hE(e)?"THROTTLING":yp(e)?"TRANSIENT":pI(e)?"SERVER_ERROR":"CLIENT_ERROR",kI={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},_I=e=>({applyToStack:t=>{t.add(TI(e),kI)}}),NI=e=>{if(!ao.isInstance(e))return;const t=Object.keys(e.headers).find(o=>o.toLowerCase()==="retry-after");if(!t)return;const n=e.headers[t],r=Number(n);return Number.isNaN(r)?new Date(n):new Date(r*1e3)},OI=async(e,t,n)=>({operation:wo(t).operation,region:await Rn(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function II(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-idp",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function ue(e){return{schemeId:"smithy.api#noAuth"}}const MI=e=>{const t=[];switch(e.operation){case"AssociateSoftwareToken":{t.push(ue());break}case"ChangePassword":{t.push(ue());break}case"CompleteWebAuthnRegistration":{t.push(ue());break}case"ConfirmDevice":{t.push(ue());break}case"ConfirmForgotPassword":{t.push(ue());break}case"ConfirmSignUp":{t.push(ue());break}case"DeleteUser":{t.push(ue());break}case"DeleteUserAttributes":{t.push(ue());break}case"DeleteWebAuthnCredential":{t.push(ue());break}case"ForgetDevice":{t.push(ue());break}case"ForgotPassword":{t.push(ue());break}case"GetDevice":{t.push(ue());break}case"GetTokensFromRefreshToken":{t.push(ue());break}case"GetUser":{t.push(ue());break}case"GetUserAttributeVerificationCode":{t.push(ue());break}case"GetUserAuthFactors":{t.push(ue());break}case"GlobalSignOut":{t.push(ue());break}case"InitiateAuth":{t.push(ue());break}case"ListDevices":{t.push(ue());break}case"ListWebAuthnCredentials":{t.push(ue());break}case"ResendConfirmationCode":{t.push(ue());break}case"RespondToAuthChallenge":{t.push(ue());break}case"RevokeToken":{t.push(ue());break}case"SetUserMFAPreference":{t.push(ue());break}case"SetUserSettings":{t.push(ue());break}case"SignUp":{t.push(ue());break}case"StartWebAuthnRegistration":{t.push(ue());break}case"UpdateAuthEventFeedback":{t.push(ue());break}case"UpdateDeviceStatus":{t.push(ue());break}case"UpdateUserAttributes":{t.push(ue());break}case"VerifySoftwareToken":{t.push(ue());break}case"VerifyUserAttribute":{t.push(ue());break}default:t.push(II(e))}return t},jI=e=>{const t=rO(e);return Object.assign(t,{authSchemePreference:Rn(e.authSchemePreference??[])})},DI=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"cognito-idp"}),$I={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},LI="3.985.0",FI={version:LI},zI=e=>new TextEncoder().encode(e);var UI=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:zI;function Ii(e){return e instanceof Uint8Array?e:typeof e=="string"?UI(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function Ud(e){return typeof e=="string"?e.length===0:e.byteLength===0}var yE={name:"SHA-256"},iy={name:"HMAC",hash:yE},HI=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]);const BI={};function Wa(){return typeof window<"u"?window:typeof self<"u"?self:BI}var VI=function(){function e(t){this.toHash=new Uint8Array(0),this.secret=t,this.reset()}return e.prototype.update=function(t){if(!Ud(t)){var n=Ii(t),r=new Uint8Array(this.toHash.byteLength+n.byteLength);r.set(this.toHash,0),r.set(n,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(n){return Wa().crypto.subtle.sign(iy,n,t.toHash).then(function(r){return new Uint8Array(r)})}):Ud(this.toHash)?Promise.resolve(HI):Promise.resolve().then(function(){return Wa().crypto.subtle.digest(yE,t.toHash)}).then(function(n){return Promise.resolve(new Uint8Array(n))})},e.prototype.reset=function(){var t=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(n,r){Wa().crypto.subtle.importKey("raw",Ii(t.secret),iy,!1,["sign"]).then(n,r)}),this.key.catch(function(){}))},e}(),ay=function(){return ay=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ay.apply(this,arguments)};function O$(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 s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function WI(e,t,n,r){function s(o){return o instanceof n?o:new n(function(i){i(o)})}
189return new(n||(n=Promise))(function(o,i){function l(u){try{c(r.next(u))}catch(d){i(d)}}function a(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?o(u.value):s(u.value).then(l,a)}c((r=r.apply(e,t||[])).next())})}function QI(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,s,o,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(c){return function(u){return a([c,u])}}function a(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(n=0)),n;)try{if(r=1,s&&(o=c[0]&2?s.return:c[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,c[1])).done)return o;switch(s=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,s=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],s=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function I$(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,o;r<s;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 Rt=64,GI=32,qI=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),KI=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],YI=Math.pow(2,53)-1,Qa=function(){function e(){this.state=Int32Array.from(KI),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=t.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>YI)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=t[n++],r--,this.bufferLength===Rt&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%Rt>=Rt-8){for(var s=this.bufferLength;s<Rt;s++)n.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(var s=this.bufferLength;s<Rt-8;s++)n.setUint8(s,0);n.setUint32(Rt-8,Math.floor(t/4294967296),!0),n.setUint32(Rt-4,t),this.hashBuffer(),this.finished=!0}for(var o=new Uint8Array(GI),s=0;s<8;s++)o[s*4]=this.state[s]>>>24&255,o[s*4+1]=this.state[s]>>>16&255,o[s*4+2]=this.state[s]>>>8&255,o[s*4+3]=this.state[s]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,r=t.state,s=r[0],o=r[1],i=r[2],l=r[3],a=r[4],c=r[5],u=r[6],d=r[7],f=0;f<Rt;f++){if(f<16)this.temp[f]=(n[f*4]&255)<<24|(n[f*4+1]&255)<<16|(n[f*4+2]&255)<<8|n[f*4+3]&255;else{var p=this.temp[f-2],g=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10;p=this.temp[f-15];var m=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3;this.temp[f]=(g+this.temp[f-7]|0)+(m+this.temp[f-16]|0)}var E=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&c^~a&u)|0)+(d+(qI[f]+this.temp[f]|0)|0)|0,w=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&o^s&i^o&i)|0;d=u,u=c,c=a,a=l+E|0,l=i,i=o,o=s,s=E+w|0}r[0]+=s,r[1]+=o,r[2]+=i,r[3]+=l,r[4]+=a,r[5]+=c,r[6]+=u,r[7]+=d},e}(),XI=function(){function e(t){this.secret=t,this.hash=new Qa,this.reset()}return e.prototype.update=function(t){if(!(Ud(t)||this.error))try{this.hash.update(Ii(t))}catch(n){this.error=n}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return WI(this,void 0,void 0,function(){return QI(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new Qa,this.secret){this.outer=new Qa;var t=JI(this.secret),n=new Uint8Array(Rt);n.set(t);for(var r=0;r<Rt;r++)t[r]^=54,n[r]^=92;this.hash.update(t),this.outer.update(n);for(var r=0;r<t.byteLength;r++)t[r]=0}},e}();function JI(e){var t=Ii(e);if(t.byteLength>Rt){var n=new Qa;n.update(t),t=n.digest()}
189var r=new Uint8Array(Rt);return r.set(t),r}var ZI=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function eM(e){if(tM(e)&&typeof e.crypto.subtle=="object"){var t=e.crypto.subtle;return nM(t)}return!1}function tM(e){if(typeof e=="object"&&typeof e.crypto=="object"){var t=e.crypto.getRandomValues;return typeof t=="function"}return!1}function nM(e){return e&&ZI.every(function(t){return typeof e[t]=="function"})}var rM=function(){function e(t){eM(Wa())?this.hash=new VI(t):this.hash=new XI(t)}return e.prototype.update=function(t,n){this.hash.update(Ii(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();const sM=({serviceId:e,clientVersion:t})=>async n=>{var p,g,m;const r=typeof window<"u"?window.navigator:void 0,s=(r==null?void 0:r.userAgent)??"",o=((p=r==null?void 0:r.userAgentData)==null?void 0:p.platform)??ly.os(s)??"other",i=void 0,l=((g=r==null?void 0:r.userAgentData)==null?void 0:g.brands)??[],a=l[l.length-1],c=(a==null?void 0:a.brand)??ly.browser(s)??"unknown",u=(a==null?void 0:a.version)??"unknown",d=[["aws-sdk-js",t],["ua","2.1"],[`os/${o}`,i],["lang/js"],["md/browser",`${c}_${u}`]];e&&d.push([`api/${e}`,t]);const f=await((m=n==null?void 0:n.userAgentAppId)==null?void 0:m.call(n));return f&&d.push([`app/${f}`]),d},ly={os(e){if(/iPhone|iPad|iPod/.test(e))return"iOS";if(/Macintosh|Mac OS X/.test(e))return"macOS";if(/Windows NT/.test(e))return"Windows";if(/Android/.test(e))return"Android";if(/Linux/.test(e))return"Linux"},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return"Microsoft Edge";if(/Firefox\//.test(e))return"Firefox";if(/Chrome\//.test(e))return"Chrome";if(/Safari\//.test(e))return"Safari"}},oM=e=>()=>Promise.reject(e),iM=["in-region","cross-region","mobile","standard","legacy"],aM=({defaultsMode:e}={})=>NN(async()=>{const t=typeof e=="function"?await e():e;switch(t==null?void 0:t.toLowerCase()){case"auto":return Promise.resolve(lM()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t==null?void 0:t.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${iM.join(", ")}, got ${t}`)}}),lM=()=>{var t;const e=window==null?void 0:window.navigator;if(e!=null&&e.connection){const{effectiveType:n,rtt:r,downlink:s}=e==null?void 0:e.connection;if(typeof n=="string"&&n!=="4g"||Number(r)>100||Number(s)<10)return!0}return((t=e==null?void 0:e.userAgentData)==null?void 0:t.mobile)||typeof(e==null?void 0:e.maxTouchPoints)=="number"&&(e==null?void 0:e.maxTouchPoints)>1},vE=(e,t=!1)=>{if(t){for(const n of e.split("."))if(!vE(n))return!1;return!0}return!(!qi(e)||e.length<3||e.length>63||e!==e.toLowerCase()||pp(e))},cy=":",cM="/",uM=e=>{const t=e.split(cy);if(t.length<6)return null;const[n,r,s,o,i,...l]=t;if(n!=="arn"||r===""||s===""||l.join(cy)==="")return null;const a=l.map(c=>c.split(cM)).flat();return{partition:r,service:s,region:o,accountId:i,resourceId:a}},dM=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supp
189ortsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],fM={partitions:dM};let pM=fM;const hM=e=>{const{partitions:t}=pM;for(const r of t){const{regions:s,outputs:o}=r;for(const[i,l]of Object.entries(s))if(i===e)return{...o,...l}}for(const r of t){const{regionRegex:s,outputs:o}=r;if(new RegExp(s).test(e))return{...o}}const n=t.find(r=>r.id==="aws");if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}},wE={isVirtualHostableS3Bucket:vE,parseArn:uM,partition:hM};Ni.aws=wE;const xE="required",Ke="fn",Ye="argv",xo="ref",uy=!0,dy="isSet",Mi="booleanEquals",ms="error",en="endpoint",vn="tree",vp="PartitionResult",wp="getAttr",Do="stringEquals",fy={[xE]:!1,type:"string"},py={[xE]:!0,default:!1,type:"boolean"},hy={[xo]:"Endpoint"},EE={[Ke]:Mi,[Ye]:[{[xo]:"UseFIPS"},!0]},SE={[Ke]:Mi,[Ye]:[{[xo]:"UseDualStack"},!0]},_e={},Bo={[xo]:"Region"},my={[Ke]:wp,[Ye]:[{[xo]:vp},"supportsFIPS"]},bE={[xo]:vp},gy={[Ke]:Mi,[Ye]:[!0,{[Ke]:wp,[Ye]:[bE,"supportsDualStack"]}]},yy=[EE],vy=[SE],wy=[Bo],mM={parameters:{Region:fy,UseDualStack:py,UseFIPS:py,Endpoint:fy},rules:[{conditions:[{[Ke]:dy,[Ye]:[hy]}],rules:[{conditions:yy,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ms},{conditions:vy,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ms},{endpoint:{url:hy,properties:_e,headers:_e},type:en}],type:vn},{conditions:[{[Ke]:dy,[Ye]:wy}],rules:[{conditions:[{[Ke]:"aws.partition",[Ye]:wy,assign:vp}],rules:[{conditions:[EE,SE],rules:[{conditions:[{[Ke]:Mi,[Ye]:[uy,my]},gy],rules:[{conditions:[{[Ke]:Do,[Ye]:[Bo,"us-east-1"]}],endpoint:{url:"https://cognito-idp-fips.us-east-1.amazonaws.com",properties:_e,headers:_e},type:en},{conditions:[{[Ke]:Do,[Ye]:[Bo,"us-east-2"]}],endpoint:{url:"https://cognito-idp-fips.us-east-2.amazonaws.com",properties:_e,headers:_e},type:en},{conditions:[{[Ke]:Do,[Ye]:[Bo,"us-west-1"]}],endpoint:{url:"https://cognito-idp-fips.us-west-1.amazonaws.com",properties:_e,headers:_e},type:en},{conditions:[{[Ke]:Do,[Ye]:[Bo,"us-west-2"]}],endpoint:{url:"https://cognito-idp-fips.us-west-2.amazonaws.com",properties:_e,headers:_e},type:en},{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:_e,headers:_e},type:en}],type:vn},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ms}],type:vn},{conditions:yy,rules:[{conditions:[{[Ke]:Mi,[Ye]:[my,uy]}],rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}",properties:_e,headers:_e},type:en}],type:vn},{error:"FIPS is enabled but this partition does not support FIPS",type:ms}],type:vn},{conditions:vy,rules:[{conditions:[gy],rules:[{conditions:[{[Ke]:Do,[Ye]:["aws",{[Ke]:wp,[Ye]:[bE,"name"]}]}],endpoint:{url:"https://cognito-idp.{Region}.amazonaws.com",properties:_e,headers:_e},type:en},{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:_e,headers:_e},type:en}],type:vn},{error:"DualStack is enabled but this partition does not support DualStack",type:ms}],type:vn},{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}",properties:_e,headers:_e},type:en}],type:vn}],type:vn},{error:"Invalid Configuration: Missing Region",type:ms}]},gM=mM,yM=new Z_({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),vM=(e,t={})=>yM.get(e,()=>vN(gM,{endpointParams:e,logger:t.logger}));Ni.aws=wE;const wM=e=>({apiVersion:"2016-04-18",base64Decoder:(e==null?void 0:e.base64Decoder)??dc,base64Encoder:(e==null?void 0:e.base64Encoder)??Tl,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??vM,extensions:(e==null?void 0:e.extensions)??[],httpAuthSchemeProvider:(e==null?void 0:e.httpAuthSchemeProvider)??MI,httpAuthSchemes:(e==null?void 0:e.httpAuthSchemes)??[{schemeId:"aws.auth#sigv4",identityProvi
189der:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new _N},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new W_}],logger:(e==null?void 0:e.logger)??new uE,protocol:(e==null?void 0:e.protocol)??RO,protocolSettings:(e==null?void 0:e.protocolSettings)??{defaultNamespace:"com.amazonaws.cognitoidentityprovider",xmlNamespace:"http://cognito-idp.amazonaws.com/doc/2016-04-18/",version:"2016-04-18",serviceTarget:"AWSCognitoIdentityProviderService"},serviceId:(e==null?void 0:e.serviceId)??"Cognito Identity Provider",urlParser:(e==null?void 0:e.urlParser)??Rl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??lo,utf8Encoder:(e==null?void 0:e.utf8Encoder)??up}),xM=e=>{const t=aM(e),n=()=>t().then(cO),r=wM(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??iO,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(s=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??sM({serviceId:r.serviceId,clientVersion:FI.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??kl,region:(e==null?void 0:e.region)??oM("Region is missing"),requestHandler:dp.create((e==null?void 0:e.requestHandler)??n),retryMode:(e==null?void 0:e.retryMode)??(async()=>(await n()).retryMode||sI),sha256:(e==null?void 0:e.sha256)??rM,streamCollector:(e==null?void 0:e.streamCollector)??r_,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(()=>Promise.resolve($O)),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(()=>Promise.resolve(LO))}},EM=e=>({setRegion(t){e.region=t},region(){return e.region}}),SM=e=>({region:e.region()}),bM=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(s){const o=t.findIndex(i=>i.schemeId===s.schemeId);o===-1?t.push(s):t.splice(o,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){n=s},httpAuthSchemeProvider(){return n},setCredentials(s){r=s},credentials(){return r}}},CM=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),TM=(e,t)=>{const n=Object.assign(EM(e),hO(e),kk(e),bM(e));return t.forEach(r=>r.configure(n)),Object.assign(e,SM(n),mO(n),_k(n),CM(n))};class PM extends aO{constructor(...[n]){const r=xM(n||{});super(r);b(this,"config");this.initConfig=r;const s=DI(r),o=J_(s),i=bI(o),l=UO(i),a=l,c=rI(a),u=jI(c),d=TM(u,(n==null?void 0:n.extensions)||[]);this.config=d,this.middlewareStack.use(f_(this.config)),this.middlewareStack.use(DO(this.config)),this.middlewareStack.use(_I(this.config)),this.middlewareStack.use(VO(this.config)),this.middlewareStack.use(Mk(this.config)),this.middlewareStack.use($k(this.config)),this.middlewareStack.use(zk(this.config)),this.middlewareStack.use(Wk(this.config,{httpAuthSchemeParametersProvider:OI,identityProviderConfigProvider:async f=>new V_({"aws.auth#sigv4":f.credentials})})),this.middlewareStack.use(Xk(this.config))}destroy(){super.destroy()}}class V extends _s{constructor(t){super(t),Object.setPrototypeOf(this,V.prototype)}}class xp extends V{constructor(n){super({name:"InternalErrorException",$fault:"server",...n});b(this,"name","InternalErrorException");b(this,"$fault","server");Object.setPrototypeOf(this,xp.prototype)}}class Ep extends V{constructor(n){super({name:"InvalidParameterException",$fault:"client",...n});b(this,"name","InvalidParameterException");b(this,"$fault","client");b(this,"reasonCode");Object.setPrototypeOf(this,Ep.prototype),this.reasonCode=n.reasonCode}}class Sp extends V{constructor(n){super({name:"NotAuthorizedException",$fault:"client",...n});b(this,"name","NotAuthorizedException");b(this,"$fault","client");Object.setPrototypeOf(this,Sp.prototype)}}class bp extends V{constructor(n){super({name:"ResourceNotFoundException",$fault:"client",...n});b(this,"name","ResourceNotFoundException");b(this,"$fault","client");Object.setPrototypeOf(this,bp.prototype)}}class Cp extends V{constructor(n){super({name:"TooManyRequestsException",$fault:"client",...n});b(this,"name","TooManyRequestsException");b(this,"$fault","client");Object.setPrototypeOf(this,Cp.prototype)}}class Tp extends V{constructor(n){super({name:"UserImportInProgressException",$fault:"client",...n});b(this,"name","UserImportInProgressException");b(this,"$fault","client");Object.setPrototypeOf(this,Tp.prototype)}}class Pp extends V{constructor(n){super({name:"UserNotFoundException",$fault:"client",...n});b(this,"name","UserNotFoundException");b(this,"$fault","client");Object.setPrototypeOf(this,Pp.prototype)}}class Rp extends V{constructor(n){super({name:"InvalidLambdaResponseException",$fault:"client",...n});b(this,"name","InvalidLambdaResponseException");b(this,"$fault","client");Object.setPrototypeOf(this,Rp.prototype)}}class Ap extends V{constructor(n){super({name:"LimitExceededException",$fault:"client",...n});b(this,"name","LimitExceededException");b(this,"$fault","client");Object.setPrototypeOf(this,Ap.prototype)}}class kp extends V{constructor(n){super({name:"TooManyFailedAttemptsException",$fault:"client",...n});b(this,"name","TooManyFailedAttemptsException");b(this,"$fault","client");Object.setPrototypeOf(this,kp.prototype)}}class _p extends V{constructor(n){super({name:"UnexpectedLambdaException",$fault:"client",...n});b(this,"name","UnexpectedLambdaException");b(this,"$fault","client");Object.setPrototypeOf(this,_p.prototype)}}class Np extends V{constructor(n){super({name:"UserLambdaValidationException",$fault:"client",...n});b(this,"name","UserLambdaValidationException");b(this,"$fault","client");Object.setPrototypeOf(this,Np.prototype)}}class Op extends V{constructor(n){super({name:"CodeDeliveryFailureException",$fault:"client",...n});b(this,"name","CodeDeliveryFailureException");b(this,"$fault","client");Object.setPrototypeOf(this,Op.prototype)}}class Ip extends V{constructor(n){super({name:"InvalidPasswordException",$fault:"client",...n});b(this,"name","InvalidPasswordException");b(this,"$fault","client");Object.setPrototypeOf(this,Ip.prototype)}}class Mp extends V{constructor(n){super({name:"InvalidSmsRoleAcce
189ssPolicyException",$fault:"client",...n});b(this,"name","InvalidSmsRoleAccessPolicyException");b(this,"$fault","client");Object.setPrototypeOf(this,Mp.prototype)}}class jp extends V{constructor(n){super({name:"InvalidSmsRoleTrustRelationshipException",$fault:"client",...n});b(this,"name","InvalidSmsRoleTrustRelationshipException");b(this,"$fault","client");Object.setPrototypeOf(this,jp.prototype)}}class Dp extends V{constructor(n){super({name:"PreconditionNotMetException",$fault:"client",...n});b(this,"name","PreconditionNotMetException");b(this,"$fault","client");Object.setPrototypeOf(this,Dp.prototype)}}class $p extends V{constructor(n){super({name:"UnsupportedUserStateException",$fault:"client",...n});b(this,"name","UnsupportedUserStateException");b(this,"$fault","client");Object.setPrototypeOf(this,$p.prototype)}}class Lp extends V{constructor(n){super({name:"UsernameExistsException",$fault:"client",...n});b(this,"name","UsernameExistsException");b(this,"$fault","client");Object.setPrototypeOf(this,Lp.prototype)}}class Fp extends V{constructor(n){super({name:"AliasExistsException",$fault:"client",...n});b(this,"name","AliasExistsException");b(this,"$fault","client");Object.setPrototypeOf(this,Fp.prototype)}}class zp extends V{constructor(n){super({name:"InvalidUserPoolConfigurationException",$fault:"client",...n});b(this,"name","InvalidUserPoolConfigurationException");b(this,"$fault","client");Object.setPrototypeOf(this,zp.prototype)}}class Up extends V{constructor(n){super({name:"InvalidEmailRoleAccessPolicyException",$fault:"client",...n});b(this,"name","InvalidEmailRoleAccessPolicyException");b(this,"$fault","client");Object.setPrototypeOf(this,Up.prototype)}}class Hp extends V{constructor(n){super({name:"MFAMethodNotFoundException",$fault:"client",...n});b(this,"name","MFAMethodNotFoundException");b(this,"$fault","client");Object.setPrototypeOf(this,Hp.prototype)}}class Bp extends V{constructor(n){super({name:"PasswordResetRequiredException",$fault:"client",...n});b(this,"name","PasswordResetRequiredException");b(this,"$fault","client");Object.setPrototypeOf(this,Bp.prototype)}}class Vp extends V{constructor(n){super({name:"UnsupportedOperationException",$fault:"client",...n});b(this,"name","UnsupportedOperationException");b(this,"$fault","client");Object.setPrototypeOf(this,Vp.prototype)}}class Wp extends V{constructor(n){super({name:"UserNotConfirmedException",$fault:"client",...n});b(this,"name","UserNotConfirmedException");b(this,"$fault","client");Object.setPrototypeOf(this,Wp.prototype)}}class Qp extends V{constructor(n){super({name:"UserPoolAddOnNotEnabledException",$fault:"client",...n});b(this,"name","UserPoolAddOnNotEnabledException");b(this,"$fault","client");Object.setPrototypeOf(this,Qp.prototype)}}class Gp extends V{constructor(n){super({name:"CodeMismatchException",$fault:"client",...n});b(this,"name","CodeMismatchException");b(this,"$fault","client");Object.setPrototypeOf(this,Gp.prototype)}}class qp extends V{constructor(n){super({name:"ExpiredCodeException",$fault:"client",...n});b(this,"name","ExpiredCodeException");b(this,"$fault","client");Object.setPrototypeOf(this,qp.prototype)}}class Kp extends V{constructor(n){super({name:"PasswordHistoryPolicyViolationException",$fault:"client",...n});b(this,"name","PasswordHistoryPolicyViolationException");b(this,"$fault","client");Object.setPrototypeOf(this,Kp.prototype)}}class Yp extends V{constructor(n){super({name:"SoftwareTokenMFANotFoundException",$fault:"client",...n});b(this,"name","SoftwareTokenMFANotFoundException");b(this,"$fault","client");Object.setPrototypeOf(this,Yp.prototype)}}class Xp extends V{constructor(n){super({name:"ConcurrentModificationException",$fault:"client",...n});b(this,"name","ConcurrentModificationException");b(this,"$fault","client");Object.setPrototypeOf(this,Xp.prototype)}}class Jp extends V{constructor(n){super({name:"ForbiddenException",$fault:"client",...n});b(this,"name","ForbiddenException");b(this,"$fault","client");Object.setPrototypeOf(this,Jp.prototype)}}class Zp extends V{constructor(n){super({name:"WebAuthnChallengeNotFoundException",$fault:"client",...n});b(this,"name","WebAuthnChallengeNotFoundException");b(this,"$fault","client");Object.setPrototypeOf(this,Zp.prototype)}}class eh extends V{constructor(n){super({name:"WebAuthnClientMismatchException",$fault:"client",...n});b(this,"name","WebAuthnClientMismatchException");b(this,"$fault","client");Object.setPrototypeOf(this,eh.prototype)}}class th extends V{constructor(n){super({name:"WebAuthnCredentialNotSupportedException",$fault:"client",...n});b(this,"name","WebAuthnCredentialNotSupportedException");b(this,"$fault","client");Object.setPrototypeOf(this,th.prototype)}}class nh extends V{constructor(n){super({name:"WebAuthnNotEnabledException",$fault:"client",...n});b(this,"name","WebAuthnNotEnabledException");b(this,"$fault","client");Object.setPrototypeOf(this,nh.prototype)}}class rh extends V{constructor(n){super({name:"WebAuthnOriginNotAllowedException",$fault:"client",...n});b(this,"name","WebAuthnOriginNotAllowedException");b(this,"$fault","client");Object.setPrototypeOf(this,rh.prototype)}}class sh extends V{constructor(n){super({name:"WebAuthnRelyingPartyMismatchException",$fault:"client",...n});b(this,"name","WebAuthnRelyingPartyMismatchException");b(this,"$fault","client");Object.setPrototypeOf(this,sh.prototype)}}class oh extends V{constructor(n){super({name:"DeviceKeyExistsException",$fault:"client",...n});b(this,"name","DeviceKeyExistsException");b(this,"$fault","client");Object.setPrototypeOf(this,oh.prototype)}}class ih extends V{constructor(n){super({name:"GroupExistsException",$fault:"client",...n});b(this,"name","GroupExistsException");b(this,"$fault","client");Object.setPrototypeOf(this,ih.prototype)}}class ah extends V{constructor(n){super({name:"DuplicateProviderException",$fault:"client",...n});b(this,"name","DuplicateProviderException");b(this,"$fault","client");Object.setPrototypeOf(this,ah.prototype)}}class lh extends V{constructor(n){super({name:"ManagedLoginBrandingExistsException",$fault:"client",...n});b(this,"name","ManagedLoginBrandingExistsException");b(this,"$fault","client");Object.setPrototypeOf(this,lh.prototype)}}class ch extends V{constructor(n){super({name:"TermsExistsException",$fault:"client",...n});b(this,"name","TermsExistsException");b(this,"$fault","client");Object.setPrototypeOf(this,ch.prototype)}}class uh extends V{constructor(n){super({name:"FeatureUnavailableInTierException",$fault:"client",...n});b(this,"name","FeatureUnavailableInTierException");b(this,"$fault","client");Object.setPrototypeOf(this,uh.prototype)}}class dh extends V{constructor(n){super({name:"TierChangeNotAllowedException",$fault:"client",...n});b(this,"name","TierChangeNotAllowedException");b(this,"$fault","client");Object.setPrototypeOf(this,dh.prototype)}}class fh extends V{constructor(n){super({name:"UserPoolTaggingException",$fault:"client",...n});b(this,"name","UserPoolTaggingException");b(this,"$fault","client");Object.setPrototypeOf(this,fh.prototype)}}class ph extends V{constructor(n){super({name:"InvalidOAuthFlowException",$fault:"client",...n});b(this,"name","InvalidOAuthFlowException");b(this,"$fault","client");Object.setPrototypeOf(this,ph.prototype)}}class hh extends V{constructor(n){super({name:"ScopeDoesNotExistException",$fault:"client",...n});b(this,"name","ScopeDoesNotExistException");b(this,"$fault","client");Object.setPrototypeOf(this,hh.prototype)}}class mh extends V{constructor(n){super({name:"UnsupportedIdentityProvi
189derException",$fault:"client",...n});b(this,"name","UnsupportedIdentityProviderException");b(this,"$fault","client");Object.setPrototypeOf(this,mh.prototype)}}class gh extends V{constructor(n){super({name:"RefreshTokenReuseException",$fault:"client",...n});b(this,"name","RefreshTokenReuseException");b(this,"$fault","client");Object.setPrototypeOf(this,gh.prototype)}}class yh extends V{constructor(n){super({name:"UnauthorizedException",$fault:"client",...n});b(this,"name","UnauthorizedException");b(this,"$fault","client");Object.setPrototypeOf(this,yh.prototype)}}class vh extends V{constructor(n){super({name:"UnsupportedTokenTypeException",$fault:"client",...n});b(this,"name","UnsupportedTokenTypeException");b(this,"$fault","client");Object.setPrototypeOf(this,vh.prototype)}}class wh extends V{constructor(n){super({name:"WebAuthnConfigurationMissingException",$fault:"client",...n});b(this,"name","WebAuthnConfigurationMissingException");b(this,"$fault","client");Object.setPrototypeOf(this,wh.prototype)}}class xh extends V{constructor(n){super({name:"EnableSoftwareTokenMFAException",$fault:"client",...n});b(this,"name","EnableSoftwareTokenMFAException");b(this,"$fault","client");Object.setPrototypeOf(this,xh.prototype)}}const RM="AvailableChallenges",AM="AliasExistsException",kM="AnalyticsEndpointId",_M="AuthFlow",NM="AnalyticsMetadata",OM="AnalyticsMetadataType",IM="AuthParameters",MM="AuthParametersType",jM="AuthenticationResult",DM="AuthenticationResultType",$M="AccessToken",LM="CodeDeliveryFailureException",FM="ClientId",zM="ClientIdType",UM="ClientMetadata",HM="CodeMismatchException",BM="ConcurrentModificationException",VM="ChallengeName",WM="ChallengeParameters",QM="DeviceGroupKey",GM="DeviceKey",qM="DeviceKeyExistsException",KM="DuplicateProviderException",YM="ExpiredCodeException",XM="EncodedData",JM="ExpiresIn",ZM="EnableSoftwareTokenMFAException",ej="ForbiddenException",tj="FeatureUnavailableInTierException",nj="GroupExistsException",rj="IpAddress",sj="InitiateAuthRequest",oj="InitiateAuthResponse",ij="InitiateAuth",aj="InternalErrorException",lj="InvalidEmailRoleAccessPolicyException",cj="InvalidLambdaResponseException",uj="InvalidOAuthFlowException",dj="InvalidParameterException",fj="InvalidPasswordException",pj="InvalidSmsRoleAccessPolicyException",hj="InvalidSmsRoleTrustRelationshipException",mj="IdToken",gj="InvalidUserPoolConfigurationException",yj="LimitExceededException",vj="MFAMethodNotFoundException",wj="ManagedLoginBrandingExistsException",xj="NotAuthorizedException",Ej="NewDeviceMetadata",Sj="NewDeviceMetadataType",bj="PasswordHistoryPolicyViolationException",Cj="PreconditionNotMetException",Tj="PasswordResetRequiredException",Pj="ResourceNotFoundException",Rj="RefreshToken",Aj="RefreshTokenReuseException",CE="Session",kj="ScopeDoesNotExistException",_j="SessionType",Nj="SoftwareTokenMFANotFoundException",Oj="TierChangeNotAllowedException",Ij="TermsExistsException",Mj="TooManyFailedAttemptsException",jj="TooManyRequestsException",Dj="TokenModelType",$j="TokenType",Lj="UserContextDataType",Fj="UserContextData",zj="UnauthorizedException",Uj="UsernameExistsException",Hj="UserImportInProgressException",Bj="UnsupportedIdentityProviderException",Vj="UnexpectedLambdaException",Wj="UserLambdaValidationException",Qj="UserNotConfirmedException",Gj="UserNotFoundException",qj="UnsupportedOperationException",Kj="UserPoolAddOnNotEnabledException",Yj="UserPoolTaggingException",Xj="UnsupportedTokenTypeException",Jj="UnsupportedUserStateException",Zj="WebAuthnClientMismatchException",e3="WebAuthnConfigurationMissingException",t3="WebAuthnChallengeNotFoundException",n3="WebAuthnCredentialNotSupportedException",r3="WebAuthnNotEnabledException",s3="WebAuthnOriginNotAllowedException",o3="WebAuthnRelyingPartyMismatchException",q="client",W="error",K="httpError",Q="message",i3="reasonCode",a3="server",TE="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentityprovider",A="com.amazonaws.cognitoidentityprovider";var l3=[0,A,zM,8,0],PE=[0,A,_j,8,0],hu=[0,A,Dj,8,0],c3=[-3,A,AM,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(c3,Fp);var u3=[3,A,OM,0,[kM],[0]],d3=[3,A,DM,0,[$M,JM,$j,Rj,mj,Ej],[[()=>hu,0],1,0,[()=>hu,0],[()=>hu,0],()=>D3]],f3=[-3,A,LM,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(f3,Op);var p3=[-3,A,HM,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(p3,Gp);var h3=[-3,A,BM,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(h3,Xp);var m3=[-3,A,qM,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(m3,oh);var g3=[-3,A,KM,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(g3,ah);var y3=[-3,A,ZM,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(y3,xh);var v3=[-3,A,YM,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(v3,qp);var w3=[-3,A,tj,{[W]:q,[K]:403},[Q],[0]];H.for(A).registerError(w3,uh);var x3=[-3,A,ej,{[W]:q,[K]:403},[Q],[0]];H.for(A).registerError(x3,Jp);var E3=[-3,A,nj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(E3,ih);var S3=[3,A,sj,0,[_M,FM,IM,UM,NM,Fj,CE],[0,[()=>l3,0],[()=>yD,0],128,()=>u3,[()=>tD,0],[()=>PE,0]],2],b3=[3,A,oj,0,[VM,CE,WM,jM,RM],[0,[()=>PE,0],128,[()=>d3,0],64]],C3=[-3,A,aj,{[W]:a3},[Q],[0]];H.for(A).registerError(C3,xp);var T3=[-3,A,lj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(T3,Up);var P3=[-3,A,cj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(P3,Rp);var R3=[-3,A,uj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(R3,ph);var A3=[-3,A,dj,{[W]:q,[K]:400},[Q,i3],[0,0]];H.for(A).registerError(A3,Ep);var k3=[-3,A,fj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(k3,Ip);var _3=[-3,A,pj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(_3,Mp);var N3=[-3,A,hj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(N3,jp);var O3=[-3,A,gj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(O3,zp);var I3=[-3,A,yj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(I3,Ap);var M3=[-3,A,wj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(M3,lh);var j3=[-3,A,vj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(j3,Hp);var D3=[3,A,Sj,0,[GM,QM],[0,0]],$3=[-3,A,xj,{[W]:q,[K]:403},[Q],[0]];H.for(A).registerError($3,Sp);var L3=[-3,A,bj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(L3,Kp);var F3=[-3,A,Tj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(F3,Bp);var z3=[-3,A,Cj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(z3,Dp);var U3=[-3,A,Aj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(U3,gh);var H3=[-3,A,Pj,{[W]:q,[K]:404},[Q],[0]];H.for(A).registerError(H3,bp);var B3=[-3,A,kj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(B3,hh);var V3=[-3,A,Nj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(V3,Yp);var W3=[-3,A,Ij,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(W3,ch);var Q3=[-3,A,Oj,{[W]:q,[K]:403},[Q],[0]];H.for(A).registerError(Q3,dh);var G3=[-3,A,Mj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(G3,kp);var q3=[-3,A,jj,{[W]:q,[K]:429},[Q],[0]];H.for(A).registerError(q3,Cp);var K3=[-3,A,zj,{[W]:q,[K]:401},[Q],[0]];H.for(A).registerError(K3,yh);var Y3=[-3,A,Vj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(Y3,_p);var X3=[-3,A,Bj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(X3,mh);var J3=[-3,A,qj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(J3,Vp);var Z3=[-3,A,Xj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(Z3,vh);var eD=[-3,A,Jj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(eD,$p);var tD=[3,A,Lj,8,[rj,XM],[0,0]],nD=[-3,A,Hj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(nD,Tp);var rD=[-3,A,Wj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(rD,Np);var sD=[-3,A,Uj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(sD,Lp);var oD=[-3,A,Qj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(oD,Wp);var iD=[-3,A,Gj,{[W]:q,[K]:404},[Q],[0]];H.for(A).registerError(iD,Pp);var aD=[-3,A,Kj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(aD,Qp);var lD=[-3,A,Yj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(lD,fh);var cD=[-3,A,t3,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(cD,Zp);var uD=[-3,A,Zj,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(uD,eh);var dD=[-3,A,e3,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(dD,wh);var fD=[-3,A,n3,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(fD,th);var pD=[-3,A,r3,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(pD,nh);var hD=[-3,A,s3,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(hD,rh);var mD=[-3,A,o3,{[W]:q,[K]:400},[Q],[0]];H.for(A).registerError(mD,sh);
189var gD=[-3,TE,"CognitoIdentityProviderServiceException",0,[],[]];H.for(TE).registerError(gD,V);var yD=[2,A,MM,8,0,0],vD=[9,A,ij,0,()=>S3,()=>b3];class wD extends lE.classBuilder().ep($I).m(function(t,n,r,s){return[nI(r,t.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityProviderService","InitiateAuth",{}).n("CognitoIdentityProviderClient","InitiateAuthCommand").sc(vD).build(){}const xD=5,ED=4e3,Fr=[],Hd=new Set;let Bd="good";function SD(e){if(e.length===0)return 0;const t=[...e].sort((r,s)=>r-s),n=Math.floor(t.length/2);return t.length%2!==0?t[n]:(t[n-1]+t[n])/2}function bD(){if(typeof navigator<"u"&&navigator.onLine===!1)return"offline";if(Fr.length===0)return"good";const e=Fr.slice(-2);if(e.length===2&&e.every(n=>!n.reachedServer))return"offline";if(Fr.some(n=>!n.reachedServer))return"degraded";const t=Fr.filter(n=>n.reachedServer).map(n=>n.durationMs);return SD(t)>ED?"degraded":"good"}function Vd(){const e=bD();e!==Bd&&(Bd=e,Hd.forEach(t=>t()))}function xy(e){Fr.push(e),Fr.length>xD&&Fr.shift(),Vd()}function M$(){return Bd}function j$(e){return Hd.add(e),()=>Hd.delete(e)}typeof window<"u"&&(window.addEventListener("online",Vd),window.addEventListener("offline",Vd));const CD=15e3,TD={"create-job-photo":6e4},PD=()=>{const e="production",t="https://06qtelp6qb.execute-api.us-east-2.amazonaws.com/prod";return console.log(`ð API Mode: ${e} | Using: ${t}`),t},RD=PD(),AD={"scan-ab-sheet":void 0},kD=new PM({region:"us-east-2"}),Ey="74orm2skld9gjgnv7a4c2s0gb3";function _D(e){try{const n=JSON.parse(atob(e.split(".")[1])).exp*1e3;return Date.now()>=n-5*60*1e3}catch{return!0}}let $o=null;async function RE(){return $o||($o=(async()=>{var t,n;const e=localStorage.getItem("refreshToken");if(!e||!Ey)return null;try{const r=await kD.send(new wD({ClientId:Ey,AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:{REFRESH_TOKEN:e}})),s=(t=r.AuthenticationResult)==null?void 0:t.AccessToken;return s?(localStorage.setItem("cognitoAccessToken",s),(n=r.AuthenticationResult)!=null&&n.IdToken&&localStorage.setItem("idToken",r.AuthenticationResult.IdToken),s):null}catch(r){console.error("Token refresh failed:",r);const s=(r==null?void 0:r.name)||"";return["NotAuthorizedException","UserNotFoundException","UserNotConfirmedException","PasswordResetRequiredException"].includes(s)&&(localStorage.removeItem("cognitoAccessToken"),localStorage.removeItem("idToken"),localStorage.removeItem("refreshToken")),null}finally{$o=null}})(),$o)}async function ND(){let e=localStorage.getItem("cognitoAccessToken");return e?(_D(e)&&(e=await RE()||e),e):null}async function ft(e,t,n={}){const r=e.startsWith("auth-"),s=r?localStorage.getItem("cognitoAccessToken"):await ND(),i=AD[e]||`${RD}/${e}`,l=TD[e]??CD,a=async u=>{const d=new AbortController,f=setTimeout(()=>d.abort(),l),p=Date.now();try{const g=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",...u&&{Authorization:`Bearer ${u}`},...n.headers},body:t?JSON.stringify(t):void 0,...n,signal:n.signal||d.signal});return xy({durationMs:Date.now()-p,reachedServer:!0,timedOut:!1}),g}catch(g){const m=d.signal.aborted;throw xy({durationMs:Date.now()-p,reachedServer:!1,timedOut:m}),m?new Error("Request timed out â weak connection. Please try again."):g}finally{clearTimeout(f)}};let c=await a(s);if(!r&&c.status===500){const u=await c.json().catch(()=>null),d=((u==null?void 0:u.error)||(u==null?void 0:u.message)||"").toLowerCase();if(d.includes("token")&&d.includes("expired")||d.includes("no authorization")||d.includes("invalid")&&d.includes("token")){const p=await RE();if(p)c=await a(p);else{const g=(u==null?void 0:u.error)||(u==null?void 0:u.message)||`HTTP ${c.status}`;throw new Error(g)}}if(!c.ok&&u){const p=u.error||u.message||`HTTP ${c.status}`;throw new Error(p)}}if(!c.ok){const u=await c.json().catch(()=>({error:"Request failed"})),d=u.error||u.message||`HTTP ${c.status}`;throw new Error(d)}return c.json()}const OD={signIn:async(e,t)=>ft("auth-signin",{email:e,password:t}),validate:async e=>ft("auth-validate",{},{headers:{Authorization:`Bearer ${e}`}}),createLeadUser:async e=>ft("create-lead-user",e),signUpEnhanced:async e=>
189ft("auth-signup-enhanced",e)},D$={create:async e=>ft("create-company",e),checkDuplicates:async e=>ft("create-company",{...e,checkOnly:!0}),getUserCompany:async()=>ft("get-user-company",{}),updatePreferences:async(e,t)=>ft("update-company-preferences",{companyId:e,...t}),switchCompanyContext:async e=>ft("switch-company-context",{companyId:e}),addUserToCompany:async(e,t)=>ft("add-user-to-company",{userEmail:e,companyId:t}),requestDealerAccess:async(e,t)=>ft("request-dealer-access",{companyId:e,companyName:t}),getPendingDealerRequests:async()=>ft("get-dealer-access-requests",{}),searchCompanies:async e=>ft("search-companies",{query:e})},Vo=[[250,60],[272,62],[293,68],[310,78],[323,95],[332,116],[340,138],[358,145],[380,148],[404,152],[430,155],[456,158],[482,162],[505,168],[520,180],[530,198],[538,220],[542,245],[542,270],[538,295],[528,318],[512,340],[490,358],[462,372],[430,380],[395,382],[358,378],[320,372],[282,365],[245,355],[212,342],[182,326],[155,308],[132,286],[115,262],[102,235],[95,207],[92,178],[95,150],[102,125],[115,105],[132,90],[152,80],[175,72],[197,67],[215,64],[228,62],[238,61],[244,60],[248,60]],ID=[[240,32],[262,22],[285,35],[308,50],[332,68],[356,92],[380,118],[408,120],[438,124],[470,128],[502,138],[532,155],[556,180],[572,210],[578,245],[572,278],[562,308],[544,338],[520,362],[492,382],[460,396],[425,404],[388,408],[350,406],[312,402],[275,394],[238,382],[205,368],[172,350],[142,328],[115,302],[92,272],[78,240],[70,206],[72,172],[82,140],[100,108],[124,80],[152,58],[183,42],[215,34]],MD=[{x:244,y:50,n:"1",anchor:"end",pink:!0},{x:332,y:92,n:"5",anchor:"middle"},{x:404,y:170,n:"10",anchor:"middle"},{x:538,y:178,n:"15",anchor:"start"},{x:556,y:298,n:"20",anchor:"start"},{x:395,y:400,n:"25",anchor:"middle"},{x:212,y:360,n:"30",anchor:"end"},{x:78,y:212,n:"35",anchor:"end"},{x:86,y:125,n:"40",anchor:"end"},{x:194,y:58,n:"45",anchor:"middle"},{x:252,y:45,n:"50",anchor:"start"}],Sy=[6,7,8,9,10,11,12,13,14],jD=Vo.map(([e,t])=>`${e},${t}`).join(" ");function DD({className:e}){return h.jsxs("svg",{viewBox:"0 0 600 480",className:e,xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Pool measurement visualizer with 50 perimeter points, anchor positions, and a tagged waterfall feature",children:[h.jsx("defs",{children:h.jsx("pattern",{id:"abm-poolgrid",width:"20",height:"20",patternUnits:"userSpaceOnUse",children:h.jsx("path",{d:"M 20 0 L 0 0 0 20",fill:"none",stroke:"#e5e7eb",strokeWidth:"0.5"})})}),h.jsx("rect",{width:"600",height:"480",fill:"url(#abm-poolgrid)"}),h.jsx("g",{fill:"#ec4899",children:ID.map(([t,n],r)=>h.jsx("circle",{cx:t,cy:n,r:"3.5"},`a-${r}`))}),h.jsx("polygon",{points:jD,fill:"white",stroke:"#1d3557",strokeWidth:"1.5",strokeLinejoin:"round"}),h.jsx("g",{fill:"#1d3557",children:Vo.map(([t,n],r)=>Sy.includes(r)?null:h.jsx("circle",{cx:t,cy:n,r:"2.6"},`p-${r}`))}),h.jsx("g",{fill:"#2a9d8f",children:Sy.map(t=>{const[n,r]=Vo[t];return h.jsx("circle",{cx:n,cy:r,r:"3.4",stroke:"white",strokeWidth:"1.2"},`w-${t}`)})}),h.jsx("circle",{cx:Vo[0][0],cy:Vo[0][1],r:"6.5",fill:"none",stroke:"#ec4899",strokeWidth:"1.5"}),h.jsx("g",{fontSize:"10",fontWeight:"600",fill:"#374151",fontFamily:"Inter",children:MD.map(t=>h.jsx("text",{x:t.x,y:t.y,textAnchor:t.anchor,fill:t.pink?"#ec4899":"#374151",children:t.n},t.n))}),h.jsx("line",{x1:"430",y1:"155",x2:"430",y2:"208",stroke:"#2a9d8f",strokeWidth:"1",strokeDasharray:"2 2"}),h.jsx("rect",{x:"380",y:"208",width:"100",height:"20",rx:"10",fill:"white",stroke:"#2a9d8f",strokeWidth:"1.25"}),h.jsx("circle",{cx:"392",cy:"218",r:"2.8",fill:"#2a9d8f"}),h.jsx("text",{x:"400",y:"222",fontSize:"10",fontWeight:"600",fill:"#1d3557",fontFamily:"Inter",children:"Waterfall · 7â15"}),h.jsx("line",{x1:"120",y1:"445",x2:"200",y2:"445",stroke:"#3b82f6",strokeWidth:"1.25",strokeDasharray:"4 3"}),h.jsx("line",{x1:"400",y1:"445",x2:"480",y2:"445",stroke:"#3b82f6",strokeWidth:"1.25",strokeDasharray:"4 3"}),h.jsx("line",{x1:"200",y1:"445",x2:"400",y2:"445",stroke:"#3b82f6",strokeWidth:"2.5"}),h.jsx("circle",{cx:"200",cy:"445",r:"9",fill:"#3b82f6"}),h.jsx("text",{x:"200",y:"466",textAnchor:"middle",fontSize:"11",fontWeight:"700",fill:"#1d3557",fontFamily:"Inter",children:"A"}),h.jsx("circle",{cx:"400",cy:"445",r:"9",fill:"#3b82f6"}),h.jsx("text",{x:"400",y:"466",textAnchor:"middle",fontSize:"11",fontWeight:"700",fill:"#1d3557",fontFamily:"Inter",children:"B"})]})}var $D=Object.defineProperty,_l=Object.getOwnPropertySymbols,AE=Object.prototype.hasOwnProperty,kE=Object.prototype.propertyIsEnumerable,by=(e,t,n)=>t in e?$D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wd=(e,t)=>{for(var n in t||(t={}
189))AE.call(t,n)&&by(e,n,t[n]);if(_l)for(var n of _l(t))kE.call(t,n)&&by(e,n,t[n]);return e},Qd=(e,t)=>{var n={};for(var r in e)AE.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&_l)for(var r of _l(e))t.indexOf(r)<0&&kE.call(e,r)&&(n[r]=e[r]);return n};/** 190 * @license QR Code generator library (TypeScript) 191 * Copyright (c) Project Nayuki. 192 * SPDX-License-Identifier: MIT 193 */var ss;(e=>{const t=class ie{constructor(a,c,u,d){if(this.version=a,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],a<ie.MIN_VERSION||a>ie.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=a*4+17;let f=[];for(let g=0;g<this.size;g++)f.push(!1);for(let g=0;g<this.size;g++)this.modules.push(f.slice()),this.isFunction.push(f.slice());this.drawFunctionPatterns();const p=this.addEccAndInterleave(u);if(this.drawCodewords(p),d==-1){let g=1e9;for(let m=0;m<8;m++){this.applyMask(m),this.drawFormatBits(m);const E=this.getPenaltyScore();E<g&&(d=m,g=E),this.applyMask(m)}}s(0<=d&&d<=7),this.mask=d,this.applyMask(d),this.drawFormatBits(d),this.isFunction=[]}static encodeText(a,c){const u=e.QrSegment.makeSegments(a);return ie.encodeSegments(u,c)}static encodeBinary(a,c){const u=e.QrSegment.makeBytes(a);return ie.encodeSegments([u],c)}static encodeSegments(a,c,u=1,d=40,f=-1,p=!0){if(!(ie.MIN_VERSION<=u&&u<=d&&d<=ie.MAX_VERSION)||f<-1||f>7)throw new RangeError("Invalid value");let g,m;for(g=u;;g++){const x=ie.getNumDataCodewords(g,c)*8,S=i.getTotalBits(a,g);if(S<=x){m=S;break}if(g>=d)throw new RangeError("Data too long")}for(const x of[ie.Ecc.MEDIUM,ie.Ecc.QUARTILE,ie.Ecc.HIGH])p&&m<=ie.getNumDataCodewords(g,x)*8&&(c=x);let E=[];for(const x of a){n(x.mode.modeBits,4,E),n(x.numChars,x.mode.numCharCountBits(g),E);for(const S of x.getData())E.push(S)}s(E.length==m);const w=ie.getNumDataCodewords(g,c)*8;s(E.length<=w),n(0,Math.min(4,w-E.length),E),n(0,(8-E.length%8)%8,E),s(E.length%8==0);for(let x=236;E.length<w;x^=253)n(x,8,E);let y=[];for(;y.length*8<E.length;)y.push(0);return E.forEach((x,S)=>y[S>>>3]|=x<<7-(S&7)),new ie(g,c,y,f)}getModule(a,c){return 0<=a&&a<this.size&&0<=c&&c<this.size&&this.modules[c][a]}getModules(){return this.modules}drawFunctionPatterns(){for(let u=0;u<this.size;u++)this.setFunctionModule(6,u,u%2==0),this.setFunctionModule(u,6,u%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const a=this.getAlignmentPatternPositions(),c=a.length;for(let u=0;u<c;u++)for(let d=0;d<c;d++)u==0&&d==0||u==0&&d==c-1||u==c-1&&d==0||this.drawAlignmentPattern(a[u],a[d]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(a){const c=this.errorCorrectionLevel.formatBits<<3|a;let u=c;for(let f=0;f<10;f++)u=u<<1^(u>>>9)*1335;const d=(c<<10|u)^21522;s(d>>>15==0);for(let f=0;f<=5;f++)this.setFunctionModule(8,f,r(d,f));this.setFunctionModule(8,7,r(d,6)),this.setFunctionModule(8,8,r(d,7)),this.setFunctionModule(7,8,r(d,8));for(let f=9;f<15;f++)this.setFunctionModule(14-f,8,r(d,f));for(let f=0;f<8;f++)this.setFunctionModule(this.size-1-f,8,r(d,f));for(let f=8;f<15;f++)this.setFunctionModule(8,this.size-15+f,r(d,f));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let a=this.version;for(let u=0;u<12;u++)a=a<<1^(a>>>11)*7973;const c=this.version<<12|a;s(c>>>18==0);for(let u=0;u<18;u++){const d=r(c,u),f=this.size-11+u%3,p=Math.floor(u/3);this.setFunctionModule(f,p,d),this.setFunctionModule(p,f,d)}}drawFinderPattern(a,c){for(let u=-4;u<=4;u++)for(let d=-4;d<=4;d++){const f=Math.max(Math.abs(d),Math.abs(u)),p=a+d,g=c+u;0<=p&&p<this.size&&0<=g&&g<this.size&&this.setFunctionModule(p,g,f!=2&&f!=4)}}drawAlignmentPattern(a,c){for(let u=-2;u<=2;u++)for(let d=-2;d<=2;d++)this.setFunctionModule(a+d,c+u,Math.max(Math.abs(d),Math.abs(u))!=1)}setFunctionModule(a,c,u){this.modules[c][a]=u,this.isFunction[c][a]=!0}addEccAndInterleave(a){const c=this.version,u=this.errorCorrectionLevel;if(a.length!=ie.getNumDataCodewords(c,u))throw new RangeError("Invalid argument");const d=ie.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][c],f=ie.ECC_CODEWORDS_PER_BLOCK[u.ordinal][c],p=Math.floor(ie.getNumRawDataModules(c)/8),g=d-p%d,m=Math.floor(p/d);let E=[];const w=ie.reedSolomonComputeDivisor(f);for(let x=0,S=0;x<d;x++){let C=a.slice(S,S+m-f+(x<g?0:1));S+=C.length;const T=ie.reedSolomonComputeRemainder(C,w);x<g&&C.push(0),E.push(C.concat(T))}let y=[];for(let x=0;x<E[0].length;x++)E.forEach((S,C)=>{(x!=m-f||C>=g)&&y.push(S[x])});return s(y.length==p),y}drawCodewords(a){if(a.length!=Math.floor(ie.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let c=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let d=0;d<this.size;d++)for(let f=0;f<2;f++){const p=u-f,m=(u+1&2)==0?this.size-1-d:d;!this.isFunction[m][p]&&c<a.length*8&&(this.modules[m][p]=r(a[c>>>3],7-(c&7)),c++)}}s(c==a.length*8)}
193applyMask(a){if(a<0||a>7)throw new RangeError("Mask value out of range");for(let c=0;c<this.size;c++)for(let u=0;u<this.size;u++){let d;switch(a){case 0:d=(u+c)%2==0;break;case 1:d=c%2==0;break;case 2:d=u%3==0;break;case 3:d=(u+c)%3==0;break;case 4:d=(Math.floor(u/3)+Math.floor(c/2))%2==0;break;case 5:d=u*c%2+u*c%3==0;break;case 6:d=(u*c%2+u*c%3)%2==0;break;case 7:d=((u+c)%2+u*c%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[c][u]&&d&&(this.modules[c][u]=!this.modules[c][u])}}getPenaltyScore(){let a=0;for(let f=0;f<this.size;f++){let p=!1,g=0,m=[0,0,0,0,0,0,0];for(let E=0;E<this.size;E++)this.modules[f][E]==p?(g++,g==5?a+=ie.PENALTY_N1:g>5&&a++):(this.finderPenaltyAddHistory(g,m),p||(a+=this.finderPenaltyCountPatterns(m)*ie.PENALTY_N3),p=this.modules[f][E],g=1);a+=this.finderPenaltyTerminateAndCount(p,g,m)*ie.PENALTY_N3}for(let f=0;f<this.size;f++){let p=!1,g=0,m=[0,0,0,0,0,0,0];for(let E=0;E<this.size;E++)this.modules[E][f]==p?(g++,g==5?a+=ie.PENALTY_N1:g>5&&a++):(this.finderPenaltyAddHistory(g,m),p||(a+=this.finderPenaltyCountPatterns(m)*ie.PENALTY_N3),p=this.modules[E][f],g=1);a+=this.finderPenaltyTerminateAndCount(p,g,m)*ie.PENALTY_N3}for(let f=0;f<this.size-1;f++)for(let p=0;p<this.size-1;p++){const g=this.modules[f][p];g==this.modules[f][p+1]&&g==this.modules[f+1][p]&&g==this.modules[f+1][p+1]&&(a+=ie.PENALTY_N2)}let c=0;for(const f of this.modules)c=f.reduce((p,g)=>p+(g?1:0),c);const u=this.size*this.size,d=Math.ceil(Math.abs(c*20-u*10)/u)-1;return s(0<=d&&d<=9),a+=d*ie.PENALTY_N4,s(0<=a&&a<=2568888),a}getAlignmentPatternPositions(){if(this.version==1)return[];{const a=Math.floor(this.version/7)+2,c=this.version==32?26:Math.ceil((this.version*4+4)/(a*2-2))*2;let u=[6];for(let d=this.size-7;u.length<a;d-=c)u.splice(1,0,d);return u}}static getNumRawDataModules(a){if(a<ie.MIN_VERSION||a>ie.MAX_VERSION)throw new RangeError("Version number out of range");let c=(16*a+128)*a+64;if(a>=2){const u=Math.floor(a/7)+2;c-=(25*u-10)*u-55,a>=7&&(c-=36)}return s(208<=c&&c<=29648),c}static getNumDataCodewords(a,c){return Math.floor(ie.getNumRawDataModules(a)/8)-ie.ECC_CODEWORDS_PER_BLOCK[c.ordinal][a]*ie.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][a]}static reedSolomonComputeDivisor(a){if(a<1||a>255)throw new RangeError("Degree out of range");let c=[];for(let d=0;d<a-1;d++)c.push(0);c.push(1);let u=1;for(let d=0;d<a;d++){for(let f=0;f<c.length;f++)c[f]=ie.reedSolomonMultiply(c[f],u),f+1<c.length&&(c[f]^=c[f+1]);u=ie.reedSolomonMultiply(u,2)}return c}static reedSolomonComputeRemainder(a,c){let u=c.map(d=>0);for(const d of a){const f=d^u.shift();u.push(0),c.forEach((p,g)=>u[g]^=ie.reedSolomonMultiply(p,f))}return u}static reedSolomonMultiply(a,c){if(a>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let d=7;d>=0;d--)u=u<<1^(u>>>7)*285,u^=(c>>>d&1)*a;return s(u>>>8==0),u}finderPenaltyCountPatterns(a){const c=a[1];s(c<=this.size*3);const u=c>0&&a[2]==c&&a[3]==c*3&&a[4]==c&&a[5]==c;return(u&&a[0]>=c*4&&a[6]>=c?1:0)+(u&&a[6]>=c*4&&a[0]>=c?1:0)}finderPenaltyTerminateAndCount(a,c,u){return a&&(this.finderPenaltyAddHistory(c,u),c=0),c+=this.size,this.finderPenaltyAddHistory(c,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(a,c){c[0]==0&&(a+=this.size),c.pop(),c.unshift(a)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(l,a,c){if(a<0||a>31||l>>>a)throw new RangeError("Value out of range");for(let u=a-1;u>=0;u--)c.push(l>>>u&1)}function r(l,a){return(l>>>a&1)!=0}function s(l){if(!l)throw new Error("Assertion error")}const o=class Te{constructor(a,c,u){if(this.mode=a,this.numChars=c,this.bitData=u,c<0)throw new RangeError("Invalid argument");this.bitData=u.slice()}static makeBytes(a){let c=[];for(const u of a)n(u,8,c);return new Te(Te.Mode.BYTE,a.length,c)}static makeNumeric(a){if(!Te.isNumeric(a))throw new RangeError("String contains
193non-numeric characters");let c=[];for(let u=0;u<a.length;){const d=Math.min(a.length-u,3);n(parseInt(a.substring(u,u+d),10),d*3+1,c),u+=d}return new Te(Te.Mode.NUMERIC,a.length,c)}static makeAlphanumeric(a){if(!Te.isAlphanumeric(a))throw new RangeError("String contains unencodable characters in alphanumeric mode");let c=[],u;for(u=0;u+2<=a.length;u+=2){let d=Te.ALPHANUMERIC_CHARSET.indexOf(a.charAt(u))*45;d+=Te.ALPHANUMERIC_CHARSET.indexOf(a.charAt(u+1)),n(d,11,c)}return u<a.length&&n(Te.ALPHANUMERIC_CHARSET.indexOf(a.charAt(u)),6,c),new Te(Te.Mode.ALPHANUMERIC,a.length,c)}static makeSegments(a){return a==""?[]:Te.isNumeric(a)?[Te.makeNumeric(a)]:Te.isAlphanumeric(a)?[Te.makeAlphanumeric(a)]:[Te.makeBytes(Te.toUtf8ByteArray(a))]}static makeEci(a){let c=[];if(a<0)throw new RangeError("ECI assignment value out of range");if(a<128)n(a,8,c);else if(a<16384)n(2,2,c),n(a,14,c);else if(a<1e6)n(6,3,c),n(a,21,c);else throw new RangeError("ECI assignment value out of range");return new Te(Te.Mode.ECI,0,c)}static isNumeric(a){return Te.NUMERIC_REGEX.test(a)}static isAlphanumeric(a){return Te.ALPHANUMERIC_REGEX.test(a)}getData(){return this.bitData.slice()}static getTotalBits(a,c){let u=0;for(const d of a){const f=d.mode.numCharCountBits(c);if(d.numChars>=1<<f)return 1/0;u+=4+f+d.bitData.length}return u}static toUtf8ByteArray(a){a=encodeURI(a);let c=[];for(let u=0;u<a.length;u++)a.charAt(u)!="%"?c.push(a.charCodeAt(u)):(c.push(parseInt(a.substring(u+1,u+3),16)),u+=2);return c}};o.NUMERIC_REGEX=/^[0-9]*$/,o.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,o.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let i=o;e.QrSegment=o})(ss||(ss={}));(e=>{(t=>{const n=class{constructor(s,o){this.ordinal=s,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(ss||(ss={}));(e=>{(t=>{const n=class{constructor(s,o){this.modeBits=s,this.numBitsCharCount=o}numCharCountBits(s){return this.numBitsCharCount[Math.floor((s+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(ss||(ss={}));var Ns=ss;/** 194 * @license qrcode.react 195 * Copyright (c) Paul O'Shannessy 196 * SPDX-License-Identifier: ISC 197 */var LD={L:Ns.QrCode.Ecc.LOW,M:Ns.QrCode.Ecc.MEDIUM,Q:Ns.QrCode.Ecc.QUARTILE,H:Ns.QrCode.Ecc.HIGH},_E=128,NE="L",OE="#FFFFFF",IE="#000000",ME=!1,jE=1,FD=4,zD=0,UD=.1;function DE(e,t=0){const n=[];return e.forEach(function(r,s){let o=null;r.forEach(function(i,l){if(!i&&o!==null){n.push(`M${o+t} ${s+t}h${l-o}v1H${o+t}z`),o=null;return}if(l===r.length-1){if(!i)return;o===null?n.push(`M${l+t},${s+t} h1v1H${l+t}z`):n.push(`M${o+t},${s+t} h${l+1-o}v1H${o+t}z`);return}i&&o===null&&(o=l)})}),n.join("")}function $E(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((s,o)=>o<t.x||o>=t.x+t.w?s:!1))}function HD(e,t,n,r){if(r==null)return null;const s=e.length+n*2,o=Math.floor(t*UD),i=s/t,l=(r.width||o)*i,a=(r.height||o)*i,c=r.x==null?e.length/2-l/2:r.x*i,u=r.y==null?e.length/2-a/2:r.y*i,d=r.opacity==null?1:r.opacity;let f=null;if(r.excavate){let g=Math.floor(c),m=Math.floor(u),E=Math.ceil(l+c-g),w=Math.ceil(a+u-m);f={x:g,y:m,w:E,h:w}}const p=r.crossOrigin;return{x:c,y:u,h:a,w:l,excavation:f,opacity:d,crossOrigin:p}}function BD(e,t){return t!=null?Math.max(Math.floor(t),0):e?FD:zD}function LE({value:e,level:t,minVersion:n,includeMargin:r,marginSize:s,imageSettings:o,size:i,boostLevel:l}){let a=N.useMemo(()=>{const g=(Array.isArray(e)?e:[e]).reduce((m,E)=>(m.push(...Ns.QrSegment.makeSegments(E)),m),[]);return Ns.QrCode.encodeSegments(g,LD[t],n,void 0,void 0,l)},[e,t,n,l]);const{cells:c,margin:u,numCells:d,calculatedImageSettings:f}=N.useMemo(()=>{let p=a.getModules();const g=BD(r,s),m=p.length+g*2,E=HD(p,i,g,o);return{cells:p,margin:g,numCells:m,calculatedImageSettings:E}},[a,i,o,r,s]);return{qrcode:a,margin:u,cells:c,numCells:d,calculatedImageSettings:f}}var VD=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),WD=N.forwardRef(function(t,n){const r=t,{value:s,size:o=_E,level:i=NE,bgColor:l=OE,fgColor:a=IE,includeMargin:c=ME,minVersion:u=jE,boostLevel:d,marginSize:f,imageSettings:p}=r,m=Qd(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:E}
197=m,w=Qd(m,["style"]),y=p==null?void 0:p.src,x=N.useRef(null),S=N.useRef(null),C=N.useCallback(j=>{x.current=j,typeof n=="function"?n(j):n&&(n.current=j)},[n]),[T,P]=N.useState(!1),{margin:k,cells:D,numCells:M,calculatedImageSettings:B}=LE({value:s,level:i,minVersion:u,boostLevel:d,includeMargin:c,marginSize:f,imageSettings:p,size:o});N.useEffect(()=>{if(x.current!=null){const j=x.current,J=j.getContext("2d");if(!J)return;let Y=D;const X=S.current,_=B!=null&&X!==null&&X.complete&&X.naturalHeight!==0&&X.naturalWidth!==0;_&&B.excavation!=null&&(Y=$E(D,B.excavation));const O=window.devicePixelRatio||1;j.height=j.width=o*O;const $=o/M*O;J.scale($,$),J.fillStyle=l,J.fillRect(0,0,M,M),J.fillStyle=a,VD?J.fill(new Path2D(DE(Y,k))):D.forEach(function(ee,G){ee.forEach(function(se,oe){se&&J.fillRect(oe+k,G+k,1,1)})}),B&&(J.globalAlpha=B.opacity),_&&J.drawImage(X,B.x+k,B.y+k,B.w,B.h)}}),N.useEffect(()=>{P(!1)},[y]);const L=Wd({height:o,width:o},E);let ne=null;return y!=null&&(ne=N.createElement("img",{src:y,key:y,style:{display:"none"},onLoad:()=>{P(!0)},ref:S,crossOrigin:B==null?void 0:B.crossOrigin})),N.createElement(N.Fragment,null,N.createElement("canvas",Wd({style:L,height:o,width:o,ref:C,role:"img"},w)),ne)});WD.displayName="QRCodeCanvas";var FE=N.forwardRef(function(t,n){const r=t,{value:s,size:o=_E,level:i=NE,bgColor:l=OE,fgColor:a=IE,includeMargin:c=ME,minVersion:u=jE,boostLevel:d,title:f,marginSize:p,imageSettings:g}=r,m=Qd(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:E,cells:w,numCells:y,calculatedImageSettings:x}=LE({value:s,level:i,minVersion:u,boostLevel:d,includeMargin:c,marginSize:p,imageSettings:g,size:o});let S=w,C=null;g!=null&&x!=null&&(x.excavation!=null&&(S=$E(w,x.excavation)),C=N.createElement("image",{href:g.src,height:x.h,width:x.w,x:x.x+E,y:x.y+E,preserveAspectRatio:"none",opacity:x.opacity,crossOrigin:x.crossOrigin}));const T=DE(S,E);return N.createElement("svg",Wd({height:o,width:o,viewBox:`0 0 ${y} ${y}`,ref:n,role:"img"},m),!!f&&N.createElement("title",null,f),N.createElement("path",{fill:l,d:`M0,0 h${y}v${y}H0z`,shapeRendering:"crispEdges"}),N.createElement("path",{fill:a,d:T,shapeRendering:"crispEdges"}),C)});FE.displayName="QRCodeSVG";const QD="/assets/app-store-CVyK0T4N.svg",GD="/assets/google-play-BAXiFmDF.png",qD="https://apps.apple.com/us/app/coveriq/id6781027339",KD="https://play.google.com/store/apps/details?id=ai.coveriq.app&pcampaignid=web_share";function zE(){if(typeof navigator>"u")return"other";const e=navigator.userAgent||"";return/android/i.test(e)?"android":/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&navigator.maxTouchPoints>1?"ios":"other"}function YD({className:e=""}){const t=h.jsx("a",{href:qD,target:"_blank",rel:"noopener noreferrer","aria-label":"Download CoverIQ on the App Store",children:h.jsx("img",{src:QD,alt:"Download on the App Store",className:"h-[52px] w-auto"})},"ios"),n=h.jsx("a",{href:KD,target:"_blank",rel:"noopener noreferrer","aria-label":"Get CoverIQ on Google Play",children:h.jsx("img",{src:GD,alt:"Get it on Google Play",className:"h-[52px] w-auto"})},"android");return h.jsx("div",{className:`flex flex-wrap items-center justify-center gap-3 ${e}`,children:zE()==="android"?[n,t]:[t,n]})}function XD({tone:e="dark",showQr:t=!0}){const n=zE(),r=e==="dark",s=r?"text-white/80 hover:text-white":"text-gray-600 hover:text-gray-900";return h.jsxs("div",{className:"flex flex-col items-center gap-4",children:[h.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-6",children:[h.jsx(YD,{}),t&&n==="other"&&h.jsxs("div",{className:"hidden md:flex items-center gap-3",children:[h.jsx("div",{className:"rounded-xl bg-white p-2 shadow-sm",children:h.jsx(FE,{value:`${window.location.origin}/start`,size:84,level:"M"})}),h.jsx("p",{className:`text-left text-sm leading-snug max-w-[9rem] ${r?"text-white/70":"text-gray-500"}`,children:"Scan with your phone camera to get the app"})]})]}),h.jsxs("p",{className:`text-sm ${r?"text-white/60":"text-gray-500"}`,children:["Prefer the web?"," ",h.jsx(mt,{to:"/merlin",className:`font-semibold underline underline-offset-2 ${s}`,children:"Create an account"})," · ",h.jsx(mt,{to:"/auth",className:`font-semibold underline underline-offset-2 ${s}`,children:"Sign in"})]})]})}
197const UE="/how-to/guides.json",gs=e=>typeof e=="string"?e.trim():"";function JD(e,t=UE){if(!e||typeof e!="object")return[];const n=e;if(n.version!==1||!Array.isArray(n.guides))return[];const r=t.slice(0,t.lastIndexOf("/")+1),s=[];for(const o of n.guides){if(!o||typeof o!="object")continue;const i=o,l=[];for(const u of Array.isArray(i.steps)?i.steps:[]){if(!u||typeof u!="object")continue;const d=u,f=gs(d.image);f&&l.push({imageUrl:/^https:\/\//.test(f)?f:r+f.replace(/^\/+/,""),title:gs(d.title),body:gs(d.body)})}const a=gs(i.id),c=gs(i.title);a&&c&&l.length>0&&s.push({id:a,title:c,summary:gs(i.summary),steps:l})}return s}function ZD(e){const[t,n]=v.useState(null);return v.useEffect(()=>{let r=!0;return fetch(UE,{headers:{Accept:"application/json"}}).then(s=>s.ok?s.json():null).then(s=>{r&&n(JD(s).find(o=>o.id===e)??null)}).catch(()=>{r&&n(null)}),()=>{r=!1}},[e]),t}const e4="#1d3557",t4="#2a9d8f";function n4({guideId:e="create-account",heading:t,subheading:n}){const r=ZD(e),s=v.useRef(null),[o,i]=v.useState(0);if(!r)return null;const l=()=>{const c=s.current;if(!c)return;const u=c.firstElementChild;u&&i(Math.round(c.scrollLeft/(u.offsetWidth+16)))},a=c=>{var d;const u=(d=s.current)==null?void 0:d.children[c];u==null||u.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})};return h.jsxs("div",{children:[h.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-center tracking-tight mb-2 px-5",style:{color:e4},children:t}),n&&h.jsx("p",{className:"text-gray-500 text-sm sm:text-base text-center mb-8 px-5 max-w-xl mx-auto",children:n}),h.jsx("div",{ref:s,onScroll:l,className:"flex gap-4 overflow-x-auto snap-x snap-mandatory px-5 pb-2 md:hidden",style:{scrollbarWidth:"none",msOverflowStyle:"none"},"aria-label":`${r.title}, ${r.steps.length} steps`,children:r.steps.map((c,u)=>h.jsx("figure",{className:"flex-shrink-0 w-[82%] snap-center",children:h.jsx("img",{src:c.imageUrl,alt:`Step ${u+1}: ${c.title}. ${c.body}`,loading:u<2?"eager":"lazy",width:1080,height:1350,className:`w-full h-auto rounded-2xl shadow-md transition-all duration-300 ${o===u?"":"scale-95 opacity-70"}`})},c.imageUrl))}),h.jsx("div",{className:"flex justify-center gap-1.5 mt-4 md:hidden",children:r.steps.map((c,u)=>h.jsx("button",{onClick:()=>a(u),className:"h-1.5 rounded-full transition-all duration-300",style:{width:o===u?24:6,backgroundColor:o===u?t4:"#d1d5db"},"aria-label":`Go to step ${u+1}`},u))}),h.jsx("div",{className:"hidden md:grid grid-cols-3 gap-6 max-w-5xl mx-auto px-5",children:r.steps.map((c,u)=>h.jsx("figure",{children:h.jsx("img",{src:c.imageUrl,alt:`Step ${u+1}: ${c.title}. ${c.body}`,loading:"lazy",width:1080,height:1350,className:"w-full h-auto rounded-2xl shadow-sm hover:shadow-md transition-shadow"})},c.imageUrl))})]})}const Oe="#1d3557",de="#2a9d8f",r4="https://calendar.app.google/fmx9VfxHR4NaprFE7",s4=[{icon:bw,title:"Voice Measurement",desc:"Speak distances hands-free. Six neural voices read back. Voice commands keep you flowing."},{icon:Cw,title:"AI Validation",desc:"Quality score, outlier detection, and cover spec recommendations on every measurement."},{icon:BC,title:"Live Visualizer",desc:"The pool draws itself as you measure. Tap a point to tag a waterfall, spa, slide leg, or drain."},{icon:LC,title:"Multi-Section Pools",desc:"Main pool plus attached spa? Measure each as its own AB set, then drag-rotate to align."},{icon:MC,title:"Cross-Dim Verify",desc:"Tape across the pool. App compares to the trilaterated math. Match · Close · Check."},{icon:IC,title:"Photos In-Line",desc:"Snap or upload photos at any point. Annotate. They submit with the order packet."},{icon:DC,title:"PDF · DXF · PNG",desc:"Production-ready PDF, CAD-friendly DXF, raster PNG â all generated from one record."},{icon:HC,title:"Direct to Manufacturer",desc:"Submit measurements, photos, and exports straight to your manufacturer in one tap."}],Ca=[{id:"speed",title:"15-Minute Measurements",description:"Stop spending hours on the AB method. Capture everything with a single drone flight in minutes."},{id:"manufacturer",title:"Manufacturer Integration",description:"Seamlessly exp
197ort your CoverIQ data directly into your manufacturer's ordering system for perfect-fit covers."},{id:"drone",title:"No More Tapes",description:"Use any DJI drone to get sub-inch accuracy without ever getting on your hands and knees."}],Ta=[{step:"01",title:"Collect Your 6 Measurements",desc:"Collect your 6 measurements from the 4 discs around pool."},{step:"02",title:"Fly Your Drone",desc:"Take quick top-down photos using any DJI drone."},{step:"03",title:"Enter into CoverIQ",desc:"Input measurements and let CoverIQ validate geometry."},{step:"04",title:"Export to Manufacturer",desc:"Send accurate data directly to your cover manufacturer."}],o4=()=>{const e=Gi(),[t,n]=v.useState(!1),[r,s]=v.useState(0),[o,i]=v.useState(0),l=v.useRef(null),a=v.useRef(null);v.useEffect(()=>{(async()=>{const f=localStorage.getItem("cognitoAccessToken");if(f)try{const{user:p}=await OD.validate(f);e("/app")}catch{localStorage.removeItem("cognitoAccessToken"),localStorage.removeItem("idToken"),localStorage.removeItem("refreshToken"),n(!1)}})()},[e]),v.useEffect(()=>{const d=l.current;if(!d)return;const f=()=>{const p=d.scrollLeft,g=d.offsetWidth*.8,m=Math.round(p/g);s(Math.min(m,Ca.length-1))};return d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)},[]),v.useEffect(()=>{const d=a.current;if(!d)return;const f=()=>{const p=d.scrollLeft,g=d.offsetWidth*.8,m=Math.round(p/g);i(Math.min(m,Ta.length-1))};return d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)},[]);const c=d=>{const f=l.current;if(!f)return;const p=f.offsetWidth*.8;f.scrollTo({left:p*d,behavior:"smooth"})},u=d=>{const f=a.current;if(!f)return;const p=f.offsetWidth*.8;f.scrollTo({left:p*d,behavior:"smooth"})};return h.jsxs(h.Fragment,{children:[h.jsx(Ak,{title:"Pool Measurements for Safety Covers & Liners",description:"Precision pool measurements for safety cover and liner professionals. Measure in 15 minutes with A-B trilateration or drone capture. Faster quotes, fewer remakes.",canonical:"/",keywords:"pool measurements, safety cover measurements, pool liner measurements, drone pool measurement, pool cover installation, CoverIQ"}),h.jsxs("main",{className:"flex flex-col min-h-screen",children:[h.jsxs("section",{className:"relative py-14 sm:py-20 overflow-hidden",style:{background:`linear-gradient(135deg, ${Oe} 0%, ${Oe} 60%, ${de} 100%)`},children:[h.jsx("div",{className:"absolute inset-0 opacity-[0.03] pointer-events-none",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E")`}}),h.jsxs("div",{className:"relative max-w-3xl mx-auto px-5 text-center",children:[h.jsxs("h1",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-white tracking-tight leading-tight mb-4",children:["Measure Safety Covers in"," ",h.jsx("span",{style:{color:de},children:"15 Minutes"})]}),h.jsx("p",{className:"text-base sm:text-lg text-white/60 max-w-xl mx-auto leading-relaxed mb-8",children:"Measure by drone or by hand, then quote and submit to Merlin â all from the free CoverIQ app."}),h.jsx(XD,{tone:"dark"})]})]}),h.jsx("section",{className:"py-12 md:py-16 bg-white",children:h.jsx(n4,{heading:"Get started in 3 minutes",subheading:"Download the app, create your account, and you're ready to measure your first pool."})}),h.jsxs("section",{className:"py-12 md:py-16 bg-gray-50",children:[h.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-center tracking-tight mb-2 px-5",style:{color:Oe},children:"Why Pool Companies Choose CoverIQ"}),h.jsx("p",{className:"text-gray-500 text-sm text-center mb-8 px-5 md:hidden",children:"Swipe to explore"}),h.jsx("p",{className:"text-gray-500 text-sm text-center mb-10 px-5 hidden md:block max-w-lg mx-auto",children:"Fast, accurate drone measurements that replace the AB method."}),h.jsx("div",{ref:l,className:"flex gap-4 overflow-x-auto snap-x snap-mandatory scrollbar-hide px-5 pb-2 md:hidden",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:Ca.map((d,f)=>h.jsx("div",{className:"flex-shrink-0 w-[80%] snap-center",children:h.jsxs("div",{className:` 198 relative h-full p-6 rounded-2xl 199 bg-white border border-gray-200 200 transition-all duration-300 201 ${r===f?"scale-100 shadow-md":"scale-95 opacity-60"} 202 `,children:[h.jsx("h3",{className:"text-lg font-bold mb-2 tracking-tight",style:{color:Oe},children:d.title}),h.jsx("p",{className:"text-gray-500 text-sm leading-relaxed",children:d.description})]})},d.id))}),h.jsx("div",{className:"flex justify-center gap-1.5 mt-4 md:hidden",children:Ca.map((d,f)=>h.jsx("button",{onClick:()=>c(f),className:"h-1.5 rounded-full transition-all duration-300",style:{width:r===f?24:6,backgroundColor:r===f?de:"#d1d5db"},"aria-label":`Go to feature ${f+1}`},f))}),h.jsx("div",{className:"hidden md:flex justify-center px-5",children:h.jsx("div",{className:"grid grid-cols-3 gap-8 max-w-4xl",children:Ca.map(d=>h.jsxs("div",{className:"p-6 rounded-xl bg-white border border-gray-200 hover:border-gray-300 transition-colors",children:[h.jsx("h3",{className:"text-lg font-bold mb-2 tracking-tight",style:{color:Oe},children:d.title}),h.jsx("p",{className:"text-gray-500 text-sm leading-relaxed",children:d.description})]},d.id))})})]}),h.jsxs("section",{className:"py-12 md:py-16 bg-white",children:[h.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-center tracking-tight mb-2 px-5",style:{color:Oe},children:"How It Works"}),h.jsx("p",{className:"text-gray-500 text-sm text-center mb-8 px-5 md:hidden",children:"Swipe to see steps"}),h.jsx("p",{className:"text-gray-500 text-sm text-center mb-10 px-5 hidden md:block max-w-lg mx-auto",children:"Four simple steps from drone flight to manufacturer submission."}),h.jsx("div",{ref:a,className:"flex gap-4 overflow-x-auto snap-x snap-mandatory scrollbar-hide px-5 pb-2 md:hidden",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:Ta.map((d,f)=>h.jsx("div",{className:"flex-shrink-0 w-[80%] snap-center",children:h.jsxs("div",{className:` 203 p-6 rounded-2xl bg-white border border-gray-200 204 transition-all duration-300 205 ${o===f?"scale-100 shadow-md":"scale-95 opacity-60"} 206 `,children:[h.jsx("span",{className:"text-[13px] font-semibold tabular-nums mb-3 block",style:{color:de},children:d.step}),h.jsx("h3",{className:"text-lg font-bold mb-1 tracking-tight",style:{color:Oe},children:d.title}),h.jsx("p",{className:"text-gray-500 text-sm leading-relaxed",children:d.desc})]})},f))}),h.jsx("div",{className:"flex justify-center gap-1.5 mt-4 md:hidden",children:Ta.map((d,f)=>h.jsx("button",{onClick:()=>u(f),className:"h-1.5 rounded-full transition-all duration-300",style:{width:o===f?24:6,backgroundColor:o===f?de:"#d1d5db"},"aria-label":`Go to step ${f+1}`},f))}),h.jsx("div",{className:"hidden md:flex justify-center px-5",children:h.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-6 max-w-5xl",children:Ta.map((d,f)=>h.jsxs("div",{className:"p-6 rounded-xl bg-white border border-gray-200 hover:border-gray-300 transition-colors",children:[h.jsx("span",{className:"text-[13px] font-semibold tabular-nums mb-3 block",style:{color:de},children:d.step}),h.jsx("h3",{className:"text-lg font-bold mb-1 tracking-tight",style:{color:Oe},children:d.title}),h.jsx("p",{className:"text-gray-500 text-sm leading-relaxed",children:d.desc})]},f))})}),h.jsx("div",{className:"max-w-5xl mx-auto px-5 mt-8",children:h.jsx("div",{className:"p-4 rounded-xl text-center",style:{backgroundColor:`${de}10`,border:`1px solid ${de}20`},children:h.jsxs("p",{className:"text-[15px] font-medium",style:{color:Oe},children:["Total time: ",h.jsx("span",{className:"font-bold",style:{color:de},children:"15 minutes or less"}),". No AB tapes."]})})})]}),h.jsxs("section",{className:"py-14 md:py-20 bg-gray-50 relative",children:[h.jsx("div",{className:"absolute top-0 left-0 right-0 h-px",style:{background:`linear-gradient(to right, transparent, ${de}60, transparent)`}}),h.jsxs("div",{className:"max-w-5xl mx-auto px-5",children:[h.jsxs("div",{className:"text-center mb-10",children:[h.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wider px-3 py-1 rounded-full mb-4",style:{backgroundColor:`${de}15`,color:de},children:[h.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{backgroundColor:de}}),"New"]}),h.jsxs("h2",{className:"text-2xl sm:text-3xl font-bold text-center tracking-tight mb-2",style:{color:Oe},children:["Now with ",h.jsx("span",{style:{color:de},children:"AB Measure"})," built in"]}),h.jsx("p",{className:"text-gray-500 text-sm max-w-xl mx-auto leading-relaxed",children:"For rainy days, indoor pools, no-fly zones, or anywhere a drone isn't the right tool â measure faster than ever with voice, AI, and an interactive visualizer."})]}
206),h.jsxs("div",{className:"grid lg:grid-cols-5 gap-6 lg:gap-8 mb-10 items-stretch",children:[h.jsxs("div",{className:"lg:col-span-3 rounded-xl bg-white border border-gray-200 overflow-hidden",children:[h.jsxs("div",{className:"px-5 py-3 border-b border-gray-200 flex items-center justify-between",children:[h.jsx("span",{className:"text-[13px] font-semibold tracking-tight",style:{color:Oe},children:"Live Pool Visualizer"}),h.jsx("span",{className:"text-[11px] text-gray-500",children:"Job · 1207"})]}),h.jsx("div",{className:"p-3 bg-white",children:h.jsx(DD,{className:"w-full h-auto"})}),h.jsxs("div",{className:"px-5 py-3 border-t border-gray-200 flex items-center justify-between text-[12px]",children:[h.jsxs("div",{className:"flex items-center gap-3 text-gray-600",children:[h.jsxs("span",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:"w-2 h-2 rounded-full",style:{background:Oe}}),"Perimeter"]}),h.jsxs("span",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:"w-2 h-2 rounded-full",style:{background:"#ec4899"}}),"Anchors"]}),h.jsxs("span",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:"w-2 h-2 rounded-full",style:{background:de}}),"Tagged feature"]})]}),h.jsx("span",{className:"text-gray-400",children:"50 pts · Auto-saved"})]})]}),h.jsxs("div",{className:"lg:col-span-2 flex flex-col gap-6",children:[h.jsxs("div",{className:"rounded-xl bg-white border border-gray-200 p-5 flex-1",children:[h.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[h.jsxs("div",{className:"relative w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:`${de}15`},children:[h.jsx("span",{className:"absolute inset-0 rounded-full opacity-30 animate-ping",style:{backgroundColor:de}}),h.jsx(bw,{className:"h-[18px] w-[18px]",style:{color:de,fill:de},strokeWidth:2.2})]}),h.jsx("div",{className:"flex items-end gap-[2px] h-[20px] flex-1",children:[50,75,100,60,90,50,80,65,95,55].map((d,f)=>h.jsx("span",{className:"w-[3px] rounded-full",style:{background:de,height:`${d}%`,transformOrigin:"center",animation:`ab-wave 1.1s ease-in-out ${f*.08}s infinite`}},f))})]}),h.jsx("p",{className:"text-[12px] text-gray-500 italic mb-1",children:'"twenty-five feet, six inches"'}),h.jsxs("p",{className:"text-[14px] font-semibold tracking-tight",style:{color:Oe},children:["A · 25â² 6â³ ",h.jsx("span",{className:"text-gray-400 font-normal",children:"â Pt 7"})]})]}),h.jsxs("div",{className:"rounded-xl bg-white border border-gray-200 p-5 flex-1",children:[h.jsxs("div",{className:"flex items-center justify-between mb-3",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Cw,{className:"h-4 w-4",style:{color:de,fill:de}}),h.jsx("span",{className:"text-[13px] font-semibold tracking-tight",style:{color:Oe},children:"AI Quality"})]}),h.jsxs("span",{className:"text-[18px] font-bold tabular-nums",style:{color:Oe},children:["94",h.jsx("span",{className:"text-gray-400 text-[12px] font-normal",children:"/100"})]})]}),h.jsx("div",{className:"h-1.5 rounded-full bg-gray-100 overflow-hidden mb-3",children:h.jsx("div",{className:"h-full rounded-full",style:{width:"94%",backgroundColor:de}})}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("div",{className:"flex items-center gap-2 text-[12px] text-gray-700",children:[h.jsx(Qm,{className:"h-[11px] w-[11px]",style:{color:de},strokeWidth:3}),"Geometry valid"]}),h.jsxs("div",{className:"flex items-center gap-2 text-[12px] text-gray-700",children:[h.jsx(Qm,{className:"h-[11px] w-[11px]",style:{color:de},strokeWidth:3}),"SmartMesh · 3Ã3 recommended"]})]})]})]})]}),h.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 lg:gap-6",children:s4.map(d=>{const f=d.icon;return h.jsxs("div",{className:"p-6 rounded-xl bg-white border border-gray-200 hover:border-gray-300 transition-colors",children:[h.jsx("div",{className:"w-9 h-9 rounded-lg flex items-center justify-center mb-3",style:{backgroundColor:`${de}15`},children:h.jsx(f,{className:"h-4 w-4",style:{color:de},strokeWidth:2})}),h.jsx("h3",{className:"text-[15px] font-bold mb-1.5 tracking-tight",style:{color:Oe},children:d.title}),h.jsx("p",{className:"text-gray-500 text-[13px] leading-relaxed",children:d.desc})]},d.title)})}),h.jsx("div",{className:"mt-8",children:h.jsx("div",{className:"p-4 rounded-xl text-center",style:{backgroundColor:`${de}10`,border:`1px solid ${de}20`},children:h.jsxs("p",{className:"text-[15px] font-medium",style:{color:Oe},children:["Drone or AB · ",h.jsx("span",{className:"font-bold",style:{color:de},children:"whichever the pool calls for"}),". Same app. Same workflow. Same minute count."]})})})]})]}),h.jsx("section",{className:"py-16 sm:py-20",style:{background:`linear-gradient(135deg, ${Oe} 0%, ${Oe} 60%, ${de} 100%)`},children:h.jsxs("div",{className:"max-w-2xl mx-auto px-5 text-center",children:[h.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-white tracking-tight mb-3",children:"Ready to Transform Your Workflow?"}),h.jsx("p",{className:"text-white/50 text-sm sm:text-base mb-8 max-w-md mx-auto",children:"Join pool companies using CoverIQ to measure covers faster."}),h.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[h.jsxs("a",{href:r4,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center h-12 px-7 rounded-xl text-[15px] font-semibold bg-white text-gray-900 hover:bg-gray-50 transition-colors",children:[h.jsx(fd,{className:"mr-2 h-4 w-4"}),"Book a Demo"]}),h.jsxs(mt,{to:"/auth",className:"inline-flex items-center justify-center h-12 px-7 rounded-xl text-[15px] font-medium text-white/90 border border-white/20 hover:bg-white/10 transition-colors",children:["Sign In",h.jsx(OC,{className:"ml-2 h-4 w-4"})]})]})]})})]})]})};function wn({className:e,...t}){return h.jsx("div",{className:Dn("animate-pulse rounded-md bg-muted",e),...t})}function i4(){return h.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[h.jsx("div",{className:"h-14 border-b border-border/40 flex items-center px-4",children:h.jsx(wn,{className:"h-8 w-32"})}),h.jsxs("div",{className:"flex-1 flex",children:[h.jsxs("div",{className:"hidden md:flex w-64 flex-col border-r border-border/40 p-4 gap-3",children:[h.jsx(wn,{className:"h-10 w-full"}),h.jsx(wn,{className:"h-8 w-3/4"}),h.jsx(wn,{className:"h-8 w-3/4"}),h.jsx(wn,{className:"h-8 w-1/2"})]}),h.jsxs("div",{className:"flex-1 p-6",children:[h.jsx(wn,{className:"h-8 w-48 mb-6"}),h.jsxs("div",{className:"space-y-4",children:[h.jsx(wn,{className:"h-24 w-full rounded-lg"}),h.jsx(wn,{className:"h-24 w-full rounded-lg"}),h.jsx(wn,{className:"h-24 w-full rounded-lg"})]})]})]})]})}const a4=v.lazy(()=>z(()=>import("./HowItWorks-CcMO6A32.js"),[]));v.lazy(()=>z(()=>import("./Pricing-TFCyw4QU.js"),__vite__mapDeps([0,1,2])));v.lazy(()=>z(()=>import("./SelfMeasure-BLw3Vpwv.js"),[]));const l4=v.lazy(()=>z(()=>import("./Submit-BoMUYN6d.js"),__vite__mapDeps([3,4,5,6,1,7,8,9,10,11,12,13,14,15,16,17,18,19])));v.lazy(()=>z(()=>import("./FAQ-BuWpzfiC.js"),__vite__mapDeps([20,21,22,11,13])));const c4=v.lazy(()=>z(()=>import("./Contact-TLwHTg4y.js"),__vite__mapDeps([23,4,5,6,24,25,26]))),u4=v.lazy(()=>z(()=>import("./Terms-BElJS8B-.js"),[])),d4=v.lazy(()=>z(()=>import("./Privacy-DWdKu0hw.js"),[])),f4=v.lazy(()=>z(()=>import("./Success-CI9RRYao.js"),__vite__mapDeps([27,1,28]))),p4=v.lazy(()=>z(()=>import("./NotFound-Cnksd-cT.js"),[])),h4=v.lazy(()=>z(()=>import("./WhyChooseUs-Cn5VJAAn.js"),[])),m4=v.lazy(()=>z(()=>import("./Auth-Dxl9P5Jj.js"),__vite__mapDeps([29,4,5,1,30,31,32,12,33,34,35,36,37,38,26]))),g4=v.lazy(()=>z(()=>import("./EmailVerification-B9I_xHF7.js"),__vite__mapDeps([39,4,5,1,30,35,36]))),y4=v.lazy(()=>z(()=>import("./ResetPassword-BsnNcVnR.js"),__vite__mapDeps([40,4,5,26]))),v4=v.lazy(()=>z(()=>import("./SetNewPassword-BsBDVNcc.js"),__vite__mapDeps([41,4,5,1,30,35,42,37,38,26]))),w4=v.lazy(()=>z(()=>import("./Onboarding-NieJLadB.js"),__vite__mapDeps([43,4,5,1,44,45,11,8,46,17,18,19,12,10,47,48,26]))),x4=v.lazy(()=>z(()=>import("./SelfMeasureOnboarding-CopwfrDt.js"),__vite__mapDeps([49,4,5,1,18,19,12,11,10,17,30,50,51,52]))),E4=v.lazy(()=>z(()=>import("./MerlinOnboarding-dwODW2Aj.js"),__vite__mapDeps([53,4,5,1,44,45,11,8,46,9,10,12,13,17,47,24,51]))),S4=v.lazy(()=>z(()=>import("./Dashboard-DsMLpvp9.js"),__vite__mapDeps([54,55,4,56,33,34,57,30,2,58,31,32,12,59,38,60,61,24,62,63,64,65,66,15,67,68,69,70,71,51,72,73,74,75,76,77,48,78,79,19,11,10,80,81,5,44,45,8,46,47,7]))),b4=v.lazy(()=>z(()=>import("./DashboardHome-DUVJMmAf.js"),__vite__mapDeps([82,33,34,83,32,12,31,84,63,64,65,67,85,60,74,75,35,25,2,86,87,88,4,28,57,89,51,90,91,92,93,8
2060,24]))),C4=v.lazy(()=>z(()=>import("./DashboardHomeV2-C3IXpES_.js"),__vite__mapDeps([94,33,34,95,2,63,31,32,12,64,65,4,92,35,67,85,51,60,24,25,28,86,87,88]))),T4=v.lazy(()=>z(()=>import("./JobsNew-Bjob0ntx.js"),__vite__mapDeps([96,50,33,34,47,4,5,6,7,8,44,45,11,46,9,10,12,13,1,78,31,32,17,18,19,97,98,24,87,58,99,71,100,101,102,83,103,104,105,88,85,67,59,106,107,26]))),P4=v.lazy(()=>z(()=>import("./JobsList-h_Z5Y3pi.js"),__vite__mapDeps([108,33,34,101,102,2,9,10,11,12,8,13,4,109,110,32,111,55,97,1,112,35,113,114,115,116,36,95,117,80,93,118,91,89,28,67,84,103,60,59,119,104,88,120,65,64,86,87,121,122,123]))),R4=v.lazy(()=>z(()=>import("./JobDetail-2ojze9H3.js"),__vite__mapDeps([124,33,34,1,2,6,9,10,11,12,8,13,19,80,81,117,93,88,104,21,22,110,32,31,5,125,45,50,126,127,24,105,106,16,28,4,44,46,7,62,79,18,111,55,78,36,35,128,56,129,130,131,101,102,100,83,103,132,64,133,134,107,74,135,136,137,67,138,15,85,87,139,140,141,109,112,142,143,38,144,14,145,91]))),A4=v.lazy(()=>z(()=>import("./Settings-DwfAUVsX.js"),__vite__mapDeps([146,33,34,4,5,35,74,144,126,88,26]))),k4=v.lazy(()=>z(()=>import("./MyAccount-DGUAw2uX.js"),__vite__mapDeps([147,33,34,1,4,5,2,44,45,11,8,46,136,9,10,12,13,47,83,79,60,51,90,103,119,35,91,148,74]))),_4=v.lazy(()=>z(()=>import("./PlanUpgrade-CxfamAWG.js"),__vite__mapDeps([149,1,36]))),N4=v.lazy(()=>z(()=>import("./Users-CaTdAQSW.js"),__vite__mapDeps([150,34,102,33,57,1,2,4,125,45,11,9,10,12,8,13,134,22,110,32,31,47,5,7,83,145,24,84,28,128,60,35,25,67,51,88,133]))),O4=v.lazy(()=>z(()=>import("./Companies-x33xux-q.js"),__vite__mapDeps([151,33,34,4,5,2,7,8,9,10,11,12,13,152,31,32,110,35,51,60,91,84,67,121,88]))),I4=v.lazy(()=>z(()=>import("./CompanyDetail-Co2Elpnh.js"),__vite__mapDeps([153,33,34,1,2,152,60,91,71,36,51,121,107,90,93,80]))),M4=v.lazy(()=>z(()=>import("./SellCover-QuUWHxxP.js"),__vite__mapDeps([154,2,155,125,45,11,35,72,28,107]))),j4=v.lazy(()=>z(()=>import("./CreateQuote-B24oe8lA.js"),__vite__mapDeps([156,50,33,34,1,2,4,5,6,9,10,11,12,8,13,7,56,14,112,35,113,116,36,110,32,31,47,98,24,87,155,157,138,28,64,15,137,79,65,145,84,140,67,158,159,130,129,17,18,19,99,71,160,161,134,22,72,122,97,107,139,26]))),D4=v.lazy(()=>z(()=>import("./MyQuotes-CCtfgOIY.js"),__vite__mapDeps([162,2,4,9,10,11,12,8,13,163,34,102,101,109,152,33,110,32,112,35,113,115,116,36,164,45,88,46,67,145,84,59,119,144,38,121,104,117,80,93,118]))),$4=v.lazy(()=>z(()=>import("./QuoteDetail-PM6fskwk.js"),__vite__mapDeps([165,33,34,2,110,32,12,130,129,163,102,63,31,64,65,100,9,10,11,8,13,5,101,83,103,24,35,36,121,87,161,107,138,139,88,93,80]))),L4=v.lazy(()=>z(()=>import("./ReferralCodes-CKyDpl6C.js"),__vite__mapDeps([166,4,5,1,136,2,31,32,12,6,167,50,48,67,168,62,128,26]))),F4=v.lazy(()=>z(()=>import("./SignUpCodes-Bk__jUjL.js"),__vite__mapDeps([169,4,5,1,136,2,31,32,12,6,167,50,48,67,168,62,128,26]))),z4=v.lazy(()=>z(()=>import("./MyCustomers-CgvEQc6c.js"),__vite__mapDeps([170,33,34,2,141,47,9,10,11,12,8,13,101,102,112,35,113,171,114,116,36,31,32,4,5,18,19,17,98,24,87,60,67,15,84,88,139,72]))),U4=v.lazy(()=>z(()=>import("./CustomerProfile-XhBOmbGy.js"),__vite__mapDeps([172,34,33,2,110,32,12,4,18,19,11,10,17,109,98,5,24,87,47,163,102,101,112,35,114,115,142,143,171,116,36,51,138,91,121,88,93,80]))),H4=v.lazy(()=>z(()=>import("./CustomerMeasurementNew-BqxNa_E8.js"),__vite__mapDeps([173,4,5,44,45,11,8,46,1,9,10,12,13,31,32,111,55,17,18,19,47,50,36,24,67]))),B4=v.lazy(()=>z(()=>import("./Help-q9oaMmDR.js"),__vite__mapDeps([174,4,6,5,33,34,35,75,175]))),V4=v.lazy(()=>z(()=>import("./FeatureRequest-BQV8fxuo.js"),__vite__mapDeps([176,33,34,4,6,5,9,10,11,12,8,13,35,76,28]))),W4=v.lazy(()=>z(()=>import("./Academy-DIi2Mh_h.js"),__vite__mapDeps([177,2,178,69,72,91,64,35,73,28,25,88]))),Q4=v.lazy(()=>z(()=>import("./AcademyGuide-Dne4CROs.js"),__vite__mapDeps([179,2,178,69,72,91,64,35,36,25,28,76,107,104,88]))),G4=v.lazy(()=>z(()=>import("./IncompleteSignups-BfZiBqMl.js"),__vite__mapDeps([180,1,77,181]))),q4=v.lazy(()=>z(()=>import("./SelfMeasureSuccess-DwRX2tEG.js"),__vite__mapDeps([182,1,50,24,28]))),K4=v.lazy(()=>z(()=>import("./TestAccountSetup-doIy7alG.js"),__vite__mapDeps([183,1,4,5,44,45,11,8,46,50,36,74]))),Y4=v.lazy(()=>z(()=>import("./ABMeasure-BJV1Mgqx.js"),__vite__mapDeps([184,125,45,11,164,12,88,46,110,32,130,129,4,5,7,8,1,14,31,135,67,134,22,64,13,87,185,28,145,65,55,76,106,131,101,34,102,100,9,10,83,103,132,104,122,36,61,123,186,137,38,37,140,19,62,158,2,24,33,16,15,25,175,139,75,161,
206128,79,47,18,17,59,144,121,105,85,84,187,160]))),X4=v.lazy(()=>z(()=>import("./ABMeasureIntro-CJZBGjjM.js"),__vite__mapDeps([188,1,31,32,12,4,9,10,11,8,13,30,187,129,135,33,34,36,106,62,64,24,15,139,75]))),J4=v.lazy(()=>z(()=>import("./DronePhotoMeasure-Cpxjzc1N.js"),__vite__mapDeps([189,4,31,32,12,110,9,10,11,8,13,78,132,79,140,137,186,158,104,88,67,37,38,42,33,34,127,36,160,75,190,139]))),Z4=v.lazy(()=>z(()=>import("./RoughQuote-NhuHNzW3.js"),__vite__mapDeps([191,34,4,5,6,9,10,11,12,8,13,14,7,31,32,110,17,18,19,30,157,1,2,50,138,28,64,24,15,137,79,65,145,87,84,140,67,158,159,55,47,78,185,88,61,75,190,106,36,51,144]))),e$=v.lazy(()=>z(()=>import("./RoughQuoteLanding-BkiTzpha.js"),__vite__mapDeps([192,30,64,28]))),t$=v.lazy(()=>z(()=>import("./RoughQuoteAuth-C2b_LVah.js"),__vite__mapDeps([193,1,4,5,125,45,11,30,36,37,38,24,26]))),n$=v.lazy(()=>z(()=>import("./RoughQuoteDashboard-Boa1aBtJ.js"),__vite__mapDeps([194,4,5,9,10,11,12,8,13,2,30,34,50,47,110,32,66,67,144,148,88,84,24,160,37,38,175,76,93,80]))),r$=v.lazy(()=>z(()=>import("./RoughQuoteProfileSetup-BIV0rzEz.js"),__vite__mapDeps([195,1,5,9,10,11,12,8,13,30,24]))),s$=v.lazy(()=>z(()=>import("./RoughQuoteDetail-7t2Tcj6L.js"),__vite__mapDeps([196,1,2,30,111,24,104,36,144,64,51,121,16,93,80]))),o$=v.lazy(()=>z(()=>import("./RoughQuoteJoin-DqObf5HA.js"),__vite__mapDeps([197,1,4,5,30,24,51,28,37,38,26]))),i$=v.lazy(()=>z(()=>import("./MerlinDealerLandingV3-CiXA7uQZ.js"),__vite__mapDeps([198,4,5,17,47,199,24,37,38,28,36,140,70,60,72,52,26]))),a$=v.lazy(()=>z(()=>import("./Start-80ttxR6G.js"),__vite__mapDeps([200,199]))),l$=v.lazy(()=>z(()=>import("./DistributorAuth-D83yj5vC.js"),__vite__mapDeps([201,1,30,36,51,181]))),c$=v.lazy(()=>z(()=>import("./DistributorDashboard-BMggZle7.js"),__vite__mapDeps([202,1,136,2,125,45,11,6,31,32,12,5,30,66,203,60,90,89,25,68,28,38,168,24,93,80]))),u$=v.lazy(()=>z(()=>import("./MultiCompanyHome-BOk2TU65.js"),__vite__mapDeps([204,33,34,112,35,142,4,5,7,8,2,152,44,45,11,46,9,10,12,13,17,47,102,31,32,91,89,60,51,203,67,24,84,90,79,36,25,144,66,88]))),d$=v.lazy(()=>z(()=>import("./Calendar-Si-KRIkE.js"),__vite__mapDeps([205,112,35,113,2,9,10,11,12,8,13,101,34,102,55,59,104,88,144,67,120,87]))),f$=new PR({defaultOptions:{queries:{staleTime:2*60*1e3,gcTime:10*60*1e3,refetchOnWindowFocus:!1,retry:1}}}),qn=({children:e})=>h.jsxs(h.Fragment,{children:[h.jsx(Ck,{}),e,h.jsx(Rk,{})]}),p$=()=>(Sk(),null),h$=()=>h.jsx(Dx,{children:h.jsx(RR,{client:f$,children:h.jsx(JP,{children:h.jsxs(jA,{children:[h.jsx(p$,{}),h.jsx(TT,{}),h.jsx(r2,{}),h.jsxs(kA,{children:[h.jsx(Tk,{}),h.jsx(v.Suspense,{fallback:h.jsx(i4,{}),children:h.jsxs(xA,{children:[h.jsxs(U,{path:"/app",element:h.jsx(S4,{}),children:[h.jsx(U,{index:!0,element:h.jsx(b4,{})}),h.jsx(U,{path:"dashboard-v2",element:h.jsx(C4,{})}),h.jsx(U,{path:"jobs/new",element:h.jsx(T4,{})}),h.jsx(U,{path:"jobs",element:h.jsx(P4,{})}),h.jsx(U,{path:"calendar",element:h.jsx(d$,{})}),h.jsx(U,{path:"jobs/:id",element:h.jsx(R4,{})}),h.jsx(U,{path:"users",element:h.jsx(N4,{})}),h.jsx(U,{path:"companies",element:h.jsx(O4,{})}),h.jsx(U,{path:"companies/:id",element:h.jsx(I4,{})}),h.jsx(U,{path:"account",element:h.jsx(k4,{})}),h.jsx(U,{path:"settings",element:h.jsx(A4,{})}),h.jsx(U,{path:"upgrade",element:h.jsx(_4,{})}),h.jsx(U,{path:"sell-cover",element:h.jsx(M4,{})}),h.jsx(U,{path:"create-quote",element:h.jsx(j4,{})}),h.jsx(U,{path:"customers",element:h.jsx(z4,{})}),h.jsx(U,{path:"customers/:id",element:h.jsx(U4,{})}),h.jsx(U,{path:"customers/measurement/new",element:h.jsx(H4,{})}),h.jsx(U,{path:"quotes",element:h.jsx(D4,{})}),h.jsx(U,{path:"quotes/:id",element:h.jsx($4,{})}),h.jsx(U,{path:"referral-codes",element:h.jsx(L4,{})}),h.jsx(U,{path:"signup-codes",element:h.jsx(F4,{})}),h.jsx(U,{path:"incomplete-signups",element:h.jsx(G4,{})}),h.jsx(U,{path:"help",element:h.jsx(B4,{})}),h.jsx(U,{path:"feature-request",element:h.jsx(V4,{})}),h.jsx(U,{path:"academy",element:h.jsx(W4,{})}),h.jsx(U,{path:"academy/:guideId",element:h.jsx(Q4,{})}),h.jsx(U,{path:"test-setup",element:h.jsx(K4,{})})]}),h.jsx(U,{path:"/app/ab-measure",element:h.jsx(Y4,{})}),h.jsx(U,{path:"/app/ab-measure/intro",element:h.jsx(X4,{})}),h.jsx(U,{path:"/app/drone-photo-measure",element:h.jsx(J4,{})}),h.jsx(U,{path:"/app/liner-measure/intro",element:h.jsx(vA,{to:"/app",replace:!0})}),h.jsx(U,{path:"/app/select-company",element:h.jsx(u$,{})}),h.jsx(U,{path:"/auth",element:h.jsx(m4,{})}),h.jsx(U,{path:"/verify-email",element:h.jsx(g4,{})}),h.jsx(U,{path:"/reset-password",element:h.jsx(y4,{})}),h.jsx(U,{path:"/set-new-password",element:h.jsx(v4,{})}),h.jsx(U,{path:"/onboarding",element:h.jsx(w4,{})}),h.jsx(U,{path:"/self-measure-onboarding",element:h.jsx(x4,{})}),h.jsx(U,{path:"/self-measure-success",element:h.jsx(q4,{})}),h.jsx(U,{path:"/rough-quote",element:h.jsx(e$,{})}),h.jsx(U,{path:"/rough-quote/new",element:h.jsx(Z4,{})}),h.jsx(U,{path:"/rough-quote/auth",element:h.jsx(t$,{})}),h.jsx(U,{path:"/rough-quote/profile-setup",element:h.jsx(r$,{})}),h.jsx(U,{path:"/rough-quote/dashboard",element:h.jsx(n$,{})}),h.jsx(U,{path:"/rough-quote/join/:code",element:h.jsx(o$,{})}),h.jsx(U,{path:"/rough-quote/:submissionId",element:h.jsx(s$,{})}),h.jsx(U,{path:"/merlin",element:h.jsx(i$,{})}),h.jsx(U,{path:"/start",element:h.jsx(a$,{})}),h.jsx(U,{path:"/merlin-onboarding",element:h.jsx(E4,{})}),h.jsx(U,{path:"/distributor",element:h.jsx(c$,{})}),h.jsx(U,{path:"/distributor/auth",element:h.jsx(l$,{})}
206),h.jsx(U,{path:"/",element:h.jsx(qn,{children:h.jsx(o4,{})})}),h.jsx(U,{path:"/why-choose-us",element:h.jsx(qn,{children:h.jsx(h4,{})})}),h.jsx(U,{path:"/how-it-works",element:h.jsx(qn,{children:h.jsx(a4,{})})}),h.jsx(U,{path:"/submit",element:h.jsx(qn,{children:h.jsx(l4,{})})}),h.jsx(U,{path:"/contact",element:h.jsx(qn,{children:h.jsx(c4,{})})}),h.jsx(U,{path:"/terms",element:h.jsx(qn,{children:h.jsx(u4,{})})}),h.jsx(U,{path:"/privacy",element:h.jsx(qn,{children:h.jsx(d4,{})})}),h.jsx(U,{path:"/success",element:h.jsx(qn,{children:h.jsx(f4,{})})}),h.jsx(U,{path:"*",element:h.jsx(p4,{})})]})})]})]})})})});Q0(document.getElementById("root")).render(h.jsx(h$,{}));export{M$ as $,OC as A,ks as B,Qm as C,Kl as D,HC as E,DC as F,KD as G,Nb as H,xk as I,uC as J,Z0 as K,mt as L,FC as M,k$ as N,A$ as O,dt as P,Me as Q,UC as R,Ak as S,JP as T,Kt as U,Pk as V,Lb as W,Tw as X,xP as Y,Yl as Z,j$ as _,G0 as a,N as a0,fd as a1,R$ as a2,bk as a3,pk as a4,Vf as a5,RP as a6,On as a7,Kw as a8,lC as a9,wD as aA,PM as aB,bi as aC,bR as aD,xy as aE,Li as aF,z as aG,g$ as aH,q0 as aI,Cw as aJ,w$ as aK,y$ as aL,BC as aM,LC as aN,bw as aO,vA as aP,DD as aQ,MC as aR,XD as aS,n4 as aT,zC as aU,up as aV,lo as aW,AP as aa,J0 as ab,Vi as ac,br as ad,Bf as ae,kP as af,_P as ag,ay as ah,O$ as ai,I$ as aj,v$ as ak,ic as al,hR as am,iR as an,C$ as ao,Ed as ap,zt as aq,ac as ar,sR as as,oR as at,xd as au,hx as av,xR as aw,cR as ax,et as ay,T$ as az,_$ as b,ft as c,gn as d,P$ as e,OD as f,IC as g,D$ as h,He as i,h as j,Dn as k,hk as l,S$ as m,b$ as n,ZP as o,Ew as p,wn as q,v as r,x$ as s,N$ as t,Gi as u,qD as v,QD as w,GD as x,i4 as y,i2 as z};
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.