datocms-plugin-asset-optimization 0.5.0 → 0.7.0

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.
@@ -1,64 +0,0 @@
1
- function zm(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ga(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vd={exports:{}},_a={},yd={exports:{}},J={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var ki=Symbol.for("react.element"),Fm=Symbol.for("react.portal"),Am=Symbol.for("react.fragment"),Dm=Symbol.for("react.strict_mode"),$m=Symbol.for("react.profiler"),Vm=Symbol.for("react.provider"),Um=Symbol.for("react.context"),qm=Symbol.for("react.forward_ref"),Bm=Symbol.for("react.suspense"),Hm=Symbol.for("react.memo"),Gm=Symbol.for("react.lazy"),hc=Symbol.iterator;function Wm(e){return e===null||typeof e!="object"?null:(e=hc&&e[hc]||e["@@iterator"],typeof e=="function"?e:null)}var gd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_d=Object.assign,wd={};function Lr(e,t,n){this.props=e,this.context=t,this.refs=wd,this.updater=n||gd}Lr.prototype.isReactComponent={};Lr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Lr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Sd(){}Sd.prototype=Lr.prototype;function tl(e,t,n){this.props=e,this.context=t,this.refs=wd,this.updater=n||gd}var nl=tl.prototype=new Sd;nl.constructor=tl;_d(nl,Lr.prototype);nl.isPureReactComponent=!0;var mc=Array.isArray,xd=Object.prototype.hasOwnProperty,rl={current:null},Ed={key:!0,ref:!0,__self:!0,__source:!0};function bd(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)xd.call(t,r)&&!Ed.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var l=Array(u),s=0;s<u;s++)l[s]=arguments[s+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:ki,type:e,key:o,ref:a,props:i,_owner:rl.current}}function Ym(e,t){return{$$typeof:ki,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function il(e){return typeof e=="object"&&e!==null&&e.$$typeof===ki}function Km(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var vc=/\/+/g;function es(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Km(""+e.key):t.toString(36)}function lo(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case ki:case Fm:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+es(a,0):r,mc(i)?(n="",e!=null&&(n=e.replace(vc,"$&/")+"/"),lo(i,t,n,"",function(s){return s})):i!=null&&(il(i)&&(i=Ym(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(vc,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",mc(e))for(var u=0;u<e.length;u++){o=e[u];var l=r+es(o,u);a+=lo(o,t,n,l,i)}else if(l=Wm(e),typeof l=="function")for(e=l.call(e),u=0;!(o=e.next()).done;)o=o.value,l=r+es(o,u++),a+=lo(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function zi(e,t,n){if(e==null)return e;var r=[],i=0;return lo(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Qm(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var $e={current:null},co={transition:null},Xm={ReactCurrentDispatcher:$e,ReactCurrentBatchConfig:co,ReactCurrentOwner:rl};function Od(){throw Error("act(...) is not supported in production builds of React.")}J.Children={map:zi,forEach:function(e,t,n){zi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return zi(e,function(){t++}),t},toArray:function(e){return zi(e,function(t){return t})||[]},only:function(e){if(!il(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};J.Component=Lr;J.Fragment=Am;J.Profiler=$m;J.PureComponent=tl;J.StrictMode=Dm;J.Suspense=Bm;J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xm;J.act=Od;J.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=_d({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=rl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)xd.call(t,l)&&!Ed.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&u!==void 0?u[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){u=Array(l);for(var s=0;s<l;s++)u[s]=arguments[s+2];r.children=u}return{$$typeof:ki,type:e.type,key:i,ref:o,props:r,_owner:a}};J.createContext=function(e){return e={$$typeof:Um,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Vm,_context:e},e.Consumer=e};J.createElement=bd;J.createFactory=function(e){var t=bd.bind(null,e);return t.type=e,t};J.createRef=function(){return{current:null}};J.forwardRef=function(e){return{$$typeof:qm,render:e}};J.isValidElement=il;J.lazy=function(e){return{$$typeof:Gm,_payload:{_status:-1,_result:e},_init:Qm}};J.memo=function(e,t){return{$$typeof:Hm,type:e,compare:t===void 0?null:t}};J.startTransition=function(e){var t=co.transition;co.transition={};try{e()}finally{co.transition=t}};J.unstable_act=Od;J.useCallback=function(e,t){return $e.current.useCallback(e,t)};J.useContext=function(e){return $e.current.useContext(e)};J.useDebugValue=function(){};J.useDeferredValue=function(e){return $e.current.useDeferredValue(e)};J.useEffect=function(e,t){return $e.current.useEffect(e,t)};J.useId=function(){return $e.current.useId()};J.useImperativeHandle=function(e,t,n){return $e.current.useImperativeHandle(e,t,n)};J.useInsertionEffect=function(e,t){return $e.current.useInsertionEffect(e,t)};J.useLayoutEffect=function(e,t){return $e.current.useLayoutEffect(e,t)};J.useMemo=function(e,t){return $e.current.useMemo(e,t)};J.useReducer=function(e,t,n){return $e.current.useReducer(e,t,n)};J.useRef=function(e){return $e.current.useRef(e)};J.useState=function(e){return $e.current.useState(e)};J.useSyncExternalStore=function(e,t,n){return $e.current.useSyncExternalStore(e,t,n)};J.useTransition=function(){return $e.current.useTransition()};J.version="18.3.1";yd.exports=J;var k=yd.exports;const G=ga(k),yc=zm({__proto__:null,default:G},[k]);/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Jm=k,Zm=Symbol.for("react.element"),ev=Symbol.for("react.fragment"),tv=Object.prototype.hasOwnProperty,nv=Jm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rv={key:!0,ref:!0,__self:!0,__source:!0};function Cd(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)tv.call(t,r)&&!rv.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Zm,type:e,key:o,ref:a,props:i,_owner:nv.current}}_a.Fragment=ev;_a.jsx=Cd;_a.jsxs=Cd;vd.exports=_a;var _=vd.exports,As={exports:{}},we={};Object.defineProperty(we,"__esModule",{value:!0});we.DATA_CLONE_ERROR=we.MESSAGE=we.REJECTED=we.FULFILLED=we.REPLY=we.CALL=we.HANDSHAKE_REPLY=we.HANDSHAKE=void 0;const iv="handshake";we.HANDSHAKE=iv;const ov="handshake-reply";we.HANDSHAKE_REPLY=ov;const av="call";we.CALL=av;const sv="reply";we.REPLY=sv;const uv="fulfilled";we.FULFILLED=uv;const lv="rejected";we.REJECTED=lv;const cv="message";we.MESSAGE=cv;const fv="DataCloneError";we.DATA_CLONE_ERROR=fv;var vt={};Object.defineProperty(vt,"__esModule",{value:!0});vt.ERR_NO_IFRAME_SRC=vt.ERR_NOT_IN_IFRAME=vt.ERR_CONNECTION_TIMEOUT=vt.ERR_CONNECTION_DESTROYED=void 0;const dv="ConnectionDestroyed";vt.ERR_CONNECTION_DESTROYED=dv;const pv="ConnectionTimeout";vt.ERR_CONNECTION_TIMEOUT=pv;const hv="NotInIframe";vt.ERR_NOT_IN_IFRAME=hv;const mv="NoIframeSrc";vt.ERR_NO_IFRAME_SRC=mv;var Ds={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=()=>{const r=[];let i=!1;return{destroy(){i=!0,r.forEach(o=>{o()})},onDestroy(o){i?o():r.push(o)}}};t.default=n,e.exports=t.default})(Ds,Ds.exports);var vv=Ds.exports,$s={exports:{}},Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.deserializeError=Fn.serializeError=void 0;const yv=e=>{let t=e.name,n=e.message,r=e.stack;return{name:t,message:n,stack:r}};Fn.serializeError=yv;const gv=e=>{const t=new Error;return Object.keys(e).forEach(n=>t[n]=e[n]),t};Fn.deserializeError=gv;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=we,r=Fn,i=(o,a,u)=>{const l=o.localName,s=o.local,c=o.remote,d=o.originForSending,f=o.originForReceiving;let h=!1;u(`${l}: Connecting call receiver`);const p=y=>{if(y.source!==c||y.data.penpal!==n.CALL)return;if(y.origin!==f){u(`${l} received message from origin ${y.origin} which did not match expected origin ${f}`);return}const x=y.data,m=x.methodName,v=x.args,g=x.id;u(`${l}: Received ${m}() call`);const w=E=>b=>{if(u(`${l}: Sending ${m}() reply`),h){u(`${l}: Unable to send ${m}() reply due to destroyed connection`);return}const O={penpal:n.REPLY,id:g,resolution:E,returnValue:b};E===n.REJECTED&&b instanceof Error&&(O.returnValue=(0,r.serializeError)(b),O.returnValueIsError=!0);try{c.postMessage(O,d)}catch(P){throw P.name===n.DATA_CLONE_ERROR&&c.postMessage({penpal:n.REPLY,id:g,resolution:n.REJECTED,returnValue:(0,r.serializeError)(P),returnValueIsError:!0},d),P}};new Promise(E=>E(a[m].apply(a,v))).then(w(n.FULFILLED),w(n.REJECTED))};return s.addEventListener(n.MESSAGE,p),()=>{h=!0,s.removeEventListener(n.MESSAGE,p)}};t.default=i,e.exports=t.default})($s,$s.exports);var _v=$s.exports,Vs={exports:{}},Us={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n=0;var r=()=>++n;t.default=r,e.exports=t.default})(Us,Us.exports);var wv=Us.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=we,r=vt,i=a(wv),o=Fn;function a(l){return l&&l.__esModule?l:{default:l}}var u=(l,s,c,d,f)=>{const h=s.localName,p=s.local,y=s.remote,x=s.originForSending,m=s.originForReceiving;let v=!1;f(`${h}: Connecting call sender`);const g=w=>function(){for(var E=arguments.length,b=new Array(E),O=0;O<E;O++)b[O]=arguments[O];f(`${h}: Sending ${w}() call`);let P;try{y.closed&&(P=!0)}catch{P=!0}if(P&&d(),v){const R=new Error(`Unable to send ${w}() call due to destroyed connection`);throw R.code=r.ERR_CONNECTION_DESTROYED,R}return new Promise((R,I)=>{const z=(0,i.default)(),F=U=>{if(U.source!==y||U.data.penpal!==n.REPLY||U.data.id!==z)return;if(U.origin!==m){f(`${h} received message from origin ${U.origin} which did not match expected origin ${m}`);return}f(`${h}: Received ${w}() reply`),p.removeEventListener(n.MESSAGE,F);let Y=U.data.returnValue;U.data.returnValueIsError&&(Y=(0,o.deserializeError)(Y)),(U.data.resolution===n.FULFILLED?R:I)(Y)};p.addEventListener(n.MESSAGE,F),y.postMessage({penpal:n.CALL,id:z,methodName:w,args:b},x)})};return c.reduce((w,E)=>(w[E]=g(E),w),l),()=>{v=!0}};t.default=u,e.exports=t.default})(Vs,Vs.exports);var Sv=Vs.exports,qs={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r=>function(){if(r){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];console.log("[Penpal]",...o)}};t.default=n,e.exports=t.default})(qs,qs.exports);var xv=qs.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=we,r=vt,i=l(vv),o=l(_v),a=l(Sv),u=l(xv);function l(c){return c&&c.__esModule?c:{default:c}}var s=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=d.parentOrigin,h=f===void 0?"*":f,p=d.methods,y=p===void 0?{}:p,x=d.timeout,m=d.debug;const v=(0,u.default)(m);if(window===window.top){const R=new Error("connectToParent() must be called within an iframe");throw R.code=r.ERR_NOT_IN_IFRAME,R}const g=(0,i.default)(),w=g.destroy,E=g.onDestroy,b=window,O=b.parent;return{promise:new Promise((R,I)=>{let z;x!==void 0&&(z=setTimeout(()=>{const U=new Error(`Connection to parent timed out after ${x}ms`);U.code=r.ERR_CONNECTION_TIMEOUT,I(U),w()},x));const F=U=>{try{clearTimeout()}catch{return}if(U.source!==O||U.data.penpal!==n.HANDSHAKE_REPLY)return;if(h!=="*"&&h!==U.origin){v(`Child received handshake reply from origin ${U.origin} which did not match expected origin ${h}`);return}v("Child: Received handshake reply"),b.removeEventListener(n.MESSAGE,F);const Y={localName:"Child",local:b,remote:O,originForSending:U.origin==="null"?"*":U.origin,originForReceiving:U.origin},K={},Q=(0,o.default)(Y,y,v);E(Q);const oe=(0,a.default)(K,Y,U.data.methodNames,w,v);E(oe),clearTimeout(z),R(K)};b.addEventListener(n.MESSAGE,F),E(()=>{b.removeEventListener(n.MESSAGE,F);const U=new Error("Connection destroyed");U.code=r.ERR_CONNECTION_DESTROYED,I(U)}),v("Child: Sending handshake"),O.postMessage({penpal:n.HANDSHAKE,methodNames:Object.keys(y)},h)}),destroy:w}};t.default=s,e.exports=t.default})(As,As.exports);var Ev=As.exports;const bv=ga(Ev);var kt=function(){return kt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},kt.apply(this,arguments)};function gc(e,t){for(var n=kt({},e),r=0,i=t;r<i.length;r++){var o=i[r];delete n[o]}return n}function ts(e){return function(t,n){if(e){for(var r={},i=0,o=t;i<o.length;i++){var a=o[i],u=n.itemTypes[a.relationships.item_type.data.id];r[a.id]=e(a,kt(kt({},n),{itemType:u}))}return r}}}function Qt(e,t){var n=function(r,i,o){if(o.mode===e){var a=Cv(i),u=function(l){t(r,kt(kt(kt({},i),l),a))};return u(o),u}};return n.mode=e,n}function ol(e,t){var n=function(r,i,o){if(o.mode===e){var a=function(u){t(r,kt(kt({},i),u))};return a(o),a}};return n.mode=e,n}function Ov(){for(var e=document.querySelectorAll("body *"),t=0,n=0;n<e.length;n++)t=Math.max(e[n].getBoundingClientRect().bottom,t);return t}var Cv=function(e){var t=null,n=function(s){var c=s===void 0?Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.getBoundingClientRect().height,Ov()):s;c!==t&&(e.setHeight(c),t=c)},r=null,i=null,o=function(){return n()},a=function(){n(),r||(r=new ResizeObserver(o),r.observe(document.documentElement)),i||(i=new MutationObserver(o),i.observe(window.document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}))},u=function(){r&&(r.disconnect(),r=null),i&&(i.disconnect(),i=null)},l=function(){return!!r};return{updateHeight:n,startAutoResizer:a,stopAutoResizer:u,isAutoResizerActive:l}},Pv=Qt("renderAssetSource",function(e,t){e.renderAssetSource&&e.renderAssetSource(t.assetSourceId,t)}),Tv=Qt("renderConfigScreen",function(e,t){e.renderConfigScreen&&e.renderConfigScreen(t)}),kv=Qt("renderFieldExtension",function(e,t){e.renderFieldExtension&&e.renderFieldExtension(t.fieldExtensionId,t)}),jv=Qt("renderItemCollectionOutlet",function(e,t){e.renderItemCollectionOutlet&&e.renderItemCollectionOutlet(t.itemCollectionOutletId,t)}),Iv=Qt("renderItemFormOutlet",function(e,t){e.renderItemFormOutlet&&e.renderItemFormOutlet(t.itemFormOutletId,t)}),Lv=ol("renderItemFormSidebar",function(e,t){e.renderItemFormSidebar&&e.renderItemFormSidebar(t.sidebarId,t)}),Rv=Qt("renderItemFormSidebarPanel",function(e,t){e.renderItemFormSidebarPanel&&e.renderItemFormSidebarPanel(t.sidebarPaneId,t)}),Nv=Qt("renderManualFieldExtensionConfigScreen",function(e,t){e.renderManualFieldExtensionConfigScreen&&e.renderManualFieldExtensionConfigScreen(t.fieldExtensionId,t)}),Mv=Qt("renderModal",function(e,t){e.renderModal&&e.renderModal(t.modalId,t)}),zv=ol("renderPage",function(e,t){e.renderPage&&e.renderPage(t.pageId,t)}),Fv=ol("renderUploadSidebar",function(e,t){e.renderUploadSidebar&&e.renderUploadSidebar(t.sidebarId,t)}),Av=Qt("renderUploadSidebarPanel",function(e,t){e.renderUploadSidebarPanel&&e.renderUploadSidebarPanel(t.sidebarPaneId,t)}),rt=function(){return rt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},rt.apply(this,arguments)},Dv=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(c){try{s(r.next(c))}catch(d){a(d)}}function l(c){try{s(r.throw(c))}catch(d){a(d)}}function s(c){c.done?o(c.value):i(c.value).then(u,l)}s((r=r.apply(e,t||[])).next())})},$v=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},_c=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function Vv(){return Dv(this,arguments,void 0,function(e){var t,n,r,i,o,a,u,l,s,c,d,f;return e===void 0&&(e={}),$v(this,function(h){switch(h.label){case 0:return t=null,n=null,r=rt(rt({},e),{overrideFieldExtensions:ts(e.overrideFieldExtensions),customMarksForStructuredTextField:ts(e.customMarksForStructuredTextField),customBlockStylesForStructuredTextField:ts(e.customBlockStylesForStructuredTextField)}),i=bv({methods:rt(rt({sdkVersion:function(){return"0.3.0"},implementedHooks:function(){return Object.fromEntries(Object.keys(e).map(function(p){return[p,!0]}))}},Object.fromEntries(Object.entries(r).filter(function(p){var y=p[0];return!y.startsWith("render")}))),{onChange:function(p){t&&t(p)},callMethodMergingBootCtx:function(p,y,x,m,v){return n?n(p,y,x,m,v):null}})}),[4,i.promise];case 1:return o=h.sent(),[4,o.getSettings()];case 2:for(a=h.sent(),a.mode==="onBoot"&&(u=a,t=function(p){u=p},n=function(p,y,x,m,v){var g;if(p in r)return(g=r)[p].apply(g,_c(_c([],y,!1),[rt(rt(rt(rt({},gc(o,["getSettings","setHeight"])),gc(u,["mode","bodyPadding"])),Object.fromEntries(m.map(function(w){return[w,function(){for(var b=[],O=0;O<arguments.length;O++)b[O]=arguments[O];return o.callAdditionalCtxMethod(v,w,b)}]}))),x)],!1))},r.onBoot&&r.onBoot(rt(rt({},o),u))),l={renderAssetSource:Pv,renderConfigScreen:Tv,renderFieldExtension:kv,renderItemCollectionOutlet:jv,renderItemFormOutlet:Iv,renderItemFormSidebar:Lv,renderItemFormSidebarPanel:Rv,renderManualFieldExtensionConfigScreen:Nv,renderModal:Mv,renderPage:zv,renderUploadSidebar:Fv,renderUploadSidebarPanel:Av},s=0,c=Object.values(l);s<c.length;s++)if(d=c[s],f=d(r,o,a),f){t=f;break}return[2]}})})}var Pd={exports:{}};/*!
18
- Copyright (c) 2018 Jed Watson.
19
- Licensed under the MIT License (MIT), see
20
- http://jedwatson.github.io/classnames
21
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var u=arguments[a];u&&(o=i(o,r(u)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var u in o)t.call(o,u)&&o[u]&&(a=i(a,u));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Pd);var Uv=Pd.exports;const Rt=ga(Uv),qv="_button_474wk_1",Bv="_disabled_474wk_30",Hv="_fullWidth_474wk_118",Gv="_button__leftIcon_474wk_124",Wv="_button__rightIcon_474wk_125",xn={button:qv,disabled:Bv,"buttonType-muted":"_buttonType-muted_474wk_34","buttonType-primary":"_buttonType-primary_474wk_50","buttonType-negative":"_buttonType-negative_474wk_71","buttonSize-xxs":"_buttonSize-xxs_474wk_88","buttonSize-xs":"_buttonSize-xs_474wk_93","buttonSize-s":"_buttonSize-s_474wk_98","buttonSize-m":"_buttonSize-m_474wk_103","buttonSize-l":"_buttonSize-l_474wk_108","buttonSize-xl":"_buttonSize-xl_474wk_113",fullWidth:Hv,button__leftIcon:Gv,button__rightIcon:Wv};function un(e){var t,n=e.children,r=e.className,i=e.disabled,o=e.buttonType,a=o===void 0?"muted":o,u=e.buttonSize,l=u===void 0?"m":u,s=e.fullWidth,c=e.onClick,d=e.style,f=e.leftIcon,h=e.rightIcon,p=e.type,y=p===void 0?"button":p;return G.createElement("button",{type:y,className:Rt(xn.button,xn["buttonType-".concat(a)],xn["buttonSize-".concat(l)],(t={},t[xn.disabled]=i,t[xn.fullWidth]=s,t),r),disabled:i,onClick:c,style:d},f&&G.createElement("span",{className:xn.button__leftIcon},f),n&&G.createElement("span",null,n),h&&G.createElement("span",{className:xn.button__rightIcon},h))}var Bs=function(){return Bs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Bs.apply(this,arguments)};function wc(e){return e===e.toLowerCase()?e:e.replace(/[A-Z]/g,function(t){return"-".concat(t.toLowerCase())})}function Yv(e,t){return t===void 0&&(t=!1),Bs({padding:t?void 0:e.bodyPadding.map(function(n){return"".concat(n,"px")}).join(" ")},Object.fromEntries(Object.entries(e.theme).flatMap(function(n){var r,i=n[0],o=n[1];return[["--".concat(wc(i)),o],["--".concat(wc("".concat(i,"RgbComponents"))),((r=o.match(/rgb\((\d+, \d+, \d+)\)/))===null||r===void 0?void 0:r[1])||void 0]]})))}const Kv="_themeVariables_ovgoa_1",Qv="_canvas_ovgoa_68",Sc={themeVariables:Kv,canvas:Qv};var Xv=k.createContext(null);function Td(e){var t=e.ctx,n=e.children,r=e.noAutoResizer,i=t.mode;return k.useEffect(function(){if(!r&&"startAutoResizer"in t){var o=t;return o.startAutoResizer(),function(){o.stopAutoResizer()}}},[i,r]),G.createElement(Xv.Provider,{value:t},G.createElement("div",{className:Rt(Sc.themeVariables,Sc.canvas),style:Yv(t)},n))}var kd={exports:{}},Ze={},jd={exports:{}},Id={};/**
22
- * @license React
23
- * scheduler.production.min.js
24
- *
25
- * Copyright (c) Facebook, Inc. and its affiliates.
26
- *
27
- * This source code is licensed under the MIT license found in the
28
- * LICENSE file in the root directory of this source tree.
29
- */(function(e){function t(j,A){var D=j.length;j.push(A);e:for(;0<D;){var Z=D-1>>>1,q=j[Z];if(0<i(q,A))j[Z]=A,j[D]=q,D=Z;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var A=j[0],D=j.pop();if(D!==A){j[0]=D;e:for(var Z=0,q=j.length,W=q>>>1;Z<W;){var te=2*(Z+1)-1,X=j[te],ne=te+1,ge=j[ne];if(0>i(X,D))ne<q&&0>i(ge,X)?(j[Z]=ge,j[ne]=D,Z=ne):(j[Z]=X,j[te]=D,Z=te);else if(ne<q&&0>i(ge,D))j[Z]=ge,j[ne]=D,Z=ne;else break e}}return A}function i(j,A){var D=j.sortIndex-A.sortIndex;return D!==0?D:j.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,u=a.now();e.unstable_now=function(){return a.now()-u}}var l=[],s=[],c=1,d=null,f=3,h=!1,p=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(j){for(var A=n(s);A!==null;){if(A.callback===null)r(s);else if(A.startTime<=j)r(s),A.sortIndex=A.expirationTime,t(l,A);else break;A=n(s)}}function w(j){if(y=!1,g(j),!p)if(n(l)!==null)p=!0,Q(E);else{var A=n(s);A!==null&&oe(w,A.startTime-j)}}function E(j,A){p=!1,y&&(y=!1,m(P),P=-1),h=!0;var D=f;try{for(g(A),d=n(l);d!==null&&(!(d.expirationTime>A)||j&&!z());){var Z=d.callback;if(typeof Z=="function"){d.callback=null,f=d.priorityLevel;var q=Z(d.expirationTime<=A);A=e.unstable_now(),typeof q=="function"?d.callback=q:d===n(l)&&r(l),g(A)}else r(l);d=n(l)}if(d!==null)var W=!0;else{var te=n(s);te!==null&&oe(w,te.startTime-A),W=!1}return W}finally{d=null,f=D,h=!1}}var b=!1,O=null,P=-1,R=5,I=-1;function z(){return!(e.unstable_now()-I<R)}function F(){if(O!==null){var j=e.unstable_now();I=j;var A=!0;try{A=O(!0,j)}finally{A?U():(b=!1,O=null)}}else b=!1}var U;if(typeof v=="function")U=function(){v(F)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,K=Y.port2;Y.port1.onmessage=F,U=function(){K.postMessage(null)}}else U=function(){x(F,0)};function Q(j){O=j,b||(b=!0,U())}function oe(j,A){P=x(function(){j(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,Q(E))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(j){switch(f){case 1:case 2:case 3:var A=3;break;default:A=f}var D=f;f=A;try{return j()}finally{f=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,A){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var D=f;f=j;try{return A()}finally{f=D}},e.unstable_scheduleCallback=function(j,A,D){var Z=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?Z+D:Z):D=Z,j){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=D+q,j={id:c++,callback:A,priorityLevel:j,startTime:D,expirationTime:q,sortIndex:-1},D>Z?(j.sortIndex=D,t(s,j),n(l)===null&&j===n(s)&&(y?(m(P),P=-1):y=!0,oe(w,D-Z))):(j.sortIndex=q,t(l,j),p||h||(p=!0,Q(E))),j},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(j){var A=f;return function(){var D=f;f=A;try{return j.apply(this,arguments)}finally{f=D}}}})(Id);jd.exports=Id;var Jv=jd.exports;/**
30
- * @license React
31
- * react-dom.production.min.js
32
- *
33
- * Copyright (c) Facebook, Inc. and its affiliates.
34
- *
35
- * This source code is licensed under the MIT license found in the
36
- * LICENSE file in the root directory of this source tree.
37
- */var Zv=k,Je=Jv;function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ld=new Set,li={};function Hn(e,t){br(e,t),br(e+"Capture",t)}function br(e,t){for(li[e]=t,e=0;e<t.length;e++)Ld.add(t[e])}var Bt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hs=Object.prototype.hasOwnProperty,ey=/^[: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]*$/,xc={},Ec={};function ty(e){return Hs.call(Ec,e)?!0:Hs.call(xc,e)?!1:ey.test(e)?Ec[e]=!0:(xc[e]=!0,!1)}function ny(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ry(e,t,n,r){if(t===null||typeof t>"u"||ny(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ve(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new Ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ie[t]=new Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Ve(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ie[e]=new Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var al=/[\-:]([a-z])/g;function sl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(al,sl);Ie[t]=new Ve(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(al,sl);Ie[t]=new Ve(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(al,sl);Ie[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function ul(e,t,n,r){var i=Ie.hasOwnProperty(t)?Ie[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ry(t,n,i,r)&&(n=null),r||i===null?ty(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Xt=Zv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Fi=Symbol.for("react.element"),Jn=Symbol.for("react.portal"),Zn=Symbol.for("react.fragment"),ll=Symbol.for("react.strict_mode"),Gs=Symbol.for("react.profiler"),Rd=Symbol.for("react.provider"),Nd=Symbol.for("react.context"),cl=Symbol.for("react.forward_ref"),Ws=Symbol.for("react.suspense"),Ys=Symbol.for("react.suspense_list"),fl=Symbol.for("react.memo"),en=Symbol.for("react.lazy"),Md=Symbol.for("react.offscreen"),bc=Symbol.iterator;function zr(e){return e===null||typeof e!="object"?null:(e=bc&&e[bc]||e["@@iterator"],typeof e=="function"?e:null)}var me=Object.assign,ns;function Yr(e){if(ns===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ns=t&&t[1]||""}return`
38
- `+ns+e}var rs=!1;function is(e,t){if(!e||rs)return"";rs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&typeof s.stack=="string"){for(var i=s.stack.split(`
39
- `),o=r.stack.split(`
40
- `),a=i.length-1,u=o.length-1;1<=a&&0<=u&&i[a]!==o[u];)u--;for(;1<=a&&0<=u;a--,u--)if(i[a]!==o[u]){if(a!==1||u!==1)do if(a--,u--,0>u||i[a]!==o[u]){var l=`
41
- `+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=u);break}}}finally{rs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Yr(e):""}function iy(e){switch(e.tag){case 5:return Yr(e.type);case 16:return Yr("Lazy");case 13:return Yr("Suspense");case 19:return Yr("SuspenseList");case 0:case 2:case 15:return e=is(e.type,!1),e;case 11:return e=is(e.type.render,!1),e;case 1:return e=is(e.type,!0),e;default:return""}}function Ks(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Zn:return"Fragment";case Jn:return"Portal";case Gs:return"Profiler";case ll:return"StrictMode";case Ws:return"Suspense";case Ys:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Nd:return(e.displayName||"Context")+".Consumer";case Rd:return(e._context.displayName||"Context")+".Provider";case cl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fl:return t=e.displayName||null,t!==null?t:Ks(e.type)||"Memo";case en:t=e._payload,e=e._init;try{return Ks(e(t))}catch{}}return null}function oy(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ks(t);case 8:return t===ll?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function yn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ay(e){var t=zd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ai(e){e._valueTracker||(e._valueTracker=ay(e))}function Fd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ko(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Qs(e,t){var n=t.checked;return me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Oc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=yn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ad(e,t){t=t.checked,t!=null&&ul(e,"checked",t,!1)}function Xs(e,t){Ad(e,t);var n=yn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Js(e,t.type,n):t.hasOwnProperty("defaultValue")&&Js(e,t.type,yn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Cc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Js(e,t,n){(t!=="number"||ko(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Kr=Array.isArray;function cr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+yn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Zs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(L(91));return me({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(L(92));if(Kr(n)){if(1<n.length)throw Error(L(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:yn(n)}}function Dd(e,t){var n=yn(t.value),r=yn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Tc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function $d(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function eu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?$d(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Di,Vd=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Di=Di||document.createElement("div"),Di.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Di.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ci(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sy=["Webkit","ms","Moz","O"];Object.keys(Zr).forEach(function(e){sy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zr[t]=Zr[e]})});function Ud(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zr.hasOwnProperty(e)&&Zr[e]?(""+t).trim():t+"px"}function qd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ud(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var uy=me({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tu(e,t){if(t){if(uy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function nu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 ru=null;function dl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var iu=null,fr=null,dr=null;function kc(e){if(e=Li(e)){if(typeof iu!="function")throw Error(L(280));var t=e.stateNode;t&&(t=ba(t),iu(e.stateNode,e.type,t))}}function Bd(e){fr?dr?dr.push(e):dr=[e]:fr=e}function Hd(){if(fr){var e=fr,t=dr;if(dr=fr=null,kc(e),t)for(e=0;e<t.length;e++)kc(t[e])}}function Gd(e,t){return e(t)}function Wd(){}var os=!1;function Yd(e,t,n){if(os)return e(t,n);os=!0;try{return Gd(e,t,n)}finally{os=!1,(fr!==null||dr!==null)&&(Wd(),Hd())}}function fi(e,t){var n=e.stateNode;if(n===null)return null;var r=ba(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(L(231,t,typeof n));return n}var ou=!1;if(Bt)try{var Fr={};Object.defineProperty(Fr,"passive",{get:function(){ou=!0}}),window.addEventListener("test",Fr,Fr),window.removeEventListener("test",Fr,Fr)}catch{ou=!1}function ly(e,t,n,r,i,o,a,u,l){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(c){this.onError(c)}}var ei=!1,jo=null,Io=!1,au=null,cy={onError:function(e){ei=!0,jo=e}};function fy(e,t,n,r,i,o,a,u,l){ei=!1,jo=null,ly.apply(cy,arguments)}function dy(e,t,n,r,i,o,a,u,l){if(fy.apply(this,arguments),ei){if(ei){var s=jo;ei=!1,jo=null}else throw Error(L(198));Io||(Io=!0,au=s)}}function Gn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Kd(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 jc(e){if(Gn(e)!==e)throw Error(L(188))}function py(e){var t=e.alternate;if(!t){if(t=Gn(e),t===null)throw Error(L(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return jc(i),e;if(o===r)return jc(i),t;o=o.sibling}throw Error(L(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,u=i.child;u;){if(u===n){a=!0,n=i,r=o;break}if(u===r){a=!0,r=i,n=o;break}u=u.sibling}if(!a){for(u=o.child;u;){if(u===n){a=!0,n=o,r=i;break}if(u===r){a=!0,r=o,n=i;break}u=u.sibling}if(!a)throw Error(L(189))}}if(n.alternate!==r)throw Error(L(190))}if(n.tag!==3)throw Error(L(188));return n.stateNode.current===n?e:t}function Qd(e){return e=py(e),e!==null?Xd(e):null}function Xd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Xd(e);if(t!==null)return t;e=e.sibling}return null}var Jd=Je.unstable_scheduleCallback,Ic=Je.unstable_cancelCallback,hy=Je.unstable_shouldYield,my=Je.unstable_requestPaint,_e=Je.unstable_now,vy=Je.unstable_getCurrentPriorityLevel,pl=Je.unstable_ImmediatePriority,Zd=Je.unstable_UserBlockingPriority,Lo=Je.unstable_NormalPriority,yy=Je.unstable_LowPriority,ep=Je.unstable_IdlePriority,wa=null,jt=null;function gy(e){if(jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(wa,e,void 0,(e.current.flags&128)===128)}catch{}}var yt=Math.clz32?Math.clz32:Sy,_y=Math.log,wy=Math.LN2;function Sy(e){return e>>>=0,e===0?32:31-(_y(e)/wy|0)|0}var $i=64,Vi=4194304;function Qr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ro(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var u=a&~i;u!==0?r=Qr(u):(o&=a,o!==0&&(r=Qr(o)))}else a=n&~i,a!==0?r=Qr(a):o!==0&&(r=Qr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-yt(t),i=1<<n,r|=e[n],t&=~i;return r}function xy(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ey(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-yt(o),u=1<<a,l=i[a];l===-1?(!(u&n)||u&r)&&(i[a]=xy(u,t)):l<=t&&(e.expiredLanes|=u),o&=~u}}function su(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function tp(){var e=$i;return $i<<=1,!($i&4194240)&&($i=64),e}function as(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ji(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yt(t),e[t]=n}function by(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-yt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function hl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-yt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ae=0;function np(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var rp,ml,ip,op,ap,uu=!1,Ui=[],ln=null,cn=null,fn=null,di=new Map,pi=new Map,rn=[],Oy="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lc(e,t){switch(e){case"focusin":case"focusout":ln=null;break;case"dragenter":case"dragleave":cn=null;break;case"mouseover":case"mouseout":fn=null;break;case"pointerover":case"pointerout":di.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pi.delete(t.pointerId)}}function Ar(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Li(t),t!==null&&ml(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Cy(e,t,n,r,i){switch(t){case"focusin":return ln=Ar(ln,e,t,n,r,i),!0;case"dragenter":return cn=Ar(cn,e,t,n,r,i),!0;case"mouseover":return fn=Ar(fn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return di.set(o,Ar(di.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,pi.set(o,Ar(pi.get(o)||null,e,t,n,r,i)),!0}return!1}function sp(e){var t=jn(e.target);if(t!==null){var n=Gn(t);if(n!==null){if(t=n.tag,t===13){if(t=Kd(n),t!==null){e.blockedOn=t,ap(e.priority,function(){ip(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=lu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ru=r,n.target.dispatchEvent(r),ru=null}else return t=Li(n),t!==null&&ml(t),e.blockedOn=n,!1;t.shift()}return!0}function Rc(e,t,n){fo(e)&&n.delete(t)}function Py(){uu=!1,ln!==null&&fo(ln)&&(ln=null),cn!==null&&fo(cn)&&(cn=null),fn!==null&&fo(fn)&&(fn=null),di.forEach(Rc),pi.forEach(Rc)}function Dr(e,t){e.blockedOn===t&&(e.blockedOn=null,uu||(uu=!0,Je.unstable_scheduleCallback(Je.unstable_NormalPriority,Py)))}function hi(e){function t(i){return Dr(i,e)}if(0<Ui.length){Dr(Ui[0],e);for(var n=1;n<Ui.length;n++){var r=Ui[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ln!==null&&Dr(ln,e),cn!==null&&Dr(cn,e),fn!==null&&Dr(fn,e),di.forEach(t),pi.forEach(t),n=0;n<rn.length;n++)r=rn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<rn.length&&(n=rn[0],n.blockedOn===null);)sp(n),n.blockedOn===null&&rn.shift()}var pr=Xt.ReactCurrentBatchConfig,No=!0;function Ty(e,t,n,r){var i=ae,o=pr.transition;pr.transition=null;try{ae=1,vl(e,t,n,r)}finally{ae=i,pr.transition=o}}function ky(e,t,n,r){var i=ae,o=pr.transition;pr.transition=null;try{ae=4,vl(e,t,n,r)}finally{ae=i,pr.transition=o}}function vl(e,t,n,r){if(No){var i=lu(e,t,n,r);if(i===null)vs(e,t,r,Mo,n),Lc(e,r);else if(Cy(i,e,t,n,r))r.stopPropagation();else if(Lc(e,r),t&4&&-1<Oy.indexOf(e)){for(;i!==null;){var o=Li(i);if(o!==null&&rp(o),o=lu(e,t,n,r),o===null&&vs(e,t,r,Mo,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else vs(e,t,r,null,n)}}var Mo=null;function lu(e,t,n,r){if(Mo=null,e=dl(r),e=jn(e),e!==null)if(t=Gn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Kd(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Mo=e,null}function up(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(vy()){case pl:return 1;case Zd:return 4;case Lo:case yy:return 16;case ep:return 536870912;default:return 16}default:return 16}}var an=null,yl=null,po=null;function lp(){if(po)return po;var e,t=yl,n=t.length,r,i="value"in an?an.value:an.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return po=i.slice(e,1<r?1-r:void 0)}function ho(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 qi(){return!0}function Nc(){return!1}function et(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(o):o[u]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?qi:Nc,this.isPropagationStopped=Nc,this}return me(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=qi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=qi)},persist:function(){},isPersistent:qi}),t}var Rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gl=et(Rr),Ii=me({},Rr,{view:0,detail:0}),jy=et(Ii),ss,us,$r,Sa=me({},Ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_l,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!==$r&&($r&&e.type==="mousemove"?(ss=e.screenX-$r.screenX,us=e.screenY-$r.screenY):us=ss=0,$r=e),ss)},movementY:function(e){return"movementY"in e?e.movementY:us}}),Mc=et(Sa),Iy=me({},Sa,{dataTransfer:0}),Ly=et(Iy),Ry=me({},Ii,{relatedTarget:0}),ls=et(Ry),Ny=me({},Rr,{animationName:0,elapsedTime:0,pseudoElement:0}),My=et(Ny),zy=me({},Rr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fy=et(zy),Ay=me({},Rr,{data:0}),zc=et(Ay),Dy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$y={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"},Vy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Uy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vy[e])?!!t[e]:!1}function _l(){return Uy}var qy=me({},Ii,{key:function(e){if(e.key){var t=Dy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ho(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$y[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_l,charCode:function(e){return e.type==="keypress"?ho(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ho(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),By=et(qy),Hy=me({},Sa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fc=et(Hy),Gy=me({},Ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_l}),Wy=et(Gy),Yy=me({},Rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ky=et(Yy),Qy=me({},Sa,{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}),Xy=et(Qy),Jy=[9,13,27,32],wl=Bt&&"CompositionEvent"in window,ti=null;Bt&&"documentMode"in document&&(ti=document.documentMode);var Zy=Bt&&"TextEvent"in window&&!ti,cp=Bt&&(!wl||ti&&8<ti&&11>=ti),Ac=" ",Dc=!1;function fp(e,t){switch(e){case"keyup":return Jy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var er=!1;function eg(e,t){switch(e){case"compositionend":return dp(t);case"keypress":return t.which!==32?null:(Dc=!0,Ac);case"textInput":return e=t.data,e===Ac&&Dc?null:e;default:return null}}function tg(e,t){if(er)return e==="compositionend"||!wl&&fp(e,t)?(e=lp(),po=yl=an=null,er=!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 cp&&t.locale!=="ko"?null:t.data;default:return null}}var ng={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 $c(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ng[e.type]:t==="textarea"}function pp(e,t,n,r){Bd(r),t=zo(t,"onChange"),0<t.length&&(n=new gl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ni=null,mi=null;function rg(e){bp(e,0)}function xa(e){var t=rr(e);if(Fd(t))return e}function ig(e,t){if(e==="change")return t}var hp=!1;if(Bt){var cs;if(Bt){var fs="oninput"in document;if(!fs){var Vc=document.createElement("div");Vc.setAttribute("oninput","return;"),fs=typeof Vc.oninput=="function"}cs=fs}else cs=!1;hp=cs&&(!document.documentMode||9<document.documentMode)}function Uc(){ni&&(ni.detachEvent("onpropertychange",mp),mi=ni=null)}function mp(e){if(e.propertyName==="value"&&xa(mi)){var t=[];pp(t,mi,e,dl(e)),Yd(rg,t)}}function og(e,t,n){e==="focusin"?(Uc(),ni=t,mi=n,ni.attachEvent("onpropertychange",mp)):e==="focusout"&&Uc()}function ag(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xa(mi)}function sg(e,t){if(e==="click")return xa(t)}function ug(e,t){if(e==="input"||e==="change")return xa(t)}function lg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:lg;function vi(e,t){if(_t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Hs.call(t,i)||!_t(e[i],t[i]))return!1}return!0}function qc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bc(e,t){var n=qc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qc(n)}}function vp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yp(){for(var e=window,t=ko();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ko(e.document)}return t}function Sl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function cg(e){var t=yp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vp(n.ownerDocument.documentElement,n)){if(r!==null&&Sl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Bc(n,o);var a=Bc(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fg=Bt&&"documentMode"in document&&11>=document.documentMode,tr=null,cu=null,ri=null,fu=!1;function Hc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fu||tr==null||tr!==ko(r)||(r=tr,"selectionStart"in r&&Sl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ri&&vi(ri,r)||(ri=r,r=zo(cu,"onSelect"),0<r.length&&(t=new gl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=tr)))}function Bi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nr={animationend:Bi("Animation","AnimationEnd"),animationiteration:Bi("Animation","AnimationIteration"),animationstart:Bi("Animation","AnimationStart"),transitionend:Bi("Transition","TransitionEnd")},ds={},gp={};Bt&&(gp=document.createElement("div").style,"AnimationEvent"in window||(delete nr.animationend.animation,delete nr.animationiteration.animation,delete nr.animationstart.animation),"TransitionEvent"in window||delete nr.transitionend.transition);function Ea(e){if(ds[e])return ds[e];if(!nr[e])return e;var t=nr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in gp)return ds[e]=t[n];return e}var _p=Ea("animationend"),wp=Ea("animationiteration"),Sp=Ea("animationstart"),xp=Ea("transitionend"),Ep=new Map,Gc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function _n(e,t){Ep.set(e,t),Hn(t,[e])}for(var ps=0;ps<Gc.length;ps++){var hs=Gc[ps],dg=hs.toLowerCase(),pg=hs[0].toUpperCase()+hs.slice(1);_n(dg,"on"+pg)}_n(_p,"onAnimationEnd");_n(wp,"onAnimationIteration");_n(Sp,"onAnimationStart");_n("dblclick","onDoubleClick");_n("focusin","onFocus");_n("focusout","onBlur");_n(xp,"onTransitionEnd");br("onMouseEnter",["mouseout","mouseover"]);br("onMouseLeave",["mouseout","mouseover"]);br("onPointerEnter",["pointerout","pointerover"]);br("onPointerLeave",["pointerout","pointerover"]);Hn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Hn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Hn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Hn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Hn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Hn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xr="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(" "),hg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xr));function Wc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,dy(r,t,void 0,e),e.currentTarget=null}function bp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var u=r[a],l=u.instance,s=u.currentTarget;if(u=u.listener,l!==o&&i.isPropagationStopped())break e;Wc(i,u,s),o=l}else for(a=0;a<r.length;a++){if(u=r[a],l=u.instance,s=u.currentTarget,u=u.listener,l!==o&&i.isPropagationStopped())break e;Wc(i,u,s),o=l}}}if(Io)throw e=au,Io=!1,au=null,e}function ce(e,t){var n=t[vu];n===void 0&&(n=t[vu]=new Set);var r=e+"__bubble";n.has(r)||(Op(t,e,2,!1),n.add(r))}function ms(e,t,n){var r=0;t&&(r|=4),Op(n,e,r,t)}var Hi="_reactListening"+Math.random().toString(36).slice(2);function yi(e){if(!e[Hi]){e[Hi]=!0,Ld.forEach(function(n){n!=="selectionchange"&&(hg.has(n)||ms(n,!1,e),ms(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hi]||(t[Hi]=!0,ms("selectionchange",!1,t))}}function Op(e,t,n,r){switch(up(t)){case 1:var i=Ty;break;case 4:i=ky;break;default:i=vl}n=i.bind(null,t,n,e),i=void 0,!ou||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function vs(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var u=r.stateNode.containerInfo;if(u===i||u.nodeType===8&&u.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;u!==null;){if(a=jn(u),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}u=u.parentNode}}r=r.return}Yd(function(){var s=o,c=dl(n),d=[];e:{var f=Ep.get(e);if(f!==void 0){var h=gl,p=e;switch(e){case"keypress":if(ho(n)===0)break e;case"keydown":case"keyup":h=By;break;case"focusin":p="focus",h=ls;break;case"focusout":p="blur",h=ls;break;case"beforeblur":case"afterblur":h=ls;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Mc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Ly;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Wy;break;case _p:case wp:case Sp:h=My;break;case xp:h=Ky;break;case"scroll":h=jy;break;case"wheel":h=Xy;break;case"copy":case"cut":case"paste":h=Fy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Fc}var y=(t&4)!==0,x=!y&&e==="scroll",m=y?f!==null?f+"Capture":null:f;y=[];for(var v=s,g;v!==null;){g=v;var w=g.stateNode;if(g.tag===5&&w!==null&&(g=w,m!==null&&(w=fi(v,m),w!=null&&y.push(gi(v,w,g)))),x)break;v=v.return}0<y.length&&(f=new h(f,p,null,n,c),d.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==ru&&(p=n.relatedTarget||n.fromElement)&&(jn(p)||p[Ht]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=s,p=p?jn(p):null,p!==null&&(x=Gn(p),p!==x||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=s),h!==p)){if(y=Mc,w="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=Fc,w="onPointerLeave",m="onPointerEnter",v="pointer"),x=h==null?f:rr(h),g=p==null?f:rr(p),f=new y(w,v+"leave",h,n,c),f.target=x,f.relatedTarget=g,w=null,jn(c)===s&&(y=new y(m,v+"enter",p,n,c),y.target=g,y.relatedTarget=x,w=y),x=w,h&&p)t:{for(y=h,m=p,v=0,g=y;g;g=Kn(g))v++;for(g=0,w=m;w;w=Kn(w))g++;for(;0<v-g;)y=Kn(y),v--;for(;0<g-v;)m=Kn(m),g--;for(;v--;){if(y===m||m!==null&&y===m.alternate)break t;y=Kn(y),m=Kn(m)}y=null}else y=null;h!==null&&Yc(d,f,h,y,!1),p!==null&&x!==null&&Yc(d,x,p,y,!0)}}e:{if(f=s?rr(s):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var E=ig;else if($c(f))if(hp)E=ug;else{E=ag;var b=og}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(E=sg);if(E&&(E=E(e,s))){pp(d,E,n,c);break e}b&&b(e,f,s),e==="focusout"&&(b=f._wrapperState)&&b.controlled&&f.type==="number"&&Js(f,"number",f.value)}switch(b=s?rr(s):window,e){case"focusin":($c(b)||b.contentEditable==="true")&&(tr=b,cu=s,ri=null);break;case"focusout":ri=cu=tr=null;break;case"mousedown":fu=!0;break;case"contextmenu":case"mouseup":case"dragend":fu=!1,Hc(d,n,c);break;case"selectionchange":if(fg)break;case"keydown":case"keyup":Hc(d,n,c)}var O;if(wl)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else er?fp(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(cp&&n.locale!=="ko"&&(er||P!=="onCompositionStart"?P==="onCompositionEnd"&&er&&(O=lp()):(an=c,yl="value"in an?an.value:an.textContent,er=!0)),b=zo(s,P),0<b.length&&(P=new zc(P,e,null,n,c),d.push({event:P,listeners:b}),O?P.data=O:(O=dp(n),O!==null&&(P.data=O)))),(O=Zy?eg(e,n):tg(e,n))&&(s=zo(s,"onBeforeInput"),0<s.length&&(c=new zc("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:s}),c.data=O))}bp(d,t)})}function gi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zo(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=fi(e,n),o!=null&&r.unshift(gi(e,o,i)),o=fi(e,t),o!=null&&r.push(gi(e,o,i))),e=e.return}return r}function Kn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Yc(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var u=n,l=u.alternate,s=u.stateNode;if(l!==null&&l===r)break;u.tag===5&&s!==null&&(u=s,i?(l=fi(n,o),l!=null&&a.unshift(gi(n,l,u))):i||(l=fi(n,o),l!=null&&a.push(gi(n,l,u)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var mg=/\r\n?/g,vg=/\u0000|\uFFFD/g;function Kc(e){return(typeof e=="string"?e:""+e).replace(mg,`
42
- `).replace(vg,"")}function Gi(e,t,n){if(t=Kc(t),Kc(e)!==t&&n)throw Error(L(425))}function Fo(){}var du=null,pu=null;function hu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var mu=typeof setTimeout=="function"?setTimeout:void 0,yg=typeof clearTimeout=="function"?clearTimeout:void 0,Qc=typeof Promise=="function"?Promise:void 0,gg=typeof queueMicrotask=="function"?queueMicrotask:typeof Qc<"u"?function(e){return Qc.resolve(null).then(e).catch(_g)}:mu;function _g(e){setTimeout(function(){throw e})}function ys(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),hi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);hi(t)}function dn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Xc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Nr=Math.random().toString(36).slice(2),Pt="__reactFiber$"+Nr,_i="__reactProps$"+Nr,Ht="__reactContainer$"+Nr,vu="__reactEvents$"+Nr,wg="__reactListeners$"+Nr,Sg="__reactHandles$"+Nr;function jn(e){var t=e[Pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ht]||n[Pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Xc(e);e!==null;){if(n=e[Pt])return n;e=Xc(e)}return t}e=n,n=e.parentNode}return null}function Li(e){return e=e[Pt]||e[Ht],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function rr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function ba(e){return e[_i]||null}var yu=[],ir=-1;function wn(e){return{current:e}}function fe(e){0>ir||(e.current=yu[ir],yu[ir]=null,ir--)}function le(e,t){ir++,yu[ir]=e.current,e.current=t}var gn={},ze=wn(gn),Be=wn(!1),An=gn;function Or(e,t){var n=e.type.contextTypes;if(!n)return gn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function He(e){return e=e.childContextTypes,e!=null}function Ao(){fe(Be),fe(ze)}function Jc(e,t,n){if(ze.current!==gn)throw Error(L(168));le(ze,t),le(Be,n)}function Cp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(L(108,oy(e)||"Unknown",i));return me({},n,r)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gn,An=ze.current,le(ze,e),le(Be,Be.current),!0}function Zc(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=Cp(e,t,An),r.__reactInternalMemoizedMergedChildContext=e,fe(Be),fe(ze),le(ze,e)):fe(Be),le(Be,n)}var Dt=null,Oa=!1,gs=!1;function Pp(e){Dt===null?Dt=[e]:Dt.push(e)}function xg(e){Oa=!0,Pp(e)}function Sn(){if(!gs&&Dt!==null){gs=!0;var e=0,t=ae;try{var n=Dt;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Dt=null,Oa=!1}catch(i){throw Dt!==null&&(Dt=Dt.slice(e+1)),Jd(pl,Sn),i}finally{ae=t,gs=!1}}return null}var or=[],ar=0,$o=null,Vo=0,at=[],st=0,Dn=null,$t=1,Vt="";function Cn(e,t){or[ar++]=Vo,or[ar++]=$o,$o=e,Vo=t}function Tp(e,t,n){at[st++]=$t,at[st++]=Vt,at[st++]=Dn,Dn=e;var r=$t;e=Vt;var i=32-yt(r)-1;r&=~(1<<i),n+=1;var o=32-yt(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,$t=1<<32-yt(t)+i|n<<i|r,Vt=o+e}else $t=1<<o|n<<i|r,Vt=e}function xl(e){e.return!==null&&(Cn(e,1),Tp(e,1,0))}function El(e){for(;e===$o;)$o=or[--ar],or[ar]=null,Vo=or[--ar],or[ar]=null;for(;e===Dn;)Dn=at[--st],at[st]=null,Vt=at[--st],at[st]=null,$t=at[--st],at[st]=null}var Qe=null,Ke=null,de=!1,mt=null;function kp(e,t){var n=ut(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ef(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Qe=e,Ke=dn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Qe=e,Ke=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Dn!==null?{id:$t,overflow:Vt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ut(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Qe=e,Ke=null,!0):!1;default:return!1}}function gu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(de){var t=Ke;if(t){var n=t;if(!ef(e,t)){if(gu(e))throw Error(L(418));t=dn(n.nextSibling);var r=Qe;t&&ef(e,t)?kp(r,n):(e.flags=e.flags&-4097|2,de=!1,Qe=e)}}else{if(gu(e))throw Error(L(418));e.flags=e.flags&-4097|2,de=!1,Qe=e}}}function tf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qe=e}function Wi(e){if(e!==Qe)return!1;if(!de)return tf(e),de=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!hu(e.type,e.memoizedProps)),t&&(t=Ke)){if(gu(e))throw jp(),Error(L(418));for(;t;)kp(e,t),t=dn(t.nextSibling)}if(tf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ke=dn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ke=null}}else Ke=Qe?dn(e.stateNode.nextSibling):null;return!0}function jp(){for(var e=Ke;e;)e=dn(e.nextSibling)}function Cr(){Ke=Qe=null,de=!1}function bl(e){mt===null?mt=[e]:mt.push(e)}var Eg=Xt.ReactCurrentBatchConfig;function Vr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(L(309));var r=n.stateNode}if(!r)throw Error(L(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var u=i.refs;a===null?delete u[o]:u[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(L(284));if(!n._owner)throw Error(L(290,e))}return e}function Yi(e,t){throw e=Object.prototype.toString.call(t),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function nf(e){var t=e._init;return t(e._payload)}function Ip(e){function t(m,v){if(e){var g=m.deletions;g===null?(m.deletions=[v],m.flags|=16):g.push(v)}}function n(m,v){if(!e)return null;for(;v!==null;)t(m,v),v=v.sibling;return null}function r(m,v){for(m=new Map;v!==null;)v.key!==null?m.set(v.key,v):m.set(v.index,v),v=v.sibling;return m}function i(m,v){return m=vn(m,v),m.index=0,m.sibling=null,m}function o(m,v,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<v?(m.flags|=2,v):g):(m.flags|=2,v)):(m.flags|=1048576,v)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function u(m,v,g,w){return v===null||v.tag!==6?(v=Os(g,m.mode,w),v.return=m,v):(v=i(v,g),v.return=m,v)}function l(m,v,g,w){var E=g.type;return E===Zn?c(m,v,g.props.children,w,g.key):v!==null&&(v.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===en&&nf(E)===v.type)?(w=i(v,g.props),w.ref=Vr(m,v,g),w.return=m,w):(w=So(g.type,g.key,g.props,null,m.mode,w),w.ref=Vr(m,v,g),w.return=m,w)}function s(m,v,g,w){return v===null||v.tag!==4||v.stateNode.containerInfo!==g.containerInfo||v.stateNode.implementation!==g.implementation?(v=Cs(g,m.mode,w),v.return=m,v):(v=i(v,g.children||[]),v.return=m,v)}function c(m,v,g,w,E){return v===null||v.tag!==7?(v=Mn(g,m.mode,w,E),v.return=m,v):(v=i(v,g),v.return=m,v)}function d(m,v,g){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Os(""+v,m.mode,g),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Fi:return g=So(v.type,v.key,v.props,null,m.mode,g),g.ref=Vr(m,null,v),g.return=m,g;case Jn:return v=Cs(v,m.mode,g),v.return=m,v;case en:var w=v._init;return d(m,w(v._payload),g)}if(Kr(v)||zr(v))return v=Mn(v,m.mode,g,null),v.return=m,v;Yi(m,v)}return null}function f(m,v,g,w){var E=v!==null?v.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return E!==null?null:u(m,v,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Fi:return g.key===E?l(m,v,g,w):null;case Jn:return g.key===E?s(m,v,g,w):null;case en:return E=g._init,f(m,v,E(g._payload),w)}if(Kr(g)||zr(g))return E!==null?null:c(m,v,g,w,null);Yi(m,g)}return null}function h(m,v,g,w,E){if(typeof w=="string"&&w!==""||typeof w=="number")return m=m.get(g)||null,u(v,m,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Fi:return m=m.get(w.key===null?g:w.key)||null,l(v,m,w,E);case Jn:return m=m.get(w.key===null?g:w.key)||null,s(v,m,w,E);case en:var b=w._init;return h(m,v,g,b(w._payload),E)}if(Kr(w)||zr(w))return m=m.get(g)||null,c(v,m,w,E,null);Yi(v,w)}return null}function p(m,v,g,w){for(var E=null,b=null,O=v,P=v=0,R=null;O!==null&&P<g.length;P++){O.index>P?(R=O,O=null):R=O.sibling;var I=f(m,O,g[P],w);if(I===null){O===null&&(O=R);break}e&&O&&I.alternate===null&&t(m,O),v=o(I,v,P),b===null?E=I:b.sibling=I,b=I,O=R}if(P===g.length)return n(m,O),de&&Cn(m,P),E;if(O===null){for(;P<g.length;P++)O=d(m,g[P],w),O!==null&&(v=o(O,v,P),b===null?E=O:b.sibling=O,b=O);return de&&Cn(m,P),E}for(O=r(m,O);P<g.length;P++)R=h(O,m,P,g[P],w),R!==null&&(e&&R.alternate!==null&&O.delete(R.key===null?P:R.key),v=o(R,v,P),b===null?E=R:b.sibling=R,b=R);return e&&O.forEach(function(z){return t(m,z)}),de&&Cn(m,P),E}function y(m,v,g,w){var E=zr(g);if(typeof E!="function")throw Error(L(150));if(g=E.call(g),g==null)throw Error(L(151));for(var b=E=null,O=v,P=v=0,R=null,I=g.next();O!==null&&!I.done;P++,I=g.next()){O.index>P?(R=O,O=null):R=O.sibling;var z=f(m,O,I.value,w);if(z===null){O===null&&(O=R);break}e&&O&&z.alternate===null&&t(m,O),v=o(z,v,P),b===null?E=z:b.sibling=z,b=z,O=R}if(I.done)return n(m,O),de&&Cn(m,P),E;if(O===null){for(;!I.done;P++,I=g.next())I=d(m,I.value,w),I!==null&&(v=o(I,v,P),b===null?E=I:b.sibling=I,b=I);return de&&Cn(m,P),E}for(O=r(m,O);!I.done;P++,I=g.next())I=h(O,m,P,I.value,w),I!==null&&(e&&I.alternate!==null&&O.delete(I.key===null?P:I.key),v=o(I,v,P),b===null?E=I:b.sibling=I,b=I);return e&&O.forEach(function(F){return t(m,F)}),de&&Cn(m,P),E}function x(m,v,g,w){if(typeof g=="object"&&g!==null&&g.type===Zn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Fi:e:{for(var E=g.key,b=v;b!==null;){if(b.key===E){if(E=g.type,E===Zn){if(b.tag===7){n(m,b.sibling),v=i(b,g.props.children),v.return=m,m=v;break e}}else if(b.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===en&&nf(E)===b.type){n(m,b.sibling),v=i(b,g.props),v.ref=Vr(m,b,g),v.return=m,m=v;break e}n(m,b);break}else t(m,b);b=b.sibling}g.type===Zn?(v=Mn(g.props.children,m.mode,w,g.key),v.return=m,m=v):(w=So(g.type,g.key,g.props,null,m.mode,w),w.ref=Vr(m,v,g),w.return=m,m=w)}return a(m);case Jn:e:{for(b=g.key;v!==null;){if(v.key===b)if(v.tag===4&&v.stateNode.containerInfo===g.containerInfo&&v.stateNode.implementation===g.implementation){n(m,v.sibling),v=i(v,g.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=Cs(g,m.mode,w),v.return=m,m=v}return a(m);case en:return b=g._init,x(m,v,b(g._payload),w)}if(Kr(g))return p(m,v,g,w);if(zr(g))return y(m,v,g,w);Yi(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,v!==null&&v.tag===6?(n(m,v.sibling),v=i(v,g),v.return=m,m=v):(n(m,v),v=Os(g,m.mode,w),v.return=m,m=v),a(m)):n(m,v)}return x}var Pr=Ip(!0),Lp=Ip(!1),Uo=wn(null),qo=null,sr=null,Ol=null;function Cl(){Ol=sr=qo=null}function Pl(e){var t=Uo.current;fe(Uo),e._currentValue=t}function wu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function hr(e,t){qo=e,Ol=sr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function ct(e){var t=e._currentValue;if(Ol!==e)if(e={context:e,memoizedValue:t,next:null},sr===null){if(qo===null)throw Error(L(308));sr=e,qo.dependencies={lanes:0,firstContext:e}}else sr=sr.next=e;return t}var In=null;function Tl(e){In===null?In=[e]:In.push(e)}function Rp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Tl(t)):(n.next=i.next,i.next=n),t.interleaved=n,Gt(e,r)}function Gt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var tn=!1;function kl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Np(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ut(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ee&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Gt(e,n)}return i=r.interleaved,i===null?(t.next=t,Tl(r)):(t.next=i.next,i.next=t),r.interleaved=t,Gt(e,n)}function mo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hl(e,n)}}function rf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Bo(e,t,n,r){var i=e.updateQueue;tn=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var l=u,s=l.next;l.next=null,a===null?o=s:a.next=s,a=l;var c=e.alternate;c!==null&&(c=c.updateQueue,u=c.lastBaseUpdate,u!==a&&(u===null?c.firstBaseUpdate=s:u.next=s,c.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,c=s=l=null,u=o;do{var f=u.lane,h=u.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var p=e,y=u;switch(f=t,h=n,y.tag){case 1:if(p=y.payload,typeof p=="function"){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=y.payload,f=typeof p=="function"?p.call(h,d,f):p,f==null)break e;d=me({},d,f);break e;case 2:tn=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[u]:f.push(u))}else h={eventTime:h,lane:f,tag:u.tag,payload:u.payload,callback:u.callback,next:null},c===null?(s=c=h,l=d):c=c.next=h,a|=f;if(u=u.next,u===null){if(u=i.shared.pending,u===null)break;f=u,u=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=s,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Vn|=a,e.lanes=a,e.memoizedState=d}}function of(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(L(191,i));i.call(r)}}}var Ri={},It=wn(Ri),wi=wn(Ri),Si=wn(Ri);function Ln(e){if(e===Ri)throw Error(L(174));return e}function jl(e,t){switch(le(Si,t),le(wi,e),le(It,Ri),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:eu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=eu(t,e)}fe(It),le(It,t)}function Tr(){fe(It),fe(wi),fe(Si)}function Mp(e){Ln(Si.current);var t=Ln(It.current),n=eu(t,e.type);t!==n&&(le(wi,e),le(It,n))}function Il(e){wi.current===e&&(fe(It),fe(wi))}var pe=wn(0);function Ho(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _s=[];function Ll(){for(var e=0;e<_s.length;e++)_s[e]._workInProgressVersionPrimary=null;_s.length=0}var vo=Xt.ReactCurrentDispatcher,ws=Xt.ReactCurrentBatchConfig,$n=0,he=null,Ee=null,Oe=null,Go=!1,ii=!1,xi=0,bg=0;function Le(){throw Error(L(321))}function Rl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_t(e[n],t[n]))return!1;return!0}function Nl(e,t,n,r,i,o){if($n=o,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,vo.current=e===null||e.memoizedState===null?Tg:kg,e=n(r,i),ii){o=0;do{if(ii=!1,xi=0,25<=o)throw Error(L(301));o+=1,Oe=Ee=null,t.updateQueue=null,vo.current=jg,e=n(r,i)}while(ii)}if(vo.current=Wo,t=Ee!==null&&Ee.next!==null,$n=0,Oe=Ee=he=null,Go=!1,t)throw Error(L(300));return e}function Ml(){var e=xi!==0;return xi=0,e}function Et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oe===null?he.memoizedState=Oe=e:Oe=Oe.next=e,Oe}function ft(){if(Ee===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=Ee.next;var t=Oe===null?he.memoizedState:Oe.next;if(t!==null)Oe=t,Ee=e;else{if(e===null)throw Error(L(310));Ee=e,e={memoizedState:Ee.memoizedState,baseState:Ee.baseState,baseQueue:Ee.baseQueue,queue:Ee.queue,next:null},Oe===null?he.memoizedState=Oe=e:Oe=Oe.next=e}return Oe}function Ei(e,t){return typeof t=="function"?t(e):t}function Ss(e){var t=ft(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=Ee,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var u=a=null,l=null,s=o;do{var c=s.lane;if(($n&c)===c)l!==null&&(l=l.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),r=s.hasEagerState?s.eagerState:e(r,s.action);else{var d={lane:c,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null};l===null?(u=l=d,a=r):l=l.next=d,he.lanes|=c,Vn|=c}s=s.next}while(s!==null&&s!==o);l===null?a=r:l.next=u,_t(r,t.memoizedState)||(qe=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,he.lanes|=o,Vn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xs(e){var t=ft(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);_t(o,t.memoizedState)||(qe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function zp(){}function Fp(e,t){var n=he,r=ft(),i=t(),o=!_t(r.memoizedState,i);if(o&&(r.memoizedState=i,qe=!0),r=r.queue,zl($p.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Oe!==null&&Oe.memoizedState.tag&1){if(n.flags|=2048,bi(9,Dp.bind(null,n,r,i,t),void 0,null),Ce===null)throw Error(L(349));$n&30||Ap(n,t,i)}return i}function Ap(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=he.updateQueue,t===null?(t={lastEffect:null,stores:null},he.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Dp(e,t,n,r){t.value=n,t.getSnapshot=r,Vp(t)&&Up(e)}function $p(e,t,n){return n(function(){Vp(t)&&Up(e)})}function Vp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_t(e,n)}catch{return!0}}function Up(e){var t=Gt(e,1);t!==null&&gt(t,e,1,-1)}function af(e){var t=Et();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:e},t.queue=e,e=e.dispatch=Pg.bind(null,he,e),[t.memoizedState,e]}function bi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=he.updateQueue,t===null?(t={lastEffect:null,stores:null},he.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function qp(){return ft().memoizedState}function yo(e,t,n,r){var i=Et();he.flags|=e,i.memoizedState=bi(1|t,n,void 0,r===void 0?null:r)}function Ca(e,t,n,r){var i=ft();r=r===void 0?null:r;var o=void 0;if(Ee!==null){var a=Ee.memoizedState;if(o=a.destroy,r!==null&&Rl(r,a.deps)){i.memoizedState=bi(t,n,o,r);return}}he.flags|=e,i.memoizedState=bi(1|t,n,o,r)}function sf(e,t){return yo(8390656,8,e,t)}function zl(e,t){return Ca(2048,8,e,t)}function Bp(e,t){return Ca(4,2,e,t)}function Hp(e,t){return Ca(4,4,e,t)}function Gp(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Wp(e,t,n){return n=n!=null?n.concat([e]):null,Ca(4,4,Gp.bind(null,t,e),n)}function Fl(){}function Yp(e,t){var n=ft();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Rl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Kp(e,t){var n=ft();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Rl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qp(e,t,n){return $n&21?(_t(n,t)||(n=tp(),he.lanes|=n,Vn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function Og(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=ws.transition;ws.transition={};try{e(!1),t()}finally{ae=n,ws.transition=r}}function Xp(){return ft().memoizedState}function Cg(e,t,n){var r=mn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Jp(e))Zp(t,n);else if(n=Rp(e,t,n,r),n!==null){var i=De();gt(n,e,r,i),eh(n,t,r)}}function Pg(e,t,n){var r=mn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jp(e))Zp(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,u=o(a,n);if(i.hasEagerState=!0,i.eagerState=u,_t(u,a)){var l=t.interleaved;l===null?(i.next=i,Tl(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Rp(e,t,i,r),n!==null&&(i=De(),gt(n,e,r,i),eh(n,t,r))}}function Jp(e){var t=e.alternate;return e===he||t!==null&&t===he}function Zp(e,t){ii=Go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function eh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hl(e,n)}}var Wo={readContext:ct,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},Tg={readContext:ct,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:sf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yo(4194308,4,Gp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4194308,4,e,t)},useInsertionEffect:function(e,t){return yo(4,2,e,t)},useMemo:function(e,t){var n=Et();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Et();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Cg.bind(null,he,e),[r.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:af,useDebugValue:Fl,useDeferredValue:function(e){return Et().memoizedState=e},useTransition:function(){var e=af(!1),t=e[0];return e=Og.bind(null,e[1]),Et().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=he,i=Et();if(de){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),Ce===null)throw Error(L(349));$n&30||Ap(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,sf($p.bind(null,r,o,e),[e]),r.flags|=2048,bi(9,Dp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Et(),t=Ce.identifierPrefix;if(de){var n=Vt,r=$t;n=(r&~(1<<32-yt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=bg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},kg={readContext:ct,useCallback:Yp,useContext:ct,useEffect:zl,useImperativeHandle:Wp,useInsertionEffect:Bp,useLayoutEffect:Hp,useMemo:Kp,useReducer:Ss,useRef:qp,useState:function(){return Ss(Ei)},useDebugValue:Fl,useDeferredValue:function(e){var t=ft();return Qp(t,Ee.memoizedState,e)},useTransition:function(){var e=Ss(Ei)[0],t=ft().memoizedState;return[e,t]},useMutableSource:zp,useSyncExternalStore:Fp,useId:Xp,unstable_isNewReconciler:!1},jg={readContext:ct,useCallback:Yp,useContext:ct,useEffect:zl,useImperativeHandle:Wp,useInsertionEffect:Bp,useLayoutEffect:Hp,useMemo:Kp,useReducer:xs,useRef:qp,useState:function(){return xs(Ei)},useDebugValue:Fl,useDeferredValue:function(e){var t=ft();return Ee===null?t.memoizedState=e:Qp(t,Ee.memoizedState,e)},useTransition:function(){var e=xs(Ei)[0],t=ft().memoizedState;return[e,t]},useMutableSource:zp,useSyncExternalStore:Fp,useId:Xp,unstable_isNewReconciler:!1};function pt(e,t){if(e&&e.defaultProps){t=me({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Su(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:me({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Pa={isMounted:function(e){return(e=e._reactInternals)?Gn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=De(),i=mn(e),o=Ut(r,i);o.payload=t,n!=null&&(o.callback=n),t=pn(e,o,i),t!==null&&(gt(t,e,i,r),mo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=De(),i=mn(e),o=Ut(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=pn(e,o,i),t!==null&&(gt(t,e,i,r),mo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=De(),r=mn(e),i=Ut(n,r);i.tag=2,t!=null&&(i.callback=t),t=pn(e,i,r),t!==null&&(gt(t,e,r,n),mo(t,e,r))}};function uf(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!vi(n,r)||!vi(i,o):!0}function th(e,t,n){var r=!1,i=gn,o=t.contextType;return typeof o=="object"&&o!==null?o=ct(o):(i=He(t)?An:ze.current,r=t.contextTypes,o=(r=r!=null)?Or(e,i):gn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Pa,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function lf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Pa.enqueueReplaceState(t,t.state,null)}function xu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},kl(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ct(o):(o=He(t)?An:ze.current,i.context=Or(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Su(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Pa.enqueueReplaceState(i,i.state,null),Bo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function kr(e,t){try{var n="",r=t;do n+=iy(r),r=r.return;while(r);var i=n}catch(o){i=`
43
- Error generating stack: `+o.message+`
44
- `+o.stack}return{value:e,source:t,stack:i,digest:null}}function Es(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Eu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ig=typeof WeakMap=="function"?WeakMap:Map;function nh(e,t,n){n=Ut(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ko||(Ko=!0,Ru=r),Eu(e,t)},n}function rh(e,t,n){n=Ut(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Eu(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Eu(e,t),typeof r!="function"&&(hn===null?hn=new Set([this]):hn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function cf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ig;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Hg.bind(null,e,t,n),t.then(e,e))}function ff(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function df(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ut(-1,1),t.tag=2,pn(n,t,1))),n.lanes|=1),e)}var Lg=Xt.ReactCurrentOwner,qe=!1;function Ae(e,t,n,r){t.child=e===null?Lp(t,null,n,r):Pr(t,e.child,n,r)}function pf(e,t,n,r,i){n=n.render;var o=t.ref;return hr(t,i),r=Nl(e,t,n,r,o,i),n=Ml(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Wt(e,t,i)):(de&&n&&xl(t),t.flags|=1,Ae(e,t,r,i),t.child)}function hf(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Hl(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,ih(e,t,o,r,i)):(e=So(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:vi,n(a,r)&&e.ref===t.ref)return Wt(e,t,i)}return t.flags|=1,e=vn(o,r),e.ref=t.ref,e.return=t,t.child=e}function ih(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(vi(o,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(qe=!0);else return t.lanes=e.lanes,Wt(e,t,i)}return bu(e,t,n,r,i)}function oh(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},le(lr,Ye),Ye|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,le(lr,Ye),Ye|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,le(lr,Ye),Ye|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,le(lr,Ye),Ye|=r;return Ae(e,t,i,n),t.child}function ah(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function bu(e,t,n,r,i){var o=He(n)?An:ze.current;return o=Or(t,o),hr(t,i),n=Nl(e,t,n,r,o,i),r=Ml(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Wt(e,t,i)):(de&&r&&xl(t),t.flags|=1,Ae(e,t,n,i),t.child)}function mf(e,t,n,r,i){if(He(n)){var o=!0;Do(t)}else o=!1;if(hr(t,i),t.stateNode===null)go(e,t),th(t,n,r),xu(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,u=t.memoizedProps;a.props=u;var l=a.context,s=n.contextType;typeof s=="object"&&s!==null?s=ct(s):(s=He(n)?An:ze.current,s=Or(t,s));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==r||l!==s)&&lf(t,a,r,s),tn=!1;var f=t.memoizedState;a.state=f,Bo(t,r,a,i),l=t.memoizedState,u!==r||f!==l||Be.current||tn?(typeof c=="function"&&(Su(t,n,c,r),l=t.memoizedState),(u=tn||uf(t,n,u,r,f,l,s))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=s,r=u):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Np(e,t),u=t.memoizedProps,s=t.type===t.elementType?u:pt(t.type,u),a.props=s,d=t.pendingProps,f=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=ct(l):(l=He(n)?An:ze.current,l=Or(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==d||f!==l)&&lf(t,a,r,l),tn=!1,f=t.memoizedState,a.state=f,Bo(t,r,a,i);var p=t.memoizedState;u!==d||f!==p||Be.current||tn?(typeof h=="function"&&(Su(t,n,h,r),p=t.memoizedState),(s=tn||uf(t,n,s,r,f,p,l)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,p,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,p,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=s):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ou(e,t,n,r,o,i)}function Ou(e,t,n,r,i,o){ah(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&Zc(t,n,!1),Wt(e,t,o);r=t.stateNode,Lg.current=t;var u=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Pr(t,e.child,null,o),t.child=Pr(t,null,u,o)):Ae(e,t,u,o),t.memoizedState=r.state,i&&Zc(t,n,!0),t.child}function sh(e){var t=e.stateNode;t.pendingContext?Jc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Jc(e,t.context,!1),jl(e,t.containerInfo)}function vf(e,t,n,r,i){return Cr(),bl(i),t.flags|=256,Ae(e,t,n,r),t.child}var Cu={dehydrated:null,treeContext:null,retryLane:0};function Pu(e){return{baseLanes:e,cachePool:null,transitions:null}}function uh(e,t,n){var r=t.pendingProps,i=pe.current,o=!1,a=(t.flags&128)!==0,u;if((u=a)||(u=e!==null&&e.memoizedState===null?!1:(i&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),le(pe,i&1),e===null)return _u(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=ja(a,r,0,null),e=Mn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Pu(n),t.memoizedState=Cu,e):Al(t,a));if(i=e.memoizedState,i!==null&&(u=i.dehydrated,u!==null))return Rg(e,t,a,r,u,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,u=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=vn(i,l),r.subtreeFlags=i.subtreeFlags&14680064),u!==null?o=vn(u,o):(o=Mn(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?Pu(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Cu,r}return o=e.child,e=o.sibling,r=vn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Al(e,t){return t=ja({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ki(e,t,n,r){return r!==null&&bl(r),Pr(t,e.child,null,n),e=Al(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Rg(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=Es(Error(L(422))),Ki(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ja({mode:"visible",children:r.children},i,0,null),o=Mn(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Pr(t,e.child,null,a),t.child.memoizedState=Pu(a),t.memoizedState=Cu,o);if(!(t.mode&1))return Ki(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(L(419)),r=Es(o,r,void 0),Ki(e,t,a,r)}if(u=(a&e.childLanes)!==0,qe||u){if(r=Ce,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Gt(e,i),gt(r,e,i,-1))}return Bl(),r=Es(Error(L(421))),Ki(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Gg.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ke=dn(i.nextSibling),Qe=t,de=!0,mt=null,e!==null&&(at[st++]=$t,at[st++]=Vt,at[st++]=Dn,$t=e.id,Vt=e.overflow,Dn=t),t=Al(t,r.children),t.flags|=4096,t)}function yf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),wu(e.return,t,n)}function bs(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function lh(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ae(e,t,r.children,n),r=pe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yf(e,n,t);else if(e.tag===19)yf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(le(pe,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ho(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),bs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ho(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}bs(t,!0,n,null,o);break;case"together":bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function go(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Vn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));if(t.child!==null){for(e=t.child,n=vn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ng(e,t,n){switch(t.tag){case 3:sh(t),Cr();break;case 5:Mp(t);break;case 1:He(t.type)&&Do(t);break;case 4:jl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;le(Uo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(le(pe,pe.current&1),t.flags|=128,null):n&t.child.childLanes?uh(e,t,n):(le(pe,pe.current&1),e=Wt(e,t,n),e!==null?e.sibling:null);le(pe,pe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return lh(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),le(pe,pe.current),r)break;return null;case 22:case 23:return t.lanes=0,oh(e,t,n)}return Wt(e,t,n)}var ch,Tu,fh,dh;ch=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Tu=function(){};fh=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ln(It.current);var o=null;switch(n){case"input":i=Qs(e,i),r=Qs(e,r),o=[];break;case"select":i=me({},i,{value:void 0}),r=me({},r,{value:void 0}),o=[];break;case"textarea":i=Zs(e,i),r=Zs(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Fo)}tu(n,r);var a;n=null;for(s in i)if(!r.hasOwnProperty(s)&&i.hasOwnProperty(s)&&i[s]!=null)if(s==="style"){var u=i[s];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(li.hasOwnProperty(s)?o||(o=[]):(o=o||[]).push(s,null));for(s in r){var l=r[s];if(u=i!=null?i[s]:void 0,r.hasOwnProperty(s)&&l!==u&&(l!=null||u!=null))if(s==="style")if(u){for(a in u)!u.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&u[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(s,n)),n=l;else s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,u=u?u.__html:void 0,l!=null&&u!==l&&(o=o||[]).push(s,l)):s==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(s,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(li.hasOwnProperty(s)?(l!=null&&s==="onScroll"&&ce("scroll",e),o||u===l||(o=[])):(o=o||[]).push(s,l))}n&&(o=o||[]).push("style",n);var s=o;(t.updateQueue=s)&&(t.flags|=4)}};dh=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ur(e,t){if(!de)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Re(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Mg(e,t,n){var r=t.pendingProps;switch(El(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(t),null;case 1:return He(t.type)&&Ao(),Re(t),null;case 3:return r=t.stateNode,Tr(),fe(Be),fe(ze),Ll(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Wi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,mt!==null&&(zu(mt),mt=null))),Tu(e,t),Re(t),null;case 5:Il(t);var i=Ln(Si.current);if(n=t.type,e!==null&&t.stateNode!=null)fh(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(L(166));return Re(t),null}if(e=Ln(It.current),Wi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Pt]=t,r[_i]=o,e=(t.mode&1)!==0,n){case"dialog":ce("cancel",r),ce("close",r);break;case"iframe":case"object":case"embed":ce("load",r);break;case"video":case"audio":for(i=0;i<Xr.length;i++)ce(Xr[i],r);break;case"source":ce("error",r);break;case"img":case"image":case"link":ce("error",r),ce("load",r);break;case"details":ce("toggle",r);break;case"input":Oc(r,o),ce("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},ce("invalid",r);break;case"textarea":Pc(r,o),ce("invalid",r)}tu(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var u=o[a];a==="children"?typeof u=="string"?r.textContent!==u&&(o.suppressHydrationWarning!==!0&&Gi(r.textContent,u,e),i=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(o.suppressHydrationWarning!==!0&&Gi(r.textContent,u,e),i=["children",""+u]):li.hasOwnProperty(a)&&u!=null&&a==="onScroll"&&ce("scroll",r)}switch(n){case"input":Ai(r),Cc(r,o,!0);break;case"textarea":Ai(r),Tc(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Fo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=$d(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Pt]=t,e[_i]=r,ch(e,t,!1,!1),t.stateNode=e;e:{switch(a=nu(n,r),n){case"dialog":ce("cancel",e),ce("close",e),i=r;break;case"iframe":case"object":case"embed":ce("load",e),i=r;break;case"video":case"audio":for(i=0;i<Xr.length;i++)ce(Xr[i],e);i=r;break;case"source":ce("error",e),i=r;break;case"img":case"image":case"link":ce("error",e),ce("load",e),i=r;break;case"details":ce("toggle",e),i=r;break;case"input":Oc(e,r),i=Qs(e,r),ce("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=me({},r,{value:void 0}),ce("invalid",e);break;case"textarea":Pc(e,r),i=Zs(e,r),ce("invalid",e);break;default:i=r}tu(n,i),u=i;for(o in u)if(u.hasOwnProperty(o)){var l=u[o];o==="style"?qd(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Vd(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ci(e,l):typeof l=="number"&&ci(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(li.hasOwnProperty(o)?l!=null&&o==="onScroll"&&ce("scroll",e):l!=null&&ul(e,o,l,a))}switch(n){case"input":Ai(e),Cc(e,r,!1);break;case"textarea":Ai(e),Tc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+yn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?cr(e,!!r.multiple,o,!1):r.defaultValue!=null&&cr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Fo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Re(t),null;case 6:if(e&&t.stateNode!=null)dh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(L(166));if(n=Ln(Si.current),Ln(It.current),Wi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Pt]=t,(o=r.nodeValue!==n)&&(e=Qe,e!==null))switch(e.tag){case 3:Gi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Gi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Pt]=t,t.stateNode=r}return Re(t),null;case 13:if(fe(pe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(de&&Ke!==null&&t.mode&1&&!(t.flags&128))jp(),Cr(),t.flags|=98560,o=!1;else if(o=Wi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(L(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(L(317));o[Pt]=t}else Cr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Re(t),o=!1}else mt!==null&&(zu(mt),mt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||pe.current&1?be===0&&(be=3):Bl())),t.updateQueue!==null&&(t.flags|=4),Re(t),null);case 4:return Tr(),Tu(e,t),e===null&&yi(t.stateNode.containerInfo),Re(t),null;case 10:return Pl(t.type._context),Re(t),null;case 17:return He(t.type)&&Ao(),Re(t),null;case 19:if(fe(pe),o=t.memoizedState,o===null)return Re(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)Ur(o,!1);else{if(be!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Ho(e),a!==null){for(t.flags|=128,Ur(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return le(pe,pe.current&1|2),t.child}e=e.sibling}o.tail!==null&&_e()>jr&&(t.flags|=128,r=!0,Ur(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ho(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ur(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!de)return Re(t),null}else 2*_e()-o.renderingStartTime>jr&&n!==1073741824&&(t.flags|=128,r=!0,Ur(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=_e(),t.sibling=null,n=pe.current,le(pe,r?n&1|2:n&1),t):(Re(t),null);case 22:case 23:return ql(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ye&1073741824&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function zg(e,t){switch(El(t),t.tag){case 1:return He(t.type)&&Ao(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tr(),fe(Be),fe(ze),Ll(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Il(t),null;case 13:if(fe(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));Cr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(pe),null;case 4:return Tr(),null;case 10:return Pl(t.type._context),null;case 22:case 23:return ql(),null;case 24:return null;default:return null}}var Qi=!1,Me=!1,Fg=typeof WeakSet=="function"?WeakSet:Set,N=null;function ur(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ve(e,t,r)}else n.current=null}function ku(e,t,n){try{n()}catch(r){ve(e,t,r)}}var gf=!1;function Ag(e,t){if(du=No,e=yp(),Sl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,u=-1,l=-1,s=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(u=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++s===i&&(u=a),f===o&&++c===r&&(l=a),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=u===-1||l===-1?null:{start:u,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(pu={focusedElem:e,selectionRange:n},No=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var y=p.memoizedProps,x=p.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:pt(t.type,y),x);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(w){ve(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return p=gf,gf=!1,p}function oi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ku(t,n,o)}i=i.next}while(i!==r)}}function Ta(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ju(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ph(e){var t=e.alternate;t!==null&&(e.alternate=null,ph(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Pt],delete t[_i],delete t[vu],delete t[wg],delete t[Sg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function hh(e){return e.tag===5||e.tag===3||e.tag===4}function _f(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Iu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Fo));else if(r!==4&&(e=e.child,e!==null))for(Iu(e,t,n),e=e.sibling;e!==null;)Iu(e,t,n),e=e.sibling}function Lu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Lu(e,t,n),e=e.sibling;e!==null;)Lu(e,t,n),e=e.sibling}var Te=null,ht=!1;function Zt(e,t,n){for(n=n.child;n!==null;)mh(e,t,n),n=n.sibling}function mh(e,t,n){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(wa,n)}catch{}switch(n.tag){case 5:Me||ur(n,t);case 6:var r=Te,i=ht;Te=null,Zt(e,t,n),Te=r,ht=i,Te!==null&&(ht?(e=Te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Te.removeChild(n.stateNode));break;case 18:Te!==null&&(ht?(e=Te,n=n.stateNode,e.nodeType===8?ys(e.parentNode,n):e.nodeType===1&&ys(e,n),hi(e)):ys(Te,n.stateNode));break;case 4:r=Te,i=ht,Te=n.stateNode.containerInfo,ht=!0,Zt(e,t,n),Te=r,ht=i;break;case 0:case 11:case 14:case 15:if(!Me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&ku(n,t,a),i=i.next}while(i!==r)}Zt(e,t,n);break;case 1:if(!Me&&(ur(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){ve(n,t,u)}Zt(e,t,n);break;case 21:Zt(e,t,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,Zt(e,t,n),Me=r):Zt(e,t,n);break;default:Zt(e,t,n)}}function wf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fg),t.forEach(function(r){var i=Wg.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,u=a;e:for(;u!==null;){switch(u.tag){case 5:Te=u.stateNode,ht=!1;break e;case 3:Te=u.stateNode.containerInfo,ht=!0;break e;case 4:Te=u.stateNode.containerInfo,ht=!0;break e}u=u.return}if(Te===null)throw Error(L(160));mh(o,a,i),Te=null,ht=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(s){ve(i,t,s)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)vh(t,e),t=t.sibling}function vh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dt(t,e),St(e),r&4){try{oi(3,e,e.return),Ta(3,e)}catch(y){ve(e,e.return,y)}try{oi(5,e,e.return)}catch(y){ve(e,e.return,y)}}break;case 1:dt(t,e),St(e),r&512&&n!==null&&ur(n,n.return);break;case 5:if(dt(t,e),St(e),r&512&&n!==null&&ur(n,n.return),e.flags&32){var i=e.stateNode;try{ci(i,"")}catch(y){ve(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,u=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{u==="input"&&o.type==="radio"&&o.name!=null&&Ad(i,o),nu(u,a);var s=nu(u,o);for(a=0;a<l.length;a+=2){var c=l[a],d=l[a+1];c==="style"?qd(i,d):c==="dangerouslySetInnerHTML"?Vd(i,d):c==="children"?ci(i,d):ul(i,c,d,s)}switch(u){case"input":Xs(i,o);break;case"textarea":Dd(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?cr(i,!!o.multiple,h,!1):f!==!!o.multiple&&(o.defaultValue!=null?cr(i,!!o.multiple,o.defaultValue,!0):cr(i,!!o.multiple,o.multiple?[]:"",!1))}i[_i]=o}catch(y){ve(e,e.return,y)}}break;case 6:if(dt(t,e),St(e),r&4){if(e.stateNode===null)throw Error(L(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){ve(e,e.return,y)}}break;case 3:if(dt(t,e),St(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{hi(t.containerInfo)}catch(y){ve(e,e.return,y)}break;case 4:dt(t,e),St(e);break;case 13:dt(t,e),St(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Vl=_e())),r&4&&wf(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Me=(s=Me)||c,dt(t,e),Me=s):dt(t,e),St(e),r&8192){if(s=e.memoizedState!==null,(e.stateNode.isHidden=s)&&!c&&e.mode&1)for(N=e,c=e.child;c!==null;){for(d=N=c;N!==null;){switch(f=N,h=f.child,f.tag){case 0:case 11:case 14:case 15:oi(4,f,f.return);break;case 1:ur(f,f.return);var p=f.stateNode;if(typeof p.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(y){ve(r,n,y)}}break;case 5:ur(f,f.return);break;case 22:if(f.memoizedState!==null){xf(d);continue}}h!==null?(h.return=f,N=h):xf(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,s?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(u=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,u.style.display=Ud("display",a))}catch(y){ve(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=s?"":d.memoizedProps}catch(y){ve(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:dt(t,e),St(e),r&4&&wf(e);break;case 21:break;default:dt(t,e),St(e)}}function St(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(hh(n)){var r=n;break e}n=n.return}throw Error(L(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ci(i,""),r.flags&=-33);var o=_f(e);Lu(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,u=_f(e);Iu(e,u,a);break;default:throw Error(L(161))}}catch(l){ve(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Dg(e,t,n){N=e,yh(e)}function yh(e,t,n){for(var r=(e.mode&1)!==0;N!==null;){var i=N,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||Qi;if(!a){var u=i.alternate,l=u!==null&&u.memoizedState!==null||Me;u=Qi;var s=Me;if(Qi=a,(Me=l)&&!s)for(N=i;N!==null;)a=N,l=a.child,a.tag===22&&a.memoizedState!==null?Ef(i):l!==null?(l.return=a,N=l):Ef(i);for(;o!==null;)N=o,yh(o),o=o.sibling;N=i,Qi=u,Me=s}Sf(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,N=o):Sf(e)}}function Sf(e){for(;N!==null;){var t=N;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Me||Ta(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Me)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:pt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&of(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}of(t,a,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var s=t.alternate;if(s!==null){var c=s.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&hi(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}Me||t.flags&512&&ju(t)}catch(f){ve(t,t.return,f)}}if(t===e){N=null;break}if(n=t.sibling,n!==null){n.return=t.return,N=n;break}N=t.return}}function xf(e){for(;N!==null;){var t=N;if(t===e){N=null;break}var n=t.sibling;if(n!==null){n.return=t.return,N=n;break}N=t.return}}function Ef(e){for(;N!==null;){var t=N;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ta(4,t)}catch(l){ve(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ve(t,i,l)}}var o=t.return;try{ju(t)}catch(l){ve(t,o,l)}break;case 5:var a=t.return;try{ju(t)}catch(l){ve(t,a,l)}}}catch(l){ve(t,t.return,l)}if(t===e){N=null;break}var u=t.sibling;if(u!==null){u.return=t.return,N=u;break}N=t.return}}var $g=Math.ceil,Yo=Xt.ReactCurrentDispatcher,Dl=Xt.ReactCurrentOwner,lt=Xt.ReactCurrentBatchConfig,ee=0,Ce=null,xe=null,je=0,Ye=0,lr=wn(0),be=0,Oi=null,Vn=0,ka=0,$l=0,ai=null,Ue=null,Vl=0,jr=1/0,Ft=null,Ko=!1,Ru=null,hn=null,Xi=!1,sn=null,Qo=0,si=0,Nu=null,_o=-1,wo=0;function De(){return ee&6?_e():_o!==-1?_o:_o=_e()}function mn(e){return e.mode&1?ee&2&&je!==0?je&-je:Eg.transition!==null?(wo===0&&(wo=tp()),wo):(e=ae,e!==0||(e=window.event,e=e===void 0?16:up(e.type)),e):1}function gt(e,t,n,r){if(50<si)throw si=0,Nu=null,Error(L(185));ji(e,n,r),(!(ee&2)||e!==Ce)&&(e===Ce&&(!(ee&2)&&(ka|=n),be===4&&on(e,je)),Ge(e,r),n===1&&ee===0&&!(t.mode&1)&&(jr=_e()+500,Oa&&Sn()))}function Ge(e,t){var n=e.callbackNode;Ey(e,t);var r=Ro(e,e===Ce?je:0);if(r===0)n!==null&&Ic(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ic(n),t===1)e.tag===0?xg(bf.bind(null,e)):Pp(bf.bind(null,e)),gg(function(){!(ee&6)&&Sn()}),n=null;else{switch(np(r)){case 1:n=pl;break;case 4:n=Zd;break;case 16:n=Lo;break;case 536870912:n=ep;break;default:n=Lo}n=Oh(n,gh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function gh(e,t){if(_o=-1,wo=0,ee&6)throw Error(L(327));var n=e.callbackNode;if(mr()&&e.callbackNode!==n)return null;var r=Ro(e,e===Ce?je:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Xo(e,r);else{t=r;var i=ee;ee|=2;var o=wh();(Ce!==e||je!==t)&&(Ft=null,jr=_e()+500,Nn(e,t));do try{qg();break}catch(u){_h(e,u)}while(!0);Cl(),Yo.current=o,ee=i,xe!==null?t=0:(Ce=null,je=0,t=be)}if(t!==0){if(t===2&&(i=su(e),i!==0&&(r=i,t=Mu(e,i))),t===1)throw n=Oi,Nn(e,0),on(e,r),Ge(e,_e()),n;if(t===6)on(e,r);else{if(i=e.current.alternate,!(r&30)&&!Vg(i)&&(t=Xo(e,r),t===2&&(o=su(e),o!==0&&(r=o,t=Mu(e,o))),t===1))throw n=Oi,Nn(e,0),on(e,r),Ge(e,_e()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(L(345));case 2:Pn(e,Ue,Ft);break;case 3:if(on(e,r),(r&130023424)===r&&(t=Vl+500-_e(),10<t)){if(Ro(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){De(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=mu(Pn.bind(null,e,Ue,Ft),t);break}Pn(e,Ue,Ft);break;case 4:if(on(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-yt(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$g(r/1960))-r,10<r){e.timeoutHandle=mu(Pn.bind(null,e,Ue,Ft),r);break}Pn(e,Ue,Ft);break;case 5:Pn(e,Ue,Ft);break;default:throw Error(L(329))}}}return Ge(e,_e()),e.callbackNode===n?gh.bind(null,e):null}function Mu(e,t){var n=ai;return e.current.memoizedState.isDehydrated&&(Nn(e,t).flags|=256),e=Xo(e,t),e!==2&&(t=Ue,Ue=n,t!==null&&zu(t)),e}function zu(e){Ue===null?Ue=e:Ue.push.apply(Ue,e)}function Vg(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!_t(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function on(e,t){for(t&=~$l,t&=~ka,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-yt(t),r=1<<n;e[n]=-1,t&=~r}}function bf(e){if(ee&6)throw Error(L(327));mr();var t=Ro(e,0);if(!(t&1))return Ge(e,_e()),null;var n=Xo(e,t);if(e.tag!==0&&n===2){var r=su(e);r!==0&&(t=r,n=Mu(e,r))}if(n===1)throw n=Oi,Nn(e,0),on(e,t),Ge(e,_e()),n;if(n===6)throw Error(L(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pn(e,Ue,Ft),Ge(e,_e()),null}function Ul(e,t){var n=ee;ee|=1;try{return e(t)}finally{ee=n,ee===0&&(jr=_e()+500,Oa&&Sn())}}function Un(e){sn!==null&&sn.tag===0&&!(ee&6)&&mr();var t=ee;ee|=1;var n=lt.transition,r=ae;try{if(lt.transition=null,ae=1,e)return e()}finally{ae=r,lt.transition=n,ee=t,!(ee&6)&&Sn()}}function ql(){Ye=lr.current,fe(lr)}function Nn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,yg(n)),xe!==null)for(n=xe.return;n!==null;){var r=n;switch(El(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ao();break;case 3:Tr(),fe(Be),fe(ze),Ll();break;case 5:Il(r);break;case 4:Tr();break;case 13:fe(pe);break;case 19:fe(pe);break;case 10:Pl(r.type._context);break;case 22:case 23:ql()}n=n.return}if(Ce=e,xe=e=vn(e.current,null),je=Ye=t,be=0,Oi=null,$l=ka=Vn=0,Ue=ai=null,In!==null){for(t=0;t<In.length;t++)if(n=In[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}In=null}return e}function _h(e,t){do{var n=xe;try{if(Cl(),vo.current=Wo,Go){for(var r=he.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Go=!1}if($n=0,Oe=Ee=he=null,ii=!1,xi=0,Dl.current=null,n===null||n.return===null){be=1,Oi=t,xe=null;break}e:{var o=e,a=n.return,u=n,l=t;if(t=je,u.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var s=l,c=u,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=ff(a);if(h!==null){h.flags&=-257,df(h,a,u,o,t),h.mode&1&&cf(o,s,t),t=h,l=s;var p=t.updateQueue;if(p===null){var y=new Set;y.add(l),t.updateQueue=y}else p.add(l);break e}else{if(!(t&1)){cf(o,s,t),Bl();break e}l=Error(L(426))}}else if(de&&u.mode&1){var x=ff(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),df(x,a,u,o,t),bl(kr(l,u));break e}}o=l=kr(l,u),be!==4&&(be=2),ai===null?ai=[o]:ai.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var m=nh(o,l,t);rf(o,m);break e;case 1:u=l;var v=o.type,g=o.stateNode;if(!(o.flags&128)&&(typeof v.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(hn===null||!hn.has(g)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=rh(o,u,t);rf(o,w);break e}}o=o.return}while(o!==null)}xh(n)}catch(E){t=E,xe===n&&n!==null&&(xe=n=n.return);continue}break}while(!0)}function wh(){var e=Yo.current;return Yo.current=Wo,e===null?Wo:e}function Bl(){(be===0||be===3||be===2)&&(be=4),Ce===null||!(Vn&268435455)&&!(ka&268435455)||on(Ce,je)}function Xo(e,t){var n=ee;ee|=2;var r=wh();(Ce!==e||je!==t)&&(Ft=null,Nn(e,t));do try{Ug();break}catch(i){_h(e,i)}while(!0);if(Cl(),ee=n,Yo.current=r,xe!==null)throw Error(L(261));return Ce=null,je=0,be}function Ug(){for(;xe!==null;)Sh(xe)}function qg(){for(;xe!==null&&!hy();)Sh(xe)}function Sh(e){var t=bh(e.alternate,e,Ye);e.memoizedProps=e.pendingProps,t===null?xh(e):xe=t,Dl.current=null}function xh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=zg(n,t),n!==null){n.flags&=32767,xe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{be=6,xe=null;return}}else if(n=Mg(n,t,Ye),n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);be===0&&(be=5)}function Pn(e,t,n){var r=ae,i=lt.transition;try{lt.transition=null,ae=1,Bg(e,t,n,r)}finally{lt.transition=i,ae=r}return null}function Bg(e,t,n,r){do mr();while(sn!==null);if(ee&6)throw Error(L(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(L(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(by(e,o),e===Ce&&(xe=Ce=null,je=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Xi||(Xi=!0,Oh(Lo,function(){return mr(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=lt.transition,lt.transition=null;var a=ae;ae=1;var u=ee;ee|=4,Dl.current=null,Ag(e,n),vh(n,e),cg(pu),No=!!du,pu=du=null,e.current=n,Dg(n),my(),ee=u,ae=a,lt.transition=o}else e.current=n;if(Xi&&(Xi=!1,sn=e,Qo=i),o=e.pendingLanes,o===0&&(hn=null),gy(n.stateNode),Ge(e,_e()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ko)throw Ko=!1,e=Ru,Ru=null,e;return Qo&1&&e.tag!==0&&mr(),o=e.pendingLanes,o&1?e===Nu?si++:(si=0,Nu=e):si=0,Sn(),null}function mr(){if(sn!==null){var e=np(Qo),t=lt.transition,n=ae;try{if(lt.transition=null,ae=16>e?16:e,sn===null)var r=!1;else{if(e=sn,sn=null,Qo=0,ee&6)throw Error(L(331));var i=ee;for(ee|=4,N=e.current;N!==null;){var o=N,a=o.child;if(N.flags&16){var u=o.deletions;if(u!==null){for(var l=0;l<u.length;l++){var s=u[l];for(N=s;N!==null;){var c=N;switch(c.tag){case 0:case 11:case 15:oi(8,c,o)}var d=c.child;if(d!==null)d.return=c,N=d;else for(;N!==null;){c=N;var f=c.sibling,h=c.return;if(ph(c),c===s){N=null;break}if(f!==null){f.return=h,N=f;break}N=h}}}var p=o.alternate;if(p!==null){var y=p.child;if(y!==null){p.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}N=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,N=a;else e:for(;N!==null;){if(o=N,o.flags&2048)switch(o.tag){case 0:case 11:case 15:oi(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,N=m;break e}N=o.return}}var v=e.current;for(N=v;N!==null;){a=N;var g=a.child;if(a.subtreeFlags&2064&&g!==null)g.return=a,N=g;else e:for(a=v;N!==null;){if(u=N,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:Ta(9,u)}}catch(E){ve(u,u.return,E)}if(u===a){N=null;break e}var w=u.sibling;if(w!==null){w.return=u.return,N=w;break e}N=u.return}}if(ee=i,Sn(),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(wa,e)}catch{}r=!0}return r}finally{ae=n,lt.transition=t}}return!1}function Of(e,t,n){t=kr(n,t),t=nh(e,t,1),e=pn(e,t,1),t=De(),e!==null&&(ji(e,1,t),Ge(e,t))}function ve(e,t,n){if(e.tag===3)Of(e,e,n);else for(;t!==null;){if(t.tag===3){Of(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(hn===null||!hn.has(r))){e=kr(n,e),e=rh(t,e,1),t=pn(t,e,1),e=De(),t!==null&&(ji(t,1,e),Ge(t,e));break}}t=t.return}}function Hg(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=De(),e.pingedLanes|=e.suspendedLanes&n,Ce===e&&(je&n)===n&&(be===4||be===3&&(je&130023424)===je&&500>_e()-Vl?Nn(e,0):$l|=n),Ge(e,t)}function Eh(e,t){t===0&&(e.mode&1?(t=Vi,Vi<<=1,!(Vi&130023424)&&(Vi=4194304)):t=1);var n=De();e=Gt(e,t),e!==null&&(ji(e,t,n),Ge(e,n))}function Gg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Eh(e,n)}function Wg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),Eh(e,n)}var bh;bh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Be.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,Ng(e,t,n);qe=!!(e.flags&131072)}else qe=!1,de&&t.flags&1048576&&Tp(t,Vo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;go(e,t),e=t.pendingProps;var i=Or(t,ze.current);hr(t,n),i=Nl(null,t,r,e,i,n);var o=Ml();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,He(r)?(o=!0,Do(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,kl(t),i.updater=Pa,t.stateNode=i,i._reactInternals=t,xu(t,r,e,n),t=Ou(null,t,r,!0,o,n)):(t.tag=0,de&&o&&xl(t),Ae(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(go(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Kg(r),e=pt(r,e),i){case 0:t=bu(null,t,r,e,n);break e;case 1:t=mf(null,t,r,e,n);break e;case 11:t=pf(null,t,r,e,n);break e;case 14:t=hf(null,t,r,pt(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:pt(r,i),bu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:pt(r,i),mf(e,t,r,i,n);case 3:e:{if(sh(t),e===null)throw Error(L(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Np(e,t),Bo(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=kr(Error(L(423)),t),t=vf(e,t,r,n,i);break e}else if(r!==i){i=kr(Error(L(424)),t),t=vf(e,t,r,n,i);break e}else for(Ke=dn(t.stateNode.containerInfo.firstChild),Qe=t,de=!0,mt=null,n=Lp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cr(),r===i){t=Wt(e,t,n);break e}Ae(e,t,r,n)}t=t.child}return t;case 5:return Mp(t),e===null&&_u(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,hu(r,i)?a=null:o!==null&&hu(r,o)&&(t.flags|=32),ah(e,t),Ae(e,t,a,n),t.child;case 6:return e===null&&_u(t),null;case 13:return uh(e,t,n);case 4:return jl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pr(t,null,r,n):Ae(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:pt(r,i),pf(e,t,r,i,n);case 7:return Ae(e,t,t.pendingProps,n),t.child;case 8:return Ae(e,t,t.pendingProps.children,n),t.child;case 12:return Ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,le(Uo,r._currentValue),r._currentValue=a,o!==null)if(_t(o.value,a)){if(o.children===i.children&&!Be.current){t=Wt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){a=o.child;for(var l=u.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Ut(-1,n&-n),l.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?l.next=l:(l.next=c.next,c.next=l),s.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),wu(o.return,n,t),u.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(L(341));a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),wu(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Ae(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,hr(t,n),i=ct(i),r=r(i),t.flags|=1,Ae(e,t,r,n),t.child;case 14:return r=t.type,i=pt(r,t.pendingProps),i=pt(r.type,i),hf(e,t,r,i,n);case 15:return ih(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:pt(r,i),go(e,t),t.tag=1,He(r)?(e=!0,Do(t)):e=!1,hr(t,n),th(t,r,i),xu(t,r,i,n),Ou(null,t,r,!0,e,n);case 19:return lh(e,t,n);case 22:return oh(e,t,n)}throw Error(L(156,t.tag))};function Oh(e,t){return Jd(e,t)}function Yg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ut(e,t,n,r){return new Yg(e,t,n,r)}function Hl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kg(e){if(typeof e=="function")return Hl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cl)return 11;if(e===fl)return 14}return 2}function vn(e,t){var n=e.alternate;return n===null?(n=ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function So(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Hl(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Zn:return Mn(n.children,i,o,t);case ll:a=8,i|=8;break;case Gs:return e=ut(12,n,t,i|2),e.elementType=Gs,e.lanes=o,e;case Ws:return e=ut(13,n,t,i),e.elementType=Ws,e.lanes=o,e;case Ys:return e=ut(19,n,t,i),e.elementType=Ys,e.lanes=o,e;case Md:return ja(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rd:a=10;break e;case Nd:a=9;break e;case cl:a=11;break e;case fl:a=14;break e;case en:a=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=ut(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Mn(e,t,n,r){return e=ut(7,e,r,t),e.lanes=n,e}function ja(e,t,n,r){return e=ut(22,e,r,t),e.elementType=Md,e.lanes=n,e.stateNode={isHidden:!1},e}function Os(e,t,n){return e=ut(6,e,null,t),e.lanes=n,e}function Cs(e,t,n){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qg(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=as(0),this.expirationTimes=as(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=as(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Gl(e,t,n,r,i,o,a,u,l){return e=new Qg(e,t,n,u,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ut(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},kl(o),e}function Xg(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Jn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ch(e){if(!e)return gn;e=e._reactInternals;e:{if(Gn(e)!==e||e.tag!==1)throw Error(L(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(He(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(L(171))}if(e.tag===1){var n=e.type;if(He(n))return Cp(e,n,t)}return t}function Ph(e,t,n,r,i,o,a,u,l){return e=Gl(n,r,!0,e,i,o,a,u,l),e.context=Ch(null),n=e.current,r=De(),i=mn(n),o=Ut(r,i),o.callback=t??null,pn(n,o,i),e.current.lanes=i,ji(e,i,r),Ge(e,r),e}function Ia(e,t,n,r){var i=t.current,o=De(),a=mn(i);return n=Ch(n),t.context===null?t.context=n:t.pendingContext=n,t=Ut(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=pn(i,t,a),e!==null&&(gt(e,i,a,o),mo(e,i,a)),a}function Jo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Cf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Wl(e,t){Cf(e,t),(e=e.alternate)&&Cf(e,t)}function Jg(){return null}var Th=typeof reportError=="function"?reportError:function(e){console.error(e)};function Yl(e){this._internalRoot=e}La.prototype.render=Yl.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));Ia(e,t,null,null)};La.prototype.unmount=Yl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Un(function(){Ia(null,e,null,null)}),t[Ht]=null}};function La(e){this._internalRoot=e}La.prototype.unstable_scheduleHydration=function(e){if(e){var t=op();e={blockedOn:null,target:e,priority:t};for(var n=0;n<rn.length&&t!==0&&t<rn[n].priority;n++);rn.splice(n,0,e),n===0&&sp(e)}};function Kl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ra(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Pf(){}function Zg(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var s=Jo(a);o.call(s)}}var a=Ph(t,r,e,0,null,!1,!1,"",Pf);return e._reactRootContainer=a,e[Ht]=a.current,yi(e.nodeType===8?e.parentNode:e),Un(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var u=r;r=function(){var s=Jo(l);u.call(s)}}var l=Gl(e,0,!1,null,null,!1,!1,"",Pf);return e._reactRootContainer=l,e[Ht]=l.current,yi(e.nodeType===8?e.parentNode:e),Un(function(){Ia(t,l,n,r)}),l}function Na(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var u=i;i=function(){var l=Jo(a);u.call(l)}}Ia(t,a,e,i)}else a=Zg(n,t,e,i,r);return Jo(a)}rp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Qr(t.pendingLanes);n!==0&&(hl(t,n|1),Ge(t,_e()),!(ee&6)&&(jr=_e()+500,Sn()))}break;case 13:Un(function(){var r=Gt(e,1);if(r!==null){var i=De();gt(r,e,1,i)}}),Wl(e,1)}};ml=function(e){if(e.tag===13){var t=Gt(e,134217728);if(t!==null){var n=De();gt(t,e,134217728,n)}Wl(e,134217728)}};ip=function(e){if(e.tag===13){var t=mn(e),n=Gt(e,t);if(n!==null){var r=De();gt(n,e,t,r)}Wl(e,t)}};op=function(){return ae};ap=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};iu=function(e,t,n){switch(t){case"input":if(Xs(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ba(r);if(!i)throw Error(L(90));Fd(r),Xs(r,i)}}}break;case"textarea":Dd(e,n);break;case"select":t=n.value,t!=null&&cr(e,!!n.multiple,t,!1)}};Gd=Ul;Wd=Un;var e_={usingClientEntryPoint:!1,Events:[Li,rr,ba,Bd,Hd,Ul]},qr={findFiberByHostInstance:jn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},t_={bundleType:qr.bundleType,version:qr.version,rendererPackageName:qr.rendererPackageName,rendererConfig:qr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Qd(e),e===null?null:e.stateNode},findFiberByHostInstance:qr.findFiberByHostInstance||Jg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ji=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ji.isDisabled&&Ji.supportsFiber)try{wa=Ji.inject(t_),jt=Ji}catch{}}Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e_;Ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Kl(t))throw Error(L(200));return Xg(e,t,null,n)};Ze.createRoot=function(e,t){if(!Kl(e))throw Error(L(299));var n=!1,r="",i=Th;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Gl(e,1,!1,null,null,n,!1,r,i),e[Ht]=t.current,yi(e.nodeType===8?e.parentNode:e),new Yl(t)};Ze.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(L(188)):(e=Object.keys(e).join(","),Error(L(268,e)));return e=Qd(t),e=e===null?null:e.stateNode,e};Ze.flushSync=function(e){return Un(e)};Ze.hydrate=function(e,t,n){if(!Ra(t))throw Error(L(200));return Na(null,e,t,!0,n)};Ze.hydrateRoot=function(e,t,n){if(!Kl(e))throw Error(L(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=Th;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Ph(t,null,e,1,n??null,i,!1,o,a),e[Ht]=t.current,yi(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new La(t)};Ze.render=function(e,t,n){if(!Ra(t))throw Error(L(200));return Na(null,e,t,!1,n)};Ze.unmountComponentAtNode=function(e){if(!Ra(e))throw Error(L(40));return e._reactRootContainer?(Un(function(){Na(null,null,e,!1,function(){e._reactRootContainer=null,e[Ht]=null})}),!0):!1};Ze.unstable_batchedUpdates=Ul;Ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ra(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return Na(e,t,n,!1,r)};Ze.version="18.3.1-next-f1338f8080-20240426";function kh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kh)}catch(e){console.error(e)}}kh(),kd.exports=Ze;var jh=kd.exports;const n_="_fieldError_qi0xk_1",r_={fieldError:n_};function Ih(e){var t=e.children;return G.createElement("div",{className:r_.fieldError},t)}const i_="_FieldGroup_uz9ju_1",o_="_FieldGroup__item_uz9ju_5",Tf={FieldGroup:i_,FieldGroup__item:o_};var Fu=function(){return Fu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Fu.apply(this,arguments)},a_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Br(e){var t=e.children,n=e.className,r=a_(e,["children","className"]),i=Rt(Tf.FieldGroup,n);return G.createElement("div",Fu({},r,{className:i}),G.Children.map(t,function(o){return G.createElement("div",{className:Tf.FieldGroup__item},o)}))}const s_="_fieldHint_1avon_1",u_={fieldHint:s_};function Lh(e){var t=e.children;return G.createElement("div",{className:u_.fieldHint},t)}var Au=function(){return Au=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Au.apply(this,arguments)};function Rh(e){var t=e.id,n=e.label,r=e.hint,i=e.error,o=e.required,a=e.formLabelProps,u=e.children;return G.createElement(G.Fragment,null,G.createElement(Nh,Au({},a,{htmlFor:t,required:o,error:!!i}),n),u,i&&G.createElement(Ih,null,i),r&&G.createElement(Lh,null,r))}const l_="_Form_5qspp_1",c_="_Form__item_5qspp_5",Ps={Form:l_,Form__item:c_,"Form__item--default":"_Form__item--default_5qspp_13","Form__item--condensed":"_Form__item--condensed_5qspp_17"};var Du=function(){return Du=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Du.apply(this,arguments)},f_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},d_=function(e){var t=e.children,n=e.className,r=e.onSubmit,i=e.spacing,o=i===void 0?"default":i,a=f_(e,["children","className","onSubmit","spacing"]),u=Rt(Ps.Form,n),l=Rt(Ps.Form__item,Ps["Form__item--".concat(o)]),s=k.useCallback(function(c){c.preventDefault(),r&&r(c)},[r]);return G.createElement("form",Du({className:u,onSubmit:s},a),k.Children.map(t,function(c){return c?G.createElement("div",{className:l},c):null}))};const p_="_formLabel_tcjrv_1",h_="_formLabel__code_tcjrv_8",m_="_formLabel__label_tcjrv_18",v_="_formLabel__required_tcjrv_30",Hr={formLabel:p_,formLabel__code:h_,"formLabel--error":"_formLabel--error_tcjrv_14",formLabel__label:m_,formLabel__required:v_};var $u=function(){return $u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$u.apply(this,arguments)},y_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Nh=function(e){var t,n=e.children,r=e.className,i=e.htmlFor,o=e.code,a=e.required,u=a===void 0?!1:a,l=e.error,s=l===void 0?!1:l,c=y_(e,["children","className","htmlFor","code","required","error"]),d=Rt(Hr.formLabel,r,(t={},t[Hr["formLabel--error"]]=s,t));return G.createElement("label",$u({className:d,htmlFor:i},c),G.createElement("span",{className:Hr.formLabel__label},n,u&&G.createElement("span",{className:Hr.formLabel__required},"*")),o&&G.createElement("span",{className:Hr.formLabel__code},o))},Vu=function(){return Vu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Vu.apply(this,arguments)};function g_(e){var t=e.id,n=e.name,r=e.label,i=e.hint,o=e.error,a=e.required,u=e.placeholder,l=e.formLabelProps,s=e.value,c=e.onChange,d=e.selectInputProps;return G.createElement(Rh,{formLabelProps:l,id:t,required:a,error:o,hint:i,label:r},G.createElement(yS,Vu({},d,{id:t,name:n,value:s,placeholder:u,onChange:c,error:!!o})))}function qn(e){"@babel/helpers - typeof";return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qn(e)}function __(e,t){if(qn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mh(e){var t=__(e,"string");return qn(t)=="symbol"?t:t+""}function Jr(e,t,n){return(t=Mh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kf(Object(n),!0).forEach(function(r){Jr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function w_(e){if(Array.isArray(e))return e}function S_(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,u=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(c){s=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}function Uu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zh(e,t){if(e){if(typeof e=="string")return Uu(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uu(e,t):void 0}}function x_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
45
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qt(e,t){return w_(e)||S_(e,t)||zh(e,t)||x_()}function E_(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Jt(e,t){if(e==null)return{};var n,r,i=E_(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var b_=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function O_(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,a=o===void 0?null:o,u=e.inputValue,l=e.menuIsOpen,s=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,h=e.value,p=Jt(e,b_),y=k.useState(u!==void 0?u:n),x=qt(y,2),m=x[0],v=x[1],g=k.useState(l!==void 0?l:i),w=qt(g,2),E=w[0],b=w[1],O=k.useState(h!==void 0?h:a),P=qt(O,2),R=P[0],I=P[1],z=k.useCallback(function(j,A){typeof s=="function"&&s(j,A),I(j)},[s]),F=k.useCallback(function(j,A){var D;typeof c=="function"&&(D=c(j,A)),v(D!==void 0?D:j)},[c]),U=k.useCallback(function(){typeof f=="function"&&f(),b(!0)},[f]),Y=k.useCallback(function(){typeof d=="function"&&d(),b(!1)},[d]),K=u!==void 0?u:m,Q=l!==void 0?l:E,oe=h!==void 0?h:R;return V(V({},p),{},{inputValue:K,menuIsOpen:Q,onChange:z,onInputChange:F,onMenuClose:Y,onMenuOpen:U,value:oe})}function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(null,arguments)}function C_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mh(r.key),r)}}function P_(e,t,n){return t&&jf(e.prototype,t),n&&jf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qu(e,t){return qu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},qu(e,t)}function T_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qu(e,t)}function Zo(e){return Zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zo(e)}function Fh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fh=function(){return!!e})()}function k_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j_(e,t){if(t&&(qn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k_(e)}function I_(e){var t=Fh();return function(){var n,r=Zo(e);if(t){var i=Zo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return j_(this,n)}}function L_(e){if(Array.isArray(e))return Uu(e)}function R_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function N_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
46
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ql(e){return L_(e)||R_(e)||zh(e)||N_()}function M_(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function z_(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var F_=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(z_(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=M_(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Ne="-ms-",ea="-moz-",re="-webkit-",Ah="comm",Xl="rule",Jl="decl",A_="@import",Dh="@keyframes",D_="@layer",$_=Math.abs,Ma=String.fromCharCode,V_=Object.assign;function U_(e,t){return ke(e,0)^45?(((t<<2^ke(e,0))<<2^ke(e,1))<<2^ke(e,2))<<2^ke(e,3):0}function $h(e){return e.trim()}function q_(e,t){return(e=t.exec(e))?e[0]:e}function ie(e,t,n){return e.replace(t,n)}function Bu(e,t){return e.indexOf(t)}function ke(e,t){return e.charCodeAt(t)|0}function Ci(e,t,n){return e.slice(t,n)}function bt(e){return e.length}function Zl(e){return e.length}function Zi(e,t){return t.push(e),e}function B_(e,t){return e.map(t).join("")}var za=1,Ir=1,Vh=0,We=0,Se=0,Mr="";function Fa(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:za,column:Ir,length:a,return:""}}function Gr(e,t){return V_(Fa("",null,null,"",null,null,0),e,{length:-e.length},t)}function H_(){return Se}function G_(){return Se=We>0?ke(Mr,--We):0,Ir--,Se===10&&(Ir=1,za--),Se}function Xe(){return Se=We<Vh?ke(Mr,We++):0,Ir++,Se===10&&(Ir=1,za++),Se}function Lt(){return ke(Mr,We)}function xo(){return We}function Ni(e,t){return Ci(Mr,e,t)}function Pi(e){switch(e){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 Uh(e){return za=Ir=1,Vh=bt(Mr=e),We=0,[]}function qh(e){return Mr="",e}function Eo(e){return $h(Ni(We-1,Hu(e===91?e+2:e===40?e+1:e)))}function W_(e){for(;(Se=Lt())&&Se<33;)Xe();return Pi(e)>2||Pi(Se)>3?"":" "}function Y_(e,t){for(;--t&&Xe()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return Ni(e,xo()+(t<6&&Lt()==32&&Xe()==32))}function Hu(e){for(;Xe();)switch(Se){case e:return We;case 34:case 39:e!==34&&e!==39&&Hu(Se);break;case 40:e===41&&Hu(e);break;case 92:Xe();break}return We}function K_(e,t){for(;Xe()&&e+Se!==57;)if(e+Se===84&&Lt()===47)break;return"/*"+Ni(t,We-1)+"*"+Ma(e===47?e:Xe())}function Q_(e){for(;!Pi(Lt());)Xe();return Ni(e,We)}function X_(e){return qh(bo("",null,null,null,[""],e=Uh(e),0,[0],e))}function bo(e,t,n,r,i,o,a,u,l){for(var s=0,c=0,d=a,f=0,h=0,p=0,y=1,x=1,m=1,v=0,g="",w=i,E=o,b=r,O=g;x;)switch(p=v,v=Xe()){case 40:if(p!=108&&ke(O,d-1)==58){Bu(O+=ie(Eo(v),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:O+=Eo(v);break;case 9:case 10:case 13:case 32:O+=W_(p);break;case 92:O+=Y_(xo()-1,7);continue;case 47:switch(Lt()){case 42:case 47:Zi(J_(K_(Xe(),xo()),t,n),l);break;default:O+="/"}break;case 123*y:u[s++]=bt(O)*m;case 125*y:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+c:m==-1&&(O=ie(O,/\f/g,"")),h>0&&bt(O)-d&&Zi(h>32?Lf(O+";",r,n,d-1):Lf(ie(O," ","")+";",r,n,d-2),l);break;case 59:O+=";";default:if(Zi(b=If(O,t,n,s,c,i,u,g,w=[],E=[],d),o),v===123)if(c===0)bo(O,t,b,b,w,o,d,u,E);else switch(f===99&&ke(O,3)===110?100:f){case 100:case 108:case 109:case 115:bo(e,b,b,r&&Zi(If(e,b,b,0,0,i,u,g,i,w=[],d),E),i,E,d,u,r?w:E);break;default:bo(O,b,b,b,[""],E,0,u,E)}}s=c=h=0,y=m=1,g=O="",d=a;break;case 58:d=1+bt(O),h=p;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&G_()==125)continue}switch(O+=Ma(v),v*y){case 38:m=c>0?1:(O+="\f",-1);break;case 44:u[s++]=(bt(O)-1)*m,m=1;break;case 64:Lt()===45&&(O+=Eo(Xe())),f=Lt(),c=d=bt(g=O+=Q_(xo())),v++;break;case 45:p===45&&bt(O)==2&&(y=0)}}return o}function If(e,t,n,r,i,o,a,u,l,s,c){for(var d=i-1,f=i===0?o:[""],h=Zl(f),p=0,y=0,x=0;p<r;++p)for(var m=0,v=Ci(e,d+1,d=$_(y=a[p])),g=e;m<h;++m)(g=$h(y>0?f[m]+" "+v:ie(v,/&\f/g,f[m])))&&(l[x++]=g);return Fa(e,t,n,i===0?Xl:u,l,s,c)}function J_(e,t,n){return Fa(e,t,n,Ah,Ma(H_()),Ci(e,2,-2),0)}function Lf(e,t,n,r){return Fa(e,t,n,Jl,Ci(e,0,r),Ci(e,r+1,-1),r)}function vr(e,t){for(var n="",r=Zl(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Z_(e,t,n,r){switch(e.type){case D_:if(e.children.length)break;case A_:case Jl:return e.return=e.return||e.value;case Ah:return"";case Dh:return e.return=e.value+"{"+vr(e.children,r)+"}";case Xl:e.value=e.props.join(",")}return bt(n=vr(e.children,r))?e.return=e.value+"{"+n+"}":""}function e0(e){var t=Zl(e);return function(n,r,i,o){for(var a="",u=0;u<t;u++)a+=e[u](n,r,i,o)||"";return a}}function t0(e){return function(t){t.root||(t=t.return)&&e(t)}}function n0(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var r0=function(t,n,r){for(var i=0,o=0;i=o,o=Lt(),i===38&&o===12&&(n[r]=1),!Pi(o);)Xe();return Ni(t,We)},i0=function(t,n){var r=-1,i=44;do switch(Pi(i)){case 0:i===38&&Lt()===12&&(n[r]=1),t[r]+=r0(We-1,n,r);break;case 2:t[r]+=Eo(i);break;case 4:if(i===44){t[++r]=Lt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ma(i)}while(i=Xe());return t},o0=function(t,n){return qh(i0(Uh(t),n))},Rf=new WeakMap,a0=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Rf.get(r))&&!i){Rf.set(t,!0);for(var o=[],a=o0(n,o),u=r.props,l=0,s=0;l<a.length;l++)for(var c=0;c<u.length;c++,s++)t.props[s]=o[l]?a[l].replace(/&\f/g,u[c]):u[c]+" "+a[l]}}},s0=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Bh(e,t){switch(U_(e,t)){case 5103:return re+"print-"+e+e;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 re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return re+e+ea+e+Ne+e+e;case 6828:case 4268:return re+e+Ne+e+e;case 6165:return re+e+Ne+"flex-"+e+e;case 5187:return re+e+ie(e,/(\w+).+(:[^]+)/,re+"box-$1$2"+Ne+"flex-$1$2")+e;case 5443:return re+e+Ne+"flex-item-"+ie(e,/flex-|-self/,"")+e;case 4675:return re+e+Ne+"flex-line-pack"+ie(e,/align-content|flex-|-self/,"")+e;case 5548:return re+e+Ne+ie(e,"shrink","negative")+e;case 5292:return re+e+Ne+ie(e,"basis","preferred-size")+e;case 6060:return re+"box-"+ie(e,"-grow","")+re+e+Ne+ie(e,"grow","positive")+e;case 4554:return re+ie(e,/([^-])(transform)/g,"$1"+re+"$2")+e;case 6187:return ie(ie(ie(e,/(zoom-|grab)/,re+"$1"),/(image-set)/,re+"$1"),e,"")+e;case 5495:case 3959:return ie(e,/(image-set\([^]*)/,re+"$1$`$1");case 4968:return ie(ie(e,/(.+:)(flex-)?(.*)/,re+"box-pack:$3"+Ne+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+re+e+e;case 4095:case 3583:case 4068:case 2532:return ie(e,/(.+)-inline(.+)/,re+"$1$2")+e;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(bt(e)-1-t>6)switch(ke(e,t+1)){case 109:if(ke(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+re+"$2-$3$1"+ea+(ke(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Bu(e,"stretch")?Bh(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ke(e,t+1)!==115)break;case 6444:switch(ke(e,bt(e)-3-(~Bu(e,"!important")&&10))){case 107:return ie(e,":",":"+re)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+re+(ke(e,14)===45?"inline-":"")+"box$3$1"+re+"$2$3$1"+Ne+"$2box$3")+e}break;case 5936:switch(ke(e,t+11)){case 114:return re+e+Ne+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return re+e+Ne+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return re+e+Ne+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return re+e+Ne+e+e}return e}var u0=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Jl:t.return=Bh(t.value,t.length);break;case Dh:return vr([Gr(t,{value:ie(t.value,"@","@"+re)})],i);case Xl:if(t.length)return B_(t.props,function(o){switch(q_(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vr([Gr(t,{props:[ie(o,/:(read-\w+)/,":"+ea+"$1")]})],i);case"::placeholder":return vr([Gr(t,{props:[ie(o,/:(plac\w+)/,":"+re+"input-$1")]}),Gr(t,{props:[ie(o,/:(plac\w+)/,":"+ea+"$1")]}),Gr(t,{props:[ie(o,/:(plac\w+)/,Ne+"input-$1")]})],i)}return""})}},l0=[u0],c0=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||l0,o={},a,u=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),m=1;m<x.length;m++)o[x[m]]=!0;u.push(y)});var l,s=[a0,s0];{var c,d=[Z_,t0(function(y){c.insert(y)})],f=e0(s.concat(i,d)),h=function(x){return vr(X_(x),f)};l=function(x,m,v,g){c=v,h(x?x+"{"+m.styles+"}":m.styles),g&&(p.inserted[m.name]=!0)}}var p={key:n,sheet:new F_({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return p.sheet.hydrate(u),p},Hh={exports:{}},se={};/** @license React v16.13.1
47
- * react-is.production.min.js
48
- *
49
- * Copyright (c) Facebook, Inc. and its affiliates.
50
- *
51
- * This source code is licensed under the MIT license found in the
52
- * LICENSE file in the root directory of this source tree.
53
- */var Pe=typeof Symbol=="function"&&Symbol.for,ec=Pe?Symbol.for("react.element"):60103,tc=Pe?Symbol.for("react.portal"):60106,Aa=Pe?Symbol.for("react.fragment"):60107,Da=Pe?Symbol.for("react.strict_mode"):60108,$a=Pe?Symbol.for("react.profiler"):60114,Va=Pe?Symbol.for("react.provider"):60109,Ua=Pe?Symbol.for("react.context"):60110,nc=Pe?Symbol.for("react.async_mode"):60111,qa=Pe?Symbol.for("react.concurrent_mode"):60111,Ba=Pe?Symbol.for("react.forward_ref"):60112,Ha=Pe?Symbol.for("react.suspense"):60113,f0=Pe?Symbol.for("react.suspense_list"):60120,Ga=Pe?Symbol.for("react.memo"):60115,Wa=Pe?Symbol.for("react.lazy"):60116,d0=Pe?Symbol.for("react.block"):60121,p0=Pe?Symbol.for("react.fundamental"):60117,h0=Pe?Symbol.for("react.responder"):60118,m0=Pe?Symbol.for("react.scope"):60119;function tt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ec:switch(e=e.type,e){case nc:case qa:case Aa:case $a:case Da:case Ha:return e;default:switch(e=e&&e.$$typeof,e){case Ua:case Ba:case Wa:case Ga:case Va:return e;default:return t}}case tc:return t}}}function Gh(e){return tt(e)===qa}se.AsyncMode=nc;se.ConcurrentMode=qa;se.ContextConsumer=Ua;se.ContextProvider=Va;se.Element=ec;se.ForwardRef=Ba;se.Fragment=Aa;se.Lazy=Wa;se.Memo=Ga;se.Portal=tc;se.Profiler=$a;se.StrictMode=Da;se.Suspense=Ha;se.isAsyncMode=function(e){return Gh(e)||tt(e)===nc};se.isConcurrentMode=Gh;se.isContextConsumer=function(e){return tt(e)===Ua};se.isContextProvider=function(e){return tt(e)===Va};se.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ec};se.isForwardRef=function(e){return tt(e)===Ba};se.isFragment=function(e){return tt(e)===Aa};se.isLazy=function(e){return tt(e)===Wa};se.isMemo=function(e){return tt(e)===Ga};se.isPortal=function(e){return tt(e)===tc};se.isProfiler=function(e){return tt(e)===$a};se.isStrictMode=function(e){return tt(e)===Da};se.isSuspense=function(e){return tt(e)===Ha};se.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Aa||e===qa||e===$a||e===Da||e===Ha||e===f0||typeof e=="object"&&e!==null&&(e.$$typeof===Wa||e.$$typeof===Ga||e.$$typeof===Va||e.$$typeof===Ua||e.$$typeof===Ba||e.$$typeof===p0||e.$$typeof===h0||e.$$typeof===m0||e.$$typeof===d0)};se.typeOf=tt;Hh.exports=se;var v0=Hh.exports,Wh=v0,y0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},g0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Yh={};Yh[Wh.ForwardRef]=y0;Yh[Wh.Memo]=g0;var _0=!0;function w0(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var Kh=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||_0===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},S0=function(t,n,r){Kh(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function x0(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var E0={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},b0=/[A-Z]|^ms/g,O0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qh=function(t){return t.charCodeAt(1)===45},Nf=function(t){return t!=null&&typeof t!="boolean"},Ts=n0(function(e){return Qh(e)?e:e.replace(b0,"-$&").toLowerCase()}),Mf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(O0,function(r,i,o){return Ot={name:i,styles:o,next:Ot},i})}return E0[t]!==1&&!Qh(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ti(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Ot={name:i.name,styles:i.styles,next:Ot},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Ot={name:a.name,styles:a.styles,next:Ot},a=a.next;var u=o.styles+";";return u}return C0(e,t,n)}case"function":{if(e!==void 0){var l=Ot,s=n(e);return Ot=l,Ti(e,t,s)}break}}var c=n;return c}function C0(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ti(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var u=a;Nf(u)&&(r+=Ts(o)+":"+Mf(o,u)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var l=0;l<a.length;l++)Nf(a[l])&&(r+=Ts(o)+":"+Mf(o,a[l])+";");else{var s=Ti(e,t,a);switch(o){case"animation":case"animationName":{r+=Ts(o)+":"+s+";";break}default:r+=o+"{"+s+"}"}}}return r}var zf=/label:\s*([^\s;{]+)\s*(;|$)/g,Ot;function Xh(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Ot=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Ti(n,t,o);else{var a=o;i+=a[0]}for(var u=1;u<e.length;u++)if(i+=Ti(n,t,e[u]),r){var l=o;i+=l[u]}zf.lastIndex=0;for(var s="",c;(c=zf.exec(i))!==null;)s+="-"+c[1];var d=x0(i)+s;return{name:d,styles:i,next:Ot}}var P0=function(t){return t()},T0=yc.useInsertionEffect?yc.useInsertionEffect:!1,k0=T0||P0,Jh=k.createContext(typeof HTMLElement<"u"?c0({key:"css"}):null);Jh.Provider;var j0=function(t){return k.forwardRef(function(n,r){var i=k.useContext(Jh);return t(n,i,r)})},I0=k.createContext({}),rc={}.hasOwnProperty,Gu="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",L0=function(t,n){var r={};for(var i in n)rc.call(n,i)&&(r[i]=n[i]);return r[Gu]=t,r},R0=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Kh(n,r,i),k0(function(){return S0(n,r,i)}),null},N0=j0(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Gu],o=[r],a="";typeof e.className=="string"?a=w0(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var u=Xh(o,void 0,k.useContext(I0));a+=t.key+"-"+u.name;var l={};for(var s in e)rc.call(e,s)&&s!=="css"&&s!==Gu&&(l[s]=e[s]);return l.className=a,n&&(l.ref=n),k.createElement(k.Fragment,null,k.createElement(R0,{cache:t,serialized:u,isStringTag:typeof i=="string"}),k.createElement(i,l))}),M0=N0,$=function(t,n){var r=arguments;if(n==null||!rc.call(n,"css"))return k.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=M0,o[1]=L0(t,n);for(var a=2;a<i;a++)o[a]=r[a];return k.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})($||($={}));function ic(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Xh(t)}function z0(){var e=ic.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function F0(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const A0=Math.min,D0=Math.max,ta=Math.round,eo=Math.floor,na=e=>({x:e,y:e});function $0(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ya(){return typeof window<"u"}function Zh(e){return tm(e)?(e.nodeName||"").toLowerCase():"#document"}function Yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function em(e){var t;return(t=(tm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tm(e){return Ya()?e instanceof Node||e instanceof Yt(e).Node:!1}function V0(e){return Ya()?e instanceof Element||e instanceof Yt(e).Element:!1}function oc(e){return Ya()?e instanceof HTMLElement||e instanceof Yt(e).HTMLElement:!1}function Ff(e){return!Ya()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yt(e).ShadowRoot}function nm(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ac(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function U0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function q0(e){return["html","body","#document"].includes(Zh(e))}function ac(e){return Yt(e).getComputedStyle(e)}function B0(e){if(Zh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ff(e)&&e.host||em(e);return Ff(t)?t.host:t}function rm(e){const t=B0(e);return q0(t)?e.ownerDocument?e.ownerDocument.body:e.body:oc(t)&&nm(t)?t:rm(t)}function ra(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=rm(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Yt(i);if(o){const u=Wu(a);return t.concat(a,a.visualViewport||[],nm(i)?i:[],u&&n?ra(u):[])}return t.concat(i,ra(i,[],n))}function Wu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function H0(e){const t=ac(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=oc(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,u=ta(n)!==o||ta(r)!==a;return u&&(n=o,r=a),{width:n,height:r,$:u}}function sc(e){return V0(e)?e:e.contextElement}function Af(e){const t=sc(e);if(!oc(t))return na(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=H0(t);let a=(o?ta(n.width):n.width)/r,u=(o?ta(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}const G0=na(0);function W0(e){const t=Yt(e);return!U0()||!t.visualViewport?G0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Y0(e,t,n){return!1}function Df(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=sc(e);let a=na(1);t&&(a=Af(e));const u=Y0()?W0(o):na(0);let l=(i.left+u.x)/a.x,s=(i.top+u.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){const f=Yt(o),h=r;let p=f,y=Wu(p);for(;y&&r&&h!==p;){const x=Af(y),m=y.getBoundingClientRect(),v=ac(y),g=m.left+(y.clientLeft+parseFloat(v.paddingLeft))*x.x,w=m.top+(y.clientTop+parseFloat(v.paddingTop))*x.y;l*=x.x,s*=x.y,c*=x.x,d*=x.y,l+=g,s+=w,p=Yt(y),y=Wu(p)}}return $0({width:c,height:d,x:l,y:s})}function im(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function K0(e,t){let n=null,r;const i=em(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function a(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),o();const s=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=s;if(u||t(),!f||!h)return;const p=eo(d),y=eo(i.clientWidth-(c+f)),x=eo(i.clientHeight-(d+h)),m=eo(c),g={rootMargin:-p+"px "+-y+"px "+-x+"px "+-m+"px",threshold:D0(0,A0(1,l))||1};let w=!0;function E(b){const O=b[0].intersectionRatio;if(O!==l){if(!w)return a();O?a(!1,O):r=setTimeout(()=>{a(!1,1e-7)},1e3)}O===1&&!im(s,e.getBoundingClientRect())&&a(),w=!1}try{n=new IntersectionObserver(E,{...g,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,g)}n.observe(e)}return a(!0),o}function Q0(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,s=sc(e),c=i||o?[...s?ra(s):[],...ra(t)]:[];c.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),o&&m.addEventListener("resize",n)});const d=s&&u?K0(s,n):null;let f=-1,h=null;a&&(h=new ResizeObserver(m=>{let[v]=m;v&&v.target===s&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var g;(g=h)==null||g.observe(t)})),n()}),s&&!l&&h.observe(s),h.observe(t));let p,y=l?Df(e):null;l&&x();function x(){const m=Df(e);y&&!im(y,m)&&n(),y=m,p=requestAnimationFrame(x)}return n(),()=>{var m;c.forEach(v=>{i&&v.removeEventListener("scroll",n),o&&v.removeEventListener("resize",n)}),d==null||d(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(p)}}var Yu=k.useLayoutEffect,X0=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ia=function(){};function J0(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Z0(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(J0(e,a)));return o.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var $f=function(t){return uw(t)?t.filter(Boolean):qn(t)==="object"&&t!==null?[t]:[]},om=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Jt(t,X0);return V({},n)},ye=function(t,n,r){var i=t.cx,o=t.getStyles,a=t.getClassNames,u=t.className;return{css:o(n,t),className:i(r??{},a(n,t),u)}};function Ka(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ew(e){return Ka(e)?window.innerHeight:e.clientHeight}function am(e){return Ka(e)?window.pageYOffset:e.scrollTop}function oa(e,t){if(Ka(e)){window.scrollTo(0,t);return}e.scrollTop=t}function tw(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function nw(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function to(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ia,i=am(e),o=t-i,a=10,u=0;function l(){u+=a;var s=nw(u,i,o,n);oa(e,s),u<n?window.requestAnimationFrame(l):r(e)}l()}function Vf(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?oa(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&oa(e,Math.max(t.offsetTop-i,0))}function rw(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Uf(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function iw(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var sm=!1,ow={get passive(){return sm=!0}},no=typeof window<"u"?window:{};no.addEventListener&&no.removeEventListener&&(no.addEventListener("p",ia,ow),no.removeEventListener("p",ia,!1));var aw=sm;function sw(e){return e!=null}function uw(e){return Array.isArray(e)}function ro(e,t,n){return e?t:n}var lw=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=Object.entries(t).filter(function(a){var u=qt(a,1),l=u[0];return!r.includes(l)});return o.reduce(function(a,u){var l=qt(u,2),s=l[0],c=l[1];return a[s]=c,a},{})},cw=["children","innerProps"],fw=["children","innerProps"];function dw(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,u=e.controlHeight,l=tw(n),s={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return s;var c=l.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),h=f.bottom,p=f.height,y=f.top,x=n.offsetParent.getBoundingClientRect(),m=x.top,v=a?window.innerHeight:ew(l),g=am(l),w=parseInt(getComputedStyle(n).marginBottom,10),E=parseInt(getComputedStyle(n).marginTop,10),b=m-E,O=v-y,P=b+g,R=d-g-y,I=h-v+g+w,z=g+y-E,F=160;switch(i){case"auto":case"bottom":if(O>=p)return{placement:"bottom",maxHeight:t};if(R>=p&&!a)return o&&to(l,I,F),{placement:"bottom",maxHeight:t};if(!a&&R>=r||a&&O>=r){o&&to(l,I,F);var U=a?O-w:R-w;return{placement:"bottom",maxHeight:U}}if(i==="auto"||a){var Y=t,K=a?b:P;return K>=r&&(Y=Math.min(K-w-u,t)),{placement:"top",maxHeight:Y}}if(i==="bottom")return o&&oa(l,I),{placement:"bottom",maxHeight:t};break;case"top":if(b>=p)return{placement:"top",maxHeight:t};if(P>=p&&!a)return o&&to(l,z,F),{placement:"top",maxHeight:t};if(!a&&P>=r||a&&b>=r){var Q=t;return(!a&&P>=r||a&&b>=r)&&(Q=a?b-E:P-E),o&&to(l,z,F),{placement:"top",maxHeight:Q}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return s}function pw(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var um=function(t){return t==="auto"?"bottom":t},hw=function(t,n){var r,i=t.placement,o=t.theme,a=o.borderRadius,u=o.spacing,l=o.colors;return V((r={label:"menu"},Jr(r,pw(i),"100%"),Jr(r,"position","absolute"),Jr(r,"width","100%"),Jr(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},lm=k.createContext(null),mw=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,u=t.menuShouldScrollIntoView,l=t.theme,s=k.useContext(lm)||{},c=s.setPortalPlacement,d=k.useRef(null),f=k.useState(i),h=qt(f,2),p=h[0],y=h[1],x=k.useState(null),m=qt(x,2),v=m[0],g=m[1],w=l.spacing.controlHeight;return Yu(function(){var E=d.current;if(E){var b=a==="fixed",O=u&&!b,P=dw({maxHeight:i,menuEl:E,minHeight:r,placement:o,shouldScroll:O,isFixedPosition:b,controlHeight:w});y(P.maxHeight),g(P.placement),c==null||c(P.placement)}},[i,o,a,u,r,c,w]),n({ref:d,placerProps:V(V({},t),{},{placement:v||um(o),maxHeight:p})})},vw=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return $("div",B({},ye(t,"menu",{menu:!0}),{ref:r},i),n)},yw=vw,gw=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return V({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},_w=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return $("div",B({},ye(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},cm=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return V({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},ww=cm,Sw=cm,xw=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=Jt(t,cw);return $("div",B({},ye(V(V({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},Ew=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=Jt(t,fw);return $("div",B({},ye(V(V({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},bw=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},Ow=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,a=t.menuPlacement,u=t.menuPosition,l=k.useRef(null),s=k.useRef(null),c=k.useState(um(a)),d=qt(c,2),f=d[0],h=d[1],p=k.useMemo(function(){return{setPortalPlacement:h}},[]),y=k.useState(null),x=qt(y,2),m=x[0],v=x[1],g=k.useCallback(function(){if(i){var O=rw(i),P=u==="fixed"?0:window.pageYOffset,R=O[f]+P;(R!==(m==null?void 0:m.offset)||O.left!==(m==null?void 0:m.rect.left)||O.width!==(m==null?void 0:m.rect.width))&&v({offset:R,rect:O})}},[i,u,f,m==null?void 0:m.offset,m==null?void 0:m.rect.left,m==null?void 0:m.rect.width]);Yu(function(){g()},[g]);var w=k.useCallback(function(){typeof s.current=="function"&&(s.current(),s.current=null),i&&l.current&&(s.current=Q0(i,l.current,g,{elementResize:"ResizeObserver"in window}))},[i,g]);Yu(function(){w()},[w]);var E=k.useCallback(function(O){l.current=O,w()},[w]);if(!n&&u!=="fixed"||!m)return null;var b=$("div",B({ref:E},ye(V(V({},t),{},{offset:m.offset,position:u,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),r);return $(lm.Provider,{value:p},n?jh.createPortal(b,n):b)},Cw=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},Pw=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return $("div",B({},ye(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},Tw=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return V({alignItems:"center",display:i&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},kw=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return $("div",B({},ye(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},jw=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Iw=function(t){var n=t.children,r=t.innerProps;return $("div",B({},ye(t,"indicatorsContainer",{indicators:!0}),r),n)},qf,Lw=["size"],Rw=["innerProps","isRtl","size"],Nw={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},fm=function(t){var n=t.size,r=Jt(t,Lw);return $("svg",B({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Nw},r))},uc=function(t){return $(fm,B({size:20},t),$("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"}))},dm=function(t){return $(fm,B({size:20},t),$("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"}))},pm=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return V({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:o*2,":hover":{color:r?a.neutral80:a.neutral40}})},Mw=pm,zw=function(t){var n=t.children,r=t.innerProps;return $("div",B({},ye(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||$(dm,null))},Fw=pm,Aw=function(t){var n=t.children,r=t.innerProps;return $("div",B({},ye(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||$(uc,null))},Dw=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return V({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},$w=function(t){var n=t.innerProps;return $("span",B({},n,ye(t,"indicatorSeparator",{"indicator-separator":!0})))},Vw=z0(qf||(qf=F0([`
54
- 0%, 80%, 100% { opacity: 0; }
55
- 40% { opacity: 1; }
56
- `]))),Uw=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,a=o.colors,u=o.spacing.baseUnit;return V({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:u*2})},ks=function(t){var n=t.delay,r=t.offset;return $("span",{css:ic({animation:"".concat(Vw," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},qw=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,a=Jt(t,Rw);return $("div",B({},ye(V(V({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),$(ks,{delay:0,offset:r}),$(ks,{delay:160,offset:!0}),$(ks,{delay:320,offset:!r}))},Bw=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,a=o.colors,u=o.borderRadius,l=o.spacing;return V({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:i?a.primary:a.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},Hw=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,a=t.innerProps,u=t.menuIsOpen;return $("div",B({ref:o},ye(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":u}),a,{"aria-disabled":r||void 0}),n)},Gw=Hw,Ww=["data"],Yw=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},Kw=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,a=t.Heading,u=t.headingProps,l=t.innerProps,s=t.label,c=t.theme,d=t.selectProps;return $("div",B({},ye(t,"group",{group:!0}),l),$(a,B({},u,{selectProps:d,theme:c,getStyles:i,getClassNames:o,cx:r}),s),$("div",null,n))},Qw=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return V({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},Xw=function(t){var n=om(t);n.data;var r=Jt(n,Ww);return $("div",B({},ye(t,"groupHeading",{"group-heading":!0}),r))},Jw=Kw,Zw=["innerRef","isDisabled","isHidden","inputClassName"],e1=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,a=o.spacing,u=o.colors;return V(V({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},t1),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:u.neutral80})},hm={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},t1={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":V({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},hm)},n1=function(t){return V({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},hm)},r1=function(t){var n=t.cx,r=t.value,i=om(t),o=i.innerRef,a=i.isDisabled,u=i.isHidden,l=i.inputClassName,s=Jt(i,Zw);return $("div",B({},ye(t,"input",{"input-container":!0}),{"data-value":r||""}),$("input",B({className:n({input:!0},l),ref:o,style:n1(u),disabled:a},s)))},i1=r1,o1=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors;return V({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},a1=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return V({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},s1=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors,u=t.isFocused;return V({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:u?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},mm=function(t){var n=t.children,r=t.innerProps;return $("div",r,n)},u1=mm,l1=mm;function c1(e){var t=e.children,n=e.innerProps;return $("div",B({role:"button"},n),t||$(uc,{size:14}))}var f1=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,a=t.isDisabled,u=t.removeProps,l=t.selectProps,s=r.Container,c=r.Label,d=r.Remove;return $(s,{data:i,innerProps:V(V({},ye(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},$(c,{data:i,innerProps:V({},ye(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),$(d,{data:i,innerProps:V(V({},ye(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},u),selectProps:l}))},d1=f1,p1=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.theme,u=a.spacing,l=a.colors;return V({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?l.primary:l.primary50}})},h1=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.innerRef,u=t.innerProps;return $("div",B({},ye(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},u),n)},m1=h1,v1=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return V({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},y1=function(t){var n=t.children,r=t.innerProps;return $("div",B({},ye(t,"placeholder",{placeholder:!0}),r),n)},g1=y1,_1=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,a=i.colors;return V({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},w1=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return $("div",B({},ye(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},S1=w1,x1={ClearIndicator:Aw,Control:Gw,DropdownIndicator:zw,DownChevron:dm,CrossIcon:uc,Group:Jw,GroupHeading:Xw,IndicatorsContainer:Iw,IndicatorSeparator:$w,Input:i1,LoadingIndicator:qw,Menu:yw,MenuList:_w,MenuPortal:Ow,LoadingMessage:Ew,NoOptionsMessage:xw,MultiValue:d1,MultiValueContainer:u1,MultiValueLabel:l1,MultiValueRemove:c1,Option:m1,Placeholder:g1,SelectContainer:Pw,SingleValue:S1,ValueContainer:kw},E1=function(t){return V(V({},x1),t.components)},Bf=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function b1(e,t){return!!(e===t||Bf(e)&&Bf(t))}function O1(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!b1(e[n],t[n]))return!1;return!0}function C1(e,t){t===void 0&&(t=O1);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var a=e.apply(this,i);return n={lastResult:a,lastArgs:i,lastThis:this},a}return r.clear=function(){n=null},r}var P1={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"},T1=function(t){return $("span",B({css:P1},t))},Hf=T1,k1={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,o=t.context,a=t.isInitialFocus;switch(o){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(i?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" 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(t){var n=t.action,r=t.label,i=r===void 0?"":r,o=t.labels,a=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,a=o===void 0?"":o,u=t.selectValue,l=t.isDisabled,s=t.isSelected,c=t.isAppleDevice,d=function(y,x){return y&&y.length?"".concat(y.indexOf(x)+1," of ").concat(y.length):""};if(n==="value"&&u)return"value ".concat(a," focused, ").concat(d(u,r),".");if(n==="menu"&&c){var f=l?" disabled":"",h="".concat(s?" selected":"").concat(f);return"".concat(a).concat(h,", ").concat(d(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},j1=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,u=t.selectValue,l=t.selectProps,s=t.id,c=t.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,h=l.inputValue,p=l.isMulti,y=l.isOptionDisabled,x=l.isSearchable,m=l.menuIsOpen,v=l.options,g=l.screenReaderStatus,w=l.tabSelectsValue,E=l.isLoading,b=l["aria-label"],O=l["aria-live"],P=k.useMemo(function(){return V(V({},k1),d||{})},[d]),R=k.useMemo(function(){var K="";if(n&&P.onChange){var Q=n.option,oe=n.options,j=n.removedValue,A=n.removedValues,D=n.value,Z=function(Fe){return Array.isArray(Fe)?null:Fe},q=j||Q||Z(D),W=q?f(q):"",te=oe||A||void 0,X=te?te.map(f):[],ne=V({isDisabled:q&&y(q,u),label:W,labels:X},n);K=P.onChange(ne)}return K},[n,P,y,u,f]),I=k.useMemo(function(){var K="",Q=r||i,oe=!!(r&&u&&u.includes(r));if(Q&&P.onFocus){var j={focused:Q,label:f(Q),isDisabled:y(Q,u),isSelected:oe,options:o,context:Q===r?"menu":"value",selectValue:u,isAppleDevice:c};K=P.onFocus(j)}return K},[r,i,f,y,P,o,u,c]),z=k.useMemo(function(){var K="";if(m&&v.length&&!E&&P.onFilter){var Q=g({count:o.length});K=P.onFilter({inputValue:h,resultsMessage:Q})}return K},[o,h,m,P,v,g,E]),F=(n==null?void 0:n.action)==="initial-input-focus",U=k.useMemo(function(){var K="";if(P.guidance){var Q=i?"value":m?"menu":"input";K=P.guidance({"aria-label":b,context:Q,isDisabled:r&&y(r,u),isMulti:p,isSearchable:x,tabSelectsValue:w,isInitialFocus:F})}return K},[b,r,i,p,y,x,m,P,u,w,F]),Y=$(k.Fragment,null,$("span",{id:"aria-selection"},R),$("span",{id:"aria-focused"},I),$("span",{id:"aria-results"},z),$("span",{id:"aria-guidance"},U));return $(k.Fragment,null,$(Hf,{id:s},F&&Y),$(Hf,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!F&&Y))},I1=j1,Ku=[{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źẑżžẓẕƶȥɀⱬꝣ"}],L1=new RegExp("["+Ku.map(function(e){return e.letters}).join("")+"]","g"),vm={};for(var js=0;js<Ku.length;js++)for(var Is=Ku[js],Ls=0;Ls<Is.letters.length;Ls++)vm[Is.letters[Ls]]=Is.base;var ym=function(t){return t.replace(L1,function(n){return vm[n]})},R1=C1(ym),Gf=function(t){return t.replace(/^\s+|\s+$/g,"")},N1=function(t){return"".concat(t.label," ").concat(t.value)},M1=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=V({ignoreCase:!0,ignoreAccents:!0,stringify:N1,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,a=i.ignoreAccents,u=i.stringify,l=i.trim,s=i.matchFrom,c=l?Gf(r):r,d=l?Gf(u(n)):u(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),a&&(c=R1(c),d=ym(d)),s==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},z1=["innerRef"];function F1(e){var t=e.innerRef,n=Jt(e,z1),r=lw(n,"onExited","in","enter","exit","appear");return $("input",B({ref:t},r,{css:ic({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 A1=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function D1(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=k.useRef(!1),u=k.useRef(!1),l=k.useRef(0),s=k.useRef(null),c=k.useCallback(function(x,m){if(s.current!==null){var v=s.current,g=v.scrollTop,w=v.scrollHeight,E=v.clientHeight,b=s.current,O=m>0,P=w-E-g,R=!1;P>m&&a.current&&(r&&r(x),a.current=!1),O&&u.current&&(o&&o(x),u.current=!1),O&&m>P?(n&&!a.current&&n(x),b.scrollTop=w,R=!0,a.current=!0):!O&&-m>g&&(i&&!u.current&&i(x),b.scrollTop=0,R=!0,u.current=!0),R&&A1(x)}},[n,r,i,o]),d=k.useCallback(function(x){c(x,x.deltaY)},[c]),f=k.useCallback(function(x){l.current=x.changedTouches[0].clientY},[]),h=k.useCallback(function(x){var m=l.current-x.changedTouches[0].clientY;c(x,m)},[c]),p=k.useCallback(function(x){if(x){var m=aw?{passive:!1}:!1;x.addEventListener("wheel",d,m),x.addEventListener("touchstart",f,m),x.addEventListener("touchmove",h,m)}},[h,f,d]),y=k.useCallback(function(x){x&&(x.removeEventListener("wheel",d,!1),x.removeEventListener("touchstart",f,!1),x.removeEventListener("touchmove",h,!1))},[h,f,d]);return k.useEffect(function(){if(t){var x=s.current;return p(x),function(){y(x)}}},[t,p,y]),function(x){s.current=x}}var Wf=["boxSizing","height","overflow","paddingRight","position"],Yf={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Kf(e){e.cancelable&&e.preventDefault()}function Qf(e){e.stopPropagation()}function Xf(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Jf(){return"ontouchstart"in window||navigator.maxTouchPoints}var Zf=!!(typeof window<"u"&&window.document&&window.document.createElement),Wr=0,Qn={capture:!1,passive:!1};function $1(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=k.useRef({}),o=k.useRef(null),a=k.useCallback(function(l){if(Zf){var s=document.body,c=s&&s.style;if(r&&Wf.forEach(function(p){var y=c&&c[p];i.current[p]=y}),r&&Wr<1){var d=parseInt(i.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,h=window.innerWidth-f+d||0;Object.keys(Yf).forEach(function(p){var y=Yf[p];c&&(c[p]=y)}),c&&(c.paddingRight="".concat(h,"px"))}s&&Jf()&&(s.addEventListener("touchmove",Kf,Qn),l&&(l.addEventListener("touchstart",Xf,Qn),l.addEventListener("touchmove",Qf,Qn))),Wr+=1}},[r]),u=k.useCallback(function(l){if(Zf){var s=document.body,c=s&&s.style;Wr=Math.max(Wr-1,0),r&&Wr<1&&Wf.forEach(function(d){var f=i.current[d];c&&(c[d]=f)}),s&&Jf()&&(s.removeEventListener("touchmove",Kf,Qn),l&&(l.removeEventListener("touchstart",Xf,Qn),l.removeEventListener("touchmove",Qf,Qn)))}},[r]);return k.useEffect(function(){if(t){var l=o.current;return a(l),function(){u(l)}}},[t,a,u]),function(l){o.current=l}}var V1=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},U1={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function q1(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,u=e.onTopArrive,l=e.onTopLeave,s=D1({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:u,onTopLeave:l}),c=$1({isEnabled:n}),d=function(h){s(h),c(h)};return $(k.Fragment,null,n&&$("div",{onClick:V1,css:U1}),t(d))}var B1={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},H1=function(t){var n=t.name,r=t.onFocus;return $("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:B1,value:"",onChange:function(){}})},G1=H1;function lc(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function W1(){return lc(/^iPhone/i)}function gm(){return lc(/^Mac/i)}function Y1(){return lc(/^iPad/i)||gm()&&navigator.maxTouchPoints>1}function K1(){return W1()||Y1()}function Q1(){return gm()||K1()}var X1=function(t){return t.label},J1=function(t){return t.label},Z1=function(t){return t.value},eS=function(t){return!!t.isDisabled},tS={clearIndicator:Fw,container:Cw,control:Bw,dropdownIndicator:Mw,group:Yw,groupHeading:Qw,indicatorsContainer:jw,indicatorSeparator:Dw,input:e1,loadingIndicator:Uw,loadingMessage:Sw,menu:hw,menuList:gw,menuPortal:bw,multiValue:o1,multiValueLabel:a1,multiValueRemove:s1,noOptionsMessage:ww,option:p1,placeholder:v1,singleValue:_1,valueContainer:Tw},nS={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%)"},rS=4,_m=4,iS=38,oS=_m*2,aS={baseUnit:_m,controlHeight:iS,menuGutter:oS},Rs={borderRadius:rS,colors:nS,spacing:aS},sS={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Uf(),captureMenuScroll:!Uf(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:M1(),formatGroupLabel:X1,getOptionLabel:J1,getOptionValue:Z1,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:eS,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!iw(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ed(e,t,n,r){var i=xm(e,t,n),o=Em(e,t,n),a=Sm(e,t),u=aa(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:u,index:r}}function Oo(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(a,u){return ed(e,a,t,u)}).filter(function(a){return nd(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=ed(e,n,t,r);return nd(e,o)?o:void 0}).filter(sw)}function wm(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Ql(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function td(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Ql(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function uS(e,t){return wm(Oo(e,t))}function nd(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,u=t.value;return(!Om(e)||!o)&&bm(e,{label:a,value:u,data:i},r)}function lS(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i<t.length)return t[i]}return null}function cS(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Ns=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},Sm=function(t,n){return t.getOptionLabel(n)},aa=function(t,n){return t.getOptionValue(n)};function xm(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Em(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=aa(e,t);return n.some(function(i){return aa(e,i)===r})}function bm(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Om=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},fS=1,Cm=function(e){T_(n,e);var t=I_(n);function n(r){var i;if(C_(this,n),i=t.call(this,r),i.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:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=Q1(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,s){var c=i.props,d=c.onChange,f=c.name;s.name=f,i.ariaOnChange(l,s),d(l,s)},i.setValue=function(l,s,c){var d=i.props,f=d.closeMenuOnSelect,h=d.isMulti,p=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:p}),f&&(i.setState({inputIsHiddenAfterUpdate:!h}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:s,option:c})},i.selectOption=function(l){var s=i.props,c=s.blurInputOnSelect,d=s.isMulti,f=s.name,h=i.state.selectValue,p=d&&i.isOptionSelected(l,h),y=i.isOptionDisabled(l,h);if(p){var x=i.getOptionValue(l);i.setValue(h.filter(function(m){return i.getOptionValue(m)!==x}),"deselect-option",l)}else if(!y)d?i.setValue([].concat(Ql(h),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:f});return}c&&i.blurInput()},i.removeValue=function(l){var s=i.props.isMulti,c=i.state.selectValue,d=i.getOptionValue(l),f=c.filter(function(p){return i.getOptionValue(p)!==d}),h=ro(s,f,f[0]||null);i.onChange(h,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(ro(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,s=i.state.selectValue,c=s[s.length-1],d=s.slice(0,s.length-1),f=ro(l,d,d[0]||null);c&&i.onChange(f,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return Ns(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return td(Oo(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];return Z0.apply(void 0,[i.props.classNamePrefix].concat(s))},i.getOptionLabel=function(l){return Sm(i.props,l)},i.getOptionValue=function(l){return aa(i.props,l)},i.getStyles=function(l,s){var c=i.props.unstyled,d=tS[l](s,c);d.boxSizing="border-box";var f=i.props.styles[l];return f?f(d,s):d},i.getClassNames=function(l,s){var c,d;return(c=(d=i.props.classNames)[l])===null||c===void 0?void 0:c.call(d,s)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return E1(i.props)},i.buildCategorizedOptions=function(){return Oo(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return wm(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,s){i.setState({ariaSelection:V({value:l},s)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var s=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():s&&i.openMenu("first"):(s&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var s=i.props,c=s.isMulti,d=s.menuIsOpen;i.focusInput(),d?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Ka(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var s=l.touches,c=s&&s.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var s=l.touches,c=s&&s.item(0);if(c){var d=Math.abs(c.clientX-i.initialTouchX),f=Math.abs(c.clientY-i.initialTouchY),h=5;i.userIsDragging=d>h||f>h}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var s=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:s}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var s=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:s}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var s=i.getFocusableOptions(),c=s.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return Om(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var s=i.props,c=s.isMulti,d=s.backspaceRemovesValue,f=s.escapeClearsValue,h=s.inputValue,p=s.isClearable,y=s.isDisabled,x=s.menuIsOpen,m=s.onKeyDown,v=s.tabSelectsValue,g=s.openMenuOnFocus,w=i.state,E=w.focusedOption,b=w.focusedValue,O=w.selectValue;if(!y&&!(typeof m=="function"&&(m(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||h)return;i.focusValue("previous");break;case"ArrowRight":if(!c||h)return;i.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(b)i.removeValue(b);else{if(!d)return;c?i.popValue():p&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!x||!v||!E||g&&i.isOptionSelected(E,O))return;i.selectOption(E);break;case"Enter":if(l.keyCode===229)break;if(x){if(!E||i.isComposing)return;i.selectOption(E);break}return;case"Escape":x?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:h}),i.onMenuClose()):p&&f&&i.clearValue();break;case" ":if(h)return;if(!x){i.openMenu("first");break}if(!E)return;i.selectOption(E);break;case"ArrowUp":x?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":x?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!x)return;i.focusOption("pageup");break;case"PageDown":if(!x)return;i.focusOption("pagedown");break;case"Home":if(!x)return;i.focusOption("first");break;case"End":if(!x)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++fS),i.state.selectValue=$f(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),u=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=a[u],i.state.focusedOptionId=Ns(o,a[u])}return i}return P_(n,[{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&&Vf(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,u=o.menuIsOpen,l=this.state.isFocused;(l&&!a&&i.isDisabled||l&&u&&!i.menuIsOpen)&&this.focusInput(),l&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Vf(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(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,a=this.state,u=a.selectValue,l=a.isFocused,s=this.buildFocusableOptions(),c=i==="first"?0:s.length-1;if(!this.props.isMulti){var d=s.indexOf(u[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:s[c],focusedOptionId:this.getFocusedOptionId(s[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,u=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(u);u||(l=-1);var s=a.length-1,c=-1;if(a.length){switch(i){case"previous":l===0?c=0:l===-1?c=s:c=l-1;break;case"next":l>-1&&l<s&&(c=l+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,u=this.getFocusableOptions();if(u.length){var l=0,s=u.indexOf(a);a||(s=-1),i==="up"?l=s>0?s-1:u.length-1:i==="down"?l=(s+1)%u.length:i==="pageup"?(l=s-o,l<0&&(l=0)):i==="pagedown"?(l=s+o,l>u.length-1&&(l=u.length-1)):i==="last"&&(l=u.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:u[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(u[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Rs):V(V({},Rs),this.props.theme):Rs}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,u=this.getClassNames,l=this.getValue,s=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,h=d.isRtl,p=d.options,y=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getClassNames:u,getValue:l,hasValue:y,isMulti:f,isRtl:h,options:p,selectOption:s,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,a=i.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(i,o){return xm(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return Em(this.props,i,o)}},{key:"filterOption",value:function(i,o){return bm(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:u})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{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 i=this.props,o=i.isDisabled,a=i.isSearchable,u=i.inputId,l=i.inputValue,s=i.tabIndex,c=i.form,d=i.menuIsOpen,f=i.required,h=this.getComponents(),p=h.Input,y=this.state,x=y.inputIsHidden,m=y.ariaSelection,v=this.commonProps,g=u||this.getElementId("input"),w=V(V(V({"aria-autocomplete":"list","aria-expanded":d,"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":f,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(m==null?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?k.createElement(p,B({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:o,isHidden:x,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:c,type:"text",value:l},w)):k.createElement(F1,B({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ia,onFocus:this.onInputFocus,disabled:o,tabIndex:s,inputMode:"none",form:c,value:""},w))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,u=o.MultiValueContainer,l=o.MultiValueLabel,s=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,h=this.props,p=h.controlShouldRenderValue,y=h.isDisabled,x=h.isMulti,m=h.inputValue,v=h.placeholder,g=this.state,w=g.selectValue,E=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!p)return m?null:k.createElement(d,B({},f,{key:"placeholder",isDisabled:y,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),v);if(x)return w.map(function(P,R){var I=P===E,z="".concat(i.getOptionLabel(P),"-").concat(i.getOptionValue(P));return k.createElement(a,B({},f,{components:{Container:u,Label:l,Remove:s},isFocused:I,isDisabled:y,key:z,index:R,removeProps:{onClick:function(){return i.removeValue(P)},onTouchEnd:function(){return i.removeValue(P)},onMouseDown:function(U){U.preventDefault()}},data:P}),i.formatOptionLabel(P,"value"))});if(m)return null;var O=w[0];return k.createElement(c,B({},f,{data:O,isDisabled:y}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,u=this.props,l=u.isDisabled,s=u.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||s)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(o,B({},a,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,u=this.props,l=u.isDisabled,s=u.isLoading,c=this.state.isFocused;if(!o||!s)return null;var d={"aria-hidden":"true"};return k.createElement(o,B({},a,{innerProps:d,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var u=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused;return k.createElement(a,B({},u,{isDisabled:l,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,u=this.props.isDisabled,l=this.state.isFocused,s={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(o,B({},a,{innerProps:s,isDisabled:u,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,u=o.GroupHeading,l=o.Menu,s=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,h=o.Option,p=this.commonProps,y=this.state.focusedOption,x=this.props,m=x.captureMenuScroll,v=x.inputValue,g=x.isLoading,w=x.loadingMessage,E=x.minMenuHeight,b=x.maxMenuHeight,O=x.menuIsOpen,P=x.menuPlacement,R=x.menuPosition,I=x.menuPortalTarget,z=x.menuShouldBlockScroll,F=x.menuShouldScrollIntoView,U=x.noOptionsMessage,Y=x.onMenuScrollToTop,K=x.onMenuScrollToBottom;if(!O)return null;var Q=function(W,te){var X=W.type,ne=W.data,ge=W.isDisabled,Fe=W.isSelected,wt=W.label,Za=W.value,Nt=y===ne,Mi=ge?void 0:function(){return i.onOptionHover(ne)},Nm=ge?void 0:function(){return i.selectOption(ne)},pc="".concat(i.getElementId("option"),"-").concat(te),Mm={id:pc,onClick:Nm,onMouseMove:Mi,onMouseOver:Mi,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:Fe};return k.createElement(h,B({},p,{innerProps:Mm,data:ne,isDisabled:ge,isSelected:Fe,key:pc,label:wt,type:X,value:Za,isFocused:Nt,innerRef:Nt?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(W.data,"menu"))},oe;if(this.hasOptions())oe=this.getCategorizedOptions().map(function(q){if(q.type==="group"){var W=q.data,te=q.options,X=q.index,ne="".concat(i.getElementId("group"),"-").concat(X),ge="".concat(ne,"-heading");return k.createElement(a,B({},p,{key:ne,data:W,options:te,Heading:u,headingProps:{id:ge,data:q.data},label:i.formatGroupLabel(q.data)}),q.options.map(function(Fe){return Q(Fe,"".concat(X,"-").concat(Fe.index))}))}else if(q.type==="option")return Q(q,"".concat(q.index))});else if(g){var j=w({inputValue:v});if(j===null)return null;oe=k.createElement(d,p,j)}else{var A=U({inputValue:v});if(A===null)return null;oe=k.createElement(f,p,A)}var D={minMenuHeight:E,maxMenuHeight:b,menuPlacement:P,menuPosition:R,menuShouldScrollIntoView:F},Z=k.createElement(mw,B({},p,D),function(q){var W=q.ref,te=q.placerProps,X=te.placement,ne=te.maxHeight;return k.createElement(l,B({},p,D,{innerRef:W,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:g,placement:X}),k.createElement(q1,{captureEnabled:m,onTopArrive:Y,onBottomArrive:K,lockEnabled:z},function(ge){return k.createElement(s,B({},p,{innerRef:function(wt){i.getMenuListRef(wt),ge(wt)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:i.getElementId("listbox")},isLoading:g,maxHeight:ne,focusedOption:y}),oe)}))});return I||R==="fixed"?k.createElement(c,B({},p,{appendTo:I,controlElement:this.controlRef,menuPlacement:P,menuPosition:R}),Z):Z}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,u=o.isDisabled,l=o.isMulti,s=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!u)return k.createElement(G1,{name:s,onFocus:this.onValueInputFocus});if(!(!s||u))if(l)if(a){var f=d.map(function(y){return i.getOptionValue(y)}).join(a);return k.createElement("input",{name:s,type:"hidden",value:f})}else{var h=d.length>0?d.map(function(y,x){return k.createElement("input",{key:"i-".concat(x),name:s,type:"hidden",value:i.getOptionValue(y)})}):k.createElement("input",{name:s,type:"hidden",value:""});return k.createElement("div",null,h)}else{var p=d[0]?this.getOptionValue(d[0]):"";return k.createElement("input",{name:s,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,u=o.focusedOption,l=o.focusedValue,s=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return k.createElement(I1,B({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:u,focusedValue:l,isFocused:s,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,u=i.SelectContainer,l=i.ValueContainer,s=this.props,c=s.className,d=s.id,f=s.isDisabled,h=s.menuIsOpen,p=this.state.isFocused,y=this.commonProps=this.getCommonProps();return k.createElement(u,B({},y,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:p}),this.renderLiveRegion(),k.createElement(o,B({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:p,menuIsOpen:h}),k.createElement(l,B({},y,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(a,B({},y,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,u=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,s=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,h=i.options,p=i.value,y=i.menuIsOpen,x=i.inputValue,m=i.isMulti,v=$f(p),g={};if(a&&(p!==a.value||h!==a.options||y!==a.menuIsOpen||x!==a.inputValue)){var w=y?uS(i,v):[],E=y?td(Oo(i,v),"".concat(f,"-option")):[],b=u?lS(o,v):null,O=cS(o,w),P=Ns(E,O);g={selectValue:v,focusedOption:O,focusedOptionId:P,focusableOptionsWithIds:E,focusedValue:b,clearFocusValueOnUpdate:!1}}var R=l!=null&&i!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},I=s,z=c&&d;return c&&!z&&(I={value:ro(m,v,v[0]||null),options:v,action:"initial-input-focus"},z=!d),(s==null?void 0:s.action)==="initial-input-focus"&&(I=null),V(V(V({},g),R),{},{prevProps:i,ariaSelection:I,prevWasFocused:z})}}]),n}(k.Component);Cm.defaultProps=sS;var dS=k.forwardRef(function(e,t){var n=O_(e);return k.createElement(Cm,B({ref:t},n))}),pS=dS,ue=function(){return ue=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ue.apply(this,arguments)},hS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},mS=function(e){return ue(ue({},e),{borderRadius:0,colors:ue(ue({},e.colors),{primary25:"var(--semi-transparent-accent-color)",neutral10:"var(--border-color)",neutral20:"var(--border-color)",primary:"var(--accent-color)",neutral30:"var(--darker-border-color)"})})},vS=function(e,t){return k.useMemo(function(){return{placeholder:function(n){return ue(ue({},n),{color:"var(--placeholder-body-color)"})},container:function(n){return ue(ue({},n),{fontSize:"inherit"})},control:function(n,r){var i=r.isFocused,o=n;return o=ue(ue({},o),{minHeight:40}),i?ue(ue({},o),{borderColor:t?"var(--alert-color)":"var(--accent-color)",backgroundColor:e?"var(--disabled-color)":"white",boxShadow:"0 0 0 3px ".concat(t?"rgba(var(--alert-color-rgb-components), 0.2)":"var(--semi-transparent-accent-color)"),"&:hover":{borderColor:t?"var(--alert-color)":"var(--accent-color)"}}):ue(ue({},o),{borderColor:t?"var(--alert-color)":"var(--border-color)",backgroundColor:e?"var(--disabled-color)":"white","&:hover":{borderColor:t?"var(--alert-color)":"var(--darker-border-color)"}})},multiValueRemove:function(n){return ue(ue({},n),{cursor:"pointer"})},menu:function(n){return ue(ue({},n),{zIndex:1e3,minWidth:250})},input:function(n){var r=ue(ue({},n),{boxShadow:"none","input:focus":{boxShadow:"none"}});return r},multiValue:function(n){return ue(ue({},n),{zIndex:100,backgroundColor:"var(--light-color)",userSelect:"none"})},multiValueLabel:function(n){return ue(ue({},n),{fontSize:"inherit",padding:3})}}},[e,t])};function yS(e){var t=e.isDisabled,n=e.error,r=hS(e,["isDisabled","error"]),i=vS(t,n);return G.createElement(pS,ue({},r,{isDisabled:t,theme:mS,styles:i}))}const gS="_Spinner__bar_oumod_13",Ms={"Spinner--inline":"_Spinner--inline_oumod_1","Spinner--centered":"_Spinner--centered_oumod_7",Spinner__bar:gS};var sa=function(){return sa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},sa.apply(this,arguments)};function _S(e){for(var t,n=e.size,r=n===void 0?32:n,i=e.placement,o=i===void 0?"inline":i,a=e.style,u=a===void 0?{}:a,l=[],s=0;s<12;s+=1){var c={};c.animationDelay="".concat((s-12)/10,"s"),c.transform="rotate(".concat(s*30,"deg) translate(146%)"),l.push(G.createElement("div",{style:c,className:Ms.Spinner__bar,key:s}))}var d={width:r*.5,height:r*.5};return o==="inline"&&(d.marginLeft=r*.5,d.transform="translateY(33%)"),G.createElement("div",{className:Rt((t={},t[Ms["Spinner--inline"]]=o==="inline",t[Ms["Spinner--centered"]]=o==="centered",t)),style:sa(sa({},u),d)},l)}const wS="_switchField__flex_16z4j_1",SS="_switchField__switchInput_16z4j_6",xS="_switchField__label_16z4j_10",ES="_switchField__below_16z4j_22",io={switchField__flex:wS,switchField__switchInput:SS,switchField__label:xS,switchField__below:ES};var ua=function(){return ua=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ua.apply(this,arguments)};function En(e){var t=e.id,n=e.name,r=e.label,i=e.hint,o=e.error,a=e.required,u=e.formLabelProps,l=e.value,s=e.onChange,c=e.switchInputProps;return G.createElement(G.Fragment,null,G.createElement("div",{className:io.switchField__flex},G.createElement("div",{className:io.switchField__switchInput},G.createElement(kS,ua({},c,{name:n,value:l,onChange:s}))),G.createElement(Nh,ua({},u,{htmlFor:t,required:a,className:Rt(io.switchField__label,u==null?void 0:u.className),error:!!o}),r)),(i||o)&&G.createElement("div",{className:io.switchField__below},o&&G.createElement(Ih,null,o),i&&G.createElement(Lh,null,i)))}const bS="_switchInput__inner_1knbg_1",OS="_switchInput_1knbg_1",CS="_switchInput__checked_1knbg_47",PS="_switchInput__disabled_1knbg_60",oo={switchInput__inner:bS,switchInput:OS,switchInput__checked:CS,switchInput__disabled:PS};var Qu=function(){return Qu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Qu.apply(this,arguments)},TS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function kS(e){var t,n=e.className,r=e.value,i=e.disabled,o=e.onClick,a=e.onChange,u=e.onKeyDown,l=TS(e,["className","value","disabled","onClick","onChange","onKeyDown"]);function s(h,p){!i&&a&&a(h,p)}function c(h){h.key==="ArrowLeft"?s(!1,h):h.key==="ArrowRight"&&s(!0,h),u==null||u(h)}function d(h){s(!r,h),o==null||o(h)}var f=Rt(oo.switchInput,n,(t={},t[oo.switchInput__checked]=r,t[oo.switchInput__disabled]=i,t));return G.createElement("button",Qu({},l,{type:"button",role:"switch","aria-checked":r,disabled:i,className:f,onKeyDown:c,onClick:d}),G.createElement("span",{className:oo.switchInput__inner}))}var Xu=function(){return Xu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Xu.apply(this,arguments)};function bn(e){var t=e.id,n=e.name,r=e.label,i=e.hint,o=e.error,a=e.required,u=e.placeholder,l=e.formLabelProps,s=e.value,c=e.onChange,d=e.textInputProps;return G.createElement(Rh,{formLabelProps:l,id:t,required:a,error:o,hint:i,label:r},G.createElement(LS,Xu({},d,{id:t,name:n,value:s,placeholder:u,onChange:c,error:!!o})))}const jS="_TextInput_x2oj2_1",ao={TextInput:jS,"TextInput--monospaced":"_TextInput--monospaced_x2oj2_30","TextInput--disabled":"_TextInput--disabled_x2oj2_35","TextInput--error":"_TextInput--error_x2oj2_41"};var Ju=function(){return Ju=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ju.apply(this,arguments)},IS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},LS=function(e){var t,n=e.className,r=e.disabled,i=r===void 0?!1:r,o=e.error,a=e.id,u=e.inputRef,l=e.maxLength,s=e.name,c=e.labelText,d=e.onBlur,f=e.onChange,h=e.placeholder,p=e.required,y=p===void 0?!1:p,x=e.type,m=e.value,v=e.monospaced,g=IS(e,["className","disabled","error","id","inputRef","maxLength","name","labelText","onBlur","onChange","placeholder","required","type","value","monospaced"]),w=k.useCallback(function(b){f&&f(b.target.value,b)},[f]),E=Rt(ao.TextInput,n,(t={},t[ao["TextInput--disabled"]]=i,t[ao["TextInput--error"]]=o,t[ao["TextInput--monospaced"]]=v,t));return G.createElement("input",Ju({className:E,"aria-label":c,id:a,name:s,required:y,placeholder:h,maxLength:l,disabled:i,onBlur:d,onChange:w,value:m,type:x,ref:u},g))};function RS({ctx:e}){return _.jsx(Td,{ctx:e,children:_.jsx(un,{buttonType:"muted",buttonSize:"l",fullWidth:!0,onClick:()=>e.navigateTo(`/configuration/p/${e.plugin.id}/pages/optimize-assets`),children:"Go to asset optimization"})})}var Tn=function(){return Tn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Tn.apply(this,arguments)};function NS(e){return typeof e=="object"&&!!e&&"data"in e}function Kt(e){var t=e.id,n=e.type,r=e.attributes,i=e.relationships,o=e.meta;return Tn(Tn(Tn(Tn(Tn({},t?{id:t}:{}),n?{type:n}:{}),r||{}),i?Object.fromEntries(Object.entries(i).map(function(a){var u=a[0],l=a[1];return[u,l==null?void 0:l.data]})):{}),o?{meta:o}:{})}function S(e){if(!NS(e))throw new Error("Invalid body!");return Array.isArray(e.data)?e.data.map(Kt):Kt(e.data)}var Pm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();function MS(e){if(typeof e!="object"||e===null||!("data"in e))return!1;var t=e;if(!Array.isArray(t.data))return!1;var n=t;if(n.data.length===0)return!1;var r=n.data[0];return!(typeof r!="object"||r===null||!("id"in r)||!("type"in r)||!("attributes"in r)||r.type!=="api_error")}var zS=function(e){Pm(t,e);function t(n){var r=this.constructor,i=e.call(this,"API Error!")||this;return Object.setPrototypeOf(i,r.prototype),"captureStackTrace"in Error?Error.captureStackTrace(i,ui):i.stack=new Error().stack,i.request=n.request,i.preCallStack=n.preCallStack,i.message="".concat(n.request.method," ").concat(n.request.url,": Timeout error"),i.preCallStack&&(i.stack+=`
57
- Caused By:
58
- `.concat(i.preCallStack)),i}return t}(Error),ui=function(e){Pm(t,e);function t(n){var r=this.constructor,i=e.call(this,"API Error!")||this;Object.setPrototypeOf(i,r.prototype),"captureStackTrace"in Error?Error.captureStackTrace(i,t):i.stack=new Error().stack,i.request=n.request,i.response=n.response,i.preCallStack=n.preCallStack;var o="".concat(n.request.method," ").concat(n.request.url,": ").concat(i.response.status," ").concat(i.response.statusText);return i.errors.length>0&&(o+=`
59
-
60
- `.concat(JSON.stringify(i.errors,null,2))),i.message=o,i.preCallStack&&(i.stack+=`
61
- Caused By:
62
- `.concat(i.preCallStack)),i}return Object.defineProperty(t.prototype,"errors",{get:function(){return MS(this.response.body)?this.response.body.data:[]},enumerable:!1,configurable:!0}),t.prototype.findError=function(n,r){var i=Array.isArray(n)?n:[n];return this.errors.find(function(o){return i.includes(o.attributes.code)&&(!r||(typeof r=="function"?r(o.attributes.details):Object.entries(r).every(function(a){var u=a[0],l=a[1];return o.attributes.details[u]===l})))})},t}(Error),FS=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qa=function(e){FS(t,e);function t(){var n=this.constructor,r=e.call(this,"Promise canceled!")||this;return Object.setPrototypeOf(r,n.prototype),r}return t}(Error);function Xa(e,t){var n=null,r=new Promise(function(i,o){n=function(){try{t&&t(),o(new Qa)}catch(u){o(u)}};var a=typeof e=="function"?e():e;a.then(i,o)});return n&&(r.cancel=n),r}function Co(e){return new Promise(function(t){setTimeout(t,e)})}var AS=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(c){try{s(r.next(c))}catch(d){a(d)}}function l(c){try{s(r.throw(c))}catch(d){a(d)}}function s(c){c.done?o(c.value):i(c.value).then(u,l)}s((r=r.apply(e,t||[])).next())})},DS=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};function $S(e){return AS(this,void 0,void 0,function(){var t,n,r;return DS(this,function(i){switch(i.label){case 0:n=0,i.label=1;case 1:return i.trys.push([1,4,,5]),n+=1,[4,Co(n*1e3)];case 2:return i.sent(),[4,e()];case 3:return t=i.sent(),[3,5];case 4:if(r=i.sent(),!(r instanceof ui)||r.response.status!==404)throw r;return[3,5];case 5:if(!t)return[3,1];i.label=6;case 6:return[2,t]}})})}var Tm={},cc={},fc={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TaskCollisionStrategy=void 0,function(t){t[t.DEFAULT=0]="DEFAULT",t[t.KEEP_THIS=1]="KEEP_THIS",t[t.KEEP_OTHER=2]="KEEP_OTHER",t[t.KEEP_BOTH=3]="KEEP_BOTH",t[t.RESOLVE_THIS=4]="RESOLVE_THIS",t[t.RESOLVE_OTHER=5]="RESOLVE_OTHER"}(e.TaskCollisionStrategy||(e.TaskCollisionStrategy={}))})(fc);var Ja={};Object.defineProperty(Ja,"__esModule",{value:!0});class VS{constructor(t,n){this._code=t,this._message=n}get code(){return this._code}get message(){return this._message}}Ja.default=VS;var Bn={};Object.defineProperty(Bn,"__esModule",{value:!0});Bn.mutexEquality=Bn.mutexBitwiseAnd=void 0;function US(e,t){return(e&t)!==0}Bn.mutexBitwiseAnd=US;function qS(e,t){return e===t}Bn.mutexEquality=qS;var dc={};Object.defineProperty(dc,"__esModule",{value:!0});class BS{constructor(t,n){this._meta=void 0,this._task=t,this._scheduler=n}withDescriptor(t){return this._descriptor=t,this}withMutex(t){return this._mutex=t,this}withMeta(t){return this._meta=t,this}runBeforeExecuting(t){return this._onPreExecute=t,this}handleCollisions(t){return this._onTaskCollision=t,this}execute(t){return this._scheduler.enqueue({priority:t,mutex:this._mutex,descriptor:this._descriptor,meta:this._meta,execute:this._task,onPreExecute:this._onPreExecute,onTaskCollision:this._onTaskCollision})}}dc.default=BS;var HS=Tt&&Tt.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(c){try{s(r.next(c))}catch(d){a(d)}}function l(c){try{s(r.throw(c))}catch(d){a(d)}}function s(c){c.done?o(c.value):i(c.value).then(u,l)}s((r=r.apply(e,t||[])).next())})},km=Tt&&Tt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cc,"__esModule",{value:!0});const xt=fc,GS=km(Ja),WS=Bn,YS=km(dc);var it;(function(e){e[e.PENDING=0]="PENDING",e[e.EXECUTING=1]="EXECUTING",e[e.TERMINATED=2]="TERMINATED"})(it||(it={}));function rd(e,t){for(let n of e.listeners)n.reject(t)}class KS{constructor(t,n={}){this._queue=[],this._isExecuting=!1,this._idleListeners=[],this._maxConcurrentTasks=t,this._samePriorityMutex=!!n.samePriorityMutex,this._mutexStrategy=n.mutexStrategy||WS.mutexEquality,n.disableLogging?this._errorLog=()=>{}:this._errorLog=console.error}enqueue(t){return new Promise((n,r)=>{typeof t=="function"&&(t={priority:0,execute:t});const i=this._checkMutexes(t,n,r);i.task?this._addTask(i.task):i.canceled&&r(this.createCanceledError())})}prepare(t){return new YS.default(t,this)}_addTask(t){this._queue.push(t),this._applyPriorities(),this._isExecuting||(this._isExecuting=!0,setTimeout(this._executeNextTasks.bind(this)))}get executingTasks(){return this._queue.reduce((t,n)=>n.state===it.EXECUTING?t+1:t,0)}createCanceledError(){return new GS.default(50,"Task has been canceled in favor of another task")}_findFirstPendingTask(){return this._queue.find(t=>t.state===it.PENDING)}_isIdle(){return this._queue.length===0||!this._queue.find(t=>t.state!==it.TERMINATED)}_removeTaskAt(t){this._queue.splice(t,1)}_executeTask(t){return HS(this,void 0,void 0,function*(){try{return t.task.onPreExecute&&t.task.onPreExecute(),yield t.task.execute()}catch(n){throw n}finally{t.state=it.TERMINATED;let n=this._queue.indexOf(t);this._removeTaskAt(n),this._executeNextTasks()}})}_executeNextTasks(){let t=this.executingTasks;if(t>=this._maxConcurrentTasks)return;let n=this._maxConcurrentTasks-t;for(let r=0;r<n;r++){const i=this._findFirstPendingTask();if(!i){this._isIdle()&&this._switchToIdle();return}i.state=it.EXECUTING,this._executeTask(i).then(o=>{for(const{resolve:a}of i.listeners)try{a(o)}catch(u){this._errorLog("An error occurred while resolving listener",u)}}).catch(o=>{for(const{reject:a}of i.listeners)try{a(o)}catch(u){this._errorLog("An error occurred while rejecting listener",u)}})}}_switchToIdle(){this._isExecuting=!1;const t=this._idleListeners;this._idleListeners=[];for(const{resolve:n}of t)try{n()}catch{}}waitForIdle(){return this._isExecuting?new Promise((t,n)=>{this._idleListeners.push({resolve:t,reject:n})}):Promise.resolve()}_applyPriorities(){this._queue.sort((t,n)=>n.task.priority-t.task.priority)}_checkMutexes(t,n,r){for(let i=0;i<this._queue.length;i++){let o=this._queue[i];if(o.state===it.TERMINATED||this._samePriorityMutex&&o.task.priority!=t.priority||!o.task.mutex||!t.mutex||!this._mutexStrategy(o.task.mutex,t.mutex))continue;let a,u;if(o.task.onTaskCollision)if(a=o.task.onTaskCollision(t),a===xt.TaskCollisionStrategy.KEEP_OTHER&&o.state!==it.EXECUTING){this._removeTaskAt(i--),rd(o,this.createCanceledError());continue}else{if(a===xt.TaskCollisionStrategy.KEEP_THIS)return{canceled:!0};if(a===xt.TaskCollisionStrategy.RESOLVE_OTHER)return this._removeTaskAt(i--),{canceled:!1,task:{task:t,state:it.PENDING,listeners:[{resolve:n,reject:r},...o.listeners]}};if(a===xt.TaskCollisionStrategy.RESOLVE_THIS)return o.listeners=[...o.listeners,{resolve:n,reject:r}],{canceled:!1}}if(t.onTaskCollision){if(u=t.onTaskCollision(o.task),u===xt.TaskCollisionStrategy.KEEP_OTHER)return{canceled:!0};if(u===xt.TaskCollisionStrategy.KEEP_THIS){this._removeTaskAt(i--),rd(o,this.createCanceledError());continue}else{if(u===xt.TaskCollisionStrategy.RESOLVE_OTHER)return o.listeners=[...o.listeners,{resolve:n,reject:r}],{canceled:!1};if(u===xt.TaskCollisionStrategy.RESOLVE_THIS)return this._removeTaskAt(i--),{canceled:!1,task:{task:t,state:it.PENDING,listeners:[{resolve:n,reject:r},...o.listeners]}}}}if(!(a===xt.TaskCollisionStrategy.KEEP_BOTH&&u===xt.TaskCollisionStrategy.KEEP_BOTH))return{canceled:!0}}return{canceled:!1,task:{task:t,state:it.PENDING,listeners:[{resolve:n,reject:r}]}}}}cc.default=KS;(function(e){var t=Tt&&Tt.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.mutexEquality=e.mutexBitwiseAnd=e.SchedulerError=e.TaskCollisionStrategy=e.Scheduler=void 0;const n=t(cc);e.Scheduler=n.default;const r=fc;Object.defineProperty(e,"TaskCollisionStrategy",{enumerable:!0,get:function(){return r.TaskCollisionStrategy}});const i=t(Ja);e.SchedulerError=i.default;const o=Bn;Object.defineProperty(e,"mutexBitwiseAnd",{enumerable:!0,get:function(){return o.mutexBitwiseAnd}}),Object.defineProperty(e,"mutexEquality",{enumerable:!0,get:function(){return o.mutexEquality}})})(Tm);var QS=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Rn=function(e){return this instanceof Rn?(this.v=e,this):new Rn(e)},XS=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(f){r[f]&&(i[f]=function(h){return new Promise(function(p,y){o.push([f,h,p,y])>1||u(f,h)})})}function u(f,h){try{l(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){f.value instanceof Rn?Promise.resolve(f.value.v).then(s,c):d(o[0][2],f)}function s(f){u("next",f)}function c(f){u("throw",f)}function d(f,h){f(h),o.shift(),o.length&&u(o[0][0],o[0][1])}};function Wn(e,t,n){return XS(this,arguments,function(){var i,o,a,u,l,m,s,c,d,f,h,p,y,x,m;return QS(this,function(v){switch(v.label){case 0:if(i=(n==null?void 0:n.perPage)||e.defaultLimit,i>e.maxLimit)throw new Error("perPage option cannot exceed maximum value of ".concat(e.maxLimit));if(o=(n==null?void 0:n.concurrency)||1,o>10)throw new Error("concurrency option cannot exceed maximum value of 10");return[4,Rn(t({limit:i,offset:0}))];case 1:a=v.sent(),u=0,l=a.data,v.label=2;case 2:return u<l.length?(m=l[u],[4,Rn(m)]):[3,6];case 3:return[4,v.sent()];case 4:v.sent(),v.label=5;case 5:return u++,[3,2];case 6:for(s=a.meta.total_count,c=new Tm.Scheduler(o),d=[],f=function(g){d.push(c.enqueue(function(){return t({limit:i,offset:g})}))},h=i;h<s;h+=i)f(h);v.label=7;case 7:return d.length>0?[4,Rn(d.shift())]:[3,14];case 8:p=v.sent(),y=0,x=p.data,v.label=9;case 9:return y<x.length?(m=x[y],[4,Rn(m)]):[3,13];case 10:return[4,v.sent()];case 11:v.sent(),v.label=12;case 12:return y++,[3,9];case 13:return[3,7];case 14:return[2]}})})}function Yn(e){e&&"page"in e&&console.warn("Passing a `page` query param on paged iterators has no effect: use the `perPage` option instead.")}var so=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},jm="__ARRAY_INDEX__";function JS(e){return e.reduce(function(t,n,r){return r===0?n:n===jm?"".concat(t,"[]"):"".concat(t,"[").concat(n,"]")},"")}function ZS(e){if(typeof e=="number"||typeof e=="string")return e.toString();if(e===!0)return"true";if(e===!1)return"false";throw"Don't know how to serialize param value ".concat(JSON.stringify(e))}function Zu(e,t){t===void 0&&(t=[]);var n=[];if(typeof e=="number"||typeof e=="string"||typeof e=="boolean")n.push([JS(t),ZS(e)]);else if(typeof e=="object"){if(Array.isArray(e))for(var r=0,i=e;r<i.length;r++)for(var o=i[r],a=0,u=Zu(o,so(so([],t,!0),[jm],!1));a<u.length;a++){var l=u[a];n.push(l)}else if(e)for(var s=0,c=Object.entries(e);s<c.length;s++)for(var d=c[s],f=d[0],o=d[1],h=0,p=Zu(o,so(so([],t,!0),[f],!1));h<p.length;h++){var l=p[h];n.push(l)}}return n}var At=function(){return At=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},At.apply(this,arguments)},ex=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(c){try{s(r.next(c))}catch(d){a(d)}}function l(c){try{s(r.throw(c))}catch(d){a(d)}}function s(c){c.done?o(c.value):i(c.value).then(u,l)}s((r=r.apply(e,t||[])).next())})},tx=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},nx=typeof window<"u"&&typeof window.document<"u",rx=5,ot;(function(e){e[e.NONE=0]="NONE",e[e.BASIC=1]="BASIC",e[e.BODY=2]="BODY",e[e.BODY_AND_HEADERS=3]="BODY_AND_HEADERS"})(ot||(ot={}));function ix(e){var t={};return e.forEach(function(n,r){t[r]=n}),t}function id(e,t,n,r,i,o,a){return{request:{url:t,method:e,headers:n,body:r},response:{status:i.status,statusText:i.statusText,headers:ix(i.headers),body:o},preCallStack:a}}function ox(e,t,n,r,i){return{request:{url:t,method:e,headers:n,body:r},preCallStack:i}}function ax(e,t,n,r,i,o,a){return{request:{url:t,method:e,headers:n,body:r},response:{status:i,statusText:"N/A",headers:{},body:o},preCallStack:a}}function sx(e){return typeof e=="object"&&!!e&&"code"in e}function ux(e){return Object.fromEntries(Object.entries(e).map(function(t){var n=t[0],r=t[1];return[n.toLowerCase(),r]}))}var od=1;function Po(e){var t;return ex(this,void 0,void 0,function(){var n,r,i,o,a,u,l,s,c,d,f,h,p,y,x,m,I,z,v,g,w,E,b,O,P,R,I,z,F,U,Y,K,Q,oe;return tx(this,function(j){switch(j.label){case 0:if(n=od,od+=1,r=e.fetchFn||(typeof fetch>"u"?void 0:fetch)||(typeof globalThis>"u"?void 0:globalThis.fetch),typeof r>"u")throw new Error("fetch() is not available: either polyfill it globally, or provide it as fetchFn option.");if(i=e.preCallStack,o=e.userAgent||"@datocms/rest-client-utils",a=e.retryCount||1,u=e.logLevel||ot.NONE,l="autoRetry"in e?e.autoRetry:!0,s=e.logFn||function(){return!0},c=At({"content-type":"application/json",accept:"application/json",authorization:"Bearer ".concat(e.apiToken),"user-agent":o},e.extraHeaders?ux(e.extraHeaders):{}),nx&&delete c["user-agent"],d=e.baseUrl.replace(/\/$/,""),f=e.body?JSON.stringify(e.body,null,2):void 0,h=e.queryParams&&Object.keys(e.queryParams).length>0?"?".concat(new URLSearchParams(Zu(e.queryParams)).toString()):"",p="".concat(d).concat(e.url).concat(h),u>=ot.BASIC){if(s("[".concat(n,"] ").concat(e.method," ").concat(p)),u>=ot.BODY_AND_HEADERS)for(y=0,x=Object.entries(c||{});y<x.length;y++)m=x[y],I=m[0],z=m[1],s("[".concat(n,"] ").concat(I,": ").concat(z));u>=ot.BODY&&f&&s("[".concat(n,"] ").concat(f))}j.label=1;case 1:return j.trys.push([1,12,,16]),v=Xa(r(p,{method:e.method,headers:c,body:f})),g=setTimeout(function(){v.cancel()},e.requestTimeout||3e4),[4,v];case 2:if(w=j.sent(),clearTimeout(g),E=w.headers.get("Content-Type"),b=E&&!E.includes("application/json"),!(w.status===429||b))return[3,4];if(!l||b&&e.method!=="GET")throw new ui(id(e.method,p,c,e.body,w,void 0,i));return O=w.headers.has("X-RateLimit-Reset")?Number.parseInt(w.headers.get("X-RateLimit-Reset"),10):a,u>=ot.BASIC&&(w.status===429?s("[".concat(n,"] Rate limit exceeded, wait ").concat(O," seconds then retry...")):s("[".concat(n,'] Invalid response content type "').concat(E,'" (status ').concat(w.status,"). Wait ").concat(O," seconds then retry..."))),[4,Co(O*1e3)];case 3:return j.sent(),[2,Po(At(At({},e),{retryCount:a+1}))];case 4:if(u>=ot.BASIC&&(s("[".concat(n,"] Status: ").concat(w.status," (").concat(w.statusText,")")),u>=ot.BODY_AND_HEADERS))for(P=0,R=["x-api-version","x-environment","x-queue-time","x-ratelimit-remaining","x-request-id","cf-ray"];P<R.length;P++)I=R[P],z=w.headers.get(I),z&&s("[".concat(n,"] ").concat(I,": ").concat(z));return w.status!==204?[3,5]:(U=void 0,[3,7]);case 5:return[4,w.json()];case 6:U=j.sent(),j.label=7;case 7:return F=U,u>=ot.BODY&&F&&s("[".concat(n,"] ").concat(JSON.stringify(F,null,2))),w.status!==202?[3,9]:[4,e.fetchJobResult(F.data.id)];case 8:if(Y=j.sent(),Y.status<200||Y.status>=300)throw new ui(ax(e.method,p,c,e.body,Y.status,Y.payload,i));F=Y.payload,j.label=9;case 9:return w.status>=200&&w.status<300?[2,F]:(K=new ui(id(e.method,p,c,e.body,w,F,i)),Q=(t=K.errors.find(function(A){return A.attributes.transient}))===null||t===void 0?void 0:t.attributes.code,l&&Q?(u>=ot.BASIC&&s("[".concat(n,"] ").concat(Q,", wait ").concat(a," seconds then retry...")),[4,Co(a*1e3)]):[3,11]);case 10:return j.sent(),[2,Po(At(At({},e),{retryCount:a+1}))];case 11:throw K;case 12:return oe=j.sent(),oe instanceof Qa||sx(oe)&&oe.code.includes("ETIMEDOUT")?l&&a<rx?(u>=ot.BASIC&&s("[".concat(n,"] Timeout error, wait ").concat(a," seconds then retry...")),[4,Co(a*1e3)]):[3,14]:[3,15];case 13:return j.sent(),[2,Po(At(At({},e),{retryCount:a+1}))];case 14:throw new zS(ox(e.method,p,c,e.body,i));case 15:throw oe;case 16:return[2]}})})}var kn=function(){return kn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},kn.apply(this,arguments)},lx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function To(e){return typeof e=="object"&&!!e&&"id"in e&&"type"in e}function zs(e){return Array.isArray(e)&&e.every(To)}function M(e,t){if(typeof e!="object"||!e)throw new Error("Invalid body!");if(Array.isArray(e))return{data:e.map(function(P){var R;return(R=M(P,t))===null||R===void 0?void 0:R.data})};var n=e,r=n.id,i=n.type,o=n.meta,a=lx(n,["id","type","meta"]),u={},l={};if(t.attributes==="*")for(var s=0,c=Object.entries(a);s<c.length;s++){var d=c[s],f=d[0],h=d[1];if(t.relationships.includes(f))if(To(h)){var p=h.id,y=h.type;l[f]={data:{id:p,type:y}}}else zs(h)?l[f]={data:h.map(function(P){var R=P.id,I=P.type;return{id:R,type:I}})}:l[f]={data:null};else u[f]=h}else if(t.relationships==="*")for(var x=0,m=Object.entries(a);x<m.length;x++){var v=m[x],f=v[0],h=v[1];if(t.attributes.includes(f))u[f]=h;else if(To(h)){var g=h.id,y=h.type;l[f]={data:{id:g,type:y}}}else zs(h)?l[f]={data:h.map(function(I){var z=I.id,F=I.type;return{id:z,type:F}})}:l[f]={data:null}}else{for(var w=0,E=Object.entries(a);w<E.length;w++){var b=E[w],f=b[0],h=b[1];if(t.attributes.includes(f))u[f]=h;else if(t.relationships.includes(f))if(To(h)){var O=h.id,y=h.type;l[f]={data:{id:O,type:y}}}else zs(h)?l[f]={data:h.map(function(I){var z=I.id,F=I.type;return{id:z,type:F}})}:l[f]={data:null}}t.attributes.includes("type")&&(u.type=i)}return{data:kn(kn(kn(kn(kn({},r||t.id?{id:r||t.id}:{}),{type:t.type}),Object.keys(u).length>0?{attributes:u}:{}),Object.keys(l).length>0?{relationships:l}:{}),o?{meta:o}:{})}}function C(e){return typeof e=="string"?e:e.id}var H=function(){function e(t){this.client=t}return e}(),cx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),fx=function(e){cx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(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_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","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions"],relationships:["inherits_permissions_from"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/roles",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(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_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","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions"],relationships:["inherits_permissions_from"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/roles/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/roles"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/roles/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/roles/".concat(n)})},t.prototype.duplicate=function(n){return this.rawDuplicate(C(n)).then(function(r){return S(r)})},t.prototype.rawDuplicate=function(n){return this.client.request({method:"POST",url:"/roles/".concat(n,"/duplicate")})},t.TYPE="role",t}(H),dx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zn=function(){return zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},zn.apply(this,arguments)},px=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(c){try{s(r.next(c))}catch(d){a(d)}}function l(c){try{s(r.throw(c))}catch(d){a(d)}}function s(c){c.done?o(c.value):i(c.value).then(u,l)}s((r=r.apply(e,t||[])).next())})},hx=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},ad=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function sd(e,t){return e==null&&t==null?!0:e===t}function mx(e,t){for(var n in e)if(!sd(e[n],t[n]))return!1;for(var n in t)if(!sd(e[n],t[n]))return!1;return!0}function uo(e,t,n,r){if(!t)return e;var i=t.add,o=t.remove;return ad(ad([],o?o.reduce(function(a,u){var l=zn(zn({},u),{environment:n}),s=a.find(function(c){return mx(c,l)});if(!s)throw new Error("Cannot find rule ".concat(JSON.stringify(l)," to remove in ").concat(r,"!"));return a.filter(function(c){return c!==s})},e):e,!0),i?i.map(function(a){return zn({environment:n},a)}):[],!0)}var vx=function(e){dx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.updateCurrentEnvironmentPermissions=function(n,r){return px(this,void 0,void 0,function(){var i,o,a,u,l,s;return hx(this,function(c){switch(c.label){case 0:return o=this.client.config.environment,o?[3,2]:[4,this.client.environments.list()];case 1:o=c.sent().find(function(d){return d.meta.primary}).id,c.label=2;case 2:return i=o,[4,this.find(n)];case 3:return a=c.sent(),u=!!(r.positive_item_type_permissions||r.negative_item_type_permissions),l=!!(r.positive_upload_permissions||r.negative_upload_permissions),s=zn(zn({},u?{positive_item_type_permissions:uo(a.positive_item_type_permissions,r.positive_item_type_permissions,i,"positive_item_type_permissions"),negative_item_type_permissions:uo(a.negative_item_type_permissions,r.negative_item_type_permissions,i,"negative_item_type_permissions")}:{}),l?{positive_upload_permissions:uo(a.positive_upload_permissions,r.positive_upload_permissions,i,"positive_upload_permissions"),negative_upload_permissions:uo(a.negative_upload_permissions,r.negative_upload_permissions,i,"negative_upload_permissions")}:{}),[2,this.update(n,s)]}})})},t}(fx),yx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),gx=function(e){yx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"user",attributes:["is_active"],relationships:["role"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/users/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/users"})},t.prototype.find=function(n,r){return this.rawFind(C(n),r).then(function(i){return S(i)})},t.prototype.rawFind=function(n,r){return this.client.request({method:"GET",url:"/users/".concat(n),queryParams:r})},t.prototype.findMe=function(n){return this.rawFindMe(n).then(function(r){return S(r)})},t.prototype.rawFindMe=function(n){return this.client.request({method:"GET",url:"/users/me",queryParams:n})},t.prototype.destroy=function(n,r){return this.rawDestroy(C(n),r).then(function(i){return S(i)})},t.prototype.rawDestroy=function(n,r){return this.client.request({method:"DELETE",url:"/users/".concat(n),queryParams:r})},t.TYPE="user",t}(H),_x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),wx=function(e){_x(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/sso-users"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/sso-users/".concat(n)})},t.prototype.copyUsers=function(){return this.rawCopyUsers().then(function(n){return S(n)})},t.prototype.rawCopyUsers=function(){return this.client.request({method:"POST",url:"/sso-users/copy-users"})},t.prototype.destroy=function(n,r){return this.rawDestroy(C(n),r).then(function(i){return S(i)})},t.prototype.rawDestroy=function(n,r){return this.client.request({method:"DELETE",url:"/sso-users/".concat(n),queryParams:r})},t.TYPE="sso_user",t}(H),Sx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xx=function(e){Sx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.query=function(n){return this.rawQuery(M(n,{type:"audit_log_query",attributes:["filter","next_token","detailed_log"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawQuery=function(n){return this.client.request({method:"POST",url:"/audit-log-events/query",body:n})},t.TYPE="audit_log_event",t}(H),Ex=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),bx=function(e){Ex(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/menu-items",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/menu-items/".concat(n),body:r})},t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/menu-items",queryParams:n})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/menu-items/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/menu-items/".concat(n)})},t.prototype.reorder=function(n){return this.rawReorder(M(n,{type:"menu_item",attributes:["position"],relationships:["parent"]})).then(function(r){return S(r)})},t.prototype.rawReorder=function(n){return this.client.request({method:"POST",url:"/menu-items/reorder",body:n})},t.TYPE="menu_item",t}(H),Ox=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cx=function(e){Ox(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/schema-menu-items",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent","children"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/schema-menu-items/".concat(n),body:r})},t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/schema-menu-items",queryParams:n})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/schema-menu-items/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/schema-menu-items/".concat(n)})},t.prototype.reorder=function(n){return this.rawReorder(M(n,{type:"schema_menu_item",attributes:["position"],relationships:["parent"]})).then(function(r){return S(r)})},t.prototype.rawReorder=function(n){return this.client.request({method:"POST",url:"/schema-menu-items/reorder",body:n})},t.TYPE="schema_menu_item",t}(H),Px=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tx=function(e){Px(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"upload_collection",attributes:["label","position"],relationships:["parent"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/upload-collections",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"upload_collection",attributes:["label","position"],relationships:["parent","children"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/upload-collections/".concat(n),body:r})},t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/upload-collections",queryParams:n})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/upload-collections/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/upload-collections/".concat(n)})},t.prototype.reorder=function(n){return this.rawReorder(M(n,{type:"upload_collection",attributes:["position"],relationships:["parent"]})).then(function(r){return S(r)})},t.prototype.rawReorder=function(n){return this.client.request({method:"POST",url:"/upload-collections/reorder",body:n})},t.TYPE="upload_collection",t}(H),kx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),jx=function(e){kx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n,r){return this.rawCreate(M(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"]}),r).then(function(i){return S(i)})},t.prototype.rawCreate=function(n,r){return this.client.request({method:"POST",url:"/item-types",body:n,queryParams:r})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(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(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/item-types/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/item-types"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/item-types/".concat(n)})},t.prototype.duplicate=function(n){return this.rawDuplicate(C(n)).then(function(r){return S(r)})},t.prototype.rawDuplicate=function(n){return this.client.request({method:"POST",url:"/item-types/".concat(n,"/duplicate")})},t.prototype.destroy=function(n,r){return this.rawDestroy(C(n),r).then(function(i){return S(i)})},t.prototype.rawDestroy=function(n,r){return this.client.request({method:"DELETE",url:"/item-types/".concat(n),queryParams:r})},t.prototype.rawReorderFieldsAndFieldsets=function(n,r){return this.client.request({method:"POST",url:"/item-types/".concat(n,"/reorder-fields-and-fieldsets"),body:r})},t.TYPE="item_type",t}(H),Ix=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lx=function(e){Ix(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n,r){return this.rawCreate(C(n),M(r,{type:"field",attributes:["label","field_type","api_key","localized","validators","appeareance","appearance","position","hint","default_value","deep_filtering_enabled"],relationships:["fieldset"]})).then(function(i){return S(i)})},t.prototype.rawCreate=function(n,r){return this.client.request({method:"POST",url:"/item-types/".concat(n,"/fields"),body:r})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"field",attributes:["default_value","label","api_key","localized","validators","appeareance","appearance","position","field_type","hint","deep_filtering_enabled"],relationships:["fieldset"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/fields/".concat(n),body:r})},t.prototype.list=function(n){return this.rawList(C(n)).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/item-types/".concat(n,"/fields")})},t.prototype.referencing=function(n){return this.rawReferencing(C(n)).then(function(r){return S(r)})},t.prototype.rawReferencing=function(n){return this.client.request({method:"GET",url:"/item-types/".concat(n,"/fields/referencing")})},t.prototype.related=function(n){return this.rawRelated(C(n)).then(function(r){return S(r)})},t.prototype.rawRelated=function(n){return this.client.request({method:"GET",url:"/item-types/".concat(n,"/fields/related")})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/fields/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/fields/".concat(n)})},t.prototype.duplicate=function(n){return this.rawDuplicate(C(n)).then(function(r){return S(r)})},t.prototype.rawDuplicate=function(n){return this.client.request({method:"POST",url:"/fields/".concat(n,"/duplicate")})},t.TYPE="field",t}(H),Rx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nx=function(e){Rx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n,r){return this.rawCreate(C(n),M(r,{type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawCreate=function(n,r){return this.client.request({method:"POST",url:"/item-types/".concat(n,"/fieldsets"),body:r})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/fieldsets/".concat(n),body:r})},t.prototype.list=function(n){return this.rawList(C(n)).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/item-types/".concat(n,"/fieldsets")})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/fieldsets/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/fieldsets/".concat(n)})},t.TYPE="fieldset",t}(H),Mx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zx=function(e){Mx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"email_credentials",attributes:["email","password","otp_code"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/sessions",body:n})},t.TYPE="session",t}(H),Fx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ax=function(e){Fx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/access_tokens",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/access_tokens/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/access_tokens"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/access_tokens/".concat(n)})},t.prototype.regenerateToken=function(n){return this.rawRegenerateToken(C(n)).then(function(r){return S(r)})},t.prototype.rawRegenerateToken=function(n){return this.client.request({method:"POST",url:"/access_tokens/".concat(n,"/regenerate_token")})},t.prototype.destroy=function(n,r){return this.rawDestroy(C(n),r).then(function(i){return S(i)})},t.prototype.rawDestroy=function(n,r){return this.client.request({method:"DELETE",url:"/access_tokens/".concat(n),queryParams:r})},t.TYPE="access_token",t}(H),Dx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$x=function(e){Dx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"plugin",attributes:["package_name","name","description","url","permissions","plugin_type","field_types","parameter_definitions","package_version"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/plugins",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"plugin",attributes:["name","description","url","parameters","package_version","permissions"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/plugins/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/plugins"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/plugins/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/plugins/".concat(n)})},t.prototype.fields=function(n){return this.rawFields(C(n)).then(function(r){return S(r)})},t.prototype.rawFields=function(n){return this.client.request({method:"GET",url:"/plugins/".concat(n,"/fields")})},t.TYPE="plugin",t}(H),Vx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ux=function(e){Vx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/job-results/".concat(n)})},t.TYPE="job_result",t}(H),qx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bx=function(e){qx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/subscription-limits"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/subscription-limits/".concat(n)})},t.TYPE="subscription_limit",t}(H),Hx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gx=function(e){Hx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/subscription-features"})},t.TYPE="subscription_feature",t}(H),Wx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yx=function(e){Wx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/build-events"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/build-events/".concat(n)})},t.TYPE="build_event",t}(H),Kx=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),la=function(){return la=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},la.apply(this,arguments)},Qx=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Xx=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(a){return new Promise(function(u,l){a=e[o](a),i(u,l,a.done,a.value)})}}function i(o,a,u,l){Promise.resolve(l).then(function(s){o({value:s,done:u})},a)}},yr=function(e){return this instanceof yr?(this.v=e,this):new yr(e)},Jx=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(f){r[f]&&(i[f]=function(h){return new Promise(function(p,y){o.push([f,h,p,y])>1||u(f,h)})})}function u(f,h){try{l(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){f.value instanceof yr?Promise.resolve(f.value.v).then(s,c):d(o[0][2],f)}function s(f){u("next",f)}function c(f){u("throw",f)}function d(f,h){f(h),o.shift(),o.length&&u(o[0][0],o[0][1])}},Zx=function(e){Kx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/items",queryParams:n})},t.prototype.listPagedIterator=function(n,r){return Jx(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return Qx(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=Xx(this.rawListPagedIterator(n,r)),p.label=1;case 1:return[4,yr(a.next())];case 2:if(u=p.sent(),c=u.done,!!c)return[3,8];h=u.value,o=!1,p.label=3;case 3:return p.trys.push([3,,6,7]),l=h,[4,yr(Kt(l))];case 4:return[4,p.sent()];case 5:return p.sent(),[3,7];case 6:return o=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return s=p.sent(),d={error:s},[3,15];case 10:return p.trys.push([10,,13,14]),!o&&!c&&(f=a.return)?[4,yr(f.call(a))]:[3,12];case 11:p.sent(),p.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})},t.prototype.rawListPagedIterator=function(n,r){var i=this;return Yn(n),Wn({defaultLimit:30,maxLimit:500},function(o){return i.rawList(la(la({},n),{page:o}))},r)},t.prototype.validateExisting=function(n,r){return this.rawValidateExisting(C(n),M(r,{id:C(n),type:"item",attributes:"*",relationships:["item_type","creator"]}))},t.prototype.rawValidateExisting=function(n,r){return this.client.request({method:"POST",url:"/items/".concat(n,"/validate"),body:r})},t.prototype.validateNew=function(n){return this.rawValidateNew(M(n,{type:"item",attributes:"*",relationships:["item_type","creator"]}))},t.prototype.rawValidateNew=function(n){return this.client.request({method:"POST",url:"/items/validate",body:n})},t.prototype.create=function(n){return this.rawCreate(M(n,{type:"item",attributes:"*",relationships:["item_type","creator"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/items",body:n})},t.prototype.duplicate=function(n){return this.rawDuplicate(C(n)).then(function(r){return S(r)})},t.prototype.rawDuplicate=function(n){return this.client.request({method:"POST",url:"/items/".concat(n,"/duplicate")})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"item",attributes:"*",relationships:["item_type","creator"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/items/".concat(n),body:r})},t.prototype.references=function(n,r){return this.rawReferences(C(n),r).then(function(i){return S(i)})},t.prototype.rawReferences=function(n,r){return this.client.request({method:"GET",url:"/items/".concat(n,"/references"),queryParams:r})},t.prototype.find=function(n,r){return this.rawFind(C(n),r).then(function(i){return S(i)})},t.prototype.rawFind=function(n,r){return this.client.request({method:"GET",url:"/items/".concat(n),queryParams:r})},t.prototype.currentVsPublishedState=function(n){return this.rawCurrentVsPublishedState(C(n)).then(function(r){return S(r)})},t.prototype.rawCurrentVsPublishedState=function(n){return this.client.request({method:"GET",url:"/items/".concat(n,"/current-vs-published-state")})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/items/".concat(n)})},t.prototype.batchDestroy=function(n){return this.rawBatchDestroy(n).then(function(r){return S(r)})},t.prototype.rawBatchDestroy=function(n){return this.client.request({method:"DELETE",url:"/items",queryParams:n})},t.prototype.batchPublish=function(n){return this.rawBatchPublish(n).then(function(r){return S(r)})},t.prototype.rawBatchPublish=function(n){return this.client.request({method:"PUT",url:"/items/publish",queryParams:n})},t.prototype.batchUnpublish=function(n){return this.rawBatchUnpublish(n).then(function(r){return S(r)})},t.prototype.rawBatchUnpublish=function(n){return this.client.request({method:"PUT",url:"/items/unpublish",queryParams:n})},t.prototype.publish=function(n,r,i){return this.rawPublish(C(n),r?M(r,{type:"selective_publish_operation",attributes:["content_in_locales","non_localized_content"],relationships:[]}):null,i).then(function(o){return S(o)})},t.prototype.rawPublish=function(n,r,i){return this.client.request({method:"PUT",url:"/items/".concat(n,"/publish"),body:r,queryParams:i})},t.prototype.unpublish=function(n,r,i){return this.rawUnpublish(C(n),r?M(r,{type:"selective_unpublish_operation",attributes:["content_in_locales"],relationships:[]}):null,i).then(function(o){return S(o)})},t.prototype.rawUnpublish=function(n,r,i){return this.client.request({method:"PUT",url:"/items/".concat(n,"/unpublish"),body:r,queryParams:i})},t.prototype.bulkPublish=function(n){return this.rawBulkPublish(M(n,{type:"item_bulk_publish_operation",attributes:[],relationships:["items"]})).then(function(r){return S(r)})},t.prototype.rawBulkPublish=function(n){return this.client.request({method:"POST",url:"/items/bulk/publish",body:n})},t.prototype.bulkUnpublish=function(n){return this.rawBulkUnpublish(M(n,{type:"item_bulk_unpublish_operation",attributes:[],relationships:["items"]})).then(function(r){return S(r)})},t.prototype.rawBulkUnpublish=function(n){return this.client.request({method:"POST",url:"/items/bulk/unpublish",body:n})},t.prototype.bulkDestroy=function(n){return this.rawBulkDestroy(M(n,{type:"item_bulk_destroy_operation",attributes:[],relationships:["items"]})).then(function(r){return S(r)})},t.prototype.rawBulkDestroy=function(n){return this.client.request({method:"POST",url:"/items/bulk/destroy",body:n})},t.prototype.bulkMoveToStage=function(n){return this.rawBulkMoveToStage(M(n,{type:"item_bulk_move_to_stage_operation",attributes:["stage"],relationships:["items"]})).then(function(r){return S(r)})},t.prototype.rawBulkMoveToStage=function(n){return this.client.request({method:"POST",url:"/items/bulk/move-to-stage",body:n})},t.TYPE="item",t}(H),eE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ca=function(){return ca=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ca.apply(this,arguments)},tE=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},nE=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(a){return new Promise(function(u,l){a=e[o](a),i(u,l,a.done,a.value)})}}function i(o,a,u,l){Promise.resolve(l).then(function(s){o({value:s,done:u})},a)}},gr=function(e){return this instanceof gr?(this.v=e,this):new gr(e)},rE=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(f){r[f]&&(i[f]=function(h){return new Promise(function(p,y){o.push([f,h,p,y])>1||u(f,h)})})}function u(f,h){try{l(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){f.value instanceof gr?Promise.resolve(f.value.v).then(s,c):d(o[0][2],f)}function s(f){u("next",f)}function c(f){u("throw",f)}function d(f,h){f(h),o.shift(),o.length&&u(o[0][0],o[0][1])}},iE=function(e){eE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.restore=function(n){return this.rawRestore(C(n)).then(function(r){return S(r)})},t.prototype.rawRestore=function(n){return this.client.request({method:"POST",url:"/versions/".concat(n,"/restore")})},t.prototype.list=function(n,r){return this.rawList(C(n),r).then(function(i){return S(i)})},t.prototype.rawList=function(n,r){return this.client.request({method:"GET",url:"/items/".concat(n,"/versions"),queryParams:r})},t.prototype.listPagedIterator=function(n,r,i){return rE(this,arguments,function(){var a,u,l,s,c,d,f,h,p;return tE(this,function(y){switch(y.label){case 0:y.trys.push([0,9,10,15]),a=!0,u=nE(this.rawListPagedIterator(C(n),r,i)),y.label=1;case 1:return[4,gr(u.next())];case 2:if(l=y.sent(),d=l.done,!!d)return[3,8];p=l.value,a=!1,y.label=3;case 3:return y.trys.push([3,,6,7]),s=p,[4,gr(Kt(s))];case 4:return[4,y.sent()];case 5:return y.sent(),[3,7];case 6:return a=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return c=y.sent(),f={error:c},[3,15];case 10:return y.trys.push([10,,13,14]),!a&&!d&&(h=u.return)?[4,gr(h.call(u))]:[3,12];case 11:y.sent(),y.label=12;case 12:return[3,14];case 13:if(f)throw f.error;return[7];case 14:return[7];case 15:return[2]}})})},t.prototype.rawListPagedIterator=function(n,r,i){var o=this;return Yn(r),Wn({defaultLimit:15,maxLimit:50},function(a){return o.rawList(n,ca(ca({},r),{page:a}))},i)},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/versions/".concat(n)})},t.TYPE="item_version",t}(H),oE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),fa=function(){return fa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},fa.apply(this,arguments)},aE=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},sE=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(a){return new Promise(function(u,l){a=e[o](a),i(u,l,a.done,a.value)})}}function i(o,a,u,l){Promise.resolve(l).then(function(s){o({value:s,done:u})},a)}},_r=function(e){return this instanceof _r?(this.v=e,this):new _r(e)},uE=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(f){r[f]&&(i[f]=function(h){return new Promise(function(p,y){o.push([f,h,p,y])>1||u(f,h)})})}function u(f,h){try{l(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){f.value instanceof _r?Promise.resolve(f.value.v).then(s,c):d(o[0][2],f)}function s(f){u("next",f)}function c(f){u("throw",f)}function d(f,h){f(h),o.shift(),o.length&&u(o[0][0],o[0][1])}},Im=function(e){oE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"upload",attributes:["path","copyright","author","notes","default_field_metadata","tags"],relationships:["upload_collection"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/uploads",body:n})},t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/uploads",queryParams:n})},t.prototype.listPagedIterator=function(n,r){return uE(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return aE(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=sE(this.rawListPagedIterator(n,r)),p.label=1;case 1:return[4,_r(a.next())];case 2:if(u=p.sent(),c=u.done,!!c)return[3,8];h=u.value,o=!1,p.label=3;case 3:return p.trys.push([3,,6,7]),l=h,[4,_r(Kt(l))];case 4:return[4,p.sent()];case 5:return p.sent(),[3,7];case 6:return o=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return s=p.sent(),d={error:s},[3,15];case 10:return p.trys.push([10,,13,14]),!o&&!c&&(f=a.return)?[4,_r(f.call(a))]:[3,12];case 11:p.sent(),p.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})},t.prototype.rawListPagedIterator=function(n,r){var i=this;return Yn(n),Wn({defaultLimit:30,maxLimit:500},function(o){return i.rawList(fa(fa({},n),{page:o}))},r)},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/uploads/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/uploads/".concat(n)})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"upload",attributes:["path","basename","copyright","author","notes","tags","default_field_metadata"],relationships:["creator","upload_collection"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/uploads/".concat(n),body:r})},t.prototype.batchAddTags=function(n,r){return this.rawBatchAddTags(M(n,{type:"upload",attributes:["tags"],relationships:[]}),r).then(function(i){return S(i)})},t.prototype.rawBatchAddTags=function(n,r){return this.client.request({method:"PUT",url:"/uploads/batch-add-tags",body:n,queryParams:r})},t.prototype.batchDestroy=function(n){return this.rawBatchDestroy(n).then(function(r){return S(r)})},t.prototype.rawBatchDestroy=function(n){return this.client.request({method:"DELETE",url:"/uploads/batch-destroy",queryParams:n})},t.prototype.references=function(n,r){return this.rawReferences(C(n),r).then(function(i){return S(i)})},t.prototype.rawReferences=function(n,r){return this.client.request({method:"GET",url:"/uploads/".concat(n,"/references"),queryParams:r})},t.prototype.bulkTag=function(n){return this.rawBulkTag(M(n,{type:"upload_bulk_tag_operation",attributes:["tags"],relationships:["uploads"]})).then(function(r){return S(r)})},t.prototype.rawBulkTag=function(n){return this.client.request({method:"POST",url:"/uploads/bulk/tag",body:n})},t.prototype.bulkSetUploadCollection=function(n){return this.rawBulkSetUploadCollection(M(n,{type:"upload_bulk_set_upload_collection_operation",attributes:[],relationships:["upload_collection","uploads"]})).then(function(r){return S(r)})},t.prototype.rawBulkSetUploadCollection=function(n){return this.client.request({method:"POST",url:"/uploads/bulk/set-upload-collection",body:n})},t.prototype.bulkDestroy=function(n){return this.rawBulkDestroy(M(n,{type:"upload_bulk_destroy_operation",attributes:[],relationships:["uploads"]})).then(function(r){return S(r)})},t.prototype.rawBulkDestroy=function(n){return this.client.request({method:"POST",url:"/uploads/bulk/destroy",body:n})},t.TYPE="upload",t}(H),lE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),cE=function(e){lE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"upload_request",attributes:["filename"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/upload-requests",body:n})},t.TYPE="upload_request",t}(H),fE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),dE=function(e){fE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n,r){return this.rawCreate(C(n),M(r,{type:"upload_track",attributes:["url_or_upload_request_id","type","name","language_code","closed_captions"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawCreate=function(n,r){return this.client.request({method:"POST",url:"/uploads/".concat(n,"/tracks"),body:r})},t.prototype.list=function(n){return this.rawList(C(n)).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/uploads/".concat(n,"/tracks")})},t.prototype.destroy=function(n,r){return this.rawDestroy(C(n),C(r)).then(function(i){return S(i)})},t.prototype.rawDestroy=function(n,r){return this.client.request({method:"DELETE",url:"/uploads/".concat(n,"/tracks/").concat(r)})},t.prototype.generateSubtitles=function(n,r){return this.rawGenerateSubtitles(C(n),M(r,{type:"upload_track",attributes:["name","language_code"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawGenerateSubtitles=function(n,r){return this.client.request({method:"POST",url:"/uploads/".concat(n,"/tracks/generate-subtitles"),body:r})},t.TYPE="upload_track",t}(H),pE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),hE=function(e){pE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n,r){return this.rawCreate(C(n),M(r,{type:"scheduled_publication",attributes:["publication_scheduled_at","selective_publication"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawCreate=function(n,r){return this.client.request({method:"POST",url:"/items/".concat(n,"/scheduled-publication"),body:r})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/items/".concat(n,"/scheduled-publication")})},t.TYPE="scheduled_publication",t}(H),mE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),vE=function(e){mE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n,r){return this.rawCreate(C(n),M(r,{type:"scheduled_unpublishing",attributes:["unpublishing_scheduled_at","content_in_locales"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawCreate=function(n,r){return this.client.request({method:"POST",url:"/items/".concat(n,"/scheduled-unpublishing"),body:r})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/items/".concat(n,"/scheduled-unpublishing")})},t.TYPE="scheduled_unpublishing",t}(H),yE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),da=function(){return da=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},da.apply(this,arguments)},gE=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},_E=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(a){return new Promise(function(u,l){a=e[o](a),i(u,l,a.done,a.value)})}}function i(o,a,u,l){Promise.resolve(l).then(function(s){o({value:s,done:u})},a)}},wr=function(e){return this instanceof wr?(this.v=e,this):new wr(e)},wE=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(f){r[f]&&(i[f]=function(h){return new Promise(function(p,y){o.push([f,h,p,y])>1||u(f,h)})})}function u(f,h){try{l(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){f.value instanceof wr?Promise.resolve(f.value.v).then(s,c):d(o[0][2],f)}function s(f){u("next",f)}function c(f){u("throw",f)}function d(f,h){f(h),o.shift(),o.length&&u(o[0][0],o[0][1])}},SE=function(e){yE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/search-results",queryParams:n})},t.prototype.listPagedIterator=function(n,r){return wE(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return gE(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=_E(this.rawListPagedIterator(n,r)),p.label=1;case 1:return[4,wr(a.next())];case 2:if(u=p.sent(),c=u.done,!!c)return[3,8];h=u.value,o=!1,p.label=3;case 3:return p.trys.push([3,,6,7]),l=h,[4,wr(Kt(l))];case 4:return[4,p.sent()];case 5:return p.sent(),[3,7];case 6:return o=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return s=p.sent(),d={error:s},[3,15];case 10:return p.trys.push([10,,13,14]),!o&&!c&&(f=a.return)?[4,wr(f.call(a))]:[3,12];case 11:p.sent(),p.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})},t.prototype.rawListPagedIterator=function(n,r){var i=this;return Yn(n),Wn({defaultLimit:20,maxLimit:100},function(o){return i.rawList(da(da({},n),{page:o}))},r)},t.TYPE="search_result",t}(H),xE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),EE=function(e){xE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.fork=function(n,r,i){return this.rawFork(C(n),M(r,{id:C(n),type:"environment",attributes:[],relationships:[]}),i).then(function(o){return S(o)})},t.prototype.rawFork=function(n,r,i){return this.client.request({method:"POST",url:"/environments/".concat(n,"/fork"),body:r,queryParams:i})},t.prototype.promote=function(n){return this.rawPromote(C(n)).then(function(r){return S(r)})},t.prototype.rawPromote=function(n){return this.client.request({method:"PUT",url:"/environments/".concat(n,"/promote")})},t.prototype.rename=function(n,r){return this.rawRename(C(n),M(r,{id:C(n),type:"environment",attributes:[],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawRename=function(n,r){return this.client.request({method:"PUT",url:"/environments/".concat(n,"/rename"),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/environments"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/environments/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/environments/".concat(n)})},t.TYPE="environment",t}(H),bE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),OE=function(e){bE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.find=function(){return this.rawFind().then(function(n){return S(n)})},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/maintenance-mode"})},t.prototype.activate=function(n){return this.rawActivate(n).then(function(r){return S(r)})},t.prototype.rawActivate=function(n){return this.client.request({method:"PUT",url:"/maintenance-mode/activate",queryParams:n})},t.prototype.deactivate=function(){return this.rawDeactivate().then(function(n){return S(n)})},t.prototype.rawDeactivate=function(){return this.client.request({method:"PUT",url:"/maintenance-mode/deactivate"})},t.TYPE="maintenance_mode",t}(H),CE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),PE=function(e){CE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(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(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/webhooks",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(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(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/webhooks/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/webhooks"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/webhooks/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/webhooks/".concat(n)})},t.TYPE="webhook",t}(H),TE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),pa=function(){return pa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},pa.apply(this,arguments)},kE=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},jE=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(a){return new Promise(function(u,l){a=e[o](a),i(u,l,a.done,a.value)})}}function i(o,a,u,l){Promise.resolve(l).then(function(s){o({value:s,done:u})},a)}},Sr=function(e){return this instanceof Sr?(this.v=e,this):new Sr(e)},IE=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(f){r[f]&&(i[f]=function(h){return new Promise(function(p,y){o.push([f,h,p,y])>1||u(f,h)})})}function u(f,h){try{l(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){f.value instanceof Sr?Promise.resolve(f.value.v).then(s,c):d(o[0][2],f)}function s(f){u("next",f)}function c(f){u("throw",f)}function d(f,h){f(h),o.shift(),o.length&&u(o[0][0],o[0][1])}},LE=function(e){TE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/webhook_calls",queryParams:n})},t.prototype.listPagedIterator=function(n,r){return IE(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return kE(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=jE(this.rawListPagedIterator(n,r)),p.label=1;case 1:return[4,Sr(a.next())];case 2:if(u=p.sent(),c=u.done,!!c)return[3,8];h=u.value,o=!1,p.label=3;case 3:return p.trys.push([3,,6,7]),l=h,[4,Sr(Kt(l))];case 4:return[4,p.sent()];case 5:return p.sent(),[3,7];case 6:return o=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return s=p.sent(),d={error:s},[3,15];case 10:return p.trys.push([10,,13,14]),!o&&!c&&(f=a.return)?[4,Sr(f.call(a))]:[3,12];case 11:p.sent(),p.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})},t.prototype.rawListPagedIterator=function(n,r){var i=this;return Yn(n),Wn({defaultLimit:30,maxLimit:500},function(o){return i.rawList(pa(pa({},n),{page:o}))},r)},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/webhook_calls/".concat(n)})},t.prototype.resendWebhook=function(n){return this.rawResendWebhook(C(n))},t.prototype.rawResendWebhook=function(n){return this.client.request({method:"POST",url:"/webhook_calls/".concat(n,"/resend_webhook")})},t.TYPE="webhook_call",t}(H),RE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),NE=function(e){RE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/build-triggers"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/build-triggers/".concat(n)})},t.prototype.create=function(n){return this.rawCreate(M(n,{type:"build_trigger",attributes:["name","webhook_token","adapter","indexing_enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/build-triggers",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"build_trigger",attributes:["name","adapter","indexing_enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/build-triggers/".concat(n),body:r})},t.prototype.trigger=function(n){return this.rawTrigger(C(n))},t.prototype.rawTrigger=function(n){return this.client.request({method:"POST",url:"/build-triggers/".concat(n,"/trigger")})},t.prototype.abort=function(n){return this.rawAbort(C(n))},t.prototype.rawAbort=function(n){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(n,"/abort")})},t.prototype.abortIndexing=function(n){return this.rawAbortIndexing(C(n))},t.prototype.rawAbortIndexing=function(n){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(n,"/abort_indexing")})},t.prototype.reindex=function(n){return this.rawReindex(C(n))},t.prototype.rawReindex=function(n){return this.client.request({method:"PUT",url:"/build-triggers/".concat(n,"/reindex")})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(n)})},t.TYPE="build_trigger",t}(H),ME=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zE=function(e){ME(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"item_type_filter",attributes:["name","filter","columns","order_by","shared"],relationships:["item_type"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/item-type-filters",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"item_type_filter",attributes:["name","columns","order_by","shared","filter"],relationships:["item_type"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/item-type-filters/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/item-type-filters"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/item-type-filters/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/item-type-filters/".concat(n)})},t.TYPE="item_type_filter",t}(H),FE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),AE=function(e){FE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"upload_filter",attributes:["name","filter","shared"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/upload-filters",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"upload_filter",attributes:["name","shared","filter"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/upload-filters/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/upload-filters"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/upload-filters/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/upload-filters/".concat(n)})},t.TYPE="upload_filter",t}(H),DE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$E=function(e){DE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"site_invitation",attributes:["email"],relationships:["role"]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/site-invitations",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"site_invitation",attributes:[],relationships:["role"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/site-invitations/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/site-invitations"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/site-invitations/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/site-invitations/".concat(n)})},t.prototype.resend=function(n){return this.rawResend(C(n)).then(function(r){return S(r)})},t.prototype.rawResend=function(n){return this.client.request({method:"POST",url:"/site-invitations/".concat(n,"/resend")})},t.TYPE="site_invitation",t}(H),VE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),UE=function(e){VE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/editing-sessions"})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/editing-sessions/".concat(n),body:r})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/editing-sessions/".concat(n)})},t.TYPE="editing_session",t}(H),qE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),BE=function(e){qE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/sso-groups"})},t.prototype.copyRoles=function(n){return this.rawCopyRoles(C(n)).then(function(r){return S(r)})},t.prototype.rawCopyRoles=function(n){return this.client.request({method:"POST",url:"/sso-groups/".concat(n,"/copy-roles")})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"sso_group",attributes:["priority"],relationships:["role"]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/sso-groups/".concat(n),body:r})},t.prototype.destroy=function(n){return this.rawDestroy(C(n)).then(function(r){return S(r)})},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/sso-groups/".concat(n)})},t.TYPE="sso_group",t}(H),HE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),GE=function(e){HE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.find=function(){return this.rawFind().then(function(n){return S(n)})},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/sso-settings"})},t.prototype.generateToken=function(){return this.rawGenerateToken().then(function(n){return S(n)})},t.prototype.rawGenerateToken=function(){return this.client.request({method:"PUT",url:"/sso-settings/generate-token"})},t.prototype.update=function(n){return this.rawUpdate(M(n,{type:"sso_settings",attributes:["idp_saml_metadata_url","idp_saml_metadata_xml"],relationships:["default_role"]})).then(function(r){return S(r)})},t.prototype.rawUpdate=function(n){return this.client.request({method:"PUT",url:"/sso-settings",body:n})},t.TYPE="sso_settings",t}(H),WE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),YE=function(e){WE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.find=function(n){return this.rawFind(n).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/emoji-suggestions",queryParams:n})},t.TYPE="emoji_suggestions",t}(H),KE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),QE=function(e){KE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.find=function(){return this.rawFind().then(function(n){return S(n)})},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/white-label-settings"})},t.prototype.update=function(n){return this.rawUpdate(M(n,{type:"white_label_settings",attributes:["custom_i18n_messages_template_url"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawUpdate=function(n){return this.client.request({method:"PUT",url:"/white-label-settings",body:n})},t.TYPE="white_label_settings",t}(H),XE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),JE=function(e){XE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.find=function(){return this.rawFind().then(function(n){return S(n)})},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/public-info"})},t.TYPE="public_info",t}(H),ZE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),eb=function(e){ZE(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/daily-site-usages"})},t.TYPE="daily_usage",t}(H),tb=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),nb=function(e){tb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.find=function(n,r){return this.rawFind(C(n),r).then(function(i){return S(i)})},t.prototype.rawFind=function(n,r){return this.client.request({method:"GET",url:"/usage-log-counters/".concat(n),queryParams:r})},t.TYPE="usage_counter",t}(H),rb=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ha=function(){return ha=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ha.apply(this,arguments)},ib=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},ob=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(a){return new Promise(function(u,l){a=e[o](a),i(u,l,a.done,a.value)})}}function i(o,a,u,l){Promise.resolve(l).then(function(s){o({value:s,done:u})},a)}},xr=function(e){return this instanceof xr?(this.v=e,this):new xr(e)},ab=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(f){r[f]&&(i[f]=function(h){return new Promise(function(p,y){o.push([f,h,p,y])>1||u(f,h)})})}function u(f,h){try{l(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){f.value instanceof xr?Promise.resolve(f.value.v).then(s,c):d(o[0][2],f)}function s(f){u("next",f)}function c(f){u("throw",f)}function d(f,h){f(h),o.shift(),o.length&&u(o[0][0],o[0][1])}},sb=function(e){rb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/upload-tags",queryParams:n})},t.prototype.listPagedIterator=function(n,r){return ab(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return ib(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=ob(this.rawListPagedIterator(n,r)),p.label=1;case 1:return[4,xr(a.next())];case 2:if(u=p.sent(),c=u.done,!!c)return[3,8];h=u.value,o=!1,p.label=3;case 3:return p.trys.push([3,,6,7]),l=h,[4,xr(Kt(l))];case 4:return[4,p.sent()];case 5:return p.sent(),[3,7];case 6:return o=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return s=p.sent(),d={error:s},[3,15];case 10:return p.trys.push([10,,13,14]),!o&&!c&&(f=a.return)?[4,xr(f.call(a))]:[3,12];case 11:p.sent(),p.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})},t.prototype.rawListPagedIterator=function(n,r){var i=this;return Yn(n),Wn({defaultLimit:50,maxLimit:500},function(o){return i.rawList(ha(ha({},n),{page:o}))},r)},t.prototype.create=function(n){return this.rawCreate(M(n,{type:"upload_tag",attributes:["name"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/upload-tags",body:n})},t.TYPE="upload_tag",t}(H),ub=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ma=function(){return ma=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ma.apply(this,arguments)},lb=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},cb=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(a){return new Promise(function(u,l){a=e[o](a),i(u,l,a.done,a.value)})}}function i(o,a,u,l){Promise.resolve(l).then(function(s){o({value:s,done:u})},a)}},Er=function(e){return this instanceof Er?(this.v=e,this):new Er(e)},fb=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(f){r[f]&&(i[f]=function(h){return new Promise(function(p,y){o.push([f,h,p,y])>1||u(f,h)})})}function u(f,h){try{l(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){f.value instanceof Er?Promise.resolve(f.value.v).then(s,c):d(o[0][2],f)}function s(f){u("next",f)}function c(f){u("throw",f)}function d(f,h){f(h),o.shift(),o.length&&u(o[0][0],o[0][1])}},db=function(e){ub(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.list=function(n){return this.rawList(n).then(function(r){return S(r)})},t.prototype.rawList=function(n){return this.client.request({method:"GET",url:"/upload-smart-tags",queryParams:n})},t.prototype.listPagedIterator=function(n,r){return fb(this,arguments,function(){var o,a,u,l,s,c,d,f,h;return lb(this,function(p){switch(p.label){case 0:p.trys.push([0,9,10,15]),o=!0,a=cb(this.rawListPagedIterator(n,r)),p.label=1;case 1:return[4,Er(a.next())];case 2:if(u=p.sent(),c=u.done,!!c)return[3,8];h=u.value,o=!1,p.label=3;case 3:return p.trys.push([3,,6,7]),l=h,[4,Er(Kt(l))];case 4:return[4,p.sent()];case 5:return p.sent(),[3,7];case 6:return o=!0,[7];case 7:return[3,1];case 8:return[3,15];case 9:return s=p.sent(),d={error:s},[3,15];case 10:return p.trys.push([10,,13,14]),!o&&!c&&(f=a.return)?[4,Er(f.call(a))]:[3,12];case 11:p.sent(),p.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})},t.prototype.rawListPagedIterator=function(n,r){var i=this;return Yn(n),Wn({defaultLimit:50,maxLimit:500},function(o){return i.rawList(ma(ma({},n),{page:o}))},r)},t.TYPE="upload_smart_tag",t}(H),pb=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),hb=function(e){pb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.find=function(n){return this.rawFind(n).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/site",queryParams:n})},t.prototype.update=function(n){return this.rawUpdate(M(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(function(r){return S(r)})},t.prototype.rawUpdate=function(n){return this.client.request({method:"PUT",url:"/site",body:n})},t.prototype.activateImprovedTimezoneManagement=function(){return this.rawActivateImprovedTimezoneManagement().then(function(n){return S(n)})},t.prototype.rawActivateImprovedTimezoneManagement=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-timezone-management"})},t.prototype.activateImprovedHexManagement=function(){return this.rawActivateImprovedHexManagement().then(function(n){return S(n)})},t.prototype.rawActivateImprovedHexManagement=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-hex-management"})},t.prototype.activateImprovedGqlMultilocaleFields=function(){return this.rawActivateImprovedGqlMultilocaleFields().then(function(n){return S(n)})},t.prototype.rawActivateImprovedGqlMultilocaleFields=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-multilocale-fields"})},t.prototype.activateImprovedGqlVisibilityControl=function(){return this.rawActivateImprovedGqlVisibilityControl().then(function(n){return S(n)})},t.prototype.rawActivateImprovedGqlVisibilityControl=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-visibility-control"})},t.prototype.activateImprovedBooleanFields=function(){return this.rawActivateImprovedBooleanFields().then(function(n){return S(n)})},t.prototype.rawActivateImprovedBooleanFields=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-boolean-fields"})},t.prototype.activateDraftModeAsDefault=function(){return this.rawActivateDraftModeAsDefault().then(function(n){return S(n)})},t.prototype.rawActivateDraftModeAsDefault=function(){return this.client.request({method:"PUT",url:"/site/activate-draft-mode-as-default"})},t.prototype.activateImprovedValidationAtPublishing=function(){return this.rawActivateImprovedValidationAtPublishing().then(function(n){return S(n)})},t.prototype.rawActivateImprovedValidationAtPublishing=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-validation-at-publishing"})},t.prototype.updateAssetsCdnDefaultSettings=function(n){return this.rawUpdateAssetsCdnDefaultSettings(M(n,{type:"assets-cdn-default-settings",attributes:["assets_cdn_default_settings"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawUpdateAssetsCdnDefaultSettings=function(n){return this.client.request({method:"PUT",url:"/site/assets-cdn-default-settings",body:n})},t.TYPE="site",t}(H),mb=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),vb=function(e){mb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(n){return this.rawCreate(M(n,{type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(function(r){return S(r)})},t.prototype.rawCreate=function(n){return this.client.request({method:"POST",url:"/workflows",body:n})},t.prototype.update=function(n,r){return this.rawUpdate(C(n),M(r,{id:C(n),type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(function(i){return S(i)})},t.prototype.rawUpdate=function(n,r){return this.client.request({method:"PUT",url:"/workflows/".concat(n),body:r})},t.prototype.list=function(){return this.rawList().then(function(n){return S(n)})},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/workflows"})},t.prototype.find=function(n){return this.rawFind(C(n)).then(function(r){return S(r)})},t.prototype.rawFind=function(n){return this.client.request({method:"GET",url:"/workflows/".concat(n)})},t.prototype.destroy=function(n){return this.rawDestroy(C(n))},t.prototype.rawDestroy=function(n){return this.client.request({method:"DELETE",url:"/workflows/".concat(n)})},t.TYPE="workflow",t}(H),nn=function(){return nn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},nn.apply(this,arguments)},yb=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(c){try{s(r.next(c))}catch(d){a(d)}}function l(c){try{s(r.throw(c))}catch(d){a(d)}}function s(c){c.done?o(c.value):i(c.value).then(u,l)}s((r=r.apply(e,t||[])).next())})},gb=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},_b=function(){function e(t){this.config=t,this.roles=new vx(this),this.users=new gx(this),this.ssoUsers=new wx(this),this.auditLogEvents=new xx(this),this.menuItems=new bx(this),this.schemaMenuItems=new Cx(this),this.uploadCollections=new Tx(this),this.itemTypes=new jx(this),this.fields=new Lx(this),this.fieldsets=new Nx(this),this.session=new zx(this),this.accessTokens=new Ax(this),this.plugins=new $x(this),this.jobResults=new Ux(this),this.subscriptionLimits=new Bx(this),this.subscriptionFeatures=new Gx(this),this.buildEvents=new Yx(this),this.items=new Zx(this),this.itemVersions=new iE(this),this.uploads=new Im(this),this.uploadRequest=new cE(this),this.uploadTracks=new dE(this),this.scheduledPublication=new hE(this),this.scheduledUnpublishing=new vE(this),this.searchResults=new SE(this),this.environments=new EE(this),this.maintenanceMode=new OE(this),this.webhooks=new PE(this),this.webhookCalls=new LE(this),this.buildTriggers=new NE(this),this.itemTypeFilters=new zE(this),this.uploadFilters=new AE(this),this.siteInvitations=new $E(this),this.editingSessions=new UE(this),this.ssoGroups=new BE(this),this.ssoSettings=new GE(this),this.emojiSuggestions=new YE(this),this.whiteLabelSettings=new QE(this),this.publicInfo=new JE(this),this.dailyUsages=new eb(this),this.usageCounters=new nb(this),this.uploadTags=new sb(this),this.uploadSmartTags=new db(this),this.site=new hb(this),this.workflows=new vb(this)}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.config.baseUrl||e.defaultBaseUrl},enumerable:!1,configurable:!0}),e.prototype.request=function(t){var n=this;return Po(nn(nn(nn({},this.config),t),{logFn:this.config.logFn||console.log,userAgent:"@datocms/cma-client v3.4.5",baseUrl:this.baseUrl,preCallStack:new Error().stack,extraHeaders:nn(nn(nn({},this.config.extraHeaders||{}),this.config.environment?{"X-Environment":this.config.environment}:{}),{"X-API-Version":"3"}),fetchJobResult:function(r){return n.jobResultsFetcher?n.jobResultsFetcher(r):$S(function(){return n.jobResults.find(r)})}}))},e.prototype.eventsChannelName=function(){return yb(this,void 0,void 0,function(){var t;return gb(this,function(n){switch(n.label){case 0:return this.cachedEventsChannelName?[2,this.cachedEventsChannelName]:[4,this.site.rawFind()];case 1:return t=n.sent().data,this.cachedEventsChannelName=this.config.environment?"private-site-".concat(t.id,"-environment-").concat(this.config.environment):"private-site-".concat(t.id),[2,this.cachedEventsChannelName]}})})},e.defaultBaseUrl="https://site-api.datocms.com",e}();function wb(e,t,n){var r=n===void 0?{}:n,i=r.onProgress,o=r.additionalHeaders,a=new XMLHttpRequest;return Xa(new Promise(function(u,l){if(i&&a.upload&&(a.upload.onprogress=function(p){p.lengthComputable&&i({type:"UPLOADING_FILE",payload:{progress:Math.round(p.loaded/p.total*100)}})}),a.onreadystatechange=function(){a.readyState===4&&(a.status===200?u():l(new Error("Status ".concat(a.status))))},a.addEventListener("error",l,!1),a.open("PUT",t,!0),o)for(var s=0,c=Object.entries(o);s<c.length;s++){var d=c[s],f=d[0],h=d[1];a.setRequestHeader(f,h)}a.send(e)}),function(){a.onreadystatechange=null,a.abort()})}var va=function(){return va=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},va.apply(this,arguments)},Sb=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(c){try{s(r.next(c))}catch(d){a(d)}}function l(c){try{s(r.throw(c))}catch(d){a(d)}}function s(c){c.done?o(c.value):i(c.value).then(u,l)}s((r=r.apply(e,t||[])).next())})},xb=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};function Eb(e,t,n){var r=this;n===void 0&&(n={});var i=n.filename||("name"in t?t.name:void 0);if(!i)throw new Error("Missing filename, please provide it as an option!");var o=!1,a=void 0;return Xa(function(){return Sb(r,void 0,void 0,function(){var u,l,s,c;return xb(this,function(d){switch(d.label){case 0:return n.onProgress&&(n==null||n.onProgress({type:"REQUESTING_UPLOAD_URL",payload:{filename:i}})),[4,e.uploadRequest.create({filename:i})];case 1:if(u=d.sent(),l=u.id,s=u.url,c=u.request_headers,o)throw new Qa;return n.onProgress&&n.onProgress({type:"UPLOADING_FILE",payload:{progress:0}}),a=wb(t,s,va(va({},n),{additionalHeaders:c})),[4,a];case 2:return d.sent(),[2,l]}})})},function(){a?a.cancel():o=!0})}var bb=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ya=function(){return ya=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ya.apply(this,arguments)},Ob=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(c){try{s(r.next(c))}catch(d){a(d)}}function l(c){try{s(r.throw(c))}catch(d){a(d)}}function s(c){c.done?o(c.value):i(c.value).then(u,l)}s((r=r.apply(e,t||[])).next())})},Cb=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(c){return l([s,c])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(o=s[0]&2?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1],o=s;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(s);break}o[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(c){s=[6,c],i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Pb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Tb=function(e){bb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createFromFileOrBlob=function(n){var r=this,i=!1,o;return Xa(function(){return Ob(r,void 0,void 0,function(){var a,u,l,s,c;return Cb(this,function(d){switch(d.label){case 0:if(i)throw new Qa;return a=n.fileOrBlob,u=n.filename,l=n.onProgress,s=Pb(n,["fileOrBlob","filename","onProgress"]),o=Eb(this.client,a,{filename:u,onProgress:l}),[4,o];case 1:return c=d.sent(),l&&l({type:"CREATING_UPLOAD_OBJECT"}),[2,this.create(ya(ya({},s),{path:c}))]}})})},function(){o?o.cancel():i=!0})},t}(Im),kb=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),jb=function(e){kb(t,e);function t(n){var r=e.call(this,n)||this;return r.uploads=new Tb(r),r}return t}(_b);function ud(e){return new jb(e)}const Ib="_assetListCard_jv9xn_23",Lb="_assetListHeader_jv9xn_43",Rb="_assetListHeaderTitle_jv9xn_52",Nb="_categoryBadge_jv9xn_67",Mb="_badgeGreen_jv9xn_81",zb="_badgeRed_jv9xn_85",Fb="_badgeGray_jv9xn_89",Ab="_badgeBlue_jv9xn_93",Db="_noAssetsMessage_jv9xn_97",$b="_assetList_jv9xn_23",Vb="_assetListItem_jv9xn_112",Ub="_assetItemContent_jv9xn_126",qb="_assetIcon_jv9xn_132",Bb="_fileIconWrapper_jv9xn_136",Hb="_assetDetails_jv9xn_149",Gb="_assetPath_jv9xn_154",Wb="_optimizationStats_jv9xn_161",Yb="_sizeInfo_jv9xn_169",Kb="_sizeBefore_jv9xn_176",Qb="_sizeAfter_jv9xn_176",Xb="_sizeLabel_jv9xn_182",Jb="_sizeValue_jv9xn_187",Zb="_sizeArrow_jv9xn_200",eO="_savingsBadge_jv9xn_205",tO="_assetActions_jv9xn_215",nO="_container_jv9xn_226",rO="_optimizingContainer_jv9xn_290",iO="_statusText_jv9xn_302",oO="_percentageText_jv9xn_308",aO="_progressBar_jv9xn_315",sO="_progressBarFill_jv9xn_326",uO="_logWrapper_jv9xn_359",lO="_logHeader_jv9xn_369",cO="_logsContainer_jv9xn_381",fO="_logs_jv9xn_381",dO="_logEntry_jv9xn_397",pO="_sizeComparison_jv9xn_410",hO="_originalSize_jv9xn_568",mO="_optimizedSize_jv9xn_578",vO="_sizeSavings_jv9xn_583",yO="_settingsContainer_jv9xn_628",gO="_settingsForm_jv9xn_634",_O="_fieldRow_jv9xn_659",wO="_field_jv9xn_659",SO="_formActionContainer_jv9xn_670",xO="_buttonGroup_jv9xn_674",EO="_resultsContainer_jv9xn_724",bO="_optimizationSummaryTitle_jv9xn_733",OO="_statsCardGrid_jv9xn_741",CO="_statsCard_jv9xn_741",PO="_clickableStatsCard_jv9xn_758",TO="_statsCardTitle_jv9xn_798",kO="_statsCardValue_jv9xn_806",jO="_optimizedValue_jv9xn_812",IO="_skippedValue_jv9xn_816",LO="_failedValue_jv9xn_820",RO="_statsCardLabel_jv9xn_824",NO="_savingsSummary_jv9xn_829",MO="_savingsCard_jv9xn_833",zO="_savingsRow_jv9xn_840",FO="_savingsLabel_jv9xn_852",AO="_savingsValue_jv9xn_857",DO="_actionsContainer_jv9xn_863",$O="_infoText_jv9xn_872",VO="_hintWithDoc_jv9xn_888",UO="_plainHint_jv9xn_902",qO="_docLinkIcon_jv9xn_915",BO="_currentAssetPreview_jv9xn_979",HO="_assetPreviewImage_jv9xn_990",GO="_assetPreviewInfo_jv9xn_1007",WO="_assetPreviewTitle_jv9xn_1012",YO="_assetPreviewMeta_jv9xn_1022",KO="_advancedOptionsGroup_jv9xn_1031",QO="_optionsGrid_jv9xn_1041",XO="_optionItem_jv9xn_1048",JO="_paramTooltip_jv9xn_1055",ZO="_tooltipText_jv9xn_1060",eC="_buttonTooltip_jv9xn_1098",tC="_previewInfoBox_jv9xn_1141",T={assetListCard:Ib,assetListHeader:Lb,assetListHeaderTitle:Rb,categoryBadge:Nb,badgeGreen:Mb,badgeRed:zb,badgeGray:Fb,badgeBlue:Ab,noAssetsMessage:Db,assetList:$b,assetListItem:Vb,assetItemContent:Ub,assetIcon:qb,fileIconWrapper:Bb,assetDetails:Hb,assetPath:Gb,optimizationStats:Wb,sizeInfo:Yb,sizeBefore:Kb,sizeAfter:Qb,sizeLabel:Xb,sizeValue:Jb,sizeArrow:Zb,savingsBadge:eO,assetActions:tO,container:nO,optimizingContainer:rO,statusText:iO,percentageText:oO,progressBar:aO,progressBarFill:sO,logWrapper:uO,logHeader:lO,logsContainer:cO,logs:fO,logEntry:dO,sizeComparison:pO,originalSize:hO,optimizedSize:mO,sizeSavings:vO,settingsContainer:yO,settingsForm:gO,fieldRow:_O,field:wO,formActionContainer:SO,buttonGroup:xO,resultsContainer:EO,optimizationSummaryTitle:bO,statsCardGrid:OO,statsCard:CO,clickableStatsCard:PO,statsCardTitle:TO,statsCardValue:kO,optimizedValue:jO,skippedValue:IO,failedValue:LO,statsCardLabel:RO,savingsSummary:NO,savingsCard:MO,savingsRow:zO,savingsLabel:FO,savingsValue:AO,actionsContainer:DO,infoText:$O,hintWithDoc:VO,plainHint:UO,docLinkIcon:qO,currentAssetPreview:BO,assetPreviewImage:HO,assetPreviewInfo:GO,assetPreviewTitle:WO,assetPreviewMeta:YO,advancedOptionsGroup:KO,optionsGrid:QO,optionItem:XO,paramTooltip:JO,tooltipText:ZO,buttonTooltip:eC,previewInfoBox:tC},Lm={largeAssetThreshold:3,veryLargeAssetThreshold:8,qualityLarge:85,qualityVeryLarge:80,resizeDimensionLarge:2400,resizeDimensionVeryLarge:2e3,minimumReduction:10,targetFormat:"avif",preserveOriginalFormat:!1,resizeLargeImages:!0,useAutoCompress:!0,useDpr:!0,useLossless:!1,useChromaSubsampling:!1,preserveColorProfile:!0};function ld(e,t){if(!e.is_image)return null;const n=t.largeAssetThreshold*1024*1024,r=t.veryLargeAssetThreshold*1024*1024,i=e.size>=n,o=e.size>=r;let a="?";if(t.useAutoCompress&&(a+="auto=compress"),o)a+=a.length>1?"&":"",a+=`q=${t.qualityVeryLarge}`;else if(i)a+=a.length>1?"&":"",a+=`q=${t.qualityLarge}`;else return null;if(t.resizeLargeImages&&e.width&&e.height){const u=Math.max(e.width,e.height),l=o?t.resizeDimensionVeryLarge:i?t.resizeDimensionLarge:null;l&&u>l&&(e.width>=e.height?(a+=a.length>1?"&":"",a+=`max-w=${l}`):(a+=a.length>1?"&":"",a+=`h=${l}`))}return t.targetFormat&&!t.preserveOriginalFormat&&(a+=a.length>1?"&":"",a+=`fm=${t.targetFormat}`),o&&t.useDpr&&(a+=a.length>1?"&":"",a+="dpr=2"),t.useLossless&&(a+=a.length>1?"&":"",a+="lossless=1"),t.useChromaSubsampling&&(a+=a.length>1?"&":"",a+="chromasub=444"),t.preserveColorProfile&&(a+=a.length>1?"&":"",a+="cs=origin"),a}var nC="Expected a function",cd=NaN,rC="[object Symbol]",iC=/^\s+|\s+$/g,oC=/^[-+]0x[0-9a-f]+$/i,aC=/^0b[01]+$/i,sC=/^0o[0-7]+$/i,uC=parseInt,lC=typeof Tt=="object"&&Tt&&Tt.Object===Object&&Tt,cC=typeof self=="object"&&self&&self.Object===Object&&self,fC=lC||cC||Function("return this")(),dC=Object.prototype,pC=dC.toString,hC=Math.max,mC=Math.min,Fs=function(){return fC.Date.now()};function vC(e,t,n){var r,i,o,a,u,l,s=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(nC);t=fd(t)||0,el(n)&&(c=!!n.leading,d="maxWait"in n,o=d?hC(fd(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f);function h(b){var O=r,P=i;return r=i=void 0,s=b,a=e.apply(P,O),a}function p(b){return s=b,u=setTimeout(m,t),c?h(b):a}function y(b){var O=b-l,P=b-s,R=t-O;return d?mC(R,o-P):R}function x(b){var O=b-l,P=b-s;return l===void 0||O>=t||O<0||d&&P>=o}function m(){var b=Fs();if(x(b))return v(b);u=setTimeout(m,y(b))}function v(b){return u=void 0,f&&r?h(b):(r=i=void 0,a)}function g(){u!==void 0&&clearTimeout(u),s=0,r=l=i=u=void 0}function w(){return u===void 0?a:v(Fs())}function E(){var b=Fs(),O=x(b);if(r=arguments,i=this,l=b,O){if(u===void 0)return p(l);if(d)return u=setTimeout(m,t),h(l)}return u===void 0&&(u=setTimeout(m,t)),a}return E.cancel=g,E.flush=w,E}function el(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function yC(e){return!!e&&typeof e=="object"}function gC(e){return typeof e=="symbol"||yC(e)&&pC.call(e)==rC}function fd(e){if(typeof e=="number")return e;if(gC(e))return cd;if(el(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=el(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(iC,"");var n=aC.test(e);return n||sC.test(e)?uC(e.slice(2),n?2:8):oC.test(e)?cd:+e}var _C=vC;const wC=ga(_C),nt=({children:e,paramName:t,paramValue:n})=>{const i=n==null?`${t}`:typeof n=="boolean"?n?`${t}=1`:"":`${t}=${n}`;return i?_.jsxs("div",{className:T.paramTooltip,children:[e,_.jsx("span",{className:T.tooltipText,children:i})]}):_.jsx(_.Fragment,{children:e})},SC=({children:e,tooltip:t})=>t?_.jsxs("div",{className:T.buttonTooltip,children:[e,_.jsx("span",{className:T.tooltipText,children:t})]}):_.jsx(_.Fragment,{children:e}),Mt=({hint:e,url:t})=>{const n=`Learn more about ${e}`,r=()=>{window.open(t,"_blank","noopener,noreferrer")};return _.jsxs("button",{className:T.hintWithDoc,onClick:r,type:"button","aria-label":n,children:[_.jsx("span",{children:e}),_.jsx("span",{className:T.docLinkIcon,children:"ℹ"})]})},Xn=({hint:e})=>_.jsx("div",{className:T.plainHint,children:_.jsx("span",{children:e})}),zt={format:"https://docs.imgix.com/apis/rendering/format/fm",auto:"https://docs.imgix.com/apis/rendering/automatic",resize:"https://docs.imgix.com/apis/rendering/size/w",quality:"https://docs.imgix.com/apis/rendering/format/q",dpr:"https://docs.imgix.com/apis/rendering/pixel-density/dpr",lossless:"https://docs.imgix.com/apis/rendering/format/lossless",chroma:"https://docs.imgix.com/apis/rendering/format/chroma-subsampling",colorSpace:"https://docs.imgix.com/apis/rendering/format/color-space"},xC=({settings:e,onSettingsChange:t,onStartOptimization:n,onPreviewOptimization:r,ctx:i})=>{const o=k.useRef(null);k.useEffect(()=>(o.current=wC(async d=>{try{await i.updatePluginParameters({optimization_settings:JSON.stringify(d)}),console.log("Settings saved to plugin parameters:",d)}catch(f){console.error("Error saving settings:",f)}},500),()=>{o.current&&o.current.cancel()}),[i]),k.useEffect(()=>{o.current&&o.current(e)},[e]);const a=d=>f=>{const h=Number.parseFloat(f);if(!Number.isNaN(h)){let p=h;(d==="qualityLarge"||d==="qualityVeryLarge")&&(p=Math.min(Math.max(0,h),100)),d==="minimumReduction"&&(p=Math.min(Math.max(0,h),100)),(d==="largeAssetThreshold"||d==="veryLargeAssetThreshold")&&(p=Math.max(.1,h)),(d==="resizeDimensionLarge"||d==="resizeDimensionVeryLarge")&&(p=Math.max(1,h)),t({...e,[d]:p})}},u=d=>f=>{t({...e,[d]:f})},l=d=>(f,h)=>{f&&typeof f=="object"&&!Array.isArray(f)&&"value"in f&&t({...e,[d]:f.value})},s=[{label:"WebP",value:"webp"},{label:"AVIF",value:"avif"}],c=s.find(d=>d.value===e.targetFormat)||s[0];return _.jsxs(d_,{className:T.settingsForm,children:[_.jsxs(Br,{children:[_.jsx("h4",{children:"Size Thresholds"}),_.jsxs("div",{className:T.fieldRow,children:[_.jsxs("div",{className:T.field,children:[_.jsx(bn,{id:"largeAssetThreshold",name:"largeAssetThreshold",label:"Large Asset (MB)",value:e.largeAssetThreshold.toString(),onChange:a("largeAssetThreshold")}),_.jsx(Xn,{hint:`Assets above ${e.largeAssetThreshold}MB will be optimized`})]}),_.jsxs("div",{className:T.field,children:[_.jsx(bn,{id:"veryLargeAssetThreshold",name:"veryLargeAssetThreshold",label:"Very Large Asset (MB)",value:e.veryLargeAssetThreshold.toString(),onChange:a("veryLargeAssetThreshold")}),_.jsx(Xn,{hint:`Assets above ${e.veryLargeAssetThreshold}MB get stronger optimization`})]})]}),_.jsxs("div",{className:T.field,children:[_.jsx(bn,{id:"minimumReduction",name:"minimumReduction",label:"Minimum Size Reduction (%)",value:e.minimumReduction.toString(),onChange:a("minimumReduction")}),_.jsx(Xn,{hint:"Only replace if reduced by at least this percentage"})]})]}),_.jsxs(Br,{children:[_.jsx("h4",{children:"Basic Optimization"}),_.jsxs("div",{className:T.fieldRow,children:[_.jsxs("div",{className:T.field,children:[_.jsx(nt,{paramName:"fm",paramValue:e.preserveOriginalFormat?void 0:e.targetFormat,children:_.jsx(En,{id:"preserveOriginalFormat",name:"preserveOriginalFormat",label:"Preserve Original Format",value:e.preserveOriginalFormat,onChange:u("preserveOriginalFormat")})}),_.jsx(Mt,{hint:"Keep original image format (JPG, PNG, etc.)",url:zt.format})]}),_.jsxs("div",{className:T.field,children:[_.jsx(nt,{paramName:"auto",paramValue:"compress",children:_.jsx(En,{id:"useAutoCompress",name:"useAutoCompress",label:"Auto Compress",value:e.useAutoCompress,onChange:u("useAutoCompress")})}),_.jsx(Mt,{hint:"Use Imgix's auto compression features",url:zt.auto})]})]}),!e.preserveOriginalFormat&&_.jsxs("div",{className:T.field,children:[_.jsx(nt,{paramName:"fm",paramValue:e.targetFormat,children:_.jsx(g_,{id:"targetFormat",name:"targetFormat",label:"Target Format",value:c,onChange:l("targetFormat"),selectInputProps:{options:s}})}),_.jsx(Xn,{hint:"Format to convert images to"})]}),_.jsxs("p",{className:T.infoText,children:[_.jsx("strong",{children:"Format Settings:"})," ",e.preserveOriginalFormat?"Original image formats will be preserved while optimizing quality and file size.":`Images will be converted to ${e.targetFormat.toUpperCase()} format for better compression.`,e.useAutoCompress&&_.jsx("span",{children:" Auto compression is enabled, letting Imgix automatically optimize each image."})]}),_.jsx("div",{className:T.fieldRow,children:_.jsxs("div",{className:T.field,children:[_.jsx(nt,{paramName:"max-w",paramValue:e.resizeLargeImages?"value":void 0,children:_.jsx(En,{id:"resizeLargeImages",name:"resizeLargeImages",label:"Resize Large Images",value:e.resizeLargeImages,onChange:u("resizeLargeImages")})}),_.jsx(Mt,{hint:"Reduce image dimensions to save space",url:zt.resize})]})})]}),e.resizeLargeImages&&_.jsxs(Br,{children:[_.jsx("h4",{children:"Resize Dimensions"}),_.jsxs("div",{className:T.fieldRow,children:[_.jsxs("div",{className:T.field,children:[_.jsx(nt,{paramName:"max-w",paramValue:e.resizeDimensionLarge,children:_.jsx(bn,{id:"resizeDimensionLarge",name:"resizeDimensionLarge",label:"Large Image Max Width (px)",value:e.resizeDimensionLarge.toString(),onChange:a("resizeDimensionLarge")})}),_.jsx(Xn,{hint:"Max dimension for large images"})]}),_.jsxs("div",{className:T.field,children:[_.jsx(nt,{paramName:"max-w",paramValue:e.resizeDimensionVeryLarge,children:_.jsx(bn,{id:"resizeDimensionVeryLarge",name:"resizeDimensionVeryLarge",label:"Very Large Image Max Width (px)",value:e.resizeDimensionVeryLarge.toString(),onChange:a("resizeDimensionVeryLarge")})}),_.jsx(Xn,{hint:"Max dimension for very large images"})]})]})]}),_.jsxs(Br,{children:[_.jsx("h4",{children:"Compression Settings"}),!e.useLossless&&_.jsxs("div",{className:T.fieldRow,children:[_.jsxs("div",{className:T.field,children:[_.jsx(nt,{paramName:"q",paramValue:e.qualityLarge,children:_.jsx(bn,{id:"qualityLarge",name:"qualityLarge",label:"Large Image Quality",value:e.qualityLarge.toString(),onChange:a("qualityLarge")})}),_.jsx(Mt,{hint:"Quality for large images (0-100)",url:zt.quality})]}),_.jsxs("div",{className:T.field,children:[_.jsx(nt,{paramName:"q",paramValue:e.qualityVeryLarge,children:_.jsx(bn,{id:"qualityVeryLarge",name:"qualityVeryLarge",label:"Very Large Image Quality",value:e.qualityVeryLarge.toString(),onChange:a("qualityVeryLarge")})}),_.jsx(Mt,{hint:"Quality for very large images (0-100)",url:zt.quality})]})]}),e.useLossless&&_.jsxs("p",{className:T.infoText,style:{marginBottom:0},children:[_.jsx("strong",{children:"Lossless Mode:"})," Standard quality settings are disabled when using Lossless Mode."]})]}),_.jsxs(Br,{className:T.advancedOptionsGroup,children:[_.jsx("h4",{children:"Advanced Options"}),_.jsxs("div",{className:T.optionsGrid,children:[_.jsxs("div",{className:T.optionItem,children:[_.jsx(nt,{paramName:"lossless",paramValue:e.useLossless?1:void 0,children:_.jsx(En,{id:"useLossless",name:"useLossless",label:"Use Lossless Compression",value:e.useLossless,onChange:u("useLossless")})}),_.jsx(Mt,{hint:"Use lossless compression when possible",url:zt.lossless})]}),_.jsxs("div",{className:T.optionItem,children:[_.jsx(nt,{paramName:"dpr",paramValue:e.useDpr?2:void 0,children:_.jsx(En,{id:"useDpr",name:"useDpr",label:"Use DPR Optimization",value:e.useDpr,onChange:u("useDpr")})}),_.jsx(Mt,{hint:"Optimize for high-resolution displays (Retina)",url:zt.dpr})]}),_.jsxs("div",{className:T.optionItem,children:[_.jsx(nt,{paramName:"chromasub",paramValue:e.useChromaSubsampling?444:void 0,children:_.jsx(En,{id:"useChromaSubsampling",name:"useChromaSubsampling",label:"Enhanced Chroma Sampling",value:e.useChromaSubsampling,onChange:u("useChromaSubsampling")})}),_.jsx(Mt,{hint:"Use higher quality chroma subsampling (444) for JPEGs",url:zt.chroma})]}),_.jsxs("div",{className:T.optionItem,children:[_.jsx(nt,{paramName:"cs",paramValue:e.preserveColorProfile?"origin":void 0,children:_.jsx(En,{id:"preserveColorProfile",name:"preserveColorProfile",label:"Preserve Color Profiles",value:e.preserveColorProfile,onChange:u("preserveColorProfile")})}),_.jsx(Mt,{hint:"Maintain accurate colors from original image",url:zt.colorSpace})]})]})]}),_.jsx("div",{className:T.formActionContainer,children:_.jsxs("div",{className:T.buttonGroup,children:[_.jsx(un,{buttonType:"muted",buttonSize:"l",onClick:()=>t({...Lm}),children:"Restore Defaults"}),_.jsx(SC,{tooltip:"Calculate potential improvements with current settings without replacing any assets",children:_.jsx(un,{buttonType:"muted",buttonSize:"l",onClick:r,children:"Preview Optimization"})}),_.jsx(un,{buttonType:"primary",buttonSize:"l",onClick:n,fullWidth:!0,children:"Start Optimization"})]})})]})};function Ct(e){return e<1024?`${e} bytes`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}const EC=({log:e})=>{if(e.length===0)return null;const t=k.useRef(null);return k.useEffect(()=>{if(t.current){const{scrollHeight:n,clientHeight:r}=t.current;t.current.scrollTop=n-r}},[]),_.jsxs("div",{className:T.logWrapper,children:[_.jsxs("div",{className:T.logHeader,children:[_.jsx("h3",{children:"Activity Log"}),_.jsxs("span",{children:[e.length," entries"]})]}),_.jsx("div",{className:T.logsContainer,ref:t,children:_.jsx("div",{className:T.logs,children:e.map((n,r)=>_.jsxs("div",{className:T.logEntry,children:[_.jsx("span",{children:n.text}),n.originalSize&&n.optimizedSize&&_.jsxs("span",{className:T.sizeComparison,children:[_.jsx("span",{className:T.originalSize,children:Ct(n.originalSize)}),_.jsx("span",{className:T.sizeArrow,children:"→"}),_.jsx("span",{className:T.optimizedSize,children:Ct(n.optimizedSize)}),_.jsxs("span",{className:T.sizeSavings,children:["(-",n.savingsPercentage,"%)"]})]})]},`log-${r}-${n.text.substring(0,10)}`))})})]})},bC=({current:e,total:t,isVisible:n,assetSizeCategory:r="large",currentAsset:i,isPreview:o})=>{var u;if(!n)return null;const a=t>0?Math.min(100,Math.max(0,Math.round(e/t*100))):0;return _.jsxs("div",{className:T.optimizingContainer,children:[o&&_.jsxs("div",{className:T.previewInfoBox,children:[_.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[_.jsx("title",{children:"Information"}),_.jsx("path",{d:"M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z",fill:"currentColor"})]}),_.jsxs("p",{children:[_.jsx("strong",{children:"Preview Mode"})," - This will calculate potential savings without modifying any assets."]})]}),i&&_.jsxs("div",{className:T.currentAssetPreview,children:[_.jsx("div",{className:T.assetPreviewImage,children:_.jsx("img",{src:`${i.url}?w=120&h=80&fit=crop&auto=format`,alt:i.basename})}),_.jsxs("div",{className:T.assetPreviewInfo,children:[_.jsx("div",{className:T.assetPreviewTitle,children:i.basename}),_.jsxs("div",{className:T.assetPreviewMeta,children:[(u=i.path.split(".").pop())==null?void 0:u.toUpperCase()," • ",(i.size/(1024*1024)).toFixed(2)," MB • ",i.width,"×",i.height,"px"]})]})]}),_.jsxs("div",{className:T.statusText,children:[_.jsx(_S,{size:16})," ",_.jsxs("span",{children:["Processing ",r," assets: ",e," of ",t]})]}),_.jsx("div",{className:T.percentageText,children:_.jsxs("span",{children:[a,"%"]})}),_.jsx("div",{className:T.progressBar,children:_.jsx("div",{className:T.progressBarFill,style:{width:`${a}%`}})})]})},OC=({result:e,setSelectedCategory:t,resetState:n,largeAssetThreshold:r,isPreview:i})=>{if(!e)return null;const{optimized:o,skipped:a,failed:u,totalAssets:l,optimizedAssets:s}=e,c=s.reduce((y,x)=>y+(x.originalSize-x.optimizedSize),0),d=s.length>0?Math.round(s.reduce((y,x)=>y+(x.originalSize-x.optimizedSize)/x.originalSize*100,0)/s.length):0,f=()=>c<1024?`${c} bytes`:c<1024*1024?`${(c/1024).toFixed(1)} KB`:`${(c/(1024*1024)).toFixed(1)} MB`,h=(y,x)=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),t(x))},p=()=>{n?n():t(null)};return _.jsxs("div",{className:T.resultsContainer,children:[_.jsx("h2",{className:T.optimizationSummaryTitle,children:i?"Preview Summary":"Optimization Summary"}),i&&_.jsxs("div",{className:T.previewInfoBox,children:[_.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[_.jsx("title",{children:"Information"}),_.jsx("path",{d:"M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z",fill:"currentColor"})]}),_.jsxs("p",{children:[_.jsx("strong",{children:"Preview Mode"})," - This is an estimation of potential savings. No assets have been modified."]})]}),l===0&&r&&_.jsx("div",{className:`${T.infoBox}`,style:{margin:"0 0 16px 0",padding:"16px",backgroundColor:"var(--light-bg-color)",borderRadius:"4px"},children:_.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[_.jsx("div",{style:{marginRight:"8px",color:"var(--accent-color)",display:"flex"},children:_.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[_.jsx("title",{children:"Information"}),_.jsx("path",{d:"M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z",fill:"currentColor"})]})}),_.jsxs("p",{style:{margin:0,color:"var(--base-body-color)"},children:["No images in your project are larger than ",_.jsxs("strong",{children:[r,"MB"]}),". Try lowering the minimum size threshold to optimize more assets."]})]})}),_.jsxs("div",{className:T.statsCardGrid,children:[_.jsxs("div",{className:T.statsCard,children:[_.jsx("h3",{className:T.statsCardTitle,children:"Total Assets"}),_.jsx("div",{className:T.statsCardValue,children:l}),_.jsx("div",{className:T.statsCardLabel,children:l>0?"Total":"No assets found"})]}),_.jsxs("div",{className:`${T.statsCard} ${o>0?T.clickableStatsCard:""}`,onClick:()=>o>0?t("optimized"):null,onKeyDown:y=>o>0?h(y,"optimized"):null,role:o>0?"button":void 0,tabIndex:o>0?0:void 0,children:[_.jsx("h3",{className:T.statsCardTitle,children:"Optimized"}),_.jsx("div",{className:`${T.statsCardValue} ${T.optimizedValue}`,children:o}),_.jsx("div",{className:T.statsCardLabel,children:o>0?"Click to view":"No optimized assets"})]}),_.jsxs("div",{className:`${T.statsCard} ${a>0?T.clickableStatsCard:""}`,onClick:()=>a>0?t("skipped"):null,onKeyDown:y=>a>0?h(y,"skipped"):null,role:a>0?"button":void 0,tabIndex:a>0?0:void 0,children:[_.jsx("h3",{className:T.statsCardTitle,children:"Skipped"}),_.jsx("div",{className:`${T.statsCardValue} ${T.skippedValue}`,children:a}),_.jsx("div",{className:T.statsCardLabel,children:a>0?"Click to view":"No skipped assets"})]}),_.jsxs("div",{className:`${T.statsCard} ${u>0?T.clickableStatsCard:""}`,onClick:()=>u>0?t("failed"):null,onKeyDown:y=>u>0?h(y,"failed"):null,role:u>0?"button":void 0,tabIndex:u>0?0:void 0,children:[_.jsx("h3",{className:T.statsCardTitle,children:"Failed"}),_.jsx("div",{className:`${T.statsCardValue} ${T.failedValue}`,children:u}),_.jsx("div",{className:T.statsCardLabel,children:u>0?"Click to view":"No failed assets"})]})]}),_.jsx("div",{className:T.savingsSummary,children:_.jsxs("div",{className:T.savingsCard,children:[_.jsxs("div",{className:T.savingsRow,children:[_.jsx("div",{className:T.savingsLabel,children:"Total Storage Saved"}),_.jsx("div",{className:T.savingsValue,children:f()})]}),_.jsxs("div",{className:T.savingsRow,children:[_.jsx("div",{className:T.savingsLabel,children:"Average Optimization per Asset"}),_.jsxs("div",{className:T.savingsValue,children:[d,"%"]})]})]})}),_.jsx("div",{className:T.actionsContainer,children:_.jsx(un,{buttonType:"primary",buttonSize:"l",onClick:p,fullWidth:!0,children:i?"New Preview":"New Optimization"})})]})},CC=({assets:e,category:t,onClose:n,ctx:r})=>{const i=()=>{switch(t){case"optimized":return T.badgeGreen;case"failed":return T.badgeRed;case"skipped":return T.badgeGray;default:return T.badgeBlue}};return _.jsxs("div",{className:T.assetListCard,children:[_.jsxs("div",{className:T.assetListHeader,children:[_.jsxs("div",{className:T.assetListHeaderTitle,children:[_.jsx("div",{className:`${T.categoryBadge} ${i()}`,children:e.length}),_.jsxs("h3",{children:[t.charAt(0).toUpperCase()+t.slice(1)," Assets"]})]}),n&&_.jsx(un,{buttonType:"negative",buttonSize:"xs",onClick:n,children:"Close"})]}),e.length===0?_.jsxs("div",{className:T.noAssetsMessage,children:["No ",t," assets to display."]}):_.jsx("ul",{className:T.assetList,children:e.map(o=>{const a={id:o.id,path:o.path,url:o.url,size:"size"in o?o.size:"originalSize"in o?o.originalSize:0,basename:"basename"in o?o.basename:"",originalSize:"originalSize"in o?o.originalSize:void 0,optimizedSize:"optimizedSize"in o?o.optimizedSize:void 0},u=a.originalSize&&a.optimizedSize?Math.round((a.originalSize-a.optimizedSize)/a.originalSize*100):null,l=a.path.split(".").pop()||"";return _.jsx("li",{className:T.assetListItem,children:_.jsxs("div",{className:T.assetItemContent,children:[_.jsx("div",{className:T.assetIcon,children:_.jsx("div",{className:T.fileIconWrapper,children:l.toUpperCase()})}),_.jsxs("div",{className:T.assetDetails,children:[_.jsx("p",{className:T.assetPath,children:a.path}),t==="optimized"&&a.originalSize&&a.optimizedSize&&_.jsxs("div",{className:T.optimizationStats,children:[_.jsxs("div",{className:T.sizeInfo,children:[_.jsxs("div",{className:T.sizeBefore,children:[_.jsx("span",{className:T.sizeLabel,children:"Original:"}),_.jsx("span",{className:T.sizeValue,children:Ct(a.originalSize)})]}),_.jsx("div",{className:T.sizeArrow,children:"→"}),_.jsxs("div",{className:T.sizeAfter,children:[_.jsx("span",{className:T.sizeLabel,children:"Optimized:"}),_.jsx("span",{className:T.sizeValue,children:Ct(a.optimizedSize)})]})]}),u&&_.jsxs("div",{className:`${T.savingsBadge} ${T.badgeGreen}`,children:[u,"% savings"]})]})]}),_.jsxs("div",{className:T.assetActions,children:[_.jsx(un,{buttonSize:"xxs",buttonType:"primary",onClick:()=>window.open(a.url,"_blank"),children:"View Asset"}),_.jsx(un,{buttonSize:"xxs",buttonType:"muted",style:{marginLeft:"8px"},onClick:()=>window.open(`https://${r.site.attributes.internal_domain}/environments/${r.environment}/media/assets/${a.id}`,"_blank"),children:"Media Area"})]})]})},a.id)})})]})};async function PC(e,t,n,r=60,i=2e3){const o="https://site-api.datocms.com",a={Authorization:`Bearer ${t}`,"Content-Type":"application/json",Accept:"application/json","X-Api-Version":"3","X-Environment":n};let u=0;for(;u<r;){u++;try{console.log(`Checking job status (attempt ${u}/${r}): ${e}`);const l=await fetch(`${o}/job-results/${e}`,{method:"GET",headers:a});if(!l.ok){const c=await l.text();throw new Error(`API error: ${l.status} ${c}`)}const s=await l.json();if(s.data.attributes&&s.data.attributes.status===200)return console.log(`Job completed successfully: ${e}`),s;console.log(`Job in progress (${u}/${r}), waiting ${i}ms...`),await new Promise(c=>setTimeout(c,i))}catch(l){console.error(`Error checking job status: ${l instanceof Error?l.message:String(l)}`),await new Promise(s=>setTimeout(s,i))}}throw new Error(`Job timed out after ${r} attempts: ${e}`)}async function TC(e,t,n,r,i){var o,a;if(console.log(`Replacing DatoCMS asset ID ${e} with image from URL: ${t}`),!e||!n)throw new Error("Missing required parameters: assetId and apiToken are required");try{const u="https://site-api.datocms.com",l={Authorization:`Bearer ${n}`,"Content-Type":"application/json",Accept:"application/json","X-Api-Version":"3","X-Environment":r},s=await fetch(`${u}/upload-requests`,{method:"POST",headers:l,body:JSON.stringify({data:{type:"upload_request",attributes:{filename:i||"optimized-image.jpg"}}})});if(!s.ok){const E=await s.text();throw new Error(`Failed to create upload request: ${s.status} ${E}`)}const c=await s.json(),{id:d,attributes:{url:f,request_headers:h}}=c.data,p=await fetch(t);if(!p.ok)throw new Error(`Failed to fetch image from URL: ${p.status} ${p.statusText}`);const x=await(await p.blob()).arrayBuffer(),m=new Uint8Array(x),v=await fetch(f,{method:"PUT",headers:{...h,"Content-Length":m.length.toString()},body:m});if(!v.ok)throw new Error(`Failed to upload file to S3: ${v.status} ${v.statusText}`);const g=await fetch(`${u}/uploads/${e}`,{method:"PUT",headers:l,body:JSON.stringify({data:{id:e,type:"upload",attributes:{path:d}}})});if(!g.ok){const E=await g.text();throw new Error(`Failed to update asset metadata: ${g.status} ${E}`)}const w=await g.json();if(w.data&&w.data.type==="job"){const E=w.data.id;console.log(`Asset update initiated as job ${E}, waiting for completion...`);const b=await PC(E,n,r);if(((o=b.data.attributes)==null?void 0:o.status)!==200)throw new Error(`Job completed with error status: ${(a=b.data.attributes)==null?void 0:a.status}`);return b.data.attributes.payload}return console.log("Asset replaced successfully:",w),w}catch(u){throw console.error("Error replacing asset:",u),u}}function dd(e){var t,n,r,i,o,a;return{id:e.id,is_image:e.is_image||!1,size:e.size||0,url:e.url||"",path:e.path||"",basename:e.basename||"",width:e.width||void 0,height:e.height||void 0,alt:((n=(t=e.default_field_metadata)==null?void 0:t.en)==null?void 0:n.alt)||void 0,title:((i=(r=e.default_field_metadata)==null?void 0:r.en)==null?void 0:i.title)||void 0,customData:((a=(o=e.default_field_metadata)==null?void 0:o.en)==null?void 0:a.custom_data)||{},tags:e.tags||[]}}function On(e){return{id:e.id,path:e.path,url:e.url}}function pd(e,t,n){return{id:e.id,path:e.path,url:e.url,originalSize:t,optimizedSize:n}}const kC=({ctx:e})=>{const[t,n]=k.useState(!1),[r,i]=k.useState(!1),[o,a]=k.useState(!1),[u,l]=k.useState(0),[s,c]=k.useState(0),[d,f]=k.useState(null),[h,p]=k.useState([]),[y,x]=k.useState({...Lm}),[m,v]=k.useState(void 0),[g,w]=k.useState(null);k.useEffect(()=>{(async()=>{try{const z=e.plugin.attributes.parameters;if(z&&typeof z.optimization_settings=="string")try{const F=JSON.parse(z.optimization_settings);x(F),console.log("Loaded settings from plugin parameters:",F)}catch(F){console.error("Error parsing saved settings:",F)}else console.log("No saved settings found, using defaults")}catch(z){console.error("Error accessing plugin parameters:",z)}})()},[e]),k.useEffect(()=>{const I=z=>{if(t){const F="Optimization is in progress. Leaving the page now may cause you to lose assets! Are you sure you want to leave?";return z.preventDefault(),z.returnValue=F,F}};return window.addEventListener("beforeunload",I),()=>{window.removeEventListener("beforeunload",I)}},[t]);const E=I=>{p(z=>[{text:`[${new Date().toISOString()}] ${I}`},...z])},b=(I,z,F)=>{const U=z-F,Y=Math.round(U/z*100);p(K=>[{text:`[${new Date().toISOString()}] Successfully optimized asset: ${I} `,originalSize:z,optimizedSize:F,savingsPercentage:Y},...K])},O=async()=>{try{R(),i(!0),a(!0),E("Starting asset optimization preview...");const I=ud({apiToken:e.currentUserAccessToken??"",environment:e.environment});E("Fetching assets from DatoCMS for preview...");const z=y.largeAssetThreshold*1024*1024,F=[];let U=0;for await(const q of I.uploads.listPagedIterator({filter:{fields:{type:{eq:"image"},size:{gte:z}}}}))U++,F.push(dd(q));E(`Found ${U} assets larger than ${y.largeAssetThreshold}MB.`),E(`Found ${F.length} optimizable images.`),c(F.length);let Y=0,K=0,Q=0;const oe=[],j=[],A=[];let D=0,Z=0;for(let q=0;q<F.length;q++){const W=F[q];l(q+1),v(W);try{E(`Processing asset: ${W.path} (${Ct(W.size)})`),D+=W.size;const te=ld(W,y);if(!te){E(`Skipping asset ${W.path}: No suitable optimization parameters found.`),j.push(On(W)),K++;continue}const X=`${W.url}${te}`;E(`Optimizing with parameters: ${te}`);const ne=await fetch(X);if(!ne.ok)throw new Error(`Failed to fetch optimized image: ${ne.statusText}`);const ge=await ne.blob();E(`Optimized image size: ${Ct(ge.size)}`);const Fe=W.size*(1-y.minimumReduction/100);if(ge.size>Fe){E(`Optimization not significant enough for ${W.path}. Skipping.`),j.push(On(W)),K++;continue}oe.push(pd(W,W.size,ge.size)),Z+=ge.size,Y++,b(W.path,W.size,ge.size),E(`Successfully optimized asset ${W.path}`)}catch(te){E(`Error optimizing asset ${W.path}: ${te instanceof Error?te.message:String(te)}`),A.push(On(W)),Q++}}f({optimized:Y,skipped:K,failed:Q,totalAssets:U,optimizedAssets:oe,skippedAssets:j,failedAssets:A}),E(`Optimization complete. Optimized: ${Y}, Skipped: ${K}, Failed: ${Q}`),Y>0&&E(`Total size savings: ${Ct(D-Z)} (${Math.round((D-Z)/D*100)}%)`),E("Asset optimization preview completed!"),e.notice("Asset optimization preview completed!")}catch(I){E(`Error during optimization preview: ${I instanceof Error?I.message:String(I)}`),e.alert(`Error during optimization preview: ${I instanceof Error?I.message:String(I)}`),i(!1)}finally{a(!1)}},P=async()=>{try{if(await e.openConfirm({title:"Confirm Asset Optimization",content:"WARNING: This is a destructive action that will permanently replace all assets that fall into the optimization thresholds. This action is non-reversible and original assets cannot be recovered once replaced. Are you sure you want to proceed?",choices:[{label:"Proceed to Final Confirmation",value:"confirm",intent:"positive"}],cancel:{label:"Cancel",value:!1}})!=="confirm"||await e.openConfirm({title:"Final Confirmation Required",content:`ARE YOU ABSOLUTELY SURE? This will immediately replace your original assets with optimized versions. Your original assets will be PERMANENTLY DELETED and CANNOT be recovered. This may affect the visual quality of your images if not configured correctly.
63
-
64
- We STRONGLY RECOMMEND testing this first in a sandbox environment, so you can fine-tune the thresholds and optimization settings to your liking, make sure everything works with your project, and then promote the sandbox environment once you are satisfied with the results.`,choices:[{label:"Yes, Replace My Assets",value:"confirm",intent:"positive"}],cancel:{label:"No, Cancel Operation",value:!1}})!=="confirm")return;R(),n(!0),a(!0),E("Starting asset optimization process...");const F=ud({apiToken:e.currentUserAccessToken??"",environment:e.environment});E("Fetching assets from DatoCMS...");const U=y.largeAssetThreshold*1024*1024,Y=[];let K=0;for await(const te of F.uploads.listPagedIterator({filter:{fields:{type:{eq:"image"},size:{gte:U}}}}))K++,Y.push(dd(te));E(`Found ${K} assets larger than ${y.largeAssetThreshold}MB.`),E(`Found ${Y.length} optimizable images.`),c(Y.length);let Q=0,oe=0,j=0;const A=[],D=[],Z=[];let q=0,W=0;for(let te=0;te<Y.length;te++){const X=Y[te];l(te+1),v(X);try{E(`Processing asset: ${X.path} (${Ct(X.size)})`),q+=X.size;const ne=ld(X,y);if(!ne){E(`Skipping asset ${X.path}: No suitable optimization parameters found.`),D.push(On(X)),oe++;continue}const ge=`${X.url}${ne}`;E(`Optimizing with parameters: ${ne}`);const Fe=await fetch(ge);if(!Fe.ok)throw new Error(`Failed to fetch optimized image: ${Fe.statusText}`);const wt=await Fe.blob();E(`Optimized image size: ${Ct(wt.size)}`);const Za=X.size*(1-y.minimumReduction/100);if(wt.size>Za){E(`Optimization not significant enough for ${X.path}. Skipping.`),D.push(On(X)),oe++;continue}E(`Replacing asset ${X.path}...`);try{const Nt=e.currentUserAccessToken;if(!Nt)throw new Error("Failed to get API token");const Mi=`${X.url}${ne}`;await TC(X.id,Mi,Nt,e.environment,X.basename),A.push(pd(X,X.size,wt.size)),W+=wt.size,Q++,b(X.path,X.size,wt.size),E(`Successfully replaced asset ${X.path}`)}catch(Nt){E(`Error replacing asset: ${Nt instanceof Error?Nt.message:String(Nt)}`),Z.push(On(X)),j++}}catch(ne){E(`Error optimizing asset ${X.path}: ${ne instanceof Error?ne.message:String(ne)}`),Z.push(On(X)),j++}}f({optimized:Q,skipped:oe,failed:j,totalAssets:K,optimizedAssets:A,skippedAssets:D,failedAssets:Z}),E(`Optimization complete. Optimized: ${Q}, Skipped: ${oe}, Failed: ${j}`),Q>0&&E(`Total size savings: ${Ct(q-W)} (${Math.round((q-W)/q*100)}%)`),E("Asset optimization process completed!"),e.notice("Asset optimization process completed!")}catch(I){E(`Error during optimization process: ${I instanceof Error?I.message:String(I)}`),e.alert(`Error during optimization process: ${I instanceof Error?I.message:String(I)}`)}finally{n(!1),a(!1)}},R=()=>{n(!1),i(!1),a(!1),f(null),p([]),l(0),c(0),v(void 0)};return _.jsx(Td,{ctx:e,children:_.jsxs("div",{className:T.container,children:[_.jsx("h1",{className:T.title,children:"Asset Optimization"}),!o&&!d&&_.jsx("div",{className:T.settingsContainer,children:_.jsx(xC,{settings:y,onSettingsChange:x,onStartOptimization:P,onPreviewOptimization:O,ctx:e})}),_.jsx(bC,{current:u,total:s,isVisible:o,assetSizeCategory:y.veryLargeAssetThreshold>0?"large and very large":"large",currentAsset:m,isPreview:r}),d&&_.jsxs(_.Fragment,{children:[_.jsx(OC,{result:d,setSelectedCategory:w,resetState:R,largeAssetThreshold:y.largeAssetThreshold,isPreview:r}),g&&_.jsx(CC,{assets:g==="optimized"?d.optimizedAssets:g==="skipped"?d.skippedAssets:d.failedAssets,category:g,onClose:()=>w(null),ctx:e})]}),_.jsx(EC,{log:h})]})})};var Rm,hd=jh;Rm=hd.createRoot,hd.hydrateRoot;const jC=document.getElementById("root"),IC=Rm(jC);function md(e){IC.render(_.jsx(k.StrictMode,{children:e}))}Vv({renderConfigScreen(e){return md(_.jsx(RS,{ctx:e}))},settingsAreaSidebarItemGroups(e){return e.currentRole.attributes.can_edit_schema?[{label:"Asset Management",items:[{label:"Optimize assets",icon:"images",pointsTo:{pageId:"optimize-assets"}}]}]:[]},renderPage(e,t){switch(e){case"optimize-assets":return md(_.jsx(kC,{ctx:t}))}}});