@pipedream/connect-react 1.0.0-preview.1 → 1.0.0-preview.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/dist/connect-react.es.js +0 -14306
- package/dist/connect-react.umd.d.ts +0 -1122
- package/dist/connect-react.umd.js +0 -33
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
(function(L,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],M):(L=typeof globalThis<"u"?globalThis:L||self,M(L["connect-react"]={},L.jsxRuntime,L.React,L.reactDom))})(this,function(L,M,B,mn){"use strict";var hc=L=>{throw TypeError(L)};var qo=(L,M,B)=>M.has(L)||hc("Cannot "+B);var x=(L,M,B)=>(qo(L,M,"read from private field"),B?B.call(L):M.get(L)),te=(L,M,B)=>M.has(L)?hc("Cannot add the same private member more than once"):M instanceof WeakSet?M.add(L):M.set(L,B),z=(L,M,B,mn)=>(qo(L,M,"write to private field"),mn?mn.call(L,B):M.set(L,B),B),ce=(L,M,B)=>(qo(L,M,"access private method"),B);var bi=(L,M,B,mn)=>({set _(yi){z(L,M,yi,B)},get _(){return x(L,M,mn)}});var rn,Lt,Tn,Jl,Gn,Xt,On,_l,on,Ul,Bn,Rn,ot,De,ur,an,dt,Mt,Ql,xt,$l,At,He,sn,St,Qt,ql,Ke,lr,Kl,Pe,zt,Ht,Vn,Mn,Wt,Nn,Dn,ec,Je,le,cr,We,un,Ln,Zt,wt,dr,Xn,zn,ln,cn,Yt,Hn,Ie,mr,Ko,ea,ta,na,ra,ia,oa,gc,tc;function yi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const _=yi(B);typeof document>"u"&&(globalThis.document={createElement:()=>{}});function aa({prop:e}){return M.jsx("p",{className:`pd-alert-${e.alertType}`,children:e.content})}var bn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var br={exports:{}};br.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",u="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",p="[object Error]",f="[object Function]",b="[object GeneratorFunction]",g="[object Map]",I="[object Number]",v="[object Null]",P="[object Object]",w="[object Promise]",E="[object Proxy]",A="[object RegExp]",C="[object Set]",F="[object String]",G="[object Symbol]",R="[object Undefined]",W="[object WeakMap]",D="[object ArrayBuffer]",O="[object DataView]",ne="[object Float32Array]",ae="[object Float64Array]",H="[object Int8Array]",ee="[object Int16Array]",de="[object Int32Array]",be="[object Uint8Array]",Z="[object Uint8ClampedArray]",m="[object Uint16Array]",j="[object Uint32Array]",Q=/[\\^$.*+?()[\]{}|]/g,y=/^\[object .+?Constructor\]$/,pe=/^(?:0|[1-9]\d*)$/,re={};re[ne]=re[ae]=re[H]=re[ee]=re[de]=re[be]=re[Z]=re[m]=re[j]=!0,re[s]=re[u]=re[D]=re[c]=re[O]=re[d]=re[p]=re[f]=re[g]=re[I]=re[P]=re[A]=re[C]=re[F]=re[W]=!1;var fe=typeof bn=="object"&&bn&&bn.Object===Object&&bn,Ge=typeof self=="object"&&self&&self.Object===Object&&self,Ce=fe||Ge||Function("return this")(),Le=t&&!t.nodeType&&t,et=Le&&!0&&e&&!e.nodeType&&e,at=et&&et.exports===Le,Y=at&&fe.process,Et=function(){try{return Y&&Y.binding&&Y.binding("util")}catch{}}(),st=Et&&Et.isTypedArray;function Ot(h,S){for(var T=-1,X=h==null?0:h.length,Se=0,oe=[];++T<X;){var Fe=h[T];S(Fe,T,h)&&(oe[Se++]=Fe)}return oe}function si(h,S){for(var T=-1,X=S.length,Se=h.length;++T<X;)h[Se+T]=S[T];return h}function ui(h,S){for(var T=-1,X=h==null?0:h.length;++T<X;)if(S(h[T],T,h))return!0;return!1}function Xo(h,S){for(var T=-1,X=Array(h);++T<h;)X[T]=S(T);return X}function li(h){return function(S){return h(S)}}function ci(h,S){return h.has(S)}function zo(h,S){return h==null?void 0:h[S]}function Ho(h){var S=-1,T=Array(h.size);return h.forEach(function(X,Se){T[++S]=[Se,X]}),T}function Wo(h,S){return function(T){return h(S(T))}}function Zo(h){var S=-1,T=Array(h.size);return h.forEach(function(X){T[++S]=X}),T}var Yo=Array.prototype,k=Function.prototype,N=Object.prototype,K=Ce["__core-js_shared__"],se=k.toString,ue=N.hasOwnProperty,_e=function(){var h=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),Pt=N.toString,ft=RegExp("^"+se.call(ue).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jt=at?Ce.Buffer:void 0,Ft=Ce.Symbol,Xe=Ce.Uint8Array,Bt=N.propertyIsEnumerable,pt=Yo.splice,dn=Ft?Ft.toStringTag:void 0,nc=Object.getOwnPropertySymbols,w0=jt?jt.isBuffer:void 0,E0=Wo(Object.keys,Object),jo=Wn(Ce,"DataView"),fr=Wn(Ce,"Map"),Jo=Wn(Ce,"Promise"),_o=Wn(Ce,"Set"),Uo=Wn(Ce,"WeakMap"),pr=Wn(Object,"create"),P0=hn(jo),F0=hn(fr),k0=hn(Jo),T0=hn(_o),G0=hn(Uo),rc=Ft?Ft.prototype:void 0,Qo=rc?rc.valueOf:void 0;function fn(h){var S=-1,T=h==null?0:h.length;for(this.clear();++S<T;){var X=h[S];this.set(X[0],X[1])}}function O0(){this.__data__=pr?pr(null):{},this.size=0}function B0(h){var S=this.has(h)&&delete this.__data__[h];return this.size-=S?1:0,S}function R0(h){var S=this.__data__;if(pr){var T=S[h];return T===r?void 0:T}return ue.call(S,h)?S[h]:void 0}function V0(h){var S=this.__data__;return pr?S[h]!==void 0:ue.call(S,h)}function M0(h,S){var T=this.__data__;return this.size+=this.has(h)?0:1,T[h]=pr&&S===void 0?r:S,this}fn.prototype.clear=O0,fn.prototype.delete=B0,fn.prototype.get=R0,fn.prototype.has=V0,fn.prototype.set=M0;function Rt(h){var S=-1,T=h==null?0:h.length;for(this.clear();++S<T;){var X=h[S];this.set(X[0],X[1])}}function N0(){this.__data__=[],this.size=0}function D0(h){var S=this.__data__,T=fi(S,h);if(T<0)return!1;var X=S.length-1;return T==X?S.pop():pt.call(S,T,1),--this.size,!0}function L0(h){var S=this.__data__,T=fi(S,h);return T<0?void 0:S[T][1]}function X0(h){return fi(this.__data__,h)>-1}function z0(h,S){var T=this.__data__,X=fi(T,h);return X<0?(++this.size,T.push([h,S])):T[X][1]=S,this}Rt.prototype.clear=N0,Rt.prototype.delete=D0,Rt.prototype.get=L0,Rt.prototype.has=X0,Rt.prototype.set=z0;function pn(h){var S=-1,T=h==null?0:h.length;for(this.clear();++S<T;){var X=h[S];this.set(X[0],X[1])}}function H0(){this.size=0,this.__data__={hash:new fn,map:new(fr||Rt),string:new fn}}function W0(h){var S=pi(this,h).delete(h);return this.size-=S?1:0,S}function Z0(h){return pi(this,h).get(h)}function Y0(h){return pi(this,h).has(h)}function j0(h,S){var T=pi(this,h),X=T.size;return T.set(h,S),this.size+=T.size==X?0:1,this}pn.prototype.clear=H0,pn.prototype.delete=W0,pn.prototype.get=Z0,pn.prototype.has=Y0,pn.prototype.set=j0;function di(h){var S=-1,T=h==null?0:h.length;for(this.__data__=new pn;++S<T;)this.add(h[S])}function J0(h){return this.__data__.set(h,r),this}function _0(h){return this.__data__.has(h)}di.prototype.add=di.prototype.push=J0,di.prototype.has=_0;function Jt(h){var S=this.__data__=new Rt(h);this.size=S.size}function U0(){this.__data__=new Rt,this.size=0}function Q0(h){var S=this.__data__,T=S.delete(h);return this.size=S.size,T}function $0(h){return this.__data__.get(h)}function q0(h){return this.__data__.has(h)}function K0(h,S){var T=this.__data__;if(T instanceof Rt){var X=T.__data__;if(!fr||X.length<n-1)return X.push([h,S]),this.size=++T.size,this;T=this.__data__=new pn(X)}return T.set(h,S),this.size=T.size,this}Jt.prototype.clear=U0,Jt.prototype.delete=Q0,Jt.prototype.get=$0,Jt.prototype.has=q0,Jt.prototype.set=K0;function ev(h,S){var T=hi(h),X=!T&&gv(h),Se=!T&&!X&&$o(h),oe=!T&&!X&&!Se&&fc(h),Fe=T||X||Se||oe,Oe=Fe?Xo(h.length,String):[],Ve=Oe.length;for(var we in h)ue.call(h,we)&&!(Fe&&(we=="length"||Se&&(we=="offset"||we=="parent")||oe&&(we=="buffer"||we=="byteLength"||we=="byteOffset")||cv(we,Ve)))&&Oe.push(we);return Oe}function fi(h,S){for(var T=h.length;T--;)if(uc(h[T][0],S))return T;return-1}function tv(h,S,T){var X=S(h);return hi(h)?X:si(X,T(h))}function hr(h){return h==null?h===void 0?R:v:dn&&dn in Object(h)?uv(h):hv(h)}function ic(h){return gr(h)&&hr(h)==s}function oc(h,S,T,X,Se){return h===S?!0:h==null||S==null||!gr(h)&&!gr(S)?h!==h&&S!==S:nv(h,S,T,X,oc,Se)}function nv(h,S,T,X,Se,oe){var Fe=hi(h),Oe=hi(S),Ve=Fe?u:_t(h),we=Oe?u:_t(S);Ve=Ve==s?P:Ve,we=we==s?P:we;var tt=Ve==P,ht=we==P,ze=Ve==we;if(ze&&$o(h)){if(!$o(S))return!1;Fe=!0,tt=!1}if(ze&&!tt)return oe||(oe=new Jt),Fe||fc(h)?ac(h,S,T,X,Se,oe):av(h,S,Ve,T,X,Se,oe);if(!(T&i)){var ut=tt&&ue.call(h,"__wrapped__"),lt=ht&&ue.call(S,"__wrapped__");if(ut||lt){var Ut=ut?h.value():h,Vt=lt?S.value():S;return oe||(oe=new Jt),Se(Ut,Vt,T,X,oe)}}return ze?(oe||(oe=new Jt),sv(h,S,T,X,Se,oe)):!1}function rv(h){if(!dc(h)||fv(h))return!1;var S=lc(h)?ft:y;return S.test(hn(h))}function iv(h){return gr(h)&&cc(h.length)&&!!re[hr(h)]}function ov(h){if(!pv(h))return E0(h);var S=[];for(var T in Object(h))ue.call(h,T)&&T!="constructor"&&S.push(T);return S}function ac(h,S,T,X,Se,oe){var Fe=T&i,Oe=h.length,Ve=S.length;if(Oe!=Ve&&!(Fe&&Ve>Oe))return!1;var we=oe.get(h);if(we&&oe.get(S))return we==S;var tt=-1,ht=!0,ze=T&o?new di:void 0;for(oe.set(h,S),oe.set(S,h);++tt<Oe;){var ut=h[tt],lt=S[tt];if(X)var Ut=Fe?X(lt,ut,tt,S,h,oe):X(ut,lt,tt,h,S,oe);if(Ut!==void 0){if(Ut)continue;ht=!1;break}if(ze){if(!ui(S,function(Vt,gn){if(!ci(ze,gn)&&(ut===Vt||Se(ut,Vt,T,X,oe)))return ze.push(gn)})){ht=!1;break}}else if(!(ut===lt||Se(ut,lt,T,X,oe))){ht=!1;break}}return oe.delete(h),oe.delete(S),ht}function av(h,S,T,X,Se,oe,Fe){switch(T){case O:if(h.byteLength!=S.byteLength||h.byteOffset!=S.byteOffset)return!1;h=h.buffer,S=S.buffer;case D:return!(h.byteLength!=S.byteLength||!oe(new Xe(h),new Xe(S)));case c:case d:case I:return uc(+h,+S);case p:return h.name==S.name&&h.message==S.message;case A:case F:return h==S+"";case g:var Oe=Ho;case C:var Ve=X&i;if(Oe||(Oe=Zo),h.size!=S.size&&!Ve)return!1;var we=Fe.get(h);if(we)return we==S;X|=o,Fe.set(h,S);var tt=ac(Oe(h),Oe(S),X,Se,oe,Fe);return Fe.delete(h),tt;case G:if(Qo)return Qo.call(h)==Qo.call(S)}return!1}function sv(h,S,T,X,Se,oe){var Fe=T&i,Oe=sc(h),Ve=Oe.length,we=sc(S),tt=we.length;if(Ve!=tt&&!Fe)return!1;for(var ht=Ve;ht--;){var ze=Oe[ht];if(!(Fe?ze in S:ue.call(S,ze)))return!1}var ut=oe.get(h);if(ut&&oe.get(S))return ut==S;var lt=!0;oe.set(h,S),oe.set(S,h);for(var Ut=Fe;++ht<Ve;){ze=Oe[ht];var Vt=h[ze],gn=S[ze];if(X)var pc=Fe?X(gn,Vt,ze,S,h,oe):X(Vt,gn,ze,h,S,oe);if(!(pc===void 0?Vt===gn||Se(Vt,gn,T,X,oe):pc)){lt=!1;break}Ut||(Ut=ze=="constructor")}if(lt&&!Ut){var gi=h.constructor,mi=S.constructor;gi!=mi&&"constructor"in h&&"constructor"in S&&!(typeof gi=="function"&&gi instanceof gi&&typeof mi=="function"&&mi instanceof mi)&&(lt=!1)}return oe.delete(h),oe.delete(S),lt}function sc(h){return tv(h,yv,lv)}function pi(h,S){var T=h.__data__;return dv(S)?T[typeof S=="string"?"string":"hash"]:T.map}function Wn(h,S){var T=zo(h,S);return rv(T)?T:void 0}function uv(h){var S=ue.call(h,dn),T=h[dn];try{h[dn]=void 0;var X=!0}catch{}var Se=Pt.call(h);return X&&(S?h[dn]=T:delete h[dn]),Se}var lv=nc?function(h){return h==null?[]:(h=Object(h),Ot(nc(h),function(S){return Bt.call(h,S)}))}:vv,_t=hr;(jo&&_t(new jo(new ArrayBuffer(1)))!=O||fr&&_t(new fr)!=g||Jo&&_t(Jo.resolve())!=w||_o&&_t(new _o)!=C||Uo&&_t(new Uo)!=W)&&(_t=function(h){var S=hr(h),T=S==P?h.constructor:void 0,X=T?hn(T):"";if(X)switch(X){case P0:return O;case F0:return g;case k0:return w;case T0:return C;case G0:return W}return S});function cv(h,S){return S=S??a,!!S&&(typeof h=="number"||pe.test(h))&&h>-1&&h%1==0&&h<S}function dv(h){var S=typeof h;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?h!=="__proto__":h===null}function fv(h){return!!_e&&_e in h}function pv(h){var S=h&&h.constructor,T=typeof S=="function"&&S.prototype||N;return h===T}function hv(h){return Pt.call(h)}function hn(h){if(h!=null){try{return se.call(h)}catch{}try{return h+""}catch{}}return""}function uc(h,S){return h===S||h!==h&&S!==S}var gv=ic(function(){return arguments}())?ic:function(h){return gr(h)&&ue.call(h,"callee")&&!Bt.call(h,"callee")},hi=Array.isArray;function mv(h){return h!=null&&cc(h.length)&&!lc(h)}var $o=w0||Iv;function bv(h,S){return oc(h,S)}function lc(h){if(!dc(h))return!1;var S=hr(h);return S==f||S==b||S==l||S==E}function cc(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=a}function dc(h){var S=typeof h;return h!=null&&(S=="object"||S=="function")}function gr(h){return h!=null&&typeof h=="object"}var fc=st?li(st):iv;function yv(h){return mv(h)?ev(h):ov(h)}function vv(){return[]}function Iv(){return!1}e.exports=bv}(br,br.exports);var mc=br.exports;const bc=sa(mc);var Zn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},$t=typeof window>"u"||"Deno"in globalThis;function nt(){}function yc(e,t){return typeof e=="function"?e(t):e}function vi(e){return typeof e=="number"&&e>=0&&e!==1/0}function ua(e,t){return Math.max(e+(t||0)-Date.now(),0)}function yn(e,t){return typeof e=="function"?e(t):e}function ct(e,t){return typeof e=="function"?e(t):e}function la(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==Ii(a,t.options))return!1}else if(!jn(t.queryKey,a))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||o&&!o(t))}function ca(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Yn(t.options.mutationKey)!==Yn(o))return!1}else if(!jn(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ii(e,t){return((t==null?void 0:t.queryKeyHashFn)||Yn)(e)}function Yn(e){return JSON.stringify(e,(t,n)=>Ai(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function jn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!jn(e[n],t[n])):!1}function Ci(e,t){if(e===t)return e;const n=da(e)&&da(t);if(n||Ai(e)&&Ai(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let u=0;for(let l=0;l<a;l++){const c=n?l:o[l];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(s[c]=void 0,u++):(s[c]=Ci(e[c],t[c]),s[c]===e[c]&&e[c]!==void 0&&u++)}return i===a&&u===i?e:s}return t}function xi(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function da(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ai(e){if(!fa(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!fa(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function fa(e){return Object.prototype.toString.call(e)==="[object Object]"}function vc(e){return new Promise(t=>{setTimeout(t,e)})}function Si(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Ci(e,t)}catch(r){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`)}return Ci(e,t)}return t}function Ic(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Cc(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var yr=Symbol();function pa(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===yr&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===yr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var xc=(Jl=class extends Zn{constructor(){super();te(this,rn);te(this,Lt);te(this,Tn);z(this,Tn,t=>{if(!$t&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){x(this,Lt)||this.setEventListener(x(this,Tn))}onUnsubscribe(){var t;this.hasListeners()||((t=x(this,Lt))==null||t.call(this),z(this,Lt,void 0))}setEventListener(t){var n;z(this,Tn,t),(n=x(this,Lt))==null||n.call(this),z(this,Lt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){x(this,rn)!==t&&(z(this,rn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof x(this,rn)=="boolean"?x(this,rn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},rn=new WeakMap,Lt=new WeakMap,Tn=new WeakMap,Jl),wi=new xc,Ac=(_l=class extends Zn{constructor(){super();te(this,Gn,!0);te(this,Xt);te(this,On);z(this,On,t=>{if(!$t&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){x(this,Xt)||this.setEventListener(x(this,On))}onUnsubscribe(){var t;this.hasListeners()||((t=x(this,Xt))==null||t.call(this),z(this,Xt,void 0))}setEventListener(t){var n;z(this,On,t),(n=x(this,Xt))==null||n.call(this),z(this,Xt,t(this.setOnline.bind(this)))}setOnline(t){x(this,Gn)!==t&&(z(this,Gn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return x(this,Gn)}},Gn=new WeakMap,Xt=new WeakMap,On=new WeakMap,_l),vr=new Ac;function Ei(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function Sc(e){return Math.min(1e3*2**e,3e4)}function ha(e){return(e??"online")==="online"?vr.isOnline():!0}var ga=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Pi(e){return e instanceof ga}function ma(e){let t=!1,n=0,r=!1,i;const o=Ei(),a=g=>{var I;r||(p(new ga(g)),(I=e.abort)==null||I.call(e))},s=()=>{t=!0},u=()=>{t=!1},l=()=>wi.isFocused()&&(e.networkMode==="always"||vr.isOnline())&&e.canRun(),c=()=>ha(e.networkMode)&&e.canRun(),d=g=>{var I;r||(r=!0,(I=e.onSuccess)==null||I.call(e,g),i==null||i(),o.resolve(g))},p=g=>{var I;r||(r=!0,(I=e.onError)==null||I.call(e,g),i==null||i(),o.reject(g))},f=()=>new Promise(g=>{var I;i=v=>{(r||l())&&g(v)},(I=e.onPause)==null||I.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),b=()=>{if(r)return;let g;const I=n===0?e.initialPromise:void 0;try{g=I??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(d).catch(v=>{var C;if(r)return;const P=e.retry??($t?0:3),w=e.retryDelay??Sc,E=typeof w=="function"?w(n,v):w,A=P===!0||typeof P=="number"&&n<P||typeof P=="function"&&P(n,v);if(t||!A){p(v);return}n++,(C=e.onFail)==null||C.call(e,n,v),vc(E).then(()=>l()?void 0:f()).then(()=>{t?p(v):b()})})};return{promise:o,cancel:a,continue:()=>(i==null||i(),o),cancelRetry:s,continueRetry:u,canStart:c,start:()=>(c()?b():f().then(b),o)}}function wc(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=s=>setTimeout(s,0);const o=s=>{t?e.push(s):i(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(u=>{n(u)})})})};return{batch:s=>{let u;t++;try{u=s()}finally{t--,t||a()}return u},batchCalls:s=>(...u)=>{o(()=>{s(...u)})},schedule:o,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var Be=wc(),ba=(Ul=class{constructor(){te(this,on)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),vi(this.gcTime)&&z(this,on,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??($t?1/0:5*60*1e3))}clearGcTimeout(){x(this,on)&&(clearTimeout(x(this,on)),z(this,on,void 0))}},on=new WeakMap,Ul),Ec=(Ql=class extends ba{constructor(t){super();te(this,dt);te(this,Bn);te(this,Rn);te(this,ot);te(this,De);te(this,ur);te(this,an);z(this,an,!1),z(this,ur,t.defaultOptions),this.setOptions(t.options),this.observers=[],z(this,ot,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,z(this,Bn,Pc(this.options)),this.state=t.state??x(this,Bn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=x(this,De))==null?void 0:t.promise}setOptions(t){this.options={...x(this,ur),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&x(this,ot).remove(this)}setData(t,n){const r=Si(this.state.data,t,this.options);return ce(this,dt,Mt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ce(this,dt,Mt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=x(this,De))==null?void 0:r.promise;return(i=x(this,De))==null||i.cancel(t),n?n.then(nt).catch(nt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(x(this,Bn))}isActive(){return this.observers.some(t=>ct(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===yr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!ua(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=x(this,De))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=x(this,De))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),x(this,ot).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(x(this,De)&&(x(this,an)?x(this,De).cancel({revert:!0}):x(this,De).cancelRetry()),this.scheduleGc()),x(this,ot).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ce(this,dt,Mt).call(this,{type:"invalidate"})}fetch(t,n){var u,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(x(this,De))return x(this,De).continueRetry(),x(this,De).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(z(this,an,!0),r.signal)})},o=()=>{const d=pa(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return i(p),z(this,an,!1),this.options.persister?this.options.persister(d,p,this):d(p)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(a),(u=this.options.behavior)==null||u.onFetch(a,this),z(this,Rn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=a.fetchOptions)==null?void 0:l.meta))&&ce(this,dt,Mt).call(this,{type:"fetch",meta:(c=a.fetchOptions)==null?void 0:c.meta});const s=d=>{var p,f,b,g;Pi(d)&&d.silent||ce(this,dt,Mt).call(this,{type:"error",error:d}),Pi(d)||((f=(p=x(this,ot).config).onError)==null||f.call(p,d,this),(g=(b=x(this,ot).config).onSettled)==null||g.call(b,this.state.data,d,this)),this.scheduleGc()};return z(this,De,ma({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var p,f,b,g;if(d===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(I){s(I);return}(f=(p=x(this,ot).config).onSuccess)==null||f.call(p,d,this),(g=(b=x(this,ot).config).onSettled)==null||g.call(b,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,p)=>{ce(this,dt,Mt).call(this,{type:"failed",failureCount:d,error:p})},onPause:()=>{ce(this,dt,Mt).call(this,{type:"pause"})},onContinue:()=>{ce(this,dt,Mt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),x(this,De).start()}},Bn=new WeakMap,Rn=new WeakMap,ot=new WeakMap,De=new WeakMap,ur=new WeakMap,an=new WeakMap,dt=new WeakSet,Mt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...ya(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Pi(i)&&i.revert&&x(this,Rn)?{...x(this,Rn),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Be.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),x(this,ot).notify({query:this,type:"updated",action:t})})},Ql);function ya(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ha(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Pc(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Fc=($l=class extends Zn{constructor(t={}){super();te(this,xt);this.config=t,z(this,xt,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Ii(i,n);let a=this.get(o);return a||(a=new Ec({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){x(this,xt).has(t.queryHash)||(x(this,xt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=x(this,xt).get(t.queryHash);n&&(t.destroy(),n===t&&x(this,xt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return x(this,xt).get(t)}getAll(){return[...x(this,xt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>la(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>la(t,r)):n}notify(t){Be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Be.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Be.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},xt=new WeakMap,$l),kc=(ql=class extends ba{constructor(t){super();te(this,St);te(this,At);te(this,He);te(this,sn);this.mutationId=t.mutationId,z(this,He,t.mutationCache),z(this,At,[]),this.state=t.state||Tc(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){x(this,At).includes(t)||(x(this,At).push(t),this.clearGcTimeout(),x(this,He).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){z(this,At,x(this,At).filter(n=>n!==t)),this.scheduleGc(),x(this,He).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){x(this,At).length||(this.state.status==="pending"?this.scheduleGc():x(this,He).remove(this))}continue(){var t;return((t=x(this,sn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,s,u,l,c,d,p,f,b,g,I,v,P,w,E,A,C,F;z(this,sn,ma({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(G,R)=>{ce(this,St,Qt).call(this,{type:"failed",failureCount:G,error:R})},onPause:()=>{ce(this,St,Qt).call(this,{type:"pause"})},onContinue:()=>{ce(this,St,Qt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>x(this,He).canRun(this)}));const n=this.state.status==="pending",r=!x(this,sn).canStart();try{if(!n){ce(this,St,Qt).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=x(this,He).config).onMutate)==null?void 0:o.call(i,t,this));const R=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));R!==this.state.context&&ce(this,St,Qt).call(this,{type:"pending",context:R,variables:t,isPaused:r})}const G=await x(this,sn).start();return await((l=(u=x(this,He).config).onSuccess)==null?void 0:l.call(u,G,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,G,t,this.state.context)),await((f=(p=x(this,He).config).onSettled)==null?void 0:f.call(p,G,null,this.state.variables,this.state.context,this)),await((g=(b=this.options).onSettled)==null?void 0:g.call(b,G,null,t,this.state.context)),ce(this,St,Qt).call(this,{type:"success",data:G}),G}catch(G){try{throw await((v=(I=x(this,He).config).onError)==null?void 0:v.call(I,G,t,this.state.context,this)),await((w=(P=this.options).onError)==null?void 0:w.call(P,G,t,this.state.context)),await((A=(E=x(this,He).config).onSettled)==null?void 0:A.call(E,void 0,G,this.state.variables,this.state.context,this)),await((F=(C=this.options).onSettled)==null?void 0:F.call(C,void 0,G,t,this.state.context)),G}finally{ce(this,St,Qt).call(this,{type:"error",error:G})}}finally{x(this,He).runNext(this)}}},At=new WeakMap,He=new WeakMap,sn=new WeakMap,St=new WeakSet,Qt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Be.batch(()=>{x(this,At).forEach(r=>{r.onMutationUpdate(t)}),x(this,He).notify({mutation:this,type:"updated",action:t})})},ql);function Tc(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gc=(Kl=class extends Zn{constructor(t={}){super();te(this,Ke);te(this,lr);this.config=t,z(this,Ke,new Map),z(this,lr,Date.now())}build(t,n,r){const i=new kc({mutationCache:this,mutationId:++bi(this,lr)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Ir(t),r=x(this,Ke).get(n)??[];r.push(t),x(this,Ke).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Ir(t);if(x(this,Ke).has(n)){const i=(r=x(this,Ke).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?x(this,Ke).delete(n):x(this,Ke).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=x(this,Ke).get(Ir(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=x(this,Ke).get(Ir(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...x(this,Ke).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ca(n,r))}findAll(t={}){return this.getAll().filter(n=>ca(t,n))}notify(t){Be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Be.batch(()=>Promise.all(t.map(n=>n.continue().catch(nt))))}},Ke=new WeakMap,lr=new WeakMap,Kl);function Ir(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function va(e){return{onFetch:(t,n)=>{var c,d,p,f,b;const r=t.options,i=(p=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:p.direction,o=((f=t.state.data)==null?void 0:f.pages)||[],a=((b=t.state.data)==null?void 0:b.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const l=async()=>{let g=!1;const I=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=pa(t.options,t.fetchOptions),P=async(w,E,A)=>{if(g)return Promise.reject();if(E==null&&w.pages.length)return Promise.resolve(w);const C={queryKey:t.queryKey,pageParam:E,direction:A?"backward":"forward",meta:t.options.meta};I(C);const F=await v(C),{maxPages:G}=t.options,R=A?Cc:Ic;return{pages:R(w.pages,F,G),pageParams:R(w.pageParams,E,G)}};if(i&&o.length){const w=i==="backward",E=w?Oc:Ia,A={pages:o,pageParams:a},C=E(r,A);s=await P(A,C,w)}else{const w=e??o.length;do{const E=u===0?a[0]??r.initialPageParam:Ia(r,s);if(u>0&&E==null)break;s=await P(s,E),u++}while(u<w)}return s};t.options.persister?t.fetchFn=()=>{var g,I;return(I=(g=t.options).persister)==null?void 0:I.call(g,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Ia(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Oc(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Bc=(ec=class{constructor(e={}){te(this,Pe);te(this,zt);te(this,Ht);te(this,Vn);te(this,Mn);te(this,Wt);te(this,Nn);te(this,Dn);z(this,Pe,e.queryCache||new Fc),z(this,zt,e.mutationCache||new Gc),z(this,Ht,e.defaultOptions||{}),z(this,Vn,new Map),z(this,Mn,new Map),z(this,Wt,0)}mount(){bi(this,Wt)._++,x(this,Wt)===1&&(z(this,Nn,wi.subscribe(async e=>{e&&(await this.resumePausedMutations(),x(this,Pe).onFocus())})),z(this,Dn,vr.subscribe(async e=>{e&&(await this.resumePausedMutations(),x(this,Pe).onOnline())})))}unmount(){var e,t;bi(this,Wt)._--,x(this,Wt)===0&&((e=x(this,Nn))==null||e.call(this),z(this,Nn,void 0),(t=x(this,Dn))==null||t.call(this),z(this,Dn,void 0))}isFetching(e){return x(this,Pe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return x(this,zt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=x(this,Pe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=x(this,Pe).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(yn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return x(this,Pe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=x(this,Pe).get(r.queryHash),o=i==null?void 0:i.state.data,a=yc(t,o);if(a!==void 0)return x(this,Pe).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Be.batch(()=>x(this,Pe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=x(this,Pe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=x(this,Pe);Be.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=x(this,Pe),r={type:"active",...e};return Be.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Be.batch(()=>x(this,Pe).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(nt).catch(nt)}invalidateQueries(e={},t={}){return Be.batch(()=>{if(x(this,Pe).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Be.batch(()=>x(this,Pe).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(nt)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(nt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=x(this,Pe).build(this,t);return n.isStaleByTime(yn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(nt).catch(nt)}fetchInfiniteQuery(e){return e.behavior=va(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(nt).catch(nt)}ensureInfiniteQueryData(e){return e.behavior=va(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return vr.isOnline()?x(this,zt).resumePausedMutations():Promise.resolve()}getQueryCache(){return x(this,Pe)}getMutationCache(){return x(this,zt)}getDefaultOptions(){return x(this,Ht)}setDefaultOptions(e){z(this,Ht,e)}setQueryDefaults(e,t){x(this,Vn).set(Yn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...x(this,Vn).values()];let n={};return t.forEach(r=>{jn(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){x(this,Mn).set(Yn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...x(this,Mn).values()];let n={};return t.forEach(r=>{jn(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...x(this,Ht).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ii(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===yr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...x(this,Ht).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){x(this,Pe).clear(),x(this,zt).clear()}},Pe=new WeakMap,zt=new WeakMap,Ht=new WeakMap,Vn=new WeakMap,Mn=new WeakMap,Wt=new WeakMap,Nn=new WeakMap,Dn=new WeakMap,ec),Rc=(tc=class extends Zn{constructor(t,n){super();te(this,Ie);te(this,Je);te(this,le);te(this,cr);te(this,We);te(this,un);te(this,Ln);te(this,Zt);te(this,wt);te(this,dr);te(this,Xn);te(this,zn);te(this,ln);te(this,cn);te(this,Yt);te(this,Hn,new Set);this.options=n,z(this,Je,t),z(this,wt,null),z(this,Zt,Ei()),this.options.experimental_prefetchInRender||x(this,Zt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(x(this,le).addObserver(this),Ca(x(this,le),this.options)?ce(this,Ie,mr).call(this):this.updateResult(),ce(this,Ie,na).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fi(x(this,le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fi(x(this,le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ce(this,Ie,ra).call(this),ce(this,Ie,ia).call(this),x(this,le).removeObserver(this)}setOptions(t,n){const r=this.options,i=x(this,le);if(this.options=x(this,Je).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ct(this.options.enabled,x(this,le))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ce(this,Ie,oa).call(this),x(this,le).setOptions(this.options),r._defaulted&&!xi(this.options,r)&&x(this,Je).getQueryCache().notify({type:"observerOptionsUpdated",query:x(this,le),observer:this});const o=this.hasListeners();o&&xa(x(this,le),i,this.options,r)&&ce(this,Ie,mr).call(this),this.updateResult(n),o&&(x(this,le)!==i||ct(this.options.enabled,x(this,le))!==ct(r.enabled,x(this,le))||yn(this.options.staleTime,x(this,le))!==yn(r.staleTime,x(this,le)))&&ce(this,Ie,Ko).call(this);const a=ce(this,Ie,ea).call(this);o&&(x(this,le)!==i||ct(this.options.enabled,x(this,le))!==ct(r.enabled,x(this,le))||a!==x(this,Yt))&&ce(this,Ie,ta).call(this,a)}getOptimisticResult(t){const n=x(this,Je).getQueryCache().build(x(this,Je),t),r=this.createResult(n,t);return Mc(this,r)&&(z(this,We,r),z(this,Ln,this.options),z(this,un,x(this,le).state)),r}getCurrentResult(){return x(this,We)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){x(this,Hn).add(t)}getCurrentQuery(){return x(this,le)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=x(this,Je).defaultQueryOptions(t),r=x(this,Je).getQueryCache().build(x(this,Je),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ce(this,Ie,mr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),x(this,We)))}createResult(t,n){var G;const r=x(this,le),i=this.options,o=x(this,We),a=x(this,un),s=x(this,Ln),l=t!==r?t.state:x(this,cr),{state:c}=t;let d={...c},p=!1,f;if(n._optimisticResults){const R=this.hasListeners(),W=!R&&Ca(t,n),D=R&&xa(t,r,n,i);(W||D)&&(d={...d,...ya(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:I}=d;if(n.select&&d.data!==void 0)if(o&&d.data===(a==null?void 0:a.data)&&n.select===x(this,dr))f=x(this,Xn);else try{z(this,dr,n.select),f=n.select(d.data),f=Si(o==null?void 0:o.data,f,n),z(this,Xn,f),z(this,wt,null)}catch(R){z(this,wt,R)}else f=d.data;if(n.placeholderData!==void 0&&f===void 0&&I==="pending"){let R;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))R=o.data;else if(R=typeof n.placeholderData=="function"?n.placeholderData((G=x(this,zn))==null?void 0:G.state.data,x(this,zn)):n.placeholderData,n.select&&R!==void 0)try{R=n.select(R),z(this,wt,null)}catch(W){z(this,wt,W)}R!==void 0&&(I="success",f=Si(o==null?void 0:o.data,R,n),p=!0)}x(this,wt)&&(b=x(this,wt),f=x(this,Xn),g=Date.now(),I="error");const v=d.fetchStatus==="fetching",P=I==="pending",w=I==="error",E=P&&v,A=f!==void 0,F={status:I,fetchStatus:d.fetchStatus,isPending:P,isSuccess:I==="success",isError:w,isInitialLoading:E,isLoading:E,data:f,dataUpdatedAt:d.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!P,isLoadingError:w&&!A,isPaused:d.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:w&&A,isStale:ki(t,n),refetch:this.refetch,promise:x(this,Zt)};if(this.options.experimental_prefetchInRender){const R=O=>{F.status==="error"?O.reject(F.error):F.data!==void 0&&O.resolve(F.data)},W=()=>{const O=z(this,Zt,F.promise=Ei());R(O)},D=x(this,Zt);switch(D.status){case"pending":t.queryHash===r.queryHash&&R(D);break;case"fulfilled":(F.status==="error"||F.data!==D.value)&&W();break;case"rejected":(F.status!=="error"||F.error!==D.reason)&&W();break}}return F}updateResult(t){const n=x(this,We),r=this.createResult(x(this,le),this.options);if(z(this,un,x(this,le).state),z(this,Ln,this.options),x(this,un).data!==void 0&&z(this,zn,x(this,le)),xi(r,n))return;z(this,We,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!x(this,Hn).size)return!0;const u=new Set(s??x(this,Hn));return this.options.throwOnError&&u.add("error"),Object.keys(x(this,We)).some(l=>{const c=l;return x(this,We)[c]!==n[c]&&u.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),ce(this,Ie,gc).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ce(this,Ie,na).call(this)}},Je=new WeakMap,le=new WeakMap,cr=new WeakMap,We=new WeakMap,un=new WeakMap,Ln=new WeakMap,Zt=new WeakMap,wt=new WeakMap,dr=new WeakMap,Xn=new WeakMap,zn=new WeakMap,ln=new WeakMap,cn=new WeakMap,Yt=new WeakMap,Hn=new WeakMap,Ie=new WeakSet,mr=function(t){ce(this,Ie,oa).call(this);let n=x(this,le).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(nt)),n},Ko=function(){ce(this,Ie,ra).call(this);const t=yn(this.options.staleTime,x(this,le));if($t||x(this,We).isStale||!vi(t))return;const r=ua(x(this,We).dataUpdatedAt,t)+1;z(this,ln,setTimeout(()=>{x(this,We).isStale||this.updateResult()},r))},ea=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(x(this,le)):this.options.refetchInterval)??!1},ta=function(t){ce(this,Ie,ia).call(this),z(this,Yt,t),!($t||ct(this.options.enabled,x(this,le))===!1||!vi(x(this,Yt))||x(this,Yt)===0)&&z(this,cn,setInterval(()=>{(this.options.refetchIntervalInBackground||wi.isFocused())&&ce(this,Ie,mr).call(this)},x(this,Yt)))},na=function(){ce(this,Ie,Ko).call(this),ce(this,Ie,ta).call(this,ce(this,Ie,ea).call(this))},ra=function(){x(this,ln)&&(clearTimeout(x(this,ln)),z(this,ln,void 0))},ia=function(){x(this,cn)&&(clearInterval(x(this,cn)),z(this,cn,void 0))},oa=function(){const t=x(this,Je).getQueryCache().build(x(this,Je),this.options);if(t===x(this,le))return;const n=x(this,le);z(this,le,t),z(this,cr,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},gc=function(t){Be.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(x(this,We))}),x(this,Je).getQueryCache().notify({query:x(this,le),type:"observerResultsUpdated"})})},tc);function Vc(e,t){return ct(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ca(e,t){return Vc(e,t)||e.state.data!==void 0&&Fi(e,t,t.refetchOnMount)}function Fi(e,t,n){if(ct(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ki(e,t)}return!1}function xa(e,t,n,r){return(e!==t||ct(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ki(e,n)}function ki(e,t){return ct(t.enabled,e)!==!1&&e.isStaleByTime(yn(t.staleTime,e))}function Mc(e,t){return!xi(e.getCurrentResult(),t)}var Aa=_.createContext(void 0),Nc=e=>{const t=_.useContext(Aa);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Dc=({client:e,children:t})=>(_.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),M.jsx(Aa.Provider,{value:e,children:t})),Sa=_.createContext(!1),Lc=()=>_.useContext(Sa);Sa.Provider;function Xc(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var zc=_.createContext(Xc()),Hc=()=>_.useContext(zc);function Wc(e,t){return typeof e=="function"?e(...t):!!e}function wa(){}var Zc=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Yc=e=>{_.useEffect(()=>{e.clearReset()},[e])},jc=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Wc(n,[e.error,r]),Jc=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},_c=(e,t)=>e.isLoading&&e.isFetching&&!t,Uc=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ea=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Qc(e,t,n){var c,d,p,f,b;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Nc(),i=Lc(),o=Hc(),a=r.defaultQueryOptions(e);(d=(c=r.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||d.call(c,a),a._optimisticResults=i?"isRestoring":"optimistic",Jc(a),Zc(a,o),Yc(o);const s=!r.getQueryCache().get(a.queryHash),[u]=_.useState(()=>new t(r,a)),l=u.getOptimisticResult(a);if(_.useSyncExternalStore(_.useCallback(g=>{const I=i?wa:u.subscribe(Be.batchCalls(g));return u.updateResult(),I},[u,i]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),_.useEffect(()=>{u.setOptions(a,{listeners:!1})},[a,u]),Uc(a,l))throw Ea(a,u,o);if(jc({result:l,errorResetBoundary:o,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw l.error;if((f=(p=r.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||f.call(p,a,l),a.experimental_prefetchInRender&&!$t&&_c(l,i)){const g=s?Ea(a,u,o):(b=r.getQueryCache().get(a.queryHash))==null?void 0:b.promise;g==null||g.catch(wa).finally(()=>{u.updateResult()})}return a.notifyOnChangeProps?l:u.trackResult(l)}function qt(e,t){return Qc(e,Rc)}const Pa=B.createContext(void 0),kt=()=>{const e=B.useContext(Pa);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},$c=({children:e,client:t})=>{const n=new Bc({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return M.jsx(Dc,{client:n,children:M.jsx(Pa.Provider,{value:t,children:e})})},Ti=B.createContext(void 0),Cr=()=>{const e=B.useContext(Ti);if(!e)throw new Error("Must be used inside provider");return e},Fa=({children:e,props:t})=>{const n=kt(),r=B.useId(),{component:i,configuredProps:o,propNames:a,userId:s}=t,u=i.key,[l,c]=B.useState(0),[d,p]=B.useState(!1),[f,b]=B.useState({}),[g,I]=B.useState({});B.useEffect(()=>{I({})},[i]);const v=Z=>g[Z.name];let P=o||{};const[w,E]=B.useState(P),A=t.onUpdateConfiguredProps||E;t.onUpdateConfiguredProps||(P=w);const[C,F]=B.useState(),[G,R]=B.useState(),W={userId:s,componentId:u,configuredProps:P,dynamicPropsId:C==null?void 0:C.id},{isFetching:D}=qt({queryKey:["dynamicProps"],queryFn:async()=>{const{dynamic_props:Z}=await n.componentReloadProps(W);return Z&&F(Z),R(void 0),[]},enabled:G!=null});let O=(C==null?void 0:C.configurable_props)||t.component.configurable_props||[];if(a!=null&&a.length){const Z=[];for(const m of O)a.findIndex(j=>m.name===j)>=0&&Z.push(m);O=Z}G&&(O=O.slice(0,G+1));const ne=(Z,m)=>{const j=[];return m===void 0?Z.optional||j.push("required"):Z.type==="integer"?typeof m!="number"?j.push("not a number"):(Z.min!=null&&m<Z.min&&j.push("number too small"),Z.max!=null&&m>Z.max&&j.push("number too big")):Z.type==="boolean"?typeof m!="boolean"&&j.push("not a boolean"):Z.type==="string"?typeof m!="string"&&j.push("not a string"):Z.type,j},ae=Z=>{let m;for(let j=0;j<O.length;j++){const Q=O[j];if(Q.hidden||Q.optional&&!v(Q))continue;if(Z[Q.name]===void 0&&m==null&&(Q.type==="app"||Q.remoteOptions)){m=j;break}}c(m)},H=Z=>{A(Z),ae(Z);const m={};for(let j=0;j<O.length;j++){const Q=O[j],y=Z[Q.name],pe=ne(Q,y);pe.length&&(m[Q.name]=pe)}b(m)};B.useEffect(()=>{const Z={};for(const m of O){if(m.hidden||m.optional&&!v(m))continue;const j=P[m.name];j===void 0?"default"in m&&m.default!=null&&(Z[m.name]=m.default):m.type==="integer"&&typeof j!="number"?delete Z[m.name]:Z[m.name]=j}bc(Z,P)||H(Z)},[O]),B.useEffect(()=>{H({})},[s]);const ee=(Z,m)=>{const j=O[Z],Q={...P};m===void 0?delete Q[j.name]:Q[j.name]=m,A(Q),j.reloadProps&&R(Z),(j.type==="app"||j.remoteOptions)&&ae(Q);const y=ne(j,m),pe={...f};y.length?pe[j.name]=y:delete pe[j.name],b(pe)},de=(Z,m)=>{const j={...g};m?j[Z.name]=!0:delete j[Z.name];const Q=O.findIndex(y=>y.name===Z.name);m?"default"in Z&&Z.default!=null&&ee(Q,Z.default):ee(Q,void 0),I(j)},be={id:r,isValid:!Object.keys(f).length,props:t,userId:s,component:i,configurableProps:O,configuredProps:P,dynamicProps:C,dynamicPropsQueryIsFetching:D,optionalPropIsEnabled:v,optionalPropSetEnabled:de,queryDisabledIdx:l,setConfiguredProp:ee,setSubmitting:p,submitting:d};return M.jsx(Ti.Provider,{value:be,children:e})};function Kt(e){"@babel/helpers - typeof";return Kt=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},Kt(e)}function qc(e,t){if(Kt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Kt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ka(e){var t=qc(e,"string");return Kt(t)=="symbol"?t:t+""}function Jn(e,t,n){return(t=ka(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ta(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 J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ta(Object(n),!0).forEach(function(r){Jn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kc(e){if(Array.isArray(e))return e}function ed(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function Gi(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 Ga(e,t){if(e){if(typeof e=="string")return Gi(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)?Gi(e,t):void 0}}function td(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tt(e,t){return Kc(e)||ed(e,t)||Ga(e,t)||td()}function nd(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function gt(e,t){if(e==null)return{};var n,r,i=nd(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var rd=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Oa(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,s=e.inputValue,u=e.menuIsOpen,l=e.onChange,c=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,f=e.value,b=gt(e,rd),g=B.useState(s!==void 0?s:n),I=Tt(g,2),v=I[0],P=I[1],w=B.useState(u!==void 0?u:i),E=Tt(w,2),A=E[0],C=E[1],F=B.useState(f!==void 0?f:a),G=Tt(F,2),R=G[0],W=G[1],D=B.useCallback(function(be,Z){typeof l=="function"&&l(be,Z),W(be)},[l]),O=B.useCallback(function(be,Z){var m;typeof c=="function"&&(m=c(be,Z)),P(m!==void 0?m:be)},[c]),ne=B.useCallback(function(){typeof p=="function"&&p(),C(!0)},[p]),ae=B.useCallback(function(){typeof d=="function"&&d(),C(!1)},[d]),H=s!==void 0?s:v,ee=u!==void 0?u:A,de=f!==void 0?f:R;return J(J({},b),{},{inputValue:H,menuIsOpen:ee,onChange:D,onInputChange:O,onMenuClose:ae,onMenuOpen:ne,value:de})}function $(){return $=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},$.apply(null,arguments)}function id(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ba(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,ka(r.key),r)}}function od(e,t,n){return t&&Ba(e.prototype,t),n&&Ba(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oi(e,t){return Oi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Oi(e,t)}function ad(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&&Oi(e,t)}function xr(e){return xr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xr(e)}function Ra(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ra=function(){return!!e})()}function sd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ud(e,t){if(t&&(Kt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sd(e)}function ld(e){var t=Ra();return function(){var n,r=xr(e);if(t){var i=xr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ud(this,n)}}function cd(e){if(Array.isArray(e))return Gi(e)}function dd(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fd(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vn(e){return cd(e)||dd(e)||Ga(e)||fd()}var pd=!1;function hd(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 gd(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 md=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?!pd: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(gd(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=hd(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}(),Me="-ms-",Ar="-moz-",he="-webkit-",Va="comm",Bi="rule",Ri="decl",bd="@import",Ma="@keyframes",yd="@layer",vd=Math.abs,Sr=String.fromCharCode,Id=Object.assign;function Cd(e,t){return Re(e,0)^45?(((t<<2^Re(e,0))<<2^Re(e,1))<<2^Re(e,2))<<2^Re(e,3):0}function Na(e){return e.trim()}function xd(e,t){return(e=t.exec(e))?e[0]:e}function ge(e,t,n){return e.replace(t,n)}function Vi(e,t){return e.indexOf(t)}function Re(e,t){return e.charCodeAt(t)|0}function _n(e,t,n){return e.slice(t,n)}function mt(e){return e.length}function Mi(e){return e.length}function wr(e,t){return t.push(e),e}function Ad(e,t){return e.map(t).join("")}var Er=1,In=1,Da=0,Ze=0,ke=0,Cn="";function Pr(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Er,column:In,length:a,return:""}}function Un(e,t){return Id(Pr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Sd(){return ke}function wd(){return ke=Ze>0?Re(Cn,--Ze):0,In--,ke===10&&(In=1,Er--),ke}function Ue(){return ke=Ze<Da?Re(Cn,Ze++):0,In++,ke===10&&(In=1,Er++),ke}function bt(){return Re(Cn,Ze)}function Fr(){return Ze}function Qn(e,t){return _n(Cn,e,t)}function $n(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 La(e){return Er=In=1,Da=mt(Cn=e),Ze=0,[]}function Xa(e){return Cn="",e}function kr(e){return Na(Qn(Ze-1,Ni(e===91?e+2:e===40?e+1:e)))}function Ed(e){for(;(ke=bt())&&ke<33;)Ue();return $n(e)>2||$n(ke)>3?"":" "}function Pd(e,t){for(;--t&&Ue()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return Qn(e,Fr()+(t<6&&bt()==32&&Ue()==32))}function Ni(e){for(;Ue();)switch(ke){case e:return Ze;case 34:case 39:e!==34&&e!==39&&Ni(ke);break;case 40:e===41&&Ni(e);break;case 92:Ue();break}return Ze}function Fd(e,t){for(;Ue()&&e+ke!==57;)if(e+ke===84&&bt()===47)break;return"/*"+Qn(t,Ze-1)+"*"+Sr(e===47?e:Ue())}function kd(e){for(;!$n(bt());)Ue();return Qn(e,Ze)}function Td(e){return Xa(Tr("",null,null,null,[""],e=La(e),0,[0],e))}function Tr(e,t,n,r,i,o,a,s,u){for(var l=0,c=0,d=a,p=0,f=0,b=0,g=1,I=1,v=1,P=0,w="",E=i,A=o,C=r,F=w;I;)switch(b=P,P=Ue()){case 40:if(b!=108&&Re(F,d-1)==58){Vi(F+=ge(kr(P),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:F+=kr(P);break;case 9:case 10:case 13:case 32:F+=Ed(b);break;case 92:F+=Pd(Fr()-1,7);continue;case 47:switch(bt()){case 42:case 47:wr(Gd(Fd(Ue(),Fr()),t,n),u);break;default:F+="/"}break;case 123*g:s[l++]=mt(F)*v;case 125*g:case 59:case 0:switch(P){case 0:case 125:I=0;case 59+c:v==-1&&(F=ge(F,/\f/g,"")),f>0&&mt(F)-d&&wr(f>32?Ha(F+";",r,n,d-1):Ha(ge(F," ","")+";",r,n,d-2),u);break;case 59:F+=";";default:if(wr(C=za(F,t,n,l,c,i,s,w,E=[],A=[],d),o),P===123)if(c===0)Tr(F,t,C,C,E,o,d,s,A);else switch(p===99&&Re(F,3)===110?100:p){case 100:case 108:case 109:case 115:Tr(e,C,C,r&&wr(za(e,C,C,0,0,i,s,w,i,E=[],d),A),i,A,d,s,r?E:A);break;default:Tr(F,C,C,C,[""],A,0,s,A)}}l=c=f=0,g=v=1,w=F="",d=a;break;case 58:d=1+mt(F),f=b;default:if(g<1){if(P==123)--g;else if(P==125&&g++==0&&wd()==125)continue}switch(F+=Sr(P),P*g){case 38:v=c>0?1:(F+="\f",-1);break;case 44:s[l++]=(mt(F)-1)*v,v=1;break;case 64:bt()===45&&(F+=kr(Ue())),p=bt(),c=d=mt(w=F+=kd(Fr())),P++;break;case 45:b===45&&mt(F)==2&&(g=0)}}return o}function za(e,t,n,r,i,o,a,s,u,l,c){for(var d=i-1,p=i===0?o:[""],f=Mi(p),b=0,g=0,I=0;b<r;++b)for(var v=0,P=_n(e,d+1,d=vd(g=a[b])),w=e;v<f;++v)(w=Na(g>0?p[v]+" "+P:ge(P,/&\f/g,p[v])))&&(u[I++]=w);return Pr(e,t,n,i===0?Bi:s,u,l,c)}function Gd(e,t,n){return Pr(e,t,n,Va,Sr(Sd()),_n(e,2,-2),0)}function Ha(e,t,n,r){return Pr(e,t,n,Ri,_n(e,0,r),_n(e,r+1,-1),r)}function xn(e,t){for(var n="",r=Mi(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Od(e,t,n,r){switch(e.type){case yd:if(e.children.length)break;case bd:case Ri:return e.return=e.return||e.value;case Va:return"";case Ma:return e.return=e.value+"{"+xn(e.children,r)+"}";case Bi:e.value=e.props.join(",")}return mt(n=xn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Bd(e){var t=Mi(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function Rd(e){return function(t){t.root||(t=t.return)&&e(t)}}function Vd(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Md=function(t,n,r){for(var i=0,o=0;i=o,o=bt(),i===38&&o===12&&(n[r]=1),!$n(o);)Ue();return Qn(t,Ze)},Nd=function(t,n){var r=-1,i=44;do switch($n(i)){case 0:i===38&&bt()===12&&(n[r]=1),t[r]+=Md(Ze-1,n,r);break;case 2:t[r]+=kr(i);break;case 4:if(i===44){t[++r]=bt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Sr(i)}while(i=Ue());return t},Dd=function(t,n){return Xa(Nd(La(t),n))},Wa=new WeakMap,Ld=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&&!Wa.get(r))&&!i){Wa.set(t,!0);for(var o=[],a=Dd(n,o),s=r.props,u=0,l=0;u<a.length;u++)for(var c=0;c<s.length;c++,l++)t.props[l]=o[u]?a[u].replace(/&\f/g,s[c]):s[c]+" "+a[u]}}},Xd=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Za(e,t){switch(Cd(e,t)){case 5103:return he+"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 he+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return he+e+Ar+e+Me+e+e;case 6828:case 4268:return he+e+Me+e+e;case 6165:return he+e+Me+"flex-"+e+e;case 5187:return he+e+ge(e,/(\w+).+(:[^]+)/,he+"box-$1$2"+Me+"flex-$1$2")+e;case 5443:return he+e+Me+"flex-item-"+ge(e,/flex-|-self/,"")+e;case 4675:return he+e+Me+"flex-line-pack"+ge(e,/align-content|flex-|-self/,"")+e;case 5548:return he+e+Me+ge(e,"shrink","negative")+e;case 5292:return he+e+Me+ge(e,"basis","preferred-size")+e;case 6060:return he+"box-"+ge(e,"-grow","")+he+e+Me+ge(e,"grow","positive")+e;case 4554:return he+ge(e,/([^-])(transform)/g,"$1"+he+"$2")+e;case 6187:return ge(ge(ge(e,/(zoom-|grab)/,he+"$1"),/(image-set)/,he+"$1"),e,"")+e;case 5495:case 3959:return ge(e,/(image-set\([^]*)/,he+"$1$`$1");case 4968:return ge(ge(e,/(.+:)(flex-)?(.*)/,he+"box-pack:$3"+Me+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+he+e+e;case 4095:case 3583:case 4068:case 2532:return ge(e,/(.+)-inline(.+)/,he+"$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(mt(e)-1-t>6)switch(Re(e,t+1)){case 109:if(Re(e,t+4)!==45)break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+he+"$2-$3$1"+Ar+(Re(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Vi(e,"stretch")?Za(ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Re(e,t+1)!==115)break;case 6444:switch(Re(e,mt(e)-3-(~Vi(e,"!important")&&10))){case 107:return ge(e,":",":"+he)+e;case 101:return ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+he+(Re(e,14)===45?"inline-":"")+"box$3$1"+he+"$2$3$1"+Me+"$2box$3")+e}break;case 5936:switch(Re(e,t+11)){case 114:return he+e+Me+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return he+e+Me+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return he+e+Me+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return he+e+Me+e+e}return e}var zd=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Ri:t.return=Za(t.value,t.length);break;case Ma:return xn([Un(t,{value:ge(t.value,"@","@"+he)})],i);case Bi:if(t.length)return Ad(t.props,function(o){switch(xd(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xn([Un(t,{props:[ge(o,/:(read-\w+)/,":"+Ar+"$1")]})],i);case"::placeholder":return xn([Un(t,{props:[ge(o,/:(plac\w+)/,":"+he+"input-$1")]}),Un(t,{props:[ge(o,/:(plac\w+)/,":"+Ar+"$1")]}),Un(t,{props:[ge(o,/:(plac\w+)/,Me+"input-$1")]})],i)}return""})}},Hd=[zd],Wd=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(g){var I=g.getAttribute("data-emotion");I.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||Hd,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var I=g.getAttribute("data-emotion").split(" "),v=1;v<I.length;v++)o[I[v]]=!0;s.push(g)});var u,l=[Ld,Xd];{var c,d=[Od,Rd(function(g){c.insert(g)})],p=Bd(l.concat(i,d)),f=function(I){return xn(Td(I),p)};u=function(I,v,P,w){c=P,f(I?I+"{"+v.styles+"}":v.styles),w&&(b.inserted[v.name]=!0)}}var b={key:n,sheet:new md({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:u};return b.sheet.hydrate(s),b},Di={exports:{}},ye={};/** @license React v16.13.1
|
|
4
|
-
* react-is.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Ya;function Zd(){if(Ya)return ye;Ya=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function w(A){if(typeof A=="object"&&A!==null){var C=A.$$typeof;switch(C){case t:switch(A=A.type,A){case u:case l:case r:case o:case i:case d:return A;default:switch(A=A&&A.$$typeof,A){case s:case c:case b:case f:case a:return A;default:return C}}case n:return C}}}function E(A){return w(A)===l}return ye.AsyncMode=u,ye.ConcurrentMode=l,ye.ContextConsumer=s,ye.ContextProvider=a,ye.Element=t,ye.ForwardRef=c,ye.Fragment=r,ye.Lazy=b,ye.Memo=f,ye.Portal=n,ye.Profiler=o,ye.StrictMode=i,ye.Suspense=d,ye.isAsyncMode=function(A){return E(A)||w(A)===u},ye.isConcurrentMode=E,ye.isContextConsumer=function(A){return w(A)===s},ye.isContextProvider=function(A){return w(A)===a},ye.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},ye.isForwardRef=function(A){return w(A)===c},ye.isFragment=function(A){return w(A)===r},ye.isLazy=function(A){return w(A)===b},ye.isMemo=function(A){return w(A)===f},ye.isPortal=function(A){return w(A)===n},ye.isProfiler=function(A){return w(A)===o},ye.isStrictMode=function(A){return w(A)===i},ye.isSuspense=function(A){return w(A)===d},ye.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===l||A===o||A===i||A===d||A===p||typeof A=="object"&&A!==null&&(A.$$typeof===b||A.$$typeof===f||A.$$typeof===a||A.$$typeof===s||A.$$typeof===c||A.$$typeof===I||A.$$typeof===v||A.$$typeof===P||A.$$typeof===g)},ye.typeOf=w,ye}var ve={};/** @license React v16.13.1
|
|
11
|
-
* react-is.development.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 ja;function Yd(){return ja||(ja=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function w(Y){return typeof Y=="string"||typeof Y=="function"||Y===r||Y===l||Y===o||Y===i||Y===d||Y===p||typeof Y=="object"&&Y!==null&&(Y.$$typeof===b||Y.$$typeof===f||Y.$$typeof===a||Y.$$typeof===s||Y.$$typeof===c||Y.$$typeof===I||Y.$$typeof===v||Y.$$typeof===P||Y.$$typeof===g)}function E(Y){if(typeof Y=="object"&&Y!==null){var Et=Y.$$typeof;switch(Et){case t:var st=Y.type;switch(st){case u:case l:case r:case o:case i:case d:return st;default:var Ot=st&&st.$$typeof;switch(Ot){case s:case c:case b:case f:case a:return Ot;default:return Et}}case n:return Et}}}var A=u,C=l,F=s,G=a,R=t,W=c,D=r,O=b,ne=f,ae=n,H=o,ee=i,de=d,be=!1;function Z(Y){return be||(be=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),m(Y)||E(Y)===u}function m(Y){return E(Y)===l}function j(Y){return E(Y)===s}function Q(Y){return E(Y)===a}function y(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===t}function pe(Y){return E(Y)===c}function re(Y){return E(Y)===r}function fe(Y){return E(Y)===b}function Ge(Y){return E(Y)===f}function Ce(Y){return E(Y)===n}function Le(Y){return E(Y)===o}function et(Y){return E(Y)===i}function at(Y){return E(Y)===d}ve.AsyncMode=A,ve.ConcurrentMode=C,ve.ContextConsumer=F,ve.ContextProvider=G,ve.Element=R,ve.ForwardRef=W,ve.Fragment=D,ve.Lazy=O,ve.Memo=ne,ve.Portal=ae,ve.Profiler=H,ve.StrictMode=ee,ve.Suspense=de,ve.isAsyncMode=Z,ve.isConcurrentMode=m,ve.isContextConsumer=j,ve.isContextProvider=Q,ve.isElement=y,ve.isForwardRef=pe,ve.isFragment=re,ve.isLazy=fe,ve.isMemo=Ge,ve.isPortal=Ce,ve.isProfiler=Le,ve.isStrictMode=et,ve.isSuspense=at,ve.isValidElementType=w,ve.typeOf=E}()),ve}process.env.NODE_ENV==="production"?Di.exports=Zd():Di.exports=Yd();var jd=Di.exports,Ja=jd,Jd={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_d={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_a={};_a[Ja.ForwardRef]=Jd,_a[Ja.Memo]=_d;var Ud=!0;function Qd(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var Ua=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Ud===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},$d=function(t,n,r){Ua(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 qd(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 Kd={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},ef=!1,tf=/[A-Z]|^ms/g,nf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qa=function(t){return t.charCodeAt(1)===45},$a=function(t){return t!=null&&typeof t!="boolean"},Li=Vd(function(e){return Qa(e)?e:e.replace(tf,"-$&").toLowerCase()}),qa=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(nf,function(r,i,o){return yt={name:i,styles:o,next:yt},i})}return Kd[t]!==1&&!Qa(t)&&typeof n=="number"&&n!==0?n+"px":n},rf="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function qn(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 yt={name:i.name,styles:i.styles,next:yt},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)yt={name:a.name,styles:a.styles,next:yt},a=a.next;var s=o.styles+";";return s}return of(e,t,n)}case"function":{if(e!==void 0){var u=yt,l=n(e);return yt=u,qn(e,t,l)}break}}var c=n;return c}function of(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=qn(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;$a(s)&&(r+=Li(o)+":"+qa(o,s)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&ef)throw new Error(rf);if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var u=0;u<a.length;u++)$a(a[u])&&(r+=Li(o)+":"+qa(o,a[u])+";");else{var l=qn(e,t,a);switch(o){case"animation":case"animationName":{r+=Li(o)+":"+l+";";break}default:r+=o+"{"+l+"}"}}}}return r}var Ka=/label:\s*([^\s;{]+)\s*(;|$)/g,yt;function es(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="";yt=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=qn(n,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=qn(n,t,e[s]),r){var u=o;i+=u[s]}Ka.lastIndex=0;for(var l="",c;(c=Ka.exec(i))!==null;)l+="-"+c[1];var d=qd(i)+l;return{name:d,styles:i,next:yt}}var af=function(t){return t()},sf=_.useInsertionEffect?_.useInsertionEffect:!1,uf=sf||af,lf=!1,ts=_.createContext(typeof HTMLElement<"u"?Wd({key:"css"}):null);ts.Provider;var cf=function(t){return B.forwardRef(function(n,r){var i=B.useContext(ts);return t(n,i,r)})},df=_.createContext({}),Xi={}.hasOwnProperty,zi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ff=function(t,n){var r={};for(var i in n)Xi.call(n,i)&&(r[i]=n[i]);return r[zi]=t,r},pf=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Ua(n,r,i),uf(function(){return $d(n,r,i)}),null},hf=cf(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[zi],o=[r],a="";typeof e.className=="string"?a=Qd(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=es(o,void 0,_.useContext(df));a+=t.key+"-"+s.name;var u={};for(var l in e)Xi.call(e,l)&&l!=="css"&&l!==zi&&!lf&&(u[l]=e[l]);return u.className=a,n&&(u.ref=n),_.createElement(_.Fragment,null,_.createElement(pf,{cache:t,serialized:s,isStringTag:typeof i=="string"}),_.createElement(i,u))}),gf=hf,U=function(t,n){var r=arguments;if(n==null||!Xi.call(n,"css"))return _.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=gf,o[1]=ff(t,n);for(var a=2;a<i;a++)o[a]=r[a];return _.createElement.apply(null,o)};function Hi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return es(t)}var mf=function(){var t=Hi.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function bf(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const yf=Math.min,vf=Math.max,Gr=Math.round,Or=Math.floor,Br=e=>({x:e,y:e});function If(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 Rr(){return typeof window<"u"}function ns(e){return is(e)?(e.nodeName||"").toLowerCase():"#document"}function Gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rs(e){var t;return(t=(is(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function is(e){return Rr()?e instanceof Node||e instanceof Gt(e).Node:!1}function Cf(e){return Rr()?e instanceof Element||e instanceof Gt(e).Element:!1}function Wi(e){return Rr()?e instanceof HTMLElement||e instanceof Gt(e).HTMLElement:!1}function os(e){return!Rr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Gt(e).ShadowRoot}function as(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Zi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function xf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Af(e){return["html","body","#document"].includes(ns(e))}function Zi(e){return Gt(e).getComputedStyle(e)}function Sf(e){if(ns(e)==="html")return e;const t=e.assignedSlot||e.parentNode||os(e)&&e.host||rs(e);return os(t)?t.host:t}function ss(e){const t=Sf(e);return Af(t)?e.ownerDocument?e.ownerDocument.body:e.body:Wi(t)&&as(t)?t:ss(t)}function Vr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=ss(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Gt(i);if(o){const s=Yi(a);return t.concat(a,a.visualViewport||[],as(i)?i:[],s&&n?Vr(s):[])}return t.concat(i,Vr(i,[],n))}function Yi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wf(e){const t=Zi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Wi(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Gr(n)!==o||Gr(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function ji(e){return Cf(e)?e:e.contextElement}function us(e){const t=ji(e);if(!Wi(t))return Br(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=wf(t);let a=(o?Gr(n.width):n.width)/r,s=(o?Gr(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Ef=Br(0);function Pf(e){const t=Gt(e);return!xf()||!t.visualViewport?Ef:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ff(e,t,n){return!1}function ls(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=ji(e);let a=Br(1);t&&(a=us(e));const s=Ff()?Pf(o):Br(0);let u=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){const p=Gt(o),f=r;let b=p,g=Yi(b);for(;g&&r&&f!==b;){const I=us(g),v=g.getBoundingClientRect(),P=Zi(g),w=v.left+(g.clientLeft+parseFloat(P.paddingLeft))*I.x,E=v.top+(g.clientTop+parseFloat(P.paddingTop))*I.y;u*=I.x,l*=I.y,c*=I.x,d*=I.y,u+=w,l+=E,b=Gt(g),g=Yi(b)}}return If({width:c,height:d,x:u,y:l})}function kf(e,t){let n=null,r;const i=rs(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),o();const{left:l,top:c,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f=Or(c),b=Or(i.clientWidth-(l+d)),g=Or(i.clientHeight-(c+p)),I=Or(l),P={rootMargin:-f+"px "+-b+"px "+-g+"px "+-I+"px",threshold:vf(0,yf(1,u))||1};let w=!0;function E(A){const C=A[0].intersectionRatio;if(C!==u){if(!w)return a();C?a(!1,C):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(E,{...P,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,P)}n.observe(e)}return a(!0),o}function Tf(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=ji(e),c=i||o?[...l?Vr(l):[],...Vr(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=l&&s?kf(l,n):null;let p=-1,f=null;a&&(f=new ResizeObserver(v=>{let[P]=v;P&&P.target===l&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),n()}),l&&!u&&f.observe(l),f.observe(t));let b,g=u?ls(e):null;u&&I();function I(){const v=ls(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,b=requestAnimationFrame(I)}return n(),()=>{var v;c.forEach(P=>{i&&P.removeEventListener("scroll",n),o&&P.removeEventListener("resize",n)}),d==null||d(),(v=f)==null||v.disconnect(),f=null,u&&cancelAnimationFrame(b)}}var Ji=B.useLayoutEffect,Gf=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Mr=function(){};function Of(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Bf(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(Of(e,a)));return o.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Nr=function(t){return Hf(t)?t.filter(Boolean):Kt(t)==="object"&&t!==null?[t]:[]},cs=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=gt(t,Gf);return J({},n)},Ee=function(t,n,r){var i=t.cx,o=t.getStyles,a=t.getClassNames,s=t.className;return{css:o(n,t),className:i(r??{},a(n,t),s)}};function Dr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Rf(e){return Dr(e)?window.innerHeight:e.clientHeight}function ds(e){return Dr(e)?window.pageYOffset:e.scrollTop}function Lr(e,t){if(Dr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Vf(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 Mf(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Xr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Mr,i=ds(e),o=t-i,a=10,s=0;function u(){s+=a;var l=Mf(s,i,o,n);Lr(e,l),s<n?window.requestAnimationFrame(u):r(e)}u()}function fs(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Lr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Lr(e,Math.max(t.offsetTop-i,0))}function Nf(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 ps(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Df(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var hs=!1,Lf={get passive(){return hs=!0}},zr=typeof window<"u"?window:{};zr.addEventListener&&zr.removeEventListener&&(zr.addEventListener("p",Mr,Lf),zr.removeEventListener("p",Mr,!1));var Xf=hs;function zf(e){return e!=null}function Hf(e){return Array.isArray(e)}function Kn(e,t,n){return e?t:n}function Cv(e){return e}function xv(e){return e}var Wf=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 s=Tt(a,1),u=s[0];return!r.includes(u)});return o.reduce(function(a,s){var u=Tt(s,2),l=u[0],c=u[1];return a[l]=c,a},{})},Zf=["children","innerProps"],Yf=["children","innerProps"];function jf(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=Vf(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=u.getBoundingClientRect(),d=c.height,p=n.getBoundingClientRect(),f=p.bottom,b=p.height,g=p.top,I=n.offsetParent.getBoundingClientRect(),v=I.top,P=a?window.innerHeight:Rf(u),w=ds(u),E=parseInt(getComputedStyle(n).marginBottom,10),A=parseInt(getComputedStyle(n).marginTop,10),C=v-A,F=P-g,G=C+w,R=d-w-g,W=f-P+w+E,D=w+g-A,O=160;switch(i){case"auto":case"bottom":if(F>=b)return{placement:"bottom",maxHeight:t};if(R>=b&&!a)return o&&Xr(u,W,O),{placement:"bottom",maxHeight:t};if(!a&&R>=r||a&&F>=r){o&&Xr(u,W,O);var ne=a?F-E:R-E;return{placement:"bottom",maxHeight:ne}}if(i==="auto"||a){var ae=t,H=a?C:G;return H>=r&&(ae=Math.min(H-E-s,t)),{placement:"top",maxHeight:ae}}if(i==="bottom")return o&&Lr(u,W),{placement:"bottom",maxHeight:t};break;case"top":if(C>=b)return{placement:"top",maxHeight:t};if(G>=b&&!a)return o&&Xr(u,D,O),{placement:"top",maxHeight:t};if(!a&&G>=r||a&&C>=r){var ee=t;return(!a&&G>=r||a&&C>=r)&&(ee=a?C-A:G-A),o&&Xr(u,D,O),{placement:"top",maxHeight:ee}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}function Jf(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var gs=function(t){return t==="auto"?"bottom":t},_f=function(t,n){var r,i=t.placement,o=t.theme,a=o.borderRadius,s=o.spacing,u=o.colors;return J((r={label:"menu"},Jn(r,Jf(i),"100%"),Jn(r,"position","absolute"),Jn(r,"width","100%"),Jn(r,"zIndex",1),r),n?{}:{backgroundColor:u.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},ms=B.createContext(null),Uf=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,u=t.theme,l=B.useContext(ms)||{},c=l.setPortalPlacement,d=B.useRef(null),p=B.useState(i),f=Tt(p,2),b=f[0],g=f[1],I=B.useState(null),v=Tt(I,2),P=v[0],w=v[1],E=u.spacing.controlHeight;return Ji(function(){var A=d.current;if(A){var C=a==="fixed",F=s&&!C,G=jf({maxHeight:i,menuEl:A,minHeight:r,placement:o,shouldScroll:F,isFixedPosition:C,controlHeight:E});g(G.maxHeight),w(G.placement),c==null||c(G.placement)}},[i,o,a,s,r,c,E]),n({ref:d,placerProps:J(J({},t),{},{placement:P||gs(o),maxHeight:b})})},Qf=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return U("div",$({},Ee(t,"menu",{menu:!0}),{ref:r},i),n)},$f=Qf,qf=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return J({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},Kf=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return U("div",$({},Ee(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},bs=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return J({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},ep=bs,tp=bs,np=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=gt(t,Zf);return U("div",$({},Ee(J(J({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},rp=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=gt(t,Yf);return U("div",$({},Ee(J(J({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},ip=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}},op=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,a=t.menuPlacement,s=t.menuPosition,u=B.useRef(null),l=B.useRef(null),c=B.useState(gs(a)),d=Tt(c,2),p=d[0],f=d[1],b=B.useMemo(function(){return{setPortalPlacement:f}},[]),g=B.useState(null),I=Tt(g,2),v=I[0],P=I[1],w=B.useCallback(function(){if(i){var F=Nf(i),G=s==="fixed"?0:window.pageYOffset,R=F[p]+G;(R!==(v==null?void 0:v.offset)||F.left!==(v==null?void 0:v.rect.left)||F.width!==(v==null?void 0:v.rect.width))&&P({offset:R,rect:F})}},[i,s,p,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);Ji(function(){w()},[w]);var E=B.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),i&&u.current&&(l.current=Tf(i,u.current,w,{elementResize:"ResizeObserver"in window}))},[i,w]);Ji(function(){E()},[E]);var A=B.useCallback(function(F){u.current=F,E()},[E]);if(!n&&s!=="fixed"||!v)return null;var C=U("div",$({ref:A},Ee(J(J({},t),{},{offset:v.offset,position:s,rect:v.rect}),"menuPortal",{"menu-portal":!0}),o),r);return U(ms.Provider,{value:b},n?mn.createPortal(C,n):C)},ap=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},sp=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return U("div",$({},Ee(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},up=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return J({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")})},lp=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return U("div",$({},Ee(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},cp=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},dp=function(t){var n=t.children,r=t.innerProps;return U("div",$({},Ee(t,"indicatorsContainer",{indicators:!0}),r),n)},ys,fp=["size"],pp=["innerProps","isRtl","size"];function hp(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var gp=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvb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4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:hp},vs=function(t){var n=t.size,r=gt(t,fp);return U("svg",$({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:gp},r))},_i=function(t){return U(vs,$({size:20},t),U("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"}))},Is=function(t){return U(vs,$({size:20},t),U("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"}))},Cs=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return J({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:o*2,":hover":{color:r?a.neutral80:a.neutral40}})},mp=Cs,bp=function(t){var n=t.children,r=t.innerProps;return U("div",$({},Ee(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||U(Is,null))},yp=Cs,vp=function(t){var n=t.children,r=t.innerProps;return U("div",$({},Ee(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||U(_i,null))},Ip=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return J({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},Cp=function(t){var n=t.innerProps;return U("span",$({},n,Ee(t,"indicatorSeparator",{"indicator-separator":!0})))},xp=mf(ys||(ys=bf([`
|
|
18
|
-
0%, 80%, 100% { opacity: 0; }
|
|
19
|
-
40% { opacity: 1; }
|
|
20
|
-
`]))),Ap=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,a=o.colors,s=o.spacing.baseUnit;return J({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:s*2})},Ui=function(t){var n=t.delay,r=t.offset;return U("span",{css:Hi({animation:"".concat(xp," 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"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+ICh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BCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Sp=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,a=gt(t,pp);return U("div",$({},Ee(J(J({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),U(Ui,{delay:0,offset:r}),U(Ui,{delay:160,offset:!0}),U(Ui,{delay:320,offset:!r}))},wp=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,a=o.colors,s=o.borderRadius,u=o.spacing;return J({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.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:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},Ep=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return U("div",$({ref:o},Ee(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},Pp=Ep,Fp=["data"],kp=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},Tp=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,a=t.Heading,s=t.headingProps,u=t.innerProps,l=t.label,c=t.theme,d=t.selectProps;return U("div",$({},Ee(t,"group",{group:!0}),u),U(a,$({},s,{selectProps:d,theme:c,getStyles:i,getClassNames:o,cx:r}),l),U("div",null,n))},Gp=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return J({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"})},Op=function(t){var n=cs(t);n.data;var r=gt(n,Fp);return U("div",$({},Ee(t,"groupHeading",{"group-heading":!0}),r))},Bp=Tp,Rp=["innerRef","isDisabled","isHidden","inputClassName"],Vp=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,a=o.spacing,s=o.colors;return J(J({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},Mp),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},xs={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Mp={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":J({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},xs)},Np=function(t){return J({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},xs)},Dp=function(t){var n=t.cx,r=t.value,i=cs(t),o=i.innerRef,a=i.isDisabled,s=i.isHidden,u=i.inputClassName,l=gt(i,Rp);return U("div",$({},Ee(t,"input",{"input-container":!0}),{"data-value":r||""}),U("input",$({className:n({input:!0},u),ref:o,style:Np(s),disabled:a},l)))},Lp=Dp,Xp=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors;return J({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},zp=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return J({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})},Hp=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors,s=t.isFocused;return J({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},As=function(t){var n=t.children,r=t.innerProps;return U("div",r,n)},Wp=As,Zp=As;function Yp(e){var t=e.children,n=e.innerProps;return U("div",$({role:"button"},n),t||U(_i,{size:14}))}var jp=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,a=t.isDisabled,s=t.removeProps,u=t.selectProps,l=r.Container,c=r.Label,d=r.Remove;return U(l,{data:i,innerProps:J(J({},Ee(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:u},U(c,{data:i,innerProps:J({},Ee(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},n),U(d,{data:i,innerProps:J(J({},Ee(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:u}))},Jp=jp,_p=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.theme,s=a.spacing,u=a.colors;return J({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?u.primary:i?u.primary25:"transparent",color:r?u.neutral20:o?u.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?u.primary:u.primary50}})},Up=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.innerRef,s=t.innerProps;return U("div",$({},Ee(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},s),n)},Qp=Up,$p=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return J({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},qp=function(t){var n=t.children,r=t.innerProps;return U("div",$({},Ee(t,"placeholder",{placeholder:!0}),r),n)},Kp=qp,eh=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,a=i.colors;return J({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})},th=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return U("div",$({},Ee(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},nh=th,Hr={ClearIndicator:vp,Control:Pp,DropdownIndicator:bp,DownChevron:Is,CrossIcon:_i,Group:Bp,GroupHeading:Op,IndicatorsContainer:dp,IndicatorSeparator:Cp,Input:Lp,LoadingIndicator:Sp,Menu:$f,MenuList:Kf,MenuPortal:op,LoadingMessage:rp,NoOptionsMessage:np,MultiValue:Jp,MultiValueContainer:Wp,MultiValueLabel:Zp,MultiValueRemove:Yp,Option:Qp,Placeholder:Kp,SelectContainer:sp,SingleValue:nh,ValueContainer:lp},rh=function(t){return J(J({},Hr),t.components)},Ss=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ih(e,t){return!!(e===t||Ss(e)&&Ss(t))}function oh(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!ih(e[n],t[n]))return!1;return!0}function ah(e,t){t===void 0&&(t=oh);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}function sh(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var uh=process.env.NODE_ENV==="production"?{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"}:{name:"1f43avz-a11yText-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;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:sh},lh=function(t){return U("span",$({css:uh},t))},ws=lh,ch={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,s=t.selectValue,u=t.isDisabled,l=t.isSelected,c=t.isAppleDevice,d=function(g,I){return g&&g.length?"".concat(g.indexOf(I)+1," of ").concat(g.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(d(s,r),".");if(n==="menu"&&c){var p=u?" disabled":"",f="".concat(l?" selected":"").concat(p);return"".concat(a).concat(f,", ").concat(d(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},dh=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,s=t.selectValue,u=t.selectProps,l=t.id,c=t.isAppleDevice,d=u.ariaLiveMessages,p=u.getOptionLabel,f=u.inputValue,b=u.isMulti,g=u.isOptionDisabled,I=u.isSearchable,v=u.menuIsOpen,P=u.options,w=u.screenReaderStatus,E=u.tabSelectsValue,A=u.isLoading,C=u["aria-label"],F=u["aria-live"],G=B.useMemo(function(){return J(J({},ch),d||{})},[d]),R=B.useMemo(function(){var H="";if(n&&G.onChange){var ee=n.option,de=n.options,be=n.removedValue,Z=n.removedValues,m=n.value,j=function(Ce){return Array.isArray(Ce)?null:Ce},Q=be||ee||j(m),y=Q?p(Q):"",pe=de||Z||void 0,re=pe?pe.map(p):[],fe=J({isDisabled:Q&&g(Q,s),label:y,labels:re},n);H=G.onChange(fe)}return H},[n,G,g,s,p]),W=B.useMemo(function(){var H="",ee=r||i,de=!!(r&&s&&s.includes(r));if(ee&&G.onFocus){var be={focused:ee,label:p(ee),isDisabled:g(ee,s),isSelected:de,options:o,context:ee===r?"menu":"value",selectValue:s,isAppleDevice:c};H=G.onFocus(be)}return H},[r,i,p,g,G,o,s,c]),D=B.useMemo(function(){var H="";if(v&&P.length&&!A&&G.onFilter){var ee=w({count:o.length});H=G.onFilter({inputValue:f,resultsMessage:ee})}return H},[o,f,v,G,P,w,A]),O=(n==null?void 0:n.action)==="initial-input-focus",ne=B.useMemo(function(){var H="";if(G.guidance){var ee=i?"value":v?"menu":"input";H=G.guidance({"aria-label":C,context:ee,isDisabled:r&&g(r,s),isMulti:b,isSearchable:I,tabSelectsValue:E,isInitialFocus:O})}return H},[C,r,i,b,g,I,v,G,s,E,O]),ae=U(B.Fragment,null,U("span",{id:"aria-selection"},R),U("span",{id:"aria-focused"},W),U("span",{id:"aria-results"},D),U("span",{id:"aria-guidance"},ne));return U(B.Fragment,null,U(ws,{id:l},O&&ae),U(ws,{"aria-live":F,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!O&&ae))},fh=dh,Qi=[{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źẑżžẓẕƶȥɀⱬꝣ"}],ph=new RegExp("["+Qi.map(function(e){return e.letters}).join("")+"]","g"),Es={},$i=0;$i<Qi.length;$i++)for(var qi=Qi[$i],Ki=0;Ki<qi.letters.length;Ki++)Es[qi.letters[Ki]]=qi.base;var Ps=function(t){return t.replace(ph,function(n){return Es[n]})},hh=ah(Ps),Fs=function(t){return t.replace(/^\s+|\s+$/g,"")},gh=function(t){return"".concat(t.label," ").concat(t.value)},mh=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=J({ignoreCase:!0,ignoreAccents:!0,stringify:gh,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,a=i.ignoreAccents,s=i.stringify,u=i.trim,l=i.matchFrom,c=u?Fs(r):r,d=u?Fs(s(n)):s(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),a&&(c=hh(c),d=Ps(d)),l==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},bh=["innerRef"];function yh(e){var t=e.innerRef,n=gt(e,bh),r=Wf(n,"onExited","in","enter","exit","appear");return U("input",$({ref:t},r,{css:Hi({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)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXND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IDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var vh=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Ih(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=B.useRef(!1),s=B.useRef(!1),u=B.useRef(0),l=B.useRef(null),c=B.useCallback(function(I,v){if(l.current!==null){var P=l.current,w=P.scrollTop,E=P.scrollHeight,A=P.clientHeight,C=l.current,F=v>0,G=E-A-w,R=!1;G>v&&a.current&&(r&&r(I),a.current=!1),F&&s.current&&(o&&o(I),s.current=!1),F&&v>G?(n&&!a.current&&n(I),C.scrollTop=E,R=!0,a.current=!0):!F&&-v>w&&(i&&!s.current&&i(I),C.scrollTop=0,R=!0,s.current=!0),R&&vh(I)}},[n,r,i,o]),d=B.useCallback(function(I){c(I,I.deltaY)},[c]),p=B.useCallback(function(I){u.current=I.changedTouches[0].clientY},[]),f=B.useCallback(function(I){var v=u.current-I.changedTouches[0].clientY;c(I,v)},[c]),b=B.useCallback(function(I){if(I){var v=Xf?{passive:!1}:!1;I.addEventListener("wheel",d,v),I.addEventListener("touchstart",p,v),I.addEventListener("touchmove",f,v)}},[f,p,d]),g=B.useCallback(function(I){I&&(I.removeEventListener("wheel",d,!1),I.removeEventListener("touchstart",p,!1),I.removeEventListener("touchmove",f,!1))},[f,p,d]);return B.useEffect(function(){if(t){var I=l.current;return b(I),function(){g(I)}}},[t,b,g]),function(I){l.current=I}}var ks=["boxSizing","height","overflow","paddingRight","position"],Ts={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Gs(e){e.cancelable&&e.preventDefault()}function Os(e){e.stopPropagation()}function Bs(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Rs(){return"ontouchstart"in window||navigator.maxTouchPoints}var Vs=!!(typeof window<"u"&&window.document&&window.document.createElement),er=0,An={capture:!1,passive:!1};function Ch(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=B.useRef({}),o=B.useRef(null),a=B.useCallback(function(u){if(Vs){var l=document.body,c=l&&l.style;if(r&&ks.forEach(function(b){var g=c&&c[b];i.current[b]=g}),r&&er<1){var d=parseInt(i.current.paddingRight,10)||0,p=document.body?document.body.clientWidth:0,f=window.innerWidth-p+d||0;Object.keys(Ts).forEach(function(b){var g=Ts[b];c&&(c[b]=g)}),c&&(c.paddingRight="".concat(f,"px"))}l&&Rs()&&(l.addEventListener("touchmove",Gs,An),u&&(u.addEventListener("touchstart",Bs,An),u.addEventListener("touchmove",Os,An))),er+=1}},[r]),s=B.useCallback(function(u){if(Vs){var l=document.body,c=l&&l.style;er=Math.max(er-1,0),r&&er<1&&ks.forEach(function(d){var p=i.current[d];c&&(c[d]=p)}),l&&Rs()&&(l.removeEventListener("touchmove",Gs,An),u&&(u.removeEventListener("touchstart",Bs,An),u.removeEventListener("touchmove",Os,An)))}},[r]);return B.useEffect(function(){if(t){var u=o.current;return a(u),function(){s(u)}}},[t,a,s]),function(u){o.current=u}}function xh(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Ah=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Sh=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPz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gb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:xh};function wh(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,u=e.onTopLeave,l=Ih({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:s,onTopLeave:u}),c=Ch({isEnabled:n}),d=function(f){l(f),c(f)};return U(B.Fragment,null,n&&U("div",{onClick:Ah,css:Sh}),t(d))}function Eh(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Ph=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:Eh},Fh=function(t){var n=t.name,r=t.onFocus;return U("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Ph,value:"",onChange:function(){}})},kh=Fh;function eo(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 Th(){return eo(/^iPhone/i)}function Ms(){return eo(/^Mac/i)}function Gh(){return eo(/^iPad/i)||Ms()&&navigator.maxTouchPoints>1}function Oh(){return Th()||Gh()}function Bh(){return Ms()||Oh()}var Rh=function(t){return t.label},Ns=function(t){return t.label},Ds=function(t){return t.value},Vh=function(t){return!!t.isDisabled},Mh={clearIndicator:yp,container:ap,control:wp,dropdownIndicator:mp,group:kp,groupHeading:Gp,indicatorsContainer:cp,indicatorSeparator:Ip,input:Vp,loadingIndicator:Ap,loadingMessage:tp,menu:_f,menuList:qf,menuPortal:ip,multiValue:Xp,multiValueLabel:zp,multiValueRemove:Hp,noOptionsMessage:ep,option:_p,placeholder:$p,singleValue:eh,valueContainer:up};function Nh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=J({},e);return Object.keys(t).forEach(function(r){var i=r;e[i]?n[i]=function(o,a){return t[i](e[i](o,a),a)}:n[i]=t[i]}),n}var Dh={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%)"},Lh=4,Ls=4,Xh=38,zh=Ls*2,Hh={baseUnit:Ls,controlHeight:Xh,menuGutter:zh},Sn={borderRadius:Lh,colors:Dh,spacing:Hh},Wh={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ps(),captureMenuScroll:!ps(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:mh(),formatGroupLabel:Rh,getOptionLabel:Ns,getOptionValue:Ds,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Vh,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Df(),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 Xs(e,t,n,r){var i=Ys(e,t,n),o=js(e,t,n),a=Zs(e,t),s=Zr(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function Wr(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(a,s){return Xs(e,a,t,s)}).filter(function(a){return Ws(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=Xs(e,n,t,r);return Ws(e,o)?o:void 0}).filter(zf)}function zs(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,vn(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Hs(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,vn(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 Zh(e,t){return zs(Wr(e,t))}function Ws(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!_s(e)||!o)&&Js(e,{label:a,value:s,data:i},r)}function Yh(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 jh(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var to=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},Zs=function(t,n){return t.getOptionLabel(n)},Zr=function(t,n){return t.getOptionValue(n)};function Ys(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function js(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Zr(e,t);return n.some(function(i){return Zr(e,i)===r})}function Js(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var _s=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},Jh=1,no=function(e){ad(n,e);var t=ld(n);function n(r){var i;if(id(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=Bh(),i.controlRef=null,i.getControlRef=function(u){i.controlRef=u},i.focusedOptionRef=null,i.getFocusedOptionRef=function(u){i.focusedOptionRef=u},i.menuListRef=null,i.getMenuListRef=function(u){i.menuListRef=u},i.inputRef=null,i.getInputRef=function(u){i.inputRef=u},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(u,l){var c=i.props,d=c.onChange,p=c.name;l.name=p,i.ariaOnChange(u,l),d(u,l)},i.setValue=function(u,l,c){var d=i.props,p=d.closeMenuOnSelect,f=d.isMulti,b=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:b}),p&&(i.setState({inputIsHiddenAfterUpdate:!f}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(u,{action:l,option:c})},i.selectOption=function(u){var l=i.props,c=l.blurInputOnSelect,d=l.isMulti,p=l.name,f=i.state.selectValue,b=d&&i.isOptionSelected(u,f),g=i.isOptionDisabled(u,f);if(b){var I=i.getOptionValue(u);i.setValue(f.filter(function(v){return i.getOptionValue(v)!==I}),"deselect-option",u)}else if(!g)d?i.setValue([].concat(vn(f),[u]),"select-option",u):i.setValue(u,"select-option");else{i.ariaOnChange(u,{action:"select-option",option:u,name:p});return}c&&i.blurInput()},i.removeValue=function(u){var l=i.props.isMulti,c=i.state.selectValue,d=i.getOptionValue(u),p=c.filter(function(b){return i.getOptionValue(b)!==d}),f=Kn(l,p,p[0]||null);i.onChange(f,{action:"remove-value",removedValue:u}),i.focusInput()},i.clearValue=function(){var u=i.state.selectValue;i.onChange(Kn(i.props.isMulti,[],null),{action:"clear",removedValues:u})},i.popValue=function(){var u=i.props.isMulti,l=i.state.selectValue,c=l[l.length-1],d=l.slice(0,l.length-1),p=Kn(u,d,d[0]||null);c&&i.onChange(p,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(u){return to(i.state.focusableOptionsWithIds,u)},i.getFocusableOptionsWithIds=function(){return Hs(Wr(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];return Bf.apply(void 0,[i.props.classNamePrefix].concat(l))},i.getOptionLabel=function(u){return Zs(i.props,u)},i.getOptionValue=function(u){return Zr(i.props,u)},i.getStyles=function(u,l){var c=i.props.unstyled,d=Mh[u](l,c);d.boxSizing="border-box";var p=i.props.styles[u];return p?p(d,l):d},i.getClassNames=function(u,l){var c,d;return(c=(d=i.props.classNames)[u])===null||c===void 0?void 0:c.call(d,l)},i.getElementId=function(u){return"".concat(i.state.instancePrefix,"-").concat(u)},i.getComponents=function(){return rh(i.props)},i.buildCategorizedOptions=function(){return Wr(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return zs(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(u,l){i.setState({ariaSelection:J({value:u},l)})},i.onMenuMouseDown=function(u){u.button===0&&(u.stopPropagation(),u.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(u){i.blockOptionHover=!1},i.onControlMouseDown=function(u){if(!u.defaultPrevented){var l=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?u.target.tagName!=="INPUT"&&u.target.tagName!=="TEXTAREA"&&i.onMenuClose():l&&i.openMenu("first"):(l&&(i.openAfterFocus=!0),i.focusInput()),u.target.tagName!=="INPUT"&&u.target.tagName!=="TEXTAREA"&&u.preventDefault()}},i.onDropdownIndicatorMouseDown=function(u){if(!(u&&u.type==="mousedown"&&u.button!==0)&&!i.props.isDisabled){var l=i.props,c=l.isMulti,d=l.menuIsOpen;i.focusInput(),d?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),u.preventDefault()}},i.onClearIndicatorMouseDown=function(u){u&&u.type==="mousedown"&&u.button!==0||(i.clearValue(),u.preventDefault(),i.openAfterFocus=!1,u.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(u){typeof i.props.closeMenuOnScroll=="boolean"?u.target instanceof HTMLElement&&Dr(u.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(u)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(u){var l=u.touches,c=l&&l.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(u){var l=u.touches,c=l&&l.item(0);if(c){var d=Math.abs(c.clientX-i.initialTouchX),p=Math.abs(c.clientY-i.initialTouchY),f=5;i.userIsDragging=d>f||p>f}},i.onTouchEnd=function(u){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(u.target)&&i.menuListRef&&!i.menuListRef.contains(u.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(u){i.userIsDragging||i.onControlMouseDown(u)},i.onClearIndicatorTouchEnd=function(u){i.userIsDragging||i.onClearIndicatorMouseDown(u)},i.onDropdownIndicatorTouchEnd=function(u){i.userIsDragging||i.onDropdownIndicatorMouseDown(u)},i.handleInputChange=function(u){var l=i.props.inputValue,c=u.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:l}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(u){i.props.onFocus&&i.props.onFocus(u),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(u){var l=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(u),i.onInputChange("",{action:"input-blur",prevInputValue:l}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(u){if(!(i.blockOptionHover||i.state.focusedOption===u)){var l=i.getFocusableOptions(),c=l.indexOf(u);i.setState({focusedOption:u,focusedOptionId:c>-1?i.getFocusedOptionId(u):null})}},i.shouldHideSelectedOptions=function(){return _s(i.props)},i.onValueInputFocus=function(u){u.preventDefault(),u.stopPropagation(),i.focus()},i.onKeyDown=function(u){var l=i.props,c=l.isMulti,d=l.backspaceRemovesValue,p=l.escapeClearsValue,f=l.inputValue,b=l.isClearable,g=l.isDisabled,I=l.menuIsOpen,v=l.onKeyDown,P=l.tabSelectsValue,w=l.openMenuOnFocus,E=i.state,A=E.focusedOption,C=E.focusedValue,F=E.selectValue;if(!g&&!(typeof v=="function"&&(v(u),u.defaultPrevented))){switch(i.blockOptionHover=!0,u.key){case"ArrowLeft":if(!c||f)return;i.focusValue("previous");break;case"ArrowRight":if(!c||f)return;i.focusValue("next");break;case"Delete":case"Backspace":if(f)return;if(C)i.removeValue(C);else{if(!d)return;c?i.popValue():b&&i.clearValue()}break;case"Tab":if(i.isComposing||u.shiftKey||!I||!P||!A||w&&i.isOptionSelected(A,F))return;i.selectOption(A);break;case"Enter":if(u.keyCode===229)break;if(I){if(!A||i.isComposing)return;i.selectOption(A);break}return;case"Escape":I?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:f}),i.onMenuClose()):b&&p&&i.clearValue();break;case" ":if(f)return;if(!I){i.openMenu("first");break}if(!A)return;i.selectOption(A);break;case"ArrowUp":I?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":I?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!I)return;i.focusOption("pageup");break;case"PageDown":if(!I)return;i.focusOption("pagedown");break;case"Home":if(!I)return;i.focusOption("first");break;case"End":if(!I)return;i.focusOption("last");break;default:return}u.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++Jh),i.state.selectValue=Nr(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),s=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=a[s],i.state.focusedOptionId=to(o,a[s])}return i}return od(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&&fs(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,s=o.menuIsOpen,u=this.state.isFocused;(u&&!a&&i.isDisabled||u&&s&&!i.menuIsOpen)&&this.focusInput(),u&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(fs(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,s=a.selectValue,u=a.isFocused,l=this.buildFocusableOptions(),c=i==="first"?0:l.length-1;if(!this.props.isMulti){var d=l.indexOf(s[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[c],focusedOptionId:this.getFocusedOptionId(l[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,s=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=a.indexOf(s);s||(u=-1);var l=a.length-1,c=-1;if(a.length){switch(i){case"previous":u===0?c=0:u===-1?c=l:c=u-1;break;case"next":u>-1&&u<l&&(c=u+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,s=this.getFocusableOptions();if(s.length){var u=0,l=s.indexOf(a);a||(l=-1),i==="up"?u=l>0?l-1:s.length-1:i==="down"?u=(l+1)%s.length:i==="pageup"?(u=l-o,u<0&&(u=0)):i==="pagedown"?(u=l+o,u>s.length-1&&(u=s.length-1)):i==="last"&&(u=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[u],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[u])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Sn):J(J({},Sn),this.props.theme):Sn}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,s=this.getClassNames,u=this.getValue,l=this.selectOption,c=this.setValue,d=this.props,p=d.isMulti,f=d.isRtl,b=d.options,g=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getClassNames:s,getValue:u,hasValue:g,isMulti:p,isRtl:f,options:b,selectOption:l,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 Ys(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return js(this.props,i,o)}},{key:"filterOption",value:function(i,o){return Js(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:s})}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,s=i.inputId,u=i.inputValue,l=i.tabIndex,c=i.form,d=i.menuIsOpen,p=i.required,f=this.getComponents(),b=f.Input,g=this.state,I=g.inputIsHidden,v=g.ariaSelection,P=this.commonProps,w=s||this.getElementId("input"),E=J(J(J({"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":p,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(v==null?void 0:v.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?_.createElement(b,$({},P,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:w,innerRef:this.getInputRef,isDisabled:o,isHidden:I,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:u},E)):_.createElement(yh,$({id:w,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Mr,onFocus:this.onInputFocus,disabled:o,tabIndex:l,inputMode:"none",form:c,value:""},E))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,s=o.MultiValueContainer,u=o.MultiValueLabel,l=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,p=this.commonProps,f=this.props,b=f.controlShouldRenderValue,g=f.isDisabled,I=f.isMulti,v=f.inputValue,P=f.placeholder,w=this.state,E=w.selectValue,A=w.focusedValue,C=w.isFocused;if(!this.hasValue()||!b)return v?null:_.createElement(d,$({},p,{key:"placeholder",isDisabled:g,isFocused:C,innerProps:{id:this.getElementId("placeholder")}}),P);if(I)return E.map(function(G,R){var W=G===A,D="".concat(i.getOptionLabel(G),"-").concat(i.getOptionValue(G));return _.createElement(a,$({},p,{components:{Container:s,Label:u,Remove:l},isFocused:W,isDisabled:g,key:D,index:R,removeProps:{onClick:function(){return i.removeValue(G)},onTouchEnd:function(){return i.removeValue(G)},onMouseDown:function(ne){ne.preventDefault()}},data:G}),i.formatOptionLabel(G,"value"))});if(v)return null;var F=E[0];return _.createElement(c,$({},p,{data:F,isDisabled:g}),this.formatOptionLabel(F,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,s=this.props,u=s.isDisabled,l=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||u||!this.hasValue()||l)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return _.createElement(o,$({},a,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,s=this.props,u=s.isDisabled,l=s.isLoading,c=this.state.isFocused;if(!o||!l)return null;var d={"aria-hidden":"true"};return _.createElement(o,$({},a,{innerProps:d,isDisabled:u,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var s=this.commonProps,u=this.props.isDisabled,l=this.state.isFocused;return _.createElement(a,$({},s,{isDisabled:u,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return _.createElement(o,$({},a,{innerProps:l,isDisabled:s,isFocused:u}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,s=o.GroupHeading,u=o.Menu,l=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,p=o.NoOptionsMessage,f=o.Option,b=this.commonProps,g=this.state.focusedOption,I=this.props,v=I.captureMenuScroll,P=I.inputValue,w=I.isLoading,E=I.loadingMessage,A=I.minMenuHeight,C=I.maxMenuHeight,F=I.menuIsOpen,G=I.menuPlacement,R=I.menuPosition,W=I.menuPortalTarget,D=I.menuShouldBlockScroll,O=I.menuShouldScrollIntoView,ne=I.noOptionsMessage,ae=I.onMenuScrollToTop,H=I.onMenuScrollToBottom;if(!F)return null;var ee=function(y,pe){var re=y.type,fe=y.data,Ge=y.isDisabled,Ce=y.isSelected,Le=y.label,et=y.value,at=g===fe,Y=Ge?void 0:function(){return i.onOptionHover(fe)},Et=Ge?void 0:function(){return i.selectOption(fe)},st="".concat(i.getElementId("option"),"-").concat(pe),Ot={id:st,onClick:Et,onMouseMove:Y,onMouseOver:Y,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:Ce};return _.createElement(f,$({},b,{innerProps:Ot,data:fe,isDisabled:Ge,isSelected:Ce,key:st,label:Le,type:re,value:et,isFocused:at,innerRef:at?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(y.data,"menu"))},de;if(this.hasOptions())de=this.getCategorizedOptions().map(function(Q){if(Q.type==="group"){var y=Q.data,pe=Q.options,re=Q.index,fe="".concat(i.getElementId("group"),"-").concat(re),Ge="".concat(fe,"-heading");return _.createElement(a,$({},b,{key:fe,data:y,options:pe,Heading:s,headingProps:{id:Ge,data:Q.data},label:i.formatGroupLabel(Q.data)}),Q.options.map(function(Ce){return ee(Ce,"".concat(re,"-").concat(Ce.index))}))}else if(Q.type==="option")return ee(Q,"".concat(Q.index))});else if(w){var be=E({inputValue:P});if(be===null)return null;de=_.createElement(d,b,be)}else{var Z=ne({inputValue:P});if(Z===null)return null;de=_.createElement(p,b,Z)}var m={minMenuHeight:A,maxMenuHeight:C,menuPlacement:G,menuPosition:R,menuShouldScrollIntoView:O},j=_.createElement(Uf,$({},b,m),function(Q){var y=Q.ref,pe=Q.placerProps,re=pe.placement,fe=pe.maxHeight;return _.createElement(u,$({},b,m,{innerRef:y,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:w,placement:re}),_.createElement(wh,{captureEnabled:v,onTopArrive:ae,onBottomArrive:H,lockEnabled:D},function(Ge){return _.createElement(l,$({},b,{innerRef:function(Le){i.getMenuListRef(Le),Ge(Le)},innerProps:{role:"listbox","aria-multiselectable":b.isMulti,id:i.getElementId("listbox")},isLoading:w,maxHeight:fe,focusedOption:g}),de)}))});return W||R==="fixed"?_.createElement(c,$({},b,{appendTo:W,controlElement:this.controlRef,menuPlacement:G,menuPosition:R}),j):j}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,s=o.isDisabled,u=o.isMulti,l=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!s)return _.createElement(kh,{name:l,onFocus:this.onValueInputFocus});if(!(!l||s))if(u)if(a){var p=d.map(function(g){return i.getOptionValue(g)}).join(a);return _.createElement("input",{name:l,type:"hidden",value:p})}else{var f=d.length>0?d.map(function(g,I){return _.createElement("input",{key:"i-".concat(I),name:l,type:"hidden",value:i.getOptionValue(g)})}):_.createElement("input",{name:l,type:"hidden",value:""});return _.createElement("div",null,f)}else{var b=d[0]?this.getOptionValue(d[0]):"";return _.createElement("input",{name:l,type:"hidden",value:b})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,s=o.focusedOption,u=o.focusedValue,l=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return _.createElement(fh,$({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:u,isFocused:l,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,s=i.SelectContainer,u=i.ValueContainer,l=this.props,c=l.className,d=l.id,p=l.isDisabled,f=l.menuIsOpen,b=this.state.isFocused,g=this.commonProps=this.getCommonProps();return _.createElement(s,$({},g,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:p,isFocused:b}),this.renderLiveRegion(),_.createElement(o,$({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:p,isFocused:b,menuIsOpen:f}),_.createElement(u,$({},g,{isDisabled:p}),this.renderPlaceholderOrValue(),this.renderInput()),_.createElement(a,$({},g,{isDisabled:p}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,s=o.clearFocusValueOnUpdate,u=o.inputIsHiddenAfterUpdate,l=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,p=o.instancePrefix,f=i.options,b=i.value,g=i.menuIsOpen,I=i.inputValue,v=i.isMulti,P=Nr(b),w={};if(a&&(b!==a.value||f!==a.options||g!==a.menuIsOpen||I!==a.inputValue)){var E=g?Zh(i,P):[],A=g?Hs(Wr(i,P),"".concat(p,"-option")):[],C=s?Yh(o,P):null,F=jh(o,E),G=to(A,F);w={selectValue:P,focusedOption:F,focusedOptionId:G,focusableOptionsWithIds:A,focusedValue:C,clearFocusValueOnUpdate:!1}}var R=u!=null&&i!==a?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},W=l,D=c&&d;return c&&!D&&(W={value:Kn(v,P,P[0]||null),options:P,action:"initial-input-focus"},D=!d),(l==null?void 0:l.action)==="initial-input-focus"&&(W=null),J(J(J({},w),R),{},{prevProps:i,ariaSelection:W,prevWasFocused:D})}}]),n}(B.Component);no.defaultProps=Wh;var _h=B.forwardRef(function(e,t){var n=Oa(e);return _.createElement(no,$({ref:t},n))}),Yr=_h;const jr={borderRadius:4,colors:{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%)"},boxShadow:{button:"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px",card:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",dropdown:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",input:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},spacing:{baseUnit:4,controlHeight:32,menuGutter:8}},Us={colors:{},spacing:{baseUnit:4,controlHeight:32,menuGutter:8},boxShadow:{button:"none",input:"none",card:"none",dropdown:"none"}};function Qs(e){if(!e)return Sn;const t=typeof e=="function"?e(jr):e,{colors:n,spacing:r,borderRadius:i}=Jr(Sn,t);return{borderRadius:typeof i!="number"?Sn.borderRadius:i,colors:n,spacing:r}}function Jr(e,...t){const n={borderRadius:e.borderRadius,colors:{...e.colors},spacing:{...e.spacing},boxShadow:{...e.boxShadow}};for(const r of t)r&&(n.borderRadius=r.borderRadius??n.borderRadius,Object.assign(n.boxShadow,r.boxShadow),Object.assign(n.colors,r.colors),Object.assign(n.spacing,r.spacing));return n}function Av(){}function Sv(){}function Uh(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Qh=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$h=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qh={};function $s(e,t){return(qh.jsx?$h:Qh).test(e)}const Kh=/[ \t\n\f\r]/g;function eg(e){return typeof e=="object"?e.type==="text"?qs(e.value):!1:qs(e)}function qs(e){return e.replace(Kh,"")===""}class tr{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}tr.prototype.property={},tr.prototype.normal={},tr.prototype.space=null;function Ks(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new tr(n,r,t)}function ro(e){return e.toLowerCase()}class rt{constructor(t,n){this.property=t,this.attribute=n}}rt.prototype.space=null,rt.prototype.boolean=!1,rt.prototype.booleanish=!1,rt.prototype.overloadedBoolean=!1,rt.prototype.number=!1,rt.prototype.commaSeparated=!1,rt.prototype.spaceSeparated=!1,rt.prototype.commaOrSpaceSeparated=!1,rt.prototype.mustUseProperty=!1,rt.prototype.defined=!1;let tg=0;const ie=en(),Te=en(),eu=en(),V=en(),xe=en(),wn=en(),Qe=en();function en(){return 2**++tg}const io=Object.freeze(Object.defineProperty({__proto__:null,boolean:ie,booleanish:Te,commaOrSpaceSeparated:Qe,commaSeparated:wn,number:V,overloadedBoolean:eu,spaceSeparated:xe},Symbol.toStringTag,{value:"Module"})),oo=Object.keys(io);class ao extends rt{constructor(t,n,r,i){let o=-1;if(super(t,n),tu(this,"space",i),typeof r=="number")for(;++o<oo.length;){const a=oo[o];tu(this,oo[o],(r&io[a])===io[a])}}}ao.prototype.defined=!0;function tu(e,t,n){n&&(e[t]=n)}const ng={}.hasOwnProperty;function En(e){const t={},n={};let r;for(r in e.properties)if(ng.call(e.properties,r)){const i=e.properties[r],o=new ao(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[ro(r)]=r,n[ro(o.attribute)]=r}return new tr(t,n,e.space)}const nu=En({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ru=En({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function iu(e,t){return t in e?e[t]:t}function ou(e,t){return iu(e,t.toLowerCase())}const au=En({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ou,properties:{xmlns:null,xmlnsXLink:null}}),su=En({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Te,ariaAutoComplete:null,ariaBusy:Te,ariaChecked:Te,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:xe,ariaCurrent:null,ariaDescribedBy:xe,ariaDetails:null,ariaDisabled:Te,ariaDropEffect:xe,ariaErrorMessage:null,ariaExpanded:Te,ariaFlowTo:xe,ariaGrabbed:Te,ariaHasPopup:null,ariaHidden:Te,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xe,ariaLevel:V,ariaLive:null,ariaModal:Te,ariaMultiLine:Te,ariaMultiSelectable:Te,ariaOrientation:null,ariaOwns:xe,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:Te,ariaReadOnly:Te,ariaRelevant:null,ariaRequired:Te,ariaRoleDescription:xe,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:Te,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null}}),rg=En({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ou,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:wn,acceptCharset:xe,accessKey:xe,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:xe,autoFocus:ie,autoPlay:ie,blocking:xe,capture:null,charSet:null,checked:ie,cite:null,className:xe,cols:V,colSpan:null,content:null,contentEditable:Te,controls:ie,controlsList:xe,coords:V|wn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:eu,draggable:Te,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:xe,height:V,hidden:ie,high:V,href:null,hrefLang:null,htmlFor:xe,httpEquiv:xe,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:xe,itemRef:xe,itemScope:ie,itemType:xe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ie,optimum:V,pattern:null,ping:xe,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:xe,required:ie,reversed:ie,rows:V,rowSpan:V,sandbox:xe,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:Te,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:Te,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:xe,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:Te,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:V,security:null,unselectable:null}}),ig=En({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:iu,properties:{about:Qe,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:xe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:wn,g2:wn,glyphName:wn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:Qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:xe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qe,rev:Qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qe,requiredFeatures:Qe,requiredFonts:Qe,requiredFormats:Qe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:Qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qe,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),og=/^data[-\w.:]+$/i,uu=/-[a-z]/g,ag=/[A-Z]/g;function sg(e,t){const n=ro(t);let r=t,i=rt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&og.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(uu,lg);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!uu.test(o)){let a=o.replace(ag,ug);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=ao}return new i(r,t)}function ug(e){return"-"+e.toLowerCase()}function lg(e){return e.charAt(1).toUpperCase()}const cg={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},dg=Ks([ru,nu,au,su,rg],"html"),so=Ks([ru,nu,au,su,ig],"svg");function fg(e){return e.join(" ").trim()}var lu={},cu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,pg=/\n/g,hg=/^\s*/,gg=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,mg=/^:\s*/,bg=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,yg=/^[;\s]*/,vg=/^\s+|\s+$/g,Ig=`
|
|
21
|
-
`,du="/",fu="*",tn="",Cg="comment",xg="declaration",Ag=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(b){var g=b.match(pg);g&&(n+=g.length);var I=b.lastIndexOf(Ig);r=~I?b.length-I:r+b.length}function o(){var b={line:n,column:r};return function(g){return g.position=new a(b),l(),g}}function a(b){this.start=b,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(b){var g=new Error(t.source+":"+n+":"+r+": "+b);if(g.reason=b,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function u(b){var g=b.exec(e);if(g){var I=g[0];return i(I),e=e.slice(I.length),g}}function l(){u(hg)}function c(b){var g;for(b=b||[];g=d();)g!==!1&&b.push(g);return b}function d(){var b=o();if(!(du!=e.charAt(0)||fu!=e.charAt(1))){for(var g=2;tn!=e.charAt(g)&&(fu!=e.charAt(g)||du!=e.charAt(g+1));)++g;if(g+=2,tn===e.charAt(g-1))return s("End of comment missing");var I=e.slice(2,g-2);return r+=2,i(I),e=e.slice(g),r+=2,b({type:Cg,comment:I})}}function p(){var b=o(),g=u(gg);if(g){if(d(),!u(mg))return s("property missing ':'");var I=u(bg),v=b({type:xg,property:pu(g[0].replace(cu,tn)),value:I?pu(I[0].replace(cu,tn)):tn});return u(yg),v}}function f(){var b=[];c(b);for(var g;g=p();)g!==!1&&(b.push(g),c(b));return b}return l(),f()};function pu(e){return e?e.replace(vg,tn):tn}var Sg=bn&&bn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(lu,"__esModule",{value:!0});var hu=lu.default=Eg,wg=Sg(Ag);function Eg(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,wg.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var a=o.property,s=o.value;i?t(a,s,o):s&&(n=n||{},n[a]=s)}}),n}const Pg=hu.default||hu,gu=mu("end"),uo=mu("start");function mu(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Fg(e){const t=uo(e),n=gu(e);if(t&&n)return{start:t,end:n}}function nr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?bu(e.position):"start"in e||"end"in e?bu(e):"line"in e||"column"in e?lo(e):""}function lo(e){return yu(e&&e.line)+":"+yu(e&&e.column)}function bu(e){return lo(e&&e.start)+"-"+lo(e&&e.end)}function yu(e){return e&&typeof e=="number"?e:1}class Ne extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=nr(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ne.prototype.file="",Ne.prototype.name="",Ne.prototype.reason="",Ne.prototype.message="",Ne.prototype.stack="",Ne.prototype.column=void 0,Ne.prototype.line=void 0,Ne.prototype.ancestors=void 0,Ne.prototype.cause=void 0,Ne.prototype.fatal=void 0,Ne.prototype.place=void 0,Ne.prototype.ruleId=void 0,Ne.prototype.source=void 0;const co={}.hasOwnProperty,kg=new Map,Tg=/[A-Z]/g,Gg=/-([a-z])/g,Og=new Set(["table","tbody","thead","tfoot","tr"]),Bg=new Set(["td","th"]),vu="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Rg(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Hg(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=zg(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?so:dg,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Iu(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Iu(e,t,n){if(t.type==="element")return Vg(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Mg(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Dg(e,t,n);if(t.type==="mdxjsEsm")return Ng(e,t);if(t.type==="root")return Lg(e,t,n);if(t.type==="text")return Xg(e,t)}function Vg(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=so,e.schema=i),e.ancestors.push(t);const o=xu(e,t.tagName,!1),a=Wg(e,t);let s=po(e,t);return Og.has(t.tagName)&&(s=s.filter(function(u){return typeof u=="string"?!eg(u):!0})),Cu(e,a,o,t),fo(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function Mg(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}rr(e,t.position)}function Ng(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);rr(e,t.position)}function Dg(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=so,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:xu(e,t.name,!0),a=Zg(e,t),s=po(e,t);return Cu(e,a,o,t),fo(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function Lg(e,t,n){const r={};return fo(r,po(e,t)),e.create(t,e.Fragment,r,n)}function Xg(e,t){return t.value}function Cu(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function fo(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function zg(e,t,n){return r;function r(i,o,a,s){const l=Array.isArray(a.children)?n:t;return s?l(o,a,s):l(o,a)}}function Hg(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),u=uo(r);return t(i,o,a,s,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Wg(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&co.call(t.properties,i)){const o=Yg(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&Bg.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Zg(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else rr(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else rr(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function po(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:kg;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const l=i.get(u)||0;a=u+"-"+l,i.set(u,l+1)}}const s=Iu(e,o,a);s!==void 0&&n.push(s)}return n}function Yg(e,t,n){const r=sg(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Uh(n):fg(n)),r.property==="style"){let i=typeof n=="object"?n:jg(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Jg(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?cg[r.property]||r.property:r.attribute,n]}}function jg(e,t){const n={};try{Pg(t,r)}catch(i){if(!e.ignoreInvalidStyle){const o=i,a=new Ne("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=vu+"#cannot-parse-style-attribute",a}}return n;function r(i,o){let a=i;a.slice(0,2)!=="--"&&(a.slice(0,4)==="-ms-"&&(a="ms-"+a.slice(4)),a=a.replace(Gg,Ug)),n[a]=o}}function xu(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,a;for(;++o<i.length;){const s=$s(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}r=a}else r=$s(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return co.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);rr(e)}function rr(e,t){const n=new Ne("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=vu+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Jg(e){const t={};let n;for(n in e)co.call(e,n)&&(t[_g(n)]=e[n]);return t}function _g(e){let t=e.replace(Tg,Qg);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Ug(e,t){return t.toUpperCase()}function Qg(e){return"-"+e.toLowerCase()}const ho={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},$g={};function qg(e,t){const n=$g,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Au(e,r,i)}function Au(e,t,n){if(Kg(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Su(e.children,t,n)}return Array.isArray(e)?Su(e,t,n):""}function Su(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Au(e[i],t,n);return r.join("")}function Kg(e){return!!(e&&typeof e=="object")}const wu=document.createElement("i");function go(e){const t="&"+e+";";wu.innerHTML=t;const n=wu.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function vt(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function it(e,t){return e.length>0?(vt(e,e.length,0,t),e):t}const Eu={}.hasOwnProperty;function em(e){const t={};let n=-1;for(;++n<e.length;)tm(t,e[n]);return t}function tm(e,t){let n;for(n in t){const i=(Eu.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){Eu.call(i,a)||(i[a]=[]);const s=o[a];nm(i[a],Array.isArray(s)?s:s?[s]:[])}}}function nm(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);vt(e,0,0,r)}function Pu(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Pn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const It=Nt(/[A-Za-z]/),$e=Nt(/[\dA-Za-z]/),rm=Nt(/[#-'*+\--9=?A-Z^-~]/);function mo(e){return e!==null&&(e<32||e===127)}const bo=Nt(/\d/),im=Nt(/[\dA-Fa-f]/),om=Nt(/[!-/:-@[-`{-~]/);function q(e){return e!==null&&e<-2}function Ye(e){return e!==null&&(e<0||e===32)}function me(e){return e===-2||e===-1||e===32}const am=Nt(new RegExp("\\p{P}|\\p{S}","u")),sm=Nt(/\s/);function Nt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Fn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&$e(e.charCodeAt(n+1))&&$e(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ae(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(u){return me(u)?(e.enter(n),s(u)):t(u)}function s(u){return me(u)&&o++<i?(e.consume(u),s):(e.exit(n),t(u))}}const um={tokenize:lm};function lm(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Ae(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return q(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const cm={tokenize:dm},Fu={tokenize:fm};function dm(e){const t=this,n=[];let r=0,i,o,a;return s;function s(w){if(r<n.length){const E=n[r];return t.containerState=E[1],e.attempt(E[0].continuation,u,l)(w)}return l(w)}function u(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&P();const E=t.events.length;let A=E,C;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){C=t.events[A][1].end;break}v(r);let F=E;for(;F<t.events.length;)t.events[F][1].end={...C},F++;return vt(t.events,A+1,0,t.events.slice(E)),t.events.length=F,l(w)}return s(w)}function l(w){if(r===n.length){if(!i)return p(w);if(i.currentConstruct&&i.currentConstruct.concrete)return b(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Fu,c,d)(w)}function c(w){return i&&P(),v(r),p(w)}function d(w){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,b(w)}function p(w){return t.containerState={},e.attempt(Fu,f,b)(w)}function f(w){return r++,n.push([t.currentConstruct,t.containerState]),p(w)}function b(w){if(w===null){i&&P(),v(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),g(w)}function g(w){if(w===null){I(e.exit("chunkFlow"),!0),v(0),e.consume(w);return}return q(w)?(e.consume(w),I(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(w),g)}function I(w,E){const A=t.sliceStream(w);if(E&&A.push(null),w.previous=o,o&&(o.next=w),o=w,i.defineSkip(w.start),i.write(A),t.parser.lazy[w.start.line]){let C=i.events.length;for(;C--;)if(i.events[C][1].start.offset<a&&(!i.events[C][1].end||i.events[C][1].end.offset>a))return;const F=t.events.length;let G=F,R,W;for(;G--;)if(t.events[G][0]==="exit"&&t.events[G][1].type==="chunkFlow"){if(R){W=t.events[G][1].end;break}R=!0}for(v(r),C=F;C<t.events.length;)t.events[C][1].end={...W},C++;vt(t.events,G+1,0,t.events.slice(F)),t.events.length=C}}function v(w){let E=n.length;for(;E-- >w;){const A=n[E];t.containerState=A[1],A[0].exit.call(t,e)}n.length=w}function P(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function fm(e,t,n){return Ae(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ku(e){if(e===null||Ye(e)||sm(e))return 1;if(am(e))return 2}function yo(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const vo={name:"attention",resolveAll:pm,tokenize:hm};function pm(e,t){let n=-1,r,i,o,a,s,u,l,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};Tu(d,-u),Tu(p,u),a={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},s={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[r][1].end={...a.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=it(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=it(l,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),l=it(l,yo(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=it(l,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=it(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,vt(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function hm(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ku(r);let o;return a;function a(u){return o=u,e.enter("attentionSequence"),s(u)}function s(u){if(u===o)return e.consume(u),s;const l=e.exit("attentionSequence"),c=ku(u),d=!c||c===2&&i||n.includes(u),p=!i||i===2&&c||n.includes(r);return l._open=!!(o===42?d:d&&(i||!p)),l._close=!!(o===42?p:p&&(c||!d)),t(u)}}function Tu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const gm={name:"autolink",tokenize:mm};function mm(e,t,n){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(f){return It(f)?(e.consume(f),a):f===64?n(f):l(f)}function a(f){return f===43||f===45||f===46||$e(f)?(r=1,s(f)):l(f)}function s(f){return f===58?(e.consume(f),r=0,u):(f===43||f===45||f===46||$e(f))&&r++<32?(e.consume(f),s):(r=0,l(f))}function u(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||mo(f)?n(f):(e.consume(f),u)}function l(f){return f===64?(e.consume(f),c):rm(f)?(e.consume(f),l):n(f)}function c(f){return $e(f)?d(f):n(f)}function d(f){return f===46?(e.consume(f),r=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||$e(f))&&r++<63){const b=f===45?p:d;return e.consume(f),b}return n(f)}}const _r={partial:!0,tokenize:bm};function bm(e,t,n){return r;function r(o){return me(o)?Ae(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||q(o)?t(o):n(o)}}const Gu={continuation:{tokenize:vm},exit:Im,name:"blockQuote",tokenize:ym};function ym(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return me(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function vm(e,t,n){const r=this;return i;function i(a){return me(a)?Ae(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(Gu,t,n)(a)}}function Im(e){e.exit("blockQuote")}const Ou={name:"characterEscape",tokenize:Cm};function Cm(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return om(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Bu={name:"characterReference",tokenize:xm};function xm(e,t,n){const r=this;let i=0,o,a;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),u}function u(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,a=$e,c(d))}function l(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=im,c):(e.enter("characterReferenceValue"),o=7,a=bo,c(d))}function c(d){if(d===59&&i){const p=e.exit("characterReferenceValue");return a===$e&&!go(r.sliceSerialize(p))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(d)&&i++<o?(e.consume(d),c):n(d)}}const Ru={partial:!0,tokenize:Sm},Vu={concrete:!0,name:"codeFenced",tokenize:Am};function Am(e,t,n){const r=this,i={partial:!0,tokenize:A};let o=0,a=0,s;return u;function u(C){return l(C)}function l(C){const F=r.events[r.events.length-1];return o=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,s=C,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(C)}function c(C){return C===s?(a++,e.consume(C),c):a<3?n(C):(e.exit("codeFencedFenceSequence"),me(C)?Ae(e,d,"whitespace")(C):d(C))}function d(C){return C===null||q(C)?(e.exit("codeFencedFence"),r.interrupt?t(C):e.check(Ru,g,E)(C)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(C))}function p(C){return C===null||q(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(C)):me(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ae(e,f,"whitespace")(C)):C===96&&C===s?n(C):(e.consume(C),p)}function f(C){return C===null||q(C)?d(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(C))}function b(C){return C===null||q(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(C)):C===96&&C===s?n(C):(e.consume(C),b)}function g(C){return e.attempt(i,E,I)(C)}function I(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),v}function v(C){return o>0&&me(C)?Ae(e,P,"linePrefix",o+1)(C):P(C)}function P(C){return C===null||q(C)?e.check(Ru,g,E)(C):(e.enter("codeFlowValue"),w(C))}function w(C){return C===null||q(C)?(e.exit("codeFlowValue"),P(C)):(e.consume(C),w)}function E(C){return e.exit("codeFenced"),t(C)}function A(C,F,G){let R=0;return W;function W(H){return C.enter("lineEnding"),C.consume(H),C.exit("lineEnding"),D}function D(H){return C.enter("codeFencedFence"),me(H)?Ae(C,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):O(H)}function O(H){return H===s?(C.enter("codeFencedFenceSequence"),ne(H)):G(H)}function ne(H){return H===s?(R++,C.consume(H),ne):R>=a?(C.exit("codeFencedFenceSequence"),me(H)?Ae(C,ae,"whitespace")(H):ae(H)):G(H)}function ae(H){return H===null||q(H)?(C.exit("codeFencedFence"),F(H)):G(H)}}}function Sm(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const Io={name:"codeIndented",tokenize:Em},wm={partial:!0,tokenize:Pm};function Em(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),Ae(e,o,"linePrefix",5)(l)}function o(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(l):n(l)}function a(l){return l===null?u(l):q(l)?e.attempt(wm,a,u)(l):(e.enter("codeFlowValue"),s(l))}function s(l){return l===null||q(l)?(e.exit("codeFlowValue"),a(l)):(e.consume(l),s)}function u(l){return e.exit("codeIndented"),t(l)}}function Pm(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):q(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Ae(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):q(a)?i(a):n(a)}}const Fm={name:"codeText",previous:Tm,resolve:km,tokenize:Gm};function km(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Tm(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Gm(e,t,n){let r=0,i,o;return a;function a(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),u(d))}function u(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),u):d===96?(o=e.enter("codeTextSequence"),i=0,c(d)):q(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("codeTextData"),l(d))}function l(d){return d===null||d===32||d===96||q(d)?(e.exit("codeTextData"),u(d)):(e.consume(d),l)}function c(d){return d===96?(e.consume(d),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",l(d))}}class Om{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&ir(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ir(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ir(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ir(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ir(this.left,n.reverse())}}}function ir(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Mu(e){const t={};let n=-1,r,i,o,a,s,u,l;const c=new Om(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Bm(c,n)),n=t[n],l=!0);else if(r[1]._container){for(o=n,i=void 0;o--&&(a=c.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);i&&(r[1].end={...c.get(i)[1].start},s=c.slice(i,n),s.unshift(r),c.splice(i,n-i+1,s))}}return vt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function Bm(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,u=[],l={};let c,d,p=-1,f=n,b=0,g=0;const I=[g];for(;f;){for(;e.get(++i)[1]!==f;);o.push(i),f._tokenizer||(c=r.sliceStream(f),f.next||c.push(null),d&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(g=p+1,I.push(g),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):I.pop(),p=I.length;p--;){const v=s.slice(I[p],I[p+1]),P=o.pop();u.push([P,P+v.length-1]),e.splice(P,2,v)}for(u.reverse(),p=-1;++p<u.length;)l[b+u[p][0]]=b+u[p][1],b+=u[p][1]-u[p][0]-1;return l}const Rm={resolve:Mm,tokenize:Nm},Vm={partial:!0,tokenize:Dm};function Mm(e){return Mu(e),e}function Nm(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):q(s)?e.check(Vm,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Dm(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Ae(e,o,"linePrefix")}function o(a){if(a===null||q(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function Nu(e,t,n,r,i,o,a,s,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(v),e.exit(o),p):v===null||v===32||v===41||mo(v)?n(v):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(v))}function p(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(v))}function f(v){return v===62?(e.exit("chunkString"),e.exit(s),p(v)):v===null||v===60||q(v)?n(v):(e.consume(v),v===92?b:f)}function b(v){return v===60||v===62||v===92?(e.consume(v),f):f(v)}function g(v){return!c&&(v===null||v===41||Ye(v))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(v)):c<l&&v===40?(e.consume(v),c++,g):v===41?(e.consume(v),c--,g):v===null||v===32||v===40||mo(v)?n(v):(e.consume(v),v===92?I:g)}function I(v){return v===40||v===41||v===92?(e.consume(v),g):g(v)}}function Du(e,t,n,r,i,o){const a=this;let s=0,u;return l;function l(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(o),c}function c(f){return s>999||f===null||f===91||f===93&&!u||f===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):f===93?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):q(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||q(f)||s++>999?(e.exit("chunkString"),c(f)):(e.consume(f),u||(u=!me(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),s++,d):d(f)}}function Lu(e,t,n,r,i,o){let a;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),a=p===40?41:p,u):n(p)}function u(p){return p===a?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),l(p))}function l(p){return p===a?(e.exit(o),u(a)):p===null?n(p):q(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Ae(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===a||p===null||q(p)?(e.exit("chunkString"),l(p)):(e.consume(p),p===92?d:c)}function d(p){return p===a||p===92?(e.consume(p),c):c(p)}}function or(e,t){let n;return r;function r(i){return q(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):me(i)?Ae(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Lm={name:"definition",tokenize:zm},Xm={partial:!0,tokenize:Hm};function zm(e,t,n){const r=this;let i;return o;function o(f){return e.enter("definition"),a(f)}function a(f){return Du.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function s(f){return i=Pn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),u):n(f)}function u(f){return Ye(f)?or(e,l)(f):l(f)}function l(f){return Nu(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(Xm,d,d)(f)}function d(f){return me(f)?Ae(e,p,"whitespace")(f):p(f)}function p(f){return f===null||q(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function Hm(e,t,n){return r;function r(s){return Ye(s)?or(e,i)(s):n(s)}function i(s){return Lu(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return me(s)?Ae(e,a,"whitespace")(s):a(s)}function a(s){return s===null||q(s)?t(s):n(s)}}const Wm={name:"hardBreakEscape",tokenize:Zm};function Zm(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return q(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Ym={name:"headingAtx",resolve:jm,tokenize:Jm};function jm(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},vt(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Jm(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&r++<6?(e.consume(c),a):c===null||Ye(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||q(c)?(e.exit("atxHeading"),t(c)):me(c)?Ae(e,s,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),s(c))}function l(c){return c===null||c===35||Ye(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),l)}}const _m=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Xu=["pre","script","style","textarea"],Um={concrete:!0,name:"htmlFlow",resolveTo:qm,tokenize:Km},Qm={partial:!0,tokenize:tb},$m={partial:!0,tokenize:eb};function qm(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Km(e,t,n){const r=this;let i,o,a,s,u;return l;function l(y){return c(y)}function c(y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(y),d}function d(y){return y===33?(e.consume(y),p):y===47?(e.consume(y),o=!0,g):y===63?(e.consume(y),i=3,r.interrupt?t:m):It(y)?(e.consume(y),a=String.fromCharCode(y),I):n(y)}function p(y){return y===45?(e.consume(y),i=2,f):y===91?(e.consume(y),i=5,s=0,b):It(y)?(e.consume(y),i=4,r.interrupt?t:m):n(y)}function f(y){return y===45?(e.consume(y),r.interrupt?t:m):n(y)}function b(y){const pe="CDATA[";return y===pe.charCodeAt(s++)?(e.consume(y),s===pe.length?r.interrupt?t:O:b):n(y)}function g(y){return It(y)?(e.consume(y),a=String.fromCharCode(y),I):n(y)}function I(y){if(y===null||y===47||y===62||Ye(y)){const pe=y===47,re=a.toLowerCase();return!pe&&!o&&Xu.includes(re)?(i=1,r.interrupt?t(y):O(y)):_m.includes(a.toLowerCase())?(i=6,pe?(e.consume(y),v):r.interrupt?t(y):O(y)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(y):o?P(y):w(y))}return y===45||$e(y)?(e.consume(y),a+=String.fromCharCode(y),I):n(y)}function v(y){return y===62?(e.consume(y),r.interrupt?t:O):n(y)}function P(y){return me(y)?(e.consume(y),P):W(y)}function w(y){return y===47?(e.consume(y),W):y===58||y===95||It(y)?(e.consume(y),E):me(y)?(e.consume(y),w):W(y)}function E(y){return y===45||y===46||y===58||y===95||$e(y)?(e.consume(y),E):A(y)}function A(y){return y===61?(e.consume(y),C):me(y)?(e.consume(y),A):w(y)}function C(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),u=y,F):me(y)?(e.consume(y),C):G(y)}function F(y){return y===u?(e.consume(y),u=null,R):y===null||q(y)?n(y):(e.consume(y),F)}function G(y){return y===null||y===34||y===39||y===47||y===60||y===61||y===62||y===96||Ye(y)?A(y):(e.consume(y),G)}function R(y){return y===47||y===62||me(y)?w(y):n(y)}function W(y){return y===62?(e.consume(y),D):n(y)}function D(y){return y===null||q(y)?O(y):me(y)?(e.consume(y),D):n(y)}function O(y){return y===45&&i===2?(e.consume(y),ee):y===60&&i===1?(e.consume(y),de):y===62&&i===4?(e.consume(y),j):y===63&&i===3?(e.consume(y),m):y===93&&i===5?(e.consume(y),Z):q(y)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Qm,Q,ne)(y)):y===null||q(y)?(e.exit("htmlFlowData"),ne(y)):(e.consume(y),O)}function ne(y){return e.check($m,ae,Q)(y)}function ae(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),H}function H(y){return y===null||q(y)?ne(y):(e.enter("htmlFlowData"),O(y))}function ee(y){return y===45?(e.consume(y),m):O(y)}function de(y){return y===47?(e.consume(y),a="",be):O(y)}function be(y){if(y===62){const pe=a.toLowerCase();return Xu.includes(pe)?(e.consume(y),j):O(y)}return It(y)&&a.length<8?(e.consume(y),a+=String.fromCharCode(y),be):O(y)}function Z(y){return y===93?(e.consume(y),m):O(y)}function m(y){return y===62?(e.consume(y),j):y===45&&i===2?(e.consume(y),m):O(y)}function j(y){return y===null||q(y)?(e.exit("htmlFlowData"),Q(y)):(e.consume(y),j)}function Q(y){return e.exit("htmlFlow"),t(y)}}function eb(e,t,n){const r=this;return i;function i(a){return q(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function tb(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(_r,t,n)}}const nb={name:"htmlText",tokenize:rb};function rb(e,t,n){const r=this;let i,o,a;return s;function s(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),u}function u(m){return m===33?(e.consume(m),l):m===47?(e.consume(m),A):m===63?(e.consume(m),w):It(m)?(e.consume(m),G):n(m)}function l(m){return m===45?(e.consume(m),c):m===91?(e.consume(m),o=0,b):It(m)?(e.consume(m),P):n(m)}function c(m){return m===45?(e.consume(m),f):n(m)}function d(m){return m===null?n(m):m===45?(e.consume(m),p):q(m)?(a=d,de(m)):(e.consume(m),d)}function p(m){return m===45?(e.consume(m),f):d(m)}function f(m){return m===62?ee(m):m===45?p(m):d(m)}function b(m){const j="CDATA[";return m===j.charCodeAt(o++)?(e.consume(m),o===j.length?g:b):n(m)}function g(m){return m===null?n(m):m===93?(e.consume(m),I):q(m)?(a=g,de(m)):(e.consume(m),g)}function I(m){return m===93?(e.consume(m),v):g(m)}function v(m){return m===62?ee(m):m===93?(e.consume(m),v):g(m)}function P(m){return m===null||m===62?ee(m):q(m)?(a=P,de(m)):(e.consume(m),P)}function w(m){return m===null?n(m):m===63?(e.consume(m),E):q(m)?(a=w,de(m)):(e.consume(m),w)}function E(m){return m===62?ee(m):w(m)}function A(m){return It(m)?(e.consume(m),C):n(m)}function C(m){return m===45||$e(m)?(e.consume(m),C):F(m)}function F(m){return q(m)?(a=F,de(m)):me(m)?(e.consume(m),F):ee(m)}function G(m){return m===45||$e(m)?(e.consume(m),G):m===47||m===62||Ye(m)?R(m):n(m)}function R(m){return m===47?(e.consume(m),ee):m===58||m===95||It(m)?(e.consume(m),W):q(m)?(a=R,de(m)):me(m)?(e.consume(m),R):ee(m)}function W(m){return m===45||m===46||m===58||m===95||$e(m)?(e.consume(m),W):D(m)}function D(m){return m===61?(e.consume(m),O):q(m)?(a=D,de(m)):me(m)?(e.consume(m),D):R(m)}function O(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),i=m,ne):q(m)?(a=O,de(m)):me(m)?(e.consume(m),O):(e.consume(m),ae)}function ne(m){return m===i?(e.consume(m),i=void 0,H):m===null?n(m):q(m)?(a=ne,de(m)):(e.consume(m),ne)}function ae(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||Ye(m)?R(m):(e.consume(m),ae)}function H(m){return m===47||m===62||Ye(m)?R(m):n(m)}function ee(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function de(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),be}function be(m){return me(m)?Ae(e,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):Z(m)}function Z(m){return e.enter("htmlTextData"),a(m)}}const Co={name:"labelEnd",resolveAll:sb,resolveTo:ub,tokenize:lb},ib={tokenize:cb},ob={tokenize:db},ab={tokenize:fb};function sb(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&vt(e,0,e.length,n),e}function ub(e,t){let n=e.length,r=0,i,o,a,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},c={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[a-2][1].start}};return s=[["enter",u,t],["enter",l,t]],s=it(s,e.slice(o+1,o+r+3)),s=it(s,[["enter",c,t]]),s=it(s,yo(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=it(s,[["exit",c,t],e[a-2],e[a-1],["exit",l,t]]),s=it(s,e.slice(a+1)),s=it(s,[["exit",u,t]]),vt(e,o,e.length,s),e}function lb(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(p){return o?o._inactive?d(p):(a=r.parser.defined.includes(Pn(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):n(p)}function u(p){return p===40?e.attempt(ib,c,a?c:d)(p):p===91?e.attempt(ob,c,a?l:d)(p):a?c(p):d(p)}function l(p){return e.attempt(ab,c,d)(p)}function c(p){return t(p)}function d(p){return o._balanced=!0,n(p)}}function cb(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return Ye(d)?or(e,o)(d):o(d)}function o(d){return d===41?c(d):Nu(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return Ye(d)?or(e,u)(d):c(d)}function s(d){return n(d)}function u(d){return d===34||d===39||d===40?Lu(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function l(d){return Ye(d)?or(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function db(e,t,n){const r=this;return i;function i(s){return Du.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(Pn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function fb(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const pb={name:"labelStartImage",resolveAll:Co.resolveAll,tokenize:hb};function hb(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const gb={name:"labelStartLink",resolveAll:Co.resolveAll,tokenize:mb};function mb(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const xo={name:"lineEnding",tokenize:bb};function bb(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ae(e,t,"linePrefix")}}const Ur={name:"thematicBreak",tokenize:yb};function yb(e,t,n){let r=0,i;return o;function o(l){return e.enter("thematicBreak"),a(l)}function a(l){return i=l,s(l)}function s(l){return l===i?(e.enter("thematicBreakSequence"),u(l)):r>=3&&(l===null||q(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===i?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),me(l)?Ae(e,s,"whitespace")(l):s(l))}}const je={continuation:{tokenize:xb},exit:Sb,name:"list",tokenize:Cb},vb={partial:!0,tokenize:wb},Ib={partial:!0,tokenize:Ab};function Cb(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(f){const b=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:bo(f)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Ur,n,l)(f):l(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(f)}return n(f)}function u(f){return bo(f)&&++a<10?(e.consume(f),u):(!r.interrupt||a<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),l(f)):n(f)}function l(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(_r,r.interrupt?n:c,e.attempt(vb,p,d))}function c(f){return r.containerState.initialBlankLine=!0,o++,p(f)}function d(f){return me(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function xb(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(_r,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ae(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!me(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ib,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ae(e,e.attempt(je,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Ab(e,t,n){const r=this;return Ae(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function Sb(e){e.exit(this.containerState.type)}function wb(e,t,n){const r=this;return Ae(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!me(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const zu={name:"setextUnderline",resolveTo:Eb,tokenize:Pb};function Eb(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function Pb(e,t,n){const r=this;let i;return o;function o(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,a(l)):n(l)}function a(l){return e.enter("setextHeadingLineSequence"),s(l)}function s(l){return l===i?(e.consume(l),s):(e.exit("setextHeadingLineSequence"),me(l)?Ae(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||q(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const Fb={tokenize:kb};function kb(e){const t=this,n=e.attempt(_r,r,e.attempt(this.parser.constructs.flowInitial,i,Ae(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Rm,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Tb={resolveAll:Wu()},Gb=Hu("string"),Ob=Hu("text");function Hu(e){return{resolveAll:Wu(e==="text"?Bb:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(c){return l(c)?o(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),o(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;const d=i[c];let p=-1;if(d)for(;++p<d.length;){const f=d[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function Wu(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Bb(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,s=0,u;for(;o--;){const l=i[o];if(typeof l=="string"){for(a=l.length;l.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(l===-2)u=!0,s++;else if(l!==-1){o++;break}}if(s){const l={type:n===e.length||u||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const Rb=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Lm},disable:{null:[]},document:{42:je,43:je,45:je,48:je,49:je,50:je,51:je,52:je,53:je,54:je,55:je,56:je,57:je,62:Gu},flow:{35:Ym,42:Ur,45:[zu,Ur],60:Um,61:zu,95:Ur,96:Vu,126:Vu},flowInitial:{[-2]:Io,[-1]:Io,32:Io},insideSpan:{null:[vo,Tb]},string:{38:Bu,92:Ou},text:{[-5]:xo,[-4]:xo,[-3]:xo,33:pb,38:Bu,42:vo,60:[gm,nb],91:gb,92:[Wm,Ou],93:Co,95:vo,96:Fm}},Symbol.toStringTag,{value:"Module"}));function Vb(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],s=[];const u={attempt:F(A),check:F(C),consume:P,enter:w,exit:E,interrupt:F(C,{interrupt:!0})},l={code:null,containerState:{},defineSkip:g,events:[],now:b,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:d};let c=t.tokenize.call(l,u);return t.resolveAll&&o.push(t),l;function d(D){return a=it(a,D),I(),a[a.length-1]!==null?[]:(G(t,0),l.events=yo(o,l.events,l),l.events)}function p(D,O){return Nb(f(D),O)}function f(D){return Mb(a,D)}function b(){const{_bufferIndex:D,_index:O,line:ne,column:ae,offset:H}=r;return{_bufferIndex:D,_index:O,line:ne,column:ae,offset:H}}function g(D){i[D.line]=D.column,W()}function I(){let D;for(;r._index<a.length;){const O=a[r._index];if(typeof O=="string")for(D=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===D&&r._bufferIndex<O.length;)v(O.charCodeAt(r._bufferIndex));else v(O)}}function v(D){c=c(D)}function P(D){q(D)?(r.line++,r.column=1,r.offset+=D===-3?2:1,W()):D!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=D}function w(D,O){const ne=O||{};return ne.type=D,ne.start=b(),l.events.push(["enter",ne,l]),s.push(ne),ne}function E(D){const O=s.pop();return O.end=b(),l.events.push(["exit",O,l]),O}function A(D,O){G(D,O.from)}function C(D,O){O.restore()}function F(D,O){return ne;function ne(ae,H,ee){let de,be,Z,m;return Array.isArray(ae)?Q(ae):"tokenize"in ae?Q([ae]):j(ae);function j(fe){return Ge;function Ge(Ce){const Le=Ce!==null&&fe[Ce],et=Ce!==null&&fe.null,at=[...Array.isArray(Le)?Le:Le?[Le]:[],...Array.isArray(et)?et:et?[et]:[]];return Q(at)(Ce)}}function Q(fe){return de=fe,be=0,fe.length===0?ee:y(fe[be])}function y(fe){return Ge;function Ge(Ce){return m=R(),Z=fe,fe.partial||(l.currentConstruct=fe),fe.name&&l.parser.constructs.disable.null.includes(fe.name)?re():fe.tokenize.call(O?Object.assign(Object.create(l),O):l,u,pe,re)(Ce)}}function pe(fe){return D(Z,m),H}function re(fe){return m.restore(),++be<de.length?y(de[be]):ee}}}function G(D,O){D.resolveAll&&!o.includes(D)&&o.push(D),D.resolve&&vt(l.events,O,l.events.length-O,D.resolve(l.events.slice(O),l)),D.resolveTo&&(l.events=D.resolveTo(l.events,l))}function R(){const D=b(),O=l.previous,ne=l.currentConstruct,ae=l.events.length,H=Array.from(s);return{from:ae,restore:ee};function ee(){r=D,l.previous=O,l.currentConstruct=ne,l.events.length=ae,s=H,W()}}function W(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Mb(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function Nb(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
|
|
22
|
-
`;break}case-3:{a=`\r
|
|
23
|
-
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}function Db(e){const r={constructs:em([Rb,...(e||{}).extensions||[]]),content:i(um),defined:[],document:i(cm),flow:i(Fb),lazy:{},string:i(Gb),text:i(Ob)};return r;function i(o){return a;function a(s){return Vb(r,o,s)}}}function Lb(e){for(;!Mu(e););return e}const Zu=/[\0\t\n\r]/g;function Xb(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const u=[];let l,c,d,p,f;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(Zu.lastIndex=d,l=Zu.exec(o),p=l&&l.index!==void 0?l.index:o.length,f=o.charCodeAt(p),!l){t=o.slice(d);break}if(f===10&&d===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),d<p&&(u.push(o.slice(d,p)),e+=p-d),f){case 0:{u.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,u.push(-2);e++<c;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}d=p+1}return s&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const zb=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Hb(e){return e.replace(zb,Wb)}function Wb(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Pu(n.slice(o?2:1),o?16:10)}return go(n)||e}const Yu={}.hasOwnProperty;function Zb(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Yb(n)(Lb(Db(n).document().write(Xb()(e,t,!0))))}function Yb(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(li),autolinkProtocol:R,autolinkEmail:R,atxHeading:o(Ot),blockQuote:o(et),characterEscape:R,characterReference:R,codeFenced:o(at),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(at,a),codeText:o(Y,a),codeTextData:R,data:R,codeFlowValue:R,definition:o(Et),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(st),hardBreakEscape:o(si),hardBreakTrailing:o(si),htmlFlow:o(ui,a),htmlFlowData:R,htmlText:o(ui,a),htmlTextData:R,image:o(Xo),label:a,link:o(li),listItem:o(zo),listItemValue:p,listOrdered:o(ci,d),listUnordered:o(ci),paragraph:o(Ho),reference:y,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(Ot),strong:o(Wo),thematicBreak:o(Yo)},exit:{atxHeading:u(),atxHeadingSequence:A,autolink:u(),autolinkEmail:Le,autolinkProtocol:Ce,blockQuote:u(),characterEscapeValue:W,characterReferenceMarkerHexadecimal:re,characterReferenceMarkerNumeric:re,characterReferenceValue:fe,characterReference:Ge,codeFenced:u(I),codeFencedFence:g,codeFencedFenceInfo:f,codeFencedFenceMeta:b,codeFlowValue:W,codeIndented:u(v),codeText:u(H),codeTextData:W,data:W,definition:u(),definitionDestinationString:E,definitionLabelString:P,definitionTitleString:w,emphasis:u(),hardBreakEscape:u(O),hardBreakTrailing:u(O),htmlFlow:u(ne),htmlFlowData:W,htmlText:u(ae),htmlTextData:W,image:u(de),label:Z,labelText:be,lineEnding:D,link:u(ee),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:pe,resourceDestinationString:m,resourceTitleString:j,resource:Q,setextHeading:u(G),setextHeadingLineSequence:F,setextHeadingText:C,strong:u(),thematicBreak:u()}};ju(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(k){let N={type:"root",children:[]};const K={stack:[N],tokenStack:[],config:t,enter:s,exit:l,buffer:a,resume:c,data:n},se=[];let ue=-1;for(;++ue<k.length;)if(k[ue][1].type==="listOrdered"||k[ue][1].type==="listUnordered")if(k[ue][0]==="enter")se.push(ue);else{const _e=se.pop();ue=i(k,_e,ue)}for(ue=-1;++ue<k.length;){const _e=t[k[ue][0]];Yu.call(_e,k[ue][1].type)&&_e[k[ue][1].type].call(Object.assign({sliceSerialize:k[ue][2].sliceSerialize},K),k[ue][1])}if(K.tokenStack.length>0){const _e=K.tokenStack[K.tokenStack.length-1];(_e[1]||Ju).call(K,void 0,_e[0])}for(N.position={start:Dt(k.length>0?k[0][1].start:{line:1,column:1,offset:0}),end:Dt(k.length>0?k[k.length-2][1].end:{line:1,column:1,offset:0})},ue=-1;++ue<t.transforms.length;)N=t.transforms[ue](N)||N;return N}function i(k,N,K){let se=N-1,ue=-1,_e=!1,Pt,ft,jt,Ft;for(;++se<=K;){const Xe=k[se];switch(Xe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Xe[0]==="enter"?ue++:ue--,Ft=void 0;break}case"lineEndingBlank":{Xe[0]==="enter"&&(Pt&&!Ft&&!ue&&!jt&&(jt=se),Ft=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ft=void 0}if(!ue&&Xe[0]==="enter"&&Xe[1].type==="listItemPrefix"||ue===-1&&Xe[0]==="exit"&&(Xe[1].type==="listUnordered"||Xe[1].type==="listOrdered")){if(Pt){let Bt=se;for(ft=void 0;Bt--;){const pt=k[Bt];if(pt[1].type==="lineEnding"||pt[1].type==="lineEndingBlank"){if(pt[0]==="exit")continue;ft&&(k[ft][1].type="lineEndingBlank",_e=!0),pt[1].type="lineEnding",ft=Bt}else if(!(pt[1].type==="linePrefix"||pt[1].type==="blockQuotePrefix"||pt[1].type==="blockQuotePrefixWhitespace"||pt[1].type==="blockQuoteMarker"||pt[1].type==="listItemIndent"))break}jt&&(!ft||jt<ft)&&(Pt._spread=!0),Pt.end=Object.assign({},ft?k[ft][1].start:Xe[1].end),k.splice(ft||se,0,["exit",Pt,Xe[2]]),se++,K++}if(Xe[1].type==="listItemPrefix"){const Bt={type:"listItem",_spread:!1,start:Object.assign({},Xe[1].start),end:void 0};Pt=Bt,k.splice(se,0,["enter",Bt,Xe[2]]),se++,K++,jt=void 0,Ft=!0}}}return k[N][1]._spread=_e,K}function o(k,N){return K;function K(se){s.call(this,k(se),se),N&&N.call(this,se)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(k,N,K){this.stack[this.stack.length-1].children.push(k),this.stack.push(k),this.tokenStack.push([N,K||void 0]),k.position={start:Dt(N.start),end:void 0}}function u(k){return N;function N(K){k&&k.call(this,K),l.call(this,K)}}function l(k,N){const K=this.stack.pop(),se=this.tokenStack.pop();if(se)se[0].type!==k.type&&(N?N.call(this,k,se[0]):(se[1]||Ju).call(this,k,se[0]));else throw new Error("Cannot close `"+k.type+"` ("+nr({start:k.start,end:k.end})+"): it’s not open");K.position.end=Dt(k.end)}function c(){return qg(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(k){if(this.data.expectingFirstListItemValue){const N=this.stack[this.stack.length-2];N.start=Number.parseInt(this.sliceSerialize(k),10),this.data.expectingFirstListItemValue=void 0}}function f(){const k=this.resume(),N=this.stack[this.stack.length-1];N.lang=k}function b(){const k=this.resume(),N=this.stack[this.stack.length-1];N.meta=k}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const k=this.resume(),N=this.stack[this.stack.length-1];N.value=k.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const k=this.resume(),N=this.stack[this.stack.length-1];N.value=k.replace(/(\r?\n|\r)$/g,"")}function P(k){const N=this.resume(),K=this.stack[this.stack.length-1];K.label=N,K.identifier=Pn(this.sliceSerialize(k)).toLowerCase()}function w(){const k=this.resume(),N=this.stack[this.stack.length-1];N.title=k}function E(){const k=this.resume(),N=this.stack[this.stack.length-1];N.url=k}function A(k){const N=this.stack[this.stack.length-1];if(!N.depth){const K=this.sliceSerialize(k).length;N.depth=K}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function F(k){const N=this.stack[this.stack.length-1];N.depth=this.sliceSerialize(k).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function R(k){const K=this.stack[this.stack.length-1].children;let se=K[K.length-1];(!se||se.type!=="text")&&(se=Zo(),se.position={start:Dt(k.start),end:void 0},K.push(se)),this.stack.push(se)}function W(k){const N=this.stack.pop();N.value+=this.sliceSerialize(k),N.position.end=Dt(k.end)}function D(k){const N=this.stack[this.stack.length-1];if(this.data.atHardBreak){const K=N.children[N.children.length-1];K.position.end=Dt(k.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(N.type)&&(R.call(this,k),W.call(this,k))}function O(){this.data.atHardBreak=!0}function ne(){const k=this.resume(),N=this.stack[this.stack.length-1];N.value=k}function ae(){const k=this.resume(),N=this.stack[this.stack.length-1];N.value=k}function H(){const k=this.resume(),N=this.stack[this.stack.length-1];N.value=k}function ee(){const k=this.stack[this.stack.length-1];if(this.data.inReference){const N=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=N,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function de(){const k=this.stack[this.stack.length-1];if(this.data.inReference){const N=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=N,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function be(k){const N=this.sliceSerialize(k),K=this.stack[this.stack.length-2];K.label=Hb(N),K.identifier=Pn(N).toLowerCase()}function Z(){const k=this.stack[this.stack.length-1],N=this.resume(),K=this.stack[this.stack.length-1];if(this.data.inReference=!0,K.type==="link"){const se=k.children;K.children=se}else K.alt=N}function m(){const k=this.resume(),N=this.stack[this.stack.length-1];N.url=k}function j(){const k=this.resume(),N=this.stack[this.stack.length-1];N.title=k}function Q(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function pe(k){const N=this.resume(),K=this.stack[this.stack.length-1];K.label=N,K.identifier=Pn(this.sliceSerialize(k)).toLowerCase(),this.data.referenceType="full"}function re(k){this.data.characterReferenceType=k.type}function fe(k){const N=this.sliceSerialize(k),K=this.data.characterReferenceType;let se;K?(se=Pu(N,K==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):se=go(N);const ue=this.stack[this.stack.length-1];ue.value+=se}function Ge(k){const N=this.stack.pop();N.position.end=Dt(k.end)}function Ce(k){W.call(this,k);const N=this.stack[this.stack.length-1];N.url=this.sliceSerialize(k)}function Le(k){W.call(this,k);const N=this.stack[this.stack.length-1];N.url="mailto:"+this.sliceSerialize(k)}function et(){return{type:"blockquote",children:[]}}function at(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function Et(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function st(){return{type:"emphasis",children:[]}}function Ot(){return{type:"heading",depth:0,children:[]}}function si(){return{type:"break"}}function ui(){return{type:"html",value:""}}function Xo(){return{type:"image",title:null,url:"",alt:null}}function li(){return{type:"link",title:null,url:"",children:[]}}function ci(k){return{type:"list",ordered:k.type==="listOrdered",start:null,spread:k._spread,children:[]}}function zo(k){return{type:"listItem",spread:k._spread,checked:null,children:[]}}function Ho(){return{type:"paragraph",children:[]}}function Wo(){return{type:"strong",children:[]}}function Zo(){return{type:"text",value:""}}function Yo(){return{type:"thematicBreak"}}}function Dt(e){return{line:e.line,column:e.column,offset:e.offset}}function ju(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ju(e,r):jb(e,r)}}function jb(e,t){let n;for(n in t)if(Yu.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Ju(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+nr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+nr({start:t.start,end:t.end})+") is still open")}function Jb(e){const t=this;t.parser=n;function n(r){return Zb(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function _b(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Ub(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
24
|
-
`}]}function Qb(e,t){const n=t.value?t.value+`
|
|
25
|
-
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function $b(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qb(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Kb(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Fn(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(r,s);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)}function ey(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ty(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function _u(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function ny(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _u(e,t);const i={src:Fn(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function ry(e,t){const n={src:Fn(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function iy(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function oy(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _u(e,t);const i={href:Fn(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function ay(e,t){const n={href:Fn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function sy(e,t,n){const r=e.all(t),i=n?uy(n):Uu(t),o={},a=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const c=r[s];(i||s!==0||c.type!=="element"||c.tagName!=="p")&&a.push({type:"text",value:`
|
|
26
|
-
`}),c.type==="element"&&c.tagName==="p"&&!i?a.push(...c.children):a.push(c)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
|
|
27
|
-
`});const l={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,l),e.applyData(t,l)}function uy(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Uu(n[r])}return t}function Uu(e){const t=e.spread;return t??e.children.length>1}function ly(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function cy(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dy(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function fy(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function py(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=uo(t.children[1]),u=gu(t.children[t.children.length-1]);s&&u&&(a.position={start:s,end:u}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function hy(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let u=-1;const l=[];for(;++u<s;){const d=t.children[u],p={},f=a?a[u]:void 0;f&&(p.align=f);let b={type:"element",tagName:o,properties:p,children:[]};d&&(b.children=e.all(d),e.patch(d,b),b=e.applyData(d,b)),l.push(b)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)}function gy(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Qu=9,$u=32;function my(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(qu(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(qu(t.slice(i),i>0,!1)),o.join("")}function qu(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Qu||o===$u;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Qu||o===$u;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function by(e,t){const n={type:"text",value:my(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function yy(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const vy={blockquote:_b,break:Ub,code:Qb,delete:$b,emphasis:qb,footnoteReference:Kb,heading:ey,html:ty,imageReference:ny,image:ry,inlineCode:iy,linkReference:oy,link:ay,listItem:sy,list:ly,paragraph:cy,root:dy,strong:fy,table:py,tableCell:gy,tableRow:hy,text:by,thematicBreak:yy,toml:Qr,yaml:Qr,definition:Qr,footnoteDefinition:Qr};function Qr(){}const Ku=-1,$r=0,qr=1,Kr=2,Ao=3,So=4,wo=5,Eo=6,el=7,tl=8,nl=typeof self=="object"?self:globalThis,Iy=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case $r:case Ku:return n(a,i);case qr:{const s=n([],i);for(const u of a)s.push(r(u));return s}case Kr:{const s=n({},i);for(const[u,l]of a)s[r(u)]=r(l);return s}case Ao:return n(new Date(a),i);case So:{const{source:s,flags:u}=a;return n(new RegExp(s,u),i)}case wo:{const s=n(new Map,i);for(const[u,l]of a)s.set(r(u),r(l));return s}case Eo:{const s=n(new Set,i);for(const u of a)s.add(r(u));return s}case el:{const{name:s,message:u}=a;return n(new nl[s](u),i)}case tl:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new nl[o](a),i)};return r},rl=e=>Iy(new Map,e)(0),kn="",{toString:Cy}={},{keys:xy}=Object,ar=e=>{const t=typeof e;if(t!=="object"||!e)return[$r,t];const n=Cy.call(e).slice(8,-1);switch(n){case"Array":return[qr,kn];case"Object":return[Kr,kn];case"Date":return[Ao,kn];case"RegExp":return[So,kn];case"Map":return[wo,kn];case"Set":return[Eo,kn]}return n.includes("Array")?[qr,n]:n.includes("Error")?[el,n]:[Kr,n]},ei=([e,t])=>e===$r&&(t==="function"||t==="symbol"),Ay=(e,t,n,r)=>{const i=(a,s)=>{const u=r.push(a)-1;return n.set(s,u),u},o=a=>{if(n.has(a))return n.get(a);let[s,u]=ar(a);switch(s){case $r:{let c=a;switch(u){case"bigint":s=tl,c=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([Ku],a)}return i([s,c],a)}case qr:{if(u)return i([u,[...a]],a);const c=[],d=i([s,c],a);for(const p of a)c.push(o(p));return d}case Kr:{if(u)switch(u){case"BigInt":return i([u,a.toString()],a);case"Boolean":case"Number":case"String":return i([u,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const c=[],d=i([s,c],a);for(const p of xy(a))(e||!ei(ar(a[p])))&&c.push([o(p),o(a[p])]);return d}case Ao:return i([s,a.toISOString()],a);case So:{const{source:c,flags:d}=a;return i([s,{source:c,flags:d}],a)}case wo:{const c=[],d=i([s,c],a);for(const[p,f]of a)(e||!(ei(ar(p))||ei(ar(f))))&&c.push([o(p),o(f)]);return d}case Eo:{const c=[],d=i([s,c],a);for(const p of a)(e||!ei(ar(p)))&&c.push(o(p));return d}}const{message:l}=a;return i([s,{name:u,message:l}],a)};return o},il=(e,{json:t,lossy:n}={})=>{const r=[];return Ay(!(t||n),!!t,new Map,r)(e),r},ti=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?rl(il(e,t)):structuredClone(e):(e,t)=>rl(il(e,t));function Sy(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function wy(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ey(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Sy,r=e.options.footnoteBackLabel||wy,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let u=-1;for(;++u<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[u]);if(!l)continue;const c=e.all(l),d=String(l.identifier).toUpperCase(),p=Fn(d.toLowerCase());let f=0;const b=[],g=e.footnoteCounts.get(d);for(;g!==void 0&&++f<=g;){b.length>0&&b.push({type:"text",value:" "});let P=typeof n=="string"?n:n(u,f);typeof P=="string"&&(P={type:"text",value:P}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,f),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const I=c[c.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const P=I.children[I.children.length-1];P&&P.type==="text"?P.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...b)}else c.push(...b);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(l,v),s.push(v)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ti(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
28
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
|
|
29
|
-
`}]}}const ol=function(e){if(e==null)return Ty;if(typeof e=="function")return ni(e);if(typeof e=="object")return Array.isArray(e)?Py(e):Fy(e);if(typeof e=="string")return ky(e);throw new Error("Expected function, string, or object as test")};function Py(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ol(e[n]);return ni(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function Fy(e){const t=e;return ni(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function ky(e){return ni(t);function t(n){return n&&n.type===e}}function ni(e){return t;function t(n,r,i){return!!(Gy(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Ty(){return!0}function Gy(e){return e!==null&&typeof e=="object"&&"type"in e}function Rv(e){return e}const al=[],Oy=!0,sl=!1,By="skip";function Ry(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=ol(i),a=r?-1:1;s(e,void 0,[])();function s(u,l,c){const d=u&&typeof u=="object"?u:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(u.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=al,b,g,I;if((!t||o(u,l,c[c.length-1]||void 0))&&(f=Vy(n(u,c)),f[0]===sl))return f;if("children"in u&&u.children){const v=u;if(v.children&&f[0]!==By)for(g=(r?v.children.length:-1)+a,I=c.concat(v);g>-1&&g<v.children.length;){const P=v.children[g];if(b=s(P,g,I)(),b[0]===sl)return b;g=typeof b[1]=="number"?b[1]:g+a}}return f}}}function Vy(e){return Array.isArray(e)?e:typeof e=="number"?[Oy,e]:e==null?al:[e]}function ul(e,t,n,r){let i,o,a;typeof t=="function"&&typeof n!="function"?(o=void 0,a=t,i=n):(o=t,a=n,i=r),Ry(e,o,s,i);function s(u,l){const c=l[l.length-1],d=c?c.children.indexOf(u):void 0;return a(u,d,c)}}const Po={}.hasOwnProperty,My={};function Ny(e,t){const n=t||My,r=new Map,i=new Map,o=new Map,a={...vy,...n.handlers},s={all:l,applyData:Ly,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:u,options:n,patch:Dy,wrap:zy};return ul(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?r:i,p=String(c.identifier).toUpperCase();d.has(p)||d.set(p,c)}}),s;function u(c,d){const p=c.type,f=s.handlers[p];if(Po.call(s.handlers,p)&&f)return f(s,c,d);if(s.options.passThrough&&s.options.passThrough.includes(p)){if("children"in c){const{children:g,...I}=c,v=ti(I);return v.children=s.all(c),v}return ti(c)}return(s.options.unknownHandler||Xy)(s,c,d)}function l(c){const d=[];if("children"in c){const p=c.children;let f=-1;for(;++f<p.length;){const b=s.one(p[f],c);if(b){if(f&&p[f-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=ll(b.value)),!Array.isArray(b)&&b.type==="element")){const g=b.children[0];g&&g.type==="text"&&(g.value=ll(g.value))}Array.isArray(b)?d.push(...b):d.push(b)}}}return d}}function Dy(e,t){e.position&&(t.position=Fg(e))}function Ly(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&o&&Object.assign(n.properties,ti(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Xy(e,t){const n=t.data||{},r="value"in t&&!(Po.call(n,"hProperties")||Po.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function zy(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
30
|
-
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
31
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
32
|
-
`}),n}function ll(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function cl(e,t){const n=Ny(e,t),r=n.one(e,void 0),i=Ey(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
|
|
33
|
-
`},i),o}function Hy(e,t){return e&&"run"in e?async function(n,r){const i=cl(n,{file:r,...t});await e.run(i,r)}:function(n,r){return cl(n,{file:r,...e||t})}}function dl(e){if(e)throw e}var ri=Object.prototype.hasOwnProperty,fl=Object.prototype.toString,pl=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,gl=function(t){return typeof Array.isArray=="function"?Array.isArray(t):fl.call(t)==="[object Array]"},ml=function(t){if(!t||fl.call(t)!=="[object Object]")return!1;var n=ri.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&ri.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||ri.call(t,i)},bl=function(t,n){pl&&n.name==="__proto__"?pl(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},yl=function(t,n){if(n==="__proto__")if(ri.call(t,n)){if(hl)return hl(t,n).value}else return;return t[n]},Wy=function e(){var t,n,r,i,o,a,s=arguments[0],u=1,l=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},u=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});u<l;++u)if(t=arguments[u],t!=null)for(n in t)r=yl(s,n),i=yl(t,n),s!==i&&(c&&i&&(ml(i)||(o=gl(i)))?(o?(o=!1,a=r&&gl(r)?r:[]):a=r&&ml(r)?r:{},bl(s,{name:n,newValue:e(c,a,i)})):typeof i<"u"&&bl(s,{name:n,newValue:i}));return s};const Fo=sa(Wy);function ko(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Zy(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(u,...l){const c=e[++o];let d=-1;if(u){a(u);return}for(;++d<i.length;)(l[d]===null||l[d]===void 0)&&(l[d]=i[d]);i=l,c?Yy(c,s)(...l):a(null,...l)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Yy(e,t){let n;return r;function r(...a){const s=e.length>a.length;let u;s&&a.push(i);try{u=e.apply(this,a)}catch(l){const c=l;if(s&&n)throw c;return i(c)}s||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const Ct={basename:jy,dirname:Jy,extname:_y,join:Uy,sep:"/"};function jy(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');sr(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function Jy(e){if(sr(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function _y(e){sr(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Uy(...e){let t=-1,n;for(;++t<e.length;)sr(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Qy(n)}function Qy(e){sr(e);const t=e.codePointAt(0)===47;let n=$y(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function $y(e,t){let n="",r=0,i=-1,o=0,a=-1,s,u;for(;++a<=e.length;){if(a<e.length)s=e.codePointAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function sr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const qy={cwd:Ky};function Ky(){return"/"}function To(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function e0(e){if(typeof e=="string")e=new URL(e);else if(!To(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return t0(e)}function t0(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Go=["history","path","basename","stem","extname","dirname"];class vl{constructor(t){let n;t?To(t)?n={path:t}:typeof t=="string"||n0(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":qy.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Go.length;){const o=Go[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Go.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Ct.basename(this.path):void 0}set basename(t){Bo(t,"basename"),Oo(t,"basename"),this.path=Ct.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ct.dirname(this.path):void 0}set dirname(t){Il(this.basename,"dirname"),this.path=Ct.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ct.extname(this.path):void 0}set extname(t){if(Oo(t,"extname"),Il(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ct.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){To(t)&&(t=e0(t)),Bo(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ct.basename(this.path,this.extname):void 0}set stem(t){Bo(t,"stem"),Oo(t,"stem"),this.path=Ct.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Ne(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Oo(e,t){if(e&&e.includes(Ct.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ct.sep+"`")}function Bo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Il(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function n0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const r0=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},i0={}.hasOwnProperty;class Ro extends r0{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Zy()}copy(){const t=new Ro;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Fo(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(No("data",this.frozen),this.namespace[t]=n,this):i0.call(this.namespace,t)&&this.namespace[t]||void 0:t?(No("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ii(t),r=this.parser||this.Parser;return Vo("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Vo("process",this.parser||this.Parser),Mo("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,a){const s=ii(t),u=r.parse(s);r.run(u,s,function(c,d,p){if(c||!d||!p)return l(c);const f=d,b=r.stringify(f,p);s0(b)?p.value=b:p.result=b,l(c,p)});function l(c,d){c||!d?a(c):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Vo("processSync",this.parser||this.Parser),Mo("processSync",this.compiler||this.Compiler),this.process(t,i),xl("processSync","process",n),r;function i(o,a){n=!0,dl(o),r=a}}run(t,n,r){Cl(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(a,s){const u=ii(n);i.run(t,u,l);function l(c,d,p){const f=d||t;c?s(c):a?a(f):r(void 0,f,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),xl("runSync","run",r),i;function o(a,s){dl(a),i=s,r=!0}}stringify(t,n){this.freeze();const r=ii(n),i=this.compiler||this.Compiler;return Mo("stringify",i),Cl(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(No("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(l){if(typeof l=="function")u(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[c,...d]=l;u(c,d)}else a(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function a(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(l.plugins),l.settings&&(i.settings=Fo(!0,i.settings,l.settings))}function s(l){let c=-1;if(l!=null)if(Array.isArray(l))for(;++c<l.length;){const d=l[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function u(l,c){let d=-1,p=-1;for(;++d<r.length;)if(r[d][0]===l){p=d;break}if(p===-1)r.push([l,...c]);else if(c.length>0){let[f,...b]=c;const g=r[p][1];ko(g)&&ko(f)&&(f=Fo(!0,g,f)),r[p]=[l,f,...b]}}}}const o0=new Ro().freeze();function Vo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Mo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function No(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Cl(e){if(!ko(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function xl(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ii(e){return a0(e)?e:new vl(e)}function a0(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function s0(e){return typeof e=="string"||u0(e)}function u0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const l0="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Al=[],Sl={allowDangerousHtml:!0},c0=/^(https?|ircs?|mailto|xmpp)$/i,d0=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function f0(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,s=e.rehypePlugins||Al,u=e.remarkPlugins||Al,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Sl}:Sl,c=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||p0,f=o0().use(Jb).use(u).use(Hy,l).use(s),b=new vl;typeof r=="string"&&(b.value=r);for(const P of d0)Object.hasOwn(e,P.from)&&(""+P.from+(P.to?"use `"+P.to+"` instead":"remove it")+l0+P.id,void 0);const g=f.parse(b);let I=f.runSync(g,b);return i&&(I={type:"element",tagName:"div",properties:{className:i},children:I.type==="root"?I.children:[I]}),ul(I,v),Rg(I,{Fragment:M.Fragment,components:o,ignoreInvalidStyle:!0,jsx:M.jsx,jsxs:M.jsxs,passKeys:!0,passNode:!0});function v(P,w,E){if(P.type==="raw"&&E&&typeof w=="number")return c?E.children.splice(w,1):E.children[w]={type:"text",value:P.value},w;if(P.type==="element"){let A;for(A in ho)if(Object.hasOwn(ho,A)&&Object.hasOwn(P.properties,A)){const C=P.properties[A],F=ho[A];(F===null||F.includes(P.tagName))&&(P.properties[A]=p(String(C||""),A,P))}}if(P.type==="element"){let A=t?!t.includes(P.tagName):a?a.includes(P.tagName):!1;if(!A&&n&&typeof w=="number"&&(A=!n(P,w,E)),A&&E&&typeof w=="number")return d&&P.children?E.children.splice(w,1,...P.children):E.children.splice(w,1),w}}}function p0(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||c0.test(e.slice(0,t))?e:""}function wl(e){e.field||console.log("props",e);const{field:t,markdown:n}=e,{prop:r}=t,{getClassNames:i,getStyles:o,theme:a}=qe(),s={color:a.colors.neutral50,fontWeight:400,fontSize:"0.75rem",gridArea:"description",textWrap:"balance",lineHeight:"1.5"};return r.type==="app"?M.jsx("p",{className:i("description",e),style:o("description",s,e),children:"Credentials are encrypted."}):r.description?M.jsx("div",{className:i("description",e),style:o("description",s,e),children:M.jsx(f0,{children:n})}):null}function El(e){const{errors:t}=e,{getProps:n,theme:r}=qe(),i={color:r.colors.danger,gridArea:"errors"};return t.length?M.jsx("ul",{...n("errors",i,e),children:t.map(o=>M.jsx("li",{...n("error",i,e),children:o},o))}):null}function Pl(e){const{text:t,field:n}=e,{id:r}=n,{getProps:i,theme:o}=qe(),a={color:o.colors.neutral90,fontWeight:450,gridArea:"label",textTransform:"capitalize",lineHeight:"1.5"};return M.jsx("label",{htmlFor:r,...i("label",a,e),children:t})}const Fl=e=>{const{prop:t,enabled:n,onClick:r}=e,{getProps:i,theme:o}=qe(),a={color:o.colors.neutral60,display:"inline-flex",alignItems:"center",padding:`${o.spacing.baseUnit}px ${o.spacing.baseUnit*1.5}px ${o.spacing.baseUnit}px ${o.spacing.baseUnit*2.5}px`,border:`1px solid ${o.colors.neutral30}`,borderRadius:o.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:o.spacing.baseUnit*2,textWrap:"nowrap"};return M.jsxs("button",{onClick:r,type:"button",...i("optionalFieldButton",a,e),children:[M.jsx("span",{children:n?"-":"+"}),M.jsx("span",{style:{marginRight:8},children:t.label||t.name})]})},kl={Description:wl,Errors:El,Label:Pl,OptionalFieldButton:Fl},oi=B.createContext({classNames:{},classNamePrefix:"",components:{},styles:{},theme:jr,unstyled:!1});function h0(){const e=B.useContext(oi)??{},t=Qs(e.theme??{});function n(){return e.classNamePrefix??""}function r(s){var c;const u=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${s}`,l={...((c=e.classNames)==null?void 0:c[s])??{}};return typeof(l==null?void 0:l.container)=="function"&&(l.container=typeof(l==null?void 0:l.container)=="function"?(...d)=>{var p;return[(p=l==null?void 0:l.container)==null?void 0:p.call(l,...d),u].join(" ")}:()=>u),l}function i(s,u){var l;return{...Hr,...u??{},...((l=e==null?void 0:e.components)==null?void 0:l[s])??{}}}function o(s,u){var l;return Nh(((l=e.styles)==null?void 0:l[s])??{},u??{})}function a(s,u){return{classNamePrefix:n(),classNames:r(s),components:i(s,u==null?void 0:u.components),styles:o(s,u==null?void 0:u.styles),theme:t}}return{getClassNamePrefix:n,getClassNames:r,getComponents:i,getProps:a,getStyles:o,theme:t}}function qe(){const e=B.useContext(oi)??{},t=e.theme,n=e.unstyled?Us:jr,r=typeof t=="function"?Jr(n,t(n)):Jr(n,t);function i(u,l){var p;const c=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${u.toLowerCase()}`,d=(p=e.classNames)==null?void 0:p[u];if(typeof d=="function"){const f=d,b={...l??{},theme:r};return[c,f(b)].filter(Boolean).join(" ")}return[c,d].filter(Boolean).join(" ")}function o(){return{...kl,...(e==null?void 0:e.components)??{}}}function a(u,l,c){var p;const d=(p=e.styles)==null?void 0:p[u];if(typeof d=="function"){const f=d,b={...c??{},theme:r};return f(l,b)}return d?{...l,...d}:l}function s(u,l,c){return{className:i(u,c),style:a(u,l,c)}}return{getClassNames:i,getComponents:o,getProps:s,getStyles:a,select:h0(),theme:r}}const g0=({children:e,...t})=>M.jsx(oi.Provider,{value:t,children:e}),Do=B.createContext(void 0),nn=()=>{const e=B.useContext(Do);if(!e)throw new Error("Must be used inside FormFieldContext.Provider");return e},Tl=(e,t)=>{var i;const n=kt(),r=qt({...t==null?void 0:t.useQueryOpts,queryKey:["accounts",e],queryFn:()=>n.getAccounts(e)});return{...r,accounts:((i=r.data)==null?void 0:i.data)||[]}},m0=e=>M.jsx(Hr.Option,{...e,children:e.data.name});function Gl({app:e}){const t=kt(),n=nn(),{id:r,prop:i,value:o,onChange:a}=n,{getProps:s,select:u,theme:l}=qe(),c={color:l.colors.neutral60,gridArea:"control"},d={borderRadius:l.borderRadius,border:"solid 1px",borderColor:l.colors.neutral20,color:l.colors.neutral60,padding:"0.25rem 0.5rem",gridArea:"control"},p={components:{Option:m0},styles:{control:E=>({...E,gridArea:"control",boxShadow:l.boxShadow.input})}},f=u.getProps("controlAppSelect",p),b=void 0,{isLoading:g,accounts:I,refetch:v}=Tl({app:e.name_slug,oauth_app_id:b},{useQueryOpts:{enabled:!!e,suspense:!!e}}),P=async()=>{t.connectAccount({app:i.app,oauthAppId:b,onSuccess:async E=>{await v(),a({authProvisionId:E.id})},onError:()=>{}})},w=B.useMemo(()=>{let E=o;if(E!=null){for(const A of I)if(E.authProvisionId===A.id){E=A;break}}return E},[I,o]);return M.jsx("div",{...s("controlApp",c,{app:e,...n}),children:g?`Loading ${e.name} accounts...`:I.length?M.jsx(Yr,{instanceId:r,value:w,options:[...I,{id:"_new",name:`Connect new ${e.name} account...`}],...f,required:!0,placeholder:`Select ${e.name} account...`,isLoading:g,isClearable:!0,isSearchable:!0,getOptionLabel:E=>E.name,getOptionValue:E=>E.id,onChange:E=>{E?E.id==="_new"?P():a({authProvisionId:E.id}):a(void 0)}}):M.jsxs("button",{type:"button",...s("connectButton",d,{app:e,...n}),onClick:()=>P(),children:["Connect ",e.name]})})}function Ol(){const e=nn(),{id:t,value:n,onChange:r}=e,{getProps:i}=qe(),o={width:"16px",height:"16px",gridArea:"control",margin:"0 0.5rem 0 0"};return M.jsx("input",{id:t,type:"checkbox",...i("controlBoolean",o,e),checked:n??!1,onChange:a=>r(a.target.checked)})}function Bl(){const e=nn(),{id:t,onChange:n,prop:r,value:i}=e,{getProps:o,theme:a}=qe(),s={color:a.colors.neutral60,display:"block",border:"1px solid",borderColor:a.colors.neutral20,padding:6,width:"100%",borderRadius:a.borderRadius,gridArea:"control",boxShadow:a.boxShadow.input};let u="off",l="text",c=d=>d;switch(r.type){case"string":break;case"integer":l="number",c=d=>d?parseInt(d):void 0;break;default:throw new Error("unexpected prop.type for ControlInput: "+r.type)}return"secret"in r&&r.secret&&(l="password",u="new-password"),M.jsx("input",{id:t,type:l,name:r.name,value:i??"",onChange:d=>n(c(d.target.value)),...o("controlInput",s,e),min:"min"in r?r.min:void 0,max:"max"in r?r.max:void 0,autoComplete:u,"data-lpignore":"true","data-1p-ignore":"true",required:!r.optional})}var b0=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Rl=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=String(t).toLowerCase(),o=String(r.getOptionValue(n)).toLowerCase(),a=String(r.getOptionLabel(n)).toLowerCase();return o===i||a===i},Lo={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,r,i){return!(!t||n.some(function(o){return Rl(t,o,i)})||r.some(function(o){return Rl(t,o,i)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function y0(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,r=e.createOptionPosition,i=r===void 0?"last":r,o=e.formatCreateLabel,a=o===void 0?Lo.formatCreateLabel:o,s=e.isValidNewOption,u=s===void 0?Lo.isValidNewOption:s,l=e.getNewOptionData,c=l===void 0?Lo.getNewOptionData:l,d=e.onCreateOption,p=e.options,f=p===void 0?[]:p,b=e.onChange,g=gt(e,b0),I=g.getOptionValue,v=I===void 0?Ds:I,P=g.getOptionLabel,w=P===void 0?Ns:P,E=g.inputValue,A=g.isLoading,C=g.isMulti,F=g.value,G=g.name,R=B.useMemo(function(){return u(E,Nr(F),f,{getOptionValue:v,getOptionLabel:w})?c(E,a(E)):void 0},[a,c,w,v,E,u,f,F]),W=B.useMemo(function(){return(n||!A)&&R?i==="first"?[R].concat(vn(f)):[].concat(vn(f),[R]):f},[n,i,A,R,f]),D=B.useCallback(function(O,ne){if(ne.action!=="select-option")return b(O,ne);var ae=Array.isArray(O)?O:[O];if(ae[ae.length-1]===R){if(d)d(E);else{var H=c(E,E),ee={action:"create-option",name:G,option:H};b(Kn(C,[].concat(vn(Nr(F)),[H]),H),ee)}return}b(O,ne)},[c,E,C,G,R,d,b,F]);return J(J({},g),{},{options:W,onChange:D})}var v0=B.forwardRef(function(e,t){var n=Oa(e),r=y0(n);return _.createElement(no,$({ref:t},r))}),I0=v0;function ai({isCreatable:e,options:t,selectProps:n}){const r=nn(),{id:i,prop:o,value:a,onChange:s}=r,{select:u,theme:l}=qe(),c={styles:{container:f=>({...f,gridArea:"control",boxShadow:l.boxShadow.input})}},d=B.useMemo(()=>{let f=a;if(f!=null){if(Array.isArray(f)){if(typeof f[0]!="object"){const b=[];for(const g of f)b.push({label:g,value:g});f=b}}else if(typeof f!="object"&&(t==null?void 0:t[0])&&typeof t[0]=="object"){for(const g of t)if(g.value===a){f=g;break}}}return f},[a,t]),p=e?I0:Yr;return M.jsx(p,{inputId:i,instanceId:i,options:t,value:d,isMulti:o.type.endsWith("[]"),isClearable:!0,required:!o.optional,...u.getProps("controlSelect",c),...n,onChange:f=>{if(f)if(Array.isArray(f))if(typeof f[0]=="object"&&"value"in f[0]){const b=[];for(const g of f)b.push(g.value);s(b)}else s(f);else if(typeof f=="object"&&"value"in f)s(f.value);else throw new Error("unhandled option type");else s(void 0)}})}function Vl({queryEnabled:e}){const t=kt(),{userId:n,component:r,configurableProps:i,configuredProps:o,dynamicProps:a,props:{disableQueryDisabling:s}}=Cr(),{idx:u,prop:l}=nn(),[c,d]=B.useState(""),p={};for(let C=0;C<u;C++){const F=i[C];p[F.name]=o[F.name]}const f={userId:n,componentId:r.key,propName:l.name,configuredProps:p,dynamicPropsId:a==null?void 0:a.id};l.useQuery&&(f.query=c||"");const b={...f};delete b.dynamicPropsId;const[g,I]=B.useState(),{isFetching:v,data:P,refetch:w}=qt({queryKey:["componentConfigure",b],queryFn:async()=>{I(void 0);const C=await t.componentConfigure(f),{options:F,string_options:G,errors:R}=C;if(R!=null&&R.length){try{I(JSON.parse(R[0]))}catch{I({name:"Error",message:R[0]})}return[]}if(F!=null&&F.length)return F;if(G!=null&&G.length){const W=[];for(const D of G)W.push({label:D,value:D});return W}return[]},enabled:!!e}),E=g?g.message:s?"Click to configure":e?void 0:"Configure props above first",A=s?!1:!e;return M.jsx(ai,{options:P||[],selectProps:{isLoading:v,placeholder:E,isDisabled:A,inputValue:l.useQuery?c:void 0,onInputChange(C){l.useQuery&&(d(C),w())},onMenuOpen(){s&&!e&&w()}}})}function Ml(e){const{field:t,form:n}=e,{queryDisabledIdx:r}=n,{prop:i,idx:o}=t,a="app"in t.extra?t.extra.app:void 0;if(i.remoteOptions||i.type==="$.discord.channel")return M.jsx(Vl,{queryEnabled:r==null||r>=o});if("options"in i&&i.options){let s=i.options;return typeof s[0]!="object"&&(s=s.map(u=>({label:u,value:u}))),M.jsx(ai,{options:s,components:{IndicatorSeparator:()=>null}})}if(i.type.endsWith("[][]"))throw new Error("Unsupported property type: "+i.type);if(i.type.endsWith("[]"))return M.jsx(ai,{isCreatable:!0,options:[],components:{IndicatorSeparator:()=>null}});switch(i.type){case"app":return M.jsx(Gl,{app:a});case"boolean":return M.jsx(Ol,{});case"string":case"integer":return M.jsx(Bl,{});default:throw new Error("Unsupported property type: "+i.type)}}function Nl(e){const{form:t,field:n}=e,{prop:r}=n,{getProps:i,getComponents:o}=qe(),a={display:"grid",gridTemplateAreas:n.prop.type=="boolean"?'"control label" "description description" "error error"':'"label label" "control control" "description description" "error error"',gridTemplateColumns:"min-content auto",gap:"0.25rem 0",alignItems:"center",fontSize:"0.875rem"},{Label:s,Description:u,Errors:l}=o(),c=[],d="app"in n.extra?n.extra.app:void 0;if(d&&!d.auth_type)return null;let p=r.label||r.name;return d&&(p=`Connect ${d.name} account`),M.jsxs("div",{...i("field",a,e),children:[M.jsx(s,{text:p,field:n,form:t}),M.jsx(Ml,{field:n,form:t}),M.jsx(u,{markdown:r.description,field:n,form:t}),M.jsx(l,{errors:c,field:n,form:t})]})}const Dl=(e,t)=>{var i;const n=kt(),r=qt({queryKey:["app",e],queryFn:()=>n.app(e),...t==null?void 0:t.useQueryOpts});return{...r,app:(i=r.data)==null?void 0:i.data}};function Ll({prop:e,idx:t}){const n=Cr(),{id:r,configuredProps:i,setConfiguredProp:o}=n,a=e.type==="app"&&"app"in e?e.app:void 0,{app:s}=Dl(a||"",{useQueryOpts:{enabled:!!a,suspense:!!a}}),l={id:`pd${r}${e.name}`,prop:e,idx:t,value:i[e.name],onChange(c){o(t,c)},extra:{app:s}};return M.jsx(Do.Provider,{value:l,children:M.jsx(Nl,{field:l,form:n})})}class Xl extends B.Component{constructor(){super(...arguments),this.state={err:void 0}}static getDerivedStateFromError(t){return{err:t}}render(){const{err:t}=this.state;return t?this.props.fallback(t):this.props.children}}function zl(e){var a;const{form:t}=e,{submitting:n}=t,{getProps:r,theme:i}=qe(),o={width:"fit-content",textTransform:"capitalize",backgroundColor:i.colors.primary,color:i.colors.neutral0,padding:`${i.spacing.baseUnit*1.75}px ${i.spacing.baseUnit*16}px`,borderRadius:i.borderRadius,boxShadow:(a=i.boxShadow)==null?void 0:a.button,cursor:"pointer",fontSize:"0.875rem",opacity:n?.5:void 0,margin:"0.5rem 0 0 0"};return M.jsx("input",{type:"submit",value:n?"Submitting...":"Submit",...r("controlSubmit",o,e),disabled:n})}function Hl(){const e=Cr(),{configurableProps:t,dynamicPropsQueryIsFetching:n,isValid:r,optionalPropIsEnabled:i,optionalPropSetEnabled:o,props:a,setSubmitting:s}=e,{hideOptionalProps:u,onSubmit:l}=a,{getComponents:c,getProps:d,theme:p}=qe(),{OptionalFieldButton:f}=c(),b={display:"flex",flexDirection:"column",gap:"1.5rem"},g={display:"flex",flexWrap:"wrap",gap:"0.375rem"},I={fontWeight:600,textTransform:"capitalize",color:p.colors.neutral60,fontSize:"0.875rem",lineHeight:"1.375",margin:"0 0 0.5rem 0"},v=async E=>{if(l&&(E.preventDefault(),r)){s(!0);try{await l(e)}finally{s(!1)}}},P=[],w=[];for(let E=0;E<t.length;E++){const A=t[E];if(!A.hidden){if(A.optional){const C=i(A);if(w.push([A,C]),!C)continue}P.push([A,E])}}return M.jsx(Xl,{fallback:E=>M.jsxs("p",{style:{color:"red"},children:["Error: ",E&&typeof E=="object"&&"message"in E&&typeof E.message=="string"?E.message:"Unknown"]}),children:M.jsx(B.Suspense,{fallback:M.jsx("p",{children:"Loading form..."}),children:M.jsxs("form",{...d("componentForm",b,a),onSubmit:v,children:[P.map(([E,A])=>E.type==="alert"?M.jsx(aa,{prop:E},E.name):M.jsx(Ll,{prop:E,idx:A},E.name)),n&&M.jsx("p",{children:"Loading dynamic props..."}),!u&&w.length?M.jsxs("div",{children:[M.jsx("div",{...d("heading",I,a),children:"Optional Props"}),M.jsx("div",{...d("optionalFields",g,a),children:w.map(([E,A])=>M.jsx(f,{prop:E,enabled:A,onClick:()=>o(E,!A)},E.name))})]}):null,l&&M.jsx(zl,{form:e})]})})})}function Wl(e){return M.jsx(Fa,{props:e,children:M.jsx(Hl,{})})}const Zl=({key:e},t)=>{var i;const n=kt(),r=qt({queryKey:["component",e],queryFn:()=>n.component({key:e}),enabled:!!e,...t==null?void 0:t.useQueryOpts});return{...r,component:(i=r.data)==null?void 0:i.data}};function C0(e){const{isLoading:t,error:n,component:r}=Zl({key:e.componentKey});if(!e.componentKey)throw new Error("componentKey required");return t?M.jsx("p",{children:"Loading..."}):n?M.jsxs("p",{children:["Error: ",n.message]}):r?M.jsx(Wl,{component:r,...e}):M.jsx("p",{children:"Component not found"})}function x0(){const e=nn(),{id:t,onChange:n,value:r}=e,{getProps:i,theme:o}=qe(),a={display:"block",gridArea:"control",width:"100%",fontSize:"0.875rem",boxShadow:o.boxShadow.input};let s=r;return typeof s=="object"&&(s=JSON.stringify(s)),M.jsx("textarea",{id:t,value:s,onChange:u=>n(u.target.value),...i("controlAny",a,e)})}const Yl=e=>{var r;const t=kt(),n=qt({queryKey:["apps",e],queryFn:()=>t.apps(e)});return{...n,apps:(r=n.data)==null?void 0:r.data}};function A0({value:e,onChange:t}){const[n,r]=B.useState(""),i=B.useId(),{isLoading:o,apps:a}=Yl({q:n}),{Option:s}=Hr;return M.jsx(Yr,{instanceId:i,className:"react-select-container text-sm",classNamePrefix:"react-select",components:{Option:u=>M.jsx(s,{...u,children:M.jsxs("div",{style:{display:"flex",gap:10},children:[M.jsx("img",{src:`https://pipedream.com/s.v0/${u.data.id}/logo/48`,style:{height:24,width:24},alt:u.data.name}),M.jsx("span",{style:{whiteSpace:"nowrap"},children:u.data.name})]})}),IndicatorSeparator:()=>null},options:a||[],getOptionLabel:u=>u.name||u.name_slug,getOptionValue:u=>u.name_slug,value:e,onChange:u=>t==null?void 0:t(u||void 0),onInputChange:u=>r(u),isLoading:o})}const jl=e=>{var r;const t=kt(),n=qt({queryKey:["components",e],queryFn:()=>t.components(e)});return{...n,components:((r=n.data)==null?void 0:r.data)||[]}};function S0({app:e,componentType:t,value:n,onChange:r}){const{isLoading:i,components:o}=jl({app:e==null?void 0:e.name_slug,componentType:t});return M.jsx(Yr,{instanceId:e==null?void 0:e.name_slug,className:"react-select-container text-sm",classNamePrefix:"react-select",options:o,getOptionLabel:a=>a.name||a.key,getOptionValue:a=>a.key,value:n,onChange:a=>r==null?void 0:r(a||void 0),isLoading:i,components:{IndicatorSeparator:()=>null}})}L.Alert=aa,L.ComponentForm=Wl,L.ComponentFormContainer=C0,L.Control=Ml,L.ControlAny=x0,L.ControlApp=Gl,L.ControlBoolean=Ol,L.ControlInput=Bl,L.ControlSelect=ai,L.ControlSubmit=zl,L.CustomizationContext=oi,L.CustomizeProvider=g0,L.Description=wl,L.ErrorBoundary=Xl,L.Errors=El,L.Field=Nl,L.FormContext=Ti,L.FormContextProvider=Fa,L.FormFieldContext=Do,L.FrontendClientProvider=$c,L.InternalComponentForm=Hl,L.InternalField=Ll,L.Label=Pl,L.OptionalFieldButton=Fl,L.RemoteOptionsContainer=Vl,L.SelectApp=A0,L.SelectComponent=S0,L.defaultComponents=kl,L.defaultTheme=jr,L.getReactSelectTheme=Qs,L.mergeTheme=Jr,L.unstyledTheme=Us,L.useAccounts=Tl,L.useApp=Dl,L.useApps=Yl,L.useComponent=Zl,L.useComponents=jl,L.useCustomize=qe,L.useFormContext=Cr,L.useFormFieldContext=nn,L.useFrontendClient=kt,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})});
|