datocms-plugin-alt-text-ai 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -9
- package/dist/assets/index-B4tZ-yA4.css +1 -0
- package/dist/assets/index-DuxgF_No.js +26 -0
- package/dist/index.html +2 -2
- package/docs/generate-alt-text-field.jpg +0 -0
- package/docs/generate-alt-text-media-selection.jpg +0 -0
- package/docs/generate-alt-text-single-asset.jpg +0 -0
- package/package.json +2 -2
- package/dist/assets/index-uZ_ZFecY.js +0 -26
- package/dist/assets/index-vIa4Mmoc.css +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
function mE(r,n){for(var i=0;i<n.length;i++){const u=n[i];if(typeof u!="string"&&!Array.isArray(u)){for(const o in u)if(o!=="default"&&!(o in r)){const c=Object.getOwnPropertyDescriptor(u,o);c&&Object.defineProperty(r,o,c.get?c:{enumerable:!0,get:()=>u[o]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function u(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();var vu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ro(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var zc={exports:{}},zi={};var Xv;function vE(){if(Xv)return zi;Xv=1;var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(u,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var m in o)m!=="key"&&(c[m]=o[m])}else c=o;return o=c.ref,{$$typeof:r,type:u,key:d,ref:o!==void 0?o:null,props:c}}return zi.Fragment=n,zi.jsx=i,zi.jsxs=i,zi}var Qv;function yE(){return Qv||(Qv=1,zc.exports=vE()),zc.exports}var Fe=yE(),Uc={exports:{}};var Zv;function gE(){return Zv||(Zv=1,(function(r){(function(){var n={}.hasOwnProperty;function i(){for(var c="",d=0;d<arguments.length;d++){var m=arguments[d];m&&(c=o(c,u(m)))}return c}function u(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return i.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var d="";for(var m in c)n.call(c,m)&&c[m]&&(d=o(d,m));return d}function o(c,d){return d?c?c+" "+d:c+d:c}r.exports?(i.default=i,r.exports=i):window.classNames=i})()})(Uc)),Uc.exports}var bE=gE();const jt=ro(bE);var Nc={exports:{}},me={};var Jv;function _E(){if(Jv)return me;Jv=1;var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function S(C){return C===null||typeof C!="object"?null:(C=b&&C[b]||C["@@iterator"],typeof C=="function"?C:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,M={};function R(C,V,X){this.props=C,this.context=V,this.refs=M,this.updater=X||E}R.prototype.isReactComponent={},R.prototype.setState=function(C,V){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,V,"setState")},R.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function k(){}k.prototype=R.prototype;function B(C,V,X){this.props=C,this.context=V,this.refs=M,this.updater=X||E}var Y=B.prototype=new k;Y.constructor=B,w(Y,R.prototype),Y.isPureReactComponent=!0;var z=Array.isArray;function F(){}var j={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function ie(C,V,X){var Z=X.ref;return{$$typeof:r,type:C,key:V,ref:Z!==void 0?Z:null,props:X}}function he(C,V){return ie(C.type,V,C.props)}function fe(C){return typeof C=="object"&&C!==null&&C.$$typeof===r}function le(C){var V={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(X){return V[X]})}var pe=/\/+/g;function Ne(C,V){return typeof C=="object"&&C!==null&&C.key!=null?le(""+C.key):V.toString(36)}function _e(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(F,F):(C.status="pending",C.then(function(V){C.status==="pending"&&(C.status="fulfilled",C.value=V)},function(V){C.status==="pending"&&(C.status="rejected",C.reason=V)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function U(C,V,X,Z,ue){var ce=typeof C;(ce==="undefined"||ce==="boolean")&&(C=null);var be=!1;if(C===null)be=!0;else switch(ce){case"bigint":case"string":case"number":be=!0;break;case"object":switch(C.$$typeof){case r:case n:be=!0;break;case y:return be=C._init,U(be(C._payload),V,X,Z,ue)}}if(be)return ue=ue(C),be=Z===""?"."+Ne(C,0):Z,z(ue)?(X="",be!=null&&(X=be.replace(pe,"$&/")+"/"),U(ue,V,X,"",function(fr){return fr})):ue!=null&&(fe(ue)&&(ue=he(ue,X+(ue.key==null||C&&C.key===ue.key?"":(""+ue.key).replace(pe,"$&/")+"/")+be)),V.push(ue)),1;be=0;var $e=Z===""?".":Z+":";if(z(C))for(var Pe=0;Pe<C.length;Pe++)Z=C[Pe],ce=$e+Ne(Z,Pe),be+=U(Z,V,X,ce,ue);else if(Pe=S(C),typeof Pe=="function")for(C=Pe.call(C),Pe=0;!(Z=C.next()).done;)Z=Z.value,ce=$e+Ne(Z,Pe++),be+=U(Z,V,X,ce,ue);else if(ce==="object"){if(typeof C.then=="function")return U(_e(C),V,X,Z,ue);throw V=String(C),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return be}function K(C,V,X){if(C==null)return C;var Z=[],ue=0;return U(C,Z,"","",function(ce){return V.call(X,ce,ue++)}),Z}function ee(C){if(C._status===-1){var V=C._result;V=V(),V.then(function(X){(C._status===0||C._status===-1)&&(C._status=1,C._result=X)},function(X){(C._status===0||C._status===-1)&&(C._status=2,C._result=X)}),C._status===-1&&(C._status=0,C._result=V)}if(C._status===1)return C._result.default;throw C._result}var Se=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},we={map:K,forEach:function(C,V,X){K(C,function(){V.apply(this,arguments)},X)},count:function(C){var V=0;return K(C,function(){V++}),V},toArray:function(C){return K(C,function(V){return V})||[]},only:function(C){if(!fe(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return me.Activity=g,me.Children=we,me.Component=R,me.Fragment=i,me.Profiler=o,me.PureComponent=B,me.StrictMode=u,me.Suspense=h,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,me.__COMPILER_RUNTIME={__proto__:null,c:function(C){return j.H.useMemoCache(C)}},me.cache=function(C){return function(){return C.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(C,V,X){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var Z=w({},C.props),ue=C.key;if(V!=null)for(ce in V.key!==void 0&&(ue=""+V.key),V)!Q.call(V,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&V.ref===void 0||(Z[ce]=V[ce]);var ce=arguments.length-2;if(ce===1)Z.children=X;else if(1<ce){for(var be=Array(ce),$e=0;$e<ce;$e++)be[$e]=arguments[$e+2];Z.children=be}return ie(C.type,ue,Z)},me.createContext=function(C){return C={$$typeof:d,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:c,_context:C},C},me.createElement=function(C,V,X){var Z,ue={},ce=null;if(V!=null)for(Z in V.key!==void 0&&(ce=""+V.key),V)Q.call(V,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(ue[Z]=V[Z]);var be=arguments.length-2;if(be===1)ue.children=X;else if(1<be){for(var $e=Array(be),Pe=0;Pe<be;Pe++)$e[Pe]=arguments[Pe+2];ue.children=$e}if(C&&C.defaultProps)for(Z in be=C.defaultProps,be)ue[Z]===void 0&&(ue[Z]=be[Z]);return ie(C,ce,ue)},me.createRef=function(){return{current:null}},me.forwardRef=function(C){return{$$typeof:m,render:C}},me.isValidElement=fe,me.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:ee}},me.memo=function(C,V){return{$$typeof:p,type:C,compare:V===void 0?null:V}},me.startTransition=function(C){var V=j.T,X={};j.T=X;try{var Z=C(),ue=j.S;ue!==null&&ue(X,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(F,Se)}catch(ce){Se(ce)}finally{V!==null&&X.types!==null&&(V.types=X.types),j.T=V}},me.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},me.use=function(C){return j.H.use(C)},me.useActionState=function(C,V,X){return j.H.useActionState(C,V,X)},me.useCallback=function(C,V){return j.H.useCallback(C,V)},me.useContext=function(C){return j.H.useContext(C)},me.useDebugValue=function(){},me.useDeferredValue=function(C,V){return j.H.useDeferredValue(C,V)},me.useEffect=function(C,V){return j.H.useEffect(C,V)},me.useEffectEvent=function(C){return j.H.useEffectEvent(C)},me.useId=function(){return j.H.useId()},me.useImperativeHandle=function(C,V,X){return j.H.useImperativeHandle(C,V,X)},me.useInsertionEffect=function(C,V){return j.H.useInsertionEffect(C,V)},me.useLayoutEffect=function(C,V){return j.H.useLayoutEffect(C,V)},me.useMemo=function(C,V){return j.H.useMemo(C,V)},me.useOptimistic=function(C,V){return j.H.useOptimistic(C,V)},me.useReducer=function(C,V,X){return j.H.useReducer(C,V,X)},me.useRef=function(C){return j.H.useRef(C)},me.useState=function(C){return j.H.useState(C)},me.useSyncExternalStore=function(C,V,X){return j.H.useSyncExternalStore(C,V,X)},me.useTransition=function(){return j.H.useTransition()},me.version="19.2.4",me}var Wv;function Cd(){return Wv||(Wv=1,Nc.exports=_E()),Nc.exports}var $=Cd();const ye=ro($),ey=mE({__proto__:null,default:ye},[$]),SE="_button_nnl9b_1",EE="_disabled_nnl9b_30",TE="_fullWidth_nnl9b_127",wE="_button__leftIcon_nnl9b_133",OE="_button__rightIcon_nnl9b_134",Dr={button:SE,disabled:EE,"buttonType-muted":"_buttonType-muted_nnl9b_34","buttonType-primary":"_buttonType-primary_nnl9b_50","buttonType-negative":"_buttonType-negative_nnl9b_80","buttonSize-xxs":"_buttonSize-xxs_nnl9b_97","buttonSize-xs":"_buttonSize-xs_nnl9b_102","buttonSize-s":"_buttonSize-s_nnl9b_107","buttonSize-m":"_buttonSize-m_nnl9b_112","buttonSize-l":"_buttonSize-l_nnl9b_117","buttonSize-xl":"_buttonSize-xl_nnl9b_122",fullWidth:TE,button__leftIcon:wE,button__rightIcon:OE};function ty(r){var n,i=r.children,u=r.className,o=r.disabled,c=r.buttonType,d=c===void 0?"muted":c,m=r.buttonSize,h=m===void 0?"m":m,p=r.fullWidth,y=r.onClick,g=r.style,b=r.leftIcon,S=r.rightIcon,E=r.type,w=E===void 0?"button":E;return ye.createElement("button",{type:w,className:jt(Dr.button,Dr["buttonType-".concat(d)],Dr["buttonSize-".concat(h)],(n={},n[Dr.disabled]=o,n[Dr.fullWidth]=p,n),u),disabled:o,onClick:y,style:g},b&&ye.createElement("span",{className:Dr.button__leftIcon},b),i&&ye.createElement("span",null,i),S&&ye.createElement("span",{className:Dr.button__rightIcon},S))}var Iu=function(){return Iu=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},Iu.apply(this,arguments)};function ny(r){return r===r.toLowerCase()?r:r.replace(/[A-Z]/g,function(n){return"-".concat(n.toLowerCase())})}function CE(r,n){return n===void 0&&(n=!1),Iu(Iu({padding:n?void 0:r.bodyPadding.map(function(i){return"".concat(i,"px")}).join(" ")},Object.fromEntries(Object.entries(r.theme).flatMap(function(i){var u,o=i[0],c=i[1];return[["--".concat(ny(o)),c],["--".concat(ny("".concat(o,"RgbComponents"))),((u=c.match(/rgb\((\d+, \d+, \d+)\)/))===null||u===void 0?void 0:u[1])||void 0]]}))),r.cssDesignTokens)}const AE="_themeVariables_11af8_1",xE="_canvas_11af8_85",ry={themeVariables:AE,canvas:xE};var ME=$.createContext(null);function RE(r){var n=r.ctx,i=r.children,u=r.noAutoResizer,o=n.mode;$.useEffect(function(){if(!u&&"startAutoResizer"in n){var d=n;return d.startAutoResizer(),function(){d.stopAutoResizer()}}},[o,u]);var c=n.cssDesignTokens["--color--scrollbar--fill"];return $.useEffect(function(){if(!(typeof document>"u"||!c)){var d="--color--scrollbar--fill",m=document.documentElement,h=m.style.getPropertyValue(d);return m.style.setProperty(d,c),function(){h?m.style.setProperty(d,h):m.style.removeProperty(d)}}},[c]),ye.createElement(ME.Provider,{value:n},ye.createElement("div",{className:jt(ry.themeVariables,ry.canvas),style:CE(n)},i))}var yu={exports:{}},ut={},ay;function Ad(){if(ay)return ut;ay=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.DATA_CLONE_ERROR=ut.MESSAGE=ut.REJECTED=ut.FULFILLED=ut.REPLY=ut.CALL=ut.HANDSHAKE_REPLY=ut.HANDSHAKE=void 0;const r="handshake";ut.HANDSHAKE=r;const n="handshake-reply";ut.HANDSHAKE_REPLY=n;const i="call";ut.CALL=i;const u="reply";ut.REPLY=u;const o="fulfilled";ut.FULFILLED=o;const c="rejected";ut.REJECTED=c;const d="message";ut.MESSAGE=d;const m="DataCloneError";return ut.DATA_CLONE_ERROR=m,ut}var tn={},iy;function pb(){if(iy)return tn;iy=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.ERR_NO_IFRAME_SRC=tn.ERR_NOT_IN_IFRAME=tn.ERR_CONNECTION_TIMEOUT=tn.ERR_CONNECTION_DESTROYED=void 0;const r="ConnectionDestroyed";tn.ERR_CONNECTION_DESTROYED=r;const n="ConnectionTimeout";tn.ERR_CONNECTION_TIMEOUT=n;const i="NotInIframe";tn.ERR_NOT_IN_IFRAME=i;const u="NoIframeSrc";return tn.ERR_NO_IFRAME_SRC=u,tn}var gu={exports:{}},ly;function DE(){return ly||(ly=1,(function(r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=()=>{const u=[];let o=!1;return{destroy(){o=!0,u.forEach(c=>{c()})},onDestroy(c){o?c():u.push(c)}}};n.default=i,r.exports=n.default})(gu,gu.exports)),gu.exports}var bu={exports:{}},qr={},uy;function mb(){if(uy)return qr;uy=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.deserializeError=qr.serializeError=void 0;const r=i=>{let u=i.name,o=i.message,c=i.stack;return{name:u,message:o,stack:c}};qr.serializeError=r;const n=i=>{const u=new Error;return Object.keys(i).forEach(o=>u[o]=i[o]),u};return qr.deserializeError=n,qr}var oy;function qE(){return oy||(oy=1,(function(r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=Ad(),u=mb(),o=(c,d,m)=>{const h=c.localName,p=c.local,y=c.remote,g=c.originForSending,b=c.originForReceiving;let S=!1;m(`${h}: Connecting call receiver`);const E=w=>{if(w.source!==y||w.data.penpal!==i.CALL)return;if(w.origin!==b){m(`${h} received message from origin ${w.origin} which did not match expected origin ${b}`);return}const M=w.data,R=M.methodName,k=M.args,B=M.id;m(`${h}: Received ${R}() call`);const Y=z=>F=>{if(m(`${h}: Sending ${R}() reply`),S){m(`${h}: Unable to send ${R}() reply due to destroyed connection`);return}const j={penpal:i.REPLY,id:B,resolution:z,returnValue:F};z===i.REJECTED&&F instanceof Error&&(j.returnValue=(0,u.serializeError)(F),j.returnValueIsError=!0);try{y.postMessage(j,g)}catch(Q){throw Q.name===i.DATA_CLONE_ERROR&&y.postMessage({penpal:i.REPLY,id:B,resolution:i.REJECTED,returnValue:(0,u.serializeError)(Q),returnValueIsError:!0},g),Q}};new Promise(z=>z(d[R].apply(d,k))).then(Y(i.FULFILLED),Y(i.REJECTED))};return p.addEventListener(i.MESSAGE,E),()=>{S=!0,p.removeEventListener(i.MESSAGE,E)}};n.default=o,r.exports=n.default})(bu,bu.exports)),bu.exports}var _u={exports:{}},Su={exports:{}},sy;function LE(){return sy||(sy=1,(function(r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;let i=0;var u=()=>++i;n.default=u,r.exports=n.default})(Su,Su.exports)),Su.exports}var cy;function zE(){return cy||(cy=1,(function(r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=Ad(),u=pb(),o=d(LE()),c=mb();function d(h){return h&&h.__esModule?h:{default:h}}var m=(h,p,y,g,b)=>{const S=p.localName,E=p.local,w=p.remote,M=p.originForSending,R=p.originForReceiving;let k=!1;b(`${S}: Connecting call sender`);const B=Y=>function(){for(var z=arguments.length,F=new Array(z),j=0;j<z;j++)F[j]=arguments[j];b(`${S}: Sending ${Y}() call`);let Q;try{w.closed&&(Q=!0)}catch{Q=!0}if(Q&&g(),k){const ie=new Error(`Unable to send ${Y}() call due to destroyed connection`);throw ie.code=u.ERR_CONNECTION_DESTROYED,ie}return new Promise((ie,he)=>{const fe=(0,o.default)(),le=pe=>{if(pe.source!==w||pe.data.penpal!==i.REPLY||pe.data.id!==fe)return;if(pe.origin!==R){b(`${S} received message from origin ${pe.origin} which did not match expected origin ${R}`);return}b(`${S}: Received ${Y}() reply`),E.removeEventListener(i.MESSAGE,le);let Ne=pe.data.returnValue;pe.data.returnValueIsError&&(Ne=(0,c.deserializeError)(Ne)),(pe.data.resolution===i.FULFILLED?ie:he)(Ne)};E.addEventListener(i.MESSAGE,le),w.postMessage({penpal:i.CALL,id:fe,methodName:Y,args:F},M)})};return y.reduce((Y,z)=>(Y[z]=B(z),Y),h),()=>{k=!0}};n.default=m,r.exports=n.default})(_u,_u.exports)),_u.exports}var Eu={exports:{}},fy;function UE(){return fy||(fy=1,(function(r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=u=>function(){if(u){for(var o=arguments.length,c=new Array(o),d=0;d<o;d++)c[d]=arguments[d];console.log("[Penpal]",...c)}};n.default=i,r.exports=n.default})(Eu,Eu.exports)),Eu.exports}var dy;function NE(){return dy||(dy=1,(function(r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=Ad(),u=pb(),o=h(DE()),c=h(qE()),d=h(zE()),m=h(UE());function h(y){return y&&y.__esModule?y:{default:y}}var p=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=g.parentOrigin,S=b===void 0?"*":b,E=g.methods,w=E===void 0?{}:E,M=g.timeout,R=g.debug;const k=(0,m.default)(R);if(window===window.top){const ie=new Error("connectToParent() must be called within an iframe");throw ie.code=u.ERR_NOT_IN_IFRAME,ie}const B=(0,o.default)(),Y=B.destroy,z=B.onDestroy,F=window,j=F.parent;return{promise:new Promise((ie,he)=>{let fe;M!==void 0&&(fe=setTimeout(()=>{const pe=new Error(`Connection to parent timed out after ${M}ms`);pe.code=u.ERR_CONNECTION_TIMEOUT,he(pe),Y()},M));const le=pe=>{try{clearTimeout()}catch{return}if(pe.source!==j||pe.data.penpal!==i.HANDSHAKE_REPLY)return;if(S!=="*"&&S!==pe.origin){k(`Child received handshake reply from origin ${pe.origin} which did not match expected origin ${S}`);return}k("Child: Received handshake reply"),F.removeEventListener(i.MESSAGE,le);const Ne={localName:"Child",local:F,remote:j,originForSending:pe.origin==="null"?"*":pe.origin,originForReceiving:pe.origin},_e={},U=(0,c.default)(Ne,w,k);z(U);const K=(0,d.default)(_e,Ne,pe.data.methodNames,Y,k);z(K),clearTimeout(fe),ie(_e)};F.addEventListener(i.MESSAGE,le),z(()=>{F.removeEventListener(i.MESSAGE,le);const pe=new Error("Connection destroyed");pe.code=u.ERR_CONNECTION_DESTROYED,he(pe)}),k("Child: Sending handshake"),j.postMessage({penpal:i.HANDSHAKE,methodNames:Object.keys(w)},S)}),destroy:Y}};n.default=p,r.exports=n.default})(yu,yu.exports)),yu.exports}var jE=NE();const HE=ro(jE);var fn=function(){return fn=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},fn.apply(this,arguments)};function hy(r,n){for(var i=fn({},r),u=0,o=n;u<o.length;u++){var c=o[u];delete i[c]}return i}function jc(r){return function(n,i){if(r){for(var u={},o=0,c=n;o<c.length;o++){var d=c[o],m=i.itemTypes[d.relationships.item_type.data.id];u[d.id]=r(d,fn(fn({},i),{itemType:m}))}return u}}}function Un(r,n){var i=function(u,o,c){if(c.mode===r){var d=GE(o),m=function(h){n(u,fn(fn(fn({},o),h),d))};return m(c),m}};return i.mode=r,i}function Xi(r,n){var i=function(u,o,c){if(c.mode===r){var d=function(m){n(u,fn(fn({},o),m))};return d(c),d}};return i.mode=r,i}function VE(){for(var r=document.querySelectorAll("body *"),n=0,i=0;i<r.length;i++)n=Math.max(r[i].getBoundingClientRect().bottom,n);return n}var GE=function(r){var n=null,i=function(p){var y=p===void 0?Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.getBoundingClientRect().height,VE()):p;y!==n&&(r.setHeight(y),n=y)},u=null,o=null,c=function(){return i()},d=function(){i(),u||(u=new ResizeObserver(c),u.observe(document.documentElement)),o||(o=new MutationObserver(c),o.observe(window.document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}))},m=function(){u&&(u.disconnect(),u=null),o&&(o.disconnect(),o=null)},h=function(){return!!u};return{updateHeight:i,startAutoResizer:d,stopAutoResizer:m,isAutoResizerActive:h}},BE=Un("renderAssetSource",function(r,n){r.renderAssetSource&&r.renderAssetSource(n.assetSourceId,n)}),IE=Un("renderConfigScreen",function(r,n){r.renderConfigScreen&&r.renderConfigScreen(n)}),PE=Un("renderFieldExtension",function(r,n){r.renderFieldExtension&&r.renderFieldExtension(n.fieldExtensionId,n)}),$E=Xi("renderInspector",function(r,n){r.renderInspector&&r.renderInspector(n.inspectorId,n)}),YE=Xi("renderInspectorPanel",function(r,n){r.renderInspectorPanel&&r.renderInspectorPanel(n.panelId,n)}),kE=Un("renderItemCollectionOutlet",function(r,n){r.renderItemCollectionOutlet&&r.renderItemCollectionOutlet(n.itemCollectionOutletId,n)}),FE=Un("renderItemFormOutlet",function(r,n){r.renderItemFormOutlet&&r.renderItemFormOutlet(n.itemFormOutletId,n)}),KE=Xi("renderItemFormSidebar",function(r,n){r.renderItemFormSidebar&&r.renderItemFormSidebar(n.sidebarId,n)}),XE=Un("renderItemFormSidebarPanel",function(r,n){r.renderItemFormSidebarPanel&&r.renderItemFormSidebarPanel(n.sidebarPaneId,n)}),QE=Un("renderManualFieldExtensionConfigScreen",function(r,n){r.renderManualFieldExtensionConfigScreen&&r.renderManualFieldExtensionConfigScreen(n.fieldExtensionId,n)}),ZE=Un("renderModal",function(r,n){r.renderModal&&r.renderModal(n.modalId,n)}),JE=Xi("renderPage",function(r,n){r.renderPage&&r.renderPage(n.pageId,n)}),WE=Xi("renderUploadSidebar",function(r,n){r.renderUploadSidebar&&r.renderUploadSidebar(n.sidebarId,n)}),eT=Un("renderUploadSidebarPanel",function(r,n){r.renderUploadSidebarPanel&&r.renderUploadSidebarPanel(n.sidebarPaneId,n)}),Xt=function(){return Xt=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},Xt.apply(this,arguments)},tT=function(r,n,i,u){function o(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function m(y){try{p(u.next(y))}catch(g){d(g)}}function h(y){try{p(u.throw(y))}catch(g){d(g)}}function p(y){y.done?c(y.value):o(y.value).then(m,h)}p((u=u.apply(r,n||[])).next())})},nT=function(r,n){var i={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},u,o,c,d=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return d.next=m(0),d.throw=m(1),d.return=m(2),typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function m(p){return function(y){return h([p,y])}}function h(p){if(u)throw new TypeError("Generator is already executing.");for(;d&&(d=0,p[0]&&(i=0)),i;)try{if(u=1,o&&(c=p[0]&2?o.return:p[0]?o.throw||((c=o.return)&&c.call(o),0):o.next)&&!(c=c.call(o,p[1])).done)return c;switch(o=0,c&&(p=[p[0]&2,c.value]),p[0]){case 0:case 1:c=p;break;case 4:return i.label++,{value:p[1],done:!1};case 5:i.label++,o=p[1],p=[0];continue;case 7:p=i.ops.pop(),i.trys.pop();continue;default:if(c=i.trys,!(c=c.length>0&&c[c.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!c||p[1]>c[0]&&p[1]<c[3])){i.label=p[1];break}if(p[0]===6&&i.label<c[1]){i.label=c[1],c=p;break}if(c&&i.label<c[2]){i.label=c[2],i.ops.push(p);break}c[2]&&i.ops.pop(),i.trys.pop();continue}p=n.call(r,i)}catch(y){p=[6,y],o=0}finally{u=c=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},py=function(r,n,i){if(i||arguments.length===2)for(var u=0,o=n.length,c;u<o;u++)(c||!(u in n))&&(c||(c=Array.prototype.slice.call(n,0,u)),c[u]=n[u]);return r.concat(c||Array.prototype.slice.call(n))};function my(r){if(!(typeof document>"u")){var n=r?.colorScheme;n!=="light"&&n!=="dark"||document.documentElement.dataset.colorScheme!==n&&(document.documentElement.dataset.colorScheme=n,document.documentElement.style.colorScheme=n)}}function rT(){return tT(this,arguments,void 0,function(r){var n,i,u,o,c,d,m,h,p,y,g,b;return r===void 0&&(r={}),nT(this,function(S){switch(S.label){case 0:return n=null,i=null,u=Xt(Xt({},r),{overrideFieldExtensions:jc(r.overrideFieldExtensions),customMarksForStructuredTextField:jc(r.customMarksForStructuredTextField),customBlockStylesForStructuredTextField:jc(r.customBlockStylesForStructuredTextField)}),o=HE({methods:Xt(Xt({sdkVersion:function(){return"0.3.1"},implementedHooks:function(){return Object.fromEntries(Object.keys(r).map(function(E){return[E,!0]}))}},Object.fromEntries(Object.entries(u).filter(function(E){var w=E[0];return!w.startsWith("render")}))),{onChange:function(E){my(E),n&&n(E)},callMethodMergingBootCtx:function(E,w,M,R,k){return i?i(E,w,M,R,k):null}})}),[4,o.promise];case 1:return c=S.sent(),[4,c.getSettings()];case 2:for(d=S.sent(),my(d),d.mode==="onBoot"&&(m=d,n=function(E){m=E},i=function(E,w,M,R,k){var B;if(E in u)return(B=u)[E].apply(B,py(py([],w,!1),[Xt(Xt(Xt(Xt({},hy(c,["getSettings","setHeight"])),hy(m,["mode","bodyPadding"])),Object.fromEntries(R.map(function(Y){return[Y,function(){for(var F=[],j=0;j<arguments.length;j++)F[j]=arguments[j];return c.callAdditionalCtxMethod(k,Y,F)}]}))),M)],!1))},u.onBoot&&u.onBoot(Xt(Xt({},c),m))),h={renderAssetSource:BE,renderConfigScreen:IE,renderFieldExtension:PE,renderItemCollectionOutlet:kE,renderItemFormOutlet:FE,renderItemFormSidebar:KE,renderItemFormSidebarPanel:XE,renderManualFieldExtensionConfigScreen:QE,renderModal:ZE,renderPage:JE,renderInspector:$E,renderInspectorPanel:YE,renderUploadSidebar:WE,renderUploadSidebarPanel:eT},p=0,y=Object.values(h);p<y.length;p++)if(g=y[p],b=g(u,c,d),b){n=b;break}return[2]}})})}var Hc={exports:{}},vt={};var vy;function aT(){if(vy)return vt;vy=1;var r=Cd();function n(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var u={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(h,p,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:h,containerInfo:p,implementation:y}}var d=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,vt.createPortal=function(h,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(n(299));return c(h,p,null,y)},vt.flushSync=function(h){var p=d.T,y=u.p;try{if(d.T=null,u.p=2,h)return h()}finally{d.T=p,u.p=y,u.d.f()}},vt.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(h,p))},vt.prefetchDNS=function(h){typeof h=="string"&&u.d.D(h)},vt.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var y=p.as,g=m(y,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?u.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:S}):y==="script"&&u.d.X(h,{crossOrigin:g,integrity:b,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},vt.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=m(p.as,p.crossOrigin);u.d.M(h,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&u.d.M(h)},vt.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,g=m(y,p.crossOrigin);u.d.L(h,y,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},vt.preloadModule=function(h,p){if(typeof h=="string")if(p){var y=m(p.as,p.crossOrigin);u.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else u.d.m(h)},vt.requestFormReset=function(h){u.d.r(h)},vt.unstable_batchedUpdates=function(h,p){return h(p)},vt.useFormState=function(h,p,y){return d.H.useFormState(h,p,y)},vt.useFormStatus=function(){return d.H.useHostTransitionStatus()},vt.version="19.2.4",vt}var yy;function vb(){if(yy)return Hc.exports;yy=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(n){console.error(n)}}return r(),Hc.exports=aT(),Hc.exports}var iT=vb();const lT="_fieldError_kqzsn_1",uT={fieldError:lT};function oT(r){var n=r.children;return ye.createElement("div",{className:uT.fieldError},n)}const sT="_FieldGroup_uz9ju_1",cT="_FieldGroup__item_uz9ju_5",gy={FieldGroup:sT,FieldGroup__item:cT};var rd=function(){return rd=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},rd.apply(this,arguments)},fT=function(r,n){var i={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&n.indexOf(u)<0&&(i[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(r);o<u.length;o++)n.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(r,u[o])&&(i[u[o]]=r[u[o]]);return i};function dT(r){var n=r.children,i=r.className,u=fT(r,["children","className"]),o=jt(gy.FieldGroup,i);return ye.createElement("div",rd({},u,{className:o}),ye.Children.map(n,function(c){return c&&ye.createElement("div",{className:gy.FieldGroup__item},c)}))}const hT="_fieldHint_1q1d1_1",pT={fieldHint:hT};function mT(r){var n=r.children;return ye.createElement("div",{className:pT.fieldHint},n)}var ad=function(){return ad=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},ad.apply(this,arguments)};function ao(r){var n=r.id,i=r.label,u=r.hint,o=r.error,c=r.required,d=r.formLabelProps,m=r.children;return ye.createElement(ye.Fragment,null,ye.createElement(OT,ad({},d,{htmlFor:n,required:c,error:!!o}),i),m,o&&ye.createElement(oT,null,o),u&&ye.createElement(mT,null,u))}const vT="_Form_5qspp_1",yT="_Form__item_5qspp_5",Vc={Form:vT,Form__item:yT,"Form__item--default":"_Form__item--default_5qspp_13","Form__item--condensed":"_Form__item--condensed_5qspp_17"};var id=function(){return id=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},id.apply(this,arguments)},gT=function(r,n){var i={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&n.indexOf(u)<0&&(i[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(r);o<u.length;o++)n.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(r,u[o])&&(i[u[o]]=r[u[o]]);return i},bT=function(r){var n=r.children,i=r.className,u=r.onSubmit,o=r.spacing,c=o===void 0?"default":o,d=gT(r,["children","className","onSubmit","spacing"]),m=jt(Vc.Form,i),h=jt(Vc.Form__item,Vc["Form__item--".concat(c)]),p=$.useCallback(function(y){y.preventDefault(),u&&u(y)},[u]);return ye.createElement("form",id({className:m,onSubmit:p},d),$.Children.map(n,function(y){return y?ye.createElement("div",{className:h},y):null}))};const _T="_formLabel_12h4v_1",ST="_formLabel__code_12h4v_8",ET="_formLabel__label_12h4v_18",TT="_formLabel__required_12h4v_30",Ui={formLabel:_T,formLabel__code:ST,"formLabel--error":"_formLabel--error_12h4v_14",formLabel__label:ET,formLabel__required:TT};var ld=function(){return ld=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},ld.apply(this,arguments)},wT=function(r,n){var i={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&n.indexOf(u)<0&&(i[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(r);o<u.length;o++)n.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(r,u[o])&&(i[u[o]]=r[u[o]]);return i},OT=function(r){var n,i=r.children,u=r.className,o=r.htmlFor,c=r.code,d=r.required,m=d===void 0?!1:d,h=r.error,p=h===void 0?!1:h,y=wT(r,["children","className","htmlFor","code","required","error"]),g=jt(Ui.formLabel,u,(n={},n[Ui["formLabel--error"]]=p,n));return ye.createElement("label",ld({className:g,htmlFor:o},y),ye.createElement("span",{className:Ui.formLabel__label},i,m&&ye.createElement("span",{className:Ui.formLabel__required},"*")),c&&ye.createElement("span",{className:Ui.formLabel__code},c))};const CT="_Section_12uz1_1",AT="_Section__header_12uz1_22",xT="_Section__arrow_12uz1_31",MT="_Section__title_12uz1_36",RT="_Section__title__content_12uz1_58",sr={Section:CT,"Section--highlighted":"_Section--highlighted_12uz1_8",Section__header:AT,"Section__header--clickable":"_Section__header--clickable_12uz1_27",Section__arrow:xT,Section__title:MT,Section__title__content:RT,"Section__arrow--is-open":"_Section__arrow--is-open_12uz1_88"};function by(r){var n,i,u,o=r.title,c=r.children,d=r.highlighted,m=r.collapsible,h=r.headerClassName,p=r.titleClassName,y=r.headerStyle,g=r.titleStyle;return ye.createElement("div",{className:jt(sr.Section,(n={},n[sr["Section--highlighted"]]=d,n))},ye.createElement("div",{className:jt(sr.Section__header,(i={},i[sr["Section__header--clickable"]]=m,i),h),style:y,onClick:m?m.onToggle:void 0},ye.createElement("div",{className:jt(sr.Section__title,p),style:g},ye.createElement("span",{className:sr.Section__title__content},m&&ye.createElement("div",{className:jt(sr.Section__arrow,(u={},u[sr["Section__arrow--is-open"]]=m.isOpen,u))}),o))),(!m||m.isOpen)&&c)}var Pu=function(){return Pu=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},Pu.apply(this,arguments)};function DT(r){var n=r.id,i=r.name,u=r.label,o=r.hint,c=r.error,d=r.required,m=r.placeholder,h=r.formLabelProps,p=r.value,y=r.onChange,g=r.selectInputProps;return ye.createElement(ao,{formLabelProps:h,id:n,required:d,error:c,hint:o,label:u},ye.createElement(wA,Pu({},g,{id:n,name:i,value:p,placeholder:m,onChange:y,error:!!c})))}function qT(r){var n=r.id,i=r.name,u=r.label,o=r.hint,c=r.error,d=r.required,m=r.placeholder,h=r.formLabelProps,p=r.value,y=r.onChange,g=r.selectInputProps;return ye.createElement(ao,{formLabelProps:h,id:n,required:d,error:c,hint:o,label:u},ye.createElement(OA,Pu({},g,{id:n,name:i,value:p,placeholder:m,onChange:y,error:!!c})))}function Hr(r){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hr(r)}function LT(r,n){if(Hr(r)!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var u=i.call(r,n);if(Hr(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(r)}function yb(r){var n=LT(r,"string");return Hr(n)=="symbol"?n:n+""}function Gi(r,n,i){return(n=yb(n))in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r}function _y(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);n&&(u=u.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),i.push.apply(i,u)}return i}function ae(r){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?_y(Object(i),!0).forEach(function(u){Gi(r,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):_y(Object(i)).forEach(function(u){Object.defineProperty(r,u,Object.getOwnPropertyDescriptor(i,u))})}return r}function zT(r){if(Array.isArray(r))return r}function UT(r,n){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var u,o,c,d,m=[],h=!0,p=!1;try{if(c=(i=i.call(r)).next,n===0){if(Object(i)!==i)return;h=!1}else for(;!(h=(u=c.call(i)).done)&&(m.push(u.value),m.length!==n);h=!0);}catch(y){p=!0,o=y}finally{try{if(!h&&i.return!=null&&(d=i.return(),Object(d)!==d))return}finally{if(p)throw o}}return m}}function ud(r,n){(n==null||n>r.length)&&(n=r.length);for(var i=0,u=Array(n);i<n;i++)u[i]=r[i];return u}function gb(r,n){if(r){if(typeof r=="string")return ud(r,n);var i={}.toString.call(r).slice(8,-1);return i==="Object"&&r.constructor&&(i=r.constructor.name),i==="Map"||i==="Set"?Array.from(r):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ud(r,n):void 0}}function NT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ln(r,n){return zT(r)||UT(r,n)||gb(r,n)||NT()}function jT(r,n){if(r==null)return{};var i={};for(var u in r)if({}.hasOwnProperty.call(r,u)){if(n.indexOf(u)!==-1)continue;i[u]=r[u]}return i}function hn(r,n){if(r==null)return{};var i,u,o=jT(r,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(r);for(u=0;u<c.length;u++)i=c[u],n.indexOf(i)===-1&&{}.propertyIsEnumerable.call(r,i)&&(o[i]=r[i])}return o}var HT=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function bb(r){var n=r.defaultInputValue,i=n===void 0?"":n,u=r.defaultMenuIsOpen,o=u===void 0?!1:u,c=r.defaultValue,d=c===void 0?null:c,m=r.inputValue,h=r.menuIsOpen,p=r.onChange,y=r.onInputChange,g=r.onMenuClose,b=r.onMenuOpen,S=r.value,E=hn(r,HT),w=$.useState(m!==void 0?m:i),M=Ln(w,2),R=M[0],k=M[1],B=$.useState(h!==void 0?h:o),Y=Ln(B,2),z=Y[0],F=Y[1],j=$.useState(S!==void 0?S:d),Q=Ln(j,2),ie=Q[0],he=Q[1],fe=$.useCallback(function(ee,Se){typeof p=="function"&&p(ee,Se),he(ee)},[p]),le=$.useCallback(function(ee,Se){var we;typeof y=="function"&&(we=y(ee,Se)),k(we!==void 0?we:ee)},[y]),pe=$.useCallback(function(){typeof b=="function"&&b(),F(!0)},[b]),Ne=$.useCallback(function(){typeof g=="function"&&g(),F(!1)},[g]),_e=m!==void 0?m:R,U=h!==void 0?h:z,K=S!==void 0?S:ie;return ae(ae({},E),{},{inputValue:_e,menuIsOpen:U,onChange:fe,onInputChange:le,onMenuClose:Ne,onMenuOpen:pe,value:K})}function se(){return se=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var u in i)({}).hasOwnProperty.call(i,u)&&(r[u]=i[u])}return r},se.apply(null,arguments)}function VT(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function Sy(r,n){for(var i=0;i<n.length;i++){var u=n[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(r,yb(u.key),u)}}function GT(r,n,i){return n&&Sy(r.prototype,n),i&&Sy(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}function od(r,n){return od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,u){return i.__proto__=u,i},od(r,n)}function BT(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),n&&od(r,n)}function $u(r){return $u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$u(r)}function _b(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_b=function(){return!!r})()}function IT(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function PT(r,n){if(n&&(Hr(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IT(r)}function $T(r){var n=_b();return function(){var i,u=$u(r);if(n){var o=$u(this).constructor;i=Reflect.construct(u,arguments,o)}else i=u.apply(this,arguments);return PT(this,i)}}function YT(r){if(Array.isArray(r))return ud(r)}function kT(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function FT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Aa(r){return YT(r)||kT(r)||gb(r)||FT()}function KT(r){if(r.sheet)return r.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===r)return document.styleSheets[n]}function XT(r){var n=document.createElement("style");return n.setAttribute("data-emotion",r.key),r.nonce!==void 0&&n.setAttribute("nonce",r.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var QT=(function(){function r(i){var u=this;this._insertTag=function(o){var c;u.tags.length===0?u.insertionPoint?c=u.insertionPoint.nextSibling:u.prepend?c=u.container.firstChild:c=u.before:c=u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(o,c),u.tags.push(o)},this.isSpeedy=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var n=r.prototype;return n.hydrate=function(u){u.forEach(this._insertTag)},n.insert=function(u){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(XT(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var c=KT(o);try{c.insertRule(u,c.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(u));this.ctr++},n.flush=function(){this.tags.forEach(function(u){var o;return(o=u.parentNode)==null?void 0:o.removeChild(u)}),this.tags=[],this.ctr=0},r})(),yt="-ms-",Yu="-moz-",qe="-webkit-",Sb="comm",xd="rule",Md="decl",ZT="@import",Eb="@keyframes",JT="@layer",WT=Math.abs,io=String.fromCharCode,ew=Object.assign;function tw(r,n){return mt(r,0)^45?(((n<<2^mt(r,0))<<2^mt(r,1))<<2^mt(r,2))<<2^mt(r,3):0}function Tb(r){return r.trim()}function nw(r,n){return(r=n.exec(r))?r[0]:r}function Le(r,n,i){return r.replace(n,i)}function sd(r,n){return r.indexOf(n)}function mt(r,n){return r.charCodeAt(n)|0}function Pi(r,n,i){return r.slice(n,i)}function sn(r){return r.length}function Rd(r){return r.length}function Tu(r,n){return n.push(r),r}function rw(r,n){return r.map(n).join("")}var lo=1,Ha=1,wb=0,Ct=0,it=0,Va="";function uo(r,n,i,u,o,c,d){return{value:r,root:n,parent:i,type:u,props:o,children:c,line:lo,column:Ha,length:d,return:""}}function Ni(r,n){return ew(uo("",null,null,"",null,null,0),r,{length:-r.length},n)}function aw(){return it}function iw(){return it=Ct>0?mt(Va,--Ct):0,Ha--,it===10&&(Ha=1,lo--),it}function Ht(){return it=Ct<wb?mt(Va,Ct++):0,Ha++,it===10&&(Ha=1,lo++),it}function dn(){return mt(Va,Ct)}function Uu(){return Ct}function Qi(r,n){return Pi(Va,r,n)}function $i(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ob(r){return lo=Ha=1,wb=sn(Va=r),Ct=0,[]}function Cb(r){return Va="",r}function Nu(r){return Tb(Qi(Ct-1,cd(r===91?r+2:r===40?r+1:r)))}function lw(r){for(;(it=dn())&&it<33;)Ht();return $i(r)>2||$i(it)>3?"":" "}function uw(r,n){for(;--n&&Ht()&&!(it<48||it>102||it>57&&it<65||it>70&&it<97););return Qi(r,Uu()+(n<6&&dn()==32&&Ht()==32))}function cd(r){for(;Ht();)switch(it){case r:return Ct;case 34:case 39:r!==34&&r!==39&&cd(it);break;case 40:r===41&&cd(r);break;case 92:Ht();break}return Ct}function ow(r,n){for(;Ht()&&r+it!==57;)if(r+it===84&&dn()===47)break;return"/*"+Qi(n,Ct-1)+"*"+io(r===47?r:Ht())}function sw(r){for(;!$i(dn());)Ht();return Qi(r,Ct)}function cw(r){return Cb(ju("",null,null,null,[""],r=Ob(r),0,[0],r))}function ju(r,n,i,u,o,c,d,m,h){for(var p=0,y=0,g=d,b=0,S=0,E=0,w=1,M=1,R=1,k=0,B="",Y=o,z=c,F=u,j=B;M;)switch(E=k,k=Ht()){case 40:if(E!=108&&mt(j,g-1)==58){sd(j+=Le(Nu(k),"&","&\f"),"&\f")!=-1&&(R=-1);break}case 34:case 39:case 91:j+=Nu(k);break;case 9:case 10:case 13:case 32:j+=lw(E);break;case 92:j+=uw(Uu()-1,7);continue;case 47:switch(dn()){case 42:case 47:Tu(fw(ow(Ht(),Uu()),n,i),h);break;default:j+="/"}break;case 123*w:m[p++]=sn(j)*R;case 125*w:case 59:case 0:switch(k){case 0:case 125:M=0;case 59+y:R==-1&&(j=Le(j,/\f/g,"")),S>0&&sn(j)-g&&Tu(S>32?Ty(j+";",u,i,g-1):Ty(Le(j," ","")+";",u,i,g-2),h);break;case 59:j+=";";default:if(Tu(F=Ey(j,n,i,p,y,o,m,B,Y=[],z=[],g),c),k===123)if(y===0)ju(j,n,F,F,Y,c,g,m,z);else switch(b===99&&mt(j,3)===110?100:b){case 100:case 108:case 109:case 115:ju(r,F,F,u&&Tu(Ey(r,F,F,0,0,o,m,B,o,Y=[],g),z),o,z,g,m,u?Y:z);break;default:ju(j,F,F,F,[""],z,0,m,z)}}p=y=S=0,w=R=1,B=j="",g=d;break;case 58:g=1+sn(j),S=E;default:if(w<1){if(k==123)--w;else if(k==125&&w++==0&&iw()==125)continue}switch(j+=io(k),k*w){case 38:R=y>0?1:(j+="\f",-1);break;case 44:m[p++]=(sn(j)-1)*R,R=1;break;case 64:dn()===45&&(j+=Nu(Ht())),b=dn(),y=g=sn(B=j+=sw(Uu())),k++;break;case 45:E===45&&sn(j)==2&&(w=0)}}return c}function Ey(r,n,i,u,o,c,d,m,h,p,y){for(var g=o-1,b=o===0?c:[""],S=Rd(b),E=0,w=0,M=0;E<u;++E)for(var R=0,k=Pi(r,g+1,g=WT(w=d[E])),B=r;R<S;++R)(B=Tb(w>0?b[R]+" "+k:Le(k,/&\f/g,b[R])))&&(h[M++]=B);return uo(r,n,i,o===0?xd:m,h,p,y)}function fw(r,n,i){return uo(r,n,i,Sb,io(aw()),Pi(r,2,-2),0)}function Ty(r,n,i,u){return uo(r,n,i,Md,Pi(r,0,u),Pi(r,u+1,-1),u)}function xa(r,n){for(var i="",u=Rd(r),o=0;o<u;o++)i+=n(r[o],o,r,n)||"";return i}function dw(r,n,i,u){switch(r.type){case JT:if(r.children.length)break;case ZT:case Md:return r.return=r.return||r.value;case Sb:return"";case Eb:return r.return=r.value+"{"+xa(r.children,u)+"}";case xd:r.value=r.props.join(",")}return sn(i=xa(r.children,u))?r.return=r.value+"{"+i+"}":""}function hw(r){var n=Rd(r);return function(i,u,o,c){for(var d="",m=0;m<n;m++)d+=r[m](i,u,o,c)||"";return d}}function pw(r){return function(n){n.root||(n=n.return)&&r(n)}}function mw(r){var n=Object.create(null);return function(i){return n[i]===void 0&&(n[i]=r(i)),n[i]}}var vw=function(n,i,u){for(var o=0,c=0;o=c,c=dn(),o===38&&c===12&&(i[u]=1),!$i(c);)Ht();return Qi(n,Ct)},yw=function(n,i){var u=-1,o=44;do switch($i(o)){case 0:o===38&&dn()===12&&(i[u]=1),n[u]+=vw(Ct-1,i,u);break;case 2:n[u]+=Nu(o);break;case 4:if(o===44){n[++u]=dn()===58?"&\f":"",i[u]=n[u].length;break}default:n[u]+=io(o)}while(o=Ht());return n},gw=function(n,i){return Cb(yw(Ob(n),i))},wy=new WeakMap,bw=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var i=n.value,u=n.parent,o=n.column===u.column&&n.line===u.line;u.type!=="rule";)if(u=u.parent,!u)return;if(!(n.props.length===1&&i.charCodeAt(0)!==58&&!wy.get(u))&&!o){wy.set(n,!0);for(var c=[],d=gw(i,c),m=u.props,h=0,p=0;h<d.length;h++)for(var y=0;y<m.length;y++,p++)n.props[p]=c[h]?d[h].replace(/&\f/g,m[y]):m[y]+" "+d[h]}}},_w=function(n){if(n.type==="decl"){var i=n.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(n.return="",n.value="")}};function Ab(r,n){switch(tw(r,n)){case 5103:return qe+"print-"+r+r;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return qe+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return qe+r+Yu+r+yt+r+r;case 6828:case 4268:return qe+r+yt+r+r;case 6165:return qe+r+yt+"flex-"+r+r;case 5187:return qe+r+Le(r,/(\w+).+(:[^]+)/,qe+"box-$1$2"+yt+"flex-$1$2")+r;case 5443:return qe+r+yt+"flex-item-"+Le(r,/flex-|-self/,"")+r;case 4675:return qe+r+yt+"flex-line-pack"+Le(r,/align-content|flex-|-self/,"")+r;case 5548:return qe+r+yt+Le(r,"shrink","negative")+r;case 5292:return qe+r+yt+Le(r,"basis","preferred-size")+r;case 6060:return qe+"box-"+Le(r,"-grow","")+qe+r+yt+Le(r,"grow","positive")+r;case 4554:return qe+Le(r,/([^-])(transform)/g,"$1"+qe+"$2")+r;case 6187:return Le(Le(Le(r,/(zoom-|grab)/,qe+"$1"),/(image-set)/,qe+"$1"),r,"")+r;case 5495:case 3959:return Le(r,/(image-set\([^]*)/,qe+"$1$`$1");case 4968:return Le(Le(r,/(.+:)(flex-)?(.*)/,qe+"box-pack:$3"+yt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qe+r+r;case 4095:case 3583:case 4068:case 2532:return Le(r,/(.+)-inline(.+)/,qe+"$1$2")+r;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(sn(r)-1-n>6)switch(mt(r,n+1)){case 109:if(mt(r,n+4)!==45)break;case 102:return Le(r,/(.+:)(.+)-([^]+)/,"$1"+qe+"$2-$3$1"+Yu+(mt(r,n+3)==108?"$3":"$2-$3"))+r;case 115:return~sd(r,"stretch")?Ab(Le(r,"stretch","fill-available"),n)+r:r}break;case 4949:if(mt(r,n+1)!==115)break;case 6444:switch(mt(r,sn(r)-3-(~sd(r,"!important")&&10))){case 107:return Le(r,":",":"+qe)+r;case 101:return Le(r,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qe+(mt(r,14)===45?"inline-":"")+"box$3$1"+qe+"$2$3$1"+yt+"$2box$3")+r}break;case 5936:switch(mt(r,n+11)){case 114:return qe+r+yt+Le(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return qe+r+yt+Le(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return qe+r+yt+Le(r,/[svh]\w+-[tblr]{2}/,"lr")+r}return qe+r+yt+r+r}return r}var Sw=function(n,i,u,o){if(n.length>-1&&!n.return)switch(n.type){case Md:n.return=Ab(n.value,n.length);break;case Eb:return xa([Ni(n,{value:Le(n.value,"@","@"+qe)})],o);case xd:if(n.length)return rw(n.props,function(c){switch(nw(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xa([Ni(n,{props:[Le(c,/:(read-\w+)/,":"+Yu+"$1")]})],o);case"::placeholder":return xa([Ni(n,{props:[Le(c,/:(plac\w+)/,":"+qe+"input-$1")]}),Ni(n,{props:[Le(c,/:(plac\w+)/,":"+Yu+"$1")]}),Ni(n,{props:[Le(c,/:(plac\w+)/,yt+"input-$1")]})],o)}return""})}},Ew=[Sw],Tw=function(n){var i=n.key;if(i==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(w){var M=w.getAttribute("data-emotion");M.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=n.stylisPlugins||Ew,c={},d,m=[];d=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(w){for(var M=w.getAttribute("data-emotion").split(" "),R=1;R<M.length;R++)c[M[R]]=!0;m.push(w)});var h,p=[bw,_w];{var y,g=[dw,pw(function(w){y.insert(w)})],b=hw(p.concat(o,g)),S=function(M){return xa(cw(M),b)};h=function(M,R,k,B){y=k,S(M?M+"{"+R.styles+"}":R.styles),B&&(E.inserted[R.name]=!0)}}var E={key:i,sheet:new QT({key:i,container:d,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:c,registered:{},insert:h};return E.sheet.hydrate(m),E},Gc={exports:{}},Ue={};var Oy;function ww(){if(Oy)return Ue;Oy=1;var r=typeof Symbol=="function"&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,u=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,m=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,y=r?Symbol.for("react.forward_ref"):60112,g=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,S=r?Symbol.for("react.memo"):60115,E=r?Symbol.for("react.lazy"):60116,w=r?Symbol.for("react.block"):60121,M=r?Symbol.for("react.fundamental"):60117,R=r?Symbol.for("react.responder"):60118,k=r?Symbol.for("react.scope"):60119;function B(z){if(typeof z=="object"&&z!==null){var F=z.$$typeof;switch(F){case n:switch(z=z.type,z){case h:case p:case u:case c:case o:case g:return z;default:switch(z=z&&z.$$typeof,z){case m:case y:case E:case S:case d:return z;default:return F}}case i:return F}}}function Y(z){return B(z)===p}return Ue.AsyncMode=h,Ue.ConcurrentMode=p,Ue.ContextConsumer=m,Ue.ContextProvider=d,Ue.Element=n,Ue.ForwardRef=y,Ue.Fragment=u,Ue.Lazy=E,Ue.Memo=S,Ue.Portal=i,Ue.Profiler=c,Ue.StrictMode=o,Ue.Suspense=g,Ue.isAsyncMode=function(z){return Y(z)||B(z)===h},Ue.isConcurrentMode=Y,Ue.isContextConsumer=function(z){return B(z)===m},Ue.isContextProvider=function(z){return B(z)===d},Ue.isElement=function(z){return typeof z=="object"&&z!==null&&z.$$typeof===n},Ue.isForwardRef=function(z){return B(z)===y},Ue.isFragment=function(z){return B(z)===u},Ue.isLazy=function(z){return B(z)===E},Ue.isMemo=function(z){return B(z)===S},Ue.isPortal=function(z){return B(z)===i},Ue.isProfiler=function(z){return B(z)===c},Ue.isStrictMode=function(z){return B(z)===o},Ue.isSuspense=function(z){return B(z)===g},Ue.isValidElementType=function(z){return typeof z=="string"||typeof z=="function"||z===u||z===p||z===c||z===o||z===g||z===b||typeof z=="object"&&z!==null&&(z.$$typeof===E||z.$$typeof===S||z.$$typeof===d||z.$$typeof===m||z.$$typeof===y||z.$$typeof===M||z.$$typeof===R||z.$$typeof===k||z.$$typeof===w)},Ue.typeOf=B,Ue}var Cy;function Ow(){return Cy||(Cy=1,Gc.exports=ww()),Gc.exports}var Bc,Ay;function Cw(){if(Ay)return Bc;Ay=1;var r=Ow(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},u={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[r.ForwardRef]=u,c[r.Memo]=o;function d(E){return r.isMemo(E)?o:c[E.$$typeof]||n}var m=Object.defineProperty,h=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,b=Object.prototype;function S(E,w,M){if(typeof w!="string"){if(b){var R=g(w);R&&R!==b&&S(E,R,M)}var k=h(w);p&&(k=k.concat(p(w)));for(var B=d(E),Y=d(w),z=0;z<k.length;++z){var F=k[z];if(!i[F]&&!(M&&M[F])&&!(Y&&Y[F])&&!(B&&B[F])){var j=y(w,F);try{m(E,F,j)}catch{}}}}return E}return Bc=S,Bc}Cw();var Aw=!0;function xw(r,n,i){var u="";return i.split(" ").forEach(function(o){r[o]!==void 0?n.push(r[o]+";"):o&&(u+=o+" ")}),u}var xb=function(n,i,u){var o=n.key+"-"+i.name;(u===!1||Aw===!1)&&n.registered[o]===void 0&&(n.registered[o]=i.styles)},Mw=function(n,i,u){xb(n,i,u);var o=n.key+"-"+i.name;if(n.inserted[i.name]===void 0){var c=i;do n.insert(i===c?"."+o:"",c,n.sheet,!0),c=c.next;while(c!==void 0)}};function Rw(r){for(var n=0,i,u=0,o=r.length;o>=4;++u,o-=4)i=r.charCodeAt(u)&255|(r.charCodeAt(++u)&255)<<8|(r.charCodeAt(++u)&255)<<16|(r.charCodeAt(++u)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,n=(i&65535)*1540483477+((i>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(r.charCodeAt(u+2)&255)<<16;case 2:n^=(r.charCodeAt(u+1)&255)<<8;case 1:n^=r.charCodeAt(u)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var Dw={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},qw=/[A-Z]|^ms/g,Lw=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Mb=function(n){return n.charCodeAt(1)===45},xy=function(n){return n!=null&&typeof n!="boolean"},Ic=mw(function(r){return Mb(r)?r:r.replace(qw,"-$&").toLowerCase()}),My=function(n,i){switch(n){case"animation":case"animationName":if(typeof i=="string")return i.replace(Lw,function(u,o,c){return cn={name:o,styles:c,next:cn},o})}return Dw[n]!==1&&!Mb(n)&&typeof i=="number"&&i!==0?i+"px":i};function Yi(r,n,i){if(i==null)return"";var u=i;if(u.__emotion_styles!==void 0)return u;switch(typeof i){case"boolean":return"";case"object":{var o=i;if(o.anim===1)return cn={name:o.name,styles:o.styles,next:cn},o.name;var c=i;if(c.styles!==void 0){var d=c.next;if(d!==void 0)for(;d!==void 0;)cn={name:d.name,styles:d.styles,next:cn},d=d.next;var m=c.styles+";";return m}return zw(r,n,i)}case"function":{if(r!==void 0){var h=cn,p=i(r);return cn=h,Yi(r,n,p)}break}}var y=i;return y}function zw(r,n,i){var u="";if(Array.isArray(i))for(var o=0;o<i.length;o++)u+=Yi(r,n,i[o])+";";else for(var c in i){var d=i[c];if(typeof d!="object"){var m=d;xy(m)&&(u+=Ic(c)+":"+My(c,m)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&n==null)for(var h=0;h<d.length;h++)xy(d[h])&&(u+=Ic(c)+":"+My(c,d[h])+";");else{var p=Yi(r,n,d);switch(c){case"animation":case"animationName":{u+=Ic(c)+":"+p+";";break}default:u+=c+"{"+p+"}"}}}return u}var Ry=/label:\s*([^\s;{]+)\s*(;|$)/g,cn;function Rb(r,n,i){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var u=!0,o="";cn=void 0;var c=r[0];if(c==null||c.raw===void 0)u=!1,o+=Yi(i,n,c);else{var d=c;o+=d[0]}for(var m=1;m<r.length;m++)if(o+=Yi(i,n,r[m]),u){var h=c;o+=h[m]}Ry.lastIndex=0;for(var p="",y;(y=Ry.exec(o))!==null;)p+="-"+y[1];var g=Rw(o)+p;return{name:g,styles:o,next:cn}}var Uw=function(n){return n()},Nw=ey.useInsertionEffect?ey.useInsertionEffect:!1,jw=Nw||Uw,Db=$.createContext(typeof HTMLElement<"u"?Tw({key:"css"}):null);Db.Provider;var Hw=function(n){return $.forwardRef(function(i,u){var o=$.useContext(Db);return n(i,o,u)})},Vw=$.createContext({}),Dd={}.hasOwnProperty,fd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Gw=function(n,i){var u={};for(var o in i)Dd.call(i,o)&&(u[o]=i[o]);return u[fd]=n,u},Bw=function(n){var i=n.cache,u=n.serialized,o=n.isStringTag;return xb(i,u,o),jw(function(){return Mw(i,u,o)}),null},Iw=Hw(function(r,n,i){var u=r.css;typeof u=="string"&&n.registered[u]!==void 0&&(u=n.registered[u]);var o=r[fd],c=[u],d="";typeof r.className=="string"?d=xw(n.registered,c,r.className):r.className!=null&&(d=r.className+" ");var m=Rb(c,void 0,$.useContext(Vw));d+=n.key+"-"+m.name;var h={};for(var p in r)Dd.call(r,p)&&p!=="css"&&p!==fd&&(h[p]=r[p]);return h.className=d,i&&(h.ref=i),$.createElement($.Fragment,null,$.createElement(Bw,{cache:n,serialized:m,isStringTag:typeof o=="string"}),$.createElement(o,h))}),Pw=Iw,re=function(n,i){var u=arguments;if(i==null||!Dd.call(i,"css"))return $.createElement.apply(void 0,u);var o=u.length,c=new Array(o);c[0]=Pw,c[1]=Gw(n,i);for(var d=2;d<o;d++)c[d]=u[d];return $.createElement.apply(null,c)};(function(r){var n;n||(n=r.JSX||(r.JSX={}))})(re||(re={}));function qd(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Rb(n)}function $w(){var r=qd.apply(void 0,arguments),n="animation-"+r.name;return{name:n,styles:"@keyframes "+n+"{"+r.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function Yw(r,n){return n||(n=r.slice(0)),Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(n)}}))}const kw=Math.min,Fw=Math.max,ku=Math.round,wu=Math.floor,Fu=r=>({x:r,y:r});function Kw(r){const{x:n,y:i,width:u,height:o}=r;return{width:u,height:o,top:i,left:n,right:n+u,bottom:i+o,x:n,y:i}}function oo(){return typeof window<"u"}function qb(r){return zb(r)?(r.nodeName||"").toLowerCase():"#document"}function zn(r){var n;return(r==null||(n=r.ownerDocument)==null?void 0:n.defaultView)||window}function Lb(r){var n;return(n=(zb(r)?r.ownerDocument:r.document)||window.document)==null?void 0:n.documentElement}function zb(r){return oo()?r instanceof Node||r instanceof zn(r).Node:!1}function Xw(r){return oo()?r instanceof Element||r instanceof zn(r).Element:!1}function Ld(r){return oo()?r instanceof HTMLElement||r instanceof zn(r).HTMLElement:!1}function Dy(r){return!oo()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof zn(r).ShadowRoot}function Ub(r){const{overflow:n,overflowX:i,overflowY:u,display:o}=zd(r);return/auto|scroll|overlay|hidden|clip/.test(n+u+i)&&o!=="inline"&&o!=="contents"}let Pc;function Qw(){return Pc==null&&(Pc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Pc}function Zw(r){return/^(html|body|#document)$/.test(qb(r))}function zd(r){return zn(r).getComputedStyle(r)}function Jw(r){if(qb(r)==="html")return r;const n=r.assignedSlot||r.parentNode||Dy(r)&&r.host||Lb(r);return Dy(n)?n.host:n}function Nb(r){const n=Jw(r);return Zw(n)?r.ownerDocument?r.ownerDocument.body:r.body:Ld(n)&&Ub(n)?n:Nb(n)}function Ku(r,n,i){var u;n===void 0&&(n=[]),i===void 0&&(i=!0);const o=Nb(r),c=o===((u=r.ownerDocument)==null?void 0:u.body),d=zn(o);if(c){const m=dd(d);return n.concat(d,d.visualViewport||[],Ub(o)?o:[],m&&i?Ku(m):[])}else return n.concat(o,Ku(o,[],i))}function dd(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function Ww(r){const n=zd(r);let i=parseFloat(n.width)||0,u=parseFloat(n.height)||0;const o=Ld(r),c=o?r.offsetWidth:i,d=o?r.offsetHeight:u,m=ku(i)!==c||ku(u)!==d;return m&&(i=c,u=d),{width:i,height:u,$:m}}function Ud(r){return Xw(r)?r:r.contextElement}function qy(r){const n=Ud(r);if(!Ld(n))return Fu(1);const i=n.getBoundingClientRect(),{width:u,height:o,$:c}=Ww(n);let d=(c?ku(i.width):i.width)/u,m=(c?ku(i.height):i.height)/o;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const eO=Fu(0);function tO(r){const n=zn(r);return!Qw()||!n.visualViewport?eO:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function nO(r,n,i){return!1}function Ly(r,n,i,u){n===void 0&&(n=!1);const o=r.getBoundingClientRect(),c=Ud(r);let d=Fu(1);n&&(d=qy(r));const m=nO()?tO(c):Fu(0);let h=(o.left+m.x)/d.x,p=(o.top+m.y)/d.y,y=o.width/d.x,g=o.height/d.y;if(c){const b=zn(c),S=u;let E=b,w=dd(E);for(;w&&u&&S!==E;){const M=qy(w),R=w.getBoundingClientRect(),k=zd(w),B=R.left+(w.clientLeft+parseFloat(k.paddingLeft))*M.x,Y=R.top+(w.clientTop+parseFloat(k.paddingTop))*M.y;h*=M.x,p*=M.y,y*=M.x,g*=M.y,h+=B,p+=Y,E=zn(w),w=dd(E)}}return Kw({width:y,height:g,x:h,y:p})}function jb(r,n){return r.x===n.x&&r.y===n.y&&r.width===n.width&&r.height===n.height}function rO(r,n){let i=null,u;const o=Lb(r);function c(){var m;clearTimeout(u),(m=i)==null||m.disconnect(),i=null}function d(m,h){m===void 0&&(m=!1),h===void 0&&(h=1),c();const p=r.getBoundingClientRect(),{left:y,top:g,width:b,height:S}=p;if(m||n(),!b||!S)return;const E=wu(g),w=wu(o.clientWidth-(y+b)),M=wu(o.clientHeight-(g+S)),R=wu(y),B={rootMargin:-E+"px "+-w+"px "+-M+"px "+-R+"px",threshold:Fw(0,kw(1,h))||1};let Y=!0;function z(F){const j=F[0].intersectionRatio;if(j!==h){if(!Y)return d();j?d(!1,j):u=setTimeout(()=>{d(!1,1e-7)},1e3)}j===1&&!jb(p,r.getBoundingClientRect())&&d(),Y=!1}try{i=new IntersectionObserver(z,{...B,root:o.ownerDocument})}catch{i=new IntersectionObserver(z,B)}i.observe(r)}return d(!0),c}function aO(r,n,i,u){u===void 0&&(u={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:h=!1}=u,p=Ud(r),y=o||c?[...p?Ku(p):[],...n?Ku(n):[]]:[];y.forEach(R=>{o&&R.addEventListener("scroll",i,{passive:!0}),c&&R.addEventListener("resize",i)});const g=p&&m?rO(p,i):null;let b=-1,S=null;d&&(S=new ResizeObserver(R=>{let[k]=R;k&&k.target===p&&S&&n&&(S.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var B;(B=S)==null||B.observe(n)})),i()}),p&&!h&&S.observe(p),n&&S.observe(n));let E,w=h?Ly(r):null;h&&M();function M(){const R=Ly(r);w&&!jb(w,R)&&i(),w=R,E=requestAnimationFrame(M)}return i(),()=>{var R;y.forEach(k=>{o&&k.removeEventListener("scroll",i),c&&k.removeEventListener("resize",i)}),g?.(),(R=S)==null||R.disconnect(),S=null,h&&cancelAnimationFrame(E)}}var hd=$.useLayoutEffect,iO=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Xu=function(){};function lO(r,n){return n?n[0]==="-"?r+n:r+"__"+n:r}function uO(r,n){for(var i=arguments.length,u=new Array(i>2?i-2:0),o=2;o<i;o++)u[o-2]=arguments[o];var c=[].concat(u);if(n&&r)for(var d in n)n.hasOwnProperty(d)&&n[d]&&c.push("".concat(lO(r,d)));return c.filter(function(m){return m}).map(function(m){return String(m).trim()}).join(" ")}var Qu=function(n){return vO(n)?n.filter(Boolean):Hr(n)==="object"&&n!==null?[n]:[]},Hb=function(n){n.className,n.clearValue,n.cx,n.getStyles,n.getClassNames,n.getValue,n.hasValue,n.isMulti,n.isRtl,n.options,n.selectOption,n.selectProps,n.setValue,n.theme;var i=hn(n,iO);return ae({},i)},Je=function(n,i,u){var o=n.cx,c=n.getStyles,d=n.getClassNames,m=n.className;return{css:c(i,n),className:o(u??{},d(i,n),m)}};function so(r){return[document.documentElement,document.body,window].indexOf(r)>-1}function oO(r){return so(r)?window.innerHeight:r.clientHeight}function Vb(r){return so(r)?window.pageYOffset:r.scrollTop}function Zu(r,n){if(so(r)){window.scrollTo(0,n);return}r.scrollTop=n}function sO(r){var n=getComputedStyle(r),i=n.position==="absolute",u=/(auto|scroll)/;if(n.position==="fixed")return document.documentElement;for(var o=r;o=o.parentElement;)if(n=getComputedStyle(o),!(i&&n.position==="static")&&u.test(n.overflow+n.overflowY+n.overflowX))return o;return document.documentElement}function cO(r,n,i,u){return i*((r=r/u-1)*r*r+1)+n}function Ou(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Xu,o=Vb(r),c=n-o,d=10,m=0;function h(){m+=d;var p=cO(m,o,c,i);Zu(r,p),m<i?window.requestAnimationFrame(h):u(r)}h()}function zy(r,n){var i=r.getBoundingClientRect(),u=n.getBoundingClientRect(),o=n.offsetHeight/3;u.bottom+o>i.bottom?Zu(r,Math.min(n.offsetTop+n.clientHeight-r.offsetHeight+o,r.scrollHeight)):u.top-o<i.top&&Zu(r,Math.max(n.offsetTop-o,0))}function fO(r){var n=r.getBoundingClientRect();return{bottom:n.bottom,height:n.height,left:n.left,right:n.right,top:n.top,width:n.width}}function Uy(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function dO(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Gb=!1,hO={get passive(){return Gb=!0}},Cu=typeof window<"u"?window:{};Cu.addEventListener&&Cu.removeEventListener&&(Cu.addEventListener("p",Xu,hO),Cu.removeEventListener("p",Xu,!1));var pO=Gb;function mO(r){return r!=null}function vO(r){return Array.isArray(r)}function Bi(r,n,i){return r?n:i}var yO=function(n){for(var i=arguments.length,u=new Array(i>1?i-1:0),o=1;o<i;o++)u[o-1]=arguments[o];var c=Object.entries(n).filter(function(d){var m=Ln(d,1),h=m[0];return!u.includes(h)});return c.reduce(function(d,m){var h=Ln(m,2),p=h[0],y=h[1];return d[p]=y,d},{})},gO=["children","innerProps"],bO=["children","innerProps"];function _O(r){var n=r.maxHeight,i=r.menuEl,u=r.minHeight,o=r.placement,c=r.shouldScroll,d=r.isFixedPosition,m=r.controlHeight,h=sO(i),p={placement:"bottom",maxHeight:n};if(!i||!i.offsetParent)return p;var y=h.getBoundingClientRect(),g=y.height,b=i.getBoundingClientRect(),S=b.bottom,E=b.height,w=b.top,M=i.offsetParent.getBoundingClientRect(),R=M.top,k=d?window.innerHeight:oO(h),B=Vb(h),Y=parseInt(getComputedStyle(i).marginBottom,10),z=parseInt(getComputedStyle(i).marginTop,10),F=R-z,j=k-w,Q=F+B,ie=g-B-w,he=S-k+B+Y,fe=B+w-z,le=160;switch(o){case"auto":case"bottom":if(j>=E)return{placement:"bottom",maxHeight:n};if(ie>=E&&!d)return c&&Ou(h,he,le),{placement:"bottom",maxHeight:n};if(!d&&ie>=u||d&&j>=u){c&&Ou(h,he,le);var pe=d?j-Y:ie-Y;return{placement:"bottom",maxHeight:pe}}if(o==="auto"||d){var Ne=n,_e=d?F:Q;return _e>=u&&(Ne=Math.min(_e-Y-m,n)),{placement:"top",maxHeight:Ne}}if(o==="bottom")return c&&Zu(h,he),{placement:"bottom",maxHeight:n};break;case"top":if(F>=E)return{placement:"top",maxHeight:n};if(Q>=E&&!d)return c&&Ou(h,fe,le),{placement:"top",maxHeight:n};if(!d&&Q>=u||d&&F>=u){var U=n;return(!d&&Q>=u||d&&F>=u)&&(U=d?F-z:Q-z),c&&Ou(h,fe,le),{placement:"top",maxHeight:U}}return{placement:"bottom",maxHeight:n};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return p}function SO(r){var n={bottom:"top",top:"bottom"};return r?n[r]:"bottom"}var Bb=function(n){return n==="auto"?"bottom":n},EO=function(n,i){var u,o=n.placement,c=n.theme,d=c.borderRadius,m=c.spacing,h=c.colors;return ae((u={label:"menu"},Gi(u,SO(o),"100%"),Gi(u,"position","absolute"),Gi(u,"width","100%"),Gi(u,"zIndex",1),u),i?{}:{backgroundColor:h.neutral0,borderRadius:d,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:m.menuGutter,marginTop:m.menuGutter})},Ib=$.createContext(null),TO=function(n){var i=n.children,u=n.minMenuHeight,o=n.maxMenuHeight,c=n.menuPlacement,d=n.menuPosition,m=n.menuShouldScrollIntoView,h=n.theme,p=$.useContext(Ib)||{},y=p.setPortalPlacement,g=$.useRef(null),b=$.useState(o),S=Ln(b,2),E=S[0],w=S[1],M=$.useState(null),R=Ln(M,2),k=R[0],B=R[1],Y=h.spacing.controlHeight;return hd(function(){var z=g.current;if(z){var F=d==="fixed",j=m&&!F,Q=_O({maxHeight:o,menuEl:z,minHeight:u,placement:c,shouldScroll:j,isFixedPosition:F,controlHeight:Y});w(Q.maxHeight),B(Q.placement),y?.(Q.placement)}},[o,c,d,m,u,y,Y]),i({ref:g,placerProps:ae(ae({},n),{},{placement:k||Bb(c),maxHeight:E})})},wO=function(n){var i=n.children,u=n.innerRef,o=n.innerProps;return re("div",se({},Je(n,"menu",{menu:!0}),{ref:u},o),i)},OO=wO,CO=function(n,i){var u=n.maxHeight,o=n.theme.spacing.baseUnit;return ae({maxHeight:u,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},i?{}:{paddingBottom:o,paddingTop:o})},AO=function(n){var i=n.children,u=n.innerProps,o=n.innerRef,c=n.isMulti;return re("div",se({},Je(n,"menuList",{"menu-list":!0,"menu-list--is-multi":c}),{ref:o},u),i)},Pb=function(n,i){var u=n.theme,o=u.spacing.baseUnit,c=u.colors;return ae({textAlign:"center"},i?{}:{color:c.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},xO=Pb,MO=Pb,RO=function(n){var i=n.children,u=i===void 0?"No options":i,o=n.innerProps,c=hn(n,gO);return re("div",se({},Je(ae(ae({},c),{},{children:u,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),u)},DO=function(n){var i=n.children,u=i===void 0?"Loading...":i,o=n.innerProps,c=hn(n,bO);return re("div",se({},Je(ae(ae({},c),{},{children:u,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),u)},qO=function(n){var i=n.rect,u=n.offset,o=n.position;return{left:i.left,position:o,top:u,width:i.width,zIndex:1}},LO=function(n){var i=n.appendTo,u=n.children,o=n.controlElement,c=n.innerProps,d=n.menuPlacement,m=n.menuPosition,h=$.useRef(null),p=$.useRef(null),y=$.useState(Bb(d)),g=Ln(y,2),b=g[0],S=g[1],E=$.useMemo(function(){return{setPortalPlacement:S}},[]),w=$.useState(null),M=Ln(w,2),R=M[0],k=M[1],B=$.useCallback(function(){if(o){var j=fO(o),Q=m==="fixed"?0:window.pageYOffset,ie=j[b]+Q;(ie!==R?.offset||j.left!==R?.rect.left||j.width!==R?.rect.width)&&k({offset:ie,rect:j})}},[o,m,b,R?.offset,R?.rect.left,R?.rect.width]);hd(function(){B()},[B]);var Y=$.useCallback(function(){typeof p.current=="function"&&(p.current(),p.current=null),o&&h.current&&(p.current=aO(o,h.current,B,{elementResize:"ResizeObserver"in window}))},[o,B]);hd(function(){Y()},[Y]);var z=$.useCallback(function(j){h.current=j,Y()},[Y]);if(!i&&m!=="fixed"||!R)return null;var F=re("div",se({ref:z},Je(ae(ae({},n),{},{offset:R.offset,position:m,rect:R.rect}),"menuPortal",{"menu-portal":!0}),c),u);return re(Ib.Provider,{value:E},i?iT.createPortal(F,i):F)},zO=function(n){var i=n.isDisabled,u=n.isRtl;return{label:"container",direction:u?"rtl":void 0,pointerEvents:i?"none":void 0,position:"relative"}},UO=function(n){var i=n.children,u=n.innerProps,o=n.isDisabled,c=n.isRtl;return re("div",se({},Je(n,"container",{"--is-disabled":o,"--is-rtl":c}),u),i)},NO=function(n,i){var u=n.theme.spacing,o=n.isMulti,c=n.hasValue,d=n.selectProps.controlShouldRenderValue;return ae({alignItems:"center",display:o&&c&&d?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},i?{}:{padding:"".concat(u.baseUnit/2,"px ").concat(u.baseUnit*2,"px")})},jO=function(n){var i=n.children,u=n.innerProps,o=n.isMulti,c=n.hasValue;return re("div",se({},Je(n,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":c}),u),i)},HO=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},VO=function(n){var i=n.children,u=n.innerProps;return re("div",se({},Je(n,"indicatorsContainer",{indicators:!0}),u),i)},Ny,GO=["size"],BO=["innerProps","isRtl","size"],IO={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},$b=function(n){var i=n.size,u=hn(n,GO);return re("svg",se({height:i,width:i,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:IO},u))},Nd=function(n){return re($b,se({size:20},n),re("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Yb=function(n){return re($b,se({size:20},n),re("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},kb=function(n,i){var u=n.isFocused,o=n.theme,c=o.spacing.baseUnit,d=o.colors;return ae({label:"indicatorContainer",display:"flex",transition:"color 150ms"},i?{}:{color:u?d.neutral60:d.neutral20,padding:c*2,":hover":{color:u?d.neutral80:d.neutral40}})},PO=kb,$O=function(n){var i=n.children,u=n.innerProps;return re("div",se({},Je(n,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),u),i||re(Yb,null))},YO=kb,kO=function(n){var i=n.children,u=n.innerProps;return re("div",se({},Je(n,"clearIndicator",{indicator:!0,"clear-indicator":!0}),u),i||re(Nd,null))},FO=function(n,i){var u=n.isDisabled,o=n.theme,c=o.spacing.baseUnit,d=o.colors;return ae({label:"indicatorSeparator",alignSelf:"stretch",width:1},i?{}:{backgroundColor:u?d.neutral10:d.neutral20,marginBottom:c*2,marginTop:c*2})},KO=function(n){var i=n.innerProps;return re("span",se({},i,Je(n,"indicatorSeparator",{"indicator-separator":!0})))},XO=$w(Ny||(Ny=Yw([`
|
|
4
|
+
0%, 80%, 100% { opacity: 0; }
|
|
5
|
+
40% { opacity: 1; }
|
|
6
|
+
`]))),QO=function(n,i){var u=n.isFocused,o=n.size,c=n.theme,d=c.colors,m=c.spacing.baseUnit;return ae({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},i?{}:{color:u?d.neutral60:d.neutral20,padding:m*2})},$c=function(n){var i=n.delay,u=n.offset;return re("span",{css:qd({animation:"".concat(XO," 1s ease-in-out ").concat(i,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:u?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ZO=function(n){var i=n.innerProps,u=n.isRtl,o=n.size,c=o===void 0?4:o,d=hn(n,BO);return re("div",se({},Je(ae(ae({},d),{},{innerProps:i,isRtl:u,size:c}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),i),re($c,{delay:0,offset:u}),re($c,{delay:160,offset:!0}),re($c,{delay:320,offset:!u}))},JO=function(n,i){var u=n.isDisabled,o=n.isFocused,c=n.theme,d=c.colors,m=c.borderRadius,h=c.spacing;return ae({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:h.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},i?{}:{backgroundColor:u?d.neutral5:d.neutral0,borderColor:u?d.neutral10:o?d.primary:d.neutral20,borderRadius:m,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(d.primary):void 0,"&:hover":{borderColor:o?d.primary:d.neutral30}})},WO=function(n){var i=n.children,u=n.isDisabled,o=n.isFocused,c=n.innerRef,d=n.innerProps,m=n.menuIsOpen;return re("div",se({ref:c},Je(n,"control",{control:!0,"control--is-disabled":u,"control--is-focused":o,"control--menu-is-open":m}),d,{"aria-disabled":u||void 0}),i)},eC=WO,tC=["data"],nC=function(n,i){var u=n.theme.spacing;return i?{}:{paddingBottom:u.baseUnit*2,paddingTop:u.baseUnit*2}},rC=function(n){var i=n.children,u=n.cx,o=n.getStyles,c=n.getClassNames,d=n.Heading,m=n.headingProps,h=n.innerProps,p=n.label,y=n.theme,g=n.selectProps;return re("div",se({},Je(n,"group",{group:!0}),h),re(d,se({},m,{selectProps:g,theme:y,getStyles:o,getClassNames:c,cx:u}),p),re("div",null,i))},aC=function(n,i){var u=n.theme,o=u.colors,c=u.spacing;return ae({label:"group",cursor:"default",display:"block"},i?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:c.baseUnit*3,paddingRight:c.baseUnit*3,textTransform:"uppercase"})},iC=function(n){var i=Hb(n);i.data;var u=hn(i,tC);return re("div",se({},Je(n,"groupHeading",{"group-heading":!0}),u))},lC=rC,uC=["innerRef","isDisabled","isHidden","inputClassName"],oC=function(n,i){var u=n.isDisabled,o=n.value,c=n.theme,d=c.spacing,m=c.colors;return ae(ae({visibility:u?"hidden":"visible",transform:o?"translateZ(0)":""},sC),i?{}:{margin:d.baseUnit/2,paddingBottom:d.baseUnit/2,paddingTop:d.baseUnit/2,color:m.neutral80})},Fb={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},sC={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ae({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Fb)},cC=function(n){return ae({label:"input",color:"inherit",background:0,opacity:n?0:1,width:"100%"},Fb)},fC=function(n){var i=n.cx,u=n.value,o=Hb(n),c=o.innerRef,d=o.isDisabled,m=o.isHidden,h=o.inputClassName,p=hn(o,uC);return re("div",se({},Je(n,"input",{"input-container":!0}),{"data-value":u||""}),re("input",se({className:i({input:!0},h),ref:c,style:cC(m),disabled:d},p)))},dC=fC,hC=function(n,i){var u=n.theme,o=u.spacing,c=u.borderRadius,d=u.colors;return ae({label:"multiValue",display:"flex",minWidth:0},i?{}:{backgroundColor:d.neutral10,borderRadius:c/2,margin:o.baseUnit/2})},pC=function(n,i){var u=n.theme,o=u.borderRadius,c=u.colors,d=n.cropWithEllipsis;return ae({overflow:"hidden",textOverflow:d||d===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},i?{}:{borderRadius:o/2,color:c.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},mC=function(n,i){var u=n.theme,o=u.spacing,c=u.borderRadius,d=u.colors,m=n.isFocused;return ae({alignItems:"center",display:"flex"},i?{}:{borderRadius:c/2,backgroundColor:m?d.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:d.dangerLight,color:d.danger}})},Kb=function(n){var i=n.children,u=n.innerProps;return re("div",u,i)},vC=Kb,yC=Kb;function gC(r){var n=r.children,i=r.innerProps;return re("div",se({role:"button"},i),n||re(Nd,{size:14}))}var bC=function(n){var i=n.children,u=n.components,o=n.data,c=n.innerProps,d=n.isDisabled,m=n.removeProps,h=n.selectProps,p=u.Container,y=u.Label,g=u.Remove;return re(p,{data:o,innerProps:ae(ae({},Je(n,"multiValue",{"multi-value":!0,"multi-value--is-disabled":d})),c),selectProps:h},re(y,{data:o,innerProps:ae({},Je(n,"multiValueLabel",{"multi-value__label":!0})),selectProps:h},i),re(g,{data:o,innerProps:ae(ae({},Je(n,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(i||"option")},m),selectProps:h}))},_C=bC,SC=function(n,i){var u=n.isDisabled,o=n.isFocused,c=n.isSelected,d=n.theme,m=d.spacing,h=d.colors;return ae({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},i?{}:{backgroundColor:c?h.primary:o?h.primary25:"transparent",color:u?h.neutral20:c?h.neutral0:"inherit",padding:"".concat(m.baseUnit*2,"px ").concat(m.baseUnit*3,"px"),":active":{backgroundColor:u?void 0:c?h.primary:h.primary50}})},EC=function(n){var i=n.children,u=n.isDisabled,o=n.isFocused,c=n.isSelected,d=n.innerRef,m=n.innerProps;return re("div",se({},Je(n,"option",{option:!0,"option--is-disabled":u,"option--is-focused":o,"option--is-selected":c}),{ref:d,"aria-disabled":u},m),i)},TC=EC,wC=function(n,i){var u=n.theme,o=u.spacing,c=u.colors;return ae({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},i?{}:{color:c.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},OC=function(n){var i=n.children,u=n.innerProps;return re("div",se({},Je(n,"placeholder",{placeholder:!0}),u),i)},CC=OC,AC=function(n,i){var u=n.isDisabled,o=n.theme,c=o.spacing,d=o.colors;return ae({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i?{}:{color:u?d.neutral40:d.neutral80,marginLeft:c.baseUnit/2,marginRight:c.baseUnit/2})},xC=function(n){var i=n.children,u=n.isDisabled,o=n.innerProps;return re("div",se({},Je(n,"singleValue",{"single-value":!0,"single-value--is-disabled":u}),o),i)},MC=xC,RC={ClearIndicator:kO,Control:eC,DropdownIndicator:$O,DownChevron:Yb,CrossIcon:Nd,Group:lC,GroupHeading:iC,IndicatorsContainer:VO,IndicatorSeparator:KO,Input:dC,LoadingIndicator:ZO,Menu:OO,MenuList:AO,MenuPortal:LO,LoadingMessage:DO,NoOptionsMessage:RO,MultiValue:_C,MultiValueContainer:vC,MultiValueLabel:yC,MultiValueRemove:gC,Option:TC,Placeholder:CC,SelectContainer:UO,SingleValue:MC,ValueContainer:jO},DC=function(n){return ae(ae({},RC),n.components)},jy=Number.isNaN||function(n){return typeof n=="number"&&n!==n};function qC(r,n){return!!(r===n||jy(r)&&jy(n))}function LC(r,n){if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!qC(r[i],n[i]))return!1;return!0}function zC(r,n){n===void 0&&(n=LC);var i=null;function u(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];if(i&&i.lastThis===this&&n(o,i.lastArgs))return i.lastResult;var d=r.apply(this,o);return i={lastResult:d,lastArgs:o,lastThis:this},d}return u.clear=function(){i=null},u}var UC={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},NC=function(n){return re("span",se({css:UC},n))},Hy=NC,jC={guidance:function(n){var i=n.isSearchable,u=n.isMulti,o=n.tabSelectsValue,c=n.context,d=n.isInitialFocus;switch(c){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return d?"".concat(n["aria-label"]||"Select"," is focused ").concat(i?",type to refine list":"",", press Down to open the menu, ").concat(u?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(n){var i=n.action,u=n.label,o=u===void 0?"":u,c=n.labels,d=n.isDisabled;switch(i){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(c.length>1?"s":""," ").concat(c.join(","),", selected.");case"select-option":return d?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(n){var i=n.context,u=n.focused,o=n.options,c=n.label,d=c===void 0?"":c,m=n.selectValue,h=n.isDisabled,p=n.isSelected,y=n.isAppleDevice,g=function(w,M){return w&&w.length?"".concat(w.indexOf(M)+1," of ").concat(w.length):""};if(i==="value"&&m)return"value ".concat(d," focused, ").concat(g(m,u),".");if(i==="menu"&&y){var b=h?" disabled":"",S="".concat(p?" selected":"").concat(b);return"".concat(d).concat(S,", ").concat(g(o,u),".")}return""},onFilter:function(n){var i=n.inputValue,u=n.resultsMessage;return"".concat(u).concat(i?" for search term "+i:"",".")}},HC=function(n){var i=n.ariaSelection,u=n.focusedOption,o=n.focusedValue,c=n.focusableOptions,d=n.isFocused,m=n.selectValue,h=n.selectProps,p=n.id,y=n.isAppleDevice,g=h.ariaLiveMessages,b=h.getOptionLabel,S=h.inputValue,E=h.isMulti,w=h.isOptionDisabled,M=h.isSearchable,R=h.menuIsOpen,k=h.options,B=h.screenReaderStatus,Y=h.tabSelectsValue,z=h.isLoading,F=h["aria-label"],j=h["aria-live"],Q=$.useMemo(function(){return ae(ae({},jC),g||{})},[g]),ie=$.useMemo(function(){var _e="";if(i&&Q.onChange){var U=i.option,K=i.options,ee=i.removedValue,Se=i.removedValues,we=i.value,C=function($e){return Array.isArray($e)?null:$e},V=ee||U||C(we),X=V?b(V):"",Z=K||Se||void 0,ue=Z?Z.map(b):[],ce=ae({isDisabled:V&&w(V,m),label:X,labels:ue},i);_e=Q.onChange(ce)}return _e},[i,Q,w,m,b]),he=$.useMemo(function(){var _e="",U=u||o,K=!!(u&&m&&m.includes(u));if(U&&Q.onFocus){var ee={focused:U,label:b(U),isDisabled:w(U,m),isSelected:K,options:c,context:U===u?"menu":"value",selectValue:m,isAppleDevice:y};_e=Q.onFocus(ee)}return _e},[u,o,b,w,Q,c,m,y]),fe=$.useMemo(function(){var _e="";if(R&&k.length&&!z&&Q.onFilter){var U=B({count:c.length});_e=Q.onFilter({inputValue:S,resultsMessage:U})}return _e},[c,S,R,Q,k,B,z]),le=i?.action==="initial-input-focus",pe=$.useMemo(function(){var _e="";if(Q.guidance){var U=o?"value":R?"menu":"input";_e=Q.guidance({"aria-label":F,context:U,isDisabled:u&&w(u,m),isMulti:E,isSearchable:M,tabSelectsValue:Y,isInitialFocus:le})}return _e},[F,u,o,E,w,M,R,Q,m,Y,le]),Ne=re($.Fragment,null,re("span",{id:"aria-selection"},ie),re("span",{id:"aria-focused"},he),re("span",{id:"aria-results"},fe),re("span",{id:"aria-guidance"},pe));return re($.Fragment,null,re(Hy,{id:p},le&&Ne),re(Hy,{"aria-live":j,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},d&&!le&&Ne))},VC=HC,pd=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],GC=new RegExp("["+pd.map(function(r){return r.letters}).join("")+"]","g"),Xb={};for(var Yc=0;Yc<pd.length;Yc++)for(var kc=pd[Yc],Fc=0;Fc<kc.letters.length;Fc++)Xb[kc.letters[Fc]]=kc.base;var Qb=function(n){return n.replace(GC,function(i){return Xb[i]})},BC=zC(Qb),Vy=function(n){return n.replace(/^\s+|\s+$/g,"")},IC=function(n){return"".concat(n.label," ").concat(n.value)},PC=function(n){return function(i,u){if(i.data.__isNew__)return!0;var o=ae({ignoreCase:!0,ignoreAccents:!0,stringify:IC,trim:!0,matchFrom:"any"},n),c=o.ignoreCase,d=o.ignoreAccents,m=o.stringify,h=o.trim,p=o.matchFrom,y=h?Vy(u):u,g=h?Vy(m(i)):m(i);return c&&(y=y.toLowerCase(),g=g.toLowerCase()),d&&(y=BC(y),g=Qb(g)),p==="start"?g.substr(0,y.length)===y:g.indexOf(y)>-1}},$C=["innerRef"];function YC(r){var n=r.innerRef,i=hn(r,$C),u=yO(i,"onExited","in","enter","exit","appear");return re("input",se({ref:n},u,{css:qd({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var kC=function(n){n.cancelable&&n.preventDefault(),n.stopPropagation()};function FC(r){var n=r.isEnabled,i=r.onBottomArrive,u=r.onBottomLeave,o=r.onTopArrive,c=r.onTopLeave,d=$.useRef(!1),m=$.useRef(!1),h=$.useRef(0),p=$.useRef(null),y=$.useCallback(function(M,R){if(p.current!==null){var k=p.current,B=k.scrollTop,Y=k.scrollHeight,z=k.clientHeight,F=p.current,j=R>0,Q=Y-z-B,ie=!1;Q>R&&d.current&&(u&&u(M),d.current=!1),j&&m.current&&(c&&c(M),m.current=!1),j&&R>Q?(i&&!d.current&&i(M),F.scrollTop=Y,ie=!0,d.current=!0):!j&&-R>B&&(o&&!m.current&&o(M),F.scrollTop=0,ie=!0,m.current=!0),ie&&kC(M)}},[i,u,o,c]),g=$.useCallback(function(M){y(M,M.deltaY)},[y]),b=$.useCallback(function(M){h.current=M.changedTouches[0].clientY},[]),S=$.useCallback(function(M){var R=h.current-M.changedTouches[0].clientY;y(M,R)},[y]),E=$.useCallback(function(M){if(M){var R=pO?{passive:!1}:!1;M.addEventListener("wheel",g,R),M.addEventListener("touchstart",b,R),M.addEventListener("touchmove",S,R)}},[S,b,g]),w=$.useCallback(function(M){M&&(M.removeEventListener("wheel",g,!1),M.removeEventListener("touchstart",b,!1),M.removeEventListener("touchmove",S,!1))},[S,b,g]);return $.useEffect(function(){if(n){var M=p.current;return E(M),function(){w(M)}}},[n,E,w]),function(M){p.current=M}}var Gy=["boxSizing","height","overflow","paddingRight","position"],By={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Iy(r){r.cancelable&&r.preventDefault()}function Py(r){r.stopPropagation()}function $y(){var r=this.scrollTop,n=this.scrollHeight,i=r+this.offsetHeight;r===0?this.scrollTop=1:i===n&&(this.scrollTop=r-1)}function Yy(){return"ontouchstart"in window||navigator.maxTouchPoints}var ky=!!(typeof window<"u"&&window.document&&window.document.createElement),ji=0,Ca={capture:!1,passive:!1};function KC(r){var n=r.isEnabled,i=r.accountForScrollbars,u=i===void 0?!0:i,o=$.useRef({}),c=$.useRef(null),d=$.useCallback(function(h){if(ky){var p=document.body,y=p&&p.style;if(u&&Gy.forEach(function(E){var w=y&&y[E];o.current[E]=w}),u&&ji<1){var g=parseInt(o.current.paddingRight,10)||0,b=document.body?document.body.clientWidth:0,S=window.innerWidth-b+g||0;Object.keys(By).forEach(function(E){var w=By[E];y&&(y[E]=w)}),y&&(y.paddingRight="".concat(S,"px"))}p&&Yy()&&(p.addEventListener("touchmove",Iy,Ca),h&&(h.addEventListener("touchstart",$y,Ca),h.addEventListener("touchmove",Py,Ca))),ji+=1}},[u]),m=$.useCallback(function(h){if(ky){var p=document.body,y=p&&p.style;ji=Math.max(ji-1,0),u&&ji<1&&Gy.forEach(function(g){var b=o.current[g];y&&(y[g]=b)}),p&&Yy()&&(p.removeEventListener("touchmove",Iy,Ca),h&&(h.removeEventListener("touchstart",$y,Ca),h.removeEventListener("touchmove",Py,Ca)))}},[u]);return $.useEffect(function(){if(n){var h=c.current;return d(h),function(){m(h)}}},[n,d,m]),function(h){c.current=h}}var XC=function(n){var i=n.target;return i.ownerDocument.activeElement&&i.ownerDocument.activeElement.blur()},QC={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ZC(r){var n=r.children,i=r.lockEnabled,u=r.captureEnabled,o=u===void 0?!0:u,c=r.onBottomArrive,d=r.onBottomLeave,m=r.onTopArrive,h=r.onTopLeave,p=FC({isEnabled:o,onBottomArrive:c,onBottomLeave:d,onTopArrive:m,onTopLeave:h}),y=KC({isEnabled:i}),g=function(S){p(S),y(S)};return re($.Fragment,null,i&&re("div",{onClick:XC,css:QC}),n(g))}var JC={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},WC=function(n){var i=n.name,u=n.onFocus;return re("input",{required:!0,name:i,tabIndex:-1,"aria-hidden":"true",onFocus:u,css:JC,value:"",onChange:function(){}})},eA=WC;function jd(r){var n;return typeof window<"u"&&window.navigator!=null?r.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function tA(){return jd(/^iPhone/i)}function Zb(){return jd(/^Mac/i)}function nA(){return jd(/^iPad/i)||Zb()&&navigator.maxTouchPoints>1}function rA(){return tA()||nA()}function aA(){return Zb()||rA()}var iA=function(n){return n.label},Jb=function(n){return n.label},Wb=function(n){return n.value},lA=function(n){return!!n.isDisabled},uA={clearIndicator:YO,container:zO,control:JO,dropdownIndicator:PO,group:nC,groupHeading:aC,indicatorsContainer:HO,indicatorSeparator:FO,input:oC,loadingIndicator:QO,loadingMessage:MO,menu:EO,menuList:CO,menuPortal:qO,multiValue:hC,multiValueLabel:pC,multiValueRemove:mC,noOptionsMessage:xO,option:SC,placeholder:wC,singleValue:AC,valueContainer:NO},oA={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},sA=4,e_=4,cA=38,fA=e_*2,dA={baseUnit:e_,controlHeight:cA,menuGutter:fA},Kc={borderRadius:sA,colors:oA,spacing:dA},hA={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Uy(),captureMenuScroll:!Uy(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:PC(),formatGroupLabel:iA,getOptionLabel:Jb,getOptionValue:Wb,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:lA,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!dO(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(n){var i=n.count;return"".concat(i," result").concat(i!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Fy(r,n,i,u){var o=r_(r,n,i),c=a_(r,n,i),d=n_(r,n),m=Ju(r,n);return{type:"option",data:n,isDisabled:o,isSelected:c,label:d,value:m,index:u}}function Hu(r,n){return r.options.map(function(i,u){if("options"in i){var o=i.options.map(function(d,m){return Fy(r,d,n,m)}).filter(function(d){return Xy(r,d)});return o.length>0?{type:"group",data:i,options:o,index:u}:void 0}var c=Fy(r,i,n,u);return Xy(r,c)?c:void 0}).filter(mO)}function t_(r){return r.reduce(function(n,i){return i.type==="group"?n.push.apply(n,Aa(i.options.map(function(u){return u.data}))):n.push(i.data),n},[])}function Ky(r,n){return r.reduce(function(i,u){return u.type==="group"?i.push.apply(i,Aa(u.options.map(function(o){return{data:o.data,id:"".concat(n,"-").concat(u.index,"-").concat(o.index)}}))):i.push({data:u.data,id:"".concat(n,"-").concat(u.index)}),i},[])}function pA(r,n){return t_(Hu(r,n))}function Xy(r,n){var i=r.inputValue,u=i===void 0?"":i,o=n.data,c=n.isSelected,d=n.label,m=n.value;return(!l_(r)||!c)&&i_(r,{label:d,value:m,data:o},u)}function mA(r,n){var i=r.focusedValue,u=r.selectValue,o=u.indexOf(i);if(o>-1){var c=n.indexOf(i);if(c>-1)return i;if(o<n.length)return n[o]}return null}function vA(r,n){var i=r.focusedOption;return i&&n.indexOf(i)>-1?i:n[0]}var Xc=function(n,i){var u,o=(u=n.find(function(c){return c.data===i}))===null||u===void 0?void 0:u.id;return o||null},n_=function(n,i){return n.getOptionLabel(i)},Ju=function(n,i){return n.getOptionValue(i)};function r_(r,n,i){return typeof r.isOptionDisabled=="function"?r.isOptionDisabled(n,i):!1}function a_(r,n,i){if(i.indexOf(n)>-1)return!0;if(typeof r.isOptionSelected=="function")return r.isOptionSelected(n,i);var u=Ju(r,n);return i.some(function(o){return Ju(r,o)===u})}function i_(r,n,i){return r.filterOption?r.filterOption(n,i):!0}var l_=function(n){var i=n.hideSelectedOptions,u=n.isMulti;return i===void 0?u:i},yA=1,Hd=(function(r){BT(i,r);var n=$T(i);function i(u){var o;if(VT(this,i),o=n.call(this,u),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(h){o.controlRef=h},o.focusedOptionRef=null,o.getFocusedOptionRef=function(h){o.focusedOptionRef=h},o.menuListRef=null,o.getMenuListRef=function(h){o.menuListRef=h},o.inputRef=null,o.getInputRef=function(h){o.inputRef=h},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(h,p){var y=o.props,g=y.onChange,b=y.name;p.name=b,o.ariaOnChange(h,p),g(h,p)},o.setValue=function(h,p,y){var g=o.props,b=g.closeMenuOnSelect,S=g.isMulti,E=g.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:E}),b&&(o.setState({inputIsHiddenAfterUpdate:!S}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(h,{action:p,option:y})},o.selectOption=function(h){var p=o.props,y=p.blurInputOnSelect,g=p.isMulti,b=p.name,S=o.state.selectValue,E=g&&o.isOptionSelected(h,S),w=o.isOptionDisabled(h,S);if(E){var M=o.getOptionValue(h);o.setValue(S.filter(function(R){return o.getOptionValue(R)!==M}),"deselect-option",h)}else if(!w)g?o.setValue([].concat(Aa(S),[h]),"select-option",h):o.setValue(h,"select-option");else{o.ariaOnChange(h,{action:"select-option",option:h,name:b});return}y&&o.blurInput()},o.removeValue=function(h){var p=o.props.isMulti,y=o.state.selectValue,g=o.getOptionValue(h),b=y.filter(function(E){return o.getOptionValue(E)!==g}),S=Bi(p,b,b[0]||null);o.onChange(S,{action:"remove-value",removedValue:h}),o.focusInput()},o.clearValue=function(){var h=o.state.selectValue;o.onChange(Bi(o.props.isMulti,[],null),{action:"clear",removedValues:h})},o.popValue=function(){var h=o.props.isMulti,p=o.state.selectValue,y=p[p.length-1],g=p.slice(0,p.length-1),b=Bi(h,g,g[0]||null);y&&o.onChange(b,{action:"pop-value",removedValue:y})},o.getFocusedOptionId=function(h){return Xc(o.state.focusableOptionsWithIds,h)},o.getFocusableOptionsWithIds=function(){return Ky(Hu(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var h=arguments.length,p=new Array(h),y=0;y<h;y++)p[y]=arguments[y];return uO.apply(void 0,[o.props.classNamePrefix].concat(p))},o.getOptionLabel=function(h){return n_(o.props,h)},o.getOptionValue=function(h){return Ju(o.props,h)},o.getStyles=function(h,p){var y=o.props.unstyled,g=uA[h](p,y);g.boxSizing="border-box";var b=o.props.styles[h];return b?b(g,p):g},o.getClassNames=function(h,p){var y,g;return(y=(g=o.props.classNames)[h])===null||y===void 0?void 0:y.call(g,p)},o.getElementId=function(h){return"".concat(o.state.instancePrefix,"-").concat(h)},o.getComponents=function(){return DC(o.props)},o.buildCategorizedOptions=function(){return Hu(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return t_(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(h,p){o.setState({ariaSelection:ae({value:h},p)})},o.onMenuMouseDown=function(h){h.button===0&&(h.stopPropagation(),h.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(h){o.blockOptionHover=!1},o.onControlMouseDown=function(h){if(!h.defaultPrevented){var p=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?h.target.tagName!=="INPUT"&&h.target.tagName!=="TEXTAREA"&&o.onMenuClose():p&&o.openMenu("first"):(p&&(o.openAfterFocus=!0),o.focusInput()),h.target.tagName!=="INPUT"&&h.target.tagName!=="TEXTAREA"&&h.preventDefault()}},o.onDropdownIndicatorMouseDown=function(h){if(!(h&&h.type==="mousedown"&&h.button!==0)&&!o.props.isDisabled){var p=o.props,y=p.isMulti,g=p.menuIsOpen;o.focusInput(),g?(o.setState({inputIsHiddenAfterUpdate:!y}),o.onMenuClose()):o.openMenu("first"),h.preventDefault()}},o.onClearIndicatorMouseDown=function(h){h&&h.type==="mousedown"&&h.button!==0||(o.clearValue(),h.preventDefault(),o.openAfterFocus=!1,h.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(h){typeof o.props.closeMenuOnScroll=="boolean"?h.target instanceof HTMLElement&&so(h.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(h)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(h){var p=h.touches,y=p&&p.item(0);y&&(o.initialTouchX=y.clientX,o.initialTouchY=y.clientY,o.userIsDragging=!1)},o.onTouchMove=function(h){var p=h.touches,y=p&&p.item(0);if(y){var g=Math.abs(y.clientX-o.initialTouchX),b=Math.abs(y.clientY-o.initialTouchY),S=5;o.userIsDragging=g>S||b>S}},o.onTouchEnd=function(h){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(h.target)&&o.menuListRef&&!o.menuListRef.contains(h.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(h){o.userIsDragging||o.onControlMouseDown(h)},o.onClearIndicatorTouchEnd=function(h){o.userIsDragging||o.onClearIndicatorMouseDown(h)},o.onDropdownIndicatorTouchEnd=function(h){o.userIsDragging||o.onDropdownIndicatorMouseDown(h)},o.handleInputChange=function(h){var p=o.props.inputValue,y=h.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(y,{action:"input-change",prevInputValue:p}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(h){o.props.onFocus&&o.props.onFocus(h),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(h){var p=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(h),o.onInputChange("",{action:"input-blur",prevInputValue:p}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(h){if(!(o.blockOptionHover||o.state.focusedOption===h)){var p=o.getFocusableOptions(),y=p.indexOf(h);o.setState({focusedOption:h,focusedOptionId:y>-1?o.getFocusedOptionId(h):null})}},o.shouldHideSelectedOptions=function(){return l_(o.props)},o.onValueInputFocus=function(h){h.preventDefault(),h.stopPropagation(),o.focus()},o.onKeyDown=function(h){var p=o.props,y=p.isMulti,g=p.backspaceRemovesValue,b=p.escapeClearsValue,S=p.inputValue,E=p.isClearable,w=p.isDisabled,M=p.menuIsOpen,R=p.onKeyDown,k=p.tabSelectsValue,B=p.openMenuOnFocus,Y=o.state,z=Y.focusedOption,F=Y.focusedValue,j=Y.selectValue;if(!w&&!(typeof R=="function"&&(R(h),h.defaultPrevented))){switch(o.blockOptionHover=!0,h.key){case"ArrowLeft":if(!y||S)return;o.focusValue("previous");break;case"ArrowRight":if(!y||S)return;o.focusValue("next");break;case"Delete":case"Backspace":if(S)return;if(F)o.removeValue(F);else{if(!g)return;y?o.popValue():E&&o.clearValue()}break;case"Tab":if(o.isComposing||h.shiftKey||!M||!k||!z||B&&o.isOptionSelected(z,j))return;o.selectOption(z);break;case"Enter":if(h.keyCode===229)break;if(M){if(!z||o.isComposing)return;o.selectOption(z);break}return;case"Escape":M?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:S}),o.onMenuClose()):E&&b&&o.clearValue();break;case" ":if(S)return;if(!M){o.openMenu("first");break}if(!z)return;o.selectOption(z);break;case"ArrowUp":M?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":M?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!M)return;o.focusOption("pageup");break;case"PageDown":if(!M)return;o.focusOption("pagedown");break;case"Home":if(!M)return;o.focusOption("first");break;case"End":if(!M)return;o.focusOption("last");break;default:return}h.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++yA),o.state.selectValue=Qu(u.value),u.menuIsOpen&&o.state.selectValue.length){var c=o.getFocusableOptionsWithIds(),d=o.buildFocusableOptions(),m=d.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=c,o.state.focusedOption=d[m],o.state.focusedOptionId=Xc(c,d[m])}return o}return GT(i,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&zy(this.menuListRef,this.focusedOptionRef),aA()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var c=this.props,d=c.isDisabled,m=c.menuIsOpen,h=this.state.isFocused;(h&&!d&&o.isDisabled||h&&m&&!o.menuIsOpen)&&this.focusInput(),h&&d&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!h&&!d&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(zy(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,c){this.props.onInputChange(o,c)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var c=this,d=this.state,m=d.selectValue,h=d.isFocused,p=this.buildFocusableOptions(),y=o==="first"?0:p.length-1;if(!this.props.isMulti){var g=p.indexOf(m[0]);g>-1&&(y=g)}this.scrollToFocusedOptionOnUpdate=!(h&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:p[y],focusedOptionId:this.getFocusedOptionId(p[y])},function(){return c.onMenuOpen()})}},{key:"focusValue",value:function(o){var c=this.state,d=c.selectValue,m=c.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var h=d.indexOf(m);m||(h=-1);var p=d.length-1,y=-1;if(d.length){switch(o){case"previous":h===0?y=0:h===-1?y=p:y=h-1;break;case"next":h>-1&&h<p&&(y=h+1);break}this.setState({inputIsHidden:y!==-1,focusedValue:d[y]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",c=this.props.pageSize,d=this.state.focusedOption,m=this.getFocusableOptions();if(m.length){var h=0,p=m.indexOf(d);d||(p=-1),o==="up"?h=p>0?p-1:m.length-1:o==="down"?h=(p+1)%m.length:o==="pageup"?(h=p-c,h<0&&(h=0)):o==="pagedown"?(h=p+c,h>m.length-1&&(h=m.length-1)):o==="last"&&(h=m.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:m[h],focusedValue:null,focusedOptionId:this.getFocusedOptionId(m[h])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Kc):ae(ae({},Kc),this.props.theme):Kc})},{key:"getCommonProps",value:function(){var o=this.clearValue,c=this.cx,d=this.getStyles,m=this.getClassNames,h=this.getValue,p=this.selectOption,y=this.setValue,g=this.props,b=g.isMulti,S=g.isRtl,E=g.options,w=this.hasValue();return{clearValue:o,cx:c,getStyles:d,getClassNames:m,getValue:h,hasValue:w,isMulti:b,isRtl:S,options:E,selectOption:p,selectProps:g,setValue:y,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,c=o.isClearable,d=o.isMulti;return c===void 0?d:c}},{key:"isOptionDisabled",value:function(o,c){return r_(this.props,o,c)}},{key:"isOptionSelected",value:function(o,c){return a_(this.props,o,c)}},{key:"filterOption",value:function(o,c){return i_(this.props,o,c)}},{key:"formatOptionLabel",value:function(o,c){if(typeof this.props.formatOptionLabel=="function"){var d=this.props.inputValue,m=this.state.selectValue;return this.props.formatOptionLabel(o,{context:c,inputValue:d,selectValue:m})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var o=this.props,c=o.isDisabled,d=o.isSearchable,m=o.inputId,h=o.inputValue,p=o.tabIndex,y=o.form,g=o.menuIsOpen,b=o.required,S=this.getComponents(),E=S.Input,w=this.state,M=w.inputIsHidden,R=w.ariaSelection,k=this.commonProps,B=m||this.getElementId("input"),Y=ae(ae(ae({"aria-autocomplete":"list","aria-expanded":g,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":b,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},g&&{"aria-controls":this.getElementId("listbox")}),!d&&{"aria-readonly":!0}),this.hasValue()?R?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return d?$.createElement(E,se({},k,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:B,innerRef:this.getInputRef,isDisabled:c,isHidden:M,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:p,form:y,type:"text",value:h},Y)):$.createElement(YC,se({id:B,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Xu,onFocus:this.onInputFocus,disabled:c,tabIndex:p,inputMode:"none",form:y,value:""},Y))})},{key:"renderPlaceholderOrValue",value:function(){var o=this,c=this.getComponents(),d=c.MultiValue,m=c.MultiValueContainer,h=c.MultiValueLabel,p=c.MultiValueRemove,y=c.SingleValue,g=c.Placeholder,b=this.commonProps,S=this.props,E=S.controlShouldRenderValue,w=S.isDisabled,M=S.isMulti,R=S.inputValue,k=S.placeholder,B=this.state,Y=B.selectValue,z=B.focusedValue,F=B.isFocused;if(!this.hasValue()||!E)return R?null:$.createElement(g,se({},b,{key:"placeholder",isDisabled:w,isFocused:F,innerProps:{id:this.getElementId("placeholder")}}),k);if(M)return Y.map(function(Q,ie){var he=Q===z,fe="".concat(o.getOptionLabel(Q),"-").concat(o.getOptionValue(Q));return $.createElement(d,se({},b,{components:{Container:m,Label:h,Remove:p},isFocused:he,isDisabled:w,key:fe,index:ie,removeProps:{onClick:function(){return o.removeValue(Q)},onTouchEnd:function(){return o.removeValue(Q)},onMouseDown:function(pe){pe.preventDefault()}},data:Q}),o.formatOptionLabel(Q,"value"))});if(R)return null;var j=Y[0];return $.createElement(y,se({},b,{data:j,isDisabled:w}),this.formatOptionLabel(j,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),c=o.ClearIndicator,d=this.commonProps,m=this.props,h=m.isDisabled,p=m.isLoading,y=this.state.isFocused;if(!this.isClearable()||!c||h||!this.hasValue()||p)return null;var g={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return $.createElement(c,se({},d,{innerProps:g,isFocused:y}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),c=o.LoadingIndicator,d=this.commonProps,m=this.props,h=m.isDisabled,p=m.isLoading,y=this.state.isFocused;if(!c||!p)return null;var g={"aria-hidden":"true"};return $.createElement(c,se({},d,{innerProps:g,isDisabled:h,isFocused:y}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),c=o.DropdownIndicator,d=o.IndicatorSeparator;if(!c||!d)return null;var m=this.commonProps,h=this.props.isDisabled,p=this.state.isFocused;return $.createElement(d,se({},m,{isDisabled:h,isFocused:p}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),c=o.DropdownIndicator;if(!c)return null;var d=this.commonProps,m=this.props.isDisabled,h=this.state.isFocused,p={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return $.createElement(c,se({},d,{innerProps:p,isDisabled:m,isFocused:h}))}},{key:"renderMenu",value:function(){var o=this,c=this.getComponents(),d=c.Group,m=c.GroupHeading,h=c.Menu,p=c.MenuList,y=c.MenuPortal,g=c.LoadingMessage,b=c.NoOptionsMessage,S=c.Option,E=this.commonProps,w=this.state.focusedOption,M=this.props,R=M.captureMenuScroll,k=M.inputValue,B=M.isLoading,Y=M.loadingMessage,z=M.minMenuHeight,F=M.maxMenuHeight,j=M.menuIsOpen,Q=M.menuPlacement,ie=M.menuPosition,he=M.menuPortalTarget,fe=M.menuShouldBlockScroll,le=M.menuShouldScrollIntoView,pe=M.noOptionsMessage,Ne=M.onMenuScrollToTop,_e=M.onMenuScrollToBottom;if(!j)return null;var U=function(X,Z){var ue=X.type,ce=X.data,be=X.isDisabled,$e=X.isSelected,Pe=X.label,fr=X.value,dr=w===ce,Br=be?void 0:function(){return o.onOptionHover(ce)},Ji=be?void 0:function(){return o.selectOption(ce)},rn="".concat(o.getElementId("option"),"-").concat(Z),Ba={id:rn,onClick:Ji,onMouseMove:Br,onMouseOver:Br,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:$e};return $.createElement(S,se({},E,{innerProps:Ba,data:ce,isDisabled:be,isSelected:$e,key:rn,label:Pe,type:ue,value:fr,isFocused:dr,innerRef:dr?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(X.data,"menu"))},K;if(this.hasOptions())K=this.getCategorizedOptions().map(function(V){if(V.type==="group"){var X=V.data,Z=V.options,ue=V.index,ce="".concat(o.getElementId("group"),"-").concat(ue),be="".concat(ce,"-heading");return $.createElement(d,se({},E,{key:ce,data:X,options:Z,Heading:m,headingProps:{id:be,data:V.data},label:o.formatGroupLabel(V.data)}),V.options.map(function($e){return U($e,"".concat(ue,"-").concat($e.index))}))}else if(V.type==="option")return U(V,"".concat(V.index))});else if(B){var ee=Y({inputValue:k});if(ee===null)return null;K=$.createElement(g,E,ee)}else{var Se=pe({inputValue:k});if(Se===null)return null;K=$.createElement(b,E,Se)}var we={minMenuHeight:z,maxMenuHeight:F,menuPlacement:Q,menuPosition:ie,menuShouldScrollIntoView:le},C=$.createElement(TO,se({},E,we),function(V){var X=V.ref,Z=V.placerProps,ue=Z.placement,ce=Z.maxHeight;return $.createElement(h,se({},E,we,{innerRef:X,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:B,placement:ue}),$.createElement(ZC,{captureEnabled:R,onTopArrive:Ne,onBottomArrive:_e,lockEnabled:fe},function(be){return $.createElement(p,se({},E,{innerRef:function(Pe){o.getMenuListRef(Pe),be(Pe)},innerProps:{role:"listbox","aria-multiselectable":E.isMulti,id:o.getElementId("listbox")},isLoading:B,maxHeight:ce,focusedOption:w}),K)}))});return he||ie==="fixed"?$.createElement(y,se({},E,{appendTo:he,controlElement:this.controlRef,menuPlacement:Q,menuPosition:ie}),C):C}},{key:"renderFormField",value:function(){var o=this,c=this.props,d=c.delimiter,m=c.isDisabled,h=c.isMulti,p=c.name,y=c.required,g=this.state.selectValue;if(y&&!this.hasValue()&&!m)return $.createElement(eA,{name:p,onFocus:this.onValueInputFocus});if(!(!p||m))if(h)if(d){var b=g.map(function(w){return o.getOptionValue(w)}).join(d);return $.createElement("input",{name:p,type:"hidden",value:b})}else{var S=g.length>0?g.map(function(w,M){return $.createElement("input",{key:"i-".concat(M),name:p,type:"hidden",value:o.getOptionValue(w)})}):$.createElement("input",{name:p,type:"hidden",value:""});return $.createElement("div",null,S)}else{var E=g[0]?this.getOptionValue(g[0]):"";return $.createElement("input",{name:p,type:"hidden",value:E})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,c=this.state,d=c.ariaSelection,m=c.focusedOption,h=c.focusedValue,p=c.isFocused,y=c.selectValue,g=this.getFocusableOptions();return $.createElement(VC,se({},o,{id:this.getElementId("live-region"),ariaSelection:d,focusedOption:m,focusedValue:h,isFocused:p,selectValue:y,focusableOptions:g,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),c=o.Control,d=o.IndicatorsContainer,m=o.SelectContainer,h=o.ValueContainer,p=this.props,y=p.className,g=p.id,b=p.isDisabled,S=p.menuIsOpen,E=this.state.isFocused,w=this.commonProps=this.getCommonProps();return $.createElement(m,se({},w,{className:y,innerProps:{id:g,onKeyDown:this.onKeyDown},isDisabled:b,isFocused:E}),this.renderLiveRegion(),$.createElement(c,se({},w,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:b,isFocused:E,menuIsOpen:S}),$.createElement(h,se({},w,{isDisabled:b}),this.renderPlaceholderOrValue(),this.renderInput()),$.createElement(d,se({},w,{isDisabled:b}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,c){var d=c.prevProps,m=c.clearFocusValueOnUpdate,h=c.inputIsHiddenAfterUpdate,p=c.ariaSelection,y=c.isFocused,g=c.prevWasFocused,b=c.instancePrefix,S=o.options,E=o.value,w=o.menuIsOpen,M=o.inputValue,R=o.isMulti,k=Qu(E),B={};if(d&&(E!==d.value||S!==d.options||w!==d.menuIsOpen||M!==d.inputValue)){var Y=w?pA(o,k):[],z=w?Ky(Hu(o,k),"".concat(b,"-option")):[],F=m?mA(c,k):null,j=vA(c,Y),Q=Xc(z,j);B={selectValue:k,focusedOption:j,focusedOptionId:Q,focusableOptionsWithIds:z,focusedValue:F,clearFocusValueOnUpdate:!1}}var ie=h!=null&&o!==d?{inputIsHidden:h,inputIsHiddenAfterUpdate:void 0}:{},he=p,fe=y&&g;return y&&!fe&&(he={value:Bi(R,k,k[0]||null),options:k,action:"initial-input-focus"},fe=!g),p?.action==="initial-input-focus"&&(he=null),ae(ae(ae({},B),ie),{},{prevProps:o,ariaSelection:he,prevWasFocused:fe})}}]),i})($.Component);Hd.defaultProps=hA;var gA=$.forwardRef(function(r,n){var i=bb(r);return $.createElement(Hd,se({ref:n},i))}),bA=gA,_A=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Qy=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0,u=arguments.length>2?arguments[2]:void 0,o=String(n).toLowerCase(),c=String(u.getOptionValue(i)).toLowerCase(),d=String(u.getOptionLabel(i)).toLowerCase();return c===o||d===o},Qc={formatCreateLabel:function(n){return'Create "'.concat(n,'"')},isValidNewOption:function(n,i,u,o){return!(!n||i.some(function(c){return Qy(n,c,o)})||u.some(function(c){return Qy(n,c,o)}))},getNewOptionData:function(n,i){return{label:i,value:n,__isNew__:!0}}};function SA(r){var n=r.allowCreateWhileLoading,i=n===void 0?!1:n,u=r.createOptionPosition,o=u===void 0?"last":u,c=r.formatCreateLabel,d=c===void 0?Qc.formatCreateLabel:c,m=r.isValidNewOption,h=m===void 0?Qc.isValidNewOption:m,p=r.getNewOptionData,y=p===void 0?Qc.getNewOptionData:p,g=r.onCreateOption,b=r.options,S=b===void 0?[]:b,E=r.onChange,w=hn(r,_A),M=w.getOptionValue,R=M===void 0?Wb:M,k=w.getOptionLabel,B=k===void 0?Jb:k,Y=w.inputValue,z=w.isLoading,F=w.isMulti,j=w.value,Q=w.name,ie=$.useMemo(function(){return h(Y,Qu(j),S,{getOptionValue:R,getOptionLabel:B})?y(Y,d(Y)):void 0},[d,y,B,R,Y,h,S,j]),he=$.useMemo(function(){return(i||!z)&&ie?o==="first"?[ie].concat(Aa(S)):[].concat(Aa(S),[ie]):S},[i,o,z,ie,S]),fe=$.useCallback(function(le,pe){if(pe.action!=="select-option")return E(le,pe);var Ne=Array.isArray(le)?le:[le];if(Ne[Ne.length-1]===ie){if(g)g(Y);else{var _e=y(Y,Y),U={action:"create-option",name:Q,option:_e};E(Bi(F,[].concat(Aa(Qu(j)),[_e]),_e),U)}return}E(le,pe)},[y,Y,F,Q,ie,g,E,j]);return ae(ae({},w),{},{options:he,onChange:fe})}var EA=$.forwardRef(function(r,n){var i=bb(r),u=SA(i);return $.createElement(Hd,se({ref:n},u))}),TA=EA,Re=function(){return Re=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},Re.apply(this,arguments)},u_=function(r,n){var i={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&n.indexOf(u)<0&&(i[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(r);o<u.length;o++)n.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(r,u[o])&&(i[u[o]]=r[u[o]]);return i},o_=function(r){return Re(Re({},r),{borderRadius:0,colors:Re(Re({},r.colors),{primary25:"var(--color--surface-hover)",neutral10:"var(--color--border)",neutral20:"var(--color--border)",primary:"var(--color--focus--border)",neutral30:"var(--color--border-hover)"})})},s_=function(r,n){return $.useMemo(function(){return{placeholder:function(i){return Re(Re({},i),{color:"var(--color--ink-placeholder)"})},container:function(i){return Re(Re({},i),{fontSize:"inherit"})},control:function(i,u){var o=u.isFocused,c=i;return c=Re(Re({},c),{minHeight:40}),o?Re(Re({},c),{borderColor:n?"var(--color--danger-soft--border)":"var(--color--focus--border)",backgroundColor:r?"var(--color--disabled--surface)":"var(--color--surface)",boxShadow:"0 0 0 4px ".concat(n?"var(--color--danger-soft--outline)":"var(--color--focus--outline)"),"&:hover":{borderColor:n?"var(--color--danger-soft--border)":"var(--color--focus--border)"}}):Re(Re({},c),{borderColor:n?"var(--color--danger-soft--border)":"var(--color--border)",backgroundColor:r?"var(--color--disabled--surface)":"var(--color--surface)","&:hover":{borderColor:n?"var(--color--danger-soft--border)":"var(--color--border-hover)"}})},multiValueRemove:function(i){return Re(Re({},i),{cursor:"pointer",color:"var(--color--primary-soft--ink)",":hover":{backgroundColor:"var(--color--primary-soft--surface-hover)",color:"var(--color--primary-soft--ink)"}})},menu:function(i){return Re(Re({},i),{zIndex:1e3,minWidth:250,backgroundColor:"var(--color--surface-raised)",boxShadow:"var(--shadow--floating)"})},singleValue:function(i){return Re(Re({},i),{color:"var(--color--ink)"})},input:function(i){return Re(Re({},i),{color:"var(--color--ink)",boxShadow:"none","input:focus":{boxShadow:"none"}})},option:function(i,u){var o=u.isFocused,c=u.isSelected;return Re(Re({},i),{backgroundColor:c?"var(--color--selected--surface)":o?"var(--color--surface-hover)":void 0,color:"var(--color--ink)"})},multiValue:function(i){return Re(Re({},i),{zIndex:100,backgroundColor:"var(--color--primary-soft--surface)",userSelect:"none"})},multiValueLabel:function(i){return Re(Re({},i),{fontSize:"inherit",padding:3,color:"var(--color--primary-soft--ink)"})}}},[r,n])};function wA(r){var n=r.isDisabled,i=r.error,u=u_(r,["isDisabled","error"]),o=s_(n,i);return ye.createElement(bA,Re({},u,{isDisabled:n,theme:o_,styles:o}))}function OA(r){var n=r.isDisabled,i=r.error,u=u_(r,["isDisabled","error"]),o=s_(n,i);return ye.createElement(TA,Re({},u,{isDisabled:n,theme:o_,styles:o}))}const CA="_Spinner__bar_1u42l_13",Zc={"Spinner--inline":"_Spinner--inline_1u42l_1","Spinner--centered":"_Spinner--centered_1u42l_7",Spinner__bar:CA};var Wu=function(){return Wu=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},Wu.apply(this,arguments)};function AA(r){for(var n,i=r.size,u=i===void 0?32:i,o=r.placement,c=o===void 0?"inline":o,d=r.style,m=d===void 0?{}:d,h=[],p=0;p<12;p+=1){var y={};y.animationDelay="".concat((p-12)/10,"s"),y.transform="rotate(".concat(p*30,"deg) translate(146%)"),h.push(ye.createElement("div",{style:y,className:Zc.Spinner__bar,key:p}))}var g={width:u*.5,height:u*.5};return c==="inline"&&(g.marginLeft=u*.5,g.transform="translateY(33%)"),ye.createElement("div",{className:jt((n={},n[Zc["Spinner--inline"]]=c==="inline",n[Zc["Spinner--centered"]]=c==="centered",n)),style:Wu(Wu({},m),g)},h)}var md=function(){return md=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},md.apply(this,arguments)};function xA(r){var n=r.id,i=r.name,u=r.label,o=r.hint,c=r.error,d=r.required,m=r.placeholder,h=r.formLabelProps,p=r.value,y=r.onChange,g=r.textareaInputProps;return ye.createElement(ao,{formLabelProps:h,id:n,required:d,error:c,hint:o,label:u},ye.createElement(DA,md({},g,{id:n,name:i,value:p,placeholder:m,onChange:y,error:!!c})))}const MA="_TextareaInput_1xr0a_1",Au={TextareaInput:MA,"TextareaInput--monospaced":"_TextareaInput--monospaced_1xr0a_32","TextareaInput--disabled":"_TextareaInput--disabled_1xr0a_37","TextareaInput--error":"_TextareaInput--error_1xr0a_43"};var vd=function(){return vd=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},vd.apply(this,arguments)},RA=function(r,n){var i={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&n.indexOf(u)<0&&(i[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(r);o<u.length;o++)n.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(r,u[o])&&(i[u[o]]=r[u[o]]);return i},DA=function(r){var n,i=r.className,u=r.disabled,o=u===void 0?!1:u,c=r.error,d=r.id,m=r.inputRef,h=r.maxLength,p=r.name,y=r.labelText,g=r.onBlur,b=r.onChange,S=r.placeholder,E=r.required,w=E===void 0?!1:E,M=r.value,R=r.monospaced,k=RA(r,["className","disabled","error","id","inputRef","maxLength","name","labelText","onBlur","onChange","placeholder","required","value","monospaced"]),B=$.useCallback(function(z){b&&b(z.target.value,z)},[b]),Y=jt(Au.TextareaInput,i,(n={},n[Au["TextareaInput--disabled"]]=o,n[Au["TextareaInput--error"]]=c,n[Au["TextareaInput--monospaced"]]=R,n));return ye.createElement("textarea",vd({className:Y,"aria-label":y,id:d,name:p,required:w,placeholder:S,maxLength:h,disabled:o,onBlur:g,onChange:B,value:M,ref:m},k))},yd=function(){return yd=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},yd.apply(this,arguments)};function qA(r){var n=r.id,i=r.name,u=r.label,o=r.hint,c=r.error,d=r.required,m=r.placeholder,h=r.formLabelProps,p=r.value,y=r.onChange,g=r.textInputProps;return ye.createElement(ao,{formLabelProps:h,id:n,required:d,error:c,hint:o,label:u},ye.createElement(UA,yd({},g,{id:n,name:i,value:p,placeholder:m,onChange:y,error:!!c})))}const LA="_TextInput_1kqkh_1",xu={TextInput:LA,"TextInput--monospaced":"_TextInput--monospaced_1kqkh_32","TextInput--disabled":"_TextInput--disabled_1kqkh_37","TextInput--error":"_TextInput--error_1kqkh_43"};var gd=function(){return gd=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},gd.apply(this,arguments)},zA=function(r,n){var i={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&n.indexOf(u)<0&&(i[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(r);o<u.length;o++)n.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(r,u[o])&&(i[u[o]]=r[u[o]]);return i},UA=function(r){var n,i=r.className,u=r.disabled,o=u===void 0?!1:u,c=r.error,d=r.id,m=r.inputRef,h=r.maxLength,p=r.name,y=r.labelText,g=r.onBlur,b=r.onChange,S=r.placeholder,E=r.required,w=E===void 0?!1:E,M=r.type,R=r.value,k=r.monospaced,B=zA(r,["className","disabled","error","id","inputRef","maxLength","name","labelText","onBlur","onChange","placeholder","required","type","value","monospaced"]),Y=$.useCallback(function(F){b&&b(F.target.value,F)},[b]),z=jt(xu.TextInput,i,(n={},n[xu["TextInput--disabled"]]=o,n[xu["TextInput--error"]]=c,n[xu["TextInput--monospaced"]]=k,n));return ye.createElement("input",gd({className:z,"aria-label":y,id:d,name:p,required:w,placeholder:S,maxLength:h,disabled:o,onBlur:g,onChange:Y,value:R,type:M,ref:m},B))};const c_=["alttext-ai","openai","anthropic","gemini"],Zi={"alttext-ai":"AltText.ai",openai:"OpenAI",anthropic:"Anthropic",gemini:"Google Gemini"},bd=c_.map(r=>({value:r,label:Zi[r]})),NA="openai",f_='Write concise, useful alternative text for this image in {locale}. Describe its meaningful visual content and include important visible text. Use the filename "{filename}" only as supporting context, and do not invent details. Do not begin with phrases such as "image of" or "picture of". Return only the alt text, without quotation marks or an explanation.',jA={google:"gemini",claude:"anthropic"};function HA(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)?r:{}}function qn(r){return typeof r=="string"?r.trim():""}function VA(r,n){const i=qn(r).toLowerCase(),u=jA[i]??i;return c_.includes(u)?u:n?"alttext-ai":NA}function GA(r){return typeof r!="string"||r.trim()===""?f_:r}function Lr(r,n){return r.trim()?null:n}const BA={"alttext-ai":r=>Lr(r.altTextAiApiKey,"AltText.ai API key is required."),openai:r=>Lr(r.openAiApiKey,"OpenAI API key is required.")??Lr(r.openAiModel,"OpenAI model is required."),anthropic:r=>Lr(r.anthropicApiKey,"Anthropic API key is required.")??Lr(r.anthropicModel,"Anthropic model is required."),gemini:r=>Lr(r.geminiApiKey,"Gemini API key is required.")??Lr(r.geminiModel,"Gemini model is required.")};function ki(r){const n=HA(r),i=qn(n.apiKey),u=qn(n.altTextAiApiKey)||i;return{provider:VA(n.provider,!!u),altTextAiApiKey:u,openAiApiKey:qn(n.openAiApiKey),openAiModel:qn(n.openAiModel),anthropicApiKey:qn(n.anthropicApiKey),anthropicModel:qn(n.anthropicModel),geminiApiKey:qn(n.geminiApiKey),geminiModel:qn(n.geminiModel),prompt:GA(n.prompt)}}function Mu(r){const n=ki(r);return{...n,apiKey:n.altTextAiApiKey}}function eo(r){return BA[r.provider](r)??(r.provider!=="alttext-ai"&&!r.prompt.trim()?"Prompt is required for direct AI providers.":null)}const IA={"alttext-ai":"AltText.ai",openai:"OpenAI",anthropic:"Anthropic",gemini:"Gemini"};class Xe extends Error{provider;code;status;details;constructor(n,i,u,o){super(`${IA[n]}: ${u.trim()||"Request failed"}`),this.name="AltTextProviderError",this.provider=n,this.code=i,this.status=o?.status,this.details=o?.details}}function PA(r){return r instanceof Xe}function _d(r){return typeof r=="object"&&r!==null?r:null}function d_(r){for(const n of r)if(typeof n=="string"&&n.trim())return n.trim();return null}function $A(r){const i=_d(r)?.base;return Array.isArray(i)?d_(i):typeof i=="string"&&i.trim()?i.trim():null}function h_(r,n="Request failed"){if(typeof r=="string"&&r.trim())return r.trim();const i=_d(r);if(!i)return n;const u=_d(i.error);return d_([u?.message,u?.type,i.message,$A(i.errors),i.error_code,typeof i.error=="string"?i.error:null])??n}function YA(r,n){const i=n.toLowerCase();return/quota|billing|credit|usage limit/.test(i)?"quota":r===401||r===403?"auth":r===429?"rate_limit":r===404||/model.+(?:not found|does not exist|unsupported)|invalid model/.test(i)?"model":r===400||r===409||r===422?"invalid_request":"provider"}function kA(r,n,i){const u=n.statusText.trim()||`Request failed with HTTP ${n.status}`,o=h_(i,u);return new Xe(r,YA(n.status,o),o,{status:n.status})}function Sd(r){return r instanceof DOMException&&r.name==="AbortError"||r instanceof Error&&r.name==="AbortError"}function FA(r,n){return PA(n)?n:new Xe(r,"network","Could not reach the provider. Check the connection and browser access, then try again.")}function ze(r){return typeof r=="object"&&r!==null?r:null}function Ga(r,n){return`${r.replace(/\/+$/,"")}/${n.replace(/^\/+/,"")}`}function KA(r){const n=r.replace(/_/g,"-"),i=Intl.DisplayNames;if(i)try{const u=new i(["en"],{type:"language"}).of(n);if(u)return`${u} (locale code "${r}")`}catch{}return`the language identified by locale code "${r}"`}function XA(r,n){return(r.trim()||f_).replace(/\{locale\}/g,()=>KA(n.locale)).replace(/\{filename\}/g,()=>n.filename).trim()}function QA(r,n){try{const i=new URL(n);if(i.protocol!=="https:"&&i.protocol!=="http:")throw new Error("Unsupported URL protocol");return i.toString()}catch{throw new Xe(r,"invalid_request","The asset does not have a valid public image URL.")}}function co(r,n){const i=n.locale.trim()||"en",u=n.filename.trim();return{imageUrl:QA(r,n.imageUrl.trim()),assetId:n.assetId.trim(),locale:i,filename:u,prompt:XA(n.promptTemplate,{locale:i,filename:u}),signal:n.signal}}async function ZA(r){const n=await r.text();if(!n.trim())return null;try{return JSON.parse(n)}catch{return n}}async function Vr(r,n,i){let u;try{u=await fetch(n,i)}catch(c){throw Sd(c)?c:FA(r,c)}let o;try{o=await ZA(u)}catch(c){throw new Xe(r,"invalid_response","Could not read the provider response.",{status:u.status,details:c})}if(!u.ok)throw kA(r,u,o);if(o===null||typeof o=="string")throw new Xe(r,"invalid_response","The provider returned an invalid JSON response.",{status:u.status,details:o});return o}function JA(r){return r.replace(/^```(?:text|plaintext|markdown)?\s*/i,"").replace(/\s*```$/,"").trim()}function WA(r){const n=[['"','"'],["'","'"],["“","”"],["‘","’"],["`","`"]];for(const[i,u]of n)if(r.startsWith(i)&&r.endsWith(u))return r.slice(i.length,-u.length).trim();return r}function e2(r){let n=JA(r);for(let i=0;i<4;i+=1){const u=n;if(n=WA(n.trim()).replace(/^(?:alt(?:ernative)?\s*text|description)\s*:\s*/i,"").trim(),n===u)break}return n.replace(/\s+/g," ").trim()}function fo(r,n){const i=e2(n);if(!i)throw new Xe(r,"empty_response","The provider returned no alt text.");return i}function t2(r){let i="";for(let u=0;u<r.length;u+=32768){const o=r.subarray(u,u+32768);i+=String.fromCharCode(...o)}return btoa(i)}async function n2(r,n,i){let u;try{u=await fetch(n,{signal:i})}catch(o){throw Sd(o)?o:new Xe(r,"image_fetch","Could not download the image for analysis.",{details:o})}if(!u.ok)throw new Xe(r,"image_fetch",`Could not download the image (HTTP ${u.status}).`,{status:u.status});try{const o=new Uint8Array(await u.arrayBuffer()),c=u.headers.get("content-type")?.split(";")[0];return{data:t2(o),mimeType:c?.startsWith("image/")?c:"image/jpeg"}}catch(o){throw Sd(o)?o:new Xe(r,"image_fetch","Could not read the downloaded image.",{details:o})}}const r2="https://api.openai.com/v1",a2="https://api.anthropic.com/v1",i2="https://generativelanguage.googleapis.com/v1beta",p_="1000",m_=50;function Vd(r,n){const i=n.trim();if(!i)throw new Xe(r,"configuration","API key is required to load models.");return i}function Gd(r){return Array.from(new Set(r)).sort((n,i)=>n.localeCompare(i))}function l2(r){const n=ze(r);if(!n||!Array.isArray(n.data))return[];const i=[];for(const u of n.data){const o=ze(u);typeof o?.id=="string"&&o.id.trim()&&i.push(o.id.trim())}return i}async function u2(r,n,i=r2){const u=Vd("openai",r),o=await Vr("openai",Ga(i,"models"),{headers:{Authorization:`Bearer ${u}`},signal:n});return Gd(l2(o))}function to(r){return new Xe(r,"invalid_response","The provider returned invalid model-list pagination data.")}function o2(r){const n=ze(r);if(!n||!Array.isArray(n.data))return[];const i=[];for(const u of n.data){const o=ze(u);typeof o?.id=="string"&&o.id.trim()&&i.push(o.id.trim())}return i}async function v_(r,n,i,u,o=1){if(o>m_)throw to("anthropic");const c=new URL(Ga(i,"models"));c.searchParams.set("limit",p_),u&&c.searchParams.set("after_id",u);const d=await Vr("anthropic",c.toString(),{headers:{"anthropic-dangerous-direct-browser-access":"true","anthropic-version":"2023-06-01","x-api-key":r},signal:n}),m=o2(d),h=ze(d);if(h?.has_more!==!0)return m;const p=h.last_id;if(typeof p!="string"||!p||p===u)throw to("anthropic");const y=await v_(r,n,i,p,o+1);return[...m,...y]}async function s2(r,n,i=a2){const u=Vd("anthropic",r);return Gd(await v_(u,n,i))}function c2(r){return r.startsWith("models/")?r.slice(7):r}function f2(r){const n=ze(r);if(!n||!Array.isArray(n.models))return[];const i=[];for(const u of n.models){const o=ze(u);typeof o?.name!="string"||!o.name.trim()||i.push(c2(o.name.trim()))}return i}async function y_(r,n,i,u,o=1){if(o>m_)throw to("gemini");const c=new URL(Ga(i,"models"));c.searchParams.set("pageSize",p_),u&&c.searchParams.set("pageToken",u);const d=await Vr("gemini",c.toString(),{headers:{"x-goog-api-key":r},signal:n}),m=f2(d),p=ze(d)?.nextPageToken;if(p==null)return m;if(typeof p!="string"||!p||p===u)throw to("gemini");const y=await y_(r,n,i,p,o+1);return[...m,...y]}async function d2(r,n,i=i2){const u=Vd("gemini",r);return Gd(await y_(u,n,i))}async function h2(r,n,i){switch(r){case"openai":return u2(n,i);case"anthropic":return s2(n,i);case"gemini":return d2(n,i)}}const p2="_intro_z1rey_1",m2="_documentationHint_z1rey_8",v2="_readOnlyNotice_z1rey_35",y2="_externalChangeNotice_z1rey_36",g2="_fieldHelp_z1rey_52",b2="_sectionHelp_z1rey_53",zr={intro:p2,documentationHint:m2,readOnlyNotice:v2,externalChangeNotice:y2,fieldHelp:g2,sectionHelp:b2},_2=600,S2="https://github.com/datocms/plugins/tree/master/alt-text-ai#where-to-generate-alt-text",E2={"alttext-ai":{apiKeyLabel:"AltText.ai API key",apiKeyPlaceholder:"Paste your AltText.ai API key",apiKeyUrl:"https://alttext.ai/account/api_keys"},openai:{apiKeyLabel:"OpenAI API key",apiKeyPlaceholder:"sk-...",apiKeyUrl:"https://platform.openai.com/api-keys",modelLabel:"OpenAI model"},anthropic:{apiKeyLabel:"Anthropic API key",apiKeyPlaceholder:"sk-ant-...",apiKeyUrl:"https://console.anthropic.com/settings/keys",modelLabel:"Claude model"},gemini:{apiKeyLabel:"Gemini API key",apiKeyPlaceholder:"AIza...",apiKeyUrl:"https://aistudio.google.com/app/apikey",modelLabel:"Gemini model"}};function Bd(r){return r!=="alttext-ai"}function T2(r){switch(r.provider){case"alttext-ai":return r.altTextAiApiKey;case"openai":return r.openAiApiKey;case"anthropic":return r.anthropicApiKey;case"gemini":return r.geminiApiKey}}function w2(r,n){switch(r.provider){case"alttext-ai":return{...r,altTextAiApiKey:n};case"openai":return{...r,openAiApiKey:n};case"anthropic":return{...r,anthropicApiKey:n};case"gemini":return{...r,geminiApiKey:n}}}function O2(r){switch(r.provider){case"openai":return r.openAiModel;case"anthropic":return r.anthropicModel;case"gemini":return r.geminiModel;case"alttext-ai":return""}}function C2(r,n){switch(r.provider){case"openai":return{...r,openAiModel:n};case"anthropic":return{...r,anthropicModel:n};case"gemini":return{...r,geminiModel:n};case"alttext-ai":return r}}function g_(r){return r&&!Array.isArray(r)&&typeof r=="object"&&"value"in r&&typeof r.value=="string"?r.value:null}function b_(r){return r instanceof Error?r.message:"Unknown error"}function A2(r,n){const[i,u]=$.useState({models:[],isLoading:!1,error:null});return $.useEffect(()=>{if(!Bd(r)||!n.trim()){u({models:[],isLoading:!1,error:null});return}u({models:[],isLoading:!1,error:null});const o=new AbortController,c=window.setTimeout(()=>{u({models:[],isLoading:!0,error:null}),h2(r,n.trim(),o.signal).then(d=>{o.signal.aborted||u({models:d,isLoading:!1,error:null})}).catch(d=>{o.signal.aborted||u({models:[],isLoading:!1,error:`Could not load models: ${b_(d)}`})})},_2);return()=>{window.clearTimeout(c),o.abort()}},[n,r]),i}function x2(r){const n=g_(r);return bd.some(i=>i.value===n)?n:null}function M2(r,n){return Array.from(new Set([n,...r].filter(Boolean))).map(i=>({label:i,value:i}))}function R2(r,n,i,u,o){const c=Bd(r);return{apiKey:n.trim()?void 0:`${o.apiKeyLabel} is required.`,model:c&&!i.trim()?`${o.modelLabel||"Model"} is required.`:void 0,prompt:c&&!u.trim()?"Prompt is required for direct AI providers.":void 0}}function D2(r,n){if(!r.trim())return"Enter an API key to load models directly from the provider.";if(n.isLoading)return"Loading models directly from the provider…";if(n.error)return n.error;if(n.models.length===0)return"The provider returned no models. You can enter a model ID manually.";const i=n.models.length;return`${i} model${i===1?"":"s"} loaded directly from the provider. Select one that accepts image input and returns text, or enter a model ID manually.`}function q2({ctx:r}){const n=$.useMemo(()=>ki(r.plugin.attributes.parameters),[r.plugin.attributes.parameters]),[i,u]=$.useState(n),[o,c]=$.useState(n),[d,m]=$.useState(!1),[h,p]=$.useState(!1),y=JSON.stringify(Mu(n)),g=JSON.stringify(Mu(i)),b=JSON.stringify(Mu(o)),S=$.useRef(y),E=g!==b;$.useEffect(()=>{if(y!==S.current){if(S.current=y,E){p(!0);return}u(n),c(n),p(!1)}},[y,n,E]);const w=r.currentRole.meta.final_permissions.can_edit_schema===!0,M=T2(i),R=O2(i),k=A2(i.provider,M),B=eo(i),Y=E2[i.provider],z=!w||d,F=R2(i.provider,M,R,i.prompt,Y),j=$.useMemo(()=>M2(k.models,R),[k.models,R]),Q=async()=>{const he=eo(i);if(he){await r.alert(he);return}if(h){await r.alert("Plugin settings changed elsewhere. Load the latest settings before saving.");return}m(!0);try{const fe=Mu(i);await r.updatePluginParameters(fe);const le=ki(fe);u(le),c(le),p(!1),r.notice("Alt text provider settings saved.")}catch(fe){r.alert(`Could not save plugin settings: ${b_(fe)}`)}finally{m(!1)}},ie=D2(M,k);return Fe.jsxs(RE,{ctx:r,children:[Fe.jsx("p",{className:zr.intro,children:"Choose the service that will inspect your images and generate localized alt text. API requests run directly from the DatoCMS dashboard."}),Fe.jsxs("p",{className:zr.documentationHint,children:["Not sure where to find the alt text actions?"," ",Fe.jsx("a",{href:S2,target:"_blank",rel:"noreferrer","aria-label":"See where the alt text actions appear in the documentation (opens in a new tab)",children:"See the illustrated usage guide ↗"})]}),!w&&Fe.jsx("div",{className:zr.readOnlyNotice,children:"Your role can view these settings but cannot change plugin configuration."}),h&&Fe.jsxs("div",{className:zr.externalChangeNotice,children:[Fe.jsx("span",{children:"Plugin settings changed elsewhere while you were editing. Load the latest settings to avoid overwriting them."}),Fe.jsx(ty,{buttonType:"muted",buttonSize:"s",disabled:d,onClick:()=>{u(n),c(n),p(!1)},children:"Load latest settings"})]}),Fe.jsxs(bT,{onSubmit:()=>{Q()},children:[Fe.jsx(by,{title:"Provider",children:Fe.jsxs(dT,{children:[Fe.jsx(DT,{id:"provider",name:"provider",label:"Alt text provider",value:bd.find(he=>he.value===i.provider),selectInputProps:{isDisabled:z,options:bd},onChange:he=>{const fe=x2(he);fe&&u(le=>({...le,provider:fe}))}}),Fe.jsxs("div",{children:[Fe.jsx(qA,{required:!0,id:"providerApiKey",name:"providerApiKey",label:Y.apiKeyLabel,error:F.apiKey,placeholder:Y.apiKeyPlaceholder,value:M,textInputProps:{autoComplete:"off",disabled:z,monospaced:!0,type:"password"},onChange:he=>u(fe=>w2(fe,he))}),Fe.jsxs("p",{className:zr.fieldHelp,children:["Create or manage keys in the"," ",Fe.jsxs("a",{href:Y.apiKeyUrl,target:"_blank",rel:"noreferrer",children:[Zi[i.provider]," dashboard"]}),". The key is stored in this plugin's settings and used by browser requests."]})]}),Bd(i.provider)&&Fe.jsx(qT,{required:!0,id:"providerModel",name:"providerModel",label:Y.modelLabel||"Model",error:F.model,hint:ie,value:R?{label:R,value:R}:null,selectInputProps:{formatCreateLabel:he=>`Use model “${he}”`,isDisabled:z,isLoading:k.isLoading,options:j},onChange:he=>{const fe=g_(he);fe&&u(le=>C2(le,fe))}})]})}),Fe.jsxs(by,{title:"Generation instructions",children:[i.provider==="alttext-ai"?Fe.jsx("p",{className:zr.sectionHelp,children:"AltText.ai applies the generation settings configured in your AltText.ai account. The prompt below is used when you select a direct model provider."}):Fe.jsx("p",{className:zr.sectionHelp,children:"The prompt is sent with each image. Keep the output instruction strict so the response contains only usable alt text."}),Fe.jsx(xA,{required:i.provider!=="alttext-ai",id:"prompt",name:"prompt",label:"Prompt template",error:F.prompt,hint:"Available placeholders: {locale} and {filename}.",value:i.prompt,textareaInputProps:{disabled:z,rows:7},onChange:he=>u(fe=>({...fe,prompt:he}))})]}),w&&Fe.jsxs(ty,{type:"submit",buttonType:"primary",buttonSize:"l",disabled:!E||d||h||B!==null,fullWidth:!0,children:[d?"Saving…":"Save settings",d&&Fe.jsx(AA,{size:24})]})]})]})}var Jc={exports:{}},Hi={},Wc={exports:{}},ef={};var Zy;function L2(){return Zy||(Zy=1,(function(r){function n(U,K){var ee=U.length;U.push(K);e:for(;0<ee;){var Se=ee-1>>>1,we=U[Se];if(0<o(we,K))U[Se]=K,U[ee]=we,ee=Se;else break e}}function i(U){return U.length===0?null:U[0]}function u(U){if(U.length===0)return null;var K=U[0],ee=U.pop();if(ee!==K){U[0]=ee;e:for(var Se=0,we=U.length,C=we>>>1;Se<C;){var V=2*(Se+1)-1,X=U[V],Z=V+1,ue=U[Z];if(0>o(X,ee))Z<we&&0>o(ue,X)?(U[Se]=ue,U[Z]=ee,Se=Z):(U[Se]=X,U[V]=ee,Se=V);else if(Z<we&&0>o(ue,ee))U[Se]=ue,U[Z]=ee,Se=Z;else break e}}return K}function o(U,K){var ee=U.sortIndex-K.sortIndex;return ee!==0?ee:U.id-K.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;r.unstable_now=function(){return c.now()}}else{var d=Date,m=d.now();r.unstable_now=function(){return d.now()-m}}var h=[],p=[],y=1,g=null,b=3,S=!1,E=!1,w=!1,M=!1,R=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function Y(U){for(var K=i(p);K!==null;){if(K.callback===null)u(p);else if(K.startTime<=U)u(p),K.sortIndex=K.expirationTime,n(h,K);else break;K=i(p)}}function z(U){if(w=!1,Y(U),!E)if(i(h)!==null)E=!0,F||(F=!0,le());else{var K=i(p);K!==null&&_e(z,K.startTime-U)}}var F=!1,j=-1,Q=5,ie=-1;function he(){return M?!0:!(r.unstable_now()-ie<Q)}function fe(){if(M=!1,F){var U=r.unstable_now();ie=U;var K=!0;try{e:{E=!1,w&&(w=!1,k(j),j=-1),S=!0;var ee=b;try{t:{for(Y(U),g=i(h);g!==null&&!(g.expirationTime>U&&he());){var Se=g.callback;if(typeof Se=="function"){g.callback=null,b=g.priorityLevel;var we=Se(g.expirationTime<=U);if(U=r.unstable_now(),typeof we=="function"){g.callback=we,Y(U),K=!0;break t}g===i(h)&&u(h),Y(U)}else u(h);g=i(h)}if(g!==null)K=!0;else{var C=i(p);C!==null&&_e(z,C.startTime-U),K=!1}}break e}finally{g=null,b=ee,S=!1}K=void 0}}finally{K?le():F=!1}}}var le;if(typeof B=="function")le=function(){B(fe)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,Ne=pe.port2;pe.port1.onmessage=fe,le=function(){Ne.postMessage(null)}}else le=function(){R(fe,0)};function _e(U,K){j=R(function(){U(r.unstable_now())},K)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(U){U.callback=null},r.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<U?Math.floor(1e3/U):5},r.unstable_getCurrentPriorityLevel=function(){return b},r.unstable_next=function(U){switch(b){case 1:case 2:case 3:var K=3;break;default:K=b}var ee=b;b=K;try{return U()}finally{b=ee}},r.unstable_requestPaint=function(){M=!0},r.unstable_runWithPriority=function(U,K){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ee=b;b=U;try{return K()}finally{b=ee}},r.unstable_scheduleCallback=function(U,K,ee){var Se=r.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Se+ee:Se):ee=Se,U){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=ee+we,U={id:y++,callback:K,priorityLevel:U,startTime:ee,expirationTime:we,sortIndex:-1},ee>Se?(U.sortIndex=ee,n(p,U),i(h)===null&&U===i(p)&&(w?(k(j),j=-1):w=!0,_e(z,ee-Se))):(U.sortIndex=we,n(h,U),E||S||(E=!0,F||(F=!0,le()))),U},r.unstable_shouldYield=he,r.unstable_wrapCallback=function(U){var K=b;return function(){var ee=b;b=K;try{return U.apply(this,arguments)}finally{b=ee}}}})(ef)),ef}var Jy;function z2(){return Jy||(Jy=1,Wc.exports=L2()),Wc.exports}var Wy;function U2(){if(Wy)return Hi;Wy=1;var r=z2(),n=Cd(),i=vb();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(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 m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(u(188))}function p(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(u(188));return t!==e?null:e}for(var a=e,l=t;;){var s=a.return;if(s===null)break;var f=s.alternate;if(f===null){if(l=s.return,l!==null){a=l;continue}break}if(s.child===f.child){for(f=s.child;f;){if(f===a)return h(s),e;if(f===l)return h(s),t;f=f.sibling}throw Error(u(188))}if(a.return!==l.return)a=s,l=f;else{for(var v=!1,_=s.child;_;){if(_===a){v=!0,a=s,l=f;break}if(_===l){v=!0,l=s,a=f;break}_=_.sibling}if(!v){for(_=f.child;_;){if(_===a){v=!0,a=f,l=s;break}if(_===l){v=!0,l=f,a=s;break}_=_.sibling}if(!v)throw Error(u(189))}}if(a.alternate!==l)throw Error(u(190))}if(a.tag!==3)throw Error(u(188));return a.stateNode.current===a?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),B=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),he=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function le(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Symbol.for("react.client.reference");function Ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case R:return"Profiler";case M:return"StrictMode";case z:return"Suspense";case F:return"SuspenseList";case ie:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case B:return e.displayName||"Context";case k:return(e._context.displayName||"Context")+".Consumer";case Y:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case j:return t=e.displayName||null,t!==null?t:Ne(e.type)||"Memo";case Q:t=e._payload,e=e._init;try{return Ne(e(t))}catch{}}return null}var _e=Array.isArray,U=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Se=[],we=-1;function C(e){return{current:e}}function V(e){0>we||(e.current=Se[we],Se[we]=null,we--)}function X(e,t){we++,Se[we]=e.current,e.current=t}var Z=C(null),ue=C(null),ce=C(null),be=C(null);function $e(e,t){switch(X(ce,t),X(ue,e),X(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gv(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gv(t),e=bv(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(Z),X(Z,e)}function Pe(){V(Z),V(ue),V(ce)}function fr(e){e.memoizedState!==null&&X(be,e);var t=Z.current,a=bv(t,e.type);t!==a&&(X(ue,e),X(Z,a))}function dr(e){ue.current===e&&(V(Z),V(ue)),be.current===e&&(V(be),Ri._currentValue=ee)}var Br,Ji;function rn(e){if(Br===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Br=t&&t[1]||"",Ji=-1<a.stack.indexOf(`
|
|
7
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
8
|
+
`+Br+e+Ji}var Ba=!1;function go(e,t){if(!e||Ba)return"";Ba=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(N){var L=N}Reflect.construct(e,[],P)}else{try{P.call()}catch(N){L=N}e.call(P.prototype)}}else{try{throw Error()}catch(N){L=N}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(N){if(N&&L&&typeof N.stack=="string")return[N.stack,L.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),v=f[0],_=f[1];if(v&&_){var T=v.split(`
|
|
9
|
+
`),q=_.split(`
|
|
10
|
+
`);for(s=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;s<q.length&&!q[s].includes("DetermineComponentFrameRoot");)s++;if(l===T.length||s===q.length)for(l=T.length-1,s=q.length-1;1<=l&&0<=s&&T[l]!==q[s];)s--;for(;1<=l&&0<=s;l--,s--)if(T[l]!==q[s]){if(l!==1||s!==1)do if(l--,s--,0>s||T[l]!==q[s]){var G=`
|
|
11
|
+
`+T[l].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=l&&0<=s);break}}}finally{Ba=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?rn(a):""}function k0(e,t){switch(e.tag){case 26:case 27:case 5:return rn(e.type);case 16:return rn("Lazy");case 13:return e.child!==t&&t!==null?rn("Suspense Fallback"):rn("Suspense");case 19:return rn("SuspenseList");case 0:case 15:return go(e.type,!1);case 11:return go(e.type.render,!1);case 1:return go(e.type,!0);case 31:return rn("Activity");default:return""}}function Xd(e){try{var t="",a=null;do t+=k0(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
12
|
+
Error generating stack: `+l.message+`
|
|
13
|
+
`+l.stack}}var bo=Object.prototype.hasOwnProperty,_o=r.unstable_scheduleCallback,So=r.unstable_cancelCallback,F0=r.unstable_shouldYield,K0=r.unstable_requestPaint,At=r.unstable_now,X0=r.unstable_getCurrentPriorityLevel,Qd=r.unstable_ImmediatePriority,Zd=r.unstable_UserBlockingPriority,Wi=r.unstable_NormalPriority,Q0=r.unstable_LowPriority,Jd=r.unstable_IdlePriority,Z0=r.log,J0=r.unstable_setDisableYieldValue,Ia=null,xt=null;function Hn(e){if(typeof Z0=="function"&&J0(e),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(Ia,e)}catch{}}var Mt=Math.clz32?Math.clz32:tS,W0=Math.log,eS=Math.LN2;function tS(e){return e>>>=0,e===0?32:31-(W0(e)/eS|0)|0}var el=256,tl=262144,nl=4194304;function hr(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function rl(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var s=0,f=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var _=l&134217727;return _!==0?(l=_&~f,l!==0?s=hr(l):(v&=_,v!==0?s=hr(v):a||(a=_&~e,a!==0&&(s=hr(a))))):(_=l&~f,_!==0?s=hr(_):v!==0?s=hr(v):a||(a=l&~e,a!==0&&(s=hr(a)))),s===0?0:t!==0&&t!==s&&(t&f)===0&&(f=s&-s,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:s}function Pa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function nS(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Wd(){var e=nl;return nl<<=1,(nl&62914560)===0&&(nl=4194304),e}function Eo(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function $a(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rS(e,t,a,l,s,f){var v=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var _=e.entanglements,T=e.expirationTimes,q=e.hiddenUpdates;for(a=v&~a;0<a;){var G=31-Mt(a),P=1<<G;_[G]=0,T[G]=-1;var L=q[G];if(L!==null)for(q[G]=null,G=0;G<L.length;G++){var N=L[G];N!==null&&(N.lane&=-536870913)}a&=~P}l!==0&&eh(e,l,0),f!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=f&~(v&~t))}function eh(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Mt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function th(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Mt(a),s=1<<l;s&t|e[l]&t&&(e[l]|=t),a&=~s}}function nh(e,t){var a=t&-t;return a=(a&42)!==0?1:To(a),(a&(e.suspendedLanes|t))!==0?0:a}function To(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function wo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function rh(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:Iv(e.type))}function ah(e,t){var a=K.p;try{return K.p=e,t()}finally{K.p=a}}var Vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+Vn,bt="__reactProps$"+Vn,Ir="__reactContainer$"+Vn,Oo="__reactEvents$"+Vn,aS="__reactListeners$"+Vn,iS="__reactHandles$"+Vn,ih="__reactResources$"+Vn,Ya="__reactMarker$"+Vn;function Co(e){delete e[ct],delete e[bt],delete e[Oo],delete e[aS],delete e[iS]}function Pr(e){var t=e[ct];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Ir]||a[ct]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Cv(e);e!==null;){if(a=e[ct])return a;e=Cv(e)}return t}e=a,a=e.parentNode}return null}function $r(e){if(e=e[ct]||e[Ir]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ka(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Yr(e){var t=e[ih];return t||(t=e[ih]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ot(e){e[Ya]=!0}var lh=new Set,uh={};function pr(e,t){kr(e,t),kr(e+"Capture",t)}function kr(e,t){for(uh[e]=t,e=0;e<t.length;e++)lh.add(t[e])}var lS=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),oh={},sh={};function uS(e){return bo.call(sh,e)?!0:bo.call(oh,e)?!1:lS.test(e)?sh[e]=!0:(oh[e]=!0,!1)}function al(e,t,a){if(uS(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function il(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function pn(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ch(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oS(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,f=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(v){a=""+v,f.call(this,v)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(v){a=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ao(e){if(!e._valueTracker){var t=ch(e)?"checked":"value";e._valueTracker=oS(e,t,""+e[t])}}function fh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=ch(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function ll(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}}var sS=/[\n"\\]/g;function Gt(e){return e.replace(sS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function xo(e,t,a,l,s,f,v,_){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Vt(t)):e.value!==""+Vt(t)&&(e.value=""+Vt(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?Mo(e,v,Vt(t)):a!=null?Mo(e,v,Vt(a)):l!=null&&e.removeAttribute("value"),s==null&&f!=null&&(e.defaultChecked=!!f),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+Vt(_):e.removeAttribute("name")}function dh(e,t,a,l,s,f,v,_){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){Ao(e);return}a=a!=null?""+Vt(a):"",t=t!=null?""+Vt(t):a,_||t===e.value||(e.value=t),e.defaultValue=t}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=_?e.checked:!!l,e.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),Ao(e)}function Mo(e,t,a){t==="number"&&ll(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Fr(e,t,a,l){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Vt(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function hh(e,t,a){if(t!=null&&(t=""+Vt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Vt(a):""}function ph(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(u(92));if(_e(l)){if(1<l.length)throw Error(u(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Vt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Ao(e)}function Kr(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var cS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function mh(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||cS.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function vh(e,t,a){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var s in t)l=t[s],t.hasOwnProperty(s)&&a[s]!==l&&mh(e,s,l)}else for(var f in t)t.hasOwnProperty(f)&&mh(e,f,t[f])}function Ro(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),dS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ul(e){return dS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function mn(){}var Do=null;function qo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xr=null,Qr=null;function yh(e){var t=$r(e);if(t&&(e=t.stateNode)){var a=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(xo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Gt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var s=l[bt]||null;if(!s)throw Error(u(90));xo(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&fh(l)}break e;case"textarea":hh(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Fr(e,!!a.multiple,t,!1)}}}var Lo=!1;function gh(e,t,a){if(Lo)return e(t,a);Lo=!0;try{var l=e(t);return l}finally{if(Lo=!1,(Xr!==null||Qr!==null)&&(Kl(),Xr&&(t=Xr,e=Qr,Qr=Xr=null,yh(t),e)))for(t=0;t<e.length;t++)yh(e[t])}}function Fa(e,t){var a=e.stateNode;if(a===null)return null;var l=a[bt]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(u(231,t,typeof a));return a}var vn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zo=!1;if(vn)try{var Ka={};Object.defineProperty(Ka,"passive",{get:function(){zo=!0}}),window.addEventListener("test",Ka,Ka),window.removeEventListener("test",Ka,Ka)}catch{zo=!1}var Gn=null,Uo=null,ol=null;function bh(){if(ol)return ol;var e,t=Uo,a=t.length,l,s="value"in Gn?Gn.value:Gn.textContent,f=s.length;for(e=0;e<a&&t[e]===s[e];e++);var v=a-e;for(l=1;l<=v&&t[a-l]===s[f-l];l++);return ol=s.slice(e,1<l?1-l:void 0)}function sl(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 cl(){return!0}function _h(){return!1}function _t(e){function t(a,l,s,f,v){this._reactName=a,this._targetInst=s,this.type=l,this.nativeEvent=f,this.target=v,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(a=e[_],this[_]=a?a(f):f[_]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?cl:_h,this.isPropagationStopped=_h,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=cl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=cl)},persist:function(){},isPersistent:cl}),t}var mr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fl=_t(mr),Xa=g({},mr,{view:0,detail:0}),hS=_t(Xa),No,jo,Qa,dl=g({},Xa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vo,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!==Qa&&(Qa&&e.type==="mousemove"?(No=e.screenX-Qa.screenX,jo=e.screenY-Qa.screenY):jo=No=0,Qa=e),No)},movementY:function(e){return"movementY"in e?e.movementY:jo}}),Sh=_t(dl),pS=g({},dl,{dataTransfer:0}),mS=_t(pS),vS=g({},Xa,{relatedTarget:0}),Ho=_t(vS),yS=g({},mr,{animationName:0,elapsedTime:0,pseudoElement:0}),gS=_t(yS),bS=g({},mr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_S=_t(bS),SS=g({},mr,{data:0}),Eh=_t(SS),ES={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TS={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"},wS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function OS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wS[e])?!!t[e]:!1}function Vo(){return OS}var CS=g({},Xa,{key:function(e){if(e.key){var t=ES[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=sl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?TS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vo,charCode:function(e){return e.type==="keypress"?sl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?sl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),AS=_t(CS),xS=g({},dl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Th=_t(xS),MS=g({},Xa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vo}),RS=_t(MS),DS=g({},mr,{propertyName:0,elapsedTime:0,pseudoElement:0}),qS=_t(DS),LS=g({},dl,{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}),zS=_t(LS),US=g({},mr,{newState:0,oldState:0}),NS=_t(US),jS=[9,13,27,32],Go=vn&&"CompositionEvent"in window,Za=null;vn&&"documentMode"in document&&(Za=document.documentMode);var HS=vn&&"TextEvent"in window&&!Za,wh=vn&&(!Go||Za&&8<Za&&11>=Za),Oh=" ",Ch=!1;function Ah(e,t){switch(e){case"keyup":return jS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zr=!1;function VS(e,t){switch(e){case"compositionend":return xh(t);case"keypress":return t.which!==32?null:(Ch=!0,Oh);case"textInput":return e=t.data,e===Oh&&Ch?null:e;default:return null}}function GS(e,t){if(Zr)return e==="compositionend"||!Go&&Ah(e,t)?(e=bh(),ol=Uo=Gn=null,Zr=!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 wh&&t.locale!=="ko"?null:t.data;default:return null}}var BS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!BS[e.type]:t==="textarea"}function Rh(e,t,a,l){Xr?Qr?Qr.push(l):Qr=[l]:Xr=l,t=tu(t,"onChange"),0<t.length&&(a=new fl("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Ja=null,Wa=null;function IS(e){dv(e,0)}function hl(e){var t=ka(e);if(fh(t))return e}function Dh(e,t){if(e==="change")return t}var qh=!1;if(vn){var Bo;if(vn){var Io="oninput"in document;if(!Io){var Lh=document.createElement("div");Lh.setAttribute("oninput","return;"),Io=typeof Lh.oninput=="function"}Bo=Io}else Bo=!1;qh=Bo&&(!document.documentMode||9<document.documentMode)}function zh(){Ja&&(Ja.detachEvent("onpropertychange",Uh),Wa=Ja=null)}function Uh(e){if(e.propertyName==="value"&&hl(Wa)){var t=[];Rh(t,Wa,e,qo(e)),gh(IS,t)}}function PS(e,t,a){e==="focusin"?(zh(),Ja=t,Wa=a,Ja.attachEvent("onpropertychange",Uh)):e==="focusout"&&zh()}function $S(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hl(Wa)}function YS(e,t){if(e==="click")return hl(t)}function kS(e,t){if(e==="input"||e==="change")return hl(t)}function FS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rt=typeof Object.is=="function"?Object.is:FS;function ei(e,t){if(Rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var s=a[l];if(!bo.call(t,s)||!Rt(e[s],t[s]))return!1}return!0}function Nh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jh(e,t){var a=Nh(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Nh(a)}}function Hh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ll(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ll(e.document)}return t}function Po(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")}var KS=vn&&"documentMode"in document&&11>=document.documentMode,Jr=null,$o=null,ti=null,Yo=!1;function Gh(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Yo||Jr==null||Jr!==ll(l)||(l=Jr,"selectionStart"in l&&Po(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ti&&ei(ti,l)||(ti=l,l=tu($o,"onSelect"),0<l.length&&(t=new fl("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Jr)))}function vr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Wr={animationend:vr("Animation","AnimationEnd"),animationiteration:vr("Animation","AnimationIteration"),animationstart:vr("Animation","AnimationStart"),transitionrun:vr("Transition","TransitionRun"),transitionstart:vr("Transition","TransitionStart"),transitioncancel:vr("Transition","TransitionCancel"),transitionend:vr("Transition","TransitionEnd")},ko={},Bh={};vn&&(Bh=document.createElement("div").style,"AnimationEvent"in window||(delete Wr.animationend.animation,delete Wr.animationiteration.animation,delete Wr.animationstart.animation),"TransitionEvent"in window||delete Wr.transitionend.transition);function yr(e){if(ko[e])return ko[e];if(!Wr[e])return e;var t=Wr[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Bh)return ko[e]=t[a];return e}var Ih=yr("animationend"),Ph=yr("animationiteration"),$h=yr("animationstart"),XS=yr("transitionrun"),QS=yr("transitionstart"),ZS=yr("transitioncancel"),Yh=yr("transitionend"),kh=new Map,Fo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Fo.push("scrollEnd");function Jt(e,t){kh.set(e,t),pr(t,[e])}var pl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Bt=[],ea=0,Ko=0;function ml(){for(var e=ea,t=Ko=ea=0;t<e;){var a=Bt[t];Bt[t++]=null;var l=Bt[t];Bt[t++]=null;var s=Bt[t];Bt[t++]=null;var f=Bt[t];if(Bt[t++]=null,l!==null&&s!==null){var v=l.pending;v===null?s.next=s:(s.next=v.next,v.next=s),l.pending=s}f!==0&&Fh(a,s,f)}}function vl(e,t,a,l){Bt[ea++]=e,Bt[ea++]=t,Bt[ea++]=a,Bt[ea++]=l,Ko|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Xo(e,t,a,l){return vl(e,t,a,l),yl(e)}function gr(e,t){return vl(e,null,null,t),yl(e)}function Fh(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var s=!1,f=e.return;f!==null;)f.childLanes|=a,l=f.alternate,l!==null&&(l.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(s=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,s&&t!==null&&(s=31-Mt(a),e=f.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=a|536870912),f):null}function yl(e){if(50<Ti)throw Ti=0,ac=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ta={};function JS(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,a,l){return new JS(e,t,a,l)}function Qo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yn(e,t){var a=e.alternate;return a===null?(a=Dt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Kh(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function gl(e,t,a,l,s,f){var v=0;if(l=e,typeof e=="function")Qo(e)&&(v=1);else if(typeof e=="string")v=rE(e,a,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ie:return e=Dt(31,a,t,s),e.elementType=ie,e.lanes=f,e;case w:return br(a.children,s,f,t);case M:v=8,s|=24;break;case R:return e=Dt(12,a,t,s|2),e.elementType=R,e.lanes=f,e;case z:return e=Dt(13,a,t,s),e.elementType=z,e.lanes=f,e;case F:return e=Dt(19,a,t,s),e.elementType=F,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:v=10;break e;case k:v=9;break e;case Y:v=11;break e;case j:v=14;break e;case Q:v=16,l=null;break e}v=29,a=Error(u(130,e===null?"null":typeof e,"")),l=null}return t=Dt(v,a,t,s),t.elementType=e,t.type=l,t.lanes=f,t}function br(e,t,a,l){return e=Dt(7,e,l,t),e.lanes=a,e}function Zo(e,t,a){return e=Dt(6,e,null,t),e.lanes=a,e}function Xh(e){var t=Dt(18,null,null,0);return t.stateNode=e,t}function Jo(e,t,a){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qh=new WeakMap;function It(e,t){if(typeof e=="object"&&e!==null){var a=Qh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Xd(t)},Qh.set(e,t),t)}return{value:e,source:t,stack:Xd(t)}}var na=[],ra=0,bl=null,ni=0,Pt=[],$t=0,Bn=null,an=1,ln="";function gn(e,t){na[ra++]=ni,na[ra++]=bl,bl=e,ni=t}function Zh(e,t,a){Pt[$t++]=an,Pt[$t++]=ln,Pt[$t++]=Bn,Bn=e;var l=an;e=ln;var s=32-Mt(l)-1;l&=~(1<<s),a+=1;var f=32-Mt(t)+s;if(30<f){var v=s-s%5;f=(l&(1<<v)-1).toString(32),l>>=v,s-=v,an=1<<32-Mt(t)+s|a<<s|l,ln=f+e}else an=1<<f|a<<s|l,ln=e}function Wo(e){e.return!==null&&(gn(e,1),Zh(e,1,0))}function es(e){for(;e===bl;)bl=na[--ra],na[ra]=null,ni=na[--ra],na[ra]=null;for(;e===Bn;)Bn=Pt[--$t],Pt[$t]=null,ln=Pt[--$t],Pt[$t]=null,an=Pt[--$t],Pt[$t]=null}function Jh(e,t){Pt[$t++]=an,Pt[$t++]=ln,Pt[$t++]=Bn,an=t.id,ln=t.overflow,Bn=e}var ft=null,Ye=null,Ae=!1,In=null,Yt=!1,ts=Error(u(519));function Pn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ri(It(t,e)),ts}function Wh(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[ct]=e,t[bt]=l,a){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(a=0;a<Oi.length;a++)Te(Oi[a],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),dh(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),ph(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||vv(t.textContent,a)?(l.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),l.onScroll!=null&&Te("scroll",t),l.onScrollEnd!=null&&Te("scrollend",t),l.onClick!=null&&(t.onclick=mn),t=!0):t=!1,t||Pn(e,!0)}function ep(e){for(ft=e.return;ft;)switch(ft.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:ft=ft.return}}function aa(e){if(e!==ft)return!1;if(!Ae)return ep(e),Ae=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||bc(e.type,e.memoizedProps)),a=!a),a&&Ye&&Pn(e),ep(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ye=Ov(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ye=Ov(e)}else t===27?(t=Ye,rr(e.type)?(e=wc,wc=null,Ye=e):Ye=t):Ye=ft?Ft(e.stateNode.nextSibling):null;return!0}function _r(){Ye=ft=null,Ae=!1}function ns(){var e=In;return e!==null&&(wt===null?wt=e:wt.push.apply(wt,e),In=null),e}function ri(e){In===null?In=[e]:In.push(e)}var rs=C(null),Sr=null,bn=null;function $n(e,t,a){X(rs,t._currentValue),t._currentValue=a}function _n(e){e._currentValue=rs.current,V(rs)}function as(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function is(e,t,a,l){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var f=s.dependencies;if(f!==null){var v=s.child;f=f.firstContext;e:for(;f!==null;){var _=f;f=s;for(var T=0;T<t.length;T++)if(_.context===t[T]){f.lanes|=a,_=f.alternate,_!==null&&(_.lanes|=a),as(f.return,a,e),l||(v=null);break e}f=_.next}}else if(s.tag===18){if(v=s.return,v===null)throw Error(u(341));v.lanes|=a,f=v.alternate,f!==null&&(f.lanes|=a),as(v,a,e),v=null}else v=s.child;if(v!==null)v.return=s;else for(v=s;v!==null;){if(v===e){v=null;break}if(s=v.sibling,s!==null){s.return=v.return,v=s;break}v=v.return}s=v}}function ia(e,t,a,l){e=null;for(var s=t,f=!1;s!==null;){if(!f){if((s.flags&524288)!==0)f=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var v=s.alternate;if(v===null)throw Error(u(387));if(v=v.memoizedProps,v!==null){var _=s.type;Rt(s.pendingProps.value,v.value)||(e!==null?e.push(_):e=[_])}}else if(s===be.current){if(v=s.alternate,v===null)throw Error(u(387));v.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Ri):e=[Ri])}s=s.return}e!==null&&is(t,e,a,l),t.flags|=262144}function _l(e){for(e=e.firstContext;e!==null;){if(!Rt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Er(e){Sr=e,bn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function dt(e){return tp(Sr,e)}function Sl(e,t){return Sr===null&&Er(e),tp(e,t)}function tp(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},bn===null){if(e===null)throw Error(u(308));bn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else bn=bn.next=t;return a}var WS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},e1=r.unstable_scheduleCallback,t1=r.unstable_NormalPriority,tt={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ls(){return{controller:new WS,data:new Map,refCount:0}}function ai(e){e.refCount--,e.refCount===0&&e1(t1,function(){e.controller.abort()})}var ii=null,us=0,la=0,ua=null;function n1(e,t){if(ii===null){var a=ii=[];us=0,la=cc(),ua={status:"pending",value:void 0,then:function(l){a.push(l)}}}return us++,t.then(np,np),t}function np(){if(--us===0&&ii!==null){ua!==null&&(ua.status="fulfilled");var e=ii;ii=null,la=0,ua=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function r1(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),l}var rp=U.S;U.S=function(e,t){Gm=At(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&n1(e,t),rp!==null&&rp(e,t)};var Tr=C(null);function os(){var e=Tr.current;return e!==null?e:Ie.pooledCache}function El(e,t){t===null?X(Tr,Tr.current):X(Tr,t.pool)}function ap(){var e=os();return e===null?null:{parent:tt._currentValue,pool:e}}var oa=Error(u(460)),ss=Error(u(474)),Tl=Error(u(542)),wl={then:function(){}};function ip(e){return e=e.status,e==="fulfilled"||e==="rejected"}function lp(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(mn,mn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,op(e),e;default:if(typeof t.status=="string")t.then(mn,mn);else{if(e=Ie,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,op(e),e}throw Or=t,oa}}function wr(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Or=a,oa):a}}var Or=null;function up(){if(Or===null)throw Error(u(459));var e=Or;return Or=null,e}function op(e){if(e===oa||e===Tl)throw Error(u(483))}var sa=null,li=0;function Ol(e){var t=li;return li+=1,sa===null&&(sa=[]),lp(sa,e,t)}function ui(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Cl(e,t){throw t.$$typeof===b?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function sp(e){function t(x,O){if(e){var D=x.deletions;D===null?(x.deletions=[O],x.flags|=16):D.push(O)}}function a(x,O){if(!e)return null;for(;O!==null;)t(x,O),O=O.sibling;return null}function l(x){for(var O=new Map;x!==null;)x.key!==null?O.set(x.key,x):O.set(x.index,x),x=x.sibling;return O}function s(x,O){return x=yn(x,O),x.index=0,x.sibling=null,x}function f(x,O,D){return x.index=D,e?(D=x.alternate,D!==null?(D=D.index,D<O?(x.flags|=67108866,O):D):(x.flags|=67108866,O)):(x.flags|=1048576,O)}function v(x){return e&&x.alternate===null&&(x.flags|=67108866),x}function _(x,O,D,I){return O===null||O.tag!==6?(O=Zo(D,x.mode,I),O.return=x,O):(O=s(O,D),O.return=x,O)}function T(x,O,D,I){var ne=D.type;return ne===w?G(x,O,D.props.children,I,D.key):O!==null&&(O.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===Q&&wr(ne)===O.type)?(O=s(O,D.props),ui(O,D),O.return=x,O):(O=gl(D.type,D.key,D.props,null,x.mode,I),ui(O,D),O.return=x,O)}function q(x,O,D,I){return O===null||O.tag!==4||O.stateNode.containerInfo!==D.containerInfo||O.stateNode.implementation!==D.implementation?(O=Jo(D,x.mode,I),O.return=x,O):(O=s(O,D.children||[]),O.return=x,O)}function G(x,O,D,I,ne){return O===null||O.tag!==7?(O=br(D,x.mode,I,ne),O.return=x,O):(O=s(O,D),O.return=x,O)}function P(x,O,D){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Zo(""+O,x.mode,D),O.return=x,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case S:return D=gl(O.type,O.key,O.props,null,x.mode,D),ui(D,O),D.return=x,D;case E:return O=Jo(O,x.mode,D),O.return=x,O;case Q:return O=wr(O),P(x,O,D)}if(_e(O)||le(O))return O=br(O,x.mode,D,null),O.return=x,O;if(typeof O.then=="function")return P(x,Ol(O),D);if(O.$$typeof===B)return P(x,Sl(x,O),D);Cl(x,O)}return null}function L(x,O,D,I){var ne=O!==null?O.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ne!==null?null:_(x,O,""+D,I);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case S:return D.key===ne?T(x,O,D,I):null;case E:return D.key===ne?q(x,O,D,I):null;case Q:return D=wr(D),L(x,O,D,I)}if(_e(D)||le(D))return ne!==null?null:G(x,O,D,I,null);if(typeof D.then=="function")return L(x,O,Ol(D),I);if(D.$$typeof===B)return L(x,O,Sl(x,D),I);Cl(x,D)}return null}function N(x,O,D,I,ne){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return x=x.get(D)||null,_(O,x,""+I,ne);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case S:return x=x.get(I.key===null?D:I.key)||null,T(O,x,I,ne);case E:return x=x.get(I.key===null?D:I.key)||null,q(O,x,I,ne);case Q:return I=wr(I),N(x,O,D,I,ne)}if(_e(I)||le(I))return x=x.get(D)||null,G(O,x,I,ne,null);if(typeof I.then=="function")return N(x,O,D,Ol(I),ne);if(I.$$typeof===B)return N(x,O,D,Sl(O,I),ne);Cl(O,I)}return null}function W(x,O,D,I){for(var ne=null,xe=null,te=O,ge=O=0,Ce=null;te!==null&&ge<D.length;ge++){te.index>ge?(Ce=te,te=null):Ce=te.sibling;var Me=L(x,te,D[ge],I);if(Me===null){te===null&&(te=Ce);break}e&&te&&Me.alternate===null&&t(x,te),O=f(Me,O,ge),xe===null?ne=Me:xe.sibling=Me,xe=Me,te=Ce}if(ge===D.length)return a(x,te),Ae&&gn(x,ge),ne;if(te===null){for(;ge<D.length;ge++)te=P(x,D[ge],I),te!==null&&(O=f(te,O,ge),xe===null?ne=te:xe.sibling=te,xe=te);return Ae&&gn(x,ge),ne}for(te=l(te);ge<D.length;ge++)Ce=N(te,x,ge,D[ge],I),Ce!==null&&(e&&Ce.alternate!==null&&te.delete(Ce.key===null?ge:Ce.key),O=f(Ce,O,ge),xe===null?ne=Ce:xe.sibling=Ce,xe=Ce);return e&&te.forEach(function(or){return t(x,or)}),Ae&&gn(x,ge),ne}function oe(x,O,D,I){if(D==null)throw Error(u(151));for(var ne=null,xe=null,te=O,ge=O=0,Ce=null,Me=D.next();te!==null&&!Me.done;ge++,Me=D.next()){te.index>ge?(Ce=te,te=null):Ce=te.sibling;var or=L(x,te,Me.value,I);if(or===null){te===null&&(te=Ce);break}e&&te&&or.alternate===null&&t(x,te),O=f(or,O,ge),xe===null?ne=or:xe.sibling=or,xe=or,te=Ce}if(Me.done)return a(x,te),Ae&&gn(x,ge),ne;if(te===null){for(;!Me.done;ge++,Me=D.next())Me=P(x,Me.value,I),Me!==null&&(O=f(Me,O,ge),xe===null?ne=Me:xe.sibling=Me,xe=Me);return Ae&&gn(x,ge),ne}for(te=l(te);!Me.done;ge++,Me=D.next())Me=N(te,x,ge,Me.value,I),Me!==null&&(e&&Me.alternate!==null&&te.delete(Me.key===null?ge:Me.key),O=f(Me,O,ge),xe===null?ne=Me:xe.sibling=Me,xe=Me);return e&&te.forEach(function(pE){return t(x,pE)}),Ae&&gn(x,ge),ne}function Be(x,O,D,I){if(typeof D=="object"&&D!==null&&D.type===w&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case S:e:{for(var ne=D.key;O!==null;){if(O.key===ne){if(ne=D.type,ne===w){if(O.tag===7){a(x,O.sibling),I=s(O,D.props.children),I.return=x,x=I;break e}}else if(O.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===Q&&wr(ne)===O.type){a(x,O.sibling),I=s(O,D.props),ui(I,D),I.return=x,x=I;break e}a(x,O);break}else t(x,O);O=O.sibling}D.type===w?(I=br(D.props.children,x.mode,I,D.key),I.return=x,x=I):(I=gl(D.type,D.key,D.props,null,x.mode,I),ui(I,D),I.return=x,x=I)}return v(x);case E:e:{for(ne=D.key;O!==null;){if(O.key===ne)if(O.tag===4&&O.stateNode.containerInfo===D.containerInfo&&O.stateNode.implementation===D.implementation){a(x,O.sibling),I=s(O,D.children||[]),I.return=x,x=I;break e}else{a(x,O);break}else t(x,O);O=O.sibling}I=Jo(D,x.mode,I),I.return=x,x=I}return v(x);case Q:return D=wr(D),Be(x,O,D,I)}if(_e(D))return W(x,O,D,I);if(le(D)){if(ne=le(D),typeof ne!="function")throw Error(u(150));return D=ne.call(D),oe(x,O,D,I)}if(typeof D.then=="function")return Be(x,O,Ol(D),I);if(D.$$typeof===B)return Be(x,O,Sl(x,D),I);Cl(x,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,O!==null&&O.tag===6?(a(x,O.sibling),I=s(O,D),I.return=x,x=I):(a(x,O),I=Zo(D,x.mode,I),I.return=x,x=I),v(x)):a(x,O)}return function(x,O,D,I){try{li=0;var ne=Be(x,O,D,I);return sa=null,ne}catch(te){if(te===oa||te===Tl)throw te;var xe=Dt(29,te,null,x.mode);return xe.lanes=I,xe.return=x,xe}}}var Cr=sp(!0),cp=sp(!1),Yn=!1;function cs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function kn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fn(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(De&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=yl(e),Fh(e,null,a),t}return vl(e,l,t,a),yl(e)}function oi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,th(e,a)}}function ds(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var s=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var v={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?s=f=v:f=f.next=v,a=a.next}while(a!==null);f===null?s=f=t:f=f.next=t}else s=f=t;a={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var hs=!1;function si(){if(hs){var e=ua;if(e!==null)throw e}}function ci(e,t,a,l){hs=!1;var s=e.updateQueue;Yn=!1;var f=s.firstBaseUpdate,v=s.lastBaseUpdate,_=s.shared.pending;if(_!==null){s.shared.pending=null;var T=_,q=T.next;T.next=null,v===null?f=q:v.next=q,v=T;var G=e.alternate;G!==null&&(G=G.updateQueue,_=G.lastBaseUpdate,_!==v&&(_===null?G.firstBaseUpdate=q:_.next=q,G.lastBaseUpdate=T))}if(f!==null){var P=s.baseState;v=0,G=q=T=null,_=f;do{var L=_.lane&-536870913,N=L!==_.lane;if(N?(Oe&L)===L:(l&L)===L){L!==0&&L===la&&(hs=!0),G!==null&&(G=G.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var W=e,oe=_;L=t;var Be=a;switch(oe.tag){case 1:if(W=oe.payload,typeof W=="function"){P=W.call(Be,P,L);break e}P=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=oe.payload,L=typeof W=="function"?W.call(Be,P,L):W,L==null)break e;P=g({},P,L);break e;case 2:Yn=!0}}L=_.callback,L!==null&&(e.flags|=64,N&&(e.flags|=8192),N=s.callbacks,N===null?s.callbacks=[L]:N.push(L))}else N={lane:L,tag:_.tag,payload:_.payload,callback:_.callback,next:null},G===null?(q=G=N,T=P):G=G.next=N,v|=L;if(_=_.next,_===null){if(_=s.shared.pending,_===null)break;N=_,_=N.next,N.next=null,s.lastBaseUpdate=N,s.shared.pending=null}}while(!0);G===null&&(T=P),s.baseState=T,s.firstBaseUpdate=q,s.lastBaseUpdate=G,f===null&&(s.shared.lanes=0),Jn|=v,e.lanes=v,e.memoizedState=P}}function fp(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function dp(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)fp(a[e],t)}var ca=C(null),Al=C(0);function hp(e,t){e=Mn,X(Al,e),X(ca,t),Mn=e|t.baseLanes}function ps(){X(Al,Mn),X(ca,ca.current)}function ms(){Mn=Al.current,V(ca),V(Al)}var qt=C(null),kt=null;function Kn(e){var t=e.alternate;X(We,We.current&1),X(qt,e),kt===null&&(t===null||ca.current!==null||t.memoizedState!==null)&&(kt=e)}function vs(e){X(We,We.current),X(qt,e),kt===null&&(kt=e)}function pp(e){e.tag===22?(X(We,We.current),X(qt,e),kt===null&&(kt=e)):Xn()}function Xn(){X(We,We.current),X(qt,qt.current)}function Lt(e){V(qt),kt===e&&(kt=null),V(We)}var We=C(0);function xl(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Ec(a)||Tc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 Sn=0,ve=null,Ve=null,nt=null,Ml=!1,fa=!1,Ar=!1,Rl=0,fi=0,da=null,a1=0;function Qe(){throw Error(u(321))}function ys(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Rt(e[a],t[a]))return!1;return!0}function gs(e,t,a,l,s,f){return Sn=f,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Zp:Ls,Ar=!1,f=a(l,s),Ar=!1,fa&&(f=vp(t,a,l,s)),mp(e),f}function mp(e){U.H=pi;var t=Ve!==null&&Ve.next!==null;if(Sn=0,nt=Ve=ve=null,Ml=!1,fi=0,da=null,t)throw Error(u(300));e===null||rt||(e=e.dependencies,e!==null&&_l(e)&&(rt=!0))}function vp(e,t,a,l){ve=e;var s=0;do{if(fa&&(da=null),fi=0,fa=!1,25<=s)throw Error(u(301));if(s+=1,nt=Ve=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}U.H=Jp,f=t(a,l)}while(fa);return f}function i1(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?di(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(ve.flags|=1024),t}function bs(){var e=Rl!==0;return Rl=0,e}function _s(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Ss(e){if(Ml){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ml=!1}Sn=0,nt=Ve=ve=null,fa=!1,fi=Rl=0,da=null}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?ve.memoizedState=nt=e:nt=nt.next=e,nt}function et(){if(Ve===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=nt===null?ve.memoizedState:nt.next;if(t!==null)nt=t,Ve=e;else{if(e===null)throw ve.alternate===null?Error(u(467)):Error(u(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},nt===null?ve.memoizedState=nt=e:nt=nt.next=e}return nt}function Dl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function di(e){var t=fi;return fi+=1,da===null&&(da=[]),e=lp(da,e,t),t=ve,(nt===null?t.memoizedState:nt.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Zp:Ls),e}function ql(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return di(e);if(e.$$typeof===B)return dt(e)}throw Error(u(438,String(e)))}function Es(e){var t=null,a=ve.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ve.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Dl(),ve.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=he;return t.index++,a}function En(e,t){return typeof t=="function"?t(e):t}function Ll(e){var t=et();return Ts(t,Ve,e)}function Ts(e,t,a){var l=e.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=a;var s=e.baseQueue,f=l.pending;if(f!==null){if(s!==null){var v=s.next;s.next=f.next,f.next=v}t.baseQueue=s=f,l.pending=null}if(f=e.baseState,s===null)e.memoizedState=f;else{t=s.next;var _=v=null,T=null,q=t,G=!1;do{var P=q.lane&-536870913;if(P!==q.lane?(Oe&P)===P:(Sn&P)===P){var L=q.revertLane;if(L===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),P===la&&(G=!0);else if((Sn&L)===L){q=q.next,L===la&&(G=!0);continue}else P={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},T===null?(_=T=P,v=f):T=T.next=P,ve.lanes|=L,Jn|=L;P=q.action,Ar&&a(f,P),f=q.hasEagerState?q.eagerState:a(f,P)}else L={lane:P,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},T===null?(_=T=L,v=f):T=T.next=L,ve.lanes|=P,Jn|=P;q=q.next}while(q!==null&&q!==t);if(T===null?v=f:T.next=_,!Rt(f,e.memoizedState)&&(rt=!0,G&&(a=ua,a!==null)))throw a;e.memoizedState=f,e.baseState=v,e.baseQueue=T,l.lastRenderedState=f}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function ws(e){var t=et(),a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=e;var l=a.dispatch,s=a.pending,f=t.memoizedState;if(s!==null){a.pending=null;var v=s=s.next;do f=e(f,v.action),v=v.next;while(v!==s);Rt(f,t.memoizedState)||(rt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,l]}function yp(e,t,a){var l=ve,s=et(),f=Ae;if(f){if(a===void 0)throw Error(u(407));a=a()}else a=t();var v=!Rt((Ve||s).memoizedState,a);if(v&&(s.memoizedState=a,rt=!0),s=s.queue,As(_p.bind(null,l,s,e),[e]),s.getSnapshot!==t||v||nt!==null&&nt.memoizedState.tag&1){if(l.flags|=2048,ha(9,{destroy:void 0},bp.bind(null,l,s,a,t),null),Ie===null)throw Error(u(349));f||(Sn&127)!==0||gp(l,t,a)}return a}function gp(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ve.updateQueue,t===null?(t=Dl(),ve.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function bp(e,t,a,l){t.value=a,t.getSnapshot=l,Sp(t)&&Ep(e)}function _p(e,t,a){return a(function(){Sp(t)&&Ep(e)})}function Sp(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Rt(e,a)}catch{return!0}}function Ep(e){var t=gr(e,2);t!==null&&Ot(t,e,2)}function Os(e){var t=gt();if(typeof e=="function"){var a=e;if(e=a(),Ar){Hn(!0);try{a()}finally{Hn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:e},t}function Tp(e,t,a,l){return e.baseState=a,Ts(e,Ve,typeof l=="function"?l:En)}function l1(e,t,a,l,s){if(Nl(e))throw Error(u(485));if(e=t.action,e!==null){var f={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){f.listeners.push(v)}};U.T!==null?a(!0):f.isTransition=!1,l(f),a=t.pending,a===null?(f.next=t.pending=f,wp(t,f)):(f.next=a.next,t.pending=a.next=f)}}function wp(e,t){var a=t.action,l=t.payload,s=e.state;if(t.isTransition){var f=U.T,v={};U.T=v;try{var _=a(s,l),T=U.S;T!==null&&T(v,_),Op(e,t,_)}catch(q){Cs(e,t,q)}finally{f!==null&&v.types!==null&&(f.types=v.types),U.T=f}}else try{f=a(s,l),Op(e,t,f)}catch(q){Cs(e,t,q)}}function Op(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Cp(e,t,l)},function(l){return Cs(e,t,l)}):Cp(e,t,a)}function Cp(e,t,a){t.status="fulfilled",t.value=a,Ap(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,wp(e,a)))}function Cs(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Ap(t),t=t.next;while(t!==l)}e.action=null}function Ap(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function xp(e,t){return t}function Mp(e,t){if(Ae){var a=Ie.formState;if(a!==null){e:{var l=ve;if(Ae){if(Ye){t:{for(var s=Ye,f=Yt;s.nodeType!==8;){if(!f){s=null;break t}if(s=Ft(s.nextSibling),s===null){s=null;break t}}f=s.data,s=f==="F!"||f==="F"?s:null}if(s){Ye=Ft(s.nextSibling),l=s.data==="F!";break e}}Pn(l)}l=!1}l&&(t=a[0])}}return a=gt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xp,lastRenderedState:t},a.queue=l,a=Kp.bind(null,ve,l),l.dispatch=a,l=Os(!1),f=qs.bind(null,ve,!1,l.queue),l=gt(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,a=l1.bind(null,ve,s,f,a),s.dispatch=a,l.memoizedState=e,[t,a,!1]}function Rp(e){var t=et();return Dp(t,Ve,e)}function Dp(e,t,a){if(t=Ts(e,t,xp)[0],e=Ll(En)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=di(t)}catch(v){throw v===oa?Tl:v}else l=t;t=et();var s=t.queue,f=s.dispatch;return a!==t.memoizedState&&(ve.flags|=2048,ha(9,{destroy:void 0},u1.bind(null,s,a),null)),[l,f,e]}function u1(e,t){e.action=t}function qp(e){var t=et(),a=Ve;if(a!==null)return Dp(t,a,e);et(),t=t.memoizedState,a=et();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function ha(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ve.updateQueue,t===null&&(t=Dl(),ve.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Lp(){return et().memoizedState}function zl(e,t,a,l){var s=gt();ve.flags|=e,s.memoizedState=ha(1|t,{destroy:void 0},a,l===void 0?null:l)}function Ul(e,t,a,l){var s=et();l=l===void 0?null:l;var f=s.memoizedState.inst;Ve!==null&&l!==null&&ys(l,Ve.memoizedState.deps)?s.memoizedState=ha(t,f,a,l):(ve.flags|=e,s.memoizedState=ha(1|t,f,a,l))}function zp(e,t){zl(8390656,8,e,t)}function As(e,t){Ul(2048,8,e,t)}function o1(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=Dl(),ve.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Up(e){var t=et().memoizedState;return o1({ref:t,nextImpl:e}),function(){if((De&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Np(e,t){return Ul(4,2,e,t)}function jp(e,t){return Ul(4,4,e,t)}function Hp(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Vp(e,t,a){a=a!=null?a.concat([e]):null,Ul(4,4,Hp.bind(null,t,e),a)}function xs(){}function Gp(e,t){var a=et();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&ys(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Bp(e,t){var a=et();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&ys(t,l[1]))return l[0];if(l=e(),Ar){Hn(!0);try{e()}finally{Hn(!1)}}return a.memoizedState=[l,t],l}function Ms(e,t,a){return a===void 0||(Sn&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Im(),ve.lanes|=e,Jn|=e,a)}function Ip(e,t,a,l){return Rt(a,t)?a:ca.current!==null?(e=Ms(e,a,l),Rt(e,t)||(rt=!0),e):(Sn&42)===0||(Sn&1073741824)!==0&&(Oe&261930)===0?(rt=!0,e.memoizedState=a):(e=Im(),ve.lanes|=e,Jn|=e,t)}function Pp(e,t,a,l,s){var f=K.p;K.p=f!==0&&8>f?f:8;var v=U.T,_={};U.T=_,qs(e,!1,t,a);try{var T=s(),q=U.S;if(q!==null&&q(_,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var G=r1(T,l);hi(e,t,G,Nt(e))}else hi(e,t,l,Nt(e))}catch(P){hi(e,t,{then:function(){},status:"rejected",reason:P},Nt())}finally{K.p=f,v!==null&&_.types!==null&&(v.types=_.types),U.T=v}}function s1(){}function Rs(e,t,a,l){if(e.tag!==5)throw Error(u(476));var s=$p(e).queue;Pp(e,s,t,ee,a===null?s1:function(){return Yp(e),a(l)})}function $p(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:ee},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Yp(e){var t=$p(e);t.next===null&&(t=e.alternate.memoizedState),hi(e,t.next.queue,{},Nt())}function Ds(){return dt(Ri)}function kp(){return et().memoizedState}function Fp(){return et().memoizedState}function c1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Nt();e=kn(a);var l=Fn(t,e,a);l!==null&&(Ot(l,t,a),oi(l,t,a)),t={cache:ls()},e.payload=t;return}t=t.return}}function f1(e,t,a){var l=Nt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Nl(e)?Xp(t,a):(a=Xo(e,t,a,l),a!==null&&(Ot(a,e,l),Qp(a,t,l)))}function Kp(e,t,a){var l=Nt();hi(e,t,a,l)}function hi(e,t,a,l){var s={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Nl(e))Xp(t,s);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var v=t.lastRenderedState,_=f(v,a);if(s.hasEagerState=!0,s.eagerState=_,Rt(_,v))return vl(e,t,s,0),Ie===null&&ml(),!1}catch{}if(a=Xo(e,t,s,l),a!==null)return Ot(a,e,l),Qp(a,t,l),!0}return!1}function qs(e,t,a,l){if(l={lane:2,revertLane:cc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Nl(e)){if(t)throw Error(u(479))}else t=Xo(e,a,l,2),t!==null&&Ot(t,e,2)}function Nl(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Xp(e,t){fa=Ml=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Qp(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,th(e,a)}}var pi={readContext:dt,use:ql,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};pi.useEffectEvent=Qe;var Zp={readContext:dt,use:ql,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:zp,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,zl(4194308,4,Hp.bind(null,t,e),a)},useLayoutEffect:function(e,t){return zl(4194308,4,e,t)},useInsertionEffect:function(e,t){zl(4,2,e,t)},useMemo:function(e,t){var a=gt();t=t===void 0?null:t;var l=e();if(Ar){Hn(!0);try{e()}finally{Hn(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=gt();if(a!==void 0){var s=a(t);if(Ar){Hn(!0);try{a(t)}finally{Hn(!1)}}}else s=t;return l.memoizedState=l.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},l.queue=e,e=e.dispatch=f1.bind(null,ve,e),[l.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=Os(e);var t=e.queue,a=Kp.bind(null,ve,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:xs,useDeferredValue:function(e,t){var a=gt();return Ms(a,e,t)},useTransition:function(){var e=Os(!1);return e=Pp.bind(null,ve,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ve,s=gt();if(Ae){if(a===void 0)throw Error(u(407));a=a()}else{if(a=t(),Ie===null)throw Error(u(349));(Oe&127)!==0||gp(l,t,a)}s.memoizedState=a;var f={value:a,getSnapshot:t};return s.queue=f,zp(_p.bind(null,l,f,e),[e]),l.flags|=2048,ha(9,{destroy:void 0},bp.bind(null,l,f,a,t),null),a},useId:function(){var e=gt(),t=Ie.identifierPrefix;if(Ae){var a=ln,l=an;a=(l&~(1<<32-Mt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Rl++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=a1++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ds,useFormState:Mp,useActionState:Mp,useOptimistic:function(e){var t=gt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=qs.bind(null,ve,!0,a),a.dispatch=t,[e,t]},useMemoCache:Es,useCacheRefresh:function(){return gt().memoizedState=c1.bind(null,ve)},useEffectEvent:function(e){var t=gt(),a={impl:e};return t.memoizedState=a,function(){if((De&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}},Ls={readContext:dt,use:ql,useCallback:Gp,useContext:dt,useEffect:As,useImperativeHandle:Vp,useInsertionEffect:Np,useLayoutEffect:jp,useMemo:Bp,useReducer:Ll,useRef:Lp,useState:function(){return Ll(En)},useDebugValue:xs,useDeferredValue:function(e,t){var a=et();return Ip(a,Ve.memoizedState,e,t)},useTransition:function(){var e=Ll(En)[0],t=et().memoizedState;return[typeof e=="boolean"?e:di(e),t]},useSyncExternalStore:yp,useId:kp,useHostTransitionStatus:Ds,useFormState:Rp,useActionState:Rp,useOptimistic:function(e,t){var a=et();return Tp(a,Ve,e,t)},useMemoCache:Es,useCacheRefresh:Fp};Ls.useEffectEvent=Up;var Jp={readContext:dt,use:ql,useCallback:Gp,useContext:dt,useEffect:As,useImperativeHandle:Vp,useInsertionEffect:Np,useLayoutEffect:jp,useMemo:Bp,useReducer:ws,useRef:Lp,useState:function(){return ws(En)},useDebugValue:xs,useDeferredValue:function(e,t){var a=et();return Ve===null?Ms(a,e,t):Ip(a,Ve.memoizedState,e,t)},useTransition:function(){var e=ws(En)[0],t=et().memoizedState;return[typeof e=="boolean"?e:di(e),t]},useSyncExternalStore:yp,useId:kp,useHostTransitionStatus:Ds,useFormState:qp,useActionState:qp,useOptimistic:function(e,t){var a=et();return Ve!==null?Tp(a,Ve,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Es,useCacheRefresh:Fp};Jp.useEffectEvent=Up;function zs(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:g({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Us={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Nt(),s=kn(l);s.payload=t,a!=null&&(s.callback=a),t=Fn(e,s,l),t!==null&&(Ot(t,e,l),oi(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Nt(),s=kn(l);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=Fn(e,s,l),t!==null&&(Ot(t,e,l),oi(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Nt(),l=kn(a);l.tag=2,t!=null&&(l.callback=t),t=Fn(e,l,a),t!==null&&(Ot(t,e,a),oi(t,e,a))}};function Wp(e,t,a,l,s,f,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,v):t.prototype&&t.prototype.isPureReactComponent?!ei(a,l)||!ei(s,f):!0}function em(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Us.enqueueReplaceState(t,t.state,null)}function xr(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=g({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function tm(e){pl(e)}function nm(e){console.error(e)}function rm(e){pl(e)}function jl(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function am(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Ns(e,t,a){return a=kn(a),a.tag=3,a.payload={element:null},a.callback=function(){jl(e,t)},a}function im(e){return e=kn(e),e.tag=3,e}function lm(e,t,a,l){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var f=l.value;e.payload=function(){return s(f)},e.callback=function(){am(t,a,l)}}var v=a.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){am(t,a,l),typeof s!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var _=l.stack;this.componentDidCatch(l.value,{componentStack:_!==null?_:""})})}function d1(e,t,a,l,s){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&ia(t,a,s,!0),a=qt.current,a!==null){switch(a.tag){case 31:case 13:return kt===null?Xl():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=s,l===wl?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),uc(e,l,s)),!1;case 22:return a.flags|=65536,l===wl?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),uc(e,l,s)),!1}throw Error(u(435,a.tag))}return uc(e,l,s),Xl(),!1}if(Ae)return t=qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==ts&&(e=Error(u(422),{cause:l}),ri(It(e,a)))):(l!==ts&&(t=Error(u(423),{cause:l}),ri(It(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=It(l,a),s=Ns(e.stateNode,l,s),ds(e,s),Ze!==4&&(Ze=2)),!1;var f=Error(u(520),{cause:l});if(f=It(f,a),Ei===null?Ei=[f]:Ei.push(f),Ze!==4&&(Ze=2),t===null)return!0;l=It(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=Ns(a.stateNode,l,e),ds(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Wn===null||!Wn.has(f))))return a.flags|=65536,s&=-s,a.lanes|=s,s=im(s),lm(s,e,a,l),ds(a,s),!1}a=a.return}while(a!==null);return!1}var js=Error(u(461)),rt=!1;function ht(e,t,a,l){t.child=e===null?cp(t,null,a,l):Cr(t,e.child,a,l)}function um(e,t,a,l,s){a=a.render;var f=t.ref;if("ref"in l){var v={};for(var _ in l)_!=="ref"&&(v[_]=l[_])}else v=l;return Er(t),l=gs(e,t,a,v,f,s),_=bs(),e!==null&&!rt?(_s(e,t,s),Tn(e,t,s)):(Ae&&_&&Wo(t),t.flags|=1,ht(e,t,l,s),t.child)}function om(e,t,a,l,s){if(e===null){var f=a.type;return typeof f=="function"&&!Qo(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,sm(e,t,f,l,s)):(e=gl(a.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Ys(e,s)){var v=f.memoizedProps;if(a=a.compare,a=a!==null?a:ei,a(v,l)&&e.ref===t.ref)return Tn(e,t,s)}return t.flags|=1,e=yn(f,l),e.ref=t.ref,e.return=t,t.child=e}function sm(e,t,a,l,s){if(e!==null){var f=e.memoizedProps;if(ei(f,l)&&e.ref===t.ref)if(rt=!1,t.pendingProps=l=f,Ys(e,s))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,Tn(e,t,s)}return Hs(e,t,a,l,s)}function cm(e,t,a,l){var s=l.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|a:a,e!==null){for(l=t.child=e.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~f}else l=0,t.child=null;return fm(e,t,f,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&El(t,f!==null?f.cachePool:null),f!==null?hp(t,f):ps(),pp(t);else return l=t.lanes=536870912,fm(e,t,f!==null?f.baseLanes|a:a,a,l)}else f!==null?(El(t,f.cachePool),hp(t,f),Xn(),t.memoizedState=null):(e!==null&&El(t,null),ps(),Xn());return ht(e,t,s,a),t.child}function mi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function fm(e,t,a,l,s){var f=os();return f=f===null?null:{parent:tt._currentValue,pool:f},t.memoizedState={baseLanes:a,cachePool:f},e!==null&&El(t,null),ps(),pp(t),e!==null&&ia(e,t,l,!0),t.childLanes=s,null}function Hl(e,t){return t=Gl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function dm(e,t,a){return Cr(t,e.child,null,a),e=Hl(t,t.pendingProps),e.flags|=2,Lt(t),t.memoizedState=null,e}function h1(e,t,a){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(l.mode==="hidden")return e=Hl(t,l),t.lanes=536870912,mi(null,e);if(vs(t),(e=Ye)?(e=wv(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bn!==null?{id:an,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},a=Xh(e),a.return=t,t.child=a,ft=t,Ye=null)):e=null,e===null)throw Pn(t);return t.lanes=536870912,null}return Hl(t,l)}var f=e.memoizedState;if(f!==null){var v=f.dehydrated;if(vs(t),s)if(t.flags&256)t.flags&=-257,t=dm(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(rt||ia(e,t,a,!1),s=(a&e.childLanes)!==0,rt||s){if(l=Ie,l!==null&&(v=nh(l,a),v!==0&&v!==f.retryLane))throw f.retryLane=v,gr(e,v),Ot(l,e,v),js;Xl(),t=dm(e,t,a)}else e=f.treeContext,Ye=Ft(v.nextSibling),ft=t,Ae=!0,In=null,Yt=!1,e!==null&&Jh(t,e),t=Hl(t,l),t.flags|=4096;return t}return e=yn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Vl(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(u(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Hs(e,t,a,l,s){return Er(t),a=gs(e,t,a,l,void 0,s),l=bs(),e!==null&&!rt?(_s(e,t,s),Tn(e,t,s)):(Ae&&l&&Wo(t),t.flags|=1,ht(e,t,a,s),t.child)}function hm(e,t,a,l,s,f){return Er(t),t.updateQueue=null,a=vp(t,l,a,s),mp(e),l=bs(),e!==null&&!rt?(_s(e,t,f),Tn(e,t,f)):(Ae&&l&&Wo(t),t.flags|=1,ht(e,t,a,f),t.child)}function pm(e,t,a,l,s){if(Er(t),t.stateNode===null){var f=ta,v=a.contextType;typeof v=="object"&&v!==null&&(f=dt(v)),f=new a(l,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Us,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=l,f.state=t.memoizedState,f.refs={},cs(t),v=a.contextType,f.context=typeof v=="object"&&v!==null?dt(v):ta,f.state=t.memoizedState,v=a.getDerivedStateFromProps,typeof v=="function"&&(zs(t,a,v,l),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(v=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),v!==f.state&&Us.enqueueReplaceState(f,f.state,null),ci(t,l,f,s),si(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){f=t.stateNode;var _=t.memoizedProps,T=xr(a,_);f.props=T;var q=f.context,G=a.contextType;v=ta,typeof G=="object"&&G!==null&&(v=dt(G));var P=a.getDerivedStateFromProps;G=typeof P=="function"||typeof f.getSnapshotBeforeUpdate=="function",_=t.pendingProps!==_,G||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(_||q!==v)&&em(t,f,l,v),Yn=!1;var L=t.memoizedState;f.state=L,ci(t,l,f,s),si(),q=t.memoizedState,_||L!==q||Yn?(typeof P=="function"&&(zs(t,a,P,l),q=t.memoizedState),(T=Yn||Wp(t,a,T,l,L,q,v))?(G||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=q),f.props=l,f.state=q,f.context=v,l=T):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{f=t.stateNode,fs(e,t),v=t.memoizedProps,G=xr(a,v),f.props=G,P=t.pendingProps,L=f.context,q=a.contextType,T=ta,typeof q=="object"&&q!==null&&(T=dt(q)),_=a.getDerivedStateFromProps,(q=typeof _=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v!==P||L!==T)&&em(t,f,l,T),Yn=!1,L=t.memoizedState,f.state=L,ci(t,l,f,s),si();var N=t.memoizedState;v!==P||L!==N||Yn||e!==null&&e.dependencies!==null&&_l(e.dependencies)?(typeof _=="function"&&(zs(t,a,_,l),N=t.memoizedState),(G=Yn||Wp(t,a,G,l,L,N,T)||e!==null&&e.dependencies!==null&&_l(e.dependencies))?(q||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,N,T),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,N,T)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=N),f.props=l,f.state=N,f.context=T,l=G):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),l=!1)}return f=l,Vl(e,t),l=(t.flags&128)!==0,f||l?(f=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&l?(t.child=Cr(t,e.child,null,s),t.child=Cr(t,null,a,s)):ht(e,t,a,s),t.memoizedState=f.state,e=t.child):e=Tn(e,t,s),e}function mm(e,t,a,l){return _r(),t.flags|=256,ht(e,t,a,l),t.child}var Vs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gs(e){return{baseLanes:e,cachePool:ap()}}function Bs(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Ut),e}function vm(e,t,a){var l=t.pendingProps,s=!1,f=(t.flags&128)!==0,v;if((v=f)||(v=e!==null&&e.memoizedState===null?!1:(We.current&2)!==0),v&&(s=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(s?Kn(t):Xn(),(e=Ye)?(e=wv(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bn!==null?{id:an,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},a=Xh(e),a.return=t,t.child=a,ft=t,Ye=null)):e=null,e===null)throw Pn(t);return Tc(e)?t.lanes=32:t.lanes=536870912,null}var _=l.children;return l=l.fallback,s?(Xn(),s=t.mode,_=Gl({mode:"hidden",children:_},s),l=br(l,s,a,null),_.return=t,l.return=t,_.sibling=l,t.child=_,l=t.child,l.memoizedState=Gs(a),l.childLanes=Bs(e,v,a),t.memoizedState=Vs,mi(null,l)):(Kn(t),Is(t,_))}var T=e.memoizedState;if(T!==null&&(_=T.dehydrated,_!==null)){if(f)t.flags&256?(Kn(t),t.flags&=-257,t=Ps(e,t,a)):t.memoizedState!==null?(Xn(),t.child=e.child,t.flags|=128,t=null):(Xn(),_=l.fallback,s=t.mode,l=Gl({mode:"visible",children:l.children},s),_=br(_,s,a,null),_.flags|=2,l.return=t,_.return=t,l.sibling=_,t.child=l,Cr(t,e.child,null,a),l=t.child,l.memoizedState=Gs(a),l.childLanes=Bs(e,v,a),t.memoizedState=Vs,t=mi(null,l));else if(Kn(t),Tc(_)){if(v=_.nextSibling&&_.nextSibling.dataset,v)var q=v.dgst;v=q,l=Error(u(419)),l.stack="",l.digest=v,ri({value:l,source:null,stack:null}),t=Ps(e,t,a)}else if(rt||ia(e,t,a,!1),v=(a&e.childLanes)!==0,rt||v){if(v=Ie,v!==null&&(l=nh(v,a),l!==0&&l!==T.retryLane))throw T.retryLane=l,gr(e,l),Ot(v,e,l),js;Ec(_)||Xl(),t=Ps(e,t,a)}else Ec(_)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Ye=Ft(_.nextSibling),ft=t,Ae=!0,In=null,Yt=!1,e!==null&&Jh(t,e),t=Is(t,l.children),t.flags|=4096);return t}return s?(Xn(),_=l.fallback,s=t.mode,T=e.child,q=T.sibling,l=yn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,q!==null?_=yn(q,_):(_=br(_,s,a,null),_.flags|=2),_.return=t,l.return=t,l.sibling=_,t.child=l,mi(null,l),l=t.child,_=e.child.memoizedState,_===null?_=Gs(a):(s=_.cachePool,s!==null?(T=tt._currentValue,s=s.parent!==T?{parent:T,pool:T}:s):s=ap(),_={baseLanes:_.baseLanes|a,cachePool:s}),l.memoizedState=_,l.childLanes=Bs(e,v,a),t.memoizedState=Vs,mi(e.child,l)):(Kn(t),a=e.child,e=a.sibling,a=yn(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=a,t.memoizedState=null,a)}function Is(e,t){return t=Gl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Gl(e,t){return e=Dt(22,e,null,t),e.lanes=0,e}function Ps(e,t,a){return Cr(t,e.child,null,a),e=Is(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ym(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),as(e.return,t,a)}function $s(e,t,a,l,s,f){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:s,treeForkCount:f}:(v.isBackwards=t,v.rendering=null,v.renderingStartTime=0,v.last=l,v.tail=a,v.tailMode=s,v.treeForkCount=f)}function gm(e,t,a){var l=t.pendingProps,s=l.revealOrder,f=l.tail;l=l.children;var v=We.current,_=(v&2)!==0;if(_?(v=v&1|2,t.flags|=128):v&=1,X(We,v),ht(e,t,l,a),l=Ae?ni:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ym(e,a,t);else if(e.tag===19)ym(e,a,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}switch(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&xl(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),$s(t,!1,s,a,f,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&xl(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}$s(t,!0,a,null,f,l);break;case"together":$s(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Tn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Jn|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ia(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,a=yn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=yn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ys(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&_l(e)))}function p1(e,t,a){switch(t.tag){case 3:$e(t,t.stateNode.containerInfo),$n(t,tt,e.memoizedState.cache),_r();break;case 27:case 5:fr(t);break;case 4:$e(t,t.stateNode.containerInfo);break;case 10:$n(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,vs(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Kn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?vm(e,t,a):(Kn(t),e=Tn(e,t,a),e!==null?e.sibling:null);Kn(t);break;case 19:var s=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(ia(e,t,a,!1),l=(a&t.childLanes)!==0),s){if(l)return gm(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),X(We,We.current),l)break;return null;case 22:return t.lanes=0,cm(e,t,a,t.pendingProps);case 24:$n(t,tt,e.memoizedState.cache)}return Tn(e,t,a)}function bm(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!Ys(e,a)&&(t.flags&128)===0)return rt=!1,p1(e,t,a);rt=(e.flags&131072)!==0}else rt=!1,Ae&&(t.flags&1048576)!==0&&Zh(t,ni,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=wr(t.elementType),t.type=e,typeof e=="function")Qo(e)?(l=xr(e,l),t.tag=1,t=pm(null,t,e,l,a)):(t.tag=0,t=Hs(null,t,e,l,a));else{if(e!=null){var s=e.$$typeof;if(s===Y){t.tag=11,t=um(null,t,e,l,a);break e}else if(s===j){t.tag=14,t=om(null,t,e,l,a);break e}}throw t=Ne(e)||e,Error(u(306,t,""))}}return t;case 0:return Hs(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,s=xr(l,t.pendingProps),pm(e,t,l,s,a);case 3:e:{if($e(t,t.stateNode.containerInfo),e===null)throw Error(u(387));l=t.pendingProps;var f=t.memoizedState;s=f.element,fs(e,t),ci(t,l,null,a);var v=t.memoizedState;if(l=v.cache,$n(t,tt,l),l!==f.cache&&is(t,[tt],a,!0),si(),l=v.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=mm(e,t,l,a);break e}else if(l!==s){s=It(Error(u(424)),t),ri(s),t=mm(e,t,l,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ye=Ft(e.firstChild),ft=t,Ae=!0,In=null,Yt=!0,a=cp(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(_r(),l===s){t=Tn(e,t,a);break e}ht(e,t,l,a)}t=t.child}return t;case 26:return Vl(e,t),e===null?(a=Rv(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ae||(a=t.type,e=t.pendingProps,l=nu(ce.current).createElement(a),l[ct]=t,l[bt]=e,pt(l,a,e),ot(l),t.stateNode=l):t.memoizedState=Rv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fr(t),e===null&&Ae&&(l=t.stateNode=Av(t.type,t.pendingProps,ce.current),ft=t,Yt=!0,s=Ye,rr(t.type)?(wc=s,Ye=Ft(l.firstChild)):Ye=s),ht(e,t,t.pendingProps.children,a),Vl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((s=l=Ye)&&(l=$1(l,t.type,t.pendingProps,Yt),l!==null?(t.stateNode=l,ft=t,Ye=Ft(l.firstChild),Yt=!1,s=!0):s=!1),s||Pn(t)),fr(t),s=t.type,f=t.pendingProps,v=e!==null?e.memoizedProps:null,l=f.children,bc(s,f)?l=null:v!==null&&bc(s,v)&&(t.flags|=32),t.memoizedState!==null&&(s=gs(e,t,i1,null,null,a),Ri._currentValue=s),Vl(e,t),ht(e,t,l,a),t.child;case 6:return e===null&&Ae&&((e=a=Ye)&&(a=Y1(a,t.pendingProps,Yt),a!==null?(t.stateNode=a,ft=t,Ye=null,e=!0):e=!1),e||Pn(t)),null;case 13:return vm(e,t,a);case 4:return $e(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Cr(t,null,l,a):ht(e,t,l,a),t.child;case 11:return um(e,t,t.type,t.pendingProps,a);case 7:return ht(e,t,t.pendingProps,a),t.child;case 8:return ht(e,t,t.pendingProps.children,a),t.child;case 12:return ht(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,$n(t,t.type,l.value),ht(e,t,l.children,a),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,Er(t),s=dt(s),l=l(s),t.flags|=1,ht(e,t,l,a),t.child;case 14:return om(e,t,t.type,t.pendingProps,a);case 15:return sm(e,t,t.type,t.pendingProps,a);case 19:return gm(e,t,a);case 31:return h1(e,t,a);case 22:return cm(e,t,a,t.pendingProps);case 24:return Er(t),l=dt(tt),e===null?(s=os(),s===null&&(s=Ie,f=ls(),s.pooledCache=f,f.refCount++,f!==null&&(s.pooledCacheLanes|=a),s=f),t.memoizedState={parent:l,cache:s},cs(t),$n(t,tt,s)):((e.lanes&a)!==0&&(fs(e,t),ci(t,null,null,a),si()),s=e.memoizedState,f=t.memoizedState,s.parent!==l?(s={parent:l,cache:l},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),$n(t,tt,l)):(l=f.cache,$n(t,tt,l),l!==s.cache&&is(t,[tt],a,!0))),ht(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function wn(e){e.flags|=4}function ks(e,t,a,l,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(km())e.flags|=8192;else throw Or=wl,ss}else e.flags&=-16777217}function _m(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Uv(t))if(km())e.flags|=8192;else throw Or=wl,ss}function Bl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Wd():536870912,e.lanes|=t,ya|=t)}function vi(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function m1(e,t,a){var l=t.pendingProps;switch(es(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return ke(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),_n(tt),Pe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(aa(t)?wn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ns())),ke(t),null;case 26:var s=t.type,f=t.memoizedState;return e===null?(wn(t),f!==null?(ke(t),_m(t,f)):(ke(t),ks(t,s,null,l,a))):f?f!==e.memoizedState?(wn(t),ke(t),_m(t,f)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&wn(t),ke(t),ks(t,s,e,l,a)),null;case 27:if(dr(t),a=ce.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&wn(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return ke(t),null}e=Z.current,aa(t)?Wh(t):(e=Av(s,l,a),t.stateNode=e,wn(t))}return ke(t),null;case 5:if(dr(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&wn(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return ke(t),null}if(f=Z.current,aa(t))Wh(t);else{var v=nu(ce.current);switch(f){case 1:f=v.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:f=v.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":f=v.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":f=v.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":f=v.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof l.is=="string"?v.createElement("select",{is:l.is}):v.createElement("select"),l.multiple?f.multiple=!0:l.size&&(f.size=l.size);break;default:f=typeof l.is=="string"?v.createElement(s,{is:l.is}):v.createElement(s)}}f[ct]=t,f[bt]=l;e:for(v=t.child;v!==null;){if(v.tag===5||v.tag===6)f.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===t)break e;for(;v.sibling===null;){if(v.return===null||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}t.stateNode=f;e:switch(pt(f,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&wn(t)}}return ke(t),ks(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&wn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(u(166));if(e=ce.current,aa(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,s=ft,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[ct]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||vv(e.nodeValue,a)),e||Pn(t,!0)}else e=nu(e).createTextNode(l),e[ct]=t,t.stateNode=e}return ke(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=aa(t),a!==null){if(e===null){if(!l)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else _r(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else a=ns(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Lt(t),t):(Lt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return ke(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=aa(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[ct]=t}else _r(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),s=!1}else s=ns(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Lt(t),t):(Lt(t),null)}return Lt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),f=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==s&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Bl(t,t.updateQueue),ke(t),null);case 4:return Pe(),e===null&&pc(t.stateNode.containerInfo),ke(t),null;case 10:return _n(t.type),ke(t),null;case 19:if(V(We),l=t.memoizedState,l===null)return ke(t),null;if(s=(t.flags&128)!==0,f=l.rendering,f===null)if(s)vi(l,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=xl(e),f!==null){for(t.flags|=128,vi(l,!1),e=f.updateQueue,t.updateQueue=e,Bl(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Kh(a,e),a=a.sibling;return X(We,We.current&1|2),Ae&&gn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&At()>kl&&(t.flags|=128,s=!0,vi(l,!1),t.lanes=4194304)}else{if(!s)if(e=xl(f),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Bl(t,e),vi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!Ae)return ke(t),null}else 2*At()-l.renderingStartTime>kl&&a!==536870912&&(t.flags|=128,s=!0,vi(l,!1),t.lanes=4194304);l.isBackwards?(f.sibling=t.child,t.child=f):(e=l.last,e!==null?e.sibling=f:t.child=f,l.last=f)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=At(),e.sibling=null,a=We.current,X(We,s?a&1|2:a&1),Ae&&gn(t,l.treeForkCount),e):(ke(t),null);case 22:case 23:return Lt(t),ms(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),a=t.updateQueue,a!==null&&Bl(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&V(Tr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),_n(tt),ke(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function v1(e,t){switch(es(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(tt),Pe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return dr(t),null;case 31:if(t.memoizedState!==null){if(Lt(t),t.alternate===null)throw Error(u(340));_r()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Lt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));_r()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(We),null;case 4:return Pe(),null;case 10:return _n(t.type),null;case 22:case 23:return Lt(t),ms(),e!==null&&V(Tr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _n(tt),null;case 25:return null;default:return null}}function Sm(e,t){switch(es(t),t.tag){case 3:_n(tt),Pe();break;case 26:case 27:case 5:dr(t);break;case 4:Pe();break;case 31:t.memoizedState!==null&&Lt(t);break;case 13:Lt(t);break;case 19:V(We);break;case 10:_n(t.type);break;case 22:case 23:Lt(t),ms(),e!==null&&V(Tr);break;case 24:_n(tt)}}function yi(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var s=l.next;a=s;do{if((a.tag&e)===e){l=void 0;var f=a.create,v=a.inst;l=f(),v.destroy=l}a=a.next}while(a!==s)}}catch(_){He(t,t.return,_)}}function Qn(e,t,a){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var f=s.next;l=f;do{if((l.tag&e)===e){var v=l.inst,_=v.destroy;if(_!==void 0){v.destroy=void 0,s=t;var T=a,q=_;try{q()}catch(G){He(s,T,G)}}}l=l.next}while(l!==f)}}catch(G){He(t,t.return,G)}}function Em(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{dp(t,a)}catch(l){He(e,e.return,l)}}}function Tm(e,t,a){a.props=xr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){He(e,t,l)}}function gi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(s){He(e,t,s)}}function un(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(s){He(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){He(e,t,s)}else a.current=null}function wm(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(s){He(e,e.return,s)}}function Fs(e,t,a){try{var l=e.stateNode;H1(l,e.type,a,t),l[bt]=t}catch(s){He(e,e.return,s)}}function Om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&rr(e.type)||e.tag===4}function Ks(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Om(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.tag===27&&rr(e.type)||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 Xs(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=mn));else if(l!==4&&(l===27&&rr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Xs(e,t,a),e=e.sibling;e!==null;)Xs(e,t,a),e=e.sibling}function Il(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&rr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Il(e,t,a),e=e.sibling;e!==null;)Il(e,t,a),e=e.sibling}function Cm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);pt(t,l,a),t[ct]=e,t[bt]=a}catch(f){He(e,e.return,f)}}var On=!1,at=!1,Qs=!1,Am=typeof WeakSet=="function"?WeakSet:Set,st=null;function y1(e,t){if(e=e.containerInfo,yc=su,e=Vh(e),Po(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var s=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var v=0,_=-1,T=-1,q=0,G=0,P=e,L=null;t:for(;;){for(var N;P!==a||s!==0&&P.nodeType!==3||(_=v+s),P!==f||l!==0&&P.nodeType!==3||(T=v+l),P.nodeType===3&&(v+=P.nodeValue.length),(N=P.firstChild)!==null;)L=P,P=N;for(;;){if(P===e)break t;if(L===a&&++q===s&&(_=v),L===f&&++G===l&&(T=v),(N=P.nextSibling)!==null)break;P=L,L=P.parentNode}P=N}a=_===-1||T===-1?null:{start:_,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(gc={focusedElem:e,selectionRange:a},su=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=t,s=f.memoizedProps,f=f.memoizedState,l=a.stateNode;try{var W=xr(a.type,s);e=l.getSnapshotBeforeUpdate(W,f),l.__reactInternalSnapshotBeforeUpdate=e}catch(oe){He(a,a.return,oe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Sc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Sc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,st=e;break}st=t.return}}function xm(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:An(e,a),l&4&&yi(5,a);break;case 1:if(An(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(v){He(a,a.return,v)}else{var s=xr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){He(a,a.return,v)}}l&64&&Em(a),l&512&&gi(a,a.return);break;case 3:if(An(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{dp(e,t)}catch(v){He(a,a.return,v)}}break;case 27:t===null&&l&4&&Cm(a);case 26:case 5:An(e,a),t===null&&l&4&&wm(a),l&512&&gi(a,a.return);break;case 12:An(e,a);break;case 31:An(e,a),l&4&&Dm(e,a);break;case 13:An(e,a),l&4&&qm(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=C1.bind(null,a),k1(e,a))));break;case 22:if(l=a.memoizedState!==null||On,!l){t=t!==null&&t.memoizedState!==null||at,s=On;var f=at;On=l,(at=t)&&!f?xn(e,a,(a.subtreeFlags&8772)!==0):An(e,a),On=s,at=f}break;case 30:break;default:An(e,a)}}function Mm(e){var t=e.alternate;t!==null&&(e.alternate=null,Mm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Co(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ke=null,St=!1;function Cn(e,t,a){for(a=a.child;a!==null;)Rm(e,t,a),a=a.sibling}function Rm(e,t,a){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Ia,a)}catch{}switch(a.tag){case 26:at||un(a,t),Cn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:at||un(a,t);var l=Ke,s=St;rr(a.type)&&(Ke=a.stateNode,St=!1),Cn(e,t,a),Ai(a.stateNode),Ke=l,St=s;break;case 5:at||un(a,t);case 6:if(l=Ke,s=St,Ke=null,Cn(e,t,a),Ke=l,St=s,Ke!==null)if(St)try{(Ke.nodeType===9?Ke.body:Ke.nodeName==="HTML"?Ke.ownerDocument.body:Ke).removeChild(a.stateNode)}catch(f){He(a,t,f)}else try{Ke.removeChild(a.stateNode)}catch(f){He(a,t,f)}break;case 18:Ke!==null&&(St?(e=Ke,Ev(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Oa(e)):Ev(Ke,a.stateNode));break;case 4:l=Ke,s=St,Ke=a.stateNode.containerInfo,St=!0,Cn(e,t,a),Ke=l,St=s;break;case 0:case 11:case 14:case 15:Qn(2,a,t),at||Qn(4,a,t),Cn(e,t,a);break;case 1:at||(un(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Tm(a,t,l)),Cn(e,t,a);break;case 21:Cn(e,t,a);break;case 22:at=(l=at)||a.memoizedState!==null,Cn(e,t,a),at=l;break;default:Cn(e,t,a)}}function Dm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Oa(e)}catch(a){He(t,t.return,a)}}}function qm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Oa(e)}catch(a){He(t,t.return,a)}}function g1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Am),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Am),t;default:throw Error(u(435,e.tag))}}function Pl(e,t){var a=g1(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var s=A1.bind(null,e,l);l.then(s,s)}})}function Et(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var s=a[l],f=e,v=t,_=v;e:for(;_!==null;){switch(_.tag){case 27:if(rr(_.type)){Ke=_.stateNode,St=!1;break e}break;case 5:Ke=_.stateNode,St=!1;break e;case 3:case 4:Ke=_.stateNode.containerInfo,St=!0;break e}_=_.return}if(Ke===null)throw Error(u(160));Rm(f,v,s),Ke=null,St=!1,f=s.alternate,f!==null&&(f.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Lm(t,e),t=t.sibling}var Wt=null;function Lm(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Et(t,e),Tt(e),l&4&&(Qn(3,e,e.return),yi(3,e),Qn(5,e,e.return));break;case 1:Et(t,e),Tt(e),l&512&&(at||a===null||un(a,a.return)),l&64&&On&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var s=Wt;if(Et(t,e),Tt(e),l&512&&(at||a===null||un(a,a.return)),l&4){var f=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(l){case"title":f=s.getElementsByTagName("title")[0],(!f||f[Ya]||f[ct]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=s.createElement(l),s.head.insertBefore(f,s.querySelector("head > title"))),pt(f,l,a),f[ct]=e,ot(f),l=f;break e;case"link":var v=Lv("link","href",s).get(l+(a.href||""));if(v){for(var _=0;_<v.length;_++)if(f=v[_],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){v.splice(_,1);break t}}f=s.createElement(l),pt(f,l,a),s.head.appendChild(f);break;case"meta":if(v=Lv("meta","content",s).get(l+(a.content||""))){for(_=0;_<v.length;_++)if(f=v[_],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){v.splice(_,1);break t}}f=s.createElement(l),pt(f,l,a),s.head.appendChild(f);break;default:throw Error(u(468,l))}f[ct]=e,ot(f),l=f}e.stateNode=l}else zv(s,e.type,e.stateNode);else e.stateNode=qv(s,l,e.memoizedProps);else f!==l?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,l===null?zv(s,e.type,e.stateNode):qv(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Fs(e,e.memoizedProps,a.memoizedProps)}break;case 27:Et(t,e),Tt(e),l&512&&(at||a===null||un(a,a.return)),a!==null&&l&4&&Fs(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Et(t,e),Tt(e),l&512&&(at||a===null||un(a,a.return)),e.flags&32){s=e.stateNode;try{Kr(s,"")}catch(W){He(e,e.return,W)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,Fs(e,s,a!==null?a.memoizedProps:s)),l&1024&&(Qs=!0);break;case 6:if(Et(t,e),Tt(e),l&4){if(e.stateNode===null)throw Error(u(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(W){He(e,e.return,W)}}break;case 3:if(iu=null,s=Wt,Wt=ru(t.containerInfo),Et(t,e),Wt=s,Tt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Oa(t.containerInfo)}catch(W){He(e,e.return,W)}Qs&&(Qs=!1,zm(e));break;case 4:l=Wt,Wt=ru(e.stateNode.containerInfo),Et(t,e),Tt(e),Wt=l;break;case 12:Et(t,e),Tt(e);break;case 31:Et(t,e),Tt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Pl(e,l)));break;case 13:Et(t,e),Tt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Yl=At()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Pl(e,l)));break;case 22:s=e.memoizedState!==null;var T=a!==null&&a.memoizedState!==null,q=On,G=at;if(On=q||s,at=G||T,Et(t,e),at=G,On=q,Tt(e),l&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||T||On||at||Mr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){T=a=t;try{if(f=T.stateNode,s)v=f.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{_=T.stateNode;var P=T.memoizedProps.style,L=P!=null&&P.hasOwnProperty("display")?P.display:null;_.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(W){He(T,T.return,W)}}}else if(t.tag===6){if(a===null){T=t;try{T.stateNode.nodeValue=s?"":T.memoizedProps}catch(W){He(T,T.return,W)}}}else if(t.tag===18){if(a===null){T=t;try{var N=T.stateNode;s?Tv(N,!0):Tv(T.stateNode,!1)}catch(W){He(T,T.return,W)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Pl(e,a))));break;case 19:Et(t,e),Tt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Pl(e,l)));break;case 30:break;case 21:break;default:Et(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Om(l)){a=l;break}l=l.return}if(a==null)throw Error(u(160));switch(a.tag){case 27:var s=a.stateNode,f=Ks(e);Il(e,f,s);break;case 5:var v=a.stateNode;a.flags&32&&(Kr(v,""),a.flags&=-33);var _=Ks(e);Il(e,_,v);break;case 3:case 4:var T=a.stateNode.containerInfo,q=Ks(e);Xs(e,q,T);break;default:throw Error(u(161))}}catch(G){He(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;zm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function An(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)xm(e,t.alternate,t),t=t.sibling}function Mr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Qn(4,t,t.return),Mr(t);break;case 1:un(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Tm(t,t.return,a),Mr(t);break;case 27:Ai(t.stateNode);case 26:case 5:un(t,t.return),Mr(t);break;case 22:t.memoizedState===null&&Mr(t);break;case 30:Mr(t);break;default:Mr(t)}e=e.sibling}}function xn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,s=e,f=t,v=f.flags;switch(f.tag){case 0:case 11:case 15:xn(s,f,a),yi(4,f);break;case 1:if(xn(s,f,a),l=f,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(q){He(l,l.return,q)}if(l=f,s=l.updateQueue,s!==null){var _=l.stateNode;try{var T=s.shared.hiddenCallbacks;if(T!==null)for(s.shared.hiddenCallbacks=null,s=0;s<T.length;s++)fp(T[s],_)}catch(q){He(l,l.return,q)}}a&&v&64&&Em(f),gi(f,f.return);break;case 27:Cm(f);case 26:case 5:xn(s,f,a),a&&l===null&&v&4&&wm(f),gi(f,f.return);break;case 12:xn(s,f,a);break;case 31:xn(s,f,a),a&&v&4&&Dm(s,f);break;case 13:xn(s,f,a),a&&v&4&&qm(s,f);break;case 22:f.memoizedState===null&&xn(s,f,a),gi(f,f.return);break;case 30:break;default:xn(s,f,a)}t=t.sibling}}function Zs(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ai(a))}function Js(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ai(e))}function en(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Um(e,t,a,l),t=t.sibling}function Um(e,t,a,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:en(e,t,a,l),s&2048&&yi(9,t);break;case 1:en(e,t,a,l);break;case 3:en(e,t,a,l),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ai(e)));break;case 12:if(s&2048){en(e,t,a,l),e=t.stateNode;try{var f=t.memoizedProps,v=f.id,_=f.onPostCommit;typeof _=="function"&&_(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){He(t,t.return,T)}}else en(e,t,a,l);break;case 31:en(e,t,a,l);break;case 13:en(e,t,a,l);break;case 23:break;case 22:f=t.stateNode,v=t.alternate,t.memoizedState!==null?f._visibility&2?en(e,t,a,l):bi(e,t):f._visibility&2?en(e,t,a,l):(f._visibility|=2,pa(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Zs(v,t);break;case 24:en(e,t,a,l),s&2048&&Js(t.alternate,t);break;default:en(e,t,a,l)}}function pa(e,t,a,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,v=t,_=a,T=l,q=v.flags;switch(v.tag){case 0:case 11:case 15:pa(f,v,_,T,s),yi(8,v);break;case 23:break;case 22:var G=v.stateNode;v.memoizedState!==null?G._visibility&2?pa(f,v,_,T,s):bi(f,v):(G._visibility|=2,pa(f,v,_,T,s)),s&&q&2048&&Zs(v.alternate,v);break;case 24:pa(f,v,_,T,s),s&&q&2048&&Js(v.alternate,v);break;default:pa(f,v,_,T,s)}t=t.sibling}}function bi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,s=l.flags;switch(l.tag){case 22:bi(a,l),s&2048&&Zs(l.alternate,l);break;case 24:bi(a,l),s&2048&&Js(l.alternate,l);break;default:bi(a,l)}t=t.sibling}}var _i=8192;function ma(e,t,a){if(e.subtreeFlags&_i)for(e=e.child;e!==null;)Nm(e,t,a),e=e.sibling}function Nm(e,t,a){switch(e.tag){case 26:ma(e,t,a),e.flags&_i&&e.memoizedState!==null&&aE(a,Wt,e.memoizedState,e.memoizedProps);break;case 5:ma(e,t,a);break;case 3:case 4:var l=Wt;Wt=ru(e.stateNode.containerInfo),ma(e,t,a),Wt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=_i,_i=16777216,ma(e,t,a),_i=l):ma(e,t,a));break;default:ma(e,t,a)}}function jm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Si(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];st=l,Vm(l,e)}jm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Hm(e),e=e.sibling}function Hm(e){switch(e.tag){case 0:case 11:case 15:Si(e),e.flags&2048&&Qn(9,e,e.return);break;case 3:Si(e);break;case 12:Si(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,$l(e)):Si(e);break;default:Si(e)}}function $l(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];st=l,Vm(l,e)}jm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qn(8,t,t.return),$l(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,$l(t));break;default:$l(t)}e=e.sibling}}function Vm(e,t){for(;st!==null;){var a=st;switch(a.tag){case 0:case 11:case 15:Qn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ai(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,st=l;else e:for(a=e;st!==null;){l=st;var s=l.sibling,f=l.return;if(Mm(l),l===a){st=null;break e}if(s!==null){s.return=f,st=s;break e}st=f}}}var b1={getCacheForType:function(e){var t=dt(tt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return dt(tt).controller.signal}},_1=typeof WeakMap=="function"?WeakMap:Map,De=0,Ie=null,Ee=null,Oe=0,je=0,zt=null,Zn=!1,va=!1,Ws=!1,Mn=0,Ze=0,Jn=0,Rr=0,ec=0,Ut=0,ya=0,Ei=null,wt=null,tc=!1,Yl=0,Gm=0,kl=1/0,Fl=null,Wn=null,lt=0,er=null,ga=null,Rn=0,nc=0,rc=null,Bm=null,Ti=0,ac=null;function Nt(){return(De&2)!==0&&Oe!==0?Oe&-Oe:U.T!==null?cc():rh()}function Im(){if(Ut===0)if((Oe&536870912)===0||Ae){var e=tl;tl<<=1,(tl&3932160)===0&&(tl=262144),Ut=e}else Ut=536870912;return e=qt.current,e!==null&&(e.flags|=32),Ut}function Ot(e,t,a){(e===Ie&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(ba(e,0),tr(e,Oe,Ut,!1)),$a(e,a),((De&2)===0||e!==Ie)&&(e===Ie&&((De&2)===0&&(Rr|=a),Ze===4&&tr(e,Oe,Ut,!1)),on(e))}function Pm(e,t,a){if((De&6)!==0)throw Error(u(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Pa(e,t),s=l?T1(e,t):lc(e,t,!0),f=l;do{if(s===0){va&&!l&&tr(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!S1(a)){s=lc(e,t,!1),f=!1;continue}if(s===2){if(f=t,e.errorRecoveryDisabledLanes&f)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var _=e;s=Ei;var T=_.current.memoizedState.isDehydrated;if(T&&(ba(_,v).flags|=256),v=lc(_,v,!1),v!==2){if(Ws&&!T){_.errorRecoveryDisabledLanes|=f,Rr|=f,s=4;break e}f=wt,wt=s,f!==null&&(wt===null?wt=f:wt.push.apply(wt,f))}s=v}if(f=!1,s!==2)continue}}if(s===1){ba(e,0),tr(e,t,0,!0);break}e:{switch(l=e,f=s,f){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:tr(l,t,Ut,!Zn);break e;case 2:wt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=Yl+300-At(),10<s)){if(tr(l,t,Ut,!Zn),rl(l,0,!0)!==0)break e;Rn=t,l.timeoutHandle=_v($m.bind(null,l,a,wt,Fl,tc,t,Ut,Rr,ya,Zn,f,"Throttled",-0,0),s);break e}$m(l,a,wt,Fl,tc,t,Ut,Rr,ya,Zn,f,null,-0,0)}}break}while(!0);on(e)}function $m(e,t,a,l,s,f,v,_,T,q,G,P,L,N){if(e.timeoutHandle=-1,P=t.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mn},Nm(t,f,P);var W=(f&62914560)===f?Yl-At():(f&4194048)===f?Gm-At():0;if(W=iE(P,W),W!==null){Rn=f,e.cancelPendingCommit=W(Jm.bind(null,e,t,f,a,l,s,v,_,T,G,P,null,L,N)),tr(e,f,v,!q);return}}Jm(e,t,f,a,l,s,v,_,T)}function S1(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var s=a[l],f=s.getSnapshot;s=s.value;try{if(!Rt(f(),s))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 tr(e,t,a,l){t&=~ec,t&=~Rr,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var f=31-Mt(s),v=1<<f;l[f]=-1,s&=~v}a!==0&&eh(e,a,t)}function Kl(){return(De&6)===0?(wi(0),!1):!0}function ic(){if(Ee!==null){if(je===0)var e=Ee.return;else e=Ee,bn=Sr=null,Ss(e),sa=null,li=0,e=Ee;for(;e!==null;)Sm(e.alternate,e),e=e.return;Ee=null}}function ba(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,B1(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Rn=0,ic(),Ie=e,Ee=a=yn(e.current,null),Oe=t,je=0,zt=null,Zn=!1,va=Pa(e,t),Ws=!1,ya=Ut=ec=Rr=Jn=Ze=0,wt=Ei=null,tc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var s=31-Mt(l),f=1<<s;t|=e[s],l&=~f}return Mn=t,ml(),a}function Ym(e,t){ve=null,U.H=pi,t===oa||t===Tl?(t=up(),je=3):t===ss?(t=up(),je=4):je=t===js?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zt=t,Ee===null&&(Ze=1,jl(e,It(t,e.current)))}function km(){var e=qt.current;return e===null?!0:(Oe&4194048)===Oe?kt===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===kt:!1}function Fm(){var e=U.H;return U.H=pi,e===null?pi:e}function Km(){var e=U.A;return U.A=b1,e}function Xl(){Ze=4,Zn||(Oe&4194048)!==Oe&&qt.current!==null||(va=!0),(Jn&134217727)===0&&(Rr&134217727)===0||Ie===null||tr(Ie,Oe,Ut,!1)}function lc(e,t,a){var l=De;De|=2;var s=Fm(),f=Km();(Ie!==e||Oe!==t)&&(Fl=null,ba(e,t)),t=!1;var v=Ze;e:do try{if(je!==0&&Ee!==null){var _=Ee,T=zt;switch(je){case 8:ic(),v=6;break e;case 3:case 2:case 9:case 6:qt.current===null&&(t=!0);var q=je;if(je=0,zt=null,_a(e,_,T,q),a&&va){v=0;break e}break;default:q=je,je=0,zt=null,_a(e,_,T,q)}}E1(),v=Ze;break}catch(G){Ym(e,G)}while(!0);return t&&e.shellSuspendCounter++,bn=Sr=null,De=l,U.H=s,U.A=f,Ee===null&&(Ie=null,Oe=0,ml()),v}function E1(){for(;Ee!==null;)Xm(Ee)}function T1(e,t){var a=De;De|=2;var l=Fm(),s=Km();Ie!==e||Oe!==t?(Fl=null,kl=At()+500,ba(e,t)):va=Pa(e,t);e:do try{if(je!==0&&Ee!==null){t=Ee;var f=zt;t:switch(je){case 1:je=0,zt=null,_a(e,t,f,1);break;case 2:case 9:if(ip(f)){je=0,zt=null,Qm(t);break}t=function(){je!==2&&je!==9||Ie!==e||(je=7),on(e)},f.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:ip(f)?(je=0,zt=null,Qm(t)):(je=0,zt=null,_a(e,t,f,7));break;case 5:var v=null;switch(Ee.tag){case 26:v=Ee.memoizedState;case 5:case 27:var _=Ee;if(v?Uv(v):_.stateNode.complete){je=0,zt=null;var T=_.sibling;if(T!==null)Ee=T;else{var q=_.return;q!==null?(Ee=q,Ql(q)):Ee=null}break t}}je=0,zt=null,_a(e,t,f,5);break;case 6:je=0,zt=null,_a(e,t,f,6);break;case 8:ic(),Ze=6;break e;default:throw Error(u(462))}}w1();break}catch(G){Ym(e,G)}while(!0);return bn=Sr=null,U.H=l,U.A=s,De=a,Ee!==null?0:(Ie=null,Oe=0,ml(),Ze)}function w1(){for(;Ee!==null&&!F0();)Xm(Ee)}function Xm(e){var t=bm(e.alternate,e,Mn);e.memoizedProps=e.pendingProps,t===null?Ql(e):Ee=t}function Qm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=hm(a,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=hm(a,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:Ss(t);default:Sm(a,t),t=Ee=Kh(t,Mn),t=bm(a,t,Mn)}e.memoizedProps=e.pendingProps,t===null?Ql(e):Ee=t}function _a(e,t,a,l){bn=Sr=null,Ss(t),sa=null,li=0;var s=t.return;try{if(d1(e,s,t,a,Oe)){Ze=1,jl(e,It(a,e.current)),Ee=null;return}}catch(f){if(s!==null)throw Ee=s,f;Ze=1,jl(e,It(a,e.current)),Ee=null;return}t.flags&32768?(Ae||l===1?e=!0:va||(Oe&536870912)!==0?e=!1:(Zn=e=!0,(l===2||l===9||l===3||l===6)&&(l=qt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Zm(t,e)):Ql(t)}function Ql(e){var t=e;do{if((t.flags&32768)!==0){Zm(t,Zn);return}e=t.return;var a=m1(t.alternate,t,Mn);if(a!==null){Ee=a;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Ze===0&&(Ze=5)}function Zm(e,t){do{var a=v1(e.alternate,e);if(a!==null){a.flags&=32767,Ee=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=a}while(e!==null);Ze=6,Ee=null}function Jm(e,t,a,l,s,f,v,_,T){e.cancelPendingCommit=null;do Zl();while(lt!==0);if((De&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(f=t.lanes|t.childLanes,f|=Ko,rS(e,a,f,v,_,T),e===Ie&&(Ee=Ie=null,Oe=0),ga=t,er=e,Rn=a,nc=f,rc=s,Bm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,x1(Wi,function(){return rv(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null,s=K.p,K.p=2,v=De,De|=4;try{y1(e,t,a)}finally{De=v,K.p=s,U.T=l}}lt=1,Wm(),ev(),tv()}}function Wm(){if(lt===1){lt=0;var e=er,t=ga,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=U.T,U.T=null;var l=K.p;K.p=2;var s=De;De|=4;try{Lm(t,e);var f=gc,v=Vh(e.containerInfo),_=f.focusedElem,T=f.selectionRange;if(v!==_&&_&&_.ownerDocument&&Hh(_.ownerDocument.documentElement,_)){if(T!==null&&Po(_)){var q=T.start,G=T.end;if(G===void 0&&(G=q),"selectionStart"in _)_.selectionStart=q,_.selectionEnd=Math.min(G,_.value.length);else{var P=_.ownerDocument||document,L=P&&P.defaultView||window;if(L.getSelection){var N=L.getSelection(),W=_.textContent.length,oe=Math.min(T.start,W),Be=T.end===void 0?oe:Math.min(T.end,W);!N.extend&&oe>Be&&(v=Be,Be=oe,oe=v);var x=jh(_,oe),O=jh(_,Be);if(x&&O&&(N.rangeCount!==1||N.anchorNode!==x.node||N.anchorOffset!==x.offset||N.focusNode!==O.node||N.focusOffset!==O.offset)){var D=P.createRange();D.setStart(x.node,x.offset),N.removeAllRanges(),oe>Be?(N.addRange(D),N.extend(O.node,O.offset)):(D.setEnd(O.node,O.offset),N.addRange(D))}}}}for(P=[],N=_;N=N.parentNode;)N.nodeType===1&&P.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<P.length;_++){var I=P[_];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}su=!!yc,gc=yc=null}finally{De=s,K.p=l,U.T=a}}e.current=t,lt=2}}function ev(){if(lt===2){lt=0;var e=er,t=ga,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=U.T,U.T=null;var l=K.p;K.p=2;var s=De;De|=4;try{xm(e,t.alternate,t)}finally{De=s,K.p=l,U.T=a}}lt=3}}function tv(){if(lt===4||lt===3){lt=0,K0();var e=er,t=ga,a=Rn,l=Bm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,ga=er=null,nv(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Wn=null),wo(a),t=t.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(Ia,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=U.T,s=K.p,K.p=2,U.T=null;try{for(var f=e.onRecoverableError,v=0;v<l.length;v++){var _=l[v];f(_.value,{componentStack:_.stack})}}finally{U.T=t,K.p=s}}(Rn&3)!==0&&Zl(),on(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===ac?Ti++:(Ti=0,ac=e):Ti=0,wi(0)}}function nv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ai(t)))}function Zl(){return Wm(),ev(),tv(),rv()}function rv(){if(lt!==5)return!1;var e=er,t=nc;nc=0;var a=wo(Rn),l=U.T,s=K.p;try{K.p=32>a?32:a,U.T=null,a=rc,rc=null;var f=er,v=Rn;if(lt=0,ga=er=null,Rn=0,(De&6)!==0)throw Error(u(331));var _=De;if(De|=4,Hm(f.current),Um(f,f.current,v,a),De=_,wi(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(Ia,f)}catch{}return!0}finally{K.p=s,U.T=l,nv(e,t)}}function av(e,t,a){t=It(a,t),t=Ns(e.stateNode,t,2),e=Fn(e,t,2),e!==null&&($a(e,2),on(e))}function He(e,t,a){if(e.tag===3)av(e,e,a);else for(;t!==null;){if(t.tag===3){av(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Wn===null||!Wn.has(l))){e=It(a,e),a=im(2),l=Fn(t,a,2),l!==null&&(lm(a,l,t,e),$a(l,2),on(l));break}}t=t.return}}function uc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new _1;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(a)||(Ws=!0,s.add(a),e=O1.bind(null,e,t,a),t.then(e,e))}function O1(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ie===e&&(Oe&a)===a&&(Ze===4||Ze===3&&(Oe&62914560)===Oe&&300>At()-Yl?(De&2)===0&&ba(e,0):ec|=a,ya===Oe&&(ya=0)),on(e)}function iv(e,t){t===0&&(t=Wd()),e=gr(e,t),e!==null&&($a(e,t),on(e))}function C1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),iv(e,a)}function A1(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(t),iv(e,a)}function x1(e,t){return _o(e,t)}var Jl=null,Sa=null,oc=!1,Wl=!1,sc=!1,nr=0;function on(e){e!==Sa&&e.next===null&&(Sa===null?Jl=Sa=e:Sa=Sa.next=e),Wl=!0,oc||(oc=!0,R1())}function wi(e,t){if(!sc&&Wl){sc=!0;do for(var a=!1,l=Jl;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var f=0;else{var v=l.suspendedLanes,_=l.pingedLanes;f=(1<<31-Mt(42|e)+1)-1,f&=s&~(v&~_),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,sv(l,f))}else f=Oe,f=rl(l,l===Ie?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||Pa(l,f)||(a=!0,sv(l,f));l=l.next}while(a);sc=!1}}function M1(){lv()}function lv(){Wl=oc=!1;var e=0;nr!==0&&G1()&&(e=nr);for(var t=At(),a=null,l=Jl;l!==null;){var s=l.next,f=uv(l,t);f===0?(l.next=null,a===null?Jl=s:a.next=s,s===null&&(Sa=a)):(a=l,(e!==0||(f&3)!==0)&&(Wl=!0)),l=s}lt!==0&<!==5||wi(e),nr!==0&&(nr=0)}function uv(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var v=31-Mt(f),_=1<<v,T=s[v];T===-1?((_&a)===0||(_&l)!==0)&&(s[v]=nS(_,t)):T<=t&&(e.expiredLanes|=_),f&=~_}if(t=Ie,a=Oe,a=rl(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&So(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Pa(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&So(l),wo(a)){case 2:case 8:a=Zd;break;case 32:a=Wi;break;case 268435456:a=Jd;break;default:a=Wi}return l=ov.bind(null,e),a=_o(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&So(l),e.callbackPriority=2,e.callbackNode=null,2}function ov(e,t){if(lt!==0&<!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Zl()&&e.callbackNode!==a)return null;var l=Oe;return l=rl(e,e===Ie?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Pm(e,l,t),uv(e,At()),e.callbackNode!=null&&e.callbackNode===a?ov.bind(null,e):null)}function sv(e,t){if(Zl())return null;Pm(e,t,!0)}function R1(){I1(function(){(De&6)!==0?_o(Qd,M1):lv()})}function cc(){if(nr===0){var e=la;e===0&&(e=el,el<<=1,(el&261888)===0&&(el=256)),nr=e}return nr}function cv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ul(""+e)}function fv(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function D1(e,t,a,l,s){if(t==="submit"&&a&&a.stateNode===s){var f=cv((s[bt]||null).action),v=l.submitter;v&&(t=(t=v[bt]||null)?cv(t.formAction):v.getAttribute("formAction"),t!==null&&(f=t,v=null));var _=new fl("action","action",null,l,s);e.push({event:_,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(nr!==0){var T=v?fv(s,v):new FormData(s);Rs(a,{pending:!0,data:T,method:s.method,action:f},null,T)}}else typeof f=="function"&&(_.preventDefault(),T=v?fv(s,v):new FormData(s),Rs(a,{pending:!0,data:T,method:s.method,action:f},f,T))},currentTarget:s}]})}}for(var fc=0;fc<Fo.length;fc++){var dc=Fo[fc],q1=dc.toLowerCase(),L1=dc[0].toUpperCase()+dc.slice(1);Jt(q1,"on"+L1)}Jt(Ih,"onAnimationEnd"),Jt(Ph,"onAnimationIteration"),Jt($h,"onAnimationStart"),Jt("dblclick","onDoubleClick"),Jt("focusin","onFocus"),Jt("focusout","onBlur"),Jt(XS,"onTransitionRun"),Jt(QS,"onTransitionStart"),Jt(ZS,"onTransitionCancel"),Jt(Yh,"onTransitionEnd"),kr("onMouseEnter",["mouseout","mouseover"]),kr("onMouseLeave",["mouseout","mouseover"]),kr("onPointerEnter",["pointerout","pointerover"]),kr("onPointerLeave",["pointerout","pointerover"]),pr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pr("onBeforeInput",["compositionend","keypress","textInput","paste"]),pr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oi="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(" "),z1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Oi));function dv(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],s=l.event;l=l.listeners;e:{var f=void 0;if(t)for(var v=l.length-1;0<=v;v--){var _=l[v],T=_.instance,q=_.currentTarget;if(_=_.listener,T!==f&&s.isPropagationStopped())break e;f=_,s.currentTarget=q;try{f(s)}catch(G){pl(G)}s.currentTarget=null,f=T}else for(v=0;v<l.length;v++){if(_=l[v],T=_.instance,q=_.currentTarget,_=_.listener,T!==f&&s.isPropagationStopped())break e;f=_,s.currentTarget=q;try{f(s)}catch(G){pl(G)}s.currentTarget=null,f=T}}}}function Te(e,t){var a=t[Oo];a===void 0&&(a=t[Oo]=new Set);var l=e+"__bubble";a.has(l)||(hv(t,e,2,!1),a.add(l))}function hc(e,t,a){var l=0;t&&(l|=4),hv(a,e,l,t)}var eu="_reactListening"+Math.random().toString(36).slice(2);function pc(e){if(!e[eu]){e[eu]=!0,lh.forEach(function(a){a!=="selectionchange"&&(z1.has(a)||hc(a,!1,e),hc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[eu]||(t[eu]=!0,hc("selectionchange",!1,t))}}function hv(e,t,a,l){switch(Iv(t)){case 2:var s=oE;break;case 8:s=sE;break;default:s=Mc}a=s.bind(null,t,a,e),s=void 0,!zo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function mc(e,t,a,l,s){var f=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var v=l.tag;if(v===3||v===4){var _=l.stateNode.containerInfo;if(_===s)break;if(v===4)for(v=l.return;v!==null;){var T=v.tag;if((T===3||T===4)&&v.stateNode.containerInfo===s)return;v=v.return}for(;_!==null;){if(v=Pr(_),v===null)return;if(T=v.tag,T===5||T===6||T===26||T===27){l=f=v;continue e}_=_.parentNode}}l=l.return}gh(function(){var q=f,G=qo(a),P=[];e:{var L=kh.get(e);if(L!==void 0){var N=fl,W=e;switch(e){case"keypress":if(sl(a)===0)break e;case"keydown":case"keyup":N=AS;break;case"focusin":W="focus",N=Ho;break;case"focusout":W="blur",N=Ho;break;case"beforeblur":case"afterblur":N=Ho;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=Sh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=mS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=RS;break;case Ih:case Ph:case $h:N=gS;break;case Yh:N=qS;break;case"scroll":case"scrollend":N=hS;break;case"wheel":N=zS;break;case"copy":case"cut":case"paste":N=_S;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=Th;break;case"toggle":case"beforetoggle":N=NS}var oe=(t&4)!==0,Be=!oe&&(e==="scroll"||e==="scrollend"),x=oe?L!==null?L+"Capture":null:L;oe=[];for(var O=q,D;O!==null;){var I=O;if(D=I.stateNode,I=I.tag,I!==5&&I!==26&&I!==27||D===null||x===null||(I=Fa(O,x),I!=null&&oe.push(Ci(O,I,D))),Be)break;O=O.return}0<oe.length&&(L=new N(L,W,null,a,G),P.push({event:L,listeners:oe}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",N=e==="mouseout"||e==="pointerout",L&&a!==Do&&(W=a.relatedTarget||a.fromElement)&&(Pr(W)||W[Ir]))break e;if((N||L)&&(L=G.window===G?G:(L=G.ownerDocument)?L.defaultView||L.parentWindow:window,N?(W=a.relatedTarget||a.toElement,N=q,W=W?Pr(W):null,W!==null&&(Be=c(W),oe=W.tag,W!==Be||oe!==5&&oe!==27&&oe!==6)&&(W=null)):(N=null,W=q),N!==W)){if(oe=Sh,I="onMouseLeave",x="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(oe=Th,I="onPointerLeave",x="onPointerEnter",O="pointer"),Be=N==null?L:ka(N),D=W==null?L:ka(W),L=new oe(I,O+"leave",N,a,G),L.target=Be,L.relatedTarget=D,I=null,Pr(G)===q&&(oe=new oe(x,O+"enter",W,a,G),oe.target=D,oe.relatedTarget=Be,I=oe),Be=I,N&&W)t:{for(oe=U1,x=N,O=W,D=0,I=x;I;I=oe(I))D++;I=0;for(var ne=O;ne;ne=oe(ne))I++;for(;0<D-I;)x=oe(x),D--;for(;0<I-D;)O=oe(O),I--;for(;D--;){if(x===O||O!==null&&x===O.alternate){oe=x;break t}x=oe(x),O=oe(O)}oe=null}else oe=null;N!==null&&pv(P,L,N,oe,!1),W!==null&&Be!==null&&pv(P,Be,W,oe,!0)}}e:{if(L=q?ka(q):window,N=L.nodeName&&L.nodeName.toLowerCase(),N==="select"||N==="input"&&L.type==="file")var xe=Dh;else if(Mh(L))if(qh)xe=kS;else{xe=$S;var te=PS}else N=L.nodeName,!N||N.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?q&&Ro(q.elementType)&&(xe=Dh):xe=YS;if(xe&&(xe=xe(e,q))){Rh(P,xe,a,G);break e}te&&te(e,L,q),e==="focusout"&&q&&L.type==="number"&&q.memoizedProps.value!=null&&Mo(L,"number",L.value)}switch(te=q?ka(q):window,e){case"focusin":(Mh(te)||te.contentEditable==="true")&&(Jr=te,$o=q,ti=null);break;case"focusout":ti=$o=Jr=null;break;case"mousedown":Yo=!0;break;case"contextmenu":case"mouseup":case"dragend":Yo=!1,Gh(P,a,G);break;case"selectionchange":if(KS)break;case"keydown":case"keyup":Gh(P,a,G)}var ge;if(Go)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Zr?Ah(e,a)&&(Ce="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ce="onCompositionStart");Ce&&(wh&&a.locale!=="ko"&&(Zr||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Zr&&(ge=bh()):(Gn=G,Uo="value"in Gn?Gn.value:Gn.textContent,Zr=!0)),te=tu(q,Ce),0<te.length&&(Ce=new Eh(Ce,e,null,a,G),P.push({event:Ce,listeners:te}),ge?Ce.data=ge:(ge=xh(a),ge!==null&&(Ce.data=ge)))),(ge=HS?VS(e,a):GS(e,a))&&(Ce=tu(q,"onBeforeInput"),0<Ce.length&&(te=new Eh("onBeforeInput","beforeinput",null,a,G),P.push({event:te,listeners:Ce}),te.data=ge)),D1(P,e,q,a,G)}dv(P,t)})}function Ci(e,t,a){return{instance:e,listener:t,currentTarget:a}}function tu(e,t){for(var a=t+"Capture",l=[];e!==null;){var s=e,f=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||f===null||(s=Fa(e,a),s!=null&&l.unshift(Ci(e,s,f)),s=Fa(e,t),s!=null&&l.push(Ci(e,s,f))),e.tag===3)return l;e=e.return}return[]}function U1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function pv(e,t,a,l,s){for(var f=t._reactName,v=[];a!==null&&a!==l;){var _=a,T=_.alternate,q=_.stateNode;if(_=_.tag,T!==null&&T===l)break;_!==5&&_!==26&&_!==27||q===null||(T=q,s?(q=Fa(a,f),q!=null&&v.unshift(Ci(a,q,T))):s||(q=Fa(a,f),q!=null&&v.push(Ci(a,q,T)))),a=a.return}v.length!==0&&e.push({event:t,listeners:v})}var N1=/\r\n?/g,j1=/\u0000|\uFFFD/g;function mv(e){return(typeof e=="string"?e:""+e).replace(N1,`
|
|
14
|
+
`).replace(j1,"")}function vv(e,t){return t=mv(t),mv(e)===t}function Ge(e,t,a,l,s,f){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Kr(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Kr(e,""+l);break;case"className":il(e,"class",l);break;case"tabIndex":il(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":il(e,a,l);break;case"style":vh(e,l,f);break;case"data":if(t!=="object"){il(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ul(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(t!=="input"&&Ge(e,t,"name",s.name,s,null),Ge(e,t,"formEncType",s.formEncType,s,null),Ge(e,t,"formMethod",s.formMethod,s,null),Ge(e,t,"formTarget",s.formTarget,s,null)):(Ge(e,t,"encType",s.encType,s,null),Ge(e,t,"method",s.method,s,null),Ge(e,t,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ul(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=mn);break;case"onScroll":l!=null&&Te("scroll",e);break;case"onScrollEnd":l!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=ul(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Te("beforetoggle",e),Te("toggle",e),al(e,"popover",l);break;case"xlinkActuate":pn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":pn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":pn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":pn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":pn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":pn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":pn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":pn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":pn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":al(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=fS.get(a)||a,al(e,a,l))}}function vc(e,t,a,l,s,f){switch(a){case"style":vh(e,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Kr(e,l):(typeof l=="number"||typeof l=="bigint")&&Kr(e,""+l);break;case"onScroll":l!=null&&Te("scroll",e);break;case"onScrollEnd":l!=null&&Te("scrollend",e);break;case"onClick":l!=null&&(e.onclick=mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!uh.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),f=e[bt]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,s),typeof l=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,s);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):al(e,a,l)}}}function pt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var l=!1,s=!1,f;for(f in a)if(a.hasOwnProperty(f)){var v=a[f];if(v!=null)switch(f){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ge(e,t,f,v,a,null)}}s&&Ge(e,t,"srcSet",a.srcSet,a,null),l&&Ge(e,t,"src",a.src,a,null);return;case"input":Te("invalid",e);var _=f=v=s=null,T=null,q=null;for(l in a)if(a.hasOwnProperty(l)){var G=a[l];if(G!=null)switch(l){case"name":s=G;break;case"type":v=G;break;case"checked":T=G;break;case"defaultChecked":q=G;break;case"value":f=G;break;case"defaultValue":_=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(u(137,t));break;default:Ge(e,t,l,G,a,null)}}dh(e,f,_,T,q,v,s,!1);return;case"select":Te("invalid",e),l=v=f=null;for(s in a)if(a.hasOwnProperty(s)&&(_=a[s],_!=null))switch(s){case"value":f=_;break;case"defaultValue":v=_;break;case"multiple":l=_;default:Ge(e,t,s,_,a,null)}t=f,a=v,e.multiple=!!l,t!=null?Fr(e,!!l,t,!1):a!=null&&Fr(e,!!l,a,!0);return;case"textarea":Te("invalid",e),f=s=l=null;for(v in a)if(a.hasOwnProperty(v)&&(_=a[v],_!=null))switch(v){case"value":l=_;break;case"defaultValue":s=_;break;case"children":f=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(91));break;default:Ge(e,t,v,_,a,null)}ph(e,l,s,f);return;case"option":for(T in a)a.hasOwnProperty(T)&&(l=a[T],l!=null)&&(T==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Ge(e,t,T,l,a,null));return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(l=0;l<Oi.length;l++)Te(Oi[l],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in a)if(a.hasOwnProperty(q)&&(l=a[q],l!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ge(e,t,q,l,a,null)}return;default:if(Ro(t)){for(G in a)a.hasOwnProperty(G)&&(l=a[G],l!==void 0&&vc(e,t,G,l,a,void 0));return}}for(_ in a)a.hasOwnProperty(_)&&(l=a[_],l!=null&&Ge(e,t,_,l,a,null))}function H1(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,f=null,v=null,_=null,T=null,q=null,G=null;for(N in a){var P=a[N];if(a.hasOwnProperty(N)&&P!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":T=P;default:l.hasOwnProperty(N)||Ge(e,t,N,null,l,P)}}for(var L in l){var N=l[L];if(P=a[L],l.hasOwnProperty(L)&&(N!=null||P!=null))switch(L){case"type":f=N;break;case"name":s=N;break;case"checked":q=N;break;case"defaultChecked":G=N;break;case"value":v=N;break;case"defaultValue":_=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(u(137,t));break;default:N!==P&&Ge(e,t,L,N,l,P)}}xo(e,v,_,T,q,G,f,s);return;case"select":N=v=_=L=null;for(f in a)if(T=a[f],a.hasOwnProperty(f)&&T!=null)switch(f){case"value":break;case"multiple":N=T;default:l.hasOwnProperty(f)||Ge(e,t,f,null,l,T)}for(s in l)if(f=l[s],T=a[s],l.hasOwnProperty(s)&&(f!=null||T!=null))switch(s){case"value":L=f;break;case"defaultValue":_=f;break;case"multiple":v=f;default:f!==T&&Ge(e,t,s,f,l,T)}t=_,a=v,l=N,L!=null?Fr(e,!!a,L,!1):!!l!=!!a&&(t!=null?Fr(e,!!a,t,!0):Fr(e,!!a,a?[]:"",!1));return;case"textarea":N=L=null;for(_ in a)if(s=a[_],a.hasOwnProperty(_)&&s!=null&&!l.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Ge(e,t,_,null,l,s)}for(v in l)if(s=l[v],f=a[v],l.hasOwnProperty(v)&&(s!=null||f!=null))switch(v){case"value":L=s;break;case"defaultValue":N=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==f&&Ge(e,t,v,s,l,f)}hh(e,L,N);return;case"option":for(var W in a)L=a[W],a.hasOwnProperty(W)&&L!=null&&!l.hasOwnProperty(W)&&(W==="selected"?e.selected=!1:Ge(e,t,W,null,l,L));for(T in l)L=l[T],N=a[T],l.hasOwnProperty(T)&&L!==N&&(L!=null||N!=null)&&(T==="selected"?e.selected=L&&typeof L!="function"&&typeof L!="symbol":Ge(e,t,T,L,l,N));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var oe in a)L=a[oe],a.hasOwnProperty(oe)&&L!=null&&!l.hasOwnProperty(oe)&&Ge(e,t,oe,null,l,L);for(q in l)if(L=l[q],N=a[q],l.hasOwnProperty(q)&&L!==N&&(L!=null||N!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(u(137,t));break;default:Ge(e,t,q,L,l,N)}return;default:if(Ro(t)){for(var Be in a)L=a[Be],a.hasOwnProperty(Be)&&L!==void 0&&!l.hasOwnProperty(Be)&&vc(e,t,Be,void 0,l,L);for(G in l)L=l[G],N=a[G],!l.hasOwnProperty(G)||L===N||L===void 0&&N===void 0||vc(e,t,G,L,l,N);return}}for(var x in a)L=a[x],a.hasOwnProperty(x)&&L!=null&&!l.hasOwnProperty(x)&&Ge(e,t,x,null,l,L);for(P in l)L=l[P],N=a[P],!l.hasOwnProperty(P)||L===N||L==null&&N==null||Ge(e,t,P,L,l,N)}function yv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function V1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var s=a[l],f=s.transferSize,v=s.initiatorType,_=s.duration;if(f&&_&&yv(v)){for(v=0,_=s.responseEnd,l+=1;l<a.length;l++){var T=a[l],q=T.startTime;if(q>_)break;var G=T.transferSize,P=T.initiatorType;G&&yv(P)&&(T=T.responseEnd,v+=G*(T<_?1:(_-q)/(T-q)))}if(--l,t+=8*(f+v)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var yc=null,gc=null;function nu(e){return e.nodeType===9?e:e.ownerDocument}function gv(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function bv(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function bc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _c=null;function G1(){var e=window.event;return e&&e.type==="popstate"?e===_c?!1:(_c=e,!0):(_c=null,!1)}var _v=typeof setTimeout=="function"?setTimeout:void 0,B1=typeof clearTimeout=="function"?clearTimeout:void 0,Sv=typeof Promise=="function"?Promise:void 0,I1=typeof queueMicrotask=="function"?queueMicrotask:typeof Sv<"u"?function(e){return Sv.resolve(null).then(e).catch(P1)}:_v;function P1(e){setTimeout(function(){throw e})}function rr(e){return e==="head"}function Ev(e,t){var a=t,l=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(s),Oa(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Ai(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ai(a);for(var f=a.firstChild;f;){var v=f.nextSibling,_=f.nodeName;f[Ya]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&f.rel.toLowerCase()==="stylesheet"||a.removeChild(f),f=v}}else a==="body"&&Ai(e.ownerDocument.body);a=s}while(a);Oa(t)}function Tv(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Sc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Sc(a),Co(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function $1(e,t,a,l){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Ya])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=Ft(e.nextSibling),e===null)break}return null}function Y1(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Ft(e.nextSibling),e===null))return null;return e}function wv(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ft(e.nextSibling),e===null))return null;return e}function Ec(e){return e.data==="$?"||e.data==="$~"}function Tc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function k1(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Ft(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var wc=null;function Ov(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Ft(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Cv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Av(e,t,a){switch(t=nu(a),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Ai(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Co(e)}var Kt=new Map,xv=new Set;function ru(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Dn=K.d;K.d={f:F1,r:K1,D:X1,C:Q1,L:Z1,m:J1,X:eE,S:W1,M:tE};function F1(){var e=Dn.f(),t=Kl();return e||t}function K1(e){var t=$r(e);t!==null&&t.tag===5&&t.type==="form"?Yp(t):Dn.r(e)}var Ea=typeof document>"u"?null:document;function Mv(e,t,a){var l=Ea;if(l&&typeof t=="string"&&t){var s=Gt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),xv.has(s)||(xv.add(s),e={rel:e,crossOrigin:a,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),pt(t,"link",e),ot(t),l.head.appendChild(t)))}}function X1(e){Dn.D(e),Mv("dns-prefetch",e,null)}function Q1(e,t){Dn.C(e,t),Mv("preconnect",e,t)}function Z1(e,t,a){Dn.L(e,t,a);var l=Ea;if(l&&e&&t){var s='link[rel="preload"][as="'+Gt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+Gt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+Gt(a.imageSizes)+'"]')):s+='[href="'+Gt(e)+'"]';var f=s;switch(t){case"style":f=Ta(e);break;case"script":f=wa(e)}Kt.has(f)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Kt.set(f,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(xi(f))||t==="script"&&l.querySelector(Mi(f))||(t=l.createElement("link"),pt(t,"link",e),ot(t),l.head.appendChild(t)))}}function J1(e,t){Dn.m(e,t);var a=Ea;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Gt(l)+'"][href="'+Gt(e)+'"]',f=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=wa(e)}if(!Kt.has(f)&&(e=g({rel:"modulepreload",href:e},t),Kt.set(f,e),a.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Mi(f)))return}l=a.createElement("link"),pt(l,"link",e),ot(l),a.head.appendChild(l)}}}function W1(e,t,a){Dn.S(e,t,a);var l=Ea;if(l&&e){var s=Yr(l).hoistableStyles,f=Ta(e);t=t||"default";var v=s.get(f);if(!v){var _={loading:0,preload:null};if(v=l.querySelector(xi(f)))_.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Kt.get(f))&&Oc(e,a);var T=v=l.createElement("link");ot(T),pt(T,"link",e),T._p=new Promise(function(q,G){T.onload=q,T.onerror=G}),T.addEventListener("load",function(){_.loading|=1}),T.addEventListener("error",function(){_.loading|=2}),_.loading|=4,au(v,t,l)}v={type:"stylesheet",instance:v,count:1,state:_},s.set(f,v)}}}function eE(e,t){Dn.X(e,t);var a=Ea;if(a&&e){var l=Yr(a).hoistableScripts,s=wa(e),f=l.get(s);f||(f=a.querySelector(Mi(s)),f||(e=g({src:e,async:!0},t),(t=Kt.get(s))&&Cc(e,t),f=a.createElement("script"),ot(f),pt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(s,f))}}function tE(e,t){Dn.M(e,t);var a=Ea;if(a&&e){var l=Yr(a).hoistableScripts,s=wa(e),f=l.get(s);f||(f=a.querySelector(Mi(s)),f||(e=g({src:e,async:!0,type:"module"},t),(t=Kt.get(s))&&Cc(e,t),f=a.createElement("script"),ot(f),pt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(s,f))}}function Rv(e,t,a,l){var s=(s=ce.current)?ru(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ta(a.href),a=Yr(s).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ta(a.href);var f=Yr(s).hoistableStyles,v=f.get(e);if(v||(s=s.ownerDocument||s,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,v),(f=s.querySelector(xi(e)))&&!f._p&&(v.instance=f,v.state.loading=5),Kt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Kt.set(e,a),f||nE(s,e,a,v.state))),t&&l===null)throw Error(u(528,""));return v}if(t&&l!==null)throw Error(u(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wa(a),a=Yr(s).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Ta(e){return'href="'+Gt(e)+'"'}function xi(e){return'link[rel="stylesheet"]['+e+"]"}function Dv(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function nE(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),pt(t,"link",a),ot(t),e.head.appendChild(t))}function wa(e){return'[src="'+Gt(e)+'"]'}function Mi(e){return"script[async]"+e}function qv(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Gt(a.href)+'"]');if(l)return t.instance=l,ot(l),l;var s=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ot(l),pt(l,"style",s),au(l,a.precedence,e),t.instance=l;case"stylesheet":s=Ta(a.href);var f=e.querySelector(xi(s));if(f)return t.state.loading|=4,t.instance=f,ot(f),f;l=Dv(a),(s=Kt.get(s))&&Oc(l,s),f=(e.ownerDocument||e).createElement("link"),ot(f);var v=f;return v._p=new Promise(function(_,T){v.onload=_,v.onerror=T}),pt(f,"link",l),t.state.loading|=4,au(f,a.precedence,e),t.instance=f;case"script":return f=wa(a.src),(s=e.querySelector(Mi(f)))?(t.instance=s,ot(s),s):(l=a,(s=Kt.get(f))&&(l=g({},a),Cc(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),ot(s),pt(s,"link",l),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,au(l,a.precedence,e));return t.instance}function au(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,f=s,v=0;v<l.length;v++){var _=l[v];if(_.dataset.precedence===t)f=_;else if(f!==s)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Oc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Cc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var iu=null;function Lv(e,t,a){if(iu===null){var l=new Map,s=iu=new Map;s.set(a,l)}else s=iu,l=s.get(a),l||(l=new Map,s.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var f=a[s];if(!(f[Ya]||f[ct]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var v=f.getAttribute(t)||"";v=e+v;var _=l.get(v);_?_.push(f):l.set(v,[f])}}return l}function zv(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function rE(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Uv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function aE(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=Ta(l.href),f=t.querySelector(xi(s));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=f,ot(f);return}f=t.ownerDocument||t,l=Dv(l),(s=Kt.get(s))&&Oc(l,s),f=f.createElement("link"),ot(f);var v=f;v._p=new Promise(function(_,T){v.onload=_,v.onerror=T}),pt(f,"link",l),a.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=lu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Ac=0;function iE(e,t){return e.stylesheets&&e.count===0&&ou(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&ou(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Ac===0&&(Ac=62500*V1());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ou(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Ac?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function lu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ou(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var uu=null;function ou(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,uu=new Map,t.forEach(lE,e),uu=null,lu.call(e))}function lE(e,t){if(!(t.state.loading&4)){var a=uu.get(e);if(a)var l=a.get(null);else{a=new Map,uu.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<s.length;f++){var v=s[f];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(a.set(v.dataset.precedence,v),l=v)}l&&a.set(null,l)}s=t.instance,v=s.getAttribute("data-precedence"),f=a.get(v)||l,f===l&&a.set(null,s),a.set(v,s),this.count++,l=lu.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),f?f.parentNode.insertBefore(s,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Ri={$$typeof:B,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function uE(e,t,a,l,s,f,v,_,T){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Eo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Eo(0),this.hiddenUpdates=Eo(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=f,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Nv(e,t,a,l,s,f,v,_,T,q,G,P){return e=new uE(e,t,a,v,T,q,G,P,_),t=1,f===!0&&(t|=24),f=Dt(3,null,null,t),e.current=f,f.stateNode=e,t=ls(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:l,isDehydrated:a,cache:t},cs(f),e}function jv(e){return e?(e=ta,e):ta}function Hv(e,t,a,l,s,f){s=jv(s),l.context===null?l.context=s:l.pendingContext=s,l=kn(t),l.payload={element:a},f=f===void 0?null:f,f!==null&&(l.callback=f),a=Fn(e,l,t),a!==null&&(Ot(a,e,t),oi(a,e,t))}function Vv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function xc(e,t){Vv(e,t),(e=e.alternate)&&Vv(e,t)}function Gv(e){if(e.tag===13||e.tag===31){var t=gr(e,67108864);t!==null&&Ot(t,e,67108864),xc(e,67108864)}}function Bv(e){if(e.tag===13||e.tag===31){var t=Nt();t=To(t);var a=gr(e,t);a!==null&&Ot(a,e,t),xc(e,t)}}var su=!0;function oE(e,t,a,l){var s=U.T;U.T=null;var f=K.p;try{K.p=2,Mc(e,t,a,l)}finally{K.p=f,U.T=s}}function sE(e,t,a,l){var s=U.T;U.T=null;var f=K.p;try{K.p=8,Mc(e,t,a,l)}finally{K.p=f,U.T=s}}function Mc(e,t,a,l){if(su){var s=Rc(l);if(s===null)mc(e,t,l,cu,a),Pv(e,l);else if(fE(s,e,t,a,l))l.stopPropagation();else if(Pv(e,l),t&4&&-1<cE.indexOf(e)){for(;s!==null;){var f=$r(s);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var v=hr(f.pendingLanes);if(v!==0){var _=f;for(_.pendingLanes|=2,_.entangledLanes|=2;v;){var T=1<<31-Mt(v);_.entanglements[1]|=T,v&=~T}on(f),(De&6)===0&&(kl=At()+500,wi(0))}}break;case 31:case 13:_=gr(f,2),_!==null&&Ot(_,f,2),Kl(),xc(f,2)}if(f=Rc(l),f===null&&mc(e,t,l,cu,a),f===s)break;s=f}s!==null&&l.stopPropagation()}else mc(e,t,l,null,a)}}function Rc(e){return e=qo(e),Dc(e)}var cu=null;function Dc(e){if(cu=null,e=Pr(e),e!==null){var t=c(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return cu=e,null}function Iv(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(X0()){case Qd:return 2;case Zd:return 8;case Wi:case Q0:return 32;case Jd:return 268435456;default:return 32}default:return 32}}var qc=!1,ar=null,ir=null,lr=null,Di=new Map,qi=new Map,ur=[],cE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Pv(e,t){switch(e){case"focusin":case"focusout":ar=null;break;case"dragenter":case"dragleave":ir=null;break;case"mouseover":case"mouseout":lr=null;break;case"pointerover":case"pointerout":Di.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qi.delete(t.pointerId)}}function Li(e,t,a,l,s,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:f,targetContainers:[s]},t!==null&&(t=$r(t),t!==null&&Gv(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function fE(e,t,a,l,s){switch(t){case"focusin":return ar=Li(ar,e,t,a,l,s),!0;case"dragenter":return ir=Li(ir,e,t,a,l,s),!0;case"mouseover":return lr=Li(lr,e,t,a,l,s),!0;case"pointerover":var f=s.pointerId;return Di.set(f,Li(Di.get(f)||null,e,t,a,l,s)),!0;case"gotpointercapture":return f=s.pointerId,qi.set(f,Li(qi.get(f)||null,e,t,a,l,s)),!0}return!1}function $v(e){var t=Pr(e.target);if(t!==null){var a=c(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,ah(e.priority,function(){Bv(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,ah(e.priority,function(){Bv(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Rc(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Do=l,a.target.dispatchEvent(l),Do=null}else return t=$r(a),t!==null&&Gv(t),e.blockedOn=a,!1;t.shift()}return!0}function Yv(e,t,a){fu(e)&&a.delete(t)}function dE(){qc=!1,ar!==null&&fu(ar)&&(ar=null),ir!==null&&fu(ir)&&(ir=null),lr!==null&&fu(lr)&&(lr=null),Di.forEach(Yv),qi.forEach(Yv)}function du(e,t){e.blockedOn===t&&(e.blockedOn=null,qc||(qc=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,dE)))}var hu=null;function kv(e){hu!==e&&(hu=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){hu===e&&(hu=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(Dc(l||a)===null)continue;break}var f=$r(a);f!==null&&(e.splice(t,3),t-=3,Rs(f,{pending:!0,data:s,method:a.method,action:l},l,s))}}))}function Oa(e){function t(T){return du(T,e)}ar!==null&&du(ar,e),ir!==null&&du(ir,e),lr!==null&&du(lr,e),Di.forEach(t),qi.forEach(t);for(var a=0;a<ur.length;a++){var l=ur[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ur.length&&(a=ur[0],a.blockedOn===null);)$v(a),a.blockedOn===null&&ur.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var s=a[l],f=a[l+1],v=s[bt]||null;if(typeof f=="function")v||kv(a);else if(v){var _=null;if(f&&f.hasAttribute("formAction")){if(s=f,v=f[bt]||null)_=v.formAction;else if(Dc(s)!==null)continue}else _=v.action;typeof _=="function"?a[l+1]=_:(a.splice(l,3),l-=3),kv(a)}}}function Fv(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(v){return s=v})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Lc(e){this._internalRoot=e}pu.prototype.render=Lc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,l=Nt();Hv(a,l,e,t,null,null)},pu.prototype.unmount=Lc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Hv(e.current,2,null,e,null,null),Kl(),t[Ir]=null}};function pu(e){this._internalRoot=e}pu.prototype.unstable_scheduleHydration=function(e){if(e){var t=rh();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ur.length&&t!==0&&t<ur[a].priority;a++);ur.splice(a,0,e),a===0&&$v(e)}};var Kv=n.version;if(Kv!=="19.2.4")throw Error(u(527,Kv,"19.2.4"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=p(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var hE={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mu.isDisabled&&mu.supportsFiber)try{Ia=mu.inject(hE),xt=mu}catch{}}return Hi.createRoot=function(e,t){if(!o(e))throw Error(u(299));var a=!1,l="",s=tm,f=nm,v=rm;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError)),t=Nv(e,1,!1,null,null,a,l,null,s,f,v,Fv),e[Ir]=t.current,pc(e),new Lc(t)},Hi.hydrateRoot=function(e,t,a){if(!o(e))throw Error(u(299));var l=!1,s="",f=tm,v=nm,_=rm,T=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError),a.formState!==void 0&&(T=a.formState)),t=Nv(e,1,!0,t,a??null,l,s,T,f,v,_,Fv),t.context=jv(null),a=t.current,l=Nt(),l=To(l),s=kn(l),s.callback=null,Fn(a,s,l),a=l,t.current.lanes=a,$a(t,a),on(t),e[Ir]=t.current,pc(e),new pu(t)},Hi.version="19.2.4",Hi}var eg;function N2(){if(eg)return Jc.exports;eg=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(n){console.error(n)}}return r(),Jc.exports=U2(),Jc.exports}var j2=N2();const __=document.getElementById("root");if(!__)throw new Error('Root container element "#root" was not found');const H2=j2.createRoot(__);function V2(r){H2.render(Fe.jsx($.StrictMode,{children:r}))}var tf,tg;function Id(){if(tg)return tf;tg=1;var r=Array.isArray;return tf=r,tf}var nf,ng;function G2(){if(ng)return nf;ng=1;var r=typeof vu=="object"&&vu&&vu.Object===Object&&vu;return nf=r,nf}var rf,rg;function Pd(){if(rg)return rf;rg=1;var r=G2(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=r||n||Function("return this")();return rf=i,rf}var af,ag;function $d(){if(ag)return af;ag=1;var r=Pd(),n=r.Symbol;return af=n,af}var lf,ig;function B2(){if(ig)return lf;ig=1;var r=$d(),n=Object.prototype,i=n.hasOwnProperty,u=n.toString,o=r?r.toStringTag:void 0;function c(d){var m=i.call(d,o),h=d[o];try{d[o]=void 0;var p=!0}catch{}var y=u.call(d);return p&&(m?d[o]=h:delete d[o]),y}return lf=c,lf}var uf,lg;function I2(){if(lg)return uf;lg=1;var r=Object.prototype,n=r.toString;function i(u){return n.call(u)}return uf=i,uf}var of,ug;function S_(){if(ug)return of;ug=1;var r=$d(),n=B2(),i=I2(),u="[object Null]",o="[object Undefined]",c=r?r.toStringTag:void 0;function d(m){return m==null?m===void 0?o:u:c&&c in Object(m)?n(m):i(m)}return of=d,of}var sf,og;function P2(){if(og)return sf;og=1;function r(n){return n!=null&&typeof n=="object"}return sf=r,sf}var cf,sg;function Yd(){if(sg)return cf;sg=1;var r=S_(),n=P2(),i="[object Symbol]";function u(o){return typeof o=="symbol"||n(o)&&r(o)==i}return cf=u,cf}var ff,cg;function $2(){if(cg)return ff;cg=1;var r=Id(),n=Yd(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;function o(c,d){if(r(c))return!1;var m=typeof c;return m=="number"||m=="symbol"||m=="boolean"||c==null||n(c)?!0:u.test(c)||!i.test(c)||d!=null&&c in Object(d)}return ff=o,ff}var df,fg;function E_(){if(fg)return df;fg=1;function r(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}return df=r,df}var hf,dg;function Y2(){if(dg)return hf;dg=1;var r=S_(),n=E_(),i="[object AsyncFunction]",u="[object Function]",o="[object GeneratorFunction]",c="[object Proxy]";function d(m){if(!n(m))return!1;var h=r(m);return h==u||h==o||h==i||h==c}return hf=d,hf}var pf,hg;function k2(){if(hg)return pf;hg=1;var r=Pd(),n=r["__core-js_shared__"];return pf=n,pf}var mf,pg;function F2(){if(pg)return mf;pg=1;var r=k2(),n=(function(){var u=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""})();function i(u){return!!n&&n in u}return mf=i,mf}var vf,mg;function K2(){if(mg)return vf;mg=1;var r=Function.prototype,n=r.toString;function i(u){if(u!=null){try{return n.call(u)}catch{}try{return u+""}catch{}}return""}return vf=i,vf}var yf,vg;function X2(){if(vg)return yf;vg=1;var r=Y2(),n=F2(),i=E_(),u=K2(),o=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,d=Function.prototype,m=Object.prototype,h=d.toString,p=m.hasOwnProperty,y=RegExp("^"+h.call(p).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(b){if(!i(b)||n(b))return!1;var S=r(b)?y:c;return S.test(u(b))}return yf=g,yf}var gf,yg;function Q2(){if(yg)return gf;yg=1;function r(n,i){return n?.[i]}return gf=r,gf}var bf,gg;function T_(){if(gg)return bf;gg=1;var r=X2(),n=Q2();function i(u,o){var c=n(u,o);return r(c)?c:void 0}return bf=i,bf}var _f,bg;function ho(){if(bg)return _f;bg=1;var r=T_(),n=r(Object,"create");return _f=n,_f}var Sf,_g;function Z2(){if(_g)return Sf;_g=1;var r=ho();function n(){this.__data__=r?r(null):{},this.size=0}return Sf=n,Sf}var Ef,Sg;function J2(){if(Sg)return Ef;Sg=1;function r(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}return Ef=r,Ef}var Tf,Eg;function W2(){if(Eg)return Tf;Eg=1;var r=ho(),n="__lodash_hash_undefined__",i=Object.prototype,u=i.hasOwnProperty;function o(c){var d=this.__data__;if(r){var m=d[c];return m===n?void 0:m}return u.call(d,c)?d[c]:void 0}return Tf=o,Tf}var wf,Tg;function ex(){if(Tg)return wf;Tg=1;var r=ho(),n=Object.prototype,i=n.hasOwnProperty;function u(o){var c=this.__data__;return r?c[o]!==void 0:i.call(c,o)}return wf=u,wf}var Of,wg;function tx(){if(wg)return Of;wg=1;var r=ho(),n="__lodash_hash_undefined__";function i(u,o){var c=this.__data__;return this.size+=this.has(u)?0:1,c[u]=r&&o===void 0?n:o,this}return Of=i,Of}var Cf,Og;function nx(){if(Og)return Cf;Og=1;var r=Z2(),n=J2(),i=W2(),u=ex(),o=tx();function c(d){var m=-1,h=d==null?0:d.length;for(this.clear();++m<h;){var p=d[m];this.set(p[0],p[1])}}return c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=u,c.prototype.set=o,Cf=c,Cf}var Af,Cg;function rx(){if(Cg)return Af;Cg=1;function r(){this.__data__=[],this.size=0}return Af=r,Af}var xf,Ag;function ax(){if(Ag)return xf;Ag=1;function r(n,i){return n===i||n!==n&&i!==i}return xf=r,xf}var Mf,xg;function po(){if(xg)return Mf;xg=1;var r=ax();function n(i,u){for(var o=i.length;o--;)if(r(i[o][0],u))return o;return-1}return Mf=n,Mf}var Rf,Mg;function ix(){if(Mg)return Rf;Mg=1;var r=po(),n=Array.prototype,i=n.splice;function u(o){var c=this.__data__,d=r(c,o);if(d<0)return!1;var m=c.length-1;return d==m?c.pop():i.call(c,d,1),--this.size,!0}return Rf=u,Rf}var Df,Rg;function lx(){if(Rg)return Df;Rg=1;var r=po();function n(i){var u=this.__data__,o=r(u,i);return o<0?void 0:u[o][1]}return Df=n,Df}var qf,Dg;function ux(){if(Dg)return qf;Dg=1;var r=po();function n(i){return r(this.__data__,i)>-1}return qf=n,qf}var Lf,qg;function ox(){if(qg)return Lf;qg=1;var r=po();function n(i,u){var o=this.__data__,c=r(o,i);return c<0?(++this.size,o.push([i,u])):o[c][1]=u,this}return Lf=n,Lf}var zf,Lg;function sx(){if(Lg)return zf;Lg=1;var r=rx(),n=ix(),i=lx(),u=ux(),o=ox();function c(d){var m=-1,h=d==null?0:d.length;for(this.clear();++m<h;){var p=d[m];this.set(p[0],p[1])}}return c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=u,c.prototype.set=o,zf=c,zf}var Uf,zg;function cx(){if(zg)return Uf;zg=1;var r=T_(),n=Pd(),i=r(n,"Map");return Uf=i,Uf}var Nf,Ug;function fx(){if(Ug)return Nf;Ug=1;var r=nx(),n=sx(),i=cx();function u(){this.size=0,this.__data__={hash:new r,map:new(i||n),string:new r}}return Nf=u,Nf}var jf,Ng;function dx(){if(Ng)return jf;Ng=1;function r(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}return jf=r,jf}var Hf,jg;function mo(){if(jg)return Hf;jg=1;var r=dx();function n(i,u){var o=i.__data__;return r(u)?o[typeof u=="string"?"string":"hash"]:o.map}return Hf=n,Hf}var Vf,Hg;function hx(){if(Hg)return Vf;Hg=1;var r=mo();function n(i){var u=r(this,i).delete(i);return this.size-=u?1:0,u}return Vf=n,Vf}var Gf,Vg;function px(){if(Vg)return Gf;Vg=1;var r=mo();function n(i){return r(this,i).get(i)}return Gf=n,Gf}var Bf,Gg;function mx(){if(Gg)return Bf;Gg=1;var r=mo();function n(i){return r(this,i).has(i)}return Bf=n,Bf}var If,Bg;function vx(){if(Bg)return If;Bg=1;var r=mo();function n(i,u){var o=r(this,i),c=o.size;return o.set(i,u),this.size+=o.size==c?0:1,this}return If=n,If}var Pf,Ig;function yx(){if(Ig)return Pf;Ig=1;var r=fx(),n=hx(),i=px(),u=mx(),o=vx();function c(d){var m=-1,h=d==null?0:d.length;for(this.clear();++m<h;){var p=d[m];this.set(p[0],p[1])}}return c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=u,c.prototype.set=o,Pf=c,Pf}var $f,Pg;function gx(){if(Pg)return $f;Pg=1;var r=yx(),n="Expected a function";function i(u,o){if(typeof u!="function"||o!=null&&typeof o!="function")throw new TypeError(n);var c=function(){var d=arguments,m=o?o.apply(this,d):d[0],h=c.cache;if(h.has(m))return h.get(m);var p=u.apply(this,d);return c.cache=h.set(m,p)||h,p};return c.cache=new(i.Cache||r),c}return i.Cache=r,$f=i,$f}var Yf,$g;function bx(){if($g)return Yf;$g=1;var r=gx(),n=500;function i(u){var o=r(u,function(d){return c.size===n&&c.clear(),d}),c=o.cache;return o}return Yf=i,Yf}var kf,Yg;function _x(){if(Yg)return kf;Yg=1;var r=bx(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,u=r(function(o){var c=[];return o.charCodeAt(0)===46&&c.push(""),o.replace(n,function(d,m,h,p){c.push(h?p.replace(i,"$1"):m||d)}),c});return kf=u,kf}var Ff,kg;function Sx(){if(kg)return Ff;kg=1;function r(n,i){for(var u=-1,o=n==null?0:n.length,c=Array(o);++u<o;)c[u]=i(n[u],u,n);return c}return Ff=r,Ff}var Kf,Fg;function Ex(){if(Fg)return Kf;Fg=1;var r=$d(),n=Sx(),i=Id(),u=Yd(),o=r?r.prototype:void 0,c=o?o.toString:void 0;function d(m){if(typeof m=="string")return m;if(i(m))return n(m,d)+"";if(u(m))return c?c.call(m):"";var h=m+"";return h=="0"&&1/m==-1/0?"-0":h}return Kf=d,Kf}var Xf,Kg;function Tx(){if(Kg)return Xf;Kg=1;var r=Ex();function n(i){return i==null?"":r(i)}return Xf=n,Xf}var Qf,Xg;function wx(){if(Xg)return Qf;Xg=1;var r=Id(),n=$2(),i=_x(),u=Tx();function o(c,d){return r(c)?c:n(c,d)?[c]:i(u(c))}return Qf=o,Qf}var Zf,Qg;function Ox(){if(Qg)return Zf;Qg=1;var r=Yd();function n(i){if(typeof i=="string"||r(i))return i;var u=i+"";return u=="0"&&1/i==-1/0?"-0":u}return Zf=n,Zf}var Jf,Zg;function Cx(){if(Zg)return Jf;Zg=1;var r=wx(),n=Ox();function i(u,o){o=r(o,u);for(var c=0,d=o.length;u!=null&&c<d;)u=u[n(o[c++])];return c&&c==d?u:void 0}return Jf=i,Jf}var Wf,Jg;function Ax(){if(Jg)return Wf;Jg=1;var r=Cx();function n(i,u,o){var c=i==null?void 0:r(i,u);return c===void 0?o:c}return Wf=n,Wf}var xx=Ax();const w_=ro(xx);function O_(r){return typeof r=="object"&&!!r&&"data"in r}function Mx(r){return typeof r=="object"&&!!r&&"included"in r}function nn({__itemTypeId:r,id:n,type:i,attributes:u,relationships:o,meta:c}){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r?{__itemTypeId:r}:{}),n?{id:n}:{}),i?{type:i}:{}),u||{}),o?Object.fromEntries(Object.entries(o).map(([d,m])=>[d,m?.data])):{}),c?{meta:c}:{})}function A(r){if(!O_(r))throw new Error("Invalid body!");return Array.isArray(r.data)?r.data.map(nn):nn(r.data)}function C_(r){return!!(r&&typeof r=="object"&&"type"in r&&r.type==="item")}function Ed(r){if(Array.isArray(r))return r.map(Ed);if(r&&typeof r=="object"){if(C_(r))return Ii(r);const n={};for(const[i,u]of Object.entries(r))n[i]=Ed(u);return n}return r}function Ii(r){if(!C_(r))return r;const n=r.attributes?Ed(r.attributes):r.attributes;return Object.assign(Object.assign({},r),{attributes:n,__itemTypeId:r.relationships.item_type.data.id})}function Zt(r){if(!O_(r))throw new Error("Invalid body!");let n;Array.isArray(r.data)?n=r.data.map(Ii):n=Ii(r.data);let i;return Mx(r)&&(i=r.included.map(Ii)),Object.assign(Object.assign(Object.assign({},r),{data:n}),i?{included:i}:{})}function Rx(r){if(typeof r!="object"||r===null||!("data"in r))return!1;const n=r;if(!Array.isArray(n.data))return!1;const i=n;if(i.data.length===0)return!1;const u=i.data[0];return!(typeof u!="object"||u===null||!("id"in u)||!("type"in u)||!("attributes"in u)||u.type!=="api_error")}class Dx extends Error{constructor(n){super("API Error!"),Object.setPrototypeOf(this,new.target.prototype),"captureStackTrace"in Error?Error.captureStackTrace(this,jr):this.stack=new Error().stack,this.request=n.request,this.preCallStack=n.preCallStack,this.message=`${n.request.method} ${n.request.url}: Timeout error`,this.preCallStack&&(this.stack+=`
|
|
15
|
+
Caused By:
|
|
16
|
+
${this.preCallStack}`)}}class jr extends Error{constructor(n){super("API Error!"),Object.setPrototypeOf(this,new.target.prototype),"captureStackTrace"in Error?Error.captureStackTrace(this,jr):this.stack=new Error().stack,this.request=n.request,this.response=n.response,this.preCallStack=n.preCallStack;let i=`${n.request.method} ${n.request.url}: ${this.response.status} ${this.response.statusText}`;this.errors.length>0&&(i+=`
|
|
17
|
+
|
|
18
|
+
${JSON.stringify(this.errors,null,2)}`),this.message=i,this.preCallStack&&(this.stack+=`
|
|
19
|
+
Caused By:
|
|
20
|
+
${this.preCallStack}`)}get errors(){return Rx(this.response.body)?this.response.body.data:[]}findError(n,i){const u=Array.isArray(n)?n:[n];return this.errors.find(o=>u.includes(o.attributes.code)&&(!i||(typeof i=="function"?i(o.attributes.details):Object.entries(i).every(([c,d])=>o.attributes.details[c]===d))))}}class Fi extends Error{constructor(){super("Promise canceled!"),Object.setPrototypeOf(this,new.target.prototype)}}function Ki(r,n){let i=null;const u=new Promise((o,c)=>{i=()=>{try{n&&n(),c(new Fi)}catch(m){c(m)}},(typeof r=="function"?r():r).then(o,c)});return i&&(u.cancel=i),u}function Vu(r){return new Promise(n=>{setTimeout(n,r)})}var qx=function(r,n,i,u){function o(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function m(y){try{p(u.next(y))}catch(g){d(g)}}function h(y){try{p(u.throw(y))}catch(g){d(g)}}function p(y){y.done?c(y.value):o(y.value).then(m,h)}p((u=u.apply(r,n||[])).next())})};function Lx(r){return qx(this,void 0,void 0,function*(){let n,i=0;do try{i+=1,yield Vu(i*1e3),n=yield r()}catch(u){if(!(u instanceof jr)||u.response.status!==404)throw u}while(!n);return n})}var Vi={},cr={},ed={},Wg;function A_(){return Wg||(Wg=1,(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.TaskCollisionStrategy=void 0,(function(n){n[n.DEFAULT=0]="DEFAULT",n[n.KEEP_THIS=1]="KEEP_THIS",n[n.KEEP_OTHER=2]="KEEP_OTHER",n[n.KEEP_BOTH=3]="KEEP_BOTH",n[n.RESOLVE_THIS=4]="RESOLVE_THIS",n[n.RESOLVE_OTHER=5]="RESOLVE_OTHER"})(r.TaskCollisionStrategy||(r.TaskCollisionStrategy={}))})(ed)),ed}var Ru={},eb;function x_(){if(eb)return Ru;eb=1,Object.defineProperty(Ru,"__esModule",{value:!0});let r=class{constructor(i,u){this._code=i,this._message=u}get code(){return this._code}get message(){return this._message}};return Ru.default=r,Ru}var Ur={},tb;function M_(){if(tb)return Ur;tb=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.mutexEquality=Ur.mutexBitwiseAnd=void 0;function r(i,u){return(i&u)!==0}Ur.mutexBitwiseAnd=r;function n(i,u){return i===u}return Ur.mutexEquality=n,Ur}var Du={},nb;function zx(){if(nb)return Du;nb=1,Object.defineProperty(Du,"__esModule",{value:!0});let r=class{constructor(i,u){this._meta=void 0,this._task=i,this._scheduler=u}withDescriptor(i){return this._descriptor=i,this}withMutex(i){return this._mutex=i,this}withMeta(i){return this._meta=i,this}runBeforeExecuting(i){return this._onPreExecute=i,this}handleCollisions(i){return this._onTaskCollision=i,this}execute(i){return this._scheduler.enqueue({priority:i,mutex:this._mutex,descriptor:this._descriptor,meta:this._meta,execute:this._task,onPreExecute:this._onPreExecute,onTaskCollision:this._onTaskCollision})}};return Du.default=r,Du}var rb;function Ux(){if(rb)return cr;rb=1;var r=cr&&cr.__awaiter||function(p,y,g,b){function S(E){return E instanceof g?E:new g(function(w){w(E)})}return new(g||(g=Promise))(function(E,w){function M(B){try{k(b.next(B))}catch(Y){w(Y)}}function R(B){try{k(b.throw(B))}catch(Y){w(Y)}}function k(B){B.done?E(B.value):S(B.value).then(M,R)}k((b=b.apply(p,y||[])).next())})},n=cr&&cr.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(cr,"__esModule",{value:!0});const i=A_(),u=n(x_()),o=M_(),c=n(zx());var d;(function(p){p[p.PENDING=0]="PENDING",p[p.EXECUTING=1]="EXECUTING",p[p.TERMINATED=2]="TERMINATED"})(d||(d={}));function m(p,y){for(let g of p.listeners)g.reject(y)}let h=class{constructor(y,g={}){this._queue=[],this._isExecuting=!1,this._idleListeners=[],this._maxConcurrentTasks=y,this._samePriorityMutex=!!g.samePriorityMutex,this._mutexStrategy=g.mutexStrategy||o.mutexEquality,g.disableLogging?this._errorLog=()=>{}:this._errorLog=console.error}enqueue(y){return new Promise((g,b)=>{typeof y=="function"&&(y={priority:0,execute:y});const S=this._checkMutexes(y,g,b);S.task?this._addTask(S.task):S.canceled&&b(this.createCanceledError())})}prepare(y){return new c.default(y,this)}_addTask(y){this._queue.push(y),this._applyPriorities(),this._isExecuting||(this._isExecuting=!0,setTimeout(this._executeNextTasks.bind(this)))}get executingTasks(){return this._queue.reduce((y,g)=>g.state===d.EXECUTING?y+1:y,0)}createCanceledError(){return new u.default(50,"Task has been canceled in favor of another task")}_findFirstPendingTask(){return this._queue.find(y=>y.state===d.PENDING)}_isIdle(){return this._queue.length===0||!this._queue.find(y=>y.state!==d.TERMINATED)}_removeTaskAt(y){this._queue.splice(y,1)}_executeTask(y){return r(this,void 0,void 0,function*(){try{return y.task.onPreExecute&&y.task.onPreExecute(),yield y.task.execute()}catch(g){throw g}finally{y.state=d.TERMINATED;let g=this._queue.indexOf(y);this._removeTaskAt(g),this._executeNextTasks()}})}_executeNextTasks(){let y=this.executingTasks;if(y>=this._maxConcurrentTasks)return;let g=this._maxConcurrentTasks-y;for(let b=0;b<g;b++){const S=this._findFirstPendingTask();if(!S){this._isIdle()&&this._switchToIdle();return}S.state=d.EXECUTING,this._executeTask(S).then(E=>{for(const{resolve:w}of S.listeners)try{w(E)}catch(M){this._errorLog("An error occurred while resolving listener",M)}}).catch(E=>{for(const{reject:w}of S.listeners)try{w(E)}catch(M){this._errorLog("An error occurred while rejecting listener",M)}})}}_switchToIdle(){this._isExecuting=!1;const y=this._idleListeners;this._idleListeners=[];for(const{resolve:g}of y)try{g()}catch{}}waitForIdle(){return this._isExecuting?new Promise((y,g)=>{this._idleListeners.push({resolve:y,reject:g})}):Promise.resolve()}_applyPriorities(){this._queue.sort((y,g)=>g.task.priority-y.task.priority)}_checkMutexes(y,g,b){for(let S=0;S<this._queue.length;S++){let E=this._queue[S];if(E.state===d.TERMINATED||this._samePriorityMutex&&E.task.priority!=y.priority||!E.task.mutex||!y.mutex||!this._mutexStrategy(E.task.mutex,y.mutex))continue;let w,M;if(E.task.onTaskCollision)if(w=E.task.onTaskCollision(y),w===i.TaskCollisionStrategy.KEEP_OTHER&&E.state!==d.EXECUTING){this._removeTaskAt(S--),m(E,this.createCanceledError());continue}else{if(w===i.TaskCollisionStrategy.KEEP_THIS)return{canceled:!0};if(w===i.TaskCollisionStrategy.RESOLVE_OTHER)return this._removeTaskAt(S--),{canceled:!1,task:{task:y,state:d.PENDING,listeners:[{resolve:g,reject:b},...E.listeners]}};if(w===i.TaskCollisionStrategy.RESOLVE_THIS)return E.listeners=[...E.listeners,{resolve:g,reject:b}],{canceled:!1}}if(y.onTaskCollision){if(M=y.onTaskCollision(E.task),M===i.TaskCollisionStrategy.KEEP_OTHER)return{canceled:!0};if(M===i.TaskCollisionStrategy.KEEP_THIS){this._removeTaskAt(S--),m(E,this.createCanceledError());continue}else{if(M===i.TaskCollisionStrategy.RESOLVE_OTHER)return E.listeners=[...E.listeners,{resolve:g,reject:b}],{canceled:!1};if(M===i.TaskCollisionStrategy.RESOLVE_THIS)return this._removeTaskAt(S--),{canceled:!1,task:{task:y,state:d.PENDING,listeners:[{resolve:g,reject:b},...E.listeners]}}}}if(!(w===i.TaskCollisionStrategy.KEEP_BOTH&&M===i.TaskCollisionStrategy.KEEP_BOTH))return{canceled:!0}}return{canceled:!1,task:{task:y,state:d.PENDING,listeners:[{resolve:g,reject:b}]}}}};return cr.default=h,cr}var ab;function Nx(){return ab||(ab=1,(function(r){var n=Vi&&Vi.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(r,"__esModule",{value:!0}),r.mutexEquality=r.mutexBitwiseAnd=r.SchedulerError=r.TaskCollisionStrategy=r.Scheduler=void 0;const i=n(Ux());r.Scheduler=i.default;const u=A_();Object.defineProperty(r,"TaskCollisionStrategy",{enumerable:!0,get:function(){return u.TaskCollisionStrategy}});const o=n(x_());r.SchedulerError=o.default;const c=M_();Object.defineProperty(r,"mutexBitwiseAnd",{enumerable:!0,get:function(){return c.mutexBitwiseAnd}}),Object.defineProperty(r,"mutexEquality",{enumerable:!0,get:function(){return c.mutexEquality}})})(Vi)),Vi}var jx=Nx(),Nr=function(r){return this instanceof Nr?(this.v=r,this):new Nr(r)},Hx=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(E,w){c.push([b,S,E,w])>1||m(b,S)})})}function m(b,S){try{h(u[b](S))}catch(E){g(c[0][3],E)}}function h(b){b.value instanceof Nr?Promise.resolve(b.value.v).then(p,y):g(c[0][2],b)}function p(b){m("next",b)}function y(b){m("throw",b)}function g(b,S){b(S),c.shift(),c.length&&m(c[0][0],c[0][1])}};function Nn(r,n,i,u){return Hx(this,arguments,function*(){const c=i?.perPage||r.defaultLimit;if(c>r.maxLimit)throw new Error(`perPage option cannot exceed maximum value of ${r.maxLimit}`);const d=i?.concurrency||1;if(d>10)throw new Error("concurrency option cannot exceed maximum value of 10");const m=yield Nr(n({limit:c,offset:0}));for(const g of m.data)yield yield Nr(g);const h=m.meta.total_count,p=new jx.Scheduler(d),y=[];for(let g=c;g<h;g+=c)y.push(p.enqueue(()=>n({limit:c,offset:g})));for(;y.length>0;){const g=yield Nr(y.shift());for(const b of g.data)yield yield Nr(u?Ii(b):b)}})}function jn(r){r&&"page"in r&&console.warn("Passing a `page` query param on paged iterators has no effect: use the `perPage` option instead.")}const R_="__ARRAY_INDEX__";function Vx(r){return r.reduce((n,i,u)=>u===0?i:i===R_?`${n}[]`:`${n}[${i}]`,"")}function Gx(r){if(typeof r=="number"||typeof r=="string")return r.toString();if(r===!0)return"true";if(r===!1)return"false";throw`Don't know how to serialize param value ${JSON.stringify(r)}`}function Td(r,n=[]){const i=[];if(typeof r=="number"||typeof r=="string"||typeof r=="boolean")i.push([Vx(n),Gx(r)]);else if(typeof r=="object"){if(Array.isArray(r))for(const u of r)for(const o of Td(u,[...n,R_]))i.push(o);else if(r)for(const[u,o]of Object.entries(r))for(const c of Td(o,[...n,u]))i.push(c)}return i}var Bx=function(r,n,i,u){function o(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function m(y){try{p(u.next(y))}catch(g){d(g)}}function h(y){try{p(u.throw(y))}catch(g){d(g)}}function p(y){y.done?c(y.value):o(y.value).then(m,h)}p((u=u.apply(r,n||[])).next())})};const Ix=typeof window<"u"&&typeof window.document<"u",Px=5;var Qt;(function(r){r[r.NONE=0]="NONE",r[r.BASIC=1]="BASIC",r[r.BODY=2]="BODY",r[r.BODY_AND_HEADERS=3]="BODY_AND_HEADERS"})(Qt||(Qt={}));function $x(r){const n={};return r.forEach((i,u)=>{n[u]=i}),n}function ib(r,n,i,u,o,c,d){return{request:{url:n,method:r,headers:i,body:u},response:{status:o.status,statusText:o.statusText,headers:$x(o.headers),body:c},preCallStack:d}}function Yx(r,n,i,u,o){return{request:{url:n,method:r,headers:i,body:u},preCallStack:o}}function kx(r,n,i,u,o,c,d){return{request:{url:n,method:r,headers:i,body:u},response:{status:o,statusText:"N/A",headers:{},body:c},preCallStack:d}}function Fx(r){return typeof r=="object"&&!!r&&"code"in r}function Kx(r){return Object.fromEntries(Object.entries(r).map(([n,i])=>[n.toLowerCase(),i]))}let lb=1;function Xx(r){const n=r||(typeof fetch>"u"?void 0:fetch)||(typeof globalThis>"u"?void 0:globalThis.fetch);if(typeof n>"u")throw new Error("fetch() is not available: either polyfill it globally, or provide it as fetchFn option.");return n}function Gu(r){var n;return Bx(this,void 0,void 0,function*(){const i=lb;lb+=1;const u=Xx(r.fetchFn),o=r.preCallStack,c=r.userAgent||"@datocms/rest-client-utils",d=r.retryCount||1,m=r.logLevel||Qt.NONE,h="autoRetry"in r?r.autoRetry:!0,p=r.logFn||(()=>!0),y=Object.assign({"content-type":"application/json",accept:"application/json",authorization:`Bearer ${r.apiToken}`,"user-agent":c},r.extraHeaders?Kx(r.extraHeaders):{});Ix&&delete y["user-agent"];const g=r.baseUrl.replace(/\/$/,""),b=r.body?JSON.stringify(r.body,null,2):void 0,S=r.queryParams&&Object.keys(r.queryParams).length>0?`?${new URLSearchParams(Td(r.queryParams)).toString()}`:"",E=`${g}${r.url}${S}`;if(m>=Qt.BASIC){if(p(`[${i}] ${r.method} ${E}`),m>=Qt.BODY_AND_HEADERS)for(const[w,M]of Object.entries(y||{}))p(`[${i}] ${w}: ${M}`);m>=Qt.BODY&&b&&p(`[${i}] ${b}`)}try{const w=Ki(u(E,{method:r.method,headers:y,body:b})),M=setTimeout(()=>{w.cancel()},r.requestTimeout||3e4),R=yield w;clearTimeout(M);const k=R.headers.get("Content-Type"),B=k&&!k.includes("application/json");if(R.status===429||B){if(!h||B&&r.method!=="GET")throw new jr(ib(r.method,E,y,r.body,R,void 0,o));const j=R.headers.has("X-RateLimit-Reset")?Number.parseInt(R.headers.get("X-RateLimit-Reset"),10):d;return m>=Qt.BASIC&&(R.status===429?p(`[${i}] Rate limit exceeded, wait ${j} seconds then retry...`):p(`[${i}] Invalid response content type "${k}" (status ${R.status}). Wait ${j} seconds then retry...`)),yield Vu(j*1e3),Gu(Object.assign(Object.assign({},r),{retryCount:d+1}))}if(m>=Qt.BASIC&&(p(`[${i}] Status: ${R.status} (${R.statusText})`),m>=Qt.BODY_AND_HEADERS))for(const j of["x-api-version","x-environment","x-queue-time","x-ratelimit-remaining","x-request-id","cf-ray"]){const Q=R.headers.get(j);Q&&p(`[${i}] ${j}: ${Q}`)}let Y=R.status===204?void 0:yield R.json();if(m>=Qt.BODY&&Y&&p(`[${i}] ${JSON.stringify(Y,null,2)}`),R.status===202){const j=yield r.fetchJobResult(Y.data.id);if(j.status<200||j.status>=300)throw new jr(kx(r.method,E,y,r.body,j.status,j.payload,o));Y=j.payload}if(R.status>=200&&R.status<300)return Y;const z=new jr(ib(r.method,E,y,r.body,R,Y,o)),F=(n=z.errors.find(j=>j.attributes.transient))===null||n===void 0?void 0:n.attributes.code;if(h&&F)return m>=Qt.BASIC&&p(`[${i}] ${F}, wait ${d} seconds then retry...`),yield Vu(d*1e3),Gu(Object.assign(Object.assign({},r),{retryCount:d+1}));throw z}catch(w){if(w instanceof Fi||Fx(w)&&w.code.includes("ETIMEDOUT")){if(h&&d<Px)return m>=Qt.BASIC&&p(`[${i}] Timeout error, wait ${d} seconds then retry...`),yield Vu(d*1e3),Gu(Object.assign(Object.assign({},r),{retryCount:d+1}));throw new Dx(Yx(r.method,E,y,r.body,o))}throw w}})}var D_=function(r,n){var i={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&n.indexOf(u)<0&&(i[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(r);o<u.length;o++)n.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(r,u[o])&&(i[u[o]]=r[u[o]]);return i};function Bu(r){return typeof r=="object"&&!!r&&"id"in r&&"type"in r}function td(r){return Array.isArray(r)&&r.every(Bu)}function J(r,n){if(typeof r!="object"||!r)throw new Error("Invalid body!");if(Array.isArray(r))return{data:r.map(p=>{var y;return(y=J(p,n))===null||y===void 0?void 0:y.data})};const i=r,{id:u,type:o,meta:c}=i,d=D_(i,["id","type","meta"]),m={},h={};if(n.attributes==="*")for(const[p,y]of Object.entries(d))if(n.relationships.includes(p))if(Bu(y)){const{id:g,type:b}=y;h[p]={data:{id:g,type:b}}}else td(y)?h[p]={data:y.map(({id:g,type:b})=>({id:g,type:b}))}:h[p]={data:null};else m[p]=y;else if(n.relationships==="*")for(const[p,y]of Object.entries(d))if(n.attributes.includes(p))m[p]=y;else if(Bu(y)){const{id:g,type:b}=y;h[p]={data:{id:g,type:b}}}else td(y)?h[p]={data:y.map(({id:g,type:b})=>({id:g,type:b}))}:h[p]={data:null};else{for(const[p,y]of Object.entries(d))if(n.attributes.includes(p))m[p]=y;else if(n.relationships.includes(p))if(Bu(y)){const{id:g,type:b}=y;h[p]={data:{id:g,type:b}}}else td(y)?h[p]={data:y.map(({id:g,type:b})=>({id:g,type:b}))}:h[p]={data:null};n.attributes.includes("type")&&(m.type=o)}return{data:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u||n.id?{id:u||n.id}:{}),{type:n.type}),Object.keys(m).length>0?{attributes:m}:{}),Object.keys(h).length>0?{relationships:h}:{}),c?{meta:c}:{})}}function wd(r){if(Array.isArray(r))return r.map(wd);if(r&&typeof r=="object"){const n={};for(const[i,u]of Object.entries(r))i!=="__itemTypeId"&&(n[i]=wd(u));return n}return r}function ub(r){if(!r||typeof r!="object")return r;const{__itemTypeId:n}=r,i=D_(r,["__itemTypeId"]),u={};for(const[o,c]of Object.entries(i))u[o]=wd(c);return u}function qu(r){return!r||!("data"in r)?r:Array.isArray(r.data)?Object.assign(Object.assign({},r),{data:r.data.map(ub)}):Object.assign(Object.assign({},r),{data:ub(r.data)})}function H(r){return typeof r=="string"?r:r.id}class de{constructor(n){this.client=n}}class q_ extends de{create(n){return this.rawCreate(J(n,{type:"role",attributes:["name","can_edit_favicon","can_edit_site","can_edit_schema","can_manage_menu","can_edit_environment","can_promote_environments","environments_access","can_manage_users","can_manage_shared_filters","can_manage_search_indexes","can_manage_upload_collections","can_manage_build_triggers","can_manage_webhooks","can_manage_environments","can_manage_sso","can_access_audit_log","can_manage_workflows","can_manage_access_tokens","can_perform_site_search","can_access_build_events_log","can_access_search_index_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions","positive_search_index_permissions","negative_search_index_permissions"],relationships:["inherits_permissions_from"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/roles",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"role",attributes:["name","can_edit_favicon","can_edit_site","can_edit_schema","can_manage_menu","can_edit_environment","can_promote_environments","environments_access","can_manage_users","can_manage_shared_filters","can_manage_search_indexes","can_manage_upload_collections","can_manage_build_triggers","can_manage_webhooks","can_manage_environments","can_manage_sso","can_access_audit_log","can_manage_workflows","can_manage_access_tokens","can_perform_site_search","can_access_build_events_log","can_access_search_index_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions","positive_search_index_permissions","negative_search_index_permissions"],relationships:["inherits_permissions_from"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/roles/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/roles"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/roles/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/roles/${n}`})}duplicate(n){return this.rawDuplicate(H(n)).then(i=>A(i))}rawDuplicate(n){return this.client.request({method:"POST",url:`/roles/${n}/duplicate`})}}q_.TYPE="role";var Qx=function(r,n,i,u){function o(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function m(y){try{p(u.next(y))}catch(g){d(g)}}function h(y){try{p(u.throw(y))}catch(g){d(g)}}function p(y){y.done?c(y.value):o(y.value).then(m,h)}p((u=u.apply(r,n||[])).next())})};function ob(r,n){return r==null&&n==null?!0:r===n}function Zx(r,n){for(const i in r)if(!ob(r[i],n[i]))return!1;for(const i in n)if(!ob(r[i],n[i]))return!1;return!0}function Lu(r,n,i,u){if(!n)return r;const{add:o,remove:c}=n;return[...c?c.reduce((d,m)=>{const h=Object.assign(Object.assign({},m),{environment:i}),p=d.find(y=>Zx(y,h));if(!p)throw new Error(`Cannot find rule ${JSON.stringify(h)} to remove in ${u}!`);return d.filter(y=>y!==p)},r):r,...o?o.map(d=>Object.assign({environment:i},d)):[]]}class Jx extends q_{updateCurrentEnvironmentPermissions(n,i){return Qx(this,void 0,void 0,function*(){const u=this.client.config.environment||(yield this.client.environments.list()).find(h=>h.meta.primary).id,o=yield this.find(n),c=!!(i.positive_item_type_permissions||i.negative_item_type_permissions),d=!!(i.positive_upload_permissions||i.negative_upload_permissions),m=Object.assign(Object.assign({},c?{positive_item_type_permissions:Lu(o.positive_item_type_permissions,i.positive_item_type_permissions,u,"positive_item_type_permissions"),negative_item_type_permissions:Lu(o.negative_item_type_permissions,i.negative_item_type_permissions,u,"negative_item_type_permissions")}:{}),d?{positive_upload_permissions:Lu(o.positive_upload_permissions,i.positive_upload_permissions,u,"positive_upload_permissions"),negative_upload_permissions:Lu(o.negative_upload_permissions,i.negative_upload_permissions,u,"negative_upload_permissions")}:{});return this.update(n,m)})}}class L_ extends de{update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"user",attributes:["is_active"],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/users/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/users"})}find(n,i){return this.rawFind(H(n),i).then(u=>A(u))}rawFind(n,i){return this.client.request({method:"GET",url:`/users/${n}`,queryParams:i})}findMe(n){return this.rawFindMe(n).then(i=>A(i))}rawFindMe(n){return this.client.request({method:"GET",url:"/users/me",queryParams:n})}destroy(n,i){return this.rawDestroy(H(n),i).then(u=>A(u))}rawDestroy(n,i){return this.client.request({method:"DELETE",url:`/users/${n}`,queryParams:i})}}L_.TYPE="user";class z_ extends de{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/sso-users"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/sso-users/${n}`})}copyUsers(){return this.rawCopyUsers().then(n=>A(n))}rawCopyUsers(){return this.client.request({method:"POST",url:"/sso-users/copy-users"})}destroy(n,i){return this.rawDestroy(H(n),i).then(u=>A(u))}rawDestroy(n,i){return this.client.request({method:"DELETE",url:`/sso-users/${n}`,queryParams:i})}}z_.TYPE="sso_user";class U_ extends de{query(n){return this.rawQuery(J(n,{type:"audit_log_query",attributes:["since","before","filter","next_token","detailed_log"],relationships:[]})).then(i=>A(i))}rawQuery(n){return this.client.request({method:"POST",url:"/audit-log-events/query",body:n})}}U_.TYPE="audit_log_event";class N_ extends de{create(n){return this.rawCreate(J(n,{type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/menu-items",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/menu-items/${n}`,body:i})}list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/menu-items",queryParams:n})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/menu-items/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/menu-items/${n}`})}reorder(n){return this.rawReorder(J(n,{type:"menu_item",attributes:["position"],relationships:["parent"]})).then(i=>A(i))}rawReorder(n){return this.client.request({method:"POST",url:"/menu-items/reorder",body:n})}}N_.TYPE="menu_item";class j_ extends de{create(n){return this.rawCreate(J(n,{type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/schema-menu-items",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent","children"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/schema-menu-items/${n}`,body:i})}list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/schema-menu-items",queryParams:n})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/schema-menu-items/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/schema-menu-items/${n}`})}reorder(n){return this.rawReorder(J(n,{type:"schema_menu_item",attributes:["position"],relationships:["parent"]})).then(i=>A(i))}rawReorder(n){return this.client.request({method:"POST",url:"/schema-menu-items/reorder",body:n})}}j_.TYPE="schema_menu_item";class H_ extends de{create(n){return this.rawCreate(J(n,{type:"upload_collection",attributes:["label","position"],relationships:["parent"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-collections",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"upload_collection",attributes:["label","position"],relationships:["parent","children"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/upload-collections/${n}`,body:i})}list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/upload-collections",queryParams:n})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/upload-collections/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/upload-collections/${n}`})}reorder(n){return this.rawReorder(J(n,{type:"upload_collection",attributes:["position"],relationships:["parent"]})).then(i=>A(i))}rawReorder(n){return this.client.request({method:"POST",url:"/upload-collections/reorder",body:n})}}H_.TYPE="upload_collection";class V_ extends de{create(n,i){return this.rawCreate(J(n,{type:"item_type",attributes:["name","api_key","singleton","all_locales_required","sortable","modular_block","draft_mode_active","draft_saving_active","tree","ordering_direction","ordering_meta","collection_appeareance","collection_appearance","hint","inverse_relationships_enabled"],relationships:["ordering_field","presentation_title_field","presentation_image_field","title_field","image_preview_field","excerpt_field","workflow"]}),i).then(u=>A(u))}rawCreate(n,i){return this.client.request({method:"POST",url:"/item-types",body:n,queryParams:i})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"item_type",attributes:["name","api_key","collection_appeareance","collection_appearance","singleton","all_locales_required","sortable","modular_block","draft_mode_active","draft_saving_active","tree","ordering_direction","ordering_meta","has_singleton_item","hint","inverse_relationships_enabled"],relationships:["ordering_field","presentation_title_field","presentation_image_field","title_field","image_preview_field","excerpt_field","workflow"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/item-types/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/item-types"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/item-types/${n}`})}duplicate(n){return this.rawDuplicate(H(n)).then(i=>A(i))}rawDuplicate(n){return this.client.request({method:"POST",url:`/item-types/${n}/duplicate`})}destroy(n,i){return this.rawDestroy(H(n),i).then(u=>A(u))}rawDestroy(n,i){return this.client.request({method:"DELETE",url:`/item-types/${n}`,queryParams:i})}referencing(n){return this.rawReferencing(H(n)).then(i=>A(i))}rawReferencing(n){return this.client.request({method:"GET",url:`/item-types/${n}/referencing`})}rawReorderFieldsAndFieldsets(n,i){return this.client.request({method:"POST",url:`/item-types/${n}/reorder-fields-and-fieldsets`,body:i})}}V_.TYPE="item_type";class G_ extends de{create(n,i){return this.rawCreate(H(n),J(i,{type:"field",attributes:["label","field_type","api_key","localized","validators","appeareance","appearance","position","hint","default_value","deep_filtering_enabled"],relationships:["fieldset"]})).then(u=>A(u))}rawCreate(n,i){return this.client.request({method:"POST",url:`/item-types/${n}/fields`,body:i})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"field",attributes:["default_value","label","api_key","localized","validators","appeareance","appearance","position","field_type","hint","deep_filtering_enabled"],relationships:["fieldset"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/fields/${n}`,body:i})}list(n){return this.rawList(H(n)).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields`})}referencing(n){return this.rawReferencing(H(n)).then(i=>A(i))}rawReferencing(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields/referencing`})}related(n){return this.rawRelated(H(n)).then(i=>A(i))}rawRelated(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields/related`})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/fields/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/fields/${n}`})}duplicate(n){return this.rawDuplicate(H(n)).then(i=>A(i))}rawDuplicate(n){return this.client.request({method:"POST",url:`/fields/${n}/duplicate`})}}G_.TYPE="field";class B_ extends de{create(n,i){return this.rawCreate(H(n),J(i,{type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(u=>A(u))}rawCreate(n,i){return this.client.request({method:"POST",url:`/item-types/${n}/fieldsets`,body:i})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/fieldsets/${n}`,body:i})}list(n){return this.rawList(H(n)).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:`/item-types/${n}/fieldsets`})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/fieldsets/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/fieldsets/${n}`})}}B_.TYPE="fieldset";class I_ extends de{create(n){return this.rawCreate(J(n,{type:"email_credentials",attributes:["email","password","otp_code"],relationships:[]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/sessions",body:n})}destroy(){return this.rawDestroy()}rawDestroy(){return this.client.request({method:"DELETE",url:"/session"})}}I_.TYPE="session";class P_ extends de{create(n){return this.rawCreate(J(n,{type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/access_tokens",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/access_tokens/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/access_tokens"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/access_tokens/${n}`})}regenerateToken(n){return this.rawRegenerateToken(H(n)).then(i=>A(i))}rawRegenerateToken(n){return this.client.request({method:"POST",url:`/access_tokens/${n}/regenerate_token`})}destroy(n,i){return this.rawDestroy(H(n),i).then(u=>A(u))}rawDestroy(n,i){return this.client.request({method:"DELETE",url:`/access_tokens/${n}`,queryParams:i})}}P_.TYPE="access_token";class $_ extends de{create(n){return this.rawCreate(J(n,{type:"plugin",attributes:["package_name","name","description","url","permissions","plugin_type","field_types","parameter_definitions","package_version"],relationships:[]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/plugins",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"plugin",attributes:["name","description","url","parameters","package_version","permissions"],relationships:[]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/plugins/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/plugins"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/plugins/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/plugins/${n}`})}fields(n){return this.rawFields(H(n)).then(i=>A(i))}rawFields(n){return this.client.request({method:"GET",url:`/plugins/${n}/fields`})}}$_.TYPE="plugin";class Y_ extends de{find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/job-results/${n}`})}}Y_.TYPE="job_result";class k_ extends de{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/subscription-limits"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/subscription-limits/${n}`})}}k_.TYPE="subscription_limit";class F_ extends de{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/subscription-features"})}}F_.TYPE="subscription_feature";var Wx=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(m,h){d=r[c](d),o(m,h,d.done,d.value)})}}function o(c,d,m,h){Promise.resolve(h).then(function(p){c({value:p,done:m})},d)}},Ma=function(r){return this instanceof Ma?(this.v=r,this):new Ma(r)},eM=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(E,w){c.push([b,S,E,w])>1||m(b,S)})})}function m(b,S){try{h(u[b](S))}catch(E){g(c[0][3],E)}}function h(b){b.value instanceof Ma?Promise.resolve(b.value.v).then(p,y):g(c[0][2],b)}function p(b){m("next",b)}function y(b){m("throw",b)}function g(b,S){b(S),c.shift(),c.length&&m(c[0][0],c[0][1])}};class K_ extends de{list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/build-events",queryParams:n})}listPagedIterator(n,i){return eM(this,arguments,function*(){var o,c,d,m;try{for(var h=!0,p=Wx(this.rawListPagedIterator(n,i)),y;y=yield Ma(p.next()),o=y.done,!o;){m=y.value,h=!1;try{yield yield Ma(nn(m))}finally{h=!0}}}catch(g){c={error:g}}finally{try{!h&&!o&&(d=p.return)&&(yield Ma(d.call(p)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return jn(n),Nn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/build-events/${n}`})}}K_.TYPE="build_event";var tM=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(m,h){d=r[c](d),o(m,h,d.done,d.value)})}}function o(c,d,m,h){Promise.resolve(h).then(function(p){c({value:p,done:m})},d)}},Ra=function(r){return this instanceof Ra?(this.v=r,this):new Ra(r)},nM=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(E,w){c.push([b,S,E,w])>1||m(b,S)})})}function m(b,S){try{h(u[b](S))}catch(E){g(c[0][3],E)}}function h(b){b.value instanceof Ra?Promise.resolve(b.value.v).then(p,y):g(c[0][2],b)}function p(b){m("next",b)}function y(b){m("throw",b)}function g(b,S){b(S),c.shift(),c.length&&m(c[0][0],c[0][1])}};class X_ extends de{list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/search-index-events",queryParams:n})}listPagedIterator(n,i){return nM(this,arguments,function*(){var o,c,d,m;try{for(var h=!0,p=tM(this.rawListPagedIterator(n,i)),y;y=yield Ra(p.next()),o=y.done,!o;){m=y.value,h=!1;try{yield yield Ra(nn(m))}finally{h=!0}}}catch(g){c={error:g}}finally{try{!h&&!o&&(d=p.return)&&(yield Ra(d.call(p)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return jn(n),Nn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/search-index-events/${n}`})}}X_.TYPE="search_index_event";var rM=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(m,h){d=r[c](d),o(m,h,d.done,d.value)})}}function o(c,d,m,h){Promise.resolve(h).then(function(p){c({value:p,done:m})},d)}},Da=function(r){return this instanceof Da?(this.v=r,this):new Da(r)},aM=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(E,w){c.push([b,S,E,w])>1||m(b,S)})})}function m(b,S){try{h(u[b](S))}catch(E){g(c[0][3],E)}}function h(b){b.value instanceof Da?Promise.resolve(b.value.v).then(p,y):g(c[0][2],b)}function p(b){m("next",b)}function y(b){m("throw",b)}function g(b,S){b(S),c.shift(),c.length&&m(c[0][0],c[0][1])}};class Q_ extends de{list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/items",queryParams:n}).then(Zt)}listPagedIterator(n,i){return aM(this,arguments,function*(){var o,c,d,m;try{for(var h=!0,p=rM(this.rawListPagedIterator(n,i)),y;y=yield Da(p.next()),o=y.done,!o;){m=y.value,h=!1;try{yield yield Da(nn(m))}finally{h=!0}}}catch(g){c={error:g}}finally{try{!h&&!o&&(d=p.return)&&(yield Da(d.call(p)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return jn(n),Nn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i,!0)}validateExisting(n,i){return this.rawValidateExisting(H(n),J(i,{id:H(n),type:"item",attributes:"*",relationships:["item_type","creator"]}))}rawValidateExisting(n,i){return this.client.request({method:"POST",url:`/items/${n}/validate`,body:qu(i)})}validateNew(n){return this.rawValidateNew(J(n,{type:"item",attributes:"*",relationships:["item_type","creator"]}))}rawValidateNew(n){return this.client.request({method:"POST",url:"/items/validate",body:qu(n)})}create(n){return this.rawCreate(J(n,{type:"item",attributes:"*",relationships:["item_type","creator"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/items",body:qu(n)}).then(Zt)}duplicate(n){return this.rawDuplicate(H(n)).then(i=>A(i))}rawDuplicate(n){return this.client.request({method:"POST",url:`/items/${n}/duplicate`}).then(Zt)}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"item",attributes:"*",relationships:["item_type","creator"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/items/${n}`,body:qu(i)}).then(Zt)}references(n,i){return this.rawReferences(H(n),i).then(u=>A(u))}rawReferences(n,i){return this.client.request({method:"GET",url:`/items/${n}/references`,queryParams:i}).then(Zt)}find(n,i){return this.rawFind(H(n),i).then(u=>A(u))}rawFind(n,i){return this.client.request({method:"GET",url:`/items/${n}`,queryParams:i}).then(Zt)}currentVsPublishedState(n){return this.rawCurrentVsPublishedState(H(n)).then(i=>A(i))}rawCurrentVsPublishedState(n){return this.client.request({method:"GET",url:`/items/${n}/current-vs-published-state`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}`}).then(Zt)}publish(n,i,u){return this.rawPublish(H(n),i?J(i,{type:"selective_publish_operation",attributes:["content_in_locales","non_localized_content"],relationships:[]}):null,u).then(o=>A(o))}rawPublish(n,i,u){return this.client.request({method:"PUT",url:`/items/${n}/publish`,body:i,queryParams:u}).then(Zt)}unpublish(n,i,u){return this.rawUnpublish(H(n),i?J(i,{type:"selective_unpublish_operation",attributes:["content_in_locales"],relationships:[]}):null,u).then(o=>A(o))}rawUnpublish(n,i,u){return this.client.request({method:"PUT",url:`/items/${n}/unpublish`,body:i,queryParams:u}).then(Zt)}bulkPublish(n){return this.rawBulkPublish(J(n,{type:"item_bulk_publish_operation",attributes:[],relationships:["items"]})).then(i=>A(i))}rawBulkPublish(n){return this.client.request({method:"POST",url:"/items/bulk/publish",body:n})}bulkUnpublish(n){return this.rawBulkUnpublish(J(n,{type:"item_bulk_unpublish_operation",attributes:[],relationships:["items"]})).then(i=>A(i))}rawBulkUnpublish(n){return this.client.request({method:"POST",url:"/items/bulk/unpublish",body:n})}bulkDestroy(n){return this.rawBulkDestroy(J(n,{type:"item_bulk_destroy_operation",attributes:[],relationships:["items"]})).then(i=>A(i))}rawBulkDestroy(n){return this.client.request({method:"POST",url:"/items/bulk/destroy",body:n})}bulkMoveToStage(n){return this.rawBulkMoveToStage(J(n,{type:"item_bulk_move_to_stage_operation",attributes:["stage"],relationships:["items"]})).then(i=>A(i))}rawBulkMoveToStage(n){return this.client.request({method:"POST",url:"/items/bulk/move-to-stage",body:n})}}Q_.TYPE="item";var iM=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(m,h){d=r[c](d),o(m,h,d.done,d.value)})}}function o(c,d,m,h){Promise.resolve(h).then(function(p){c({value:p,done:m})},d)}},qa=function(r){return this instanceof qa?(this.v=r,this):new qa(r)},lM=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(E,w){c.push([b,S,E,w])>1||m(b,S)})})}function m(b,S){try{h(u[b](S))}catch(E){g(c[0][3],E)}}function h(b){b.value instanceof qa?Promise.resolve(b.value.v).then(p,y):g(c[0][2],b)}function p(b){m("next",b)}function y(b){m("throw",b)}function g(b,S){b(S),c.shift(),c.length&&m(c[0][0],c[0][1])}};class Z_ extends de{restore(n){return this.rawRestore(H(n)).then(i=>A(i))}rawRestore(n){return this.client.request({method:"POST",url:`/versions/${n}/restore`})}list(n,i){return this.rawList(H(n),i).then(u=>A(u))}rawList(n,i){return this.client.request({method:"GET",url:`/items/${n}/versions`,queryParams:i})}listPagedIterator(n,i,u){return lM(this,arguments,function*(){var c,d,m,h;try{for(var p=!0,y=iM(this.rawListPagedIterator(H(n),i,u)),g;g=yield qa(y.next()),c=g.done,!c;){h=g.value,p=!1;try{yield yield qa(nn(h))}finally{p=!0}}}catch(b){d={error:b}}finally{try{!p&&!c&&(m=y.return)&&(yield qa(m.call(y)))}finally{if(d)throw d.error}}})}rawListPagedIterator(n,i,u){return jn(i),Nn({defaultLimit:15,maxLimit:50},o=>this.rawList(n,Object.assign(Object.assign({},i),{page:o})),u)}find(n,i){return this.rawFind(H(n),i).then(u=>A(u))}rawFind(n,i){return this.client.request({method:"GET",url:`/versions/${n}`,queryParams:i})}}Z_.TYPE="item_version";var uM=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(m,h){d=r[c](d),o(m,h,d.done,d.value)})}}function o(c,d,m,h){Promise.resolve(h).then(function(p){c({value:p,done:m})},d)}},La=function(r){return this instanceof La?(this.v=r,this):new La(r)},oM=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(E,w){c.push([b,S,E,w])>1||m(b,S)})})}function m(b,S){try{h(u[b](S))}catch(E){g(c[0][3],E)}}function h(b){b.value instanceof La?Promise.resolve(b.value.v).then(p,y):g(c[0][2],b)}function p(b){m("next",b)}function y(b){m("throw",b)}function g(b,S){b(S),c.shift(),c.length&&m(c[0][0],c[0][1])}};let J_=class extends de{create(n){return this.rawCreate(J(n,{type:"upload",attributes:["path","copyright","author","notes","default_field_metadata","tags"],relationships:["upload_collection"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/uploads",body:n})}list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/uploads",queryParams:n})}listPagedIterator(n,i){return oM(this,arguments,function*(){var o,c,d,m;try{for(var h=!0,p=uM(this.rawListPagedIterator(n,i)),y;y=yield La(p.next()),o=y.done,!o;){m=y.value,h=!1;try{yield yield La(nn(m))}finally{h=!0}}}catch(g){c={error:g}}finally{try{!h&&!o&&(d=p.return)&&(yield La(d.call(p)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return jn(n),Nn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/uploads/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/uploads/${n}`})}update(n,i,u){return this.rawUpdate(H(n),J(i,{id:H(n),type:"upload",attributes:["path","basename","copyright","author","notes","tags","default_field_metadata"],relationships:["creator","upload_collection"]}),u).then(o=>A(o))}rawUpdate(n,i,u){return this.client.request({method:"PUT",url:`/uploads/${n}`,body:i,queryParams:u})}references(n,i){return this.rawReferences(H(n),i).then(u=>A(u))}rawReferences(n,i){return this.client.request({method:"GET",url:`/uploads/${n}/references`,queryParams:i}).then(Zt)}bulkTag(n){return this.rawBulkTag(J(n,{type:"upload_bulk_tag_operation",attributes:["tags"],relationships:["uploads"]})).then(i=>A(i))}rawBulkTag(n){return this.client.request({method:"POST",url:"/uploads/bulk/tag",body:n})}bulkSetUploadCollection(n){return this.rawBulkSetUploadCollection(J(n,{type:"upload_bulk_set_upload_collection_operation",attributes:[],relationships:["upload_collection","uploads"]})).then(i=>A(i))}rawBulkSetUploadCollection(n){return this.client.request({method:"POST",url:"/uploads/bulk/set-upload-collection",body:n})}bulkDestroy(n){return this.rawBulkDestroy(J(n,{type:"upload_bulk_destroy_operation",attributes:[],relationships:["uploads"]})).then(i=>A(i))}rawBulkDestroy(n){return this.client.request({method:"POST",url:"/uploads/bulk/destroy",body:n})}};J_.TYPE="upload";class W_ extends J_{}class e0 extends de{create(n){return this.rawCreate(J(n,{type:"upload_request",attributes:["filename"],relationships:["upload_collection"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-requests",body:n})}}e0.TYPE="upload_request";class t0 extends de{create(n,i){return this.rawCreate(H(n),J(i,{type:"upload_track",attributes:["url_or_upload_request_id","type","name","language_code","closed_captions"],relationships:[]})).then(u=>A(u))}rawCreate(n,i){return this.client.request({method:"POST",url:`/uploads/${n}/tracks`,body:i})}list(n){return this.rawList(H(n)).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:`/uploads/${n}/tracks`})}destroy(n,i){return this.rawDestroy(H(n),H(i)).then(u=>A(u))}rawDestroy(n,i){return this.client.request({method:"DELETE",url:`/uploads/${n}/tracks/${i}`})}generateSubtitles(n,i){return this.rawGenerateSubtitles(H(n),J(i,{type:"upload_track",attributes:["name","language_code"],relationships:[]})).then(u=>A(u))}rawGenerateSubtitles(n,i){return this.client.request({method:"POST",url:`/uploads/${n}/tracks/generate-subtitles`,body:i})}}t0.TYPE="upload_track";class n0 extends de{create(n,i){return this.rawCreate(H(n),J(i,{type:"scheduled_publication",attributes:["publication_scheduled_at","selective_publication"],relationships:[]})).then(u=>A(u))}rawCreate(n,i){return this.client.request({method:"POST",url:`/items/${n}/scheduled-publication`,body:i})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}/scheduled-publication`}).then(Zt)}}n0.TYPE="scheduled_publication";class r0 extends de{create(n,i){return this.rawCreate(H(n),J(i,{type:"scheduled_unpublishing",attributes:["unpublishing_scheduled_at","content_in_locales"],relationships:[]})).then(u=>A(u))}rawCreate(n,i){return this.client.request({method:"POST",url:`/items/${n}/scheduled-unpublishing`,body:i})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}/scheduled-unpublishing`}).then(Zt)}}r0.TYPE="scheduled_unpublishing";var sM=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(m,h){d=r[c](d),o(m,h,d.done,d.value)})}}function o(c,d,m,h){Promise.resolve(h).then(function(p){c({value:p,done:m})},d)}},za=function(r){return this instanceof za?(this.v=r,this):new za(r)},cM=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(E,w){c.push([b,S,E,w])>1||m(b,S)})})}function m(b,S){try{h(u[b](S))}catch(E){g(c[0][3],E)}}function h(b){b.value instanceof za?Promise.resolve(b.value.v).then(p,y):g(c[0][2],b)}function p(b){m("next",b)}function y(b){m("throw",b)}function g(b,S){b(S),c.shift(),c.length&&m(c[0][0],c[0][1])}};class a0 extends de{list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/search-results",queryParams:n})}listPagedIterator(n,i){return cM(this,arguments,function*(){var o,c,d,m;try{for(var h=!0,p=sM(this.rawListPagedIterator(n,i)),y;y=yield za(p.next()),o=y.done,!o;){m=y.value,h=!1;try{yield yield za(nn(m))}finally{h=!0}}}catch(g){c={error:g}}finally{try{!h&&!o&&(d=p.return)&&(yield za(d.call(p)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return jn(n),Nn({defaultLimit:20,maxLimit:100},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}}a0.TYPE="search_result";class i0 extends de{fork(n,i,u){return this.rawFork(H(n),J(i,{id:H(n),type:"environment",attributes:[],relationships:[]}),u).then(o=>A(o))}rawFork(n,i,u){return this.client.request({method:"POST",url:`/environments/${n}/fork`,body:i,queryParams:u})}promote(n){return this.rawPromote(H(n)).then(i=>A(i))}rawPromote(n){return this.client.request({method:"PUT",url:`/environments/${n}/promote`})}rename(n,i){return this.rawRename(H(n),J(i,{id:H(n),type:"environment",attributes:[],relationships:[]})).then(u=>A(u))}rawRename(n,i){return this.client.request({method:"PUT",url:`/environments/${n}/rename`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/environments"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/environments/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/environments/${n}`})}}i0.TYPE="environment";class l0 extends de{find(){return this.rawFind().then(n=>A(n))}rawFind(){return this.client.request({method:"GET",url:"/maintenance-mode"})}activate(n){return this.rawActivate(n).then(i=>A(i))}rawActivate(n){return this.client.request({method:"PUT",url:"/maintenance-mode/activate",queryParams:n})}deactivate(){return this.rawDeactivate().then(n=>A(n))}rawDeactivate(){return this.client.request({method:"PUT",url:"/maintenance-mode/deactivate"})}}l0.TYPE="maintenance_mode";class u0 extends de{create(n){return this.rawCreate(J(n,{type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload","auto_retry"],relationships:[]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/webhooks",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload","auto_retry"],relationships:[]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/webhooks/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/webhooks"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/webhooks/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/webhooks/${n}`})}}u0.TYPE="webhook";var fM=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(m,h){d=r[c](d),o(m,h,d.done,d.value)})}}function o(c,d,m,h){Promise.resolve(h).then(function(p){c({value:p,done:m})},d)}},Ua=function(r){return this instanceof Ua?(this.v=r,this):new Ua(r)},dM=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(E,w){c.push([b,S,E,w])>1||m(b,S)})})}function m(b,S){try{h(u[b](S))}catch(E){g(c[0][3],E)}}function h(b){b.value instanceof Ua?Promise.resolve(b.value.v).then(p,y):g(c[0][2],b)}function p(b){m("next",b)}function y(b){m("throw",b)}function g(b,S){b(S),c.shift(),c.length&&m(c[0][0],c[0][1])}};class o0 extends de{list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/webhook_calls",queryParams:n})}listPagedIterator(n,i){return dM(this,arguments,function*(){var o,c,d,m;try{for(var h=!0,p=fM(this.rawListPagedIterator(n,i)),y;y=yield Ua(p.next()),o=y.done,!o;){m=y.value,h=!1;try{yield yield Ua(nn(m))}finally{h=!0}}}catch(g){c={error:g}}finally{try{!h&&!o&&(d=p.return)&&(yield Ua(d.call(p)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return jn(n),Nn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/webhook_calls/${n}`})}resendWebhook(n){return this.rawResendWebhook(H(n))}rawResendWebhook(n){return this.client.request({method:"POST",url:`/webhook_calls/${n}/resend_webhook`})}}o0.TYPE="webhook_call";class s0 extends de{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/build-triggers"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/build-triggers/${n}`})}create(n){return this.rawCreate(J(n,{type:"build_trigger",attributes:["name","webhook_token","adapter","indexing_enabled","enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/build-triggers",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"build_trigger",attributes:["name","adapter","indexing_enabled","enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/build-triggers/${n}`,body:i})}trigger(n){return this.rawTrigger(H(n))}rawTrigger(n){return this.client.request({method:"POST",url:`/build-triggers/${n}/trigger`})}abort(n){return this.rawAbort(H(n))}rawAbort(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}/abort`})}abortIndexing(n){return this.rawAbortIndexing(H(n))}rawAbortIndexing(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}/abort_indexing`})}reindex(n){return this.rawReindex(H(n))}rawReindex(n){return this.client.request({method:"PUT",url:`/build-triggers/${n}/reindex`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}`})}}s0.TYPE="build_trigger";class c0 extends de{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/search-indexes"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/search-indexes/${n}`})}create(n){return this.rawCreate(J(n,{type:"search_index",attributes:["name","enabled","frontend_url","user_agent_suffix"],relationships:["build_triggers"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/search-indexes",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"search_index",attributes:["name","enabled","frontend_url","user_agent_suffix"],relationships:["build_triggers"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/search-indexes/${n}`,body:i})}trigger(n){return this.rawTrigger(H(n))}rawTrigger(n){return this.client.request({method:"POST",url:`/search-indexes/${n}/trigger`})}abort(n){return this.rawAbort(H(n))}rawAbort(n){return this.client.request({method:"DELETE",url:`/search-indexes/${n}/abort`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/search-indexes/${n}`})}}c0.TYPE="search_index";class f0 extends de{create(n){return this.rawCreate(J(n,{type:"item_type_filter",attributes:["name","filter","columns","order_by","shared"],relationships:["item_type"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/item-type-filters",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"item_type_filter",attributes:["name","columns","order_by","shared","filter"],relationships:["item_type"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/item-type-filters/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/item-type-filters"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/item-type-filters/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/item-type-filters/${n}`})}}f0.TYPE="item_type_filter";class d0 extends de{create(n){return this.rawCreate(J(n,{type:"upload_filter",attributes:["name","filter","shared"],relationships:[]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-filters",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"upload_filter",attributes:["name","shared","filter"],relationships:[]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/upload-filters/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/upload-filters"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/upload-filters/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/upload-filters/${n}`})}}d0.TYPE="upload_filter";class h0 extends de{create(n){return this.rawCreate(J(n,{type:"site_invitation",attributes:["email"],relationships:["role"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/site-invitations",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"site_invitation",attributes:[],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/site-invitations/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/site-invitations"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/site-invitations/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/site-invitations/${n}`})}resend(n){return this.rawResend(H(n)).then(i=>A(i))}rawResend(n){return this.client.request({method:"POST",url:`/site-invitations/${n}/resend`})}}h0.TYPE="site_invitation";class p0 extends de{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/editing-sessions"})}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/editing-sessions/${n}`,body:i})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/editing-sessions/${n}`})}}p0.TYPE="editing_session";class m0 extends de{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/sso-groups"})}copyRoles(n){return this.rawCopyRoles(H(n)).then(i=>A(i))}rawCopyRoles(n){return this.client.request({method:"POST",url:`/sso-groups/${n}/copy-roles`})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"sso_group",attributes:["priority"],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/sso-groups/${n}`,body:i})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/sso-groups/${n}`})}}m0.TYPE="sso_group";class v0 extends de{find(){return this.rawFind().then(n=>A(n))}rawFind(){return this.client.request({method:"GET",url:"/sso-settings"})}generateToken(){return this.rawGenerateToken().then(n=>A(n))}rawGenerateToken(){return this.client.request({method:"PUT",url:"/sso-settings/generate-token"})}update(n){return this.rawUpdate(J(n,{type:"sso_settings",attributes:["idp_saml_metadata_url","idp_saml_metadata_xml"],relationships:["default_role"]})).then(i=>A(i))}rawUpdate(n){return this.client.request({method:"PUT",url:"/sso-settings",body:n})}}v0.TYPE="sso_settings";class y0 extends de{find(n){return this.rawFind(n).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:"/emoji-suggestions",queryParams:n})}}y0.TYPE="emoji_suggestions";class g0 extends de{find(){return this.rawFind().then(n=>A(n))}rawFind(){return this.client.request({method:"GET",url:"/white-label-settings"})}update(n){return this.rawUpdate(J(n,{type:"white_label_settings",attributes:["custom_i18n_messages_template_url"],relationships:[]})).then(i=>A(i))}rawUpdate(n){return this.client.request({method:"PUT",url:"/white-label-settings",body:n})}}g0.TYPE="white_label_settings";class b0 extends de{find(){return this.rawFind().then(n=>A(n))}rawFind(){return this.client.request({method:"GET",url:"/public-info"})}}b0.TYPE="public_info";class _0 extends de{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/daily-site-usages"})}}_0.TYPE="daily_usage";class S0 extends de{find(n,i){return this.rawFind(H(n),i).then(u=>A(u))}rawFind(n,i){return this.client.request({method:"GET",url:`/usage-log-counters/${n}`,queryParams:i})}}S0.TYPE="usage_counter";var hM=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(m,h){d=r[c](d),o(m,h,d.done,d.value)})}}function o(c,d,m,h){Promise.resolve(h).then(function(p){c({value:p,done:m})},d)}},Na=function(r){return this instanceof Na?(this.v=r,this):new Na(r)},pM=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(E,w){c.push([b,S,E,w])>1||m(b,S)})})}function m(b,S){try{h(u[b](S))}catch(E){g(c[0][3],E)}}function h(b){b.value instanceof Na?Promise.resolve(b.value.v).then(p,y):g(c[0][2],b)}function p(b){m("next",b)}function y(b){m("throw",b)}function g(b,S){b(S),c.shift(),c.length&&m(c[0][0],c[0][1])}};class E0 extends de{list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/upload-tags",queryParams:n})}listPagedIterator(n,i){return pM(this,arguments,function*(){var o,c,d,m;try{for(var h=!0,p=hM(this.rawListPagedIterator(n,i)),y;y=yield Na(p.next()),o=y.done,!o;){m=y.value,h=!1;try{yield yield Na(nn(m))}finally{h=!0}}}catch(g){c={error:g}}finally{try{!h&&!o&&(d=p.return)&&(yield Na(d.call(p)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return jn(n),Nn({defaultLimit:50,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}create(n){return this.rawCreate(J(n,{type:"upload_tag",attributes:["name"],relationships:[]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-tags",body:n})}}E0.TYPE="upload_tag";var mM=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(m,h){d=r[c](d),o(m,h,d.done,d.value)})}}function o(c,d,m,h){Promise.resolve(h).then(function(p){c({value:p,done:m})},d)}},ja=function(r){return this instanceof ja?(this.v=r,this):new ja(r)},vM=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(E,w){c.push([b,S,E,w])>1||m(b,S)})})}function m(b,S){try{h(u[b](S))}catch(E){g(c[0][3],E)}}function h(b){b.value instanceof ja?Promise.resolve(b.value.v).then(p,y):g(c[0][2],b)}function p(b){m("next",b)}function y(b){m("throw",b)}function g(b,S){b(S),c.shift(),c.length&&m(c[0][0],c[0][1])}};class T0 extends de{list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/upload-smart-tags",queryParams:n})}listPagedIterator(n,i){return vM(this,arguments,function*(){var o,c,d,m;try{for(var h=!0,p=mM(this.rawListPagedIterator(n,i)),y;y=yield ja(p.next()),o=y.done,!o;){m=y.value,h=!1;try{yield yield ja(nn(m))}finally{h=!0}}}catch(g){c={error:g}}finally{try{!h&&!o&&(d=p.return)&&(yield ja(d.call(p)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return jn(n),Nn({defaultLimit:50,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}}T0.TYPE="upload_smart_tag";class w0 extends de{find(n){return this.rawFind(n).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:"/site",queryParams:n})}update(n){return this.rawUpdate(J(n,{type:"site",attributes:["no_index","favicon","global_seo","name","theme","locales","timezone","require_2fa","ip_tracking_enabled","force_use_of_sandbox_environments"],relationships:["sso_default_role"]})).then(i=>A(i))}rawUpdate(n){return this.client.request({method:"PUT",url:"/site",body:n})}activateImprovedTimezoneManagement(){return this.rawActivateImprovedTimezoneManagement().then(n=>A(n))}rawActivateImprovedTimezoneManagement(){return this.client.request({method:"PUT",url:"/site/activate-improved-timezone-management"})}activateImprovedHexManagement(){return this.rawActivateImprovedHexManagement().then(n=>A(n))}rawActivateImprovedHexManagement(){return this.client.request({method:"PUT",url:"/site/activate-improved-hex-management"})}activateImprovedGqlMultilocaleFields(){return this.rawActivateImprovedGqlMultilocaleFields().then(n=>A(n))}rawActivateImprovedGqlMultilocaleFields(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-multilocale-fields"})}activateImprovedGqlVisibilityControl(){return this.rawActivateImprovedGqlVisibilityControl().then(n=>A(n))}rawActivateImprovedGqlVisibilityControl(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-visibility-control"})}activateImprovedBooleanFields(){return this.rawActivateImprovedBooleanFields().then(n=>A(n))}rawActivateImprovedBooleanFields(){return this.client.request({method:"PUT",url:"/site/activate-improved-boolean-fields"})}activateDraftModeAsDefault(){return this.rawActivateDraftModeAsDefault().then(n=>A(n))}rawActivateDraftModeAsDefault(){return this.client.request({method:"PUT",url:"/site/activate-draft-mode-as-default"})}activateImprovedValidationAtPublishing(){return this.rawActivateImprovedValidationAtPublishing().then(n=>A(n))}rawActivateImprovedValidationAtPublishing(){return this.client.request({method:"PUT",url:"/site/activate-improved-validation-at-publishing"})}activateImprovedExposureOfInlineBlocksInCda(){return this.rawActivateImprovedExposureOfInlineBlocksInCda().then(n=>A(n))}rawActivateImprovedExposureOfInlineBlocksInCda(){return this.client.request({method:"PUT",url:"/site/activate-improved-exposure-of-inline-blocks-in-cda"})}activateImprovedItemsListing(){return this.rawActivateImprovedItemsListing().then(n=>A(n))}rawActivateImprovedItemsListing(){return this.client.request({method:"PUT",url:"/site/activate-improved-items-listing"})}activateMillisecondsInDatetime(){return this.rawActivateMillisecondsInDatetime().then(n=>A(n))}rawActivateMillisecondsInDatetime(){return this.client.request({method:"PUT",url:"/site/activate-milliseconds-in-datetime"})}activateNonLocalizedFocalPoints(){return this.rawActivateNonLocalizedFocalPoints().then(n=>A(n))}rawActivateNonLocalizedFocalPoints(){return this.client.request({method:"PUT",url:"/site/activate-non-localized-focal-points"})}updateAssetsCdnDefaultSettings(n){return this.rawUpdateAssetsCdnDefaultSettings(J(n,{type:"assets-cdn-default-settings",attributes:["assets_cdn_default_settings"],relationships:[]})).then(i=>A(i))}rawUpdateAssetsCdnDefaultSettings(n){return this.client.request({method:"PUT",url:"/site/assets-cdn-default-settings",body:n})}}w0.TYPE="site";class O0 extends de{create(n){return this.rawCreate(J(n,{type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/workflows",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/workflows/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/workflows"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/workflows/${n}`})}destroy(n){return this.rawDestroy(H(n))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/workflows/${n}`})}}O0.TYPE="workflow";var yM=function(r,n,i,u){function o(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function m(y){try{p(u.next(y))}catch(g){d(g)}}function h(y){try{p(u.throw(y))}catch(g){d(g)}}function p(y){y.done?c(y.value):o(y.value).then(m,h)}p((u=u.apply(r,n||[])).next())})};let C0=class A0{constructor(n){this.config=n,this.roles=new Jx(this),this.users=new L_(this),this.ssoUsers=new z_(this),this.auditLogEvents=new U_(this),this.menuItems=new N_(this),this.schemaMenuItems=new j_(this),this.uploadCollections=new H_(this),this.itemTypes=new V_(this),this.fields=new G_(this),this.fieldsets=new B_(this),this.session=new I_(this),this.accessTokens=new P_(this),this.plugins=new $_(this),this.jobResults=new Y_(this),this.subscriptionLimits=new k_(this),this.subscriptionFeatures=new F_(this),this.buildEvents=new K_(this),this.searchIndexEvents=new X_(this),this.items=new Q_(this),this.itemVersions=new Z_(this),this.uploads=new W_(this),this.uploadRequest=new e0(this),this.uploadTracks=new t0(this),this.scheduledPublication=new n0(this),this.scheduledUnpublishing=new r0(this),this.searchResults=new a0(this),this.environments=new i0(this),this.maintenanceMode=new l0(this),this.webhooks=new u0(this),this.webhookCalls=new o0(this),this.buildTriggers=new s0(this),this.searchIndexes=new c0(this),this.itemTypeFilters=new f0(this),this.uploadFilters=new d0(this),this.siteInvitations=new h0(this),this.editingSessions=new p0(this),this.ssoGroups=new m0(this),this.ssoSettings=new v0(this),this.emojiSuggestions=new y0(this),this.whiteLabelSettings=new g0(this),this.publicInfo=new b0(this),this.dailyUsages=new _0(this),this.usageCounters=new S0(this),this.uploadTags=new E0(this),this.uploadSmartTags=new T0(this),this.site=new w0(this),this.workflows=new O0(this)}get baseUrl(){return this.config.baseUrl||A0.defaultBaseUrl}request(n){return Gu(Object.assign(Object.assign(Object.assign({},this.config),n),{logFn:this.config.logFn||console.log,userAgent:"@datocms/cma-client v5.5.4",baseUrl:this.baseUrl,preCallStack:new Error().stack,extraHeaders:Object.assign(Object.assign(Object.assign({},this.config.extraHeaders||{}),this.config.environment?{"X-Environment":this.config.environment}:{}),{"X-API-Version":"3"}),fetchJobResult:i=>this.jobResultsFetcher?this.jobResultsFetcher(i):Lx(()=>this.jobResults.find(i))}))}eventsChannelName(){return yM(this,void 0,void 0,function*(){if(this.cachedEventsChannelName)return this.cachedEventsChannelName;const{data:n}=yield this.site.rawFind();return this.cachedEventsChannelName=this.config.environment?`private-site-${n.id}-environment-${this.config.environment}`:`private-site-${n.id}`,this.cachedEventsChannelName})}};C0.defaultBaseUrl="https://site-api.datocms.com";function gM(r,n,{onProgress:i,additionalHeaders:u}={}){const o=new XMLHttpRequest;return Ki(new Promise((c,d)=>{if(i&&o.upload&&(o.upload.onprogress=m=>{m.lengthComputable&&i({type:"UPLOADING_FILE",payload:{progress:Math.round(m.loaded/m.total*100)}})}),o.onreadystatechange=()=>{o.readyState===4&&(o.status===200?c():d(new Error(`Status ${o.status}`)))},o.addEventListener("error",d,!1),o.open("PUT",n,!0),u)for(const[m,h]of Object.entries(u))o.setRequestHeader(m,h);o.send(r)}),()=>{o.onreadystatechange=null,o.abort()})}var bM=function(r,n,i,u){function o(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function m(y){try{p(u.next(y))}catch(g){d(g)}}function h(y){try{p(u.throw(y))}catch(g){d(g)}}function p(y){y.done?c(y.value):o(y.value).then(m,h)}p((u=u.apply(r,n||[])).next())})};function sb(r,n,i={}){const u=i.filename||("name"in n?n.name:void 0);if(!u)throw new Error("Missing filename, please provide it as an option!");let o=!1,c;return Ki(()=>bM(this,void 0,void 0,function*(){i.onProgress&&i?.onProgress({type:"REQUESTING_UPLOAD_URL",payload:{filename:u}});const{id:d,url:m,request_headers:h}=yield r.uploadRequest.create({filename:u});if(o)throw new Fi;return i.onProgress&&i.onProgress({type:"UPLOADING_FILE",payload:{progress:0}}),c=gM(n,m,Object.assign(Object.assign({},i),{additionalHeaders:h})),yield c,d}),()=>{c?c.cancel():o=!0})}var cb=function(r,n,i,u){function o(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function m(y){try{p(u.next(y))}catch(g){d(g)}}function h(y){try{p(u.throw(y))}catch(g){d(g)}}function p(y){y.done?c(y.value):o(y.value).then(m,h)}p((u=u.apply(r,n||[])).next())})},fb=function(r,n){var i={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&n.indexOf(u)<0&&(i[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(r);o<u.length;o++)n.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(r,u[o])&&(i[u[o]]=r[u[o]]);return i};class _M extends W_{createFromFileOrBlob(n){let i=!1,u;return Ki(()=>cb(this,void 0,void 0,function*(){if(i)throw new Fi;const{fileOrBlob:o,filename:c,onProgress:d}=n,m=fb(n,["fileOrBlob","filename","onProgress"]);u=sb(this.client,o,{filename:c,onProgress:d});const h=yield u;return d&&d({type:"CREATING_UPLOAD_OBJECT"}),this.create(Object.assign(Object.assign({},m),{path:h}))}),()=>{u?u.cancel():i=!0})}updateFromFileOrBlob(n,i){let u=!1,o;return Ki(()=>cb(this,void 0,void 0,function*(){if(u)throw new Fi;const{fileOrBlob:c,filename:d,onProgress:m}=i,h=fb(i,["fileOrBlob","filename","onProgress"]);o=sb(this.client,c,{filename:d,onProgress:m});const p=yield o;return m&&m({type:"CREATING_UPLOAD_OBJECT"}),this.update(n,Object.assign(Object.assign({},h),{path:p}))}),()=>{o?o.cancel():u=!0})}}class SM extends C0{constructor(n){super(n),this.uploads=new _M(this)}}function x0(r){return new SM(r)}const EM="https://alttext.ai/api/v1/images",TM="datocms";function wM(r){if(r)return r.startsWith("dato-")?r:`dato-${r}`}function OM(r){const n=r.toLowerCase();return/credit|quota|usage limit/.test(n)?"quota":/api.?key|unauthori[sz]ed|forbidden/.test(n)?"auth":"provider"}function CM(r,n){const i=ze(r.alt_texts);if(i){const u=i[n];if(typeof u=="string")return u;const o=n.split("-")[0],c=o?i[o]:void 0;if(typeof c=="string")return c}return typeof r.alt_text=="string"?r.alt_text:""}class AM{id="alttext-ai";apiKey;endpoint;constructor(n){this.apiKey=n.apiKey,this.endpoint=n.endpoint??EM}async generate(n){const i=co(this.id,n),u=await Vr(this.id,this.endpoint,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.apiKey,"X-Client":TM},body:JSON.stringify({image:{url:i.imageUrl,asset_id:wM(i.assetId)},lang:i.locale}),signal:i.signal}),o=ze(u);if(!o)throw new Xe(this.id,"invalid_response","The provider returned an invalid response.",{details:u});if(typeof o.error_code=="string"&&o.error_code){const c=h_(o,o.error_code);throw new Xe(this.id,OM(c),c,{details:o})}return fo(this.id,CM(o,i.locale))}}const xM="https://api.anthropic.com/v1",MM=300;function RM(r){return r.replace(/_/g," ")}function DM(r){const i=ze(r)?.stop_reason;if(!(i==null||i==="end_turn"||i==="stop_sequence"))throw typeof i!="string"?new Xe("anthropic","invalid_response","The response contained an invalid completion state.",{details:r}):new Xe("anthropic",i==="refusal"?"provider":"invalid_response",i==="refusal"?"The model refused to generate alt text for this image.":`The response did not complete normally: ${RM(i)}.`,{details:r})}function qM(r){const n=ze(r);if(!n||!Array.isArray(n.content))return"";const i=[];for(const u of n.content){const o=ze(u);o?.type==="text"&&typeof o.text=="string"&&i.push(o.text)}return i.join(`
|
|
21
|
+
`)}class LM{id="anthropic";apiKey;model;baseUrl;maxOutputTokens;temperature;constructor(n){this.apiKey=n.apiKey,this.model=n.model,this.baseUrl=n.baseUrl??xM,this.maxOutputTokens=n.maxOutputTokens??MM,this.temperature=n.temperature}async generate(n){const i=co(this.id,n),u={model:this.model,max_tokens:this.maxOutputTokens,messages:[{role:"user",content:[{type:"image",source:{type:"url",url:i.imageUrl}},{type:"text",text:i.prompt}]}]};this.temperature!==void 0&&(u.temperature=this.temperature);const o=await Vr(this.id,Ga(this.baseUrl,"messages"),{method:"POST",headers:{"anthropic-dangerous-direct-browser-access":"true","anthropic-version":"2023-06-01","Content-Type":"application/json","x-api-key":this.apiKey},body:JSON.stringify(u),signal:i.signal});return DM(o),fo(this.id,qM(o))}}const zM="https://generativelanguage.googleapis.com/v1beta";function UM(r){return r.startsWith("models/")?r.slice(7):r}function M0(r){return r.replace(/_/g," ").toLowerCase()}function NM(r){if(/^gemini-(?:3(?:\.\d+)?-)?flash(?:-lite)?(?:-|$)/.test(r))return{thinkingLevel:"minimal"};if(r==="gemini-pro-latest"||/^gemini-3(?:[.-]|$)/.test(r))return{thinkingLevel:"low"};if(/^gemini-2\.5-pro(?:-|$)/.test(r))return{thinkingBudget:128};if(/^gemini-2\.5-flash(?:-|$)/.test(r))return{thinkingBudget:0}}function jM(r,n){const i=ze(r),u=i?.blockReason;if(typeof u!="string"||u==="BLOCK_REASON_UNSPECIFIED")return;const o=typeof i?.blockReasonMessage=="string"&&i.blockReasonMessage.trim()?i.blockReasonMessage.trim():`The request was blocked: ${M0(u)}.`;throw new Xe("gemini","provider",o,{details:n})}function HM(r,n){const i=r.finishReason;if(typeof i!="string"||i==="STOP")return;const u=r.finishMessage,o=typeof u=="string"&&u.trim()?u.trim():`The response did not complete normally: ${M0(i)}.`;throw new Xe("gemini",i==="MAX_TOKENS"?"invalid_response":"provider",o,{details:n})}function VM(r,n){if(Array.isArray(r))for(const i of r){const u=ze(i);u&&HM(u,n)}}function GM(r){const n=ze(r);n&&(jM(n.promptFeedback,r),VM(n.candidates,r))}function BM(r){const n=ze(r);if(!n||!Array.isArray(n.candidates))return"";const i=[];for(const u of n.candidates){const o=ze(u),c=ze(o?.content);if(Array.isArray(c?.parts))for(const d of c.parts){const m=ze(d);m?.thought!==!0&&typeof m?.text=="string"&&i.push(m.text)}}return i.join(`
|
|
22
|
+
`)}class IM{id="gemini";apiKey;model;baseUrl;maxOutputTokens;temperature;constructor(n){this.apiKey=n.apiKey,this.model=UM(n.model),this.baseUrl=n.baseUrl??zM,this.maxOutputTokens=n.maxOutputTokens,this.temperature=n.temperature}async generate(n){const i=co(this.id,n),u=await n2(this.id,i.imageUrl,i.signal),o={contents:[{role:"user",parts:[{inline_data:{mime_type:u.mimeType,data:u.data}},{text:i.prompt}]}]},c={};this.maxOutputTokens!==void 0&&(c.maxOutputTokens=this.maxOutputTokens),this.temperature!==void 0&&(c.temperature=this.temperature);const d=NM(this.model);d&&(c.thinkingConfig=d),Object.keys(c).length>0&&(o.generationConfig=c);const m=`models/${encodeURIComponent(this.model)}:generateContent`,h=await Vr(this.id,Ga(this.baseUrl,m),{method:"POST",headers:{"Content-Type":"application/json","x-goog-api-key":this.apiKey},body:JSON.stringify(o),signal:i.signal});return GM(h),fo(this.id,BM(h))}}const PM="https://api.openai.com/v1";function $M(r){const n=r.toLowerCase();return n.startsWith("ft:")?n.split(":")[1]??"":n}function YM(r){const n=$M(r);if(/-pro(?:[.-]|$)/.test(n))return;if(/^o[1-9](?:[.-]|$)/.test(n))return"low";const i=n.match(/^gpt-(\d+)(?:\.(\d+))?/);if(!i||Number(i[1])<5)return;const u=Number(i[1]),o=Number(i[2]??0);return u>5||o>=1?"none":"minimal"}function no(r){return r.replace(/_/g," ")}function kM(r){if(!Array.isArray(r))return null;for(const n of r){const i=ze(n);if(i?.type==="refusal")return typeof i.refusal=="string"&&i.refusal.trim()?i.refusal.trim():"The model refused to generate alt text for this image."}return null}function FM(r,n){if(typeof r.status!="string"||r.status==="completed")return;const i=ze(r.incomplete_details),u=typeof i?.reason=="string"?` (${no(i.reason)})`:"",o=r.status==="failed"?"provider":"invalid_response";throw new Xe("openai",o,`The response did not complete: ${no(r.status)}${u}.`,{details:n})}function KM(r){return r.type!=="refusal"?null:typeof r.refusal=="string"&&r.refusal.trim()?r.refusal.trim():"The model refused to generate alt text for this image."}function XM(r,n){if(typeof r.status=="string"&&r.status!=="completed")throw new Xe("openai","invalid_response",`The generated message did not complete: ${no(r.status)}.`,{details:n});const i=KM(r)??kM(r.content);if(i)throw new Xe("openai","provider",i,{details:n})}function QM(r,n){if(Array.isArray(r))for(const i of r){const u=ze(i);u&&XM(u,n)}}function ZM(r,n){const i=r.finish_reason;if(typeof i=="string"&&i!=="stop")throw new Xe("openai",i==="content_filter"?"provider":"invalid_response",`The response did not complete normally: ${no(i)}.`,{details:n});const u=ze(r.message);if(typeof u?.refusal=="string"&&u.refusal.trim())throw new Xe("openai","provider",u.refusal.trim(),{details:n})}function JM(r,n){if(Array.isArray(r))for(const i of r){const u=ze(i);u&&ZM(u,n)}}function WM(r){const n=ze(r);n&&(FM(n,r),QM(n.output,r),JM(n.choices,r))}function R0(r){if(!Array.isArray(r))return[];const n=[];for(const i of r){const u=ze(i);(u?.type==="output_text"||u?.type==="text")&&typeof u.text=="string"&&n.push(u.text)}return n}function eR(r){if(!Array.isArray(r))return[];const n=[];for(const i of r){const u=ze(i);u&&((u.type==="output_text"||u.type==="text")&&typeof u.text=="string"&&n.push(u.text),n.push(...R0(u.content)))}return n}function tR(r){if(!Array.isArray(r.choices))return"";const n=ze(r.choices[0]),u=ze(n?.message)?.content;return typeof u=="string"?u:R0(u).join(`
|
|
23
|
+
`)}function nR(r){const n=ze(r);return n?typeof n.output_text=="string"?n.output_text:eR(n.output).join(`
|
|
24
|
+
`)||tR(n):""}class rR{id="openai";apiKey;model;baseUrl;maxOutputTokens;constructor(n){this.apiKey=n.apiKey,this.model=n.model,this.baseUrl=n.baseUrl??PM,this.maxOutputTokens=n.maxOutputTokens}async generate(n){const i=co(this.id,n),u={model:this.model,store:!1,input:[{role:"user",content:[{type:"input_text",text:i.prompt},{type:"input_image",image_url:i.imageUrl,detail:"auto"}]}]};this.maxOutputTokens!==void 0&&(u.max_output_tokens=this.maxOutputTokens);const o=YM(this.model);o&&(u.reasoning={effort:o});const c=await Vr(this.id,Ga(this.baseUrl,"responses"),{method:"POST",headers:{Authorization:`Bearer ${this.apiKey}`,"Content-Type":"application/json"},body:JSON.stringify(u),signal:i.signal});return WM(c),fo(this.id,nR(c))}}function zu(r,n,i){const u=n.trim();if(!u)throw new Xe(r,"configuration",`${i} is required.`);return u}function D0(r){const n=zu(r.provider,r.apiKey,"API key");switch(r.provider){case"alttext-ai":return new AM({...r,apiKey:n});case"openai":return new rR({...r,apiKey:n,model:zu(r.provider,r.model,"Model")});case"anthropic":return new LM({...r,apiKey:n,model:zu(r.provider,r.model,"Model")});case"gemini":return new IM({...r,apiKey:n,model:zu(r.provider,r.model,"Model")})}}const aR="jpg",iR="80",lR="max",uR="1024",oR="1024",vo=3,sR=6e4,cR=5e3,fR=6e3,dR=1e3,hR=1e3,pR=8,mR="Unknown error";function Gr(r){return r instanceof Error?r.message:String(r??mR)}function vR(r){const n=r.toLowerCase(),i=n.startsWith("ft:")?n.split(":")[1]??"":n;return/-pro(?:[.-]|$)/.test(i)||/^o[1-9](?:[.-]|$)/.test(i)}function q0(r){switch(r.provider){case"alttext-ai":return{provider:"alttext-ai",apiKey:r.altTextAiApiKey};case"openai":return{provider:"openai",apiKey:r.openAiApiKey,model:r.openAiModel,...vR(r.openAiModel)?{}:{maxOutputTokens:dR}};case"anthropic":return{provider:"anthropic",apiKey:r.anthropicApiKey,model:r.anthropicModel,maxOutputTokens:300};case"gemini":return{provider:"gemini",apiKey:r.geminiApiKey,model:r.geminiModel,maxOutputTokens:hR}}}function kd(r){return typeof r=="string"&&r.trim().length>0}function L0(r,n){return n==="overwrite-all"||!kd(r.alt)}function Fd(r){return typeof r=="object"&&r!==null&&typeof r.upload_id=="string"}function z0(r){return Array.isArray(r)&&r.every(n=>Fd(n))}function yR(r){return w_(r.formValues,r.fieldPath)}function U0(r){return Fd(r)?!0:z0(r)&&r.length>0}function gR(r){const n=new URL(r);return n.searchParams.set("fm",aR),n.searchParams.set("q",iR),n.searchParams.set("fit",lR),n.searchParams.set("w",uR),n.searchParams.set("h",oR),n.toString()}async function yo(r,n,i){if(r.length===0)return[];const u=Math.max(1,Math.min(n,r.length)),o=new Array(r.length);let c=0;const d=async()=>{const m=c;if(c+=1,!(m>=r.length)){try{o[m]={status:"fulfilled",value:await i(r[m],m)}}catch(h){o[m]={status:"rejected",reason:h}}await d()}};return await Promise.all(Array.from({length:u},()=>d())),o}async function N0(r){const n=new AbortController;let i;const u=new Promise((o,c)=>{i=setTimeout(()=>{c(new Error("Alt text generation timed out after 60 seconds.")),n.abort()},sR)});try{return await Promise.race([r(n.signal),u])}finally{i!==void 0&&clearTimeout(i)}}function j0(r,n,i,u,o,c){if(!r.is_image)throw new Error(`Asset ${r.id} is not an image.`);return i.generate({imageUrl:gR(r.url),assetId:n,locale:o,filename:r.filename,promptTemplate:u.prompt,signal:c})}async function bR(r,n,i,u){return N0(o=>j0(r,r.id,n,i,u,o))}async function H0(r,n,i,u,o){return N0(async c=>{const d=await i.uploads.find(r.upload_id);return j0(d,r.upload_id,n,u,o,c)})}function Kd(r){const n=r.slice(0,pR),i=r.length-n.length;return i>0&&n.push(`…and ${i} more error(s).`),`Alt text generation errors:
|
|
25
|
+
${n.join(`
|
|
26
|
+
`)}`}function Od(r,n){r.customToast({type:"warning",message:n,dismissOnPageChange:!0,dismissAfterTimeout:cR})}function V0(r){Od(r,"Generating alts, this can take some time…")}function nd(r,n){return`${r} ${n}${r===1?"":"s"}`}function _R(r,n,i){const u=new Map,o=new Map;for(const p of n)u.set(p.upload.id,(u.get(p.upload.id)??0)+1);const c=u.size;let d=0,m=0,h=Date.now();return Od(r,`Generating ${nd(n.length,"alt text")} for ${nd(c,"asset")} across ${nd(i,"locale")}…`),p=>{d+=1;const y=(o.get(p.upload.id)??0)+1;o.set(p.upload.id,y),y===u.get(p.upload.id)&&(m+=1);const g=Date.now();d===n.length||g-h<fR||(h=g,Od(r,`Generating alt texts… ${d} of ${n.length} locale versions processed; ${m} of ${c} assets finished.`))}}async function SR(r,n,i,u,o,c){if(!L0(r,c)){await o.notice("Alt text already exists for this asset.");return}V0(o);try{const d=await H0(r,n,i,u,o.locale);await o.setFieldValue(o.fieldPath,{...r,alt:d}),await o.notice(`Alt text generated with ${Zi[u.provider]}.`)}catch(d){await o.alert(`Could not generate alt text: ${Gr(d)}`)}}async function ER(r,n,i,u,o,c){const d=[];for(const[g,b]of r.entries())L0(b,c)&&d.push({asset:b,index:g});if(d.length===0){await o.notice("No assets need alt text generation.");return}V0(o);const m=await yo(d,vo,({asset:g})=>H0(g,n,i,u,o.locale)),h=[...r],p=[];let y=0;for(const[g,b]of m.entries()){const{asset:S,index:E}=d[g];if(b.status==="rejected"){p.push(`${S.upload_id}: ${Gr(b.reason)}`);continue}h[E]={...S,alt:b.value},y+=1}y>0&&(await o.setFieldValue(o.fieldPath,h),await o.notice(`${y} alt text${y===1?"":"s"} generated with ${Zi[u.provider]}.`)),p.length>0&&await o.alert(Kd(p))}function G0(r){return`${r} non-image asset${r===1?"":"s"} skipped.`}function B0(r){return r.filename.trim()||r.id}function I0(r){return r.default_field_metadata}function P0(r){return"focal_point"in r}function TR(r,n){const i=I0(r);return P0(i)?i.alt[n]:i[n]?.alt}function wR(r){return r.attributes.filename.trim()||r.id}function OR(r,n,i){return r.flatMap(u=>n.filter(o=>i==="overwrite-all"||!kd(TR(u,o))).map(o=>({upload:u,locale:o})))}function CR(r,n,i){const u=I0(r),o=P0(u),c=o?{...u.alt}:{},d={};let m=0;for(const[h,p]of n){const y=o?u.alt[h]:u[h]?.alt;i==="missing-only"&&kd(y)||(o?c[h]=p:d[h]={alt:p},m+=1)}return{metadata:o?{alt:c}:d,updatedAltCount:m}}async function AR(r,n){return await r.openConfirm({title:"Regenerate asset alt texts?",content:`This will immediately replace existing default alt text for ${n} image asset${n===1?"":"s"} in every locale. This action cannot be undone.`,choices:[{label:"Regenerate alt texts",value:!0,intent:"negative"}],cancel:{label:"Cancel",value:!1}})===!0}async function xR(r,n){const i=await yo(n,vo,c=>r.uploads.find(c.id)),u=[],o=[];for(const[c,d]of i.entries())d.status==="rejected"?o.push(`${wR(n[c])}: Could not load asset: ${Gr(d.reason)}`):u.push(d.value);return{uploads:u,errors:o}}async function MR(r,n,i,u,o){if(i===0)(n===0||u>0)&&await r.notice("No image assets selected.");else{const c=u?` ${G0(u)}`:"";await r.notice(`All selected image assets already have alt text for every locale.${c}`)}o.length>0&&await r.alert(Kd(o))}async function RR(r,n,i,u){const o=await yo(r,vo,async m=>{try{return{...m,alt:await bR(m.upload,n,i,m.locale)}}finally{u(m)}}),c=new Map,d=[];for(const[m,h]of o.entries()){const p=r[m];if(h.status==="rejected"){d.push(`${B0(p.upload)} (${p.locale}): ${Gr(h.reason)}`);continue}const y=c.get(h.value.upload.id)??{upload:h.value.upload,alts:new Map};y.alts.set(h.value.locale,h.value.alt),c.set(h.value.upload.id,y)}return{groups:Array.from(c.values()),errors:d}}async function DR(r,n,i){const u=await yo(n,vo,async({upload:c,alts:d})=>{const m=await r.uploads.find(c.id);if(!m.is_image)throw new Error("The asset is no longer an image.");const{metadata:h,updatedAltCount:p}=CR(m,d,i);return p>0&&await r.uploads.update(m.id,{default_field_metadata:h}),p}),o={updatedAltCount:0,updatedUploadCount:0,errors:[]};for(const[c,d]of u.entries())d.status==="rejected"?o.errors.push(`${B0(n[c].upload)}: Could not save generated alt text: ${Gr(d.reason)}`):d.value>0&&(o.updatedAltCount+=d.value,o.updatedUploadCount+=1);return o}async function qR(r,n,i,u,o,c){const d=[];u.updatedAltCount>0?d.push(`${u.updatedAltCount} alt text${u.updatedAltCount===1?"":"s"} generated for ${u.updatedUploadCount} asset${u.updatedUploadCount===1?"":"s"} with ${Zi[n.provider]}.`):i>0&&c.length===0&&d.push("No alt texts were changed because newer asset metadata was preserved."),o>0&&d.push(G0(o)),d.length>0&&await r.notice(d.join(" ")),c.length>0&&await r.alert(Kd(c))}async function LR(r,n,i){if(!r.currentUserAccessToken){await r.alert("This plugin needs the currentUserAccessToken permission to update asset metadata. Grant the permission and try again.");return}const u=ki(r.plugin.attributes.parameters),o=eo(u);if(o){await r.alert(`${o} Configure the provider in the plugin settings.`);return}try{const c=x0({apiToken:r.currentUserAccessToken,environment:r.environment,baseUrl:r.cmaBaseUrl}),d=await xR(c,n),m=d.uploads.filter(M=>M.is_image),h=d.uploads.length-m.length,p=Array.from(new Set(r.site.attributes.locales)),y=OR(m,p,i);if(y.length===0){await MR(r,n.length,m.length,h,d.errors);return}if(i==="overwrite-all"&&!await AR(r,m.length))return;const g=D0(q0(u)),b=_R(r,y,p.length),S=await RR(y,g,u,b),E=await DR(c,S.groups,i),w=[...d.errors,...S.errors,...E.errors];await qR(r,u,S.groups.length,E,h,w)}catch(c){console.error("Unexpected upload alt text generation error:",c),await r.alert(`Unexpected error while generating asset alt text: ${Gr(c)}`)}}async function zR(r,n){if(r.disabled){await r.notice("This field is read-only.");return}if(!r.currentUserAccessToken){await r.alert("This plugin needs the currentUserAccessToken permission to load asset URLs. Grant the permission and try again.");return}const i=ki(r.plugin.attributes.parameters),u=eo(i);if(u){await r.alert(`${u} Configure the provider in the plugin settings.`);return}const o=yR(r);if(!U0(o)){await r.notice("No asset selected in this field.");return}let c=!1;try{await r.disableField(r.fieldPath,!0),c=!0;const d=x0({apiToken:r.currentUserAccessToken,environment:r.environment,baseUrl:r.cmaBaseUrl}),m=D0(q0(i));if(z0(o)){await ER(o,m,d,i,r,n);return}if(Fd(o)){await SR(o,m,d,i,r,n);return}await r.notice("No asset selected in this field.")}catch(d){console.error("Unexpected alt text generation error:",d),await r.alert(`Unexpected error while generating alt text: ${Gr(d)}`)}finally{if(c)try{await r.disableField(r.fieldPath,!1)}catch(d){console.error("Could not re-enable the asset field:",d)}}}const $0="generate-missing-alts",Y0="regenerate-all-alts",db={[$0]:"missing-only",[Y0]:"overwrite-all"};function UR(r){return r.attributes.field_type==="gallery"||r.attributes.field_type==="file"}function hb(r=!1){return[{id:$0,label:"Generate missing alt texts",icon:"magic",disabled:r},{id:Y0,label:"Regenerate all alt texts",icon:"images",disabled:r}]}rT({renderConfigScreen(r){return V2(Fe.jsx(q2,{ctx:r}))},fieldDropdownActions(r,n){if(!UR(r))return[];const i=w_(n.formValues,n.fieldPath),u=U0(i);return hb(!u||n.disabled)},async executeFieldDropdownAction(r,n){const i=db[r];i&&await zR(n,i)},uploadsDropdownActions(){return hb()},async executeUploadsDropdownAction(r,n,i){const u=db[r];u&&await LR(i,n,u)}});
|