@ws-ui/localization-editor 1.11.12-rc1 → 1.11.12-rc13
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/dist/Standalone/index.d.ts +2 -0
- package/dist/Standalone/style.css +1 -1
- package/dist/adapter/fetchI18nFile.d.ts +3 -0
- package/dist/adapter/provider.d.ts +3 -1
- package/dist/adapter/reducer/adapter.d.ts +3 -1
- package/dist/adapter/types.d.ts +2 -1
- package/dist/common.cjs.js +1 -1
- package/dist/common.cjs.js.map +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.es.js +1 -1
- package/dist/common.es.js.map +1 -1
- package/dist/index.cjs.js +143 -81
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +33010 -27134
- package/dist/index.es.js.map +1 -1
- package/dist/languages.d.ts +8 -0
- package/dist/localization-editor.css +1 -1
- package/package.json +5 -4
package/dist/index.cjs.js
CHANGED
|
@@ -1,109 +1,171 @@
|
|
|
1
|
-
"use strict";Object.
|
|
2
|
-
`+n.map(function(r
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=n}});function iu(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var xs=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,a;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var u=ru(o),l=u.next();!l.done;l=u.next()){var c=l.value;c.remove(this)}}catch(w){t={error:w}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}else o.remove(this);var p=this.initialTeardown;if(kn(p))try{p()}catch(w){a=w instanceof lo?w.errors:[w]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=ru(f),g=d.next();!g.done;g=d.next()){var x=g.value;try{yc(x)}catch(w){a=a??[],w instanceof lo?a=_t(_t([],pt(a)),pt(w.errors)):a.push(w)}}}catch(w){r={error:w}}finally{try{g&&!g.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}if(a)throw new lo(a)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)yc(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&iu(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&iu(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),ap=xs.EMPTY;function sp(e){return e instanceof xs||e&&"closed"in e&&kn(e.remove)&&kn(e.add)&&kn(e.unsubscribe)}function yc(e){kn(e)?e():e.unsubscribe()}var y0={Promise:void 0},w0={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,_t([e,t],pt(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function S0(e){w0.setTimeout(function(){throw e})}function wc(){}function Ra(e){e()}var Gu=(function(e){br(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,sp(n)&&n.add(r)):r.destination=E0,r}return t.create=function(n,r,i){return new au(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(xs),C0=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){ca(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){ca(r)}else ca(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){ca(n)}},e})(),au=(function(e){br(t,e);function t(n,r,i){var a=e.call(this)||this,o;return kn(n)||!n?o={next:n??void 0,error:r??void 0,complete:i??void 0}:o=n,a.destination=new C0(o),a}return t})(Gu);function ca(e){S0(e)}function k0(e){throw e}var E0={closed:!0,next:wc,error:k0,complete:wc},_0=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function I0(e){return e}function T0(e){return e.length===0?I0:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var Sc=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,a=P0(t)?t:new au(t,n,r);return Ra(function(){var o=i,u=o.operator,l=o.source;a.add(u?u.call(a,l):l?i._subscribe(a):i._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=Cc(n),new n(function(i,a){var o=new au({next:function(u){try{t(u)}catch(l){a(l),o.unsubscribe()}},error:a,complete:i});r.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[_0]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return T0(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Cc(t),new t(function(r,i){var a;n.subscribe(function(o){return a=o},function(o){return i(o)},function(){return r(a)})})},e.create=function(t){return new e(t)},e})();function Cc(e){var t;return(t=e??y0.Promise)!==null&&t!==void 0?t:Promise}function A0(e){return e&&kn(e.next)&&kn(e.error)&&kn(e.complete)}function P0(e){return e&&e instanceof Gu||A0(e)&&sp(e)}function op(e,t,n,r,i){return new N0(e,t,n,r,i)}var N0=(function(e){br(t,e);function t(n,r,i,a,o,u){var l=e.call(this,n)||this;return l.onFinalize=o,l.shouldUnsubscribe=u,l._next=r?function(c){try{r(c)}catch(p){n.error(p)}}:e.prototype._next,l._error=a?function(c){try{a(c)}catch(p){n.error(p)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=i?function(){try{i()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t})(Gu);function R0(e,t){return rp(function(n,r){var i=0;n.subscribe(op(r,function(a){r.next(e.call(t,a,i++))}))})}var O0=ip(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),up=(function(e){br(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new kc(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new O0},t.prototype.next=function(n){var r=this;Ra(function(){var i,a;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=ru(r.currentObservers),u=o.next();!u.done;u=o.next()){var l=u.value;l.next(n)}}catch(c){i={error:c}}finally{try{u&&!u.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;Ra(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;Ra(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=this,a=i.hasError,o=i.isStopped,u=i.observers;return a||o?ap:(this.currentObservers=null,u.push(n),new xs(function(){r.currentObservers=null,iu(u,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,a=r.thrownError,o=r.isStopped;i?n.error(a):o&&n.complete()},t.prototype.asObservable=function(){var n=new Sc;return n.source=this,n},t.create=function(n,r){return new kc(n,r)},t})(Sc),kc=(function(e){br(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:ap},t})(up);function L0(e,t){return rp(function(n,r){var i=0;n.subscribe(op(r,function(a){return e.call(t,a,i++)&&r.next(a)}))})}const lp=F.createContext(void 0),co={i18n:{keys:{},userLang:{primary:"",supported:[]}},i18nFileFetched:!1},cp={tr_key:"__t"},{tr_key:fa}=cp,V0={buildPathFullObject:e=>`${fa}.${e}`,getKeyValueFromCustom:(e,t)=>ge.get(e,`${fa}.${t}.key`),getDefaultValueFromCustom:(e,t)=>ge.get(e,`${fa}.${t}.default`),getFullObject:(e,t)=>ge.get(e,`${fa}.${t}`)},fp=F.memo(({children:e,isI18nEnabled:t,onI18nChange:n})=>{const[r,i]=F.useState(co),a=F.useRef(!1),{i18n:o}=r,u=(S,b,k)=>{let E=1,O=S;for(;o.keys[O];)O=`${S}-${E}`,E++;const y={default:k};b.forEach(({lang:_,value:V})=>{_&&ge.set(y,_,V)});const m={keys:{...o.keys,[S]:y},userLang:o.userLang};i(_=>({..._,i18n:m}))},l=()=>{const S=new window.Event("i18n:ready");window.dispatchEvent(S)},c=F.useCallback(ge.debounce((S,b,k,E=!1)=>{i(O=>{const{keys:y,userLang:m}=O.i18n;if(y[S]&&b){const _={...y,[S]:{...y[S],[b]:k}};return a.current=E,{...O,i18n:{keys:_,userLang:m}}}return O})},300),[]),p=F.useCallback(ge.debounce((S,b)=>{const{keys:k,userLang:E}=ge.cloneDeep(o);k[S]&&b&&ge.set(k,`${S}.default`,b),i(O=>({...O,i18n:{keys:k,userLang:E}}))},300),[]),f=S=>{S&&i(b=>({...b,i18n:{...b.i18n,userLang:S}}))},d=F.useCallback((S,b)=>{const{keys:k,userLang:E}=o,y={keys:Object.entries(k).reduce((m,[_,V])=>{const M={...V};return S.isocode in M&&(M[b.isocode]=M[S.isocode],delete M[S.isocode]),m[_]=M,m},{}),userLang:E};i(m=>({...m,i18n:y}))},[o]),g=F.useCallback(S=>{const{keys:b,userLang:k}=o,O={keys:Object.entries(b).reduce((y,[m,_])=>{const V={..._};return S.isocode in V&&delete V[S.isocode],y[m]=V,y},{}),userLang:k};i(y=>({...y,i18n:O}))},[o]),x=S=>{const b=[];return Object.keys(o.keys).forEach(E=>{const O=ge.get(o,`keys.${E}.${S}`,ge.get(o,`keys.${E}.default`,""));b.push({key:E,value:O})}),b},w=F.useCallback(ge.debounce(S=>{i(b=>{const{keys:k,userLang:E}=b.i18n,O={...k};return delete O[S],{...b,i18n:{userLang:E,keys:O}}})},300),[]);return F.useEffect(()=>{(async()=>{if(!t){l();return}try{const b=await fetch(`/$shared/i18n.json?ts=${Date.now()}`);if(!b.ok)throw new Error(`HTTP ${b.status}`);try{const k=await b.json();i(E=>({...E,i18n:{keys:ge.get(k,"keys",co.i18n.keys),userLang:ge.get(k,"userLang",co.i18n.userLang)}}))}catch{throw new Error("Invalid JSON in response")}}catch{}finally{i(b=>({...b,i18nFileFetched:!0})),l()}})()},[]),F.useEffect(()=>{const S=we.i18nSubject.pipe(R0(({action:b,payload:k})=>{if(b==="set_content"){const E={...o,keys:{...o.keys,...k}};i(O=>({...O,i18n:E}))}if(b==="set_locale_state"){const E={...o,...k};i(O=>({...O,i18n:E}))}})).subscribe();return()=>S.unsubscribe()},[o]),F.useEffect(()=>{r.i18nFileFetched&&(n==null||n(r.i18n))},[r]),R.jsx(lp.Provider,{value:{i18n:r.i18n,createKey:u,updateKey:c,removeKey:w,editLanguageKeys:d,updateKeyDefault:p,deleteLanguageKeys:g,getI18nAsKeyValues:x,setUserLangSettings:f,shouldRecompute:a},children:e})});function Zn(){const e=F.useContext(lp);if(e===void 0)throw new Error("useI18n must be used within a I18nProviderContext");return e}const hp=F.createContext(void 0),pp=F.createContext(void 0),D0=e=>we.getSupportedLanguages(e),dp=({children:e,getSupportedLanguages:t=D0,i18nCurrent:n="",activeTabPath:r="",flagsForActiveTab:i})=>{const{isInsideStudio:a}=we.useStudioContext();return a?R.jsx(M0,{getSupportedLanguages:t,i18nCurrent:n,activeTabPath:r,flagsForActiveTab:i,children:e}):R.jsx(F0,{getSupportedLanguages:t,children:e})},F0=({children:e,getSupportedLanguages:t})=>{const{state:{currentLang:n},actions:r}=we.useStateObject({currentLang:""}),{actions:i}=we.useDsRendererAdapter(`${we.QODLY_NAMESPACE}:${we.USER_LANGUAGE_DATASOURCE_ID}`),{i18n:{userLang:{primary:a,supported:o}}}=Zn(),{isInsideStudio:u}=we.useStudioContext(),[l,c]=F.useState([]),{loaded:p}=we.useDsChangeRenderer({datasourceId:`${we.QODLY_NAMESPACE}:${we.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:!0,onChange:w=>{if(!w)return;const{selected:S}=w;S&&S.isocode&&(r.setCurrentLang(S.isocode),d(S))}}),f=(w,S)=>{i.setProperty(w,S)},d=w=>{localStorage.setItem("i18n.selected",JSON.stringify(w))},g=()=>{const w=localStorage.getItem("i18n.selected");return w?JSON.parse(w):null},x=()=>navigator.language;return F.useEffect(()=>{t(u).then(w=>{c(w)})},[t,u]),F.useEffect(()=>{if(p&&o){const w=o.map(({isocode:S})=>l.find(b=>b.isocode===S)).filter(Boolean);f("supported",w)}},[o,p]),F.useEffect(()=>{if(p){const w=g();if(w){f("selected",w);return}const S=x();if(S){const b=o.find(k=>k.isocode===S);if(b){f("selected",b);return}}if(a){const b=o.find(k=>k.isocode===a);b&&f("selected",b)}}},[p,o,a]),R.jsx(pp.Provider,{value:{selected:n,supported:l},children:e})},M0=F.memo(({children:e,getSupportedLanguages:t,i18nCurrent:n,flagsForActiveTab:r})=>{const{state:{supported:i},actions:a}=we.useStateObject({supported:[]}),{i18n:{userLang:{primary:o,supported:u}}}=Zn(),{isInsideStudio:l}=we.useStudioContext(),c=n&&u.find(d=>d.isocode===n)?n:"",[p,f]=F.useState(c);return F.useEffect(()=>{r!=null&&r.enabled&&f("")},[r==null?void 0:r.enabled]),F.useEffect(()=>{f(c)},[c]),we.useDsChangeRenderer({datasourceId:`${we.QODLY_NAMESPACE}:${we.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:r==null?void 0:r.enabled,onChange:d=>{if(!d)return;const{selected:g}=d;g&&g.isocode&&(f(g.isocode),localStorage.setItem("i18n.selected",g.isocode))}}),F.useEffect(()=>{t(l).then(d=>{a.setSupported(d)})},[t,l,a]),R.jsx(hp.Provider,{value:{primary:o,selected:p||c,supported:i,userLangagues:u},children:e})});function mp(){const{isInsideStudio:e}=we.useStudioContext(),t=F.useContext(hp),n=F.useContext(pp),r=e?t:n;if(r===void 0)throw new Error("useLocalization must be used within a LocalizationContext");return r}const gp=F.createContext(void 0),xp=({children:e})=>{const{state:{allSupportedLanguages:t,selectedLanguage:n,languageKeys:r,addFirstLanguage:i},actions:a}=we.useStateObject({allSupportedLanguages:[],selectedLanguage:void 0,languageKeys:[],addFirstLanguage:!1}),{supported:o}=mp(),{i18n:u,setUserLangSettings:l,updateKey:c,removeKey:p,createKey:f}=Zn(),d=(x,w)=>Object.keys(w).reduce((k,E)=>{if(w[E]){const O=w[E];if(Object.hasOwn(O,x)){const y=w[E][x];k.push({key:E,value:y,isDefault:!1})}else{const y=w[E].default;k.push({key:E,value:y,isDefault:!0})}}return k},[]),g=(x,w)=>{if(n){const{isocode:S}=n;c(x,S,w,!0);const b=structuredClone(u.keys),k=ge.set({...b},`${x}.${S}`,w),E=d(S,k);a.setLanguageKeys(E)}};return F.useEffect(()=>{a.setAllSupportedLanguages(o||[])},[o]),F.useEffect(()=>{if(n){const{isocode:x}=n,w=d(x,u.keys);a.setLanguageKeys(w)}},[u,n]),R.jsx(gp.Provider,{value:{userLanguages:u.userLang,languageKeys:r,selectedLanguage:n,allSupportedLanguages:t,addFirstLanguage:i,isPrimary:u.userLang.primary===(n==null?void 0:n.isocode),removeKey:p,addNewKey:f,setAddFirstLanguage:a.setAddFirstLanguage,setUserLangSettings:l,setSelectedLanguage:x=>a.setSelectedLanguage(x),setLanguageKeyValue:g},children:e})},er=()=>{const e=F.useContext(gp);if(e===void 0)throw new Error("useLocalizationEditor must be used within a LocalizationEditorProvider");return e},vp=F.createContext(null),bp=({children:e,adapter:t})=>R.jsx(vp.Provider,{value:t,children:e});function yr(){const e=F.useContext(vp);if(!e)throw new Error("useEditorStateAdapter must be used within an EditorStateAdapterProvider");return e}function j0(e,t){const n=Qt.useAppDispatch(),r=Qt.useAppSelector(Qt.selectTabs),i=Qt.useAppSelector(Qt.selectActiveTab),a=Qt.useAppSelector(Qt.selectAllTabsByType("webform")),o=Qt.useAppSelector(Qt.selectI18nCurrent);return{getTabs:F.useCallback(()=>r??[],[r]),getI18nCurrent:F.useCallback(()=>o??"",[o]),getWebformTabs:F.useCallback(()=>a??[],[a]),getActiveTabPath:F.useCallback(()=>i??"",[i]),getFlagsByPath:F.useCallback(u=>{var l;return(l=r.find(c=>c.path===u))==null?void 0:l.flags},[r]),getSupportedLanguages:F.useCallback(async u=>we.getSupportedLanguages(u),[]),getUserComponents:F.useCallback(()=>e??{},[e]),buildResolver:t,actions:{openModal:F.useCallback(async u=>await n(Qt.openModal(u)).unwrap(),[n]),setTabs:F.useCallback(u=>{n(Qt.setTabs(u))},[n]),setI18nCurrent:F.useCallback(u=>{n(Qt.setI18nCurrent({current:u}))},[n]),setTabContent:F.useCallback(async u=>n(Qt.setTabContent(u)),[n])}}}const yp=new up,B0=(e,t)=>({name:e.split("/").pop()||e,type:we.FileFolderType.WEBFORM,path:e,date:new Date().toISOString(),content:t,view:{panel:{isOpen:!1,type:"",current:""}},flags:{}});function wp(e,t){switch(t.type){case"SET_TABS":return{...e,tabs:t.payload};case"SET_I18N_CURRENT":return{...e,i18nCurrent:t.payload};case"SET_TAB_CONTENT":{const{path:n,content:r}=t.payload;return e.tabs.find(a=>a.path===n)?{...e,tabs:e.tabs.map(a=>a.path===n?{...a,content:r}:a)}:{...e,tabs:[...e.tabs,B0(n,r)]}}case"CREATE_MODAL":return{...e,modals:{...e.modals,list:[...e.modals.list,t.payload]}};case"REMOVE_MODAL":return{...e,modals:{...e.modals,list:e.modals.list.filter(n=>n.id!==t.payload)}};case"CLOSE_MODAL":{const{id:n,reason:r}=t.payload;let i;if(r)if(e.modals.list.find(o=>o.id===n))i={...e,modals:{...e.modals,list:e.modals.list.map(o=>o.id===n?{...o,closeReason:r,isOpen:!1}:o)}};else return e;else i={...e,modals:{...e.modals,list:e.modals.list.filter(a=>a.id!==n)}};return yp.next(i.modals),i}case"EDIT_MODAL":{const{id:n,...r}=t.payload;return e.modals.list.find(a=>a.id===n)?{...e,modals:{...e.modals,list:e.modals.list.map(a=>a.id===n?{...a,...r}:a)}}:e}default:return e}}const vs=F.createContext(null),Sp=(e,t)=>({tabs:e,i18nCurrent:t,modals:{list:[]}}),Cp=({children:e,tabs:t=[],i18nCurrent:n=""})=>{const[r,i]=F.useReducer(wp,Sp(t,n));F.useEffect(()=>{ge.isEqual(r.tabs,t)||i({type:"SET_TABS",payload:t})},[t,r.tabs]),F.useEffect(()=>{r.i18nCurrent!==n&&i({type:"SET_I18N_CURRENT",payload:n})},[n,r.i18nCurrent]);const a=F.useMemo(()=>({state:r,dispatch:i}),[r]);return R.jsx(vs.Provider,{value:a,children:e})};function kp(e,t,n){const r=F.useContext(vs);if(!r)throw new Error("useReducerAdapter must be used within a ReducerAdapterProvider");const{state:i,dispatch:a}=r;return{getTabs:F.useCallback(()=>i.tabs,[i.tabs]),getI18nCurrent:F.useCallback(()=>i.i18nCurrent,[i.i18nCurrent]),getWebformTabs:F.useCallback(()=>i.tabs.filter(o=>o.type===we.FileFolderType.WEBFORM),[i.tabs]),getActiveTabPath:F.useCallback(()=>{var o;return((o=i.tabs[0])==null?void 0:o.path)??""},[i.tabs]),getFlagsByPath:F.useCallback(o=>{var u;return(u=i.tabs.find(l=>l.path===o))==null?void 0:u.flags},[i.tabs]),getSupportedLanguages:F.useCallback(async o=>n&&n.length?n:we.getSupportedLanguages(o),[n]),getUserComponents:F.useCallback(()=>e??{},[e]),buildResolver:t,actions:{openModal:F.useCallback(async o=>{const{type:u=we.ModalType.ALERT}=o,l=Wu.generate();return a({type:"CREATE_MODAL",payload:{id:l,type:u,isOpen:!0,...o}}),u===we.ModalType.CONFIRM?new Promise(c=>{const p=yp.pipe(L0(f=>{const d=f.list.find(g=>g.id===l);return d!==void 0&&!d.isOpen})).subscribe(f=>{var g;const d=f.list.find(x=>x.id===l);if(d){const x=d.closeReason===we.ModalCloseReason.CONFIRMED,w=ge.entries(((g=d.views)==null?void 0:g.toggles)||{}).reduce((S,b)=>({...S,[b[0]]:b[1].value}),{});a({type:"REMOVE_MODAL",payload:l}),p.unsubscribe(),c({confirmed:x,options:w})}})}):{confirmed:!1}},[a]),setTabs:F.useCallback(o=>{a({type:"SET_TABS",payload:o})},[a]),setI18nCurrent:F.useCallback(o=>{a({type:"SET_I18N_CURRENT",payload:o})},[a]),setTabContent:F.useCallback(async o=>(a({type:"SET_TAB_CONTENT",payload:o}),o),[a])}}}function Ep(){const e=F.useContext(vs);if(!e)throw new Error("useModals must be used within a ReducerAdapterProvider");const{state:t,dispatch:n}=e;return{modals:t.modals.list,closeModal:F.useCallback(r=>{n({type:"CLOSE_MODAL",payload:r})},[n]),editModal:F.useCallback(r=>{n({type:"EDIT_MODAL",payload:r})},[n]),removeModal:F.useCallback(r=>{n({type:"REMOVE_MODAL",payload:r})},[n])}}const z0=({keyName:e,value:t,isDefault:n})=>{const{state:{newValue:r,onEditValue:i},actions:a}=we.useStateObject({newValue:t,onEditValue:!1}),{setLanguageKeyValue:o,removeKey:u}=er(),l=yr(),[c,p]=F.useState(null),f=()=>{i&&(o(e,r),a.setOnEditValue(!1),p(null))},d=()=>{i&&(a.setNewValue(t),a.setOnEditValue(!1),p(null))},g=async()=>{const{confirmed:x}=await l.actions.openModal({title:"Delete Key",type:we.ModalType.CONFIRM,color:we.ModalColor.DANGER,message:"Deleting this key will remove all translations associated with it across all locales. Are you sure you want to delete it ?",icon:"FdWarningDanger"});x&&u(e)};return F.useEffect(()=>{a.setNewValue(t)},[t]),R.jsxs("tr",{"data-cy":`shared-labels-row-${e}`,className:" text-gray-50 odd:bg-grey-700 even:bg-grey-600",children:[R.jsx("td",{className:"px-2 text-xs font-normal h-10",children:e}),R.jsxs("td",{className:"p-2 whitespace-nowrap text-xs font-normal h-10",children:[i?R.jsx("textarea",{"data-cy":`shared-labels-row-${e}-input`,className:ht("min-w-[80%] bg-grey-300 h-6 p-1 p rounded focus-within:outline-none",{"ring-1 ring-red-400":c,"focus-within:ring-1 focus-within:ring-primary-dark":!c}),value:r,onChange:x=>{a.setNewValue(x.target.value),p(null)},onKeyDown:x=>{x.key==="Enter"&&!x.shiftKey&&(x.preventDefault(),f())}}):R.jsx("span",{className:ht("text-wrap",{"italic text-gray-400":n}),onDoubleClick:()=>{a.setOnEditValue(!0)},children:t}),c&&R.jsx("div",{className:"text-red-400 left-2",children:c==null?void 0:c.message})]}),R.jsx("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:i?R.jsxs(R.Fragment,{children:[R.jsx(we.Tooltip,{label:"Confirm",children:R.jsx("button",{"data-cy":`shared-labels-row-${e}-confirm-button`,className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:f,children:R.jsx(ot.FdCheckCircle,{className:"w-4 h-4"})})}),R.jsx(we.Tooltip,{label:"Cancel",children:R.jsx("button",{"data-cy":`shared-labels-row-${e}-cancel-button`,className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:d,children:R.jsx(ot.FdClose,{className:"w-4 h-4"})})})]}):R.jsxs(R.Fragment,{children:[R.jsx(we.Tooltip,{label:"Edit",children:R.jsx("button",{"data-cy":`shared-labels-row-${e}-edit-button`,className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:()=>{a.setOnEditValue(!0)},children:R.jsx(ot.FdPen,{className:"w-4 h-4"})})}),R.jsx(we.Tooltip,{label:"Delete",children:R.jsx("button",{"data-cy":`shared-labels-row-${e}-delete-button`,className:"cursor-pointerrounded p-1 hover:bg-primary-hover focus:outline-none",onClick:g,children:R.jsx(ot.FdTrash,{className:"w-4 h-4"})})})]})})]})},$0=({onCancel:e,onConfirm:t,error:n,setError:r})=>{const{state:i,actions:a}=we.useStateObject({key:"",value:""}),o=()=>{t(i.key,i.value)},u=()=>{r(null),e()};return R.jsxs("tr",{"data-cy":"shared-labels-new-row",className:" text-gray-50 odd:bg-grey-700 even:bg-grey-600",children:[R.jsx("td",{className:"px-2 text-xs font-normal h-10 min-h-4",children:R.jsxs("div",{className:ht("flex flex-col items-start h-full relative",{"pt-2":n,"justify-center":!n}),children:[R.jsx("input",{"data-cy":"shared-labels-new-row-key-input",className:ht("min-w-[80%] bg-grey-300 h-6 p-1 p rounded focus-within:outline-none",{"ring-1 ring-red-400":n,"focus-within:ring-1 focus-within:ring-primary-dark":!n}),type:"text",value:i.key,onChange:l=>{r(null),a.setKey(l.target.value)},autoFocus:!0,onKeyUp:l=>{l.key==="Escape"&&(r(null),u())}}),n&&R.jsx("div",{className:"text-red-400 left-2",children:n==null?void 0:n.message})]})}),R.jsx("td",{className:"px-2 whitespace-nowrap text-xs font-normal h-10",children:R.jsx("div",{className:ht("flex flex-col items-start h-full relative",{"pt-2":n,"justify-center":!n}),children:R.jsx("input",{"data-cy":"shared-labels-new-row-value-input",className:"min-w-[80%] bg-grey-300 h-6 p-1 p rounded focus-within:outline-none focus-within:ring-1 focus-within:ring-primary-dark",type:"text",value:i.value,onChange:l=>a.setValue(l.target.value),onKeyUp:l=>{l.key==="Enter"?o():l.key==="Escape"&&u()}})})}),R.jsxs("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:[R.jsx(we.Tooltip,{label:"Confirm",children:R.jsx("button",{"data-cy":"shared-labels-new-row-confirm-button",className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:o,children:R.jsx(ot.FdCheckCircle,{className:"w-4 h-4"})})}),R.jsx(we.Tooltip,{label:"Cancel",children:R.jsx("button",{"data-cy":"shared-labels-new-row-cancel-button",className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:u,children:R.jsx(ot.FdClose,{className:"w-4 h-4"})})})]})]})},H0=()=>{const{languageKeys:e,isPrimary:t,selectedLanguage:n,userLanguages:{supported:r},addNewKey:i,setUserLangSettings:a}=er(),{state:o,actions:u}=we.useStateObject({search:"",switch:t,keys:[],addNewKey:!1}),[l,c]=F.useState(null),p=m0(e),f=!!n&&!p,d=!!n,g=e.filter(E=>E.key.match(new RegExp(ge.escapeRegExp(o.search),"gi"))),x=g.length===0,w=()=>{if(n){const{isocode:E}=n;a({primary:E,supported:r})}},S=()=>{u.setAddNewKey(!0)},b=(E,O)=>{const y=g.find(m=>m.key===E);if(n){const{isocode:m}=n;if(E){if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(E)||!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(E)){c({message:"Invalid key name"});return}else if(y){c({message:"Key name already exists"});return}i(E,[{lang:m,value:O}],O)}u.setAddNewKey(!1)}},k=()=>{u.setAddNewKey(!1)};return F.useEffect(()=>{u.setSwitch(t)},[t]),R.jsx("div",{className:ht("flex w-full bg-grey-800 border-l border-black",{"justify-center items-center":!1}),children:R.jsxs("div",{className:"flex flex-col w-full py-3 px-3 min-h-0",children:[R.jsxs("div",{className:"flex flex-col space-y-3 justify-between w-full",children:[R.jsxs("div",{className:ht("flex items-center w-full justify-between",{hidden:!d}),children:[R.jsxs("div",{className:"flex space-x-2 items-center justify-center",children:[R.jsx("span",{className:"text-[12px] text-gray-50",children:"Shared Labels"}),R.jsx(we.Tip,{tipKey:"editors:i18n:label",alwaysOn:!0})]}),R.jsxs("div",{className:"flex space-x-2 justify-center items-center",children:[R.jsx(we.ControlledSwitch,{onChange:E=>{t||(u.setSwitch(E),w())},value:o.switch,className:"focus:outline-none"}),R.jsx("span",{className:"text-xs text-gray-50",children:"Primary Locale"})]})]}),R.jsx("div",{className:ht("w-60",{invisible:!f}),children:R.jsx(we.SearchInput,{containerClassName:"text-grey-50",value:o.search,onChange:E=>u.setSearch(E),delay:300})})]}),p?R.jsx(v0,{}):R.jsxs("div",{className:"w-full flex-1 min-h-0 overflow-y-auto",children:[R.jsxs("table",{"data-cy":"shared-labels-table",className:"w-full text-sm text-left rtl:text-right text-grey-50 table-fixed",children:[R.jsx("thead",{className:"text-xs text-grey-50",children:R.jsxs("tr",{children:[R.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal",children:"Key"}),R.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal",children:"Value"}),R.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal float-right",children:R.jsx(we.Tooltip,{label:"Add a key",children:R.jsx("button",{className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:S,children:R.jsx(ot.FdPlus,{className:"w-4 h-4"})})})})]})}),R.jsxs("tbody",{className:"border-t-[1px] border-grey-50",children:[g.map((E,O)=>R.jsx(z0,{keyName:E.key,value:E.value,isDefault:E.isDefault},`${n==null?void 0:n.isocode}/${O}`)),o.addNewKey&&R.jsx($0,{onConfirm:b,onCancel:k,setError:c,error:l}),x&&R.jsx("span",{})]})]}),x&&R.jsxs("div",{className:"flex flex-col justify-center items-center mt-16 ml-2 text-xs space-y-3 text-green-50",children:[R.jsx(ot.FdInfoBold,{className:"h-9 w-9 text-grey-200"}),R.jsx("div",{className:"text-xs text-grey-200",children:"This key doesn't exist."})]})]})]})})},Lr=(e,t)=>t.find(n=>n.isocode===e);function U0(){return{enter:{mdxFlowExpression:W0,mdxTextExpression:K0},exit:{mdxFlowExpression:Ec,mdxFlowExpressionChunk:_c,mdxTextExpression:Ec,mdxTextExpressionChunk:_c}}}function q0(){return{handlers:{mdxFlowExpression:Ic,mdxTextExpression:Ic},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]}}function W0(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function K0(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function Ec(e){const t=this.resume(),n=e.estree,r=this.stack[this.stack.length-1];r.type==="mdxFlowExpression"||r.type,this.exit(e),r.value=t,n&&(r.data={estree:n})}function _c(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Ic(e,t,n){const r=e.value||"";return"{"+n.indentLines(r,function(a,o,u){return(o===0||u?"":" ")+a})+"}"}function Ha(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const J0=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Tc={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function _p(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function G0(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Y0(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Ac(e){return Y0(e)||_p(e)}const Pc=document.createElement("i");function xi(e){const t="&"+e+";";Pc.innerHTML=t;const n=Pc.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const X0=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Q0(e,t){const n=t||{},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,i=[];let a=0,o=-1,u="",l,c;n.position&&("start"in n.position||"indent"in n.position?(c=n.position.indent,l=n.position.start):l=n.position);let p=(l?l.line:0)||1,f=(l?l.column:0)||1,d=x(),g;for(a--;++a<=e.length;)if(g===10&&(f=(c?c[o]:0)||1),g=e.charCodeAt(a),g===38){const b=e.charCodeAt(a+1);if(b===9||b===10||b===12||b===32||b===38||b===60||Number.isNaN(b)||r&&b===r){u+=String.fromCharCode(g),f++;continue}const k=a+1;let E=k,O=k,y;if(b===35){O=++E;const $=e.charCodeAt(O);$===88||$===120?(y="hexadecimal",O=++E):y="decimal"}else y="named";let m="",_="",V="";const M=y==="named"?Ac:y==="decimal"?_p:G0;for(O--;++O<=e.length;){const $=e.charCodeAt(O);if(!M($))break;V+=String.fromCharCode($),y==="named"&&J0.includes(V)&&(m=V,_=xi(V))}let P=e.charCodeAt(O)===59;if(P){O++;const $=y==="named"?xi(V):!1;$&&(m=V,_=$)}let j=1+O-k,W="";if(!(!P&&n.nonTerminated===!1))if(!V)y!=="named"&&w(4,j);else if(y==="named"){if(P&&!_)w(5,1);else if(m!==V&&(O=E+m.length,j=1+O-E,P=!1),!P){const $=m?1:3;if(n.attribute){const se=e.charCodeAt(O);se===61?(w($,j),_=""):Ac(se)?_="":w($,j)}else w($,j)}W=_}else{P||w(2,j);let $=Number.parseInt(V,y==="hexadecimal"?16:10);if(Z0($))w(7,j),W="�";else if($ in Tc)w(6,j),W=Tc[$];else{let se="";ev($)&&w(6,j),$>65535&&($-=65536,se+=String.fromCharCode($>>>10|55296),$=56320|$&1023),W=se+String.fromCharCode($)}}if(W){S(),d=x(),a=O-1,f+=O-k+1,i.push(W);const $=x();$.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,W,{start:d,end:$},e.slice(k-1,O)),d=$}else V=e.slice(k-1,O),u+=V,f+=V.length,a=O-1}else g===10&&(p++,o++,f=0),Number.isNaN(g)?S():(u+=String.fromCharCode(g),f++);return i.join("");function x(){return{line:p,column:f,offset:a+((l?l.offset:0)||0)}}function w(b,k){let E;n.warning&&(E=x(),E.column+=k,E.offset+=k,n.warning.call(n.warningContext||void 0,X0[b],E,b))}function S(){u&&(i.push(u),n.text&&n.text.call(n.textContext||void 0,u,{start:d,end:x()}),u="")}}function Z0(e){return e>=55296&&e<=57343||e>1114111}function ev(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const tv=/["&'<>`]/g,nv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rv=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,iv=/[|\\{}()[\]^$+*?.]/g,Nc=new WeakMap;function av(e,t){if(e=e.replace(t.subset?sv(t.subset):tv,r),t.subset||t.escapeOnly)return e;return e.replace(nv,n).replace(rv,r);function n(i,a,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(a+2),t)}function r(i,a,o){return t.format(i.charCodeAt(0),o.charCodeAt(a+1),t)}}function sv(e){let t=Nc.get(e);return t||(t=ov(e),Nc.set(e,t)),t}function ov(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(iv,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function uv(e){return"&#x"+e.toString(16).toUpperCase()+";"}function lv(e,t){return av(e,Object.assign({format:uv},t))}function Rn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Rc(e.position):"start"in e||"end"in e?Rc(e):"line"in e||"column"in e?su(e):""}function su(e){return Oc(e&&e.line)+":"+Oc(e&&e.column)}function Rc(e){return su(e&&e.start)+"-"+su(e&&e.end)}function Oc(e){return e&&typeof e=="number"?e:1}class rt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const u=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=Rn(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}rt.prototype.file="";rt.prototype.name="";rt.prototype.reason="";rt.prototype.message="";rt.prototype.stack="";rt.prototype.column=void 0;rt.prototype.line=void 0;rt.prototype.ancestors=void 0;rt.prototype.cause=void 0;rt.prototype.fatal=void 0;rt.prototype.place=void 0;rt.prototype.ruleId=void 0;rt.prototype.source=void 0;const Ip=" ";function cv(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:r,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:f,mdxJsxFlowTagExpressionAttribute:d,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:r,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:f,mdxJsxTextTagExpressionAttribute:d,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:u,mdxJsxFlowTagNamePrimary:l,mdxJsxFlowTagNameMember:c,mdxJsxFlowTagNameLocal:p,mdxJsxFlowTagExpressionAttribute:g,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:x,mdxJsxFlowTagAttributeNameLocal:w,mdxJsxFlowTagAttributeValueLiteral:S,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:b,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:k,mdxJsxFlowTag:E,mdxJsxTextTagClosingMarker:u,mdxJsxTextTagNamePrimary:l,mdxJsxTextTagNameMember:c,mdxJsxTextTagNameLocal:p,mdxJsxTextTagExpressionAttribute:g,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:x,mdxJsxTextTagAttributeNameLocal:w,mdxJsxTextTagAttributeValueLiteral:S,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:b,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:k,mdxJsxTextTag:E}};function e(){this.buffer()}function t(_){return{line:_.line,column:_.column,offset:_.offset}}function n(_){this.config.enter.data.call(this,_),this.config.exit.data.call(this,_)}function r(_){const V={name:void 0,attributes:[],close:!1,selfClosing:!1,start:_.start,end:_.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=V,this.buffer()}function i(_){if(this.data.mdxJsxTagStack.length===0)throw new rt("Unexpected closing slash `/` in tag, expected an open tag first",{start:_.start,end:_.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function a(_){if(this.data.mdxJsxTag.close)throw new rt("Unexpected attribute in closing tag, expected the end of the tag",{start:_.start,end:_.end},"mdast-util-mdx-jsx:unexpected-attribute")}function o(_){if(this.data.mdxJsxTag.close)throw new rt("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:_.start,end:_.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function u(){const _=this.data.mdxJsxTag;_.close=!0}function l(_){const V=this.data.mdxJsxTag;V.name=this.sliceSerialize(_)}function c(_){const V=this.data.mdxJsxTag;V.name+="."+this.sliceSerialize(_)}function p(_){const V=this.data.mdxJsxTag;V.name+=":"+this.sliceSerialize(_)}function f(_){const V=this.data.mdxJsxTag;a.call(this,_),V.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(_.start),end:void 0}})}function d(_){const V=this.data.mdxJsxTag;a.call(this,_),V.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(_.start),end:void 0}}),this.buffer()}function g(_){const V=this.data.mdxJsxTag,M=V.attributes[V.attributes.length-1];M.type;const P=_.estree;M.value=this.resume(),M.position,M.position.end=t(_.end),P&&(M.data={estree:P})}function x(_){const V=this.data.mdxJsxTag,M=V.attributes[V.attributes.length-1];M.type,M.name=this.sliceSerialize(_),M.position,M.position.end=t(_.end)}function w(_){const V=this.data.mdxJsxTag,M=V.attributes[V.attributes.length-1];M.type,M.name+=":"+this.sliceSerialize(_),M.position,M.position.end=t(_.end)}function S(_){const V=this.data.mdxJsxTag,M=V.attributes[V.attributes.length-1];M.value=Q0(this.resume(),{nonTerminated:!1}),M.position,M.position.end=t(_.end)}function b(_){const V=this.data.mdxJsxTag,M=V.attributes[V.attributes.length-1];M.type;const P={type:"mdxJsxAttributeValueExpression",value:this.resume()},j=_.estree;j&&(P.data={estree:j}),M.value=P,M.position,M.position.end=t(_.end)}function k(){const _=this.data.mdxJsxTag;_.selfClosing=!0}function E(_){const V=this.data.mdxJsxTag,M=this.data.mdxJsxTagStack,P=M[M.length-1];if(V.close&&P.name!==V.name)throw new rt("Unexpected closing tag `"+m(V)+"`, expected corresponding closing tag for `"+m(P)+"` ("+Rn(P)+")",{start:_.start,end:_.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),V.close?M.pop():this.enter({type:_.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:V.name||null,attributes:V.attributes,children:[]},_,O),V.selfClosing||V.close?this.exit(_,y):M.push(V)}function O(_,V){const M=this.data.mdxJsxTagStack,P=M[M.length-1],j=_?" before the end of `"+_.type+"`":"",W=_?{start:_.start,end:_.end}:void 0;throw new rt("Expected a closing tag for `"+m(P)+"` ("+Rn({start:V.start,end:V.end})+")"+j,W,"mdast-util-mdx-jsx:end-tag-mismatch")}function y(_,V){const M=this.data.mdxJsxTag;throw new rt("Expected the closing tag `"+m(M)+"` either after the end of `"+V.type+"` ("+Rn(V.end)+") or another opening tag after the start of `"+V.type+"` ("+Rn(V.start)+")",{start:_.start,end:_.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function m(_){return"<"+(_.close?"/":"")+(_.name||"")+">"}}function fv(e){const t=e||{},n=t.quote||'"',r=t.quoteSmart||!1,i=t.tightSelfClosing||!1,a=t.printWidth||Number.POSITIVE_INFINITY,o=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return u.peek=pv,{handlers:{mdxJsxFlowElement:u,mdxJsxTextElement:u},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function u(l,c,p,f){const d=l.type==="mdxJsxFlowElement",g=l.name?!l.children||l.children.length===0:!1,x=Tp(p),w=Ap(x),S=p.createTracker(f),b=p.createTracker(f),k=[],E=(d?w:"")+"<"+(l.name||""),O=p.enter(l.type);if(S.move(E),b.move(E),l.attributes&&l.attributes.length>0){if(!l.name)throw new Error("Cannot serialize fragment w/ attributes");let M=-1;for(;++M<l.attributes.length;){const P=l.attributes[M];let j;if(P.type==="mdxJsxExpressionAttribute")j="{"+(P.value||"")+"}";else{if(!P.name)throw new Error("Cannot serialize attribute w/o name");const W=P.value,$=P.name;let se="";if(W!=null)if(typeof W=="object")se="{"+(W.value||"")+"}";else{const Z=r&&Ha(W,n)>Ha(W,o)?o:n;se=Z+lv(W,{subset:[Z]})+Z}j=$+(se?"=":"")+se}k.push(j)}}let y=!1;const m=k.join(" ");d&&(/\r?\n|\r/.test(m)||S.current().now.column+m.length+(g?i?2:3:1)>a)&&(y=!0);let _=S,V=E;if(y){_=b;let M=-1;for(;++M<k.length;)k[M]=w+Ip+k[M];V+=_.move(`
|
|
4
|
-
`+k.join(`
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
`))}return r.pop(),u.join("")}function Tp(e){let t=0,n=e.stack.length;for(;--n>-1;){const r=e.stack[n];if(r==="blockquote"||r==="listItem")break;r==="mdxJsxFlowElement"&&t++}return t}function Ap(e){return Ip.repeat(e)}function pv(){return"<"}function dv(){return{enter:{mdxjsEsm:gv},exit:{mdxjsEsm:xv,mdxjsEsmData:vv}}}function mv(){return{handlers:{mdxjsEsm:bv}}}function gv(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function xv(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e);const r=e.estree;n.value=t,r&&(n.data={estree:r})}function vv(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function bv(e){return e.value||""}function yv(){return[U0(),cv(),dv()]}function wv(e){return{extensions:[q0(),fv(e),mv()]}}var Sv=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],Pp=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Cv="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",Np="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",fo={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ho="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",kv={5:ho,"5module":ho+" export import",6:ho+" const class extends export import super"},Ev=/^in(stanceof)?$/,_v=new RegExp("["+Np+"]"),Iv=new RegExp("["+Np+Cv+"]");function ou(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function En(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&_v.test(String.fromCharCode(e)):t===!1?!1:ou(e,Pp)}function Gn(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Iv.test(String.fromCharCode(e)):t===!1?!1:ou(e,Pp)||ou(e,Sv)}var et=function(t,n){n===void 0&&(n={}),this.label=t,this.keyword=n.keyword,this.beforeExpr=!!n.beforeExpr,this.startsExpr=!!n.startsExpr,this.isLoop=!!n.isLoop,this.isAssign=!!n.isAssign,this.prefix=!!n.prefix,this.postfix=!!n.postfix,this.binop=n.binop||null,this.updateContext=null};function sn(e,t){return new et(e,{beforeExpr:!0,binop:t})}var on={beforeExpr:!0},$t={startsExpr:!0},Yu={};function Ye(e,t){return t===void 0&&(t={}),t.keyword=e,Yu[e]=new et(e,t)}var I={num:new et("num",$t),regexp:new et("regexp",$t),string:new et("string",$t),name:new et("name",$t),privateId:new et("privateId",$t),eof:new et("eof"),bracketL:new et("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new et("]"),braceL:new et("{",{beforeExpr:!0,startsExpr:!0}),braceR:new et("}"),parenL:new et("(",{beforeExpr:!0,startsExpr:!0}),parenR:new et(")"),comma:new et(",",on),semi:new et(";",on),colon:new et(":",on),dot:new et("."),question:new et("?",on),questionDot:new et("?."),arrow:new et("=>",on),template:new et("template"),invalidTemplate:new et("invalidTemplate"),ellipsis:new et("...",on),backQuote:new et("`",$t),dollarBraceL:new et("${",{beforeExpr:!0,startsExpr:!0}),eq:new et("=",{beforeExpr:!0,isAssign:!0}),assign:new et("_=",{beforeExpr:!0,isAssign:!0}),incDec:new et("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new et("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:sn("||",1),logicalAND:sn("&&",2),bitwiseOR:sn("|",3),bitwiseXOR:sn("^",4),bitwiseAND:sn("&",5),equality:sn("==/!=/===/!==",6),relational:sn("</>/<=/>=",7),bitShift:sn("<</>>/>>>",8),plusMin:new et("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:sn("%",10),star:sn("*",10),slash:sn("/",10),starstar:new et("**",{beforeExpr:!0}),coalesce:sn("??",1),_break:Ye("break"),_case:Ye("case",on),_catch:Ye("catch"),_continue:Ye("continue"),_debugger:Ye("debugger"),_default:Ye("default",on),_do:Ye("do",{isLoop:!0,beforeExpr:!0}),_else:Ye("else",on),_finally:Ye("finally"),_for:Ye("for",{isLoop:!0}),_function:Ye("function",$t),_if:Ye("if"),_return:Ye("return",on),_switch:Ye("switch"),_throw:Ye("throw",on),_try:Ye("try"),_var:Ye("var"),_const:Ye("const"),_while:Ye("while",{isLoop:!0}),_with:Ye("with"),_new:Ye("new",{beforeExpr:!0,startsExpr:!0}),_this:Ye("this",$t),_super:Ye("super",$t),_class:Ye("class",$t),_extends:Ye("extends",on),_export:Ye("export"),_import:Ye("import",$t),_null:Ye("null",$t),_true:Ye("true",$t),_false:Ye("false",$t),_in:Ye("in",{beforeExpr:!0,binop:7}),_instanceof:Ye("instanceof",{beforeExpr:!0,binop:7}),_typeof:Ye("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Ye("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Ye("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Gt=/\r\n?|\n|\u2028|\u2029/,Tv=new RegExp(Gt.source,"g");function $r(e){return e===10||e===13||e===8232||e===8233}function Rp(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if($r(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var Op=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Nt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Lp=Object.prototype,Av=Lp.hasOwnProperty,Pv=Lp.toString,Hr=Object.hasOwn||(function(e,t){return Av.call(e,t)}),Lc=Array.isArray||(function(e){return Pv.call(e)==="[object Array]"}),Vc=Object.create(null);function Kn(e){return Vc[e]||(Vc[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Ln(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var Nv=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,vi=function(t,n){this.line=t,this.column=n};vi.prototype.offset=function(t){return new vi(this.line,this.column+t)};var bs=function(t,n,r){this.start=n,this.end=r,t.sourceFile!==null&&(this.source=t.sourceFile)};function Vp(e,t){for(var n=1,r=0;;){var i=Rp(e,r,t);if(i<0)return new vi(n,t-r);++n,r=i}}var uu={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Dc=!1;function Rv(e){var t={};for(var n in uu)t[n]=e&&Hr(e,n)?e[n]:uu[n];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!Dc&&typeof console=="object"&&console.warn&&(Dc=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
13
|
-
|
|
14
|
-
`,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Gt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=I.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(bi),this.regexpState=null,this.privateNameStack=[]},_n={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};St.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};_n.inFunction.get=function(){return(this.currentVarScope().flags&Ur)>0};_n.inGenerator.get=function(){return(this.currentVarScope().flags&Dp)>0};_n.inAsync.get=function(){return(this.currentVarScope().flags&Xu)>0};_n.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(wr|Ri))return!1;if(n&Ur)return(n&Xu)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};_n.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&ys)>0||this.options.allowSuperOutsideMethod};_n.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Mp)>0};_n.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};_n.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(wr|Ri)||n&Ur&&!(n&Qu))return!0}return!1};_n.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&wr)>0};St.extend=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];for(var r=this,i=0;i<t.length;i++)r=t[i](r);return r};St.parse=function(t,n){return new this(n,t).parse()};St.parseExpressionAt=function(t,n,r){var i=new this(r,t,n);return i.nextToken(),i.parseExpression()};St.tokenizer=function(t,n){return new this(n,t)};Object.defineProperties(St.prototype,_n);var Mt=St.prototype,Lv=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Mt.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Nt.lastIndex=e,e+=Nt.exec(this.input)[0].length;var t=Lv.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){Nt.lastIndex=e+t[0].length;var n=Nt.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===";"||i==="}"||Gt.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(r+1)==="=")}e+=t[0].length,Nt.lastIndex=e,e+=Nt.exec(this.input)[0].length,this.input[e]===";"&&e++}};Mt.eat=function(e){return this.type===e?(this.next(),!0):!1};Mt.isContextual=function(e){return this.type===I.name&&this.value===e&&!this.containsEsc};Mt.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Mt.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Mt.canInsertSemicolon=function(){return this.type===I.eof||this.type===I.braceR||Gt.test(this.input.slice(this.lastTokEnd,this.start))};Mt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Mt.semicolon=function(){!this.eat(I.semi)&&!this.insertSemicolon()&&this.unexpected()};Mt.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Mt.expect=function(e){this.eat(e)||this.unexpected()};Mt.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Ss=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Mt.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}};Mt.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")};Mt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};Mt.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var Le=St.prototype;Le.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==I.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var tl={kind:"loop"},Vv={kind:"switch"};Le.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Nt.lastIndex=this.pos;var t=Nt.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(En(r,!0)){for(var i=n+1;Gn(r=this.input.charCodeAt(i),!0);)++i;if(r===92||r>55295&&r<56320)return!0;var a=this.input.slice(n,i);if(!Ev.test(a))return!0}return!1};Le.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Nt.lastIndex=this.pos;var e=Nt.exec(this.input),t=this.pos+e[0].length,n;return!Gt.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(Gn(n=this.input.charCodeAt(t+8))||n>55295&&n<56320))};Le.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;Nt.lastIndex=this.pos;var n=Nt.exec(this.input),r=this.pos+n[0].length;if(Gt.test(this.input.slice(this.pos,r)))return!1;if(e){var i=r+5,a;if(this.input.slice(r,i)!=="using"||i===this.input.length||Gn(a=this.input.charCodeAt(i))||a>55295&&a<56320)return!1;Nt.lastIndex=i;var o=Nt.exec(this.input);if(o&&Gt.test(this.input.slice(i,i+o[0].length)))return!1}if(t){var u=r+2,l;if(this.input.slice(r,u)==="of"&&(u===this.input.length||!Gn(l=this.input.charCodeAt(u))&&!(l>55295&&l<56320)))return!1}var c=this.input.charCodeAt(r);return En(c,!0)||c===92};Le.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};Le.isUsing=function(e){return this.isUsingKeyword(!1,e)};Le.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=I._var,a="let"),r){case I._break:case I._continue:return this.parseBreakContinueStatement(i,r.keyword);case I._debugger:return this.parseDebuggerStatement(i);case I._do:return this.parseDoStatement(i);case I._for:return this.parseForStatement(i);case I._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case I._class:return e&&this.unexpected(),this.parseClass(i,!0);case I._if:return this.parseIfStatement(i);case I._return:return this.parseReturnStatement(i);case I._switch:return this.parseSwitchStatement(i);case I._throw:return this.parseThrowStatement(i);case I._try:return this.parseTryStatement(i);case I._const:case I._var:return a=a||this.value,e&&a!=="var"&&this.unexpected(),this.parseVarStatement(i,a);case I._while:return this.parseWhileStatement(i);case I._with:return this.parseWithStatement(i);case I.braceL:return this.parseBlock(!0,i);case I.semi:return this.parseEmptyStatement(i);case I._export:case I._import:if(this.options.ecmaVersion>10&&r===I._import){Nt.lastIndex=this.pos;var o=Nt.exec(this.input),u=this.pos+o[0].length,l=this.input.charCodeAt(u);if(l===40||l===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===I._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var c=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(c)return t&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),c==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(i,!1,c),this.semicolon(),this.finishNode(i,"VariableDeclaration");var p=this.value,f=this.parseExpression();return r===I.name&&f.type==="Identifier"&&this.eat(I.colon)?this.parseLabeledStatement(i,p,f,e):this.parseExpressionStatement(i,f)}};Le.parseBreakContinueStatement=function(e,t){var n=t==="break";this.next(),this.eat(I.semi)||this.insertSemicolon()?e.label=null:this.type!==I.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind==="loop")||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")};Le.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};Le.parseDoStatement=function(e){return this.next(),this.labels.push(tl),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(I._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(I.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};Le.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(tl),this.enterScope(0),this.expect(I.parenL),this.type===I.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===I._var||this.type===I._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),this.parseForAfterInit(e,r,t)}var a=this.isContextual("let"),o=!1,u=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(u){var l=this.startNode();return this.next(),u==="await using"&&this.next(),this.parseVar(l,!0,u),this.finishNode(l,"VariableDeclaration"),this.parseForAfterInit(e,l,t)}var c=this.containsEsc,p=new Ss,f=this.start,d=t>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);return this.type===I._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===I._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(d.start===f&&!c&&d.type==="Identifier"&&d.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),a&&o&&this.raise(d.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(d,!1,p),this.checkLValPattern(d),this.parseForIn(e,d)):(this.checkExpressionErrors(p,!0),t>-1&&this.unexpected(t),this.parseFor(e,d))};Le.parseForAfterInit=function(e,t,n){return(this.type===I._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===I._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))};Le.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,oi|(n?0:lu),!1,t)};Le.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(I._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};Le.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(I.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};Le.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(I.braceL),this.labels.push(Vv),this.enterScope(0);for(var t,n=!1;this.type!==I.braceR;)if(this.type===I._case||this.type===I._default){var r=this.type===I._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(I.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};Le.parseThrowStatement=function(e){return this.next(),Gt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Dv=[];Le.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?Fp:0),this.checkLValPattern(e,t?Bp:Mn),this.expect(I.parenR),e};Le.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===I._catch){var t=this.startNode();this.next(),this.eat(I.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(I._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};Le.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")};Le.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(tl),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};Le.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};Le.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};Le.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1){var o=a[i];o.name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var u=this.type.isLoop?"loop":this.type===I._switch?"switch":null,l=this.labels.length-1;l>=0;l--){var c=this.labels[l];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=u;else break}return this.labels.push({name:t,kind:u,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")};Le.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};Le.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(I.braceL),e&&this.enterScope(0);this.type!==I.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};Le.parseFor=function(e,t){return e.init=t,this.expect(I.semi),e.test=this.type===I.semi?null:this.parseExpression(),this.expect(I.semi),e.update=this.type===I.parenR?null:this.parseExpression(),this.expect(I.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};Le.parseForIn=function(e,t){var n=this.type===I._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(I.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")};Le.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(I.eq)?i.init=this.parseMaybeAssign(t):!r&&n==="const"&&!(this.type===I._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!r&&(n==="using"||n==="await using")&&this.options.ecmaVersion>=17&&this.type!==I._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):!r&&i.id.type!=="Identifier"&&!(t&&(this.type===I._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):i.init=null,e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(I.comma))break}return e};Le.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?el:Mn,!1)};var oi=1,lu=2,$p=4;Le.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===I.star&&t&lu&&this.unexpected(),e.generator=this.eat(I.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&oi&&(e.id=t&$p&&this.type!==I.name?null:this.parseIdent(),e.id&&!(t&lu)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?el:Mn:jp));var a=this.yieldPos,o=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Zu(e.async,e.generator)),t&oi||(e.id=this.type===I.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=u,this.finishNode(e,t&oi?"FunctionDeclaration":"FunctionExpression")};Le.parseFunctionParams=function(e){this.expect(I.parenL),e.params=this.parseBindingList(I.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};Le.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(I.braceL);this.type!==I.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(a&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),a=!0):o.key&&o.key.type==="PrivateIdentifier"&&Fv(r,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};Le.parseClassElement=function(e){if(this.eat(I.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,a=!1,o="method",u=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(I.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===I.star?u=!0:r="static"}if(n.static=u,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===I.star)&&!this.canInsertSemicolon()?a=!0:r="async"),!r&&(t>=9||!a)&&this.eat(I.star)&&(i=!0),!r&&!a&&!i){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=l:r=l)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===I.parenL||o!=="method"||i||a){var c=!n.static&&qa(n,"constructor"),p=c&&e;c&&o!=="method"&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=c?"constructor":o,this.parseClassMethod(n,i,a,p)}else this.parseClassField(n);return n};Le.isClassElementNameStart=function(){return this.type===I.name||this.type===I.privateId||this.type===I.num||this.type===I.string||this.type===I.bracketL||this.type.keyword};Le.parseClassElementName=function(e){this.type===I.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};Le.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind==="constructor"?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&qa(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,n,r);return e.kind==="get"&&a.params.length!==0&&this.raiseRecoverable(a.start,"getter should have no params"),e.kind==="set"&&a.params.length!==1&&this.raiseRecoverable(a.start,"setter should have exactly one param"),e.kind==="set"&&a.params[0].type==="RestElement"&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};Le.parseClassField=function(e){return qa(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&qa(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(I.eq)?(this.enterScope(Ri|ys),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};Le.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(wr|ys);this.type!==I.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};Le.parseClassId=function(e,t){this.type===I.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Mn,!1)):(t===!0&&this.unexpected(),e.id=null)};Le.parseClassSuper=function(e){e.superClass=this.eat(I._extends)?this.parseExprSubscripts(null,!1):null};Le.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};Le.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];Hr(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}};function Fv(e,t){var n=t.key.name,r=e[n],i="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(i=(t.static?"s":"i")+t.kind),r==="iget"&&i==="iset"||r==="iset"&&i==="iget"||r==="sget"&&i==="sset"||r==="sset"&&i==="sget"?(e[n]="true",!1):r?!0:(e[n]=i,!1)}function qa(e,t){var n=e.computed,r=e.key;return!n&&(r.type==="Identifier"&&r.name===t||r.type==="Literal"&&r.value===t)}Le.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==I.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};Le.parseExport=function(e,t){if(this.next(),this.eat(I.star))return this.parseExportAllDeclaration(e,t);if(this.eat(I._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==I.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,r=e.specifiers;n<r.length;n+=1){var i=r[n];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type==="Literal"&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};Le.parseExportDeclaration=function(e){return this.parseStatement(null)};Le.parseExportDefaultDeclaration=function(){var e;if(this.type===I._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,oi|$p,!1,e)}else if(this.type===I._class){var n=this.startNode();return this.parseClass(n,"nullableID")}else{var r=this.parseMaybeAssign();return this.semicolon(),r}};Le.checkExport=function(e,t,n){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Hr(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)};Le.checkPatternExport=function(e,t){var n=t.type;if(n==="Identifier")this.checkExport(e,t,t.start);else if(n==="ObjectPattern")for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n==="ArrayPattern")for(var o=0,u=t.elements;o<u.length;o+=1){var l=u[o];l&&this.checkPatternExport(e,l)}else n==="Property"?this.checkPatternExport(e,t.value):n==="AssignmentPattern"?this.checkPatternExport(e,t.left):n==="RestElement"&&this.checkPatternExport(e,t.argument)};Le.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}};Le.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};Le.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};Le.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(I.braceL);!this.eat(I.braceR);){if(n)n=!1;else if(this.expect(I.comma),this.afterTrailingComma(I.braceR))break;t.push(this.parseExportSpecifier(e))}return t};Le.parseImport=function(e){return this.next(),this.type===I.string?(e.specifiers=Dv,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===I.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};Le.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,Mn),this.finishNode(e,"ImportSpecifier")};Le.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Mn),this.finishNode(e,"ImportDefaultSpecifier")};Le.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,Mn),this.finishNode(e,"ImportNamespaceSpecifier")};Le.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===I.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(I.comma)))return e;if(this.type===I.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(I.braceL);!this.eat(I.braceR);){if(t)t=!1;else if(this.expect(I.comma),this.afterTrailingComma(I.braceR))break;e.push(this.parseImportSpecifier())}return e};Le.parseWithClause=function(){var e=[];if(!this.eat(I._with))return e;this.expect(I.braceL);for(var t={},n=!0;!this.eat(I.braceR);){if(n)n=!1;else if(this.expect(I.comma),this.afterTrailingComma(I.braceR))break;var r=this.parseImportAttribute(),i=r.key.type==="Identifier"?r.key.name:r.key.value;Hr(t,i)&&this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+i+"'"),t[i]=!0,e.push(r)}return e};Le.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===I.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(I.colon),this.type!==I.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};Le.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===I.string){var e=this.parseLiteral(this.value);return Nv.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};Le.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};Le.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var fn=St.prototype;fn.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type==="RestElement"&&(a.argument.type==="ArrayPattern"||a.argument.type==="ObjectPattern")&&this.raise(a.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e};fn.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type==="RestElement"&&a.argument.type!=="Identifier"&&this.unexpected(a.argument.start)}return e};fn.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};fn.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==I.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};fn.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case I.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(I.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case I.braceL:return this.parseObj(!0)}return this.parseIdent()};fn.parseBindingList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(I.comma),t&&this.type===I.comma)i.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===I.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===I.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(r))}return i};fn.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};fn.parseBindingListItem=function(e){return e};fn.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(I.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")};fn.checkLValSimple=function(e,t,n){t===void 0&&(t=Ua);var r=t!==Ua;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(t===Mn&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(Hr(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),t!==zp&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}};fn.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=Ua),e.type){case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case"ArrayPattern":for(var o=0,u=e.elements;o<u.length;o+=1){var l=u[o];l&&this.checkLValInnerPattern(l,t,n)}break;default:this.checkLValSimple(e,t,n)}};fn.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=Ua),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var gn=function(t,n,r,i,a){this.token=t,this.isExpr=!!n,this.preserveSpace=!!r,this.override=i,this.generator=!!a},bt={b_stat:new gn("{",!1),b_expr:new gn("{",!0),b_tmpl:new gn("${",!1),p_stat:new gn("(",!1),p_expr:new gn("(",!0),q_tmpl:new gn("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new gn("function",!1),f_expr:new gn("function",!0),f_expr_gen:new gn("function",!0,!1,null,!0),f_gen:new gn("function",!1,!1,null,!0)},qr=St.prototype;qr.initialContext=function(){return[bt.b_stat]};qr.curContext=function(){return this.context[this.context.length-1]};qr.braceIsBlock=function(e){var t=this.curContext();return t===bt.f_expr||t===bt.f_stat?!0:e===I.colon&&(t===bt.b_stat||t===bt.b_expr)?!t.isExpr:e===I._return||e===I.name&&this.exprAllowed?Gt.test(this.input.slice(this.lastTokEnd,this.start)):e===I._else||e===I.semi||e===I.eof||e===I.parenR||e===I.arrow?!0:e===I.braceL?t===bt.b_stat:e===I._var||e===I._const||e===I.name?!1:!this.exprAllowed};qr.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};qr.updateContext=function(e){var t,n=this.type;n.keyword&&e===I.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr};qr.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};I.parenR.updateContext=I.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===bt.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};I.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?bt.b_stat:bt.b_expr),this.exprAllowed=!0};I.dollarBraceL.updateContext=function(){this.context.push(bt.b_tmpl),this.exprAllowed=!0};I.parenL.updateContext=function(e){var t=e===I._if||e===I._for||e===I._with||e===I._while;this.context.push(t?bt.p_stat:bt.p_expr),this.exprAllowed=!0};I.incDec.updateContext=function(){};I._function.updateContext=I._class.updateContext=function(e){e.beforeExpr&&e!==I._else&&!(e===I.semi&&this.curContext()!==bt.p_stat)&&!(e===I._return&&Gt.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===I.colon||e===I.braceL)&&this.curContext()===bt.b_stat)?this.context.push(bt.f_expr):this.context.push(bt.f_stat),this.exprAllowed=!1};I.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};I.backQuote.updateContext=function(){this.curContext()===bt.q_tmpl?this.context.pop():this.context.push(bt.q_tmpl),this.exprAllowed=!1};I.star.updateContext=function(e){if(e===I._function){var t=this.context.length-1;this.context[t]===bt.f_expr?this.context[t]=bt.f_expr_gen:this.context[t]=bt.f_gen}this.exprAllowed=!0};I.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==I.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var $e=St.prototype;$e.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case"Identifier":i=r.name;break;case"Literal":i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&a==="init"&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);return}i="$"+i;var o=t[i];if(o){var u;a==="init"?u=this.strict&&o.init||o.get||o.set:u=o.init||o[a],u&&this.raiseRecoverable(r.start,"Redefinition of property")}else o=t[i]={init:!1,get:!1,set:!1};o[a]=!0}};$e.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===I.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(I.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return i};$e.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Ss,r=!0);var u=this.start,l=this.startLoc;(this.type===I.parenL||this.type===I.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var c=this.parseMaybeConditional(e,t);if(n&&(c=n.call(this,c,u,l)),this.type.isAssign){var p=this.startNodeAt(u,l);return p.operator=this.value,this.type===I.eq&&(c=this.toAssignable(c,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===I.eq?this.checkLValPattern(c):this.checkLValSimple(c),p.left=c,this.next(),p.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(p,"AssignmentExpression")}else r&&this.checkExpressionErrors(t,!0);return i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),c};$e.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(I.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(I.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return i};$e.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,n,r,-1,e)};$e.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==I._in)&&a>r){var o=this.type===I.logicalOR||this.type===I.logicalAND,u=this.type===I.coalesce;u&&(a=I.logicalAND.binop);var l=this.value;this.next();var c=this.start,p=this.startLoc,f=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),c,p,a,i),d=this.buildBinary(t,n,e,f,l,o||u);return(o&&this.type===I.coalesce||u&&(this.type===I.logicalOR||this.type===I.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,n,r,i)}return e};$e.buildBinary=function(e,t,n,r,i,a){r.type==="PrivateIdentifier"&&this.raise(r.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?"LogicalExpression":"BinaryExpression")};$e.parseMaybeUnary=function(e,t,n,r){var i=this.start,a=this.startLoc,o;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var u=this.startNode(),l=this.type===I.incDec;u.operator=this.value,u.prefix=!0,this.next(),u.argument=this.parseMaybeUnary(null,!0,l,r),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(u.argument):this.strict&&u.operator==="delete"&&Hp(u.argument)?this.raiseRecoverable(u.start,"Deleting local variable in strict mode"):u.operator==="delete"&&cu(u.argument)?this.raiseRecoverable(u.start,"Private fields can not be deleted"):t=!0,o=this.finishNode(u,l?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===I.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==I._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(i,a);c.operator=this.value,c.prefix=!1,c.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(c,"UpdateExpression")}}if(!n&&this.eat(I.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,r),"**",!1);else return o};function Hp(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Hp(e.expression)}function cu(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&cu(e.expression)||e.type==="ParenthesizedExpression"&&cu(e.expression)}$e.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if(i.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&a.type==="MemberExpression"&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a};$e.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var u=this.parseSubscript(e,t,n,r,a,o,i);if(u.optional&&(o=!0),u===e||u.type==="ArrowFunctionExpression"){if(o){var l=this.startNodeAt(t,n);l.expression=u,u=this.finishNode(l,"ChainExpression")}return u}e=u}};$e.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(I.arrow)};$e.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)};$e.parseSubscript=function(e,t,n,r,i,a,o){var u=this.options.ecmaVersion>=11,l=u&&this.eat(I.questionDot);r&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(I.bracketL);if(c||l&&this.type!==I.parenL&&this.type!==I.backQuote||this.eat(I.dot)){var p=this.startNodeAt(t,n);p.object=e,c?(p.property=this.parseExpression(),this.expect(I.bracketR)):this.type===I.privateId&&e.type!=="Super"?p.property=this.parsePrivateIdent():p.property=this.parseIdent(this.options.allowReserved!=="never"),p.computed=!!c,u&&(p.optional=l),e=this.finishNode(p,"MemberExpression")}else if(!r&&this.eat(I.parenL)){var f=new Ss,d=this.yieldPos,g=this.awaitPos,x=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var w=this.parseExprList(I.parenR,this.options.ecmaVersion>=8,!1,f);if(i&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=g,this.awaitIdentPos=x,this.parseSubscriptAsyncArrow(t,n,w,o);this.checkExpressionErrors(f,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=g||this.awaitPos,this.awaitIdentPos=x||this.awaitIdentPos;var S=this.startNodeAt(t,n);S.callee=e,S.arguments=w,u&&(S.optional=l),e=this.finishNode(S,"CallExpression")}else if(this.type===I.backQuote){(l||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var b=this.startNodeAt(t,n);b.tag=e,b.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(b,"TaggedTemplateExpression")}return e};$e.parseExprAtom=function(e,t,n){this.type===I.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case I._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type===I.parenL&&!this.allowDirectSuper&&this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==I.dot&&this.type!==I.bracketL&&this.type!==I.parenL&&this.unexpected(),this.finishNode(r,"Super");case I._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case I.name:var a=this.start,o=this.startLoc,u=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!u&&l.name==="async"&&!this.canInsertSemicolon()&&this.eat(I._function))return this.overrideContext(bt.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(I.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[l],!1,t);if(this.options.ecmaVersion>=8&&l.name==="async"&&this.type===I.name&&!u&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return l=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(I.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[l],!0,t)}return l;case I.regexp:var c=this.value;return r=this.parseLiteral(c.value),r.regex={pattern:c.pattern,flags:c.flags},r;case I.num:case I.string:return this.parseLiteral(this.value);case I._null:case I._true:case I._false:return r=this.startNode(),r.value=this.type===I._null?null:this.type===I._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case I.parenL:var p=this.start,f=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(f)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),f;case I.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(I.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case I.braceL:return this.overrideContext(bt.b_expr),this.parseObj(!1,e);case I._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case I._class:return this.parseClass(this.startNode(),!1);case I._new:return this.parseNew();case I.backQuote:return this.parseTemplate();case I._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}};$e.parseExprAtomDefault=function(){this.unexpected()};$e.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===I.parenL&&!e)return this.parseDynamicImport(t);if(this.type===I.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};$e.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(I.parenR)?e.options=null:(this.expect(I.comma),this.afterTrailingComma(I.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(I.parenR)||(this.expect(I.comma),this.afterTrailingComma(I.parenR)||this.unexpected())));else if(!this.eat(I.parenR)){var t=this.start;this.eat(I.comma)&&this.eat(I.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};$e.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};$e.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};$e.parseParenExpression=function(){this.expect(I.parenL);var e=this.parseExpression();return this.expect(I.parenR),e};$e.shouldParseArrow=function(e){return!this.canInsertSemicolon()};$e.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,u=this.startLoc,l=[],c=!0,p=!1,f=new Ss,d=this.yieldPos,g=this.awaitPos,x;for(this.yieldPos=0,this.awaitPos=0;this.type!==I.parenR;)if(c?c=!1:this.expect(I.comma),a&&this.afterTrailingComma(I.parenR,!0)){p=!0;break}else if(this.type===I.ellipsis){x=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===I.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else l.push(this.parseMaybeAssign(!1,f,this.parseParenItem));var w=this.lastTokEnd,S=this.lastTokEndLoc;if(this.expect(I.parenR),e&&this.shouldParseArrow(l)&&this.eat(I.arrow))return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=g,this.parseParenArrowList(n,r,l,t);(!l.length||p)&&this.unexpected(this.lastTokStart),x&&this.unexpected(x),this.checkExpressionErrors(f,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=g||this.awaitPos,l.length>1?(i=this.startNodeAt(o,u),i.expressions=l,this.finishNodeAt(i,"SequenceExpression",w,S)):i=l[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var b=this.startNodeAt(n,r);return b.expression=i,this.finishNode(b,"ParenthesizedExpression")}else return i};$e.parseParenItem=function(e){return e};$e.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var Mv=[];$e.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===I.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(I.parenL)?e.arguments=this.parseExprList(I.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Mv,this.finishNode(e,"NewExpression")};$e.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===I.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,`
|
|
15
|
-
|
|
16
|
-
`),cooked:this.value},this.next(),n.tail=this.type===I.backQuote,this.finishNode(n,"TemplateElement")};$e.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===I.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(I.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(I.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")};$e.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===I.name||this.type===I.num||this.type===I.string||this.type===I.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===I.star)&&!Gt.test(this.input.slice(this.lastTokEnd,this.start))};$e.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(I.braceR);){if(r)r=!1;else if(this.expect(I.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(I.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")};$e.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(I.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===I.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(n,"RestElement")):(n.argument=this.parseMaybeAssign(!1,t),this.type===I.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,"SpreadElement"));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(I.star)));var u=this.containsEsc;return this.parsePropertyName(n),!e&&!u&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(I.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,u),this.finishNode(n,"Property")};$e.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=e.kind==="get"?0:1;if(e.value.params.length!==n){var r=e.value.start;e.kind==="get"?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};$e.parsePropertyValue=function(e,t,n,r,i,a,o,u){(n||r)&&this.type===I.colon&&this.unexpected(),this.eat(I.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===I.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,r),e.kind="init"):!t&&!u&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==I.comma&&this.type!==I.braceR&&this.type!==I.eq?((n||r)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===I.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};$e.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(I.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(I.bracketR),e.key;e.computed=!1}return e.key=this.type===I.num||this.type===I.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};$e.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};$e.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Zu(t,r.generator)|ys|(n?Mp:0)),this.expect(I.parenL),r.params=this.parseBindingList(I.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,"FunctionExpression")};$e.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(Zu(n,!1)|Qu),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};$e.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==I.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||u)&&(o=this.strictDirective(this.end),o&&u&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var l=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,zp),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()};$e.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){var r=n[t];if(r.type!=="Identifier")return!1}return!0};$e.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,el,t?null:n)}};$e.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(I.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===I.comma?o=null:this.type===I.ellipsis?(o=this.parseSpread(r),r&&this.type===I.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i};$e.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;if(this.inGenerator&&r==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&r==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&ws)&&r==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(r==="arguments"||r==="await")&&this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf("\\")!==-1)){var i=this.strict?this.reservedWordsStrict:this.reservedWords;i.test(r)&&(!this.inAsync&&r==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))}};$e.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};$e.parseIdentNode=function(){var e=this.startNode();return this.type===I.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=I.name):this.unexpected(),e};$e.parsePrivateIdent=function(){var e=this.startNode();return this.type===I.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};$e.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===I.semi||this.canInsertSemicolon()||this.type!==I.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(I.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};$e.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Wa=St.prototype;Wa.raise=function(e,t){var n=Vp(this.input,e);t+=" ("+n.line+":"+n.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r};Wa.raiseRecoverable=Wa.raise;Wa.curPosition=function(){if(this.options.locations)return new vi(this.curLine,this.pos-this.lineStart)};var tr=St.prototype,jv=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};tr.enterScope=function(e){this.scopeStack.push(new jv(e))};tr.exitScope=function(){this.scopeStack.pop()};tr.treatFunctionsAsVarInScope=function(e){return e.flags&Ur||!this.inModule&&e.flags&bi};tr.declareName=function(e,t,n){var r=!1;if(t===Mn){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&bi&&delete this.undefinedExports[e]}else if(t===Bp){var a=this.currentScope();a.lexical.push(e)}else if(t===jp){var o=this.currentScope();this.treatFunctionsAsVar?r=o.lexical.indexOf(e)>-1:r=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var u=this.scopeStack.length-1;u>=0;--u){var l=this.scopeStack[u];if(l.lexical.indexOf(e)>-1&&!(l.flags&Fp&&l.lexical[0]===e)||!this.treatFunctionsAsVarInScope(l)&&l.functions.indexOf(e)>-1){r=!0;break}if(l.var.push(e),this.inModule&&l.flags&bi&&delete this.undefinedExports[e],l.flags&ws)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")};tr.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};tr.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};tr.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(ws|Ri|wr))return t}};tr.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(ws|Ri|wr)&&!(t.flags&Qu))return t}};var Cs=function(t,n,r){this.type="",this.start=n,this.end=0,t.options.locations&&(this.loc=new bs(t,r)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[n,0])},Oi=St.prototype;Oi.startNode=function(){return new Cs(this,this.start,this.startLoc)};Oi.startNodeAt=function(e,t){return new Cs(this,e,t)};function Up(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}Oi.finishNode=function(e,t){return Up.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Oi.finishNodeAt=function(e,t,n,r){return Up.call(this,e,t,n,r)};Oi.copyNode=function(e){var t=new Cs(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Bv="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",qp="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Wp=qp+" Extended_Pictographic",Kp=Wp,Jp=Kp+" EBase EComp EMod EPres ExtPict",Gp=Jp,zv=Gp,$v={9:qp,10:Wp,11:Kp,12:Jp,13:Gp,14:zv},Hv="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Uv={9:"",10:"",11:"",12:"",13:"",14:Hv},Fc="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Yp="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Xp=Yp+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Qp=Xp+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Zp=Qp+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ed=Zp+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",qv=ed+" "+Bv,Wv={9:Yp,10:Xp,11:Qp,12:Zp,13:ed,14:qv},td={};function Kv(e){var t=td[e]={binary:Kn($v[e]+" "+Fc),binaryOfStrings:Kn(Uv[e]),nonBinary:{General_Category:Kn(Fc),Script:Kn(Wv[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var po=0,Mc=[9,10,11,12,13,14];po<Mc.length;po+=1){var Jv=Mc[po];Kv(Jv)}var Oe=St.prototype,Ka=function(t,n){this.parent=t,this.base=n||this};Ka.prototype.separatedFrom=function(t){for(var n=this;n;n=n.parent)for(var r=t;r;r=r.parent)if(n.base===r.base&&n!==r)return!0;return!1};Ka.prototype.sibling=function(){return new Ka(this.parent,this.base)};var In=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=td[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};In.prototype.reset=function(t,n,r){var i=r.indexOf("v")!==-1,a=r.indexOf("u")!==-1;this.start=t|0,this.source=n+"",this.flags=r,i&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=a&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=a&&this.parser.options.ecmaVersion>=9)};In.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};In.prototype.at=function(t,n){n===void 0&&(n=!1);var r=this.source,i=r.length;if(t>=i)return-1;var a=r.charCodeAt(t);if(!(n||this.switchU)||a<=55295||a>=57344||t+1>=i)return a;var o=r.charCodeAt(t+1);return o>=56320&&o<=57343?(a<<10)+o-56613888:a};In.prototype.nextIndex=function(t,n){n===void 0&&(n=!1);var r=this.source,i=r.length;if(t>=i)return i;var a=r.charCodeAt(t),o;return!(n||this.switchU)||a<=55295||a>=57344||t+1>=i||(o=r.charCodeAt(t+1))<56320||o>57343?t+1:t+2};In.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};In.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};In.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};In.prototype.eat=function(t,n){return n===void 0&&(n=!1),this.current(n)===t?(this.advance(n),!0):!1};In.prototype.eatChars=function(t,n){n===void 0&&(n=!1);for(var r=this.pos,i=0,a=t;i<a.length;i+=1){var o=a[i],u=this.at(r,n);if(u===-1||u!==o)return!1;r=this.nextIndex(r,n)}return this.pos=r,!0};Oe.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!1,a=0;a<n.length;a++){var o=n.charAt(a);t.indexOf(o)===-1&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(o,a+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),o==="u"&&(r=!0),o==="v"&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,"Invalid regular expression flag")};function Gv(e){for(var t in e)return!0;return!1}Oe.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Gv(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};Oe.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames[r]||e.raise("Invalid named capture referenced")}};Oe.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Ka(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};Oe.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};Oe.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};Oe.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1};Oe.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};Oe.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};Oe.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1};Oe.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};Oe.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};Oe.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),r=e.eat(45);if(n||r){for(var i=0;i<n.length;i++){var a=n.charAt(i);n.indexOf(a,i+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(r){var o=this.regexp_eatModifiers(e);!n&&!o&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var u=0;u<o.length;u++){var l=o.charAt(u);(o.indexOf(l,u+1)>-1||n.indexOf(l)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};Oe.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};Oe.regexp_eatModifiers=function(e){for(var t="",n=0;(n=e.current())!==-1&&Yv(n);)t+=Ln(n),e.advance();return t};function Yv(e){return e===105||e===109||e===115}Oe.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};Oe.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};Oe.regexp_eatSyntaxCharacter=function(e){var t=e.current();return nd(t)?(e.lastIntValue=t,e.advance(),!0):!1};function nd(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}Oe.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!nd(n);)e.advance();return e.pos!==t};Oe.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};Oe.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n)if(t)for(var r=0,i=n;r<i.length;r+=1){var a=i[r];a.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};Oe.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};Oe.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Ln(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Ln(e.lastIntValue);return!0}return!1};Oe.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Xv(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Xv(e){return En(e,!0)||e===36||e===95}Oe.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Qv(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Qv(e){return Gn(e,!0)||e===36||e===95||e===8204||e===8205}Oe.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};Oe.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1};Oe.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};Oe.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};Oe.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};Oe.regexp_eatZero=function(e){return e.current()===48&&!ks(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};Oe.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};Oe.regexp_eatControlLetter=function(e){var t=e.current();return rd(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function rd(e){return e>=65&&e<=90||e>=97&&e<=122}Oe.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Zv(e.lastIntValue))return!0;r&&e.raise("Invalid unicode escape"),e.pos=n}return!1};function Zv(e){return e>=0&&e<=1114111}Oe.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};Oe.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var id=0,Vn=1,cn=2;Oe.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(eb(t))return e.lastIntValue=-1,e.advance(),Vn;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var r;if(e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&r===cn&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return id};function eb(e){return e===100||e===68||e===115||e===83||e===119||e===87}Oe.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),Vn}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return id};Oe.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){Hr(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")};Oe.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Vn;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return cn;e.raise("Invalid property name")};Oe.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";ad(t=e.current());)e.lastStringValue+=Ln(t),e.advance();return e.lastStringValue!==""};function ad(e){return rd(e)||e===95}Oe.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";tb(t=e.current());)e.lastStringValue+=Ln(t),e.advance();return e.lastStringValue!==""};function tb(e){return ad(e)||ks(e)}Oe.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};Oe.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&n===cn&&e.raise("Negated character class may contain strings"),!0}return!1};Oe.regexp_classContents=function(e){return e.current()===93?Vn:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Vn)};Oe.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise("Invalid character class"),t!==-1&&n!==-1&&t>n&&e.raise("Range out of order in character class")}}};Oe.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||ud(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return r!==93?(e.lastIntValue=r,e.advance(),!0):!1};Oe.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};Oe.regexp_classSetExpression=function(e){var t=Vn,n;if(!this.regexp_eatClassSetRange(e))if(n=this.regexp_eatClassSetOperand(e)){n===cn&&(t=cn);for(var r=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))){n!==cn&&(t=Vn);continue}e.raise("Invalid character in character class")}if(r!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e),!n)return t;n===cn&&(t=cn)}};Oe.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return n!==-1&&r!==-1&&n>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};Oe.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Vn:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};Oe.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&r===cn&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null};Oe.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null};Oe.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===cn&&(t=cn);return t};Oe.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Vn:cn};Oe.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var n=e.current();return n<0||n===e.lookahead()&&nb(n)||rb(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function nb(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function rb(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}Oe.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return ib(t)?(e.lastIntValue=t,e.advance(),!0):!1};function ib(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}Oe.regexp_eatClassControlLetter=function(e){var t=e.current();return ks(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};Oe.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};Oe.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;ks(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function ks(e){return e>=48&&e<=57}Oe.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;sd(n=e.current());)e.lastIntValue=16*e.lastIntValue+od(n),e.advance();return e.pos!==t};function sd(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function od(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}Oe.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+n*8+e.lastIntValue:e.lastIntValue=t*8+n}else e.lastIntValue=t;return!0}return!1};Oe.regexp_eatOctalDigit=function(e){var t=e.current();return ud(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function ud(e){return e>=48&&e<=55}Oe.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!sd(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+od(i),e.advance()}return!0};var nl=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new bs(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Je=St.prototype;Je.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new nl(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};Je.getToken=function(){return this.next(),new nl(this)};typeof Symbol<"u"&&(Je[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===I.eof,value:t}}}});Je.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(I.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};Je.readToken=function(e){return En(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};Je.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888};Je.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(n===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=Rp(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())};Je.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!$r(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())};Je.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Op.test(String.fromCharCode(e)))++this.pos;else break e}}};Je.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)};Je.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(I.ellipsis)):(++this.pos,this.finishToken(I.dot))};Je.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(I.assign,2):this.finishOp(I.slash,1)};Je.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?I.star:I.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=I.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(I.assign,n+1):this.finishOp(r,n)};Je.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(I.assign,3)}return this.finishOp(e===124?I.logicalOR:I.logicalAND,2)}return t===61?this.finishOp(I.assign,2):this.finishOp(e===124?I.bitwiseOR:I.bitwiseAND,1)};Je.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(I.assign,2):this.finishOp(I.bitwiseXOR,1)};Je.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Gt.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(I.incDec,2):t===61?this.finishOp(I.assign,2):this.finishOp(I.plusMin,1)};Je.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(I.assign,n+1):this.finishOp(I.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(I.relational,n))};Je.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(I.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(I.arrow)):this.finishOp(e===61?I.eq:I.prefix,1)};Je.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(I.questionDot,2)}if(t===63){if(e>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(I.assign,3)}return this.finishOp(I.coalesce,2)}}return this.finishOp(I.question,1)};Je.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),En(t,!0)||t===92))return this.finishToken(I.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Ln(t)+"'")};Je.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(I.parenL);case 41:return++this.pos,this.finishToken(I.parenR);case 59:return++this.pos,this.finishToken(I.semi);case 44:return++this.pos,this.finishToken(I.comma);case 91:return++this.pos,this.finishToken(I.bracketL);case 93:return++this.pos,this.finishToken(I.bracketR);case 123:return++this.pos,this.finishToken(I.braceL);case 125:return++this.pos,this.finishToken(I.braceR);case 58:return++this.pos,this.finishToken(I.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(I.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(I.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Ln(e)+"'")};Je.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)};Je.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Gt.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if(r==="[")t=!0;else if(r==="]"&&t)t=!1;else if(r==="/"&&!t)break;e=r==="\\"}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var u=this.regexpState||(this.regexpState=new In(this));u.reset(n,i,o),this.validateRegExpFlags(u),this.validateRegExpPattern(u);var l=null;try{l=new RegExp(i,o)}catch{}return this.finishToken(I.regexp,{pattern:i,flags:o,value:l})};Je.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,u=0,l=0,c=t??1/0;l<c;++l,++this.pos){var p=this.input.charCodeAt(this.pos),f=void 0;if(r&&p===95){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),u===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),l===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),u=p;continue}if(p>=97?f=p-97+10:p>=65?f=p-65+10:p>=48&&p<=57?f=p-48:f=1/0,f>=e)break;u=p,o=o*e+f}return r&&u===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||t!=null&&this.pos-a!==t?null:o};function ab(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function ld(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}Je.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=ld(this.input.slice(t,this.pos)),++this.pos):En(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(I.num,n)};Je.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=ld(this.input.slice(t,this.pos));return++this.pos,En(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(I.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!n&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),En(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=ab(this.input.slice(t,this.pos),n);return this.finishToken(I.num,a)};Je.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,"Code point out of bounds")}else t=this.readHexChar(4);return t};Je.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):($r(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(I.string,t)};var cd={};Je.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===cd)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};Je.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw cd;this.raise(e,t)};Je.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===I.template||this.type===I.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(I.dollarBraceL)):(++this.pos,this.finishToken(I.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(I.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if($r(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
17
|
-
|
|
18
|
-
`&&++this.pos;case`
|
|
19
|
-
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};Je.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
20
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Ln(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return $r(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};Je.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,"Bad character escape sequence"),n};Je.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Gn(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?En:Gn)(o,r)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=Ln(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)};Je.readWord=function(){var e=this.readWord1(),t=I.name;return this.keywords.test(e)&&(t=Yu[e]),this.finishToken(t,e)};var sb="8.15.0";St.acorn={Parser:St,version:sb,defaultOptions:uu,Position:vi,SourceLocation:bs,getLineInfo:Vp,Node:Cs,TokenType:et,tokTypes:I,keywordTypes:Yu,TokContext:gn,tokContexts:bt,isIdentifierChar:Gn,isIdentifierStart:En,Token:nl,isNewLine:$r,lineBreak:Gt,lineBreakG:Tv,nonASCIIwhitespace:Op};var ha=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Li(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ob(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var mo={exports:{}},go,jc;function ub(){return jc||(jc=1,go={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),go}var ai={exports:{}},lb=ai.exports,Bc;function zc(){return Bc||(Bc=1,(function(e,t){(function(n,r){r(t)})(lb,(function(n){var r=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],i=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],a="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",o="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},l="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",c={5:l,"5module":l+" export import",6:l+" const class extends export import super"},p=/^in(stanceof)?$/,f=new RegExp("["+o+"]"),d=new RegExp("["+o+a+"]");function g(s,h){for(var v=65536,C=0;C<h.length;C+=2){if(v+=h[C],v>s)return!1;if(v+=h[C+1],v>=s)return!0}return!1}function x(s,h){return s<65?s===36:s<91?!0:s<97?s===95:s<123?!0:s<=65535?s>=170&&f.test(String.fromCharCode(s)):h===!1?!1:g(s,i)}function w(s,h){return s<48?s===36:s<58?!0:s<65?!1:s<91?!0:s<97?s===95:s<123?!0:s<=65535?s>=170&&d.test(String.fromCharCode(s)):h===!1?!1:g(s,i)||g(s,r)}var S=function(h,v){v===void 0&&(v={}),this.label=h,this.keyword=v.keyword,this.beforeExpr=!!v.beforeExpr,this.startsExpr=!!v.startsExpr,this.isLoop=!!v.isLoop,this.isAssign=!!v.isAssign,this.prefix=!!v.prefix,this.postfix=!!v.postfix,this.binop=v.binop||null,this.updateContext=null};function b(s,h){return new S(s,{beforeExpr:!0,binop:h})}var k={beforeExpr:!0},E={startsExpr:!0},O={};function y(s,h){return h===void 0&&(h={}),h.keyword=s,O[s]=new S(s,h)}var m={num:new S("num",E),regexp:new S("regexp",E),string:new S("string",E),name:new S("name",E),privateId:new S("privateId",E),eof:new S("eof"),bracketL:new S("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new S("]"),braceL:new S("{",{beforeExpr:!0,startsExpr:!0}),braceR:new S("}"),parenL:new S("(",{beforeExpr:!0,startsExpr:!0}),parenR:new S(")"),comma:new S(",",k),semi:new S(";",k),colon:new S(":",k),dot:new S("."),question:new S("?",k),questionDot:new S("?."),arrow:new S("=>",k),template:new S("template"),invalidTemplate:new S("invalidTemplate"),ellipsis:new S("...",k),backQuote:new S("`",E),dollarBraceL:new S("${",{beforeExpr:!0,startsExpr:!0}),eq:new S("=",{beforeExpr:!0,isAssign:!0}),assign:new S("_=",{beforeExpr:!0,isAssign:!0}),incDec:new S("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new S("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:b("||",1),logicalAND:b("&&",2),bitwiseOR:b("|",3),bitwiseXOR:b("^",4),bitwiseAND:b("&",5),equality:b("==/!=/===/!==",6),relational:b("</>/<=/>=",7),bitShift:b("<</>>/>>>",8),plusMin:new S("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:b("%",10),star:b("*",10),slash:b("/",10),starstar:new S("**",{beforeExpr:!0}),coalesce:b("??",1),_break:y("break"),_case:y("case",k),_catch:y("catch"),_continue:y("continue"),_debugger:y("debugger"),_default:y("default",k),_do:y("do",{isLoop:!0,beforeExpr:!0}),_else:y("else",k),_finally:y("finally"),_for:y("for",{isLoop:!0}),_function:y("function",E),_if:y("if"),_return:y("return",k),_switch:y("switch"),_throw:y("throw",k),_try:y("try"),_var:y("var"),_const:y("const"),_while:y("while",{isLoop:!0}),_with:y("with"),_new:y("new",{beforeExpr:!0,startsExpr:!0}),_this:y("this",E),_super:y("super",E),_class:y("class",E),_extends:y("extends",k),_export:y("export"),_import:y("import",E),_null:y("null",E),_true:y("true",E),_false:y("false",E),_in:y("in",{beforeExpr:!0,binop:7}),_instanceof:y("instanceof",{beforeExpr:!0,binop:7}),_typeof:y("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},_=/\r\n?|\n|\u2028|\u2029/,V=new RegExp(_.source,"g");function M(s){return s===10||s===13||s===8232||s===8233}function P(s,h,v){v===void 0&&(v=s.length);for(var C=h;C<v;C++){var N=s.charCodeAt(C);if(M(N))return C<v-1&&N===13&&s.charCodeAt(C+1)===10?C+2:C+1}return-1}var j=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,W=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,$=Object.prototype,se=$.hasOwnProperty,Z=$.toString,ne=Object.hasOwn||(function(s,h){return se.call(s,h)}),ce=Array.isArray||(function(s){return Z.call(s)==="[object Array]"}),de=Object.create(null);function xe(s){return de[s]||(de[s]=new RegExp("^(?:"+s.replace(/ /g,"|")+")$"))}function L(s){return s<=65535?String.fromCharCode(s):(s-=65536,String.fromCharCode((s>>10)+55296,(s&1023)+56320))}var G=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ue=function(h,v){this.line=h,this.column=v};ue.prototype.offset=function(h){return new ue(this.line,this.column+h)};var T=function(h,v,C){this.start=v,this.end=C,h.sourceFile!==null&&(this.source=h.sourceFile)};function me(s,h){for(var v=1,C=0;;){var N=P(s,C,h);if(N<0)return new ue(v,h-C);++v,C=N}}var be={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Se=!1;function J(s){var h={};for(var v in be)h[v]=s&&ne(s,v)?s[v]:be[v];if(h.ecmaVersion==="latest"?h.ecmaVersion=1e8:h.ecmaVersion==null?(!Se&&typeof console=="object"&&console.warn&&(Se=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
21
|
-
Defaulting to 2020, but this will stop working in the future.`)),h.ecmaVersion=11):h.ecmaVersion>=2015&&(h.ecmaVersion-=2009),h.allowReserved==null&&(h.allowReserved=h.ecmaVersion<5),(!s||s.allowHashBang==null)&&(h.allowHashBang=h.ecmaVersion>=14),ce(h.onToken)){var C=h.onToken;h.onToken=function(N){return C.push(N)}}return ce(h.onComment)&&(h.onComment=U(h,h.onComment)),h}function U(s,h){return function(v,C,N,H,X,ve){var ke={type:v?"Block":"Line",value:C,start:N,end:H};s.locations&&(ke.loc=new T(this,X,ve)),s.ranges&&(ke.range=[N,H]),h.push(ke)}}var Q=1,ie=2,oe=4,re=8,K=16,Y=32,q=64,ee=128,he=256,Ce=512,Ee=Q|ie|he;function Te(s,h){return ie|(s?oe:0)|(h?re:0)}var Fe=0,ye=1,Re=2,De=3,Ge=4,ae=5,le=function(h,v,C){this.options=h=J(h),this.sourceFile=h.sourceFile,this.keywords=xe(c[h.ecmaVersion>=6?6:h.sourceType==="module"?"5module":5]);var N="";h.allowReserved!==!0&&(N=u[h.ecmaVersion>=6?6:h.ecmaVersion===5?5:3],h.sourceType==="module"&&(N+=" await")),this.reservedWords=xe(N);var H=(N?N+" ":"")+u.strict;this.reservedWordsStrict=xe(H),this.reservedWordsStrictBind=xe(H+" "+u.strictBind),this.input=String(v),this.containsEsc=!1,C?(this.pos=C,this.lineStart=this.input.lastIndexOf(`
|
|
22
|
-
`,C-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(_).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=m.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=h.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&h.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Q),this.regexpState=null,this.privateNameStack=[]},A={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};le.prototype.parse=function(){var h=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(h)},A.inFunction.get=function(){return(this.currentVarScope().flags&ie)>0},A.inGenerator.get=function(){return(this.currentVarScope().flags&re)>0},A.inAsync.get=function(){return(this.currentVarScope().flags&oe)>0},A.canAwait.get=function(){for(var s=this.scopeStack.length-1;s>=0;s--){var h=this.scopeStack[s],v=h.flags;if(v&(he|Ce))return!1;if(v&ie)return(v&oe)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},A.allowSuper.get=function(){var s=this.currentThisScope(),h=s.flags;return(h&q)>0||this.options.allowSuperOutsideMethod},A.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ee)>0},A.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},A.allowNewDotTarget.get=function(){for(var s=this.scopeStack.length-1;s>=0;s--){var h=this.scopeStack[s],v=h.flags;if(v&(he|Ce)||v&ie&&!(v&K))return!0}return!1},A.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&he)>0},le.extend=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];for(var C=this,N=0;N<h.length;N++)C=h[N](C);return C},le.parse=function(h,v){return new this(v,h).parse()},le.parseExpressionAt=function(h,v,C){var N=new this(C,h,v);return N.nextToken(),N.parseExpression()},le.tokenizer=function(h,v){return new this(v,h)},Object.defineProperties(le.prototype,A);var Me=le.prototype,Xe=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Me.strictDirective=function(s){if(this.options.ecmaVersion<5)return!1;for(;;){W.lastIndex=s,s+=W.exec(this.input)[0].length;var h=Xe.exec(this.input.slice(s));if(!h)return!1;if((h[1]||h[2])==="use strict"){W.lastIndex=s+h[0].length;var v=W.exec(this.input),C=v.index+v[0].length,N=this.input.charAt(C);return N===";"||N==="}"||_.test(v[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(N)||N==="!"&&this.input.charAt(C+1)==="=")}s+=h[0].length,W.lastIndex=s,s+=W.exec(this.input)[0].length,this.input[s]===";"&&s++}},Me.eat=function(s){return this.type===s?(this.next(),!0):!1},Me.isContextual=function(s){return this.type===m.name&&this.value===s&&!this.containsEsc},Me.eatContextual=function(s){return this.isContextual(s)?(this.next(),!0):!1},Me.expectContextual=function(s){this.eatContextual(s)||this.unexpected()},Me.canInsertSemicolon=function(){return this.type===m.eof||this.type===m.braceR||_.test(this.input.slice(this.lastTokEnd,this.start))},Me.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Me.semicolon=function(){!this.eat(m.semi)&&!this.insertSemicolon()&&this.unexpected()},Me.afterTrailingComma=function(s,h){if(this.type===s)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),h||this.next(),!0},Me.expect=function(s){this.eat(s)||this.unexpected()},Me.unexpected=function(s){this.raise(s??this.start,"Unexpected token")};var yt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Me.checkPatternErrors=function(s,h){if(s){s.trailingComma>-1&&this.raiseRecoverable(s.trailingComma,"Comma is not permitted after the rest element");var v=h?s.parenthesizedAssign:s.parenthesizedBind;v>-1&&this.raiseRecoverable(v,h?"Assigning to rvalue":"Parenthesized pattern")}},Me.checkExpressionErrors=function(s,h){if(!s)return!1;var v=s.shorthandAssign,C=s.doubleProto;if(!h)return v>=0||C>=0;v>=0&&this.raise(v,"Shorthand property assignments are valid only in destructuring patterns"),C>=0&&this.raiseRecoverable(C,"Redefinition of __proto__ property")},Me.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Me.isSimpleAssignTarget=function(s){return s.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(s.expression):s.type==="Identifier"||s.type==="MemberExpression"};var _e=le.prototype;_e.parseTopLevel=function(s){var h=Object.create(null);for(s.body||(s.body=[]);this.type!==m.eof;){var v=this.parseStatement(null,!0,h);s.body.push(v)}if(this.inModule)for(var C=0,N=Object.keys(this.undefinedExports);C<N.length;C+=1){var H=N[C];this.raiseRecoverable(this.undefinedExports[H].start,"Export '"+H+"' is not defined")}return this.adaptDirectivePrologue(s.body),this.next(),s.sourceType=this.options.sourceType,this.finishNode(s,"Program")};var Ot={kind:"loop"},An={kind:"switch"};_e.isLet=function(s){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;W.lastIndex=this.pos;var h=W.exec(this.input),v=this.pos+h[0].length,C=this.input.charCodeAt(v);if(C===91||C===92)return!0;if(s)return!1;if(C===123||C>55295&&C<56320)return!0;if(x(C,!0)){for(var N=v+1;w(C=this.input.charCodeAt(N),!0);)++N;if(C===92||C>55295&&C<56320)return!0;var H=this.input.slice(v,N);if(!p.test(H))return!0}return!1},_e.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;W.lastIndex=this.pos;var s=W.exec(this.input),h=this.pos+s[0].length,v;return!_.test(this.input.slice(this.pos,h))&&this.input.slice(h,h+8)==="function"&&(h+8===this.input.length||!(w(v=this.input.charCodeAt(h+8))||v>55295&&v<56320))},_e.isUsingKeyword=function(s,h){if(this.options.ecmaVersion<17||!this.isContextual(s?"await":"using"))return!1;W.lastIndex=this.pos;var v=W.exec(this.input),C=this.pos+v[0].length;if(_.test(this.input.slice(this.pos,C)))return!1;if(s){var N=C+5,H;if(this.input.slice(C,N)!=="using"||N===this.input.length||w(H=this.input.charCodeAt(N))||H>55295&&H<56320)return!1;W.lastIndex=N;var X=W.exec(this.input);if(X&&_.test(this.input.slice(N,N+X[0].length)))return!1}if(h){var ve=C+2,ke;if(this.input.slice(C,ve)==="of"&&(ve===this.input.length||!w(ke=this.input.charCodeAt(ve))&&!(ke>55295&&ke<56320)))return!1}var je=this.input.charCodeAt(C);return x(je,!0)||je===92},_e.isAwaitUsing=function(s){return this.isUsingKeyword(!0,s)},_e.isUsing=function(s){return this.isUsingKeyword(!1,s)},_e.parseStatement=function(s,h,v){var C=this.type,N=this.startNode(),H;switch(this.isLet(s)&&(C=m._var,H="let"),C){case m._break:case m._continue:return this.parseBreakContinueStatement(N,C.keyword);case m._debugger:return this.parseDebuggerStatement(N);case m._do:return this.parseDoStatement(N);case m._for:return this.parseForStatement(N);case m._function:return s&&(this.strict||s!=="if"&&s!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(N,!1,!s);case m._class:return s&&this.unexpected(),this.parseClass(N,!0);case m._if:return this.parseIfStatement(N);case m._return:return this.parseReturnStatement(N);case m._switch:return this.parseSwitchStatement(N);case m._throw:return this.parseThrowStatement(N);case m._try:return this.parseTryStatement(N);case m._const:case m._var:return H=H||this.value,s&&H!=="var"&&this.unexpected(),this.parseVarStatement(N,H);case m._while:return this.parseWhileStatement(N);case m._with:return this.parseWithStatement(N);case m.braceL:return this.parseBlock(!0,N);case m.semi:return this.parseEmptyStatement(N);case m._export:case m._import:if(this.options.ecmaVersion>10&&C===m._import){W.lastIndex=this.pos;var X=W.exec(this.input),ve=this.pos+X[0].length,ke=this.input.charCodeAt(ve);if(ke===40||ke===46)return this.parseExpressionStatement(N,this.parseExpression())}return this.options.allowImportExportEverywhere||(h||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),C===m._import?this.parseImport(N):this.parseExport(N,v);default:if(this.isAsyncFunction())return s&&this.unexpected(),this.next(),this.parseFunctionStatement(N,!0,!s);var je=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(je)return h&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),je==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(N,!1,je),this.semicolon(),this.finishNode(N,"VariableDeclaration");var He=this.value,ut=this.parseExpression();return C===m.name&&ut.type==="Identifier"&&this.eat(m.colon)?this.parseLabeledStatement(N,He,ut,s):this.parseExpressionStatement(N,ut)}},_e.parseBreakContinueStatement=function(s,h){var v=h==="break";this.next(),this.eat(m.semi)||this.insertSemicolon()?s.label=null:this.type!==m.name?this.unexpected():(s.label=this.parseIdent(),this.semicolon());for(var C=0;C<this.labels.length;++C){var N=this.labels[C];if((s.label==null||N.name===s.label.name)&&(N.kind!=null&&(v||N.kind==="loop")||s.label&&v))break}return C===this.labels.length&&this.raise(s.start,"Unsyntactic "+h),this.finishNode(s,v?"BreakStatement":"ContinueStatement")},_e.parseDebuggerStatement=function(s){return this.next(),this.semicolon(),this.finishNode(s,"DebuggerStatement")},_e.parseDoStatement=function(s){return this.next(),this.labels.push(Ot),s.body=this.parseStatement("do"),this.labels.pop(),this.expect(m._while),s.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(m.semi):this.semicolon(),this.finishNode(s,"DoWhileStatement")},_e.parseForStatement=function(s){this.next();var h=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ot),this.enterScope(0),this.expect(m.parenL),this.type===m.semi)return h>-1&&this.unexpected(h),this.parseFor(s,null);var v=this.isLet();if(this.type===m._var||this.type===m._const||v){var C=this.startNode(),N=v?"let":this.value;return this.next(),this.parseVar(C,!0,N),this.finishNode(C,"VariableDeclaration"),this.parseForAfterInit(s,C,h)}var H=this.isContextual("let"),X=!1,ve=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(ve){var ke=this.startNode();return this.next(),ve==="await using"&&this.next(),this.parseVar(ke,!0,ve),this.finishNode(ke,"VariableDeclaration"),this.parseForAfterInit(s,ke,h)}var je=this.containsEsc,He=new yt,ut=this.start,kt=h>-1?this.parseExprSubscripts(He,"await"):this.parseExpression(!0,He);return this.type===m._in||(X=this.options.ecmaVersion>=6&&this.isContextual("of"))?(h>-1?(this.type===m._in&&this.unexpected(h),s.await=!0):X&&this.options.ecmaVersion>=8&&(kt.start===ut&&!je&&kt.type==="Identifier"&&kt.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(s.await=!1)),H&&X&&this.raise(kt.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(kt,!1,He),this.checkLValPattern(kt),this.parseForIn(s,kt)):(this.checkExpressionErrors(He,!0),h>-1&&this.unexpected(h),this.parseFor(s,kt))},_e.parseForAfterInit=function(s,h,v){return(this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&h.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===m._in?v>-1&&this.unexpected(v):s.await=v>-1),this.parseForIn(s,h)):(v>-1&&this.unexpected(v),this.parseFor(s,h))},_e.parseFunctionStatement=function(s,h,v){return this.next(),this.parseFunction(s,gt|(v?0:rn),!1,h)},_e.parseIfStatement=function(s){return this.next(),s.test=this.parseParenExpression(),s.consequent=this.parseStatement("if"),s.alternate=this.eat(m._else)?this.parseStatement("if"):null,this.finishNode(s,"IfStatement")},_e.parseReturnStatement=function(s){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(m.semi)||this.insertSemicolon()?s.argument=null:(s.argument=this.parseExpression(),this.semicolon()),this.finishNode(s,"ReturnStatement")},_e.parseSwitchStatement=function(s){this.next(),s.discriminant=this.parseParenExpression(),s.cases=[],this.expect(m.braceL),this.labels.push(An),this.enterScope(0);for(var h,v=!1;this.type!==m.braceR;)if(this.type===m._case||this.type===m._default){var C=this.type===m._case;h&&this.finishNode(h,"SwitchCase"),s.cases.push(h=this.startNode()),h.consequent=[],this.next(),C?h.test=this.parseExpression():(v&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),v=!0,h.test=null),this.expect(m.colon)}else h||this.unexpected(),h.consequent.push(this.parseStatement(null));return this.exitScope(),h&&this.finishNode(h,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(s,"SwitchStatement")},_e.parseThrowStatement=function(s){return this.next(),_.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),s.argument=this.parseExpression(),this.semicolon(),this.finishNode(s,"ThrowStatement")};var Lt=[];_e.parseCatchClauseParam=function(){var s=this.parseBindingAtom(),h=s.type==="Identifier";return this.enterScope(h?Y:0),this.checkLValPattern(s,h?Ge:Re),this.expect(m.parenR),s},_e.parseTryStatement=function(s){if(this.next(),s.block=this.parseBlock(),s.handler=null,this.type===m._catch){var h=this.startNode();this.next(),this.eat(m.parenL)?h.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),h.param=null,this.enterScope(0)),h.body=this.parseBlock(!1),this.exitScope(),s.handler=this.finishNode(h,"CatchClause")}return s.finalizer=this.eat(m._finally)?this.parseBlock():null,!s.handler&&!s.finalizer&&this.raise(s.start,"Missing catch or finally clause"),this.finishNode(s,"TryStatement")},_e.parseVarStatement=function(s,h,v){return this.next(),this.parseVar(s,!1,h,v),this.semicolon(),this.finishNode(s,"VariableDeclaration")},_e.parseWhileStatement=function(s){return this.next(),s.test=this.parseParenExpression(),this.labels.push(Ot),s.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(s,"WhileStatement")},_e.parseWithStatement=function(s){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),s.object=this.parseParenExpression(),s.body=this.parseStatement("with"),this.finishNode(s,"WithStatement")},_e.parseEmptyStatement=function(s){return this.next(),this.finishNode(s,"EmptyStatement")},_e.parseLabeledStatement=function(s,h,v,C){for(var N=0,H=this.labels;N<H.length;N+=1){var X=H[N];X.name===h&&this.raise(v.start,"Label '"+h+"' is already declared")}for(var ve=this.type.isLoop?"loop":this.type===m._switch?"switch":null,ke=this.labels.length-1;ke>=0;ke--){var je=this.labels[ke];if(je.statementStart===s.start)je.statementStart=this.start,je.kind=ve;else break}return this.labels.push({name:h,kind:ve,statementStart:this.start}),s.body=this.parseStatement(C?C.indexOf("label")===-1?C+"label":C:"label"),this.labels.pop(),s.label=v,this.finishNode(s,"LabeledStatement")},_e.parseExpressionStatement=function(s,h){return s.expression=h,this.semicolon(),this.finishNode(s,"ExpressionStatement")},_e.parseBlock=function(s,h,v){for(s===void 0&&(s=!0),h===void 0&&(h=this.startNode()),h.body=[],this.expect(m.braceL),s&&this.enterScope(0);this.type!==m.braceR;){var C=this.parseStatement(null);h.body.push(C)}return v&&(this.strict=!1),this.next(),s&&this.exitScope(),this.finishNode(h,"BlockStatement")},_e.parseFor=function(s,h){return s.init=h,this.expect(m.semi),s.test=this.type===m.semi?null:this.parseExpression(),this.expect(m.semi),s.update=this.type===m.parenR?null:this.parseExpression(),this.expect(m.parenR),s.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(s,"ForStatement")},_e.parseForIn=function(s,h){var v=this.type===m._in;return this.next(),h.type==="VariableDeclaration"&&h.declarations[0].init!=null&&(!v||this.options.ecmaVersion<8||this.strict||h.kind!=="var"||h.declarations[0].id.type!=="Identifier")&&this.raise(h.start,(v?"for-in":"for-of")+" loop variable declaration may not have an initializer"),s.left=h,s.right=v?this.parseExpression():this.parseMaybeAssign(),this.expect(m.parenR),s.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(s,v?"ForInStatement":"ForOfStatement")},_e.parseVar=function(s,h,v,C){for(s.declarations=[],s.kind=v;;){var N=this.startNode();if(this.parseVarId(N,v),this.eat(m.eq)?N.init=this.parseMaybeAssign(h):!C&&v==="const"&&!(this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!C&&(v==="using"||v==="await using")&&this.options.ecmaVersion>=17&&this.type!==m._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+v+" declaration"):!C&&N.id.type!=="Identifier"&&!(h&&(this.type===m._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):N.init=null,s.declarations.push(this.finishNode(N,"VariableDeclarator")),!this.eat(m.comma))break}return s},_e.parseVarId=function(s,h){s.id=h==="using"||h==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(s.id,h==="var"?ye:Re,!1)};var gt=1,rn=2,Vt=4;_e.parseFunction=function(s,h,v,C,N){this.initFunction(s),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!C)&&(this.type===m.star&&h&rn&&this.unexpected(),s.generator=this.eat(m.star)),this.options.ecmaVersion>=8&&(s.async=!!C),h>&&(s.id=h&Vt&&this.type!==m.name?null:this.parseIdent(),s.id&&!(h&rn)&&this.checkLValSimple(s.id,this.strict||s.generator||s.async?this.treatFunctionsAsVar?ye:Re:De));var H=this.yieldPos,X=this.awaitPos,ve=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Te(s.async,s.generator)),h>||(s.id=this.type===m.name?this.parseIdent():null),this.parseFunctionParams(s),this.parseFunctionBody(s,v,!1,N),this.yieldPos=H,this.awaitPos=X,this.awaitIdentPos=ve,this.finishNode(s,h>?"FunctionDeclaration":"FunctionExpression")},_e.parseFunctionParams=function(s){this.expect(m.parenL),s.params=this.parseBindingList(m.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},_e.parseClass=function(s,h){this.next();var v=this.strict;this.strict=!0,this.parseClassId(s,h),this.parseClassSuper(s);var C=this.enterClassBody(),N=this.startNode(),H=!1;for(N.body=[],this.expect(m.braceL);this.type!==m.braceR;){var X=this.parseClassElement(s.superClass!==null);X&&(N.body.push(X),X.type==="MethodDefinition"&&X.kind==="constructor"?(H&&this.raiseRecoverable(X.start,"Duplicate constructor in the same class"),H=!0):X.key&&X.key.type==="PrivateIdentifier"&&$s(C,X)&&this.raiseRecoverable(X.key.start,"Identifier '#"+X.key.name+"' has already been declared"))}return this.strict=v,this.next(),s.body=this.finishNode(N,"ClassBody"),this.exitClassBody(),this.finishNode(s,h?"ClassDeclaration":"ClassExpression")},_e.parseClassElement=function(s){if(this.eat(m.semi))return null;var h=this.options.ecmaVersion,v=this.startNode(),C="",N=!1,H=!1,X="method",ve=!1;if(this.eatContextual("static")){if(h>=13&&this.eat(m.braceL))return this.parseClassStaticBlock(v),v;this.isClassElementNameStart()||this.type===m.star?ve=!0:C="static"}if(v.static=ve,!C&&h>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===m.star)&&!this.canInsertSemicolon()?H=!0:C="async"),!C&&(h>=9||!H)&&this.eat(m.star)&&(N=!0),!C&&!H&&!N){var ke=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?X=ke:C=ke)}if(C?(v.computed=!1,v.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),v.key.name=C,this.finishNode(v.key,"Identifier")):this.parseClassElementName(v),h<13||this.type===m.parenL||X!=="method"||N||H){var je=!v.static&&ar(v,"constructor"),He=je&&s;je&&X!=="method"&&this.raise(v.key.start,"Constructor can't have get/set modifier"),v.kind=je?"constructor":X,this.parseClassMethod(v,N,H,He)}else this.parseClassField(v);return v},_e.isClassElementNameStart=function(){return this.type===m.name||this.type===m.privateId||this.type===m.num||this.type===m.string||this.type===m.bracketL||this.type.keyword},_e.parseClassElementName=function(s){this.type===m.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),s.computed=!1,s.key=this.parsePrivateIdent()):this.parsePropertyName(s)},_e.parseClassMethod=function(s,h,v,C){var N=s.key;s.kind==="constructor"?(h&&this.raise(N.start,"Constructor can't be a generator"),v&&this.raise(N.start,"Constructor can't be an async method")):s.static&&ar(s,"prototype")&&this.raise(N.start,"Classes may not have a static property named prototype");var H=s.value=this.parseMethod(h,v,C);return s.kind==="get"&&H.params.length!==0&&this.raiseRecoverable(H.start,"getter should have no params"),s.kind==="set"&&H.params.length!==1&&this.raiseRecoverable(H.start,"setter should have exactly one param"),s.kind==="set"&&H.params[0].type==="RestElement"&&this.raiseRecoverable(H.params[0].start,"Setter cannot use rest params"),this.finishNode(s,"MethodDefinition")},_e.parseClassField=function(s){return ar(s,"constructor")?this.raise(s.key.start,"Classes can't have a field named 'constructor'"):s.static&&ar(s,"prototype")&&this.raise(s.key.start,"Classes can't have a static field named 'prototype'"),this.eat(m.eq)?(this.enterScope(Ce|q),s.value=this.parseMaybeAssign(),this.exitScope()):s.value=null,this.semicolon(),this.finishNode(s,"PropertyDefinition")},_e.parseClassStaticBlock=function(s){s.body=[];var h=this.labels;for(this.labels=[],this.enterScope(he|q);this.type!==m.braceR;){var v=this.parseStatement(null);s.body.push(v)}return this.next(),this.exitScope(),this.labels=h,this.finishNode(s,"StaticBlock")},_e.parseClassId=function(s,h){this.type===m.name?(s.id=this.parseIdent(),h&&this.checkLValSimple(s.id,Re,!1)):(h===!0&&this.unexpected(),s.id=null)},_e.parseClassSuper=function(s){s.superClass=this.eat(m._extends)?this.parseExprSubscripts(null,!1):null},_e.enterClassBody=function(){var s={declared:Object.create(null),used:[]};return this.privateNameStack.push(s),s.declared},_e.exitClassBody=function(){var s=this.privateNameStack.pop(),h=s.declared,v=s.used;if(this.options.checkPrivateFields)for(var C=this.privateNameStack.length,N=C===0?null:this.privateNameStack[C-1],H=0;H<v.length;++H){var X=v[H];ne(h,X.name)||(N?N.used.push(X):this.raiseRecoverable(X.start,"Private field '#"+X.name+"' must be declared in an enclosing class"))}};function $s(s,h){var v=h.key.name,C=s[v],N="true";return h.type==="MethodDefinition"&&(h.kind==="get"||h.kind==="set")&&(N=(h.static?"s":"i")+h.kind),C==="iget"&&N==="iset"||C==="iset"&&N==="iget"||C==="sget"&&N==="sset"||C==="sset"&&N==="sget"?(s[v]="true",!1):C?!0:(s[v]=N,!1)}function ar(s,h){var v=s.computed,C=s.key;return!v&&(C.type==="Identifier"&&C.name===h||C.type==="Literal"&&C.value===h)}_e.parseExportAllDeclaration=function(s,h){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(s.exported=this.parseModuleExportName(),this.checkExport(h,s.exported,this.lastTokStart)):s.exported=null),this.expectContextual("from"),this.type!==m.string&&this.unexpected(),s.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(s.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(s,"ExportAllDeclaration")},_e.parseExport=function(s,h){if(this.next(),this.eat(m.star))return this.parseExportAllDeclaration(s,h);if(this.eat(m._default))return this.checkExport(h,"default",this.lastTokStart),s.declaration=this.parseExportDefaultDeclaration(),this.finishNode(s,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())s.declaration=this.parseExportDeclaration(s),s.declaration.type==="VariableDeclaration"?this.checkVariableExport(h,s.declaration.declarations):this.checkExport(h,s.declaration.id,s.declaration.id.start),s.specifiers=[],s.source=null,this.options.ecmaVersion>=16&&(s.attributes=[]);else{if(s.declaration=null,s.specifiers=this.parseExportSpecifiers(h),this.eatContextual("from"))this.type!==m.string&&this.unexpected(),s.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(s.attributes=this.parseWithClause());else{for(var v=0,C=s.specifiers;v<C.length;v+=1){var N=C[v];this.checkUnreserved(N.local),this.checkLocalExport(N.local),N.local.type==="Literal"&&this.raise(N.local.start,"A string literal cannot be used as an exported binding without `from`.")}s.source=null,this.options.ecmaVersion>=16&&(s.attributes=[])}this.semicolon()}return this.finishNode(s,"ExportNamedDeclaration")},_e.parseExportDeclaration=function(s){return this.parseStatement(null)},_e.parseExportDefaultDeclaration=function(){var s;if(this.type===m._function||(s=this.isAsyncFunction())){var h=this.startNode();return this.next(),s&&this.next(),this.parseFunction(h,gt|Vt,!1,s)}else if(this.type===m._class){var v=this.startNode();return this.parseClass(v,"nullableID")}else{var C=this.parseMaybeAssign();return this.semicolon(),C}},_e.checkExport=function(s,h,v){s&&(typeof h!="string"&&(h=h.type==="Identifier"?h.name:h.value),ne(s,h)&&this.raiseRecoverable(v,"Duplicate export '"+h+"'"),s[h]=!0)},_e.checkPatternExport=function(s,h){var v=h.type;if(v==="Identifier")this.checkExport(s,h,h.start);else if(v==="ObjectPattern")for(var C=0,N=h.properties;C<N.length;C+=1){var H=N[C];this.checkPatternExport(s,H)}else if(v==="ArrayPattern")for(var X=0,ve=h.elements;X<ve.length;X+=1){var ke=ve[X];ke&&this.checkPatternExport(s,ke)}else v==="Property"?this.checkPatternExport(s,h.value):v==="AssignmentPattern"?this.checkPatternExport(s,h.left):v==="RestElement"&&this.checkPatternExport(s,h.argument)},_e.checkVariableExport=function(s,h){if(s)for(var v=0,C=h;v<C.length;v+=1){var N=C[v];this.checkPatternExport(s,N.id)}},_e.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},_e.parseExportSpecifier=function(s){var h=this.startNode();return h.local=this.parseModuleExportName(),h.exported=this.eatContextual("as")?this.parseModuleExportName():h.local,this.checkExport(s,h.exported,h.exported.start),this.finishNode(h,"ExportSpecifier")},_e.parseExportSpecifiers=function(s){var h=[],v=!0;for(this.expect(m.braceL);!this.eat(m.braceR);){if(v)v=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;h.push(this.parseExportSpecifier(s))}return h},_e.parseImport=function(s){return this.next(),this.type===m.string?(s.specifiers=Lt,s.source=this.parseExprAtom()):(s.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),s.source=this.type===m.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(s.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(s,"ImportDeclaration")},_e.parseImportSpecifier=function(){var s=this.startNode();return s.imported=this.parseModuleExportName(),this.eatContextual("as")?s.local=this.parseIdent():(this.checkUnreserved(s.imported),s.local=s.imported),this.checkLValSimple(s.local,Re),this.finishNode(s,"ImportSpecifier")},_e.parseImportDefaultSpecifier=function(){var s=this.startNode();return s.local=this.parseIdent(),this.checkLValSimple(s.local,Re),this.finishNode(s,"ImportDefaultSpecifier")},_e.parseImportNamespaceSpecifier=function(){var s=this.startNode();return this.next(),this.expectContextual("as"),s.local=this.parseIdent(),this.checkLValSimple(s.local,Re),this.finishNode(s,"ImportNamespaceSpecifier")},_e.parseImportSpecifiers=function(){var s=[],h=!0;if(this.type===m.name&&(s.push(this.parseImportDefaultSpecifier()),!this.eat(m.comma)))return s;if(this.type===m.star)return s.push(this.parseImportNamespaceSpecifier()),s;for(this.expect(m.braceL);!this.eat(m.braceR);){if(h)h=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;s.push(this.parseImportSpecifier())}return s},_e.parseWithClause=function(){var s=[];if(!this.eat(m._with))return s;this.expect(m.braceL);for(var h={},v=!0;!this.eat(m.braceR);){if(v)v=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;var C=this.parseImportAttribute(),N=C.key.type==="Identifier"?C.key.name:C.key.value;ne(h,N)&&this.raiseRecoverable(C.key.start,"Duplicate attribute key '"+N+"'"),h[N]=!0,s.push(C)}return s},_e.parseImportAttribute=function(){var s=this.startNode();return s.key=this.type===m.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(m.colon),this.type!==m.string&&this.unexpected(),s.value=this.parseExprAtom(),this.finishNode(s,"ImportAttribute")},_e.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===m.string){var s=this.parseLiteral(this.value);return G.test(s.value)&&this.raise(s.start,"An export name cannot include a lone surrogate."),s}return this.parseIdent(!0)},_e.adaptDirectivePrologue=function(s){for(var h=0;h<s.length&&this.isDirectiveCandidate(s[h]);++h)s[h].directive=s[h].expression.raw.slice(1,-1)},_e.isDirectiveCandidate=function(s){return this.options.ecmaVersion>=5&&s.type==="ExpressionStatement"&&s.expression.type==="Literal"&&typeof s.expression.value=="string"&&(this.input[s.start]==='"'||this.input[s.start]==="'")};var Ct=le.prototype;Ct.toAssignable=function(s,h,v){if(this.options.ecmaVersion>=6&&s)switch(s.type){case"Identifier":this.inAsync&&s.name==="await"&&this.raise(s.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":s.type="ObjectPattern",v&&this.checkPatternErrors(v,!0);for(var C=0,N=s.properties;C<N.length;C+=1){var H=N[C];this.toAssignable(H,h),H.type==="RestElement"&&(H.argument.type==="ArrayPattern"||H.argument.type==="ObjectPattern")&&this.raise(H.argument.start,"Unexpected token")}break;case"Property":s.kind!=="init"&&this.raise(s.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(s.value,h);break;case"ArrayExpression":s.type="ArrayPattern",v&&this.checkPatternErrors(v,!0),this.toAssignableList(s.elements,h);break;case"SpreadElement":s.type="RestElement",this.toAssignable(s.argument,h),s.argument.type==="AssignmentPattern"&&this.raise(s.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":s.operator!=="="&&this.raise(s.left.end,"Only '=' operator can be used for specifying default value."),s.type="AssignmentPattern",delete s.operator,this.toAssignable(s.left,h);break;case"ParenthesizedExpression":this.toAssignable(s.expression,h,v);break;case"ChainExpression":this.raiseRecoverable(s.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!h)break;default:this.raise(s.start,"Assigning to rvalue")}else v&&this.checkPatternErrors(v,!0);return s},Ct.toAssignableList=function(s,h){for(var v=s.length,C=0;C<v;C++){var N=s[C];N&&this.toAssignable(N,h)}if(v){var H=s[v-1];this.options.ecmaVersion===6&&h&&H&&H.type==="RestElement"&&H.argument.type!=="Identifier"&&this.unexpected(H.argument.start)}return s},Ct.parseSpread=function(s){var h=this.startNode();return this.next(),h.argument=this.parseMaybeAssign(!1,s),this.finishNode(h,"SpreadElement")},Ct.parseRestBinding=function(){var s=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==m.name&&this.unexpected(),s.argument=this.parseBindingAtom(),this.finishNode(s,"RestElement")},Ct.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case m.bracketL:var s=this.startNode();return this.next(),s.elements=this.parseBindingList(m.bracketR,!0,!0),this.finishNode(s,"ArrayPattern");case m.braceL:return this.parseObj(!0)}return this.parseIdent()},Ct.parseBindingList=function(s,h,v,C){for(var N=[],H=!0;!this.eat(s);)if(H?H=!1:this.expect(m.comma),h&&this.type===m.comma)N.push(null);else{if(v&&this.afterTrailingComma(s))break;if(this.type===m.ellipsis){var X=this.parseRestBinding();this.parseBindingListItem(X),N.push(X),this.type===m.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(s);break}else N.push(this.parseAssignableListItem(C))}return N},Ct.parseAssignableListItem=function(s){var h=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(h),h},Ct.parseBindingListItem=function(s){return s},Ct.parseMaybeDefault=function(s,h,v){if(v=v||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(m.eq))return v;var C=this.startNodeAt(s,h);return C.left=v,C.right=this.parseMaybeAssign(),this.finishNode(C,"AssignmentPattern")},Ct.checkLValSimple=function(s,h,v){h===void 0&&(h=Fe);var C=h!==Fe;switch(s.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(s.name)&&this.raiseRecoverable(s.start,(C?"Binding ":"Assigning to ")+s.name+" in strict mode"),C&&(h===Re&&s.name==="let"&&this.raiseRecoverable(s.start,"let is disallowed as a lexically bound name"),v&&(ne(v,s.name)&&this.raiseRecoverable(s.start,"Argument name clash"),v[s.name]=!0),h!==ae&&this.declareName(s.name,h,s.start));break;case"ChainExpression":this.raiseRecoverable(s.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":C&&this.raiseRecoverable(s.start,"Binding member expression");break;case"ParenthesizedExpression":return C&&this.raiseRecoverable(s.start,"Binding parenthesized expression"),this.checkLValSimple(s.expression,h,v);default:this.raise(s.start,(C?"Binding":"Assigning to")+" rvalue")}},Ct.checkLValPattern=function(s,h,v){switch(h===void 0&&(h=Fe),s.type){case"ObjectPattern":for(var C=0,N=s.properties;C<N.length;C+=1){var H=N[C];this.checkLValInnerPattern(H,h,v)}break;case"ArrayPattern":for(var X=0,ve=s.elements;X<ve.length;X+=1){var ke=ve[X];ke&&this.checkLValInnerPattern(ke,h,v)}break;default:this.checkLValSimple(s,h,v)}},Ct.checkLValInnerPattern=function(s,h,v){switch(h===void 0&&(h=Fe),s.type){case"Property":this.checkLValInnerPattern(s.value,h,v);break;case"AssignmentPattern":this.checkLValPattern(s.left,h,v);break;case"RestElement":this.checkLValPattern(s.argument,h,v);break;default:this.checkLValPattern(s,h,v)}};var jt=function(h,v,C,N,H){this.token=h,this.isExpr=!!v,this.preserveSpace=!!C,this.override=N,this.generator=!!H},Ze={b_stat:new jt("{",!1),b_expr:new jt("{",!0),b_tmpl:new jt("${",!1),p_stat:new jt("(",!1),p_expr:new jt("(",!0),q_tmpl:new jt("`",!0,!0,function(s){return s.tryReadTemplateToken()}),f_stat:new jt("function",!1),f_expr:new jt("function",!0),f_expr_gen:new jt("function",!0,!1,null,!0),f_gen:new jt("function",!1,!1,null,!0)},Bn=le.prototype;Bn.initialContext=function(){return[Ze.b_stat]},Bn.curContext=function(){return this.context[this.context.length-1]},Bn.braceIsBlock=function(s){var h=this.curContext();return h===Ze.f_expr||h===Ze.f_stat?!0:s===m.colon&&(h===Ze.b_stat||h===Ze.b_expr)?!h.isExpr:s===m._return||s===m.name&&this.exprAllowed?_.test(this.input.slice(this.lastTokEnd,this.start)):s===m._else||s===m.semi||s===m.eof||s===m.parenR||s===m.arrow?!0:s===m.braceL?h===Ze.b_stat:s===m._var||s===m._const||s===m.name?!1:!this.exprAllowed},Bn.inGeneratorContext=function(){for(var s=this.context.length-1;s>=1;s--){var h=this.context[s];if(h.token==="function")return h.generator}return!1},Bn.updateContext=function(s){var h,v=this.type;v.keyword&&s===m.dot?this.exprAllowed=!1:(h=v.updateContext)?h.call(this,s):this.exprAllowed=v.beforeExpr},Bn.overrideContext=function(s){this.curContext()!==s&&(this.context[this.context.length-1]=s)},m.parenR.updateContext=m.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var s=this.context.pop();s===Ze.b_stat&&this.curContext().token==="function"&&(s=this.context.pop()),this.exprAllowed=!s.isExpr},m.braceL.updateContext=function(s){this.context.push(this.braceIsBlock(s)?Ze.b_stat:Ze.b_expr),this.exprAllowed=!0},m.dollarBraceL.updateContext=function(){this.context.push(Ze.b_tmpl),this.exprAllowed=!0},m.parenL.updateContext=function(s){var h=s===m._if||s===m._for||s===m._with||s===m._while;this.context.push(h?Ze.p_stat:Ze.p_expr),this.exprAllowed=!0},m.incDec.updateContext=function(){},m._function.updateContext=m._class.updateContext=function(s){s.beforeExpr&&s!==m._else&&!(s===m.semi&&this.curContext()!==Ze.p_stat)&&!(s===m._return&&_.test(this.input.slice(this.lastTokEnd,this.start)))&&!((s===m.colon||s===m.braceL)&&this.curContext()===Ze.b_stat)?this.context.push(Ze.f_expr):this.context.push(Ze.f_stat),this.exprAllowed=!1},m.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},m.backQuote.updateContext=function(){this.curContext()===Ze.q_tmpl?this.context.pop():this.context.push(Ze.q_tmpl),this.exprAllowed=!1},m.star.updateContext=function(s){if(s===m._function){var h=this.context.length-1;this.context[h]===Ze.f_expr?this.context[h]=Ze.f_expr_gen:this.context[h]=Ze.f_gen}this.exprAllowed=!0},m.name.updateContext=function(s){var h=!1;this.options.ecmaVersion>=6&&s!==m.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(h=!0),this.exprAllowed=h};var Be=le.prototype;Be.checkPropClash=function(s,h,v){if(!(this.options.ecmaVersion>=9&&s.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(s.computed||s.method||s.shorthand))){var C=s.key,N;switch(C.type){case"Identifier":N=C.name;break;case"Literal":N=String(C.value);break;default:return}var H=s.kind;if(this.options.ecmaVersion>=6){N==="__proto__"&&H==="init"&&(h.proto&&(v?v.doubleProto<0&&(v.doubleProto=C.start):this.raiseRecoverable(C.start,"Redefinition of __proto__ property")),h.proto=!0);return}N="$"+N;var X=h[N];if(X){var ve;H==="init"?ve=this.strict&&X.init||X.get||X.set:ve=X.init||X[H],ve&&this.raiseRecoverable(C.start,"Redefinition of property")}else X=h[N]={init:!1,get:!1,set:!1};X[H]=!0}},Be.parseExpression=function(s,h){var v=this.start,C=this.startLoc,N=this.parseMaybeAssign(s,h);if(this.type===m.comma){var H=this.startNodeAt(v,C);for(H.expressions=[N];this.eat(m.comma);)H.expressions.push(this.parseMaybeAssign(s,h));return this.finishNode(H,"SequenceExpression")}return N},Be.parseMaybeAssign=function(s,h,v){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(s);this.exprAllowed=!1}var C=!1,N=-1,H=-1,X=-1;h?(N=h.parenthesizedAssign,H=h.trailingComma,X=h.doubleProto,h.parenthesizedAssign=h.trailingComma=-1):(h=new yt,C=!0);var ve=this.start,ke=this.startLoc;(this.type===m.parenL||this.type===m.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=s==="await");var je=this.parseMaybeConditional(s,h);if(v&&(je=v.call(this,je,ve,ke)),this.type.isAssign){var He=this.startNodeAt(ve,ke);return He.operator=this.value,this.type===m.eq&&(je=this.toAssignable(je,!1,h)),C||(h.parenthesizedAssign=h.trailingComma=h.doubleProto=-1),h.shorthandAssign>=je.start&&(h.shorthandAssign=-1),this.type===m.eq?this.checkLValPattern(je):this.checkLValSimple(je),He.left=je,this.next(),He.right=this.parseMaybeAssign(s),X>-1&&(h.doubleProto=X),this.finishNode(He,"AssignmentExpression")}else C&&this.checkExpressionErrors(h,!0);return N>-1&&(h.parenthesizedAssign=N),H>-1&&(h.trailingComma=H),je},Be.parseMaybeConditional=function(s,h){var v=this.start,C=this.startLoc,N=this.parseExprOps(s,h);if(this.checkExpressionErrors(h))return N;if(this.eat(m.question)){var H=this.startNodeAt(v,C);return H.test=N,H.consequent=this.parseMaybeAssign(),this.expect(m.colon),H.alternate=this.parseMaybeAssign(s),this.finishNode(H,"ConditionalExpression")}return N},Be.parseExprOps=function(s,h){var v=this.start,C=this.startLoc,N=this.parseMaybeUnary(h,!1,!1,s);return this.checkExpressionErrors(h)||N.start===v&&N.type==="ArrowFunctionExpression"?N:this.parseExprOp(N,v,C,-1,s)},Be.parseExprOp=function(s,h,v,C,N){var H=this.type.binop;if(H!=null&&(!N||this.type!==m._in)&&H>C){var X=this.type===m.logicalOR||this.type===m.logicalAND,ve=this.type===m.coalesce;ve&&(H=m.logicalAND.binop);var ke=this.value;this.next();var je=this.start,He=this.startLoc,ut=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,N),je,He,H,N),kt=this.buildBinary(h,v,s,ut,ke,X||ve);return(X&&this.type===m.coalesce||ve&&(this.type===m.logicalOR||this.type===m.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(kt,h,v,C,N)}return s},Be.buildBinary=function(s,h,v,C,N,H){C.type==="PrivateIdentifier"&&this.raise(C.start,"Private identifier can only be left side of binary expression");var X=this.startNodeAt(s,h);return X.left=v,X.operator=N,X.right=C,this.finishNode(X,H?"LogicalExpression":"BinaryExpression")},Be.parseMaybeUnary=function(s,h,v,C){var N=this.start,H=this.startLoc,X;if(this.isContextual("await")&&this.canAwait)X=this.parseAwait(C),h=!0;else if(this.type.prefix){var ve=this.startNode(),ke=this.type===m.incDec;ve.operator=this.value,ve.prefix=!0,this.next(),ve.argument=this.parseMaybeUnary(null,!0,ke,C),this.checkExpressionErrors(s,!0),ke?this.checkLValSimple(ve.argument):this.strict&&ve.operator==="delete"&&$i(ve.argument)?this.raiseRecoverable(ve.start,"Deleting local variable in strict mode"):ve.operator==="delete"&&Jr(ve.argument)?this.raiseRecoverable(ve.start,"Private fields can not be deleted"):h=!0,X=this.finishNode(ve,ke?"UpdateExpression":"UnaryExpression")}else if(!h&&this.type===m.privateId)(C||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),X=this.parsePrivateIdent(),this.type!==m._in&&this.unexpected();else{if(X=this.parseExprSubscripts(s,C),this.checkExpressionErrors(s))return X;for(;this.type.postfix&&!this.canInsertSemicolon();){var je=this.startNodeAt(N,H);je.operator=this.value,je.prefix=!1,je.argument=X,this.checkLValSimple(X),this.next(),X=this.finishNode(je,"UpdateExpression")}}if(!v&&this.eat(m.starstar))if(h)this.unexpected(this.lastTokStart);else return this.buildBinary(N,H,X,this.parseMaybeUnary(null,!1,!1,C),"**",!1);else return X};function $i(s){return s.type==="Identifier"||s.type==="ParenthesizedExpression"&&$i(s.expression)}function Jr(s){return s.type==="MemberExpression"&&s.property.type==="PrivateIdentifier"||s.type==="ChainExpression"&&Jr(s.expression)||s.type==="ParenthesizedExpression"&&Jr(s.expression)}Be.parseExprSubscripts=function(s,h){var v=this.start,C=this.startLoc,N=this.parseExprAtom(s,h);if(N.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return N;var H=this.parseSubscripts(N,v,C,!1,h);return s&&H.type==="MemberExpression"&&(s.parenthesizedAssign>=H.start&&(s.parenthesizedAssign=-1),s.parenthesizedBind>=H.start&&(s.parenthesizedBind=-1),s.trailingComma>=H.start&&(s.trailingComma=-1)),H},Be.parseSubscripts=function(s,h,v,C,N){for(var H=this.options.ecmaVersion>=8&&s.type==="Identifier"&&s.name==="async"&&this.lastTokEnd===s.end&&!this.canInsertSemicolon()&&s.end-s.start===5&&this.potentialArrowAt===s.start,X=!1;;){var ve=this.parseSubscript(s,h,v,C,H,X,N);if(ve.optional&&(X=!0),ve===s||ve.type==="ArrowFunctionExpression"){if(X){var ke=this.startNodeAt(h,v);ke.expression=ve,ve=this.finishNode(ke,"ChainExpression")}return ve}s=ve}},Be.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(m.arrow)},Be.parseSubscriptAsyncArrow=function(s,h,v,C){return this.parseArrowExpression(this.startNodeAt(s,h),v,!0,C)},Be.parseSubscript=function(s,h,v,C,N,H,X){var ve=this.options.ecmaVersion>=11,ke=ve&&this.eat(m.questionDot);C&&ke&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var je=this.eat(m.bracketL);if(je||ke&&this.type!==m.parenL&&this.type!==m.backQuote||this.eat(m.dot)){var He=this.startNodeAt(h,v);He.object=s,je?(He.property=this.parseExpression(),this.expect(m.bracketR)):this.type===m.privateId&&s.type!=="Super"?He.property=this.parsePrivateIdent():He.property=this.parseIdent(this.options.allowReserved!=="never"),He.computed=!!je,ve&&(He.optional=ke),s=this.finishNode(He,"MemberExpression")}else if(!C&&this.eat(m.parenL)){var ut=new yt,kt=this.yieldPos,D=this.awaitPos,B=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var te=this.parseExprList(m.parenR,this.options.ecmaVersion>=8,!1,ut);if(N&&!ke&&this.shouldParseAsyncArrow())return this.checkPatternErrors(ut,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=kt,this.awaitPos=D,this.awaitIdentPos=B,this.parseSubscriptAsyncArrow(h,v,te,X);this.checkExpressionErrors(ut,!0),this.yieldPos=kt||this.yieldPos,this.awaitPos=D||this.awaitPos,this.awaitIdentPos=B||this.awaitIdentPos;var Pe=this.startNodeAt(h,v);Pe.callee=s,Pe.arguments=te,ve&&(Pe.optional=ke),s=this.finishNode(Pe,"CallExpression")}else if(this.type===m.backQuote){(ke||H)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var qe=this.startNodeAt(h,v);qe.tag=s,qe.quasi=this.parseTemplate({isTagged:!0}),s=this.finishNode(qe,"TaggedTemplateExpression")}return s},Be.parseExprAtom=function(s,h,v){this.type===m.slash&&this.readRegexp();var C,N=this.potentialArrowAt===this.start;switch(this.type){case m._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),C=this.startNode(),this.next(),this.type===m.parenL&&!this.allowDirectSuper&&this.raise(C.start,"super() call outside constructor of a subclass"),this.type!==m.dot&&this.type!==m.bracketL&&this.type!==m.parenL&&this.unexpected(),this.finishNode(C,"Super");case m._this:return C=this.startNode(),this.next(),this.finishNode(C,"ThisExpression");case m.name:var H=this.start,X=this.startLoc,ve=this.containsEsc,ke=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!ve&&ke.name==="async"&&!this.canInsertSemicolon()&&this.eat(m._function))return this.overrideContext(Ze.f_expr),this.parseFunction(this.startNodeAt(H,X),0,!1,!0,h);if(N&&!this.canInsertSemicolon()){if(this.eat(m.arrow))return this.parseArrowExpression(this.startNodeAt(H,X),[ke],!1,h);if(this.options.ecmaVersion>=8&&ke.name==="async"&&this.type===m.name&&!ve&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return ke=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(m.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(H,X),[ke],!0,h)}return ke;case m.regexp:var je=this.value;return C=this.parseLiteral(je.value),C.regex={pattern:je.pattern,flags:je.flags},C;case m.num:case m.string:return this.parseLiteral(this.value);case m._null:case m._true:case m._false:return C=this.startNode(),C.value=this.type===m._null?null:this.type===m._true,C.raw=this.type.keyword,this.next(),this.finishNode(C,"Literal");case m.parenL:var He=this.start,ut=this.parseParenAndDistinguishExpression(N,h);return s&&(s.parenthesizedAssign<0&&!this.isSimpleAssignTarget(ut)&&(s.parenthesizedAssign=He),s.parenthesizedBind<0&&(s.parenthesizedBind=He)),ut;case m.bracketL:return C=this.startNode(),this.next(),C.elements=this.parseExprList(m.bracketR,!0,!0,s),this.finishNode(C,"ArrayExpression");case m.braceL:return this.overrideContext(Ze.b_expr),this.parseObj(!1,s);case m._function:return C=this.startNode(),this.next(),this.parseFunction(C,0);case m._class:return this.parseClass(this.startNode(),!1);case m._new:return this.parseNew();case m.backQuote:return this.parseTemplate();case m._import:return this.options.ecmaVersion>=11?this.parseExprImport(v):this.unexpected();default:return this.parseExprAtomDefault()}},Be.parseExprAtomDefault=function(){this.unexpected()},Be.parseExprImport=function(s){var h=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===m.parenL&&!s)return this.parseDynamicImport(h);if(this.type===m.dot){var v=this.startNodeAt(h.start,h.loc&&h.loc.start);return v.name="import",h.meta=this.finishNode(v,"Identifier"),this.parseImportMeta(h)}else this.unexpected()},Be.parseDynamicImport=function(s){if(this.next(),s.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(m.parenR)?s.options=null:(this.expect(m.comma),this.afterTrailingComma(m.parenR)?s.options=null:(s.options=this.parseMaybeAssign(),this.eat(m.parenR)||(this.expect(m.comma),this.afterTrailingComma(m.parenR)||this.unexpected())));else if(!this.eat(m.parenR)){var h=this.start;this.eat(m.comma)&&this.eat(m.parenR)?this.raiseRecoverable(h,"Trailing comma is not allowed in import()"):this.unexpected(h)}return this.finishNode(s,"ImportExpression")},Be.parseImportMeta=function(s){this.next();var h=this.containsEsc;return s.property=this.parseIdent(!0),s.property.name!=="meta"&&this.raiseRecoverable(s.property.start,"The only valid meta property for import is 'import.meta'"),h&&this.raiseRecoverable(s.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(s.start,"Cannot use 'import.meta' outside a module"),this.finishNode(s,"MetaProperty")},Be.parseLiteral=function(s){var h=this.startNode();return h.value=s,h.raw=this.input.slice(this.start,this.end),h.raw.charCodeAt(h.raw.length-1)===110&&(h.bigint=h.value!=null?h.value.toString():h.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(h,"Literal")},Be.parseParenExpression=function(){this.expect(m.parenL);var s=this.parseExpression();return this.expect(m.parenR),s},Be.shouldParseArrow=function(s){return!this.canInsertSemicolon()},Be.parseParenAndDistinguishExpression=function(s,h){var v=this.start,C=this.startLoc,N,H=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var X=this.start,ve=this.startLoc,ke=[],je=!0,He=!1,ut=new yt,kt=this.yieldPos,D=this.awaitPos,B;for(this.yieldPos=0,this.awaitPos=0;this.type!==m.parenR;)if(je?je=!1:this.expect(m.comma),H&&this.afterTrailingComma(m.parenR,!0)){He=!0;break}else if(this.type===m.ellipsis){B=this.start,ke.push(this.parseParenItem(this.parseRestBinding())),this.type===m.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else ke.push(this.parseMaybeAssign(!1,ut,this.parseParenItem));var te=this.lastTokEnd,Pe=this.lastTokEndLoc;if(this.expect(m.parenR),s&&this.shouldParseArrow(ke)&&this.eat(m.arrow))return this.checkPatternErrors(ut,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=kt,this.awaitPos=D,this.parseParenArrowList(v,C,ke,h);(!ke.length||He)&&this.unexpected(this.lastTokStart),B&&this.unexpected(B),this.checkExpressionErrors(ut,!0),this.yieldPos=kt||this.yieldPos,this.awaitPos=D||this.awaitPos,ke.length>1?(N=this.startNodeAt(X,ve),N.expressions=ke,this.finishNodeAt(N,"SequenceExpression",te,Pe)):N=ke[0]}else N=this.parseParenExpression();if(this.options.preserveParens){var qe=this.startNodeAt(v,C);return qe.expression=N,this.finishNode(qe,"ParenthesizedExpression")}else return N},Be.parseParenItem=function(s){return s},Be.parseParenArrowList=function(s,h,v,C){return this.parseArrowExpression(this.startNodeAt(s,h),v,!1,C)};var Hs=[];Be.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var s=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===m.dot){var h=this.startNodeAt(s.start,s.loc&&s.loc.start);h.name="new",s.meta=this.finishNode(h,"Identifier"),this.next();var v=this.containsEsc;return s.property=this.parseIdent(!0),s.property.name!=="target"&&this.raiseRecoverable(s.property.start,"The only valid meta property for new is 'new.target'"),v&&this.raiseRecoverable(s.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(s.start,"'new.target' can only be used in functions and class static block"),this.finishNode(s,"MetaProperty")}var C=this.start,N=this.startLoc;return s.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),C,N,!0,!1),this.eat(m.parenL)?s.arguments=this.parseExprList(m.parenR,this.options.ecmaVersion>=8,!1):s.arguments=Hs,this.finishNode(s,"NewExpression")},Be.parseTemplateElement=function(s){var h=s.isTagged,v=this.startNode();return this.type===m.invalidTemplate?(h||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),v.value={raw:this.value.replace(/\r\n?/g,`
|
|
23
|
-
`),cooked:null}):v.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
24
|
-
`),cooked:this.value},this.next(),v.tail=this.type===m.backQuote,this.finishNode(v,"TemplateElement")},Be.parseTemplate=function(s){s===void 0&&(s={});var h=s.isTagged;h===void 0&&(h=!1);var v=this.startNode();this.next(),v.expressions=[];var C=this.parseTemplateElement({isTagged:h});for(v.quasis=[C];!C.tail;)this.type===m.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(m.dollarBraceL),v.expressions.push(this.parseExpression()),this.expect(m.braceR),v.quasis.push(C=this.parseTemplateElement({isTagged:h}));return this.next(),this.finishNode(v,"TemplateLiteral")},Be.isAsyncProp=function(s){return!s.computed&&s.key.type==="Identifier"&&s.key.name==="async"&&(this.type===m.name||this.type===m.num||this.type===m.string||this.type===m.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===m.star)&&!_.test(this.input.slice(this.lastTokEnd,this.start))},Be.parseObj=function(s,h){var v=this.startNode(),C=!0,N={};for(v.properties=[],this.next();!this.eat(m.braceR);){if(C)C=!1;else if(this.expect(m.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(m.braceR))break;var H=this.parseProperty(s,h);s||this.checkPropClash(H,N,h),v.properties.push(H)}return this.finishNode(v,s?"ObjectPattern":"ObjectExpression")},Be.parseProperty=function(s,h){var v=this.startNode(),C,N,H,X;if(this.options.ecmaVersion>=9&&this.eat(m.ellipsis))return s?(v.argument=this.parseIdent(!1),this.type===m.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(v,"RestElement")):(v.argument=this.parseMaybeAssign(!1,h),this.type===m.comma&&h&&h.trailingComma<0&&(h.trailingComma=this.start),this.finishNode(v,"SpreadElement"));this.options.ecmaVersion>=6&&(v.method=!1,v.shorthand=!1,(s||h)&&(H=this.start,X=this.startLoc),s||(C=this.eat(m.star)));var ve=this.containsEsc;return this.parsePropertyName(v),!s&&!ve&&this.options.ecmaVersion>=8&&!C&&this.isAsyncProp(v)?(N=!0,C=this.options.ecmaVersion>=9&&this.eat(m.star),this.parsePropertyName(v)):N=!1,this.parsePropertyValue(v,s,C,N,H,X,h,ve),this.finishNode(v,"Property")},Be.parseGetterSetter=function(s){var h=s.key.name;this.parsePropertyName(s),s.value=this.parseMethod(!1),s.kind=h;var v=s.kind==="get"?0:1;if(s.value.params.length!==v){var C=s.value.start;s.kind==="get"?this.raiseRecoverable(C,"getter should have no params"):this.raiseRecoverable(C,"setter should have exactly one param")}else s.kind==="set"&&s.value.params[0].type==="RestElement"&&this.raiseRecoverable(s.value.params[0].start,"Setter cannot use rest params")},Be.parsePropertyValue=function(s,h,v,C,N,H,X,ve){(v||C)&&this.type===m.colon&&this.unexpected(),this.eat(m.colon)?(s.value=h?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,X),s.kind="init"):this.options.ecmaVersion>=6&&this.type===m.parenL?(h&&this.unexpected(),s.method=!0,s.value=this.parseMethod(v,C),s.kind="init"):!h&&!ve&&this.options.ecmaVersion>=5&&!s.computed&&s.key.type==="Identifier"&&(s.key.name==="get"||s.key.name==="set")&&this.type!==m.comma&&this.type!==m.braceR&&this.type!==m.eq?((v||C)&&this.unexpected(),this.parseGetterSetter(s)):this.options.ecmaVersion>=6&&!s.computed&&s.key.type==="Identifier"?((v||C)&&this.unexpected(),this.checkUnreserved(s.key),s.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=N),h?s.value=this.parseMaybeDefault(N,H,this.copyNode(s.key)):this.type===m.eq&&X?(X.shorthandAssign<0&&(X.shorthandAssign=this.start),s.value=this.parseMaybeDefault(N,H,this.copyNode(s.key))):s.value=this.copyNode(s.key),s.kind="init",s.shorthand=!0):this.unexpected()},Be.parsePropertyName=function(s){if(this.options.ecmaVersion>=6){if(this.eat(m.bracketL))return s.computed=!0,s.key=this.parseMaybeAssign(),this.expect(m.bracketR),s.key;s.computed=!1}return s.key=this.type===m.num||this.type===m.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},Be.initFunction=function(s){s.id=null,this.options.ecmaVersion>=6&&(s.generator=s.expression=!1),this.options.ecmaVersion>=8&&(s.async=!1)},Be.parseMethod=function(s,h,v){var C=this.startNode(),N=this.yieldPos,H=this.awaitPos,X=this.awaitIdentPos;return this.initFunction(C),this.options.ecmaVersion>=6&&(C.generator=s),this.options.ecmaVersion>=8&&(C.async=!!h),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Te(h,C.generator)|q|(v?ee:0)),this.expect(m.parenL),C.params=this.parseBindingList(m.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(C,!1,!0,!1),this.yieldPos=N,this.awaitPos=H,this.awaitIdentPos=X,this.finishNode(C,"FunctionExpression")},Be.parseArrowExpression=function(s,h,v,C){var N=this.yieldPos,H=this.awaitPos,X=this.awaitIdentPos;return this.enterScope(Te(v,!1)|K),this.initFunction(s),this.options.ecmaVersion>=8&&(s.async=!!v),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,s.params=this.toAssignableList(h,!0),this.parseFunctionBody(s,!0,!1,C),this.yieldPos=N,this.awaitPos=H,this.awaitIdentPos=X,this.finishNode(s,"ArrowFunctionExpression")},Be.parseFunctionBody=function(s,h,v,C){var N=h&&this.type!==m.braceL,H=this.strict,X=!1;if(N)s.body=this.parseMaybeAssign(C),s.expression=!0,this.checkParams(s,!1);else{var ve=this.options.ecmaVersion>=7&&!this.isSimpleParamList(s.params);(!H||ve)&&(X=this.strictDirective(this.end),X&&ve&&this.raiseRecoverable(s.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var ke=this.labels;this.labels=[],X&&(this.strict=!0),this.checkParams(s,!H&&!X&&!h&&!v&&this.isSimpleParamList(s.params)),this.strict&&s.id&&this.checkLValSimple(s.id,ae),s.body=this.parseBlock(!1,void 0,X&&!H),s.expression=!1,this.adaptDirectivePrologue(s.body.body),this.labels=ke}this.exitScope()},Be.isSimpleParamList=function(s){for(var h=0,v=s;h<v.length;h+=1){var C=v[h];if(C.type!=="Identifier")return!1}return!0},Be.checkParams=function(s,h){for(var v=Object.create(null),C=0,N=s.params;C<N.length;C+=1){var H=N[C];this.checkLValInnerPattern(H,ye,h?null:v)}},Be.parseExprList=function(s,h,v,C){for(var N=[],H=!0;!this.eat(s);){if(H)H=!1;else if(this.expect(m.comma),h&&this.afterTrailingComma(s))break;var X=void 0;v&&this.type===m.comma?X=null:this.type===m.ellipsis?(X=this.parseSpread(C),C&&this.type===m.comma&&C.trailingComma<0&&(C.trailingComma=this.start)):X=this.parseMaybeAssign(!1,C),N.push(X)}return N},Be.checkUnreserved=function(s){var h=s.start,v=s.end,C=s.name;if(this.inGenerator&&C==="yield"&&this.raiseRecoverable(h,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&C==="await"&&this.raiseRecoverable(h,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Ee)&&C==="arguments"&&this.raiseRecoverable(h,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(C==="arguments"||C==="await")&&this.raise(h,"Cannot use "+C+" in class static initialization block"),this.keywords.test(C)&&this.raise(h,"Unexpected keyword '"+C+"'"),!(this.options.ecmaVersion<6&&this.input.slice(h,v).indexOf("\\")!==-1)){var N=this.strict?this.reservedWordsStrict:this.reservedWords;N.test(C)&&(!this.inAsync&&C==="await"&&this.raiseRecoverable(h,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(h,"The keyword '"+C+"' is reserved"))}},Be.parseIdent=function(s){var h=this.parseIdentNode();return this.next(!!s),this.finishNode(h,"Identifier"),s||(this.checkUnreserved(h),h.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=h.start)),h},Be.parseIdentNode=function(){var s=this.startNode();return this.type===m.name?s.name=this.value:this.type.keyword?(s.name=this.type.keyword,(s.name==="class"||s.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=m.name):this.unexpected(),s},Be.parsePrivateIdent=function(){var s=this.startNode();return this.type===m.privateId?s.name=this.value:this.unexpected(),this.next(),this.finishNode(s,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(s.start,"Private field '#"+s.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(s)),s},Be.parseYield=function(s){this.yieldPos||(this.yieldPos=this.start);var h=this.startNode();return this.next(),this.type===m.semi||this.canInsertSemicolon()||this.type!==m.star&&!this.type.startsExpr?(h.delegate=!1,h.argument=null):(h.delegate=this.eat(m.star),h.argument=this.parseMaybeAssign(s)),this.finishNode(h,"YieldExpression")},Be.parseAwait=function(s){this.awaitPos||(this.awaitPos=this.start);var h=this.startNode();return this.next(),h.argument=this.parseMaybeUnary(null,!0,!1,s),this.finishNode(h,"AwaitExpression")};var Bt=le.prototype;Bt.raise=function(s,h){var v=me(this.input,s);h+=" ("+v.line+":"+v.column+")",this.sourceFile&&(h+=" in "+this.sourceFile);var C=new SyntaxError(h);throw C.pos=s,C.loc=v,C.raisedAt=this.pos,C},Bt.raiseRecoverable=Bt.raise,Bt.curPosition=function(){if(this.options.locations)return new ue(this.curLine,this.pos-this.lineStart)};var bn=le.prototype,Us=function(h){this.flags=h,this.var=[],this.lexical=[],this.functions=[]};bn.enterScope=function(s){this.scopeStack.push(new Us(s))},bn.exitScope=function(){this.scopeStack.pop()},bn.treatFunctionsAsVarInScope=function(s){return s.flags&ie||!this.inModule&&s.flags&Q},bn.declareName=function(s,h,v){var C=!1;if(h===Re){var N=this.currentScope();C=N.lexical.indexOf(s)>-1||N.functions.indexOf(s)>-1||N.var.indexOf(s)>-1,N.lexical.push(s),this.inModule&&N.flags&Q&&delete this.undefinedExports[s]}else if(h===Ge){var H=this.currentScope();H.lexical.push(s)}else if(h===De){var X=this.currentScope();this.treatFunctionsAsVar?C=X.lexical.indexOf(s)>-1:C=X.lexical.indexOf(s)>-1||X.var.indexOf(s)>-1,X.functions.push(s)}else for(var ve=this.scopeStack.length-1;ve>=0;--ve){var ke=this.scopeStack[ve];if(ke.lexical.indexOf(s)>-1&&!(ke.flags&Y&&ke.lexical[0]===s)||!this.treatFunctionsAsVarInScope(ke)&&ke.functions.indexOf(s)>-1){C=!0;break}if(ke.var.push(s),this.inModule&&ke.flags&Q&&delete this.undefinedExports[s],ke.flags&Ee)break}C&&this.raiseRecoverable(v,"Identifier '"+s+"' has already been declared")},bn.checkLocalExport=function(s){this.scopeStack[0].lexical.indexOf(s.name)===-1&&this.scopeStack[0].var.indexOf(s.name)===-1&&(this.undefinedExports[s.name]=s)},bn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},bn.currentVarScope=function(){for(var s=this.scopeStack.length-1;;s--){var h=this.scopeStack[s];if(h.flags&(Ee|Ce|he))return h}},bn.currentThisScope=function(){for(var s=this.scopeStack.length-1;;s--){var h=this.scopeStack[s];if(h.flags&(Ee|Ce|he)&&!(h.flags&K))return h}};var sr=function(h,v,C){this.type="",this.start=v,this.end=0,h.options.locations&&(this.loc=new T(h,C)),h.options.directSourceFile&&(this.sourceFile=h.options.directSourceFile),h.options.ranges&&(this.range=[v,0])},or=le.prototype;or.startNode=function(){return new sr(this,this.start,this.startLoc)},or.startNodeAt=function(s,h){return new sr(this,s,h)};function Hi(s,h,v,C){return s.type=h,s.end=v,this.options.locations&&(s.loc.end=C),this.options.ranges&&(s.range[1]=v),s}or.finishNode=function(s,h){return Hi.call(this,s,h,this.lastTokEnd,this.lastTokEndLoc)},or.finishNodeAt=function(s,h,v,C){return Hi.call(this,s,h,v,C)},or.copyNode=function(s){var h=new sr(this,s.start,this.startLoc);for(var v in s)h[v]=s[v];return h};var zn="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",Ui="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",qi=Ui+" Extended_Pictographic",Wi=qi,Ki=Wi+" EBase EComp EMod EPres ExtPict",Ji=Ki,$n=Ji,qs={9:Ui,10:qi,11:Wi,12:Ki,13:Ji,14:$n},Ws="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Ks={9:"",10:"",11:"",12:"",13:"",14:Ws},Gi="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Yi="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Xi=Yi+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Cr=Xi+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Qi=Cr+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ur=Qi+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Gr=ur+" "+zn,Js={9:Yi,10:Xi,11:Cr,12:Qi,13:ur,14:Gr},lr={};function Zi(s){var h=lr[s]={binary:xe(qs[s]+" "+Gi),binaryOfStrings:xe(Ks[s]),nonBinary:{General_Category:xe(Gi),Script:xe(Js[s])}};h.nonBinary.Script_Extensions=h.nonBinary.Script,h.nonBinary.gc=h.nonBinary.General_Category,h.nonBinary.sc=h.nonBinary.Script,h.nonBinary.scx=h.nonBinary.Script_Extensions}for(var Yr=0,ea=[9,10,11,12,13,14];Yr<ea.length;Yr+=1){var Gs=ea[Yr];Zi(Gs)}var Ne=le.prototype,kr=function(h,v){this.parent=h,this.base=v||this};kr.prototype.separatedFrom=function(h){for(var v=this;v;v=v.parent)for(var C=h;C;C=C.parent)if(v.base===C.base&&v!==C)return!0;return!1},kr.prototype.sibling=function(){return new kr(this.parent,this.base)};var an=function(h){this.parser=h,this.validFlags="gim"+(h.options.ecmaVersion>=6?"uy":"")+(h.options.ecmaVersion>=9?"s":"")+(h.options.ecmaVersion>=13?"d":"")+(h.options.ecmaVersion>=15?"v":""),this.unicodeProperties=lr[h.options.ecmaVersion>=14?14:h.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};an.prototype.reset=function(h,v,C){var N=C.indexOf("v")!==-1,H=C.indexOf("u")!==-1;this.start=h|0,this.source=v+"",this.flags=C,N&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=H&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=H&&this.parser.options.ecmaVersion>=9)},an.prototype.raise=function(h){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+h)},an.prototype.at=function(h,v){v===void 0&&(v=!1);var C=this.source,N=C.length;if(h>=N)return-1;var H=C.charCodeAt(h);if(!(v||this.switchU)||H<=55295||H>=57344||h+1>=N)return H;var X=C.charCodeAt(h+1);return X>=56320&&X<=57343?(H<<10)+X-56613888:H},an.prototype.nextIndex=function(h,v){v===void 0&&(v=!1);var C=this.source,N=C.length;if(h>=N)return N;var H=C.charCodeAt(h),X;return!(v||this.switchU)||H<=55295||H>=57344||h+1>=N||(X=C.charCodeAt(h+1))<56320||X>57343?h+1:h+2},an.prototype.current=function(h){return h===void 0&&(h=!1),this.at(this.pos,h)},an.prototype.lookahead=function(h){return h===void 0&&(h=!1),this.at(this.nextIndex(this.pos,h),h)},an.prototype.advance=function(h){h===void 0&&(h=!1),this.pos=this.nextIndex(this.pos,h)},an.prototype.eat=function(h,v){return v===void 0&&(v=!1),this.current(v)===h?(this.advance(v),!0):!1},an.prototype.eatChars=function(h,v){v===void 0&&(v=!1);for(var C=this.pos,N=0,H=h;N<H.length;N+=1){var X=H[N],ve=this.at(C,v);if(ve===-1||ve!==X)return!1;C=this.nextIndex(C,v)}return this.pos=C,!0},Ne.validateRegExpFlags=function(s){for(var h=s.validFlags,v=s.flags,C=!1,N=!1,H=0;H<v.length;H++){var X=v.charAt(H);h.indexOf(X)===-1&&this.raise(s.start,"Invalid regular expression flag"),v.indexOf(X,H+1)>-1&&this.raise(s.start,"Duplicate regular expression flag"),X==="u"&&(C=!0),X==="v"&&(N=!0)}this.options.ecmaVersion>=15&&C&&N&&this.raise(s.start,"Invalid regular expression flag")};function Ys(s){for(var h in s)return!0;return!1}Ne.validateRegExpPattern=function(s){this.regexp_pattern(s),!s.switchN&&this.options.ecmaVersion>=9&&Ys(s.groupNames)&&(s.switchN=!0,this.regexp_pattern(s))},Ne.regexp_pattern=function(s){s.pos=0,s.lastIntValue=0,s.lastStringValue="",s.lastAssertionIsQuantifiable=!1,s.numCapturingParens=0,s.maxBackReference=0,s.groupNames=Object.create(null),s.backReferenceNames.length=0,s.branchID=null,this.regexp_disjunction(s),s.pos!==s.source.length&&(s.eat(41)&&s.raise("Unmatched ')'"),(s.eat(93)||s.eat(125))&&s.raise("Lone quantifier brackets")),s.maxBackReference>s.numCapturingParens&&s.raise("Invalid escape");for(var h=0,v=s.backReferenceNames;h<v.length;h+=1){var C=v[h];s.groupNames[C]||s.raise("Invalid named capture referenced")}},Ne.regexp_disjunction=function(s){var h=this.options.ecmaVersion>=16;for(h&&(s.branchID=new kr(s.branchID,null)),this.regexp_alternative(s);s.eat(124);)h&&(s.branchID=s.branchID.sibling()),this.regexp_alternative(s);h&&(s.branchID=s.branchID.parent),this.regexp_eatQuantifier(s,!0)&&s.raise("Nothing to repeat"),s.eat(123)&&s.raise("Lone quantifier brackets")},Ne.regexp_alternative=function(s){for(;s.pos<s.source.length&&this.regexp_eatTerm(s););},Ne.regexp_eatTerm=function(s){return this.regexp_eatAssertion(s)?(s.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(s)&&s.switchU&&s.raise("Invalid quantifier"),!0):(s.switchU?this.regexp_eatAtom(s):this.regexp_eatExtendedAtom(s))?(this.regexp_eatQuantifier(s),!0):!1},Ne.regexp_eatAssertion=function(s){var h=s.pos;if(s.lastAssertionIsQuantifiable=!1,s.eat(94)||s.eat(36))return!0;if(s.eat(92)){if(s.eat(66)||s.eat(98))return!0;s.pos=h}if(s.eat(40)&&s.eat(63)){var v=!1;if(this.options.ecmaVersion>=9&&(v=s.eat(60)),s.eat(61)||s.eat(33))return this.regexp_disjunction(s),s.eat(41)||s.raise("Unterminated group"),s.lastAssertionIsQuantifiable=!v,!0}return s.pos=h,!1},Ne.regexp_eatQuantifier=function(s,h){return h===void 0&&(h=!1),this.regexp_eatQuantifierPrefix(s,h)?(s.eat(63),!0):!1},Ne.regexp_eatQuantifierPrefix=function(s,h){return s.eat(42)||s.eat(43)||s.eat(63)||this.regexp_eatBracedQuantifier(s,h)},Ne.regexp_eatBracedQuantifier=function(s,h){var v=s.pos;if(s.eat(123)){var C=0,N=-1;if(this.regexp_eatDecimalDigits(s)&&(C=s.lastIntValue,s.eat(44)&&this.regexp_eatDecimalDigits(s)&&(N=s.lastIntValue),s.eat(125)))return N!==-1&&N<C&&!h&&s.raise("numbers out of order in {} quantifier"),!0;s.switchU&&!h&&s.raise("Incomplete quantifier"),s.pos=v}return!1},Ne.regexp_eatAtom=function(s){return this.regexp_eatPatternCharacters(s)||s.eat(46)||this.regexp_eatReverseSolidusAtomEscape(s)||this.regexp_eatCharacterClass(s)||this.regexp_eatUncapturingGroup(s)||this.regexp_eatCapturingGroup(s)},Ne.regexp_eatReverseSolidusAtomEscape=function(s){var h=s.pos;if(s.eat(92)){if(this.regexp_eatAtomEscape(s))return!0;s.pos=h}return!1},Ne.regexp_eatUncapturingGroup=function(s){var h=s.pos;if(s.eat(40)){if(s.eat(63)){if(this.options.ecmaVersion>=16){var v=this.regexp_eatModifiers(s),C=s.eat(45);if(v||C){for(var N=0;N<v.length;N++){var H=v.charAt(N);v.indexOf(H,N+1)>-1&&s.raise("Duplicate regular expression modifiers")}if(C){var X=this.regexp_eatModifiers(s);!v&&!X&&s.current()===58&&s.raise("Invalid regular expression modifiers");for(var ve=0;ve<X.length;ve++){var ke=X.charAt(ve);(X.indexOf(ke,ve+1)>-1||v.indexOf(ke)>-1)&&s.raise("Duplicate regular expression modifiers")}}}}if(s.eat(58)){if(this.regexp_disjunction(s),s.eat(41))return!0;s.raise("Unterminated group")}}s.pos=h}return!1},Ne.regexp_eatCapturingGroup=function(s){if(s.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(s):s.current()===63&&s.raise("Invalid group"),this.regexp_disjunction(s),s.eat(41))return s.numCapturingParens+=1,!0;s.raise("Unterminated group")}return!1},Ne.regexp_eatModifiers=function(s){for(var h="",v=0;(v=s.current())!==-1&&Xs(v);)h+=L(v),s.advance();return h};function Xs(s){return s===105||s===109||s===115}Ne.regexp_eatExtendedAtom=function(s){return s.eat(46)||this.regexp_eatReverseSolidusAtomEscape(s)||this.regexp_eatCharacterClass(s)||this.regexp_eatUncapturingGroup(s)||this.regexp_eatCapturingGroup(s)||this.regexp_eatInvalidBracedQuantifier(s)||this.regexp_eatExtendedPatternCharacter(s)},Ne.regexp_eatInvalidBracedQuantifier=function(s){return this.regexp_eatBracedQuantifier(s,!0)&&s.raise("Nothing to repeat"),!1},Ne.regexp_eatSyntaxCharacter=function(s){var h=s.current();return ta(h)?(s.lastIntValue=h,s.advance(),!0):!1};function ta(s){return s===36||s>=40&&s<=43||s===46||s===63||s>=91&&s<=94||s>=123&&s<=125}Ne.regexp_eatPatternCharacters=function(s){for(var h=s.pos,v=0;(v=s.current())!==-1&&!ta(v);)s.advance();return s.pos!==h},Ne.regexp_eatExtendedPatternCharacter=function(s){var h=s.current();return h!==-1&&h!==36&&!(h>=40&&h<=43)&&h!==46&&h!==63&&h!==91&&h!==94&&h!==124?(s.advance(),!0):!1},Ne.regexp_groupSpecifier=function(s){if(s.eat(63)){this.regexp_eatGroupName(s)||s.raise("Invalid group");var h=this.options.ecmaVersion>=16,v=s.groupNames[s.lastStringValue];if(v)if(h)for(var C=0,N=v;C<N.length;C+=1){var H=N[C];H.separatedFrom(s.branchID)||s.raise("Duplicate capture group name")}else s.raise("Duplicate capture group name");h?(v||(s.groupNames[s.lastStringValue]=[])).push(s.branchID):s.groupNames[s.lastStringValue]=!0}},Ne.regexp_eatGroupName=function(s){if(s.lastStringValue="",s.eat(60)){if(this.regexp_eatRegExpIdentifierName(s)&&s.eat(62))return!0;s.raise("Invalid capture group name")}return!1},Ne.regexp_eatRegExpIdentifierName=function(s){if(s.lastStringValue="",this.regexp_eatRegExpIdentifierStart(s)){for(s.lastStringValue+=L(s.lastIntValue);this.regexp_eatRegExpIdentifierPart(s);)s.lastStringValue+=L(s.lastIntValue);return!0}return!1},Ne.regexp_eatRegExpIdentifierStart=function(s){var h=s.pos,v=this.options.ecmaVersion>=11,C=s.current(v);return s.advance(v),C===92&&this.regexp_eatRegExpUnicodeEscapeSequence(s,v)&&(C=s.lastIntValue),Qs(C)?(s.lastIntValue=C,!0):(s.pos=h,!1)};function Qs(s){return x(s,!0)||s===36||s===95}Ne.regexp_eatRegExpIdentifierPart=function(s){var h=s.pos,v=this.options.ecmaVersion>=11,C=s.current(v);return s.advance(v),C===92&&this.regexp_eatRegExpUnicodeEscapeSequence(s,v)&&(C=s.lastIntValue),Zs(C)?(s.lastIntValue=C,!0):(s.pos=h,!1)};function Zs(s){return w(s,!0)||s===36||s===95||s===8204||s===8205}Ne.regexp_eatAtomEscape=function(s){return this.regexp_eatBackReference(s)||this.regexp_eatCharacterClassEscape(s)||this.regexp_eatCharacterEscape(s)||s.switchN&&this.regexp_eatKGroupName(s)?!0:(s.switchU&&(s.current()===99&&s.raise("Invalid unicode escape"),s.raise("Invalid escape")),!1)},Ne.regexp_eatBackReference=function(s){var h=s.pos;if(this.regexp_eatDecimalEscape(s)){var v=s.lastIntValue;if(s.switchU)return v>s.maxBackReference&&(s.maxBackReference=v),!0;if(v<=s.numCapturingParens)return!0;s.pos=h}return!1},Ne.regexp_eatKGroupName=function(s){if(s.eat(107)){if(this.regexp_eatGroupName(s))return s.backReferenceNames.push(s.lastStringValue),!0;s.raise("Invalid named reference")}return!1},Ne.regexp_eatCharacterEscape=function(s){return this.regexp_eatControlEscape(s)||this.regexp_eatCControlLetter(s)||this.regexp_eatZero(s)||this.regexp_eatHexEscapeSequence(s)||this.regexp_eatRegExpUnicodeEscapeSequence(s,!1)||!s.switchU&&this.regexp_eatLegacyOctalEscapeSequence(s)||this.regexp_eatIdentityEscape(s)},Ne.regexp_eatCControlLetter=function(s){var h=s.pos;if(s.eat(99)){if(this.regexp_eatControlLetter(s))return!0;s.pos=h}return!1},Ne.regexp_eatZero=function(s){return s.current()===48&&!cr(s.lookahead())?(s.lastIntValue=0,s.advance(),!0):!1},Ne.regexp_eatControlEscape=function(s){var h=s.current();return h===116?(s.lastIntValue=9,s.advance(),!0):h===110?(s.lastIntValue=10,s.advance(),!0):h===118?(s.lastIntValue=11,s.advance(),!0):h===102?(s.lastIntValue=12,s.advance(),!0):h===114?(s.lastIntValue=13,s.advance(),!0):!1},Ne.regexp_eatControlLetter=function(s){var h=s.current();return na(h)?(s.lastIntValue=h%32,s.advance(),!0):!1};function na(s){return s>=65&&s<=90||s>=97&&s<=122}Ne.regexp_eatRegExpUnicodeEscapeSequence=function(s,h){h===void 0&&(h=!1);var v=s.pos,C=h||s.switchU;if(s.eat(117)){if(this.regexp_eatFixedHexDigits(s,4)){var N=s.lastIntValue;if(C&&N>=55296&&N<=56319){var H=s.pos;if(s.eat(92)&&s.eat(117)&&this.regexp_eatFixedHexDigits(s,4)){var X=s.lastIntValue;if(X>=56320&&X<=57343)return s.lastIntValue=(N-55296)*1024+(X-56320)+65536,!0}s.pos=H,s.lastIntValue=N}return!0}if(C&&s.eat(123)&&this.regexp_eatHexDigits(s)&&s.eat(125)&&eo(s.lastIntValue))return!0;C&&s.raise("Invalid unicode escape"),s.pos=v}return!1};function eo(s){return s>=0&&s<=1114111}Ne.regexp_eatIdentityEscape=function(s){if(s.switchU)return this.regexp_eatSyntaxCharacter(s)?!0:s.eat(47)?(s.lastIntValue=47,!0):!1;var h=s.current();return h!==99&&(!s.switchN||h!==107)?(s.lastIntValue=h,s.advance(),!0):!1},Ne.regexp_eatDecimalEscape=function(s){s.lastIntValue=0;var h=s.current();if(h>=49&&h<=57){do s.lastIntValue=10*s.lastIntValue+(h-48),s.advance();while((h=s.current())>=48&&h<=57);return!0}return!1};var ra=0,zt=1,At=2;Ne.regexp_eatCharacterClassEscape=function(s){var h=s.current();if(to(h))return s.lastIntValue=-1,s.advance(),zt;var v=!1;if(s.switchU&&this.options.ecmaVersion>=9&&((v=h===80)||h===112)){s.lastIntValue=-1,s.advance();var C;if(s.eat(123)&&(C=this.regexp_eatUnicodePropertyValueExpression(s))&&s.eat(125))return v&&C===At&&s.raise("Invalid property name"),C;s.raise("Invalid property name")}return ra};function to(s){return s===100||s===68||s===115||s===83||s===119||s===87}Ne.regexp_eatUnicodePropertyValueExpression=function(s){var h=s.pos;if(this.regexp_eatUnicodePropertyName(s)&&s.eat(61)){var v=s.lastStringValue;if(this.regexp_eatUnicodePropertyValue(s)){var C=s.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(s,v,C),zt}}if(s.pos=h,this.regexp_eatLoneUnicodePropertyNameOrValue(s)){var N=s.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(s,N)}return ra},Ne.regexp_validateUnicodePropertyNameAndValue=function(s,h,v){ne(s.unicodeProperties.nonBinary,h)||s.raise("Invalid property name"),s.unicodeProperties.nonBinary[h].test(v)||s.raise("Invalid property value")},Ne.regexp_validateUnicodePropertyNameOrValue=function(s,h){if(s.unicodeProperties.binary.test(h))return zt;if(s.switchV&&s.unicodeProperties.binaryOfStrings.test(h))return At;s.raise("Invalid property name")},Ne.regexp_eatUnicodePropertyName=function(s){var h=0;for(s.lastStringValue="";ia(h=s.current());)s.lastStringValue+=L(h),s.advance();return s.lastStringValue!==""};function ia(s){return na(s)||s===95}Ne.regexp_eatUnicodePropertyValue=function(s){var h=0;for(s.lastStringValue="";aa(h=s.current());)s.lastStringValue+=L(h),s.advance();return s.lastStringValue!==""};function aa(s){return ia(s)||cr(s)}Ne.regexp_eatLoneUnicodePropertyNameOrValue=function(s){return this.regexp_eatUnicodePropertyValue(s)},Ne.regexp_eatCharacterClass=function(s){if(s.eat(91)){var h=s.eat(94),v=this.regexp_classContents(s);return s.eat(93)||s.raise("Unterminated character class"),h&&v===At&&s.raise("Negated character class may contain strings"),!0}return!1},Ne.regexp_classContents=function(s){return s.current()===93?zt:s.switchV?this.regexp_classSetExpression(s):(this.regexp_nonEmptyClassRanges(s),zt)},Ne.regexp_nonEmptyClassRanges=function(s){for(;this.regexp_eatClassAtom(s);){var h=s.lastIntValue;if(s.eat(45)&&this.regexp_eatClassAtom(s)){var v=s.lastIntValue;s.switchU&&(h===-1||v===-1)&&s.raise("Invalid character class"),h!==-1&&v!==-1&&h>v&&s.raise("Range out of order in character class")}}},Ne.regexp_eatClassAtom=function(s){var h=s.pos;if(s.eat(92)){if(this.regexp_eatClassEscape(s))return!0;if(s.switchU){var v=s.current();(v===99||ua(v))&&s.raise("Invalid class escape"),s.raise("Invalid escape")}s.pos=h}var C=s.current();return C!==93?(s.lastIntValue=C,s.advance(),!0):!1},Ne.regexp_eatClassEscape=function(s){var h=s.pos;if(s.eat(98))return s.lastIntValue=8,!0;if(s.switchU&&s.eat(45))return s.lastIntValue=45,!0;if(!s.switchU&&s.eat(99)){if(this.regexp_eatClassControlLetter(s))return!0;s.pos=h}return this.regexp_eatCharacterClassEscape(s)||this.regexp_eatCharacterEscape(s)},Ne.regexp_classSetExpression=function(s){var h=zt,v;if(!this.regexp_eatClassSetRange(s))if(v=this.regexp_eatClassSetOperand(s)){v===At&&(h=At);for(var C=s.pos;s.eatChars([38,38]);){if(s.current()!==38&&(v=this.regexp_eatClassSetOperand(s))){v!==At&&(h=zt);continue}s.raise("Invalid character in character class")}if(C!==s.pos)return h;for(;s.eatChars([45,45]);)this.regexp_eatClassSetOperand(s)||s.raise("Invalid character in character class");if(C!==s.pos)return h}else s.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(s)){if(v=this.regexp_eatClassSetOperand(s),!v)return h;v===At&&(h=At)}},Ne.regexp_eatClassSetRange=function(s){var h=s.pos;if(this.regexp_eatClassSetCharacter(s)){var v=s.lastIntValue;if(s.eat(45)&&this.regexp_eatClassSetCharacter(s)){var C=s.lastIntValue;return v!==-1&&C!==-1&&v>C&&s.raise("Range out of order in character class"),!0}s.pos=h}return!1},Ne.regexp_eatClassSetOperand=function(s){return this.regexp_eatClassSetCharacter(s)?zt:this.regexp_eatClassStringDisjunction(s)||this.regexp_eatNestedClass(s)},Ne.regexp_eatNestedClass=function(s){var h=s.pos;if(s.eat(91)){var v=s.eat(94),C=this.regexp_classContents(s);if(s.eat(93))return v&&C===At&&s.raise("Negated character class may contain strings"),C;s.pos=h}if(s.eat(92)){var N=this.regexp_eatCharacterClassEscape(s);if(N)return N;s.pos=h}return null},Ne.regexp_eatClassStringDisjunction=function(s){var h=s.pos;if(s.eatChars([92,113])){if(s.eat(123)){var v=this.regexp_classStringDisjunctionContents(s);if(s.eat(125))return v}else s.raise("Invalid escape");s.pos=h}return null},Ne.regexp_classStringDisjunctionContents=function(s){for(var h=this.regexp_classString(s);s.eat(124);)this.regexp_classString(s)===At&&(h=At);return h},Ne.regexp_classString=function(s){for(var h=0;this.regexp_eatClassSetCharacter(s);)h++;return h===1?zt:At},Ne.regexp_eatClassSetCharacter=function(s){var h=s.pos;if(s.eat(92))return this.regexp_eatCharacterEscape(s)||this.regexp_eatClassSetReservedPunctuator(s)?!0:s.eat(98)?(s.lastIntValue=8,!0):(s.pos=h,!1);var v=s.current();return v<0||v===s.lookahead()&&no(v)||ro(v)?!1:(s.advance(),s.lastIntValue=v,!0)};function no(s){return s===33||s>=35&&s<=38||s>=42&&s<=44||s===46||s>=58&&s<=64||s===94||s===96||s===126}function ro(s){return s===40||s===41||s===45||s===47||s>=91&&s<=93||s>=123&&s<=125}Ne.regexp_eatClassSetReservedPunctuator=function(s){var h=s.current();return io(h)?(s.lastIntValue=h,s.advance(),!0):!1};function io(s){return s===33||s===35||s===37||s===38||s===44||s===45||s>=58&&s<=62||s===64||s===96||s===126}Ne.regexp_eatClassControlLetter=function(s){var h=s.current();return cr(h)||h===95?(s.lastIntValue=h%32,s.advance(),!0):!1},Ne.regexp_eatHexEscapeSequence=function(s){var h=s.pos;if(s.eat(120)){if(this.regexp_eatFixedHexDigits(s,2))return!0;s.switchU&&s.raise("Invalid escape"),s.pos=h}return!1},Ne.regexp_eatDecimalDigits=function(s){var h=s.pos,v=0;for(s.lastIntValue=0;cr(v=s.current());)s.lastIntValue=10*s.lastIntValue+(v-48),s.advance();return s.pos!==h};function cr(s){return s>=48&&s<=57}Ne.regexp_eatHexDigits=function(s){var h=s.pos,v=0;for(s.lastIntValue=0;sa(v=s.current());)s.lastIntValue=16*s.lastIntValue+oa(v),s.advance();return s.pos!==h};function sa(s){return s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102}function oa(s){return s>=65&&s<=70?10+(s-65):s>=97&&s<=102?10+(s-97):s-48}Ne.regexp_eatLegacyOctalEscapeSequence=function(s){if(this.regexp_eatOctalDigit(s)){var h=s.lastIntValue;if(this.regexp_eatOctalDigit(s)){var v=s.lastIntValue;h<=3&&this.regexp_eatOctalDigit(s)?s.lastIntValue=h*64+v*8+s.lastIntValue:s.lastIntValue=h*8+v}else s.lastIntValue=h;return!0}return!1},Ne.regexp_eatOctalDigit=function(s){var h=s.current();return ua(h)?(s.lastIntValue=h-48,s.advance(),!0):(s.lastIntValue=0,!1)};function ua(s){return s>=48&&s<=55}Ne.regexp_eatFixedHexDigits=function(s,h){var v=s.pos;s.lastIntValue=0;for(var C=0;C<h;++C){var N=s.current();if(!sa(N))return s.pos=v,!1;s.lastIntValue=16*s.lastIntValue+oa(N),s.advance()}return!0};var Hn=function(h){this.type=h.type,this.value=h.value,this.start=h.start,this.end=h.end,h.options.locations&&(this.loc=new T(h,h.startLoc,h.endLoc)),h.options.ranges&&(this.range=[h.start,h.end])},We=le.prototype;We.next=function(s){!s&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Hn(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},We.getToken=function(){return this.next(),new Hn(this)},typeof Symbol<"u"&&(We[Symbol.iterator]=function(){var s=this;return{next:function(){var h=s.getToken();return{done:h.type===m.eof,value:h}}}}),We.nextToken=function(){var s=this.curContext();if((!s||!s.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(m.eof);if(s.override)return s.override(this);this.readToken(this.fullCharCodeAtPos())},We.readToken=function(s){return x(s,this.options.ecmaVersion>=6)||s===92?this.readWord():this.getTokenFromCode(s)},We.fullCharCodeAtPos=function(){var s=this.input.charCodeAt(this.pos);if(s<=55295||s>=56320)return s;var h=this.input.charCodeAt(this.pos+1);return h<=56319||h>=57344?s:(s<<10)+h-56613888},We.skipBlockComment=function(){var s=this.options.onComment&&this.curPosition(),h=this.pos,v=this.input.indexOf("*/",this.pos+=2);if(v===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=v+2,this.options.locations)for(var C=void 0,N=h;(C=P(this.input,N,this.pos))>-1;)++this.curLine,N=this.lineStart=C;this.options.onComment&&this.options.onComment(!0,this.input.slice(h+2,v),h,this.pos,s,this.curPosition())},We.skipLineComment=function(s){for(var h=this.pos,v=this.options.onComment&&this.curPosition(),C=this.input.charCodeAt(this.pos+=s);this.pos<this.input.length&&!M(C);)C=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(h+s,this.pos),h,this.pos,v,this.curPosition())},We.skipSpace=function(){e:for(;this.pos<this.input.length;){var s=this.input.charCodeAt(this.pos);switch(s){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(s>8&&s<14||s>=5760&&j.test(String.fromCharCode(s)))++this.pos;else break e}}},We.finishToken=function(s,h){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var v=this.type;this.type=s,this.value=h,this.updateContext(v)},We.readToken_dot=function(){var s=this.input.charCodeAt(this.pos+1);if(s>=48&&s<=57)return this.readNumber(!0);var h=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&s===46&&h===46?(this.pos+=3,this.finishToken(m.ellipsis)):(++this.pos,this.finishToken(m.dot))},We.readToken_slash=function(){var s=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):s===61?this.finishOp(m.assign,2):this.finishOp(m.slash,1)},We.readToken_mult_modulo_exp=function(s){var h=this.input.charCodeAt(this.pos+1),v=1,C=s===42?m.star:m.modulo;return this.options.ecmaVersion>=7&&s===42&&h===42&&(++v,C=m.starstar,h=this.input.charCodeAt(this.pos+2)),h===61?this.finishOp(m.assign,v+1):this.finishOp(C,v)},We.readToken_pipe_amp=function(s){var h=this.input.charCodeAt(this.pos+1);if(h===s){if(this.options.ecmaVersion>=12){var v=this.input.charCodeAt(this.pos+2);if(v===61)return this.finishOp(m.assign,3)}return this.finishOp(s===124?m.logicalOR:m.logicalAND,2)}return h===61?this.finishOp(m.assign,2):this.finishOp(s===124?m.bitwiseOR:m.bitwiseAND,1)},We.readToken_caret=function(){var s=this.input.charCodeAt(this.pos+1);return s===61?this.finishOp(m.assign,2):this.finishOp(m.bitwiseXOR,1)},We.readToken_plus_min=function(s){var h=this.input.charCodeAt(this.pos+1);return h===s?h===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||_.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(m.incDec,2):h===61?this.finishOp(m.assign,2):this.finishOp(m.plusMin,1)},We.readToken_lt_gt=function(s){var h=this.input.charCodeAt(this.pos+1),v=1;return h===s?(v=s===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+v)===61?this.finishOp(m.assign,v+1):this.finishOp(m.bitShift,v)):h===33&&s===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(h===61&&(v=2),this.finishOp(m.relational,v))},We.readToken_eq_excl=function(s){var h=this.input.charCodeAt(this.pos+1);return h===61?this.finishOp(m.equality,this.input.charCodeAt(this.pos+2)===61?3:2):s===61&&h===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(m.arrow)):this.finishOp(s===61?m.eq:m.prefix,1)},We.readToken_question=function(){var s=this.options.ecmaVersion;if(s>=11){var h=this.input.charCodeAt(this.pos+1);if(h===46){var v=this.input.charCodeAt(this.pos+2);if(v<48||v>57)return this.finishOp(m.questionDot,2)}if(h===63){if(s>=12){var C=this.input.charCodeAt(this.pos+2);if(C===61)return this.finishOp(m.assign,3)}return this.finishOp(m.coalesce,2)}}return this.finishOp(m.question,1)},We.readToken_numberSign=function(){var s=this.options.ecmaVersion,h=35;if(s>=13&&(++this.pos,h=this.fullCharCodeAtPos(),x(h,!0)||h===92))return this.finishToken(m.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+L(h)+"'")},We.getTokenFromCode=function(s){switch(s){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(m.parenL);case 41:return++this.pos,this.finishToken(m.parenR);case 59:return++this.pos,this.finishToken(m.semi);case 44:return++this.pos,this.finishToken(m.comma);case 91:return++this.pos,this.finishToken(m.bracketL);case 93:return++this.pos,this.finishToken(m.bracketR);case 123:return++this.pos,this.finishToken(m.braceL);case 125:return++this.pos,this.finishToken(m.braceR);case 58:return++this.pos,this.finishToken(m.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(m.backQuote);case 48:var h=this.input.charCodeAt(this.pos+1);if(h===120||h===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(h===111||h===79)return this.readRadixNumber(8);if(h===98||h===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(s);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(s);case 124:case 38:return this.readToken_pipe_amp(s);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(s);case 60:case 62:return this.readToken_lt_gt(s);case 61:case 33:return this.readToken_eq_excl(s);case 63:return this.readToken_question();case 126:return this.finishOp(m.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+L(s)+"'")},We.finishOp=function(s,h){var v=this.input.slice(this.pos,this.pos+h);return this.pos+=h,this.finishToken(s,v)},We.readRegexp=function(){for(var s,h,v=this.pos;;){this.pos>=this.input.length&&this.raise(v,"Unterminated regular expression");var C=this.input.charAt(this.pos);if(_.test(C)&&this.raise(v,"Unterminated regular expression"),s)s=!1;else{if(C==="[")h=!0;else if(C==="]"&&h)h=!1;else if(C==="/"&&!h)break;s=C==="\\"}++this.pos}var N=this.input.slice(v,this.pos);++this.pos;var H=this.pos,X=this.readWord1();this.containsEsc&&this.unexpected(H);var ve=this.regexpState||(this.regexpState=new an(this));ve.reset(v,N,X),this.validateRegExpFlags(ve),this.validateRegExpPattern(ve);var ke=null;try{ke=new RegExp(N,X)}catch{}return this.finishToken(m.regexp,{pattern:N,flags:X,value:ke})},We.readInt=function(s,h,v){for(var C=this.options.ecmaVersion>=12&&h===void 0,N=v&&this.input.charCodeAt(this.pos)===48,H=this.pos,X=0,ve=0,ke=0,je=h??1/0;ke<je;++ke,++this.pos){var He=this.input.charCodeAt(this.pos),ut=void 0;if(C&&He===95){N&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),ve===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),ke===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),ve=He;continue}if(He>=97?ut=He-97+10:He>=65?ut=He-65+10:He>=48&&He<=57?ut=He-48:ut=1/0,ut>=s)break;ve=He,X=X*s+ut}return C&&ve===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===H||h!=null&&this.pos-H!==h?null:X};function ao(s,h){return h?parseInt(s,8):parseFloat(s.replace(/_/g,""))}function la(s){return typeof BigInt!="function"?null:BigInt(s.replace(/_/g,""))}We.readRadixNumber=function(s){var h=this.pos;this.pos+=2;var v=this.readInt(s);return v==null&&this.raise(this.start+2,"Expected number in radix "+s),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(v=la(this.input.slice(h,this.pos)),++this.pos):x(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(m.num,v)},We.readNumber=function(s){var h=this.pos;!s&&this.readInt(10,void 0,!0)===null&&this.raise(h,"Invalid number");var v=this.pos-h>=2&&this.input.charCodeAt(h)===48;v&&this.strict&&this.raise(h,"Invalid number");var C=this.input.charCodeAt(this.pos);if(!v&&!s&&this.options.ecmaVersion>=11&&C===110){var N=la(this.input.slice(h,this.pos));return++this.pos,x(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(m.num,N)}v&&/[89]/.test(this.input.slice(h,this.pos))&&(v=!1),C===46&&!v&&(++this.pos,this.readInt(10),C=this.input.charCodeAt(this.pos)),(C===69||C===101)&&!v&&(C=this.input.charCodeAt(++this.pos),(C===43||C===45)&&++this.pos,this.readInt(10)===null&&this.raise(h,"Invalid number")),x(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var H=ao(this.input.slice(h,this.pos),v);return this.finishToken(m.num,H)},We.readCodePoint=function(){var s=this.input.charCodeAt(this.pos),h;if(s===123){this.options.ecmaVersion<6&&this.unexpected();var v=++this.pos;h=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,h>1114111&&this.invalidStringToken(v,"Code point out of bounds")}else h=this.readHexChar(4);return h},We.readString=function(s){for(var h="",v=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var C=this.input.charCodeAt(this.pos);if(C===s)break;C===92?(h+=this.input.slice(v,this.pos),h+=this.readEscapedChar(!1),v=this.pos):C===8232||C===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(M(C)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return h+=this.input.slice(v,this.pos++),this.finishToken(m.string,h)};var fr={};We.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(s){if(s===fr)this.readInvalidTemplateToken();else throw s}this.inTemplateElement=!1},We.invalidStringToken=function(s,h){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw fr;this.raise(s,h)},We.readTmplToken=function(){for(var s="",h=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var v=this.input.charCodeAt(this.pos);if(v===96||v===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===m.template||this.type===m.invalidTemplate)?v===36?(this.pos+=2,this.finishToken(m.dollarBraceL)):(++this.pos,this.finishToken(m.backQuote)):(s+=this.input.slice(h,this.pos),this.finishToken(m.template,s));if(v===92)s+=this.input.slice(h,this.pos),s+=this.readEscapedChar(!0),h=this.pos;else if(M(v)){switch(s+=this.input.slice(h,this.pos),++this.pos,v){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:s+=`
|
|
25
|
-
`;break;default:s+=String.fromCharCode(v);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),h=this.pos}else++this.pos}},We.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(m.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
26
|
-
`&&++this.pos;case`
|
|
27
|
-
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},We.readEscapedChar=function(s){var h=this.input.charCodeAt(++this.pos);switch(++this.pos,h){case 110:return`
|
|
28
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return L(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),s){var v=this.pos-1;this.invalidStringToken(v,"Invalid escape sequence in template string")}default:if(h>=48&&h<=55){var C=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],N=parseInt(C,8);return N>255&&(C=C.slice(0,-1),N=parseInt(C,8)),this.pos+=C.length-1,h=this.input.charCodeAt(this.pos),(C!=="0"||h===56||h===57)&&(this.strict||s)&&this.invalidStringToken(this.pos-1-C.length,s?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(N)}return M(h)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(h)}},We.readHexChar=function(s){var h=this.pos,v=this.readInt(16,s);return v===null&&this.invalidStringToken(h,"Bad character escape sequence"),v},We.readWord1=function(){this.containsEsc=!1;for(var s="",h=!0,v=this.pos,C=this.options.ecmaVersion>=6;this.pos<this.input.length;){var N=this.fullCharCodeAtPos();if(w(N,C))this.pos+=N<=65535?1:2;else if(N===92){this.containsEsc=!0,s+=this.input.slice(v,this.pos);var H=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var X=this.readCodePoint();(h?x:w)(X,C)||this.invalidStringToken(H,"Invalid Unicode escape"),s+=L(X),v=this.pos}else break;h=!1}return s+this.input.slice(v,this.pos)},We.readWord=function(){var s=this.readWord1(),h=m.name;return this.keywords.test(s)&&(h=O[s]),this.finishToken(h,s)};var Er="8.15.0";le.acorn={Parser:le,version:Er,defaultOptions:be,Position:ue,SourceLocation:T,getLineInfo:me,Node:sr,TokenType:S,tokTypes:m,keywordTypes:O,TokContext:jt,tokContexts:Ze,isIdentifierChar:w,isIdentifierStart:x,Token:Hn,isNewLine:M,lineBreak:_,lineBreakG:V,nonASCIIwhitespace:j};function Xr(s,h){return le.parse(s,h)}function Qr(s,h,v){return le.parseExpressionAt(s,h,v)}function so(s,h){return le.tokenizer(s,h)}n.Node=sr,n.Parser=le,n.Position=ue,n.SourceLocation=T,n.TokContext=jt,n.Token=Hn,n.TokenType=S,n.defaultOptions=be,n.getLineInfo=me,n.isIdentifierChar=w,n.isIdentifierStart=x,n.isNewLine=M,n.keywordTypes=O,n.lineBreak=_,n.lineBreakG=V,n.nonASCIIwhitespace=j,n.parse=Xr,n.parseExpressionAt=Qr,n.tokContexts=Ze,n.tokTypes=m,n.tokenizer=so,n.version=Er}))})(ai,ai.exports)),ai.exports}var $c;function cb(){return $c||($c=1,(function(e){const t=ub(),n=/^[\da-fA-F]+$/,r=/^\d+$/,i=new WeakMap;function a(l){l=l.Parser.acorn||l;let c=i.get(l);if(!c){const p=l.tokTypes,f=l.TokContext,d=l.TokenType,g=new f("<tag",!1),x=new f("</tag",!1),w=new f("<tag>...</tag>",!0,!0),S={tc_oTag:g,tc_cTag:x,tc_expr:w},b={jsxName:new d("jsxName"),jsxText:new d("jsxText",{beforeExpr:!0}),jsxTagStart:new d("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new d("jsxTagEnd")};b.jsxTagStart.updateContext=function(){this.context.push(w),this.context.push(g),this.exprAllowed=!1},b.jsxTagEnd.updateContext=function(k){let E=this.context.pop();E===g&&k===p.slash||E===x?(this.context.pop(),this.exprAllowed=this.curContext()===w):this.exprAllowed=!0},c={tokContexts:S,tokTypes:b},i.set(l,c)}return c}function o(l){if(!l)return l;if(l.type==="JSXIdentifier")return l.name;if(l.type==="JSXNamespacedName")return l.namespace.name+":"+l.name.name;if(l.type==="JSXMemberExpression")return o(l.object)+"."+o(l.property)}e.exports=function(l){return l=l||{},function(c){return u({allowNamespaces:l.allowNamespaces!==!1,allowNamespacedObjects:!!l.allowNamespacedObjects},c)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return a(zc()).tokTypes},configurable:!0,enumerable:!0});function u(l,c){const p=c.acorn||zc(),f=a(p),d=p.tokTypes,g=f.tokTypes,x=p.tokContexts,w=f.tokContexts.tc_oTag,S=f.tokContexts.tc_cTag,b=f.tokContexts.tc_expr,k=p.isNewLine,E=p.isIdentifierStart,O=p.isIdentifierChar;return class extends c{static get acornJsx(){return f}jsx_readToken(){let y="",m=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let _=this.input.charCodeAt(this.pos);switch(_){case 60:case 123:return this.pos===this.start?_===60&&this.exprAllowed?(++this.pos,this.finishToken(g.jsxTagStart)):this.getTokenFromCode(_):(y+=this.input.slice(m,this.pos),this.finishToken(g.jsxText,y));case 38:y+=this.input.slice(m,this.pos),y+=this.jsx_readEntity(),m=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(_===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:k(_)?(y+=this.input.slice(m,this.pos),y+=this.jsx_readNewLine(!0),m=this.pos):++this.pos}}}jsx_readNewLine(y){let m=this.input.charCodeAt(this.pos),_;return++this.pos,m===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,_=y?`
|
|
29
|
-
`:`\r
|
|
30
|
-
`):_=String.fromCharCode(m),this.options.locations&&(++this.curLine,this.lineStart=this.pos),_}jsx_readString(y){let m="",_=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let V=this.input.charCodeAt(this.pos);if(V===y)break;V===38?(m+=this.input.slice(_,this.pos),m+=this.jsx_readEntity(),_=this.pos):k(V)?(m+=this.input.slice(_,this.pos),m+=this.jsx_readNewLine(!1),_=this.pos):++this.pos}return m+=this.input.slice(_,this.pos++),this.finishToken(d.string,m)}jsx_readEntity(){let y="",m=0,_,V=this.input[this.pos];V!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let M=++this.pos;for(;this.pos<this.input.length&&m++<10;){if(V=this.input[this.pos++],V===";"){y[0]==="#"?y[1]==="x"?(y=y.substr(2),n.test(y)&&(_=String.fromCharCode(parseInt(y,16)))):(y=y.substr(1),r.test(y)&&(_=String.fromCharCode(parseInt(y,10)))):_=t[y];break}y+=V}return _||(this.pos=M,"&")}jsx_readWord(){let y,m=this.pos;do y=this.input.charCodeAt(++this.pos);while(O(y)||y===45);return this.finishToken(g.jsxName,this.input.slice(m,this.pos))}jsx_parseIdentifier(){let y=this.startNode();return this.type===g.jsxName?y.name=this.value:this.type.keyword?y.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(y,"JSXIdentifier")}jsx_parseNamespacedName(){let y=this.start,m=this.startLoc,_=this.jsx_parseIdentifier();if(!l.allowNamespaces||!this.eat(d.colon))return _;var V=this.startNodeAt(y,m);return V.namespace=_,V.name=this.jsx_parseIdentifier(),this.finishNode(V,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===g.jsxTagEnd)return"";let y=this.start,m=this.startLoc,_=this.jsx_parseNamespacedName();for(this.type===d.dot&&_.type==="JSXNamespacedName"&&!l.allowNamespacedObjects&&this.unexpected();this.eat(d.dot);){let V=this.startNodeAt(y,m);V.object=_,V.property=this.jsx_parseIdentifier(),_=this.finishNode(V,"JSXMemberExpression")}return _}jsx_parseAttributeValue(){switch(this.type){case d.braceL:let y=this.jsx_parseExpressionContainer();return y.expression.type==="JSXEmptyExpression"&&this.raise(y.start,"JSX attributes must only be assigned a non-empty expression"),y;case g.jsxTagStart:case d.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let y=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(y,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let y=this.startNode();return this.next(),y.expression=this.type===d.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(d.braceR),this.finishNode(y,"JSXExpressionContainer")}jsx_parseAttribute(){let y=this.startNode();return this.eat(d.braceL)?(this.expect(d.ellipsis),y.argument=this.parseMaybeAssign(),this.expect(d.braceR),this.finishNode(y,"JSXSpreadAttribute")):(y.name=this.jsx_parseNamespacedName(),y.value=this.eat(d.eq)?this.jsx_parseAttributeValue():null,this.finishNode(y,"JSXAttribute"))}jsx_parseOpeningElementAt(y,m){let _=this.startNodeAt(y,m);_.attributes=[];let V=this.jsx_parseElementName();for(V&&(_.name=V);this.type!==d.slash&&this.type!==g.jsxTagEnd;)_.attributes.push(this.jsx_parseAttribute());return _.selfClosing=this.eat(d.slash),this.expect(g.jsxTagEnd),this.finishNode(_,V?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(y,m){let _=this.startNodeAt(y,m),V=this.jsx_parseElementName();return V&&(_.name=V),this.expect(g.jsxTagEnd),this.finishNode(_,V?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(y,m){let _=this.startNodeAt(y,m),V=[],M=this.jsx_parseOpeningElementAt(y,m),P=null;if(!M.selfClosing){e:for(;;)switch(this.type){case g.jsxTagStart:if(y=this.start,m=this.startLoc,this.next(),this.eat(d.slash)){P=this.jsx_parseClosingElementAt(y,m);break e}V.push(this.jsx_parseElementAt(y,m));break;case g.jsxText:V.push(this.parseExprAtom());break;case d.braceL:V.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}o(P.name)!==o(M.name)&&this.raise(P.start,"Expected corresponding JSX closing tag for <"+o(M.name)+">")}let j=M.name?"Element":"Fragment";return _["opening"+j]=M,_["closing"+j]=P,_.children=V,this.type===d.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(_,"JSX"+j)}jsx_parseText(){let y=this.parseLiteral(this.value);return y.type="JSXText",y}jsx_parseElement(){let y=this.start,m=this.startLoc;return this.next(),this.jsx_parseElementAt(y,m)}parseExprAtom(y){return this.type===g.jsxText?this.jsx_parseText():this.type===g.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(y)}readToken(y){let m=this.curContext();if(m===b)return this.jsx_readToken();if(m===w||m===S){if(E(y))return this.jsx_readWord();if(y==62)return++this.pos,this.finishToken(g.jsxTagEnd);if((y===34||y===39)&&m==w)return this.jsx_readString(y)}return y===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(g.jsxTagStart)):super.readToken(y)}updateContext(y){if(this.type==d.braceL){var m=this.curContext();m==w?this.context.push(x.b_expr):m==b?this.context.push(x.b_tmpl):super.updateContext(y),this.exprAllowed=!0}else if(this.type===d.slash&&y===g.jsxTagStart)this.context.length-=2,this.context.push(S),this.exprAllowed=!1;else return super.updateContext(y)}}}})(mo)),mo.exports}var fb=cb();const hb=Li(fb),Rt=nr(/[A-Za-z]/),Kt=nr(/[\dA-Za-z]/),pb=nr(/[#-'*+\--9=?A-Z^-~]/);function Ja(e){return e!==null&&(e<32||e===127)}const fu=nr(/\d/),db=nr(/[\dA-Fa-f]/),mb=nr(/[!-/:-@[-`{-~]/);function Ve(e){return e!==null&&e<-2}function Qe(e){return e!==null&&(e<0||e===32)}function Ue(e){return e===-2||e===-1||e===32}const Es=nr(new RegExp("\\p{P}|\\p{S}","u")),Ft=nr(/\s/);function nr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ke(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return Ue(l)?(e.enter(n),u(l)):t(l)}function u(l){return Ue(l)&&a++<i?(e.consume(l),u):(e.exit(n),t(l))}}const gb={}.hasOwnProperty,xb=Symbol("continue"),xo=Symbol("exit"),vb=Symbol("skip");function bb(e,t){let n,r;typeof t=="function"?n=t:t&&typeof t=="object"&&(t.enter&&(n=t.enter),t.leave&&(r=t.leave)),i(e,void 0,void 0,[])();function i(a,o,u,l){return vo(a)&&(c.displayName="node ("+a.type+")"),c;function c(){const p=n?Hc(n(a,o,u,l)):[];if(p[0]===xo)return p;if(p[0]!==vb){let f;for(f in a)if(gb.call(a,f)&&a[f]&&typeof a[f]=="object"&&f!=="data"&&f!=="position"){const d=l.concat(a),g=a[f];if(Array.isArray(g)){const x=g;let w=0;for(;w>-1&&w<x.length;){const S=x[w];if(vo(S)){const b=i(S,f,w,d)();if(b[0]===xo)return b;w=typeof b[1]=="number"?b[1]:w+1}else w++}}else if(vo(g)){const x=i(g,f,void 0,d)();if(x[0]===xo)return x}}}return r?Hc(r(a,o,u,l)):p}}}function Hc(e){return Array.isArray(e)?e:typeof e=="number"?[xb,e]:[e]}function vo(e){return!!(e&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.length>0)}function fd(e,t){const n=t.prefix||"",r=t.suffix||"",i=Object.assign({},t.acornOptions),a=[],o=[],u=i.onComment,l=i.onToken;let c=!1,p,f;const d=Object.assign({},i,{onComment:a,preserveParens:!0});l&&(d.onToken=o);const g=yb(e,t.tokenTypes),x=g.value,w=n+x+r,S=t.expression&&Uc(x);if(S&&!t.allowEmpty)throw new rt("Unexpected empty expression",{place:k(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{p=t.expression&&!S?t.acorn.parseExpressionAt(w,0,d):t.acorn.parse(w,d)}catch(E){const O=E,y=k(O.pos);O.message=String(O.message).replace(/ \(\d+:\d+\)$/,""),O.pos=y.offset,O.loc={line:y.line,column:y.column-1},f=O,c=O.raisedAt>=n.length+x.length||O.message==="Unterminated comment"}if(p&&t.expression&&!S)if(Uc(w.slice(p.end,w.length-r.length)))p={type:"Program",start:0,end:n.length+x.length,body:[{type:"ExpressionStatement",expression:p,start:0,end:n.length+x.length}],sourceType:"module",comments:[]};else{const E=k(p.end),O=new Error("Unexpected content after expression");O.pos=E.offset,O.loc={line:E.line,column:E.column-1},f=O,p=void 0}if(p){if(p.comments=a,bb(p,function(E,O,y,m){let _=m[m.length-1],V=O;E.type==="ParenthesizedExpression"&&_&&V&&(typeof y=="number"&&(_=_[V],V=y),_[V]=E.expression),b(E)}),Array.isArray(u))u.push(...a);else if(typeof u=="function")for(const E of a)u(E.type==="Block",E.value,E.start,E.end,E.loc.start,E.loc.end);for(const E of o)E.end<=n.length||E.start-n.length>=x.length||(b(E),Array.isArray(l)?l.push(E):l(E))}return{estree:p,error:f,swallow:c};function b(E){const O=k(E.start),y=k(E.end);E.start=O.offset,E.end=y.offset,E.loc={start:{line:O.line,column:O.column-1,offset:O.offset},end:{line:y.line,column:y.column-1,offset:y.offset}},E.range=[E.start,E.end]}function k(E){let O=E-n.length;O<0?O=0:O>x.length&&(O=x.length);let y=wb(g.stops,O);return y||(y={line:t.start.line,column:t.start.column,offset:t.start.offset}),y}}function Uc(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function yb(e,t){const n={value:"",stops:[]};let r=-1;for(;++r<e.length;){const i=e[r];if(i[0]==="enter"){const a=i[1].type;if(a==="lineEnding"||t.includes(a)){const o=i[2].sliceStream(i[1]);for(;o.length>0&&o[0]===-1;)o.shift();const u=Sb(o);n.stops.push([n.value.length,i[1].start]),n.value+=u,n.stops.push([n.value.length,i[1].end])}}}return n}function wb(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(n===0)return;const[r,i]=e[n-1],a=t-r;return{line:i.line,column:i.column+a,offset:i.offset+a}}function Sb(e){let t=-1;const n=[];let r;for(;++t<e.length;){const i=e[t];let a;if(typeof i=="string")a=i;else switch(i){case-5:{a="\r";break}case-4:{a=`
|
|
31
|
-
`;break}case-3:{a=`\r
|
|
32
|
-
`;break}case-2:{a=" ";break}case-1:{if(r)continue;a=" ";break}default:a=String.fromCharCode(i)}r=i===-2,n.push(a)}return n.join("")}function Oa(e){const t=e||{},n=t.loc||{},r=t.range||[void 0,void 0],i=qc(n.start,r[0]||t.start),a=qc(n.end,r[1]||t.end);if(i&&a)return{start:i,end:a}}function qc(e,t){if(e&&typeof e=="object"){const n="line"in e?bo(e.line):void 0,r="column"in e?bo(e.column):void 0;if(n&&r!==void 0)return{line:n,column:r+1,offset:bo(t)}}}function bo(e){return typeof e=="number"&&e>-1?e:void 0}const Cb=2,Pr="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",kb="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",Eb="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",Wc="#unexpected-type-in-code-expected-an-object-spread-spread",_b="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",Ib="#could-not-parse-expression-with-acorn";function Ga(e,t,n,r,i,a,o,u,l,c,p){const f=this,d=this.events.length+3;let g=0,x,w;return S;function S(O){return e.enter(n),e.enter(r),e.consume(O),e.exit(r),x=f.now(),b}function b(O){if(O===null){if(w)throw w;const y=new rt("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:f.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw y.url=Pr+kb,y}if(Ve(O))return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),E;if(O===125&&g===0){const y=a?Tb.call(f,a,o,i,d,x,c||!1,l||!1):{type:"ok",estree:void 0};if(y.type==="ok"){e.enter(r),e.consume(O),e.exit(r);const m=e.exit(n);return u&&y.estree&&Object.assign(m,{estree:y.estree}),t}return w=y.message,e.enter(i),e.consume(O),k}return e.enter(i),k(O)}function k(O){return O===125&&g===0||O===null||Ve(O)?(e.exit(i),b(O)):(O===123&&!a?g+=1:O===125&&(g-=1),e.consume(O),k)}function E(O){const y=f.now();if(y.line!==x.line&&!p&&f.parser.lazy[y.line]){const m=new rt("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:f.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw m.url=Pr+Eb,m}return Ue(O)?Ke(e,b,"linePrefix",Cb+1)(O):b(O)}}function Tb(e,t,n,r,i,a,o){const u=fd(this.events.slice(r),{acorn:e,tokenTypes:[n],acornOptions:t,start:i,expression:!0,allowEmpty:a,prefix:o?"({":"",suffix:o?"})":""}),l=u.estree;if(o&&l){const c=l.body[0];if(c.type!=="ExpressionStatement"||c.expression.type!=="ObjectExpression"){const p=Oa(c),f=new rt("Unexpected `"+c.type+"` in code: expected an object spread (`{...spread}`)",{place:p.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw f.url=Pr+Wc,f}if(c.expression.properties[1]){const p=Oa(c.expression.properties[1]),f=new rt("Unexpected extra content in spread: only a single spread is supported",{place:p.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw f.url=Pr+_b,f}if(c.expression.properties[0]&&c.expression.properties[0].type!=="SpreadElement"){const p=Oa(c.expression.properties[0]),f=new rt("Unexpected `"+c.expression.properties[0].type+"` in code: only spread elements are supported",{place:p.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw f.url=Pr+Wc,f}}if(u.error){const c=new rt("Could not parse expression with acorn",{cause:u.error,place:{line:u.error.loc.line,column:u.error.loc.column+1,offset:u.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return c.url=Pr+Ib,{type:"nok",message:c}}return{type:"ok",estree:l}}function Ab(e){const t=e||{},n=t.addResult,r=t.acorn,i=t.spread;let a=t.allowEmpty,o;if(a==null&&(a=!0),r){if(!r.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");o=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions)}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{123:{name:"mdxFlowExpression",tokenize:u,concrete:!0}},text:{123:{name:"mdxTextExpression",tokenize:l}}};function u(c,p,f){const d=this;return g;function g(b){return x(b)}function x(b){return Ga.call(d,c,w,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",r,o,n,i,a)(b)}function w(b){return Ue(b)?Ke(c,S,"whitespace")(b):S(b)}function S(b){const k=d.parser.constructs.flow[60],O=(Array.isArray(k)?k:k?[k]:[]).find(function(y){return y.name==="mdxJsxFlowTag"});return b===60&&O?c.attempt(O,S,f)(b):b===null||Ve(b)?p(b):f(b)}}function l(c,p){const f=this;return d;function d(g){return Ga.call(f,c,p,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",r,o,n,i,a,!0)(g)}}}const Pb=/[$_\p{ID_Start}]/u,Nb=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Rb=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Ob={};function dn(e){return e?Pb.test(String.fromCodePoint(e)):!1}function ti(e,t){const r=(t||Ob).jsx?Rb:Nb;return e?r.test(String.fromCodePoint(e)):!1}const Kc="https://github.com/micromark/micromark-extension-mdx-jsx";function hd(e,t,n,r,i,a,o,u,l,c,p,f,d,g,x,w,S,b,k,E,O,y,m,_,V,M,P,j,W,$,se,Z){const ne=this;let ce,de;return xe;function xe(A){return e.enter(u),e.enter(l),e.consume(A),e.exit(l),L}function L(A){return Qe(A)?n(A):(ce=G,De(A))}function G(A){if(A===47)return e.enter(c),e.consume(A),e.exit(c),ce=ue,De;if(A===62)return Re(A);if(A!==null&&A>=0&&dn(A))return e.enter(f),e.enter(d),e.consume(A),T;le(A,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(A===33?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function ue(A){if(A===62)return Re(A);if(A!==null&&A>=0&&dn(A))return e.enter(f),e.enter(d),e.consume(A),T;le(A,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(A===42||A===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function T(A){if(A!==null&&A>=0&&ti(A,{jsx:!0}))return e.consume(A),T;if(A===46||A===47||A===58||A===62||A===123||Qe(A)||Ft(A))return e.exit(d),ce=me,De(A);le(A,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(A===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function me(A){if(A===46)return e.enter(g),e.consume(A),e.exit(g),ce=be,De;if(A===58)return e.enter(w),e.consume(A),e.exit(w),ce=U,De;if(A===47||A===62||A===123||A!==null&&A>=0&&dn(A))return e.exit(f),oe(A);le(A,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function be(A){if(A!==null&&A>=0&&dn(A))return e.enter(x),e.consume(A),Se;le(A,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function Se(A){if(A!==null&&A>=0&&ti(A,{jsx:!0}))return e.consume(A),Se;if(A===46||A===47||A===62||A===123||Qe(A)||Ft(A))return e.exit(x),ce=J,De(A);le(A,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(A===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function J(A){if(A===46)return e.enter(g),e.consume(A),e.exit(g),ce=be,De;if(A===47||A===62||A===123||A!==null&&A>=0&&dn(A))return e.exit(f),oe(A);le(A,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function U(A){if(A!==null&&A>=0&&dn(A))return e.enter(S),e.consume(A),Q;le(A,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(A===43||A!==null&&A>46&&A<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function Q(A){if(A!==null&&A>=0&&ti(A,{jsx:!0}))return e.consume(A),Q;if(A===47||A===62||A===123||Qe(A)||Ft(A))return e.exit(S),ce=ie,De(A);le(A,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ie(A){if(A===47||A===62||A===123||A!==null&&A>=0&&dn(A))return e.exit(f),oe(A);le(A,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function oe(A){if(A===47)return e.enter(p),e.consume(A),e.exit(p),ce=ye,De;if(A===62)return Re(A);if(A===123)return Ga.call(ne,e,re,b,k,E,r,i,a,!0,!1,o)(A);if(A!==null&&A>=0&&dn(A))return e.enter(O),e.enter(y),e.enter(m),e.consume(A),K;le(A,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function re(A){return ce=oe,De(A)}function K(A){if(A!==null&&A>=0&&ti(A,{jsx:!0}))return e.consume(A),K;if(A===47||A===58||A===61||A===62||A===123||Qe(A)||Ft(A))return e.exit(m),ce=Y,De(A);le(A,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Y(A){if(A===58)return e.enter(_),e.consume(A),e.exit(_),ce=q,De;if(A===61)return e.exit(y),e.enter(M),e.consume(A),e.exit(M),ce=Ce,De;if(A===47||A===62||A===123||Qe(A)||Ft(A)||A!==null&&A>=0&&dn(A))return e.exit(y),e.exit(O),ce=oe,De(A);le(A,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function q(A){if(A!==null&&A>=0&&dn(A))return e.enter(V),e.consume(A),ee;le(A,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ee(A){if(A!==null&&A>=0&&ti(A,{jsx:!0}))return e.consume(A),ee;if(A===47||A===61||A===62||A===123||Qe(A)||Ft(A))return e.exit(V),e.exit(y),ce=he,De(A);le(A,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function he(A){if(A===61)return e.enter(M),e.consume(A),e.exit(M),ce=Ce,De;if(A===47||A===62||A===123||A!==null&&A>=0&&dn(A))return e.exit(O),oe(A);le(A,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Ce(A){if(A===34||A===39)return e.enter(P),e.enter(j),e.consume(A),e.exit(j),de=A,Te;if(A===123)return Ga.call(ne,e,Ee,$,se,Z,r,i,a,!1,!1,o)(A);le(A,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(A===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function Ee(A){return e.exit(O),ce=oe,De(A)}function Te(A){return A===null&&le(A,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(de)+"`"),A===de?(e.enter(j),e.consume(A),e.exit(j),e.exit(P),e.exit(O),de=void 0,ce=oe,De):Ve(A)?(ce=Te,De(A)):(e.enter(W),Fe(A))}function Fe(A){return A===null||A===de||Ve(A)?(e.exit(W),Te(A)):(e.consume(A),Fe)}function ye(A){if(A===62)return Re(A);le(A,"after self-closing slash","`>` to end the tag"+(A===42||A===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function Re(A){return e.enter(l),e.consume(A),e.exit(l),e.exit(u),t}function De(A){return Ve(A)?(e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),ae):Ue(A)||Ft(A)?(e.enter("esWhitespace"),Ge(A)):ce(A)}function Ge(A){return Ve(A)?(e.exit("esWhitespace"),De(A)):Ue(A)||Ft(A)?(e.consume(A),Ge):(e.exit("esWhitespace"),ce(A))}function ae(A){if(!o&&ne.parser.lazy[ne.now().line]){const Me=new rt("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",ne.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw Me.url=Kc+"#unexpected-lazy-line-in-container-expected-line-to-be",Me}return De(A)}function le(A,Me,Xe){const yt=new rt("Unexpected "+(A===null?"end of file":"character `"+(A===96?"` ` `":String.fromCodePoint(A))+"` ("+Lb(A)+")")+" "+Me+", expected "+Xe,ne.now(),"micromark-extension-mdx-jsx:unexpected-"+(A===null?"eof":"character"));throw yt.url=Kc+(A===null?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),yt}}function Lb(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function Vb(e,t){return{name:"mdxJsxTextTag",tokenize:n};function n(r,i,a){return hd.call(this,r,i,a,e,t.acornOptions,t.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}function Db(e,t){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:n};function n(r,i,a){const o=this;return u;function u(f){return l(f)}function l(f){return hd.call(o,r,c,a,e,t.acornOptions,t.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(f)}function c(f){return Ue(f)?Ke(r,p,"whitespace")(f):p(f)}function p(f){const d=o.parser.constructs.flow[123],g=Array.isArray(d)?d:d?[d]:[];let x;for(const w of g)if(w.name==="mdxFlowExpression"){x=w;break}return f===60?u(f):f===123&&x?r.attempt(x,p,a)(f):f===null||Ve(f)?i(f):a(f)}}}function Fb(e){const t=e||{},n=t.acorn;let r;if(n){if(!n.parse||!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");r=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:Db(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})},text:{60:Vb(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})}}}function Mb(){return{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}}function en(e,t,n,r){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function ln(e,t){return e.length>0?(en(e,e.length,0,t),e):t}function jr(e){if(e===null||Qe(e)||Ft(e))return 1;if(Es(e))return 2}function _s(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const hu={name:"attention",resolveAll:jb,tokenize:Bb};function jb(e,t){let n=-1,r,i,a,o,u,l,c,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=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 f={...e[r][1].end},d={...e[n][1].start};Jc(f,-l),Jc(d,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},u={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...u.end}},e[r][1].end={...o.start},e[n][1].start={...u.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ln(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ln(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=ln(c,_s(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=ln(c,[["exit",a,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,c=ln(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,en(e,r-1,n-r+3,c),n=r+c.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Bb(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=jr(r);let a;return o;function o(l){return a=l,e.enter("attentionSequence"),u(l)}function u(l){if(l===a)return e.consume(l),u;const c=e.exit("attentionSequence"),p=jr(l),f=!p||p===2&&i||n.includes(l),d=!i||i===2&&p||n.includes(r);return c._open=!!(a===42?f:f&&(i||!d)),c._close=!!(a===42?d:d&&(p||!f)),t(l)}}function Jc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const zb={name:"autolink",tokenize:$b};function $b(e,t,n){let r=0;return i;function i(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(g){return Rt(g)?(e.consume(g),o):g===64?n(g):c(g)}function o(g){return g===43||g===45||g===46||Kt(g)?(r=1,u(g)):c(g)}function u(g){return g===58?(e.consume(g),r=0,l):(g===43||g===45||g===46||Kt(g))&&r++<32?(e.consume(g),u):(r=0,c(g))}function l(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||Ja(g)?n(g):(e.consume(g),l)}function c(g){return g===64?(e.consume(g),p):pb(g)?(e.consume(g),c):n(g)}function p(g){return Kt(g)?f(g):n(g)}function f(g){return g===46?(e.consume(g),r=0,p):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):d(g)}function d(g){if((g===45||Kt(g))&&r++<63){const x=g===45?d:f;return e.consume(g),x}return n(g)}}const Wr={partial:!0,tokenize:Hb};function Hb(e,t,n){return r;function r(a){return Ue(a)?Ke(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||Ve(a)?t(a):n(a)}}const pd={continuation:{tokenize:qb},exit:Wb,name:"blockQuote",tokenize:Ub};function Ub(e,t,n){const r=this;return i;function i(o){if(o===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return n(o)}function a(o){return Ue(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function qb(e,t,n){const r=this;return i;function i(o){return Ue(o)?Ke(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(pd,t,n)(o)}}function Wb(e){e.exit("blockQuote")}const dd={name:"characterEscape",tokenize:Kb};function Kb(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return mb(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const md={name:"characterReference",tokenize:Jb};function Jb(e,t,n){const r=this;let i=0,a,o;return u;function u(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,o=Kt,p(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=db,p):(e.enter("characterReferenceValue"),a=7,o=fu,p(f))}function p(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return o===Kt&&!xi(r.sliceSerialize(d))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&i++<a?(e.consume(f),p):n(f)}}const Gc={partial:!0,tokenize:Yb},Yc={concrete:!0,name:"codeFenced",tokenize:Gb};function Gb(e,t,n){const r=this,i={partial:!0,tokenize:y};let a=0,o=0,u;return l;function l(m){return c(m)}function c(m){const _=r.events[r.events.length-1];return a=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,u=m,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(m)}function p(m){return m===u?(o++,e.consume(m),p):o<3?n(m):(e.exit("codeFencedFenceSequence"),Ue(m)?Ke(e,f,"whitespace")(m):f(m))}function f(m){return m===null||Ve(m)?(e.exit("codeFencedFence"),r.interrupt?t(m):e.check(Gc,w,O)(m)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||Ve(m)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(m)):Ue(m)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ke(e,g,"whitespace")(m)):m===96&&m===u?n(m):(e.consume(m),d)}function g(m){return m===null||Ve(m)?f(m):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(m))}function x(m){return m===null||Ve(m)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(m)):m===96&&m===u?n(m):(e.consume(m),x)}function w(m){return e.attempt(i,O,S)(m)}function S(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),b}function b(m){return a>0&&Ue(m)?Ke(e,k,"linePrefix",a+1)(m):k(m)}function k(m){return m===null||Ve(m)?e.check(Gc,w,O)(m):(e.enter("codeFlowValue"),E(m))}function E(m){return m===null||Ve(m)?(e.exit("codeFlowValue"),k(m)):(e.consume(m),E)}function O(m){return e.exit("codeFenced"),t(m)}function y(m,_,V){let M=0;return P;function P(Z){return m.enter("lineEnding"),m.consume(Z),m.exit("lineEnding"),j}function j(Z){return m.enter("codeFencedFence"),Ue(Z)?Ke(m,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):W(Z)}function W(Z){return Z===u?(m.enter("codeFencedFenceSequence"),$(Z)):V(Z)}function $(Z){return Z===u?(M++,m.consume(Z),$):M>=o?(m.exit("codeFencedFenceSequence"),Ue(Z)?Ke(m,se,"whitespace")(Z):se(Z)):V(Z)}function se(Z){return Z===null||Ve(Z)?(m.exit("codeFencedFence"),_(Z)):V(Z)}}}function Yb(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const yo={name:"codeIndented",tokenize:Qb},Xb={partial:!0,tokenize:Zb};function Qb(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Ke(e,a,"linePrefix",5)(c)}function a(c){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):Ve(c)?e.attempt(Xb,o,l)(c):(e.enter("codeFlowValue"),u(c))}function u(c){return c===null||Ve(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),u)}function l(c){return e.exit("codeIndented"),t(c)}}function Zb(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Ve(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Ke(e,a,"linePrefix",5)(o)}function a(o){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(o):Ve(o)?i(o):n(o)}}const ey={name:"codeText",previous:ny,resolve:ty,tokenize:ry};function ty(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 ny(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ry(e,t,n){let r=0,i,a;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),u(f)}function u(f){return f===96?(e.consume(f),r++,u):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(a=e.enter("codeTextSequence"),i=0,p(f)):Ve(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||Ve(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),c)}function p(f){return f===96?(e.consume(f),i++,p):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",c(f))}}class iy{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 a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&ni(this.left,r),a.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),ni(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ni(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);ni(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ni(this.left,n.reverse())}}}function ni(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 gd(e){const t={};let n=-1,r,i,a,o,u,l,c;const p=new iy(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(r=p.get(n),n&&r[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,ay(p,n)),n=t[n],c=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=p.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(p.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...p.get(i)[1].start},u=p.slice(i,n),u.unshift(r),p.splice(i,n-i+1,u))}}return en(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!c}function ay(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const u=o.events,l=[],c={};let p,f,d=-1,g=n,x=0,w=0;const S=[w];for(;g;){for(;e.get(++i)[1]!==g;);a.push(i),g._tokenizer||(p=r.sliceStream(g),g.next||p.push(null),f&&o.defineSkip(g.start),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(p),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=g,g=g.next}for(g=n;++d<u.length;)u[d][0]==="exit"&&u[d-1][0]==="enter"&&u[d][1].type===u[d-1][1].type&&u[d][1].start.line!==u[d][1].end.line&&(w=d+1,S.push(w),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(o.events=[],g?(g._tokenizer=void 0,g.previous=void 0):S.pop(),d=S.length;d--;){const b=u.slice(S[d],S[d+1]),k=a.pop();l.push([k,k+b.length-1]),e.splice(k,2,b)}for(l.reverse(),d=-1;++d<l.length;)c[x+l[d][0]]=x+l[d][1],x+=l[d][1]-l[d][0]-1;return c}const sy={resolve:uy,tokenize:ly},oy={partial:!0,tokenize:cy};function uy(e){return gd(e),e}function ly(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?a(u):Ve(u)?e.check(oy,o,a)(u):(e.consume(u),i)}function a(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function o(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function cy(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Ke(e,a,"linePrefix")}function a(o){if(o===null||Ve(o))return n(o);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function xd(e,t,n,r,i,a,o,u,l){const c=l||Number.POSITIVE_INFINITY;let p=0;return f;function f(b){return b===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(b),e.exit(a),d):b===null||b===32||b===41||Ja(b)?n(b):(e.enter(r),e.enter(o),e.enter(u),e.enter("chunkString",{contentType:"string"}),w(b))}function d(b){return b===62?(e.enter(a),e.consume(b),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===62?(e.exit("chunkString"),e.exit(u),d(b)):b===null||b===60||Ve(b)?n(b):(e.consume(b),b===92?x:g)}function x(b){return b===60||b===62||b===92?(e.consume(b),g):g(b)}function w(b){return!p&&(b===null||b===41||Qe(b))?(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),t(b)):p<c&&b===40?(e.consume(b),p++,w):b===41?(e.consume(b),p--,w):b===null||b===32||b===40||Ja(b)?n(b):(e.consume(b),b===92?S:w)}function S(b){return b===40||b===41||b===92?(e.consume(b),w):w(b)}}function vd(e,t,n,r,i,a){const o=this;let u=0,l;return c;function c(g){return e.enter(r),e.enter(i),e.consume(g),e.exit(i),e.enter(a),p}function p(g){return u>999||g===null||g===91||g===93&&!l||g===94&&!u&&"_hiddenFootnoteSupport"in o.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):Ve(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||Ve(g)||u++>999?(e.exit("chunkString"),p(g)):(e.consume(g),l||(l=!Ue(g)),g===92?d:f)}function d(g){return g===91||g===92||g===93?(e.consume(g),u++,f):f(g)}}function bd(e,t,n,r,i,a){let o;return u;function u(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,l):n(d)}function l(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(a),c(d))}function c(d){return d===o?(e.exit(a),l(o)):d===null?n(d):Ve(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Ke(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(d))}function p(d){return d===o||d===null||Ve(d)?(e.exit("chunkString"),c(d)):(e.consume(d),d===92?f:p)}function f(d){return d===o||d===92?(e.consume(d),p):p(d)}}function ui(e,t){let n;return r;function r(i){return Ve(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ue(i)?Ke(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function vn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fy={name:"definition",tokenize:py},hy={partial:!0,tokenize:dy};function py(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),o(g)}function o(g){return vd.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function u(g){return i=vn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),l):n(g)}function l(g){return Qe(g)?ui(e,c)(g):c(g)}function c(g){return xd(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function p(g){return e.attempt(hy,f,f)(g)}function f(g){return Ue(g)?Ke(e,d,"whitespace")(g):d(g)}function d(g){return g===null||Ve(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function dy(e,t,n){return r;function r(u){return Qe(u)?ui(e,i)(u):n(u)}function i(u){return bd(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function a(u){return Ue(u)?Ke(e,o,"whitespace")(u):o(u)}function o(u){return u===null||Ve(u)?t(u):n(u)}}const my={name:"hardBreakEscape",tokenize:gy};function gy(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ve(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const xy={name:"headingAtx",resolve:vy,tokenize:by};function vy(e,t){let n=e.length-2,r=3,i,a;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},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},en(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function by(e,t,n){let r=0;return i;function i(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&r++<6?(e.consume(p),o):p===null||Qe(p)?(e.exit("atxHeadingSequence"),u(p)):n(p)}function u(p){return p===35?(e.enter("atxHeadingSequence"),l(p)):p===null||Ve(p)?(e.exit("atxHeading"),t(p)):Ue(p)?Ke(e,u,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function l(p){return p===35?(e.consume(p),l):(e.exit("atxHeadingSequence"),u(p))}function c(p){return p===null||p===35||Qe(p)?(e.exit("atxHeadingText"),u(p)):(e.consume(p),c)}}const yy=["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"],Xc=["pre","script","style","textarea"],wy={concrete:!0,name:"htmlFlow",resolveTo:ky,tokenize:Ey},Sy={partial:!0,tokenize:Iy},Cy={partial:!0,tokenize:_y};function ky(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 Ey(e,t,n){const r=this;let i,a,o,u,l;return c;function c(T){return p(T)}function p(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),f}function f(T){return T===33?(e.consume(T),d):T===47?(e.consume(T),a=!0,w):T===63?(e.consume(T),i=3,r.interrupt?t:L):Rt(T)?(e.consume(T),o=String.fromCharCode(T),S):n(T)}function d(T){return T===45?(e.consume(T),i=2,g):T===91?(e.consume(T),i=5,u=0,x):Rt(T)?(e.consume(T),i=4,r.interrupt?t:L):n(T)}function g(T){return T===45?(e.consume(T),r.interrupt?t:L):n(T)}function x(T){const me="CDATA[";return T===me.charCodeAt(u++)?(e.consume(T),u===me.length?r.interrupt?t:W:x):n(T)}function w(T){return Rt(T)?(e.consume(T),o=String.fromCharCode(T),S):n(T)}function S(T){if(T===null||T===47||T===62||Qe(T)){const me=T===47,be=o.toLowerCase();return!me&&!a&&Xc.includes(be)?(i=1,r.interrupt?t(T):W(T)):yy.includes(o.toLowerCase())?(i=6,me?(e.consume(T),b):r.interrupt?t(T):W(T)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(T):a?k(T):E(T))}return T===45||Kt(T)?(e.consume(T),o+=String.fromCharCode(T),S):n(T)}function b(T){return T===62?(e.consume(T),r.interrupt?t:W):n(T)}function k(T){return Ue(T)?(e.consume(T),k):P(T)}function E(T){return T===47?(e.consume(T),P):T===58||T===95||Rt(T)?(e.consume(T),O):Ue(T)?(e.consume(T),E):P(T)}function O(T){return T===45||T===46||T===58||T===95||Kt(T)?(e.consume(T),O):y(T)}function y(T){return T===61?(e.consume(T),m):Ue(T)?(e.consume(T),y):E(T)}function m(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),l=T,_):Ue(T)?(e.consume(T),m):V(T)}function _(T){return T===l?(e.consume(T),l=null,M):T===null||Ve(T)?n(T):(e.consume(T),_)}function V(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Qe(T)?y(T):(e.consume(T),V)}function M(T){return T===47||T===62||Ue(T)?E(T):n(T)}function P(T){return T===62?(e.consume(T),j):n(T)}function j(T){return T===null||Ve(T)?W(T):Ue(T)?(e.consume(T),j):n(T)}function W(T){return T===45&&i===2?(e.consume(T),ne):T===60&&i===1?(e.consume(T),ce):T===62&&i===4?(e.consume(T),G):T===63&&i===3?(e.consume(T),L):T===93&&i===5?(e.consume(T),xe):Ve(T)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Sy,ue,$)(T)):T===null||Ve(T)?(e.exit("htmlFlowData"),$(T)):(e.consume(T),W)}function $(T){return e.check(Cy,se,ue)(T)}function se(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),Z}function Z(T){return T===null||Ve(T)?$(T):(e.enter("htmlFlowData"),W(T))}function ne(T){return T===45?(e.consume(T),L):W(T)}function ce(T){return T===47?(e.consume(T),o="",de):W(T)}function de(T){if(T===62){const me=o.toLowerCase();return Xc.includes(me)?(e.consume(T),G):W(T)}return Rt(T)&&o.length<8?(e.consume(T),o+=String.fromCharCode(T),de):W(T)}function xe(T){return T===93?(e.consume(T),L):W(T)}function L(T){return T===62?(e.consume(T),G):T===45&&i===2?(e.consume(T),L):W(T)}function G(T){return T===null||Ve(T)?(e.exit("htmlFlowData"),ue(T)):(e.consume(T),G)}function ue(T){return e.exit("htmlFlow"),t(T)}}function _y(e,t,n){const r=this;return i;function i(o){return Ve(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function Iy(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Wr,t,n)}}const Ty={name:"htmlText",tokenize:Ay};function Ay(e,t,n){const r=this;let i,a,o;return u;function u(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),c):L===47?(e.consume(L),y):L===63?(e.consume(L),E):Rt(L)?(e.consume(L),V):n(L)}function c(L){return L===45?(e.consume(L),p):L===91?(e.consume(L),a=0,x):Rt(L)?(e.consume(L),k):n(L)}function p(L){return L===45?(e.consume(L),g):n(L)}function f(L){return L===null?n(L):L===45?(e.consume(L),d):Ve(L)?(o=f,ce(L)):(e.consume(L),f)}function d(L){return L===45?(e.consume(L),g):f(L)}function g(L){return L===62?ne(L):L===45?d(L):f(L)}function x(L){const G="CDATA[";return L===G.charCodeAt(a++)?(e.consume(L),a===G.length?w:x):n(L)}function w(L){return L===null?n(L):L===93?(e.consume(L),S):Ve(L)?(o=w,ce(L)):(e.consume(L),w)}function S(L){return L===93?(e.consume(L),b):w(L)}function b(L){return L===62?ne(L):L===93?(e.consume(L),b):w(L)}function k(L){return L===null||L===62?ne(L):Ve(L)?(o=k,ce(L)):(e.consume(L),k)}function E(L){return L===null?n(L):L===63?(e.consume(L),O):Ve(L)?(o=E,ce(L)):(e.consume(L),E)}function O(L){return L===62?ne(L):E(L)}function y(L){return Rt(L)?(e.consume(L),m):n(L)}function m(L){return L===45||Kt(L)?(e.consume(L),m):_(L)}function _(L){return Ve(L)?(o=_,ce(L)):Ue(L)?(e.consume(L),_):ne(L)}function V(L){return L===45||Kt(L)?(e.consume(L),V):L===47||L===62||Qe(L)?M(L):n(L)}function M(L){return L===47?(e.consume(L),ne):L===58||L===95||Rt(L)?(e.consume(L),P):Ve(L)?(o=M,ce(L)):Ue(L)?(e.consume(L),M):ne(L)}function P(L){return L===45||L===46||L===58||L===95||Kt(L)?(e.consume(L),P):j(L)}function j(L){return L===61?(e.consume(L),W):Ve(L)?(o=j,ce(L)):Ue(L)?(e.consume(L),j):M(L)}function W(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),i=L,$):Ve(L)?(o=W,ce(L)):Ue(L)?(e.consume(L),W):(e.consume(L),se)}function $(L){return L===i?(e.consume(L),i=void 0,Z):L===null?n(L):Ve(L)?(o=$,ce(L)):(e.consume(L),$)}function se(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Qe(L)?M(L):(e.consume(L),se)}function Z(L){return L===47||L===62||Qe(L)?M(L):n(L)}function ne(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function ce(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),de}function de(L){return Ue(L)?Ke(e,xe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):xe(L)}function xe(L){return e.enter("htmlTextData"),o(L)}}const rl={name:"labelEnd",resolveAll:Oy,resolveTo:Ly,tokenize:Vy},Py={tokenize:Dy},Ny={tokenize:Fy},Ry={tokenize:My};function Oy(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&&en(e,0,e.length,n),e}function Ly(e,t){let n=e.length,r=0,i,a,o,u;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},p={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return u=[["enter",l,t],["enter",c,t]],u=ln(u,e.slice(a+1,a+r+3)),u=ln(u,[["enter",p,t]]),u=ln(u,_s(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),u=ln(u,[["exit",p,t],e[o-2],e[o-1],["exit",c,t]]),u=ln(u,e.slice(o+1)),u=ln(u,[["exit",l,t]]),en(e,a,e.length,u),e}function Vy(e,t,n){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return u;function u(d){return a?a._inactive?f(d):(o=r.parser.defined.includes(vn(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):n(d)}function l(d){return d===40?e.attempt(Py,p,o?p:f)(d):d===91?e.attempt(Ny,p,o?c:f)(d):o?p(d):f(d)}function c(d){return e.attempt(Ry,p,f)(d)}function p(d){return t(d)}function f(d){return a._balanced=!0,n(d)}}function Dy(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return Qe(f)?ui(e,a)(f):a(f)}function a(f){return f===41?p(f):xd(e,o,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Qe(f)?ui(e,l)(f):p(f)}function u(f){return n(f)}function l(f){return f===34||f===39||f===40?bd(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):p(f)}function c(f){return Qe(f)?ui(e,p)(f):p(f)}function p(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Fy(e,t,n){const r=this;return i;function i(u){return vd.call(r,e,a,o,"reference","referenceMarker","referenceString")(u)}function a(u){return r.parser.defined.includes(vn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function o(u){return n(u)}}function My(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const jy={name:"labelStartImage",resolveAll:rl.resolveAll,tokenize:By};function By(e,t,n){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),a}function a(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),o):n(u)}function o(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const zy={name:"labelStartLink",resolveAll:rl.resolveAll,tokenize:$y};function $y(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const wo={name:"lineEnding",tokenize:Hy};function Hy(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ke(e,t,"linePrefix")}}const La={name:"thematicBreak",tokenize:Uy};function Uy(e,t,n){let r=0,i;return a;function a(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,u(c)}function u(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||Ve(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),Ue(c)?Ke(e,u,"whitespace")(c):u(c))}}const Ht={continuation:{tokenize:Jy},exit:Yy,name:"list",tokenize:Ky},qy={partial:!0,tokenize:Xy},Wy={partial:!0,tokenize:Gy};function Ky(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return u;function u(g){const x=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:fu(g)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(La,n,c)(g):c(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(g)}return n(g)}function l(g){return fu(g)&&++o<10?(e.consume(g),l):(!r.interrupt||o<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),c(g)):n(g)}function c(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(Wr,r.interrupt?n:p,e.attempt(qy,d,f))}function p(g){return r.containerState.initialBlankLine=!0,a++,d(g)}function f(g){return Ue(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),d):n(g)}function d(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function Jy(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Wr,i,a);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ke(e,t,"listItemIndent",r.containerState.size+1)(u)}function a(u){return r.containerState.furtherBlankLines||!Ue(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Wy,t,o)(u))}function o(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ke(e,e.attempt(Ht,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function Gy(e,t,n){const r=this;return Ke(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function Yy(e){e.exit(this.containerState.type)}function Xy(e,t,n){const r=this;return Ke(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!Ue(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Qc={name:"setextUnderline",resolveTo:Qy,tokenize:Zy};function Qy(e,t){let n=e.length,r,i,a;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),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function Zy(e,t,n){const r=this;let i;return a;function a(c){let p=r.events.length,f;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){f=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),u(c)}function u(c){return c===i?(e.consume(c),u):(e.exit("setextHeadingLineSequence"),Ue(c)?Ke(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Ve(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const e1={tokenize:r1,partial:!0},Zc="https://github.com/micromark/micromark-extension-mdxjs-esm",t1=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function n1(e){const t={tokenize:i,concrete:!0};if(!e||!e.acorn||!e.acorn.parse)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");const n=e.acorn,r=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}};function i(a,o,u){const l=this,c=l.parser.definedModuleSpecifiers||(l.parser.definedModuleSpecifiers=[]),p=this.events.length+1;let f="";return l.interrupt?u:d;function d(k){return l.now().column>1?u(k):(a.enter("mdxjsEsm"),a.enter("mdxjsEsmData"),a.consume(k),f+=String.fromCharCode(k),g)}function g(k){return Rt(k)?(a.consume(k),f+=String.fromCharCode(k),g):(f==="import"||f==="export")&&k===32?(a.consume(k),x):u(k)}function x(k){return k===null||Ve(k)?(a.exit("mdxjsEsmData"),w(k)):(a.consume(k),x)}function w(k){return k===null?b(k):Ve(k)?a.check(e1,b,S)(k):(a.enter("mdxjsEsmData"),x(k))}function S(k){return a.enter("lineEnding"),a.consume(k),a.exit("lineEnding"),w}function b(k){const E=fd(l.events.slice(p),{acorn:n,acornOptions:r,tokenTypes:["mdxjsEsmData"],prefix:c.length>0?"var "+c.join(",")+`
|
|
33
|
-
`:""});if(E.error){if(k!==null&&E.swallow)return S(k);const y=new rt("Could not parse import/exports with acorn",{cause:E.error,place:{line:E.error.loc.line,column:E.error.loc.column+1,offset:E.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw y.url=Zc+"#could-not-parse-importexports-with-acorn",y}c.length>0&&E.estree.body.shift();let O=-1;for(;++O<E.estree.body.length;){const y=E.estree.body[O];if(!t1.has(y.type)){const m=new rt("Unexpected `"+y.type+"` in code: only import/exports are supported",{place:Oa(y),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw m.url=Zc+"#unexpected-type-in-code-only-importexports-are-supported",m}if(y.type==="ImportDeclaration"&&!l.interrupt){let m=-1;for(;++m<y.specifiers.length;){const _=y.specifiers[m];c.push(_.local.name)}}}return Object.assign(a.exit("mdxjsEsm"),e.addResult?{estree:E.estree}:void 0),o(k)}}}function r1(e,t,n){return r;function r(i){return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.attempt(Wr,t,n)}}const ef={}.hasOwnProperty;function il(e){const t={};let n=-1;for(;++n<e.length;)i1(t,e[n]);return t}function i1(e,t){let n;for(n in t){const i=(ef.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){ef.call(i,o)||(i[o]=[]);const u=a[o];a1(i[o],Array.isArray(u)?u:u?[u]:[])}}}function a1(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);en(e,0,0,r)}function s1(e){const t=Object.assign({acorn:St.extend(hb()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},e);return il([n1(t),Ab(t),Fb(t),Mb()])}const o1={};function u1(e){const t=this,n=e||o1,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(s1(n)),a.push(yv()),o.push(wv(n))}const l1={};function c1(e,t){const n=l1,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return yd(e,r,i)}function yd(e,t,n){if(f1(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 tf(e.children,t,n)}return Array.isArray(e)?tf(e,t,n):""}function tf(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=yd(e[i],t,n);return r.join("")}function f1(e){return!!(e&&typeof e=="object")}function wd(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)}const h1={tokenize:p1};function p1(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Ke(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),a(u)}function a(u){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(u)}function o(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return Ve(u)?(e.consume(u),e.exit("chunkText"),a):(e.consume(u),o)}}const d1={tokenize:m1},nf={tokenize:g1};function m1(e){const t=this,n=[];let r=0,i,a,o;return u;function u(E){if(r<n.length){const O=n[r];return t.containerState=O[1],e.attempt(O[0].continuation,l,c)(E)}return c(E)}function l(E){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&k();const O=t.events.length;let y=O,m;for(;y--;)if(t.events[y][0]==="exit"&&t.events[y][1].type==="chunkFlow"){m=t.events[y][1].end;break}b(r);let _=O;for(;_<t.events.length;)t.events[_][1].end={...m},_++;return en(t.events,y+1,0,t.events.slice(O)),t.events.length=_,c(E)}return u(E)}function c(E){if(r===n.length){if(!i)return d(E);if(i.currentConstruct&&i.currentConstruct.concrete)return x(E);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(nf,p,f)(E)}function p(E){return i&&k(),b(r),d(E)}function f(E){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,x(E)}function d(E){return t.containerState={},e.attempt(nf,g,x)(E)}function g(E){return r++,n.push([t.currentConstruct,t.containerState]),d(E)}function x(E){if(E===null){i&&k(),b(0),e.consume(E);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),w(E)}function w(E){if(E===null){S(e.exit("chunkFlow"),!0),b(0),e.consume(E);return}return Ve(E)?(e.consume(E),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(E),w)}function S(E,O){const y=t.sliceStream(E);if(O&&y.push(null),E.previous=a,a&&(a.next=E),a=E,i.defineSkip(E.start),i.write(y),t.parser.lazy[E.start.line]){let m=i.events.length;for(;m--;)if(i.events[m][1].start.offset<o&&(!i.events[m][1].end||i.events[m][1].end.offset>o))return;const _=t.events.length;let V=_,M,P;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if(M){P=t.events[V][1].end;break}M=!0}for(b(r),m=_;m<t.events.length;)t.events[m][1].end={...P},m++;en(t.events,V+1,0,t.events.slice(_)),t.events.length=m}}function b(E){let O=n.length;for(;O-- >E;){const y=n[O];t.containerState=y[1],y[0].exit.call(t,e)}n.length=E}function k(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function g1(e,t,n){return Ke(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const x1={tokenize:v1};function v1(e){const t=this,n=e.attempt(Wr,r,e.attempt(this.parser.constructs.flowInitial,i,Ke(e,e.attempt(this.parser.constructs.flow,i,e.attempt(sy,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const b1={resolveAll:Cd()},y1=Sd("string"),w1=Sd("text");function Sd(e){return{resolveAll:Cd(e==="text"?S1:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,u);return o;function o(p){return c(p)?a(p):u(p)}function u(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),l}function l(p){return c(p)?(n.exit("data"),a(p)):(n.consume(p),l)}function c(p){if(p===null)return!0;const f=i[p];let d=-1;if(f)for(;++d<f.length;){const g=f[d];if(!g.previous||g.previous.call(r,r.previous))return!0}return!1}}}function Cd(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function S1(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 a=i.length,o=-1,u=0,l;for(;a--;){const c=i[a];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)u++,o--;if(o)break;o=-1}else if(c===-2)l=!0,u++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const c={type:n===e.length||l||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const C1={42:Ht,43:Ht,45:Ht,48:Ht,49:Ht,50:Ht,51:Ht,52:Ht,53:Ht,54:Ht,55:Ht,56:Ht,57:Ht,62:pd},k1={91:fy},E1={[-2]:yo,[-1]:yo,32:yo},_1={35:xy,42:La,45:[Qc,La],60:wy,61:Qc,95:La,96:Yc,126:Yc},I1={38:md,92:dd},T1={[-5]:wo,[-4]:wo,[-3]:wo,33:jy,38:md,42:hu,60:[zb,Ty],91:zy,92:[my,dd],93:rl,95:hu,96:ey},A1={null:[hu,b1]},P1={null:[42,95]},N1={null:[]},R1=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:P1,contentInitial:k1,disable:N1,document:C1,flow:_1,flowInitial:E1,insideSpan:A1,string:I1,text:T1},Symbol.toStringTag,{value:"Module"}));function O1(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={},a=[];let o=[],u=[];const l={attempt:_(y),check:_(m),consume:k,enter:E,exit:O,interrupt:_(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:w,events:[],now:x,parser:e,previous:null,sliceSerialize:d,sliceStream:g,write:f};let p=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function f(j){return o=ln(o,j),S(),o[o.length-1]!==null?[]:(V(t,0),c.events=_s(a,c.events,c),c.events)}function d(j,W){return V1(g(j),W)}function g(j){return L1(o,j)}function x(){const{_bufferIndex:j,_index:W,line:$,column:se,offset:Z}=r;return{_bufferIndex:j,_index:W,line:$,column:se,offset:Z}}function w(j){i[j.line]=j.column,P()}function S(){let j;for(;r._index<o.length;){const W=o[r._index];if(typeof W=="string")for(j=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===j&&r._bufferIndex<W.length;)b(W.charCodeAt(r._bufferIndex));else b(W)}}function b(j){p=p(j)}function k(j){Ve(j)?(r.line++,r.column=1,r.offset+=j===-3?2:1,P()):j!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=j}function E(j,W){const $=W||{};return $.type=j,$.start=x(),c.events.push(["enter",$,c]),u.push($),$}function O(j){const W=u.pop();return W.end=x(),c.events.push(["exit",W,c]),W}function y(j,W){V(j,W.from)}function m(j,W){W.restore()}function _(j,W){return $;function $(se,Z,ne){let ce,de,xe,L;return Array.isArray(se)?ue(se):"tokenize"in se?ue([se]):G(se);function G(Se){return J;function J(U){const Q=U!==null&&Se[U],ie=U!==null&&Se.null,oe=[...Array.isArray(Q)?Q:Q?[Q]:[],...Array.isArray(ie)?ie:ie?[ie]:[]];return ue(oe)(U)}}function ue(Se){return ce=Se,de=0,Se.length===0?ne:T(Se[de])}function T(Se){return J;function J(U){return L=M(),xe=Se,Se.partial||(c.currentConstruct=Se),Se.name&&c.parser.constructs.disable.null.includes(Se.name)?be():Se.tokenize.call(W?Object.assign(Object.create(c),W):c,l,me,be)(U)}}function me(Se){return j(xe,L),Z}function be(Se){return L.restore(),++de<ce.length?T(ce[de]):ne}}}function V(j,W){j.resolveAll&&!a.includes(j)&&a.push(j),j.resolve&&en(c.events,W,c.events.length-W,j.resolve(c.events.slice(W),c)),j.resolveTo&&(c.events=j.resolveTo(c.events,c))}function M(){const j=x(),W=c.previous,$=c.currentConstruct,se=c.events.length,Z=Array.from(u);return{from:se,restore:ne};function ne(){r=j,c.previous=W,c.currentConstruct=$,c.events.length=se,u=Z,P()}}function P(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function L1(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const u=o[0];typeof u=="string"?o[0]=u.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function V1(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
|
|
34
|
-
`;break}case-3:{o=`\r
|
|
35
|
-
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}function D1(e){const r={constructs:il([R1,...(e||{}).extensions||[]]),content:i(h1),defined:[],document:i(d1),flow:i(x1),lazy:{},string:i(y1),text:i(w1)};return r;function i(a){return o;function o(u){return O1(r,a,u)}}}function F1(e){for(;!gd(e););return e}const rf=/[\0\t\n\r]/g;function M1(){let e=1,t="",n=!0,r;return i;function i(a,o,u){const l=[];let c,p,f,d,g;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),f=0,t="",n&&(a.charCodeAt(0)===65279&&f++,n=void 0);f<a.length;){if(rf.lastIndex=f,c=rf.exec(a),d=c&&c.index!==void 0?c.index:a.length,g=a.charCodeAt(d),!c){t=a.slice(f);break}if(g===10&&f===d&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<d&&(l.push(a.slice(f,d)),e+=d-f),g){case 0:{l.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,l.push(-2);e++<p;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}f=d+1}return u&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const j1=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function kd(e){return e.replace(j1,B1)}function B1(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return wd(n.slice(a?2:1),a?16:10)}return xi(n)||e}const Ed={}.hasOwnProperty;function z1(e,t,n){return typeof t!="string"&&(n=t,t=void 0),$1(n)(F1(D1(n).document().write(M1()(e,t,!0))))}function $1(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Ee),autolinkProtocol:M,autolinkEmail:M,atxHeading:a(q),blockQuote:a(ie),characterEscape:M,characterReference:M,codeFenced:a(oe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(oe,o),codeText:a(re,o),codeTextData:M,data:M,codeFlowValue:M,definition:a(K),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Y),hardBreakEscape:a(ee),hardBreakTrailing:a(ee),htmlFlow:a(he,o),htmlFlowData:M,htmlText:a(he,o),htmlTextData:M,image:a(Ce),label:o,link:a(Ee),listItem:a(Fe),listItemValue:d,listOrdered:a(Te,f),listUnordered:a(Te),paragraph:a(ye),reference:T,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(q),strong:a(Re),thematicBreak:a(Ge)},exit:{atxHeading:l(),atxHeadingSequence:y,autolink:l(),autolinkEmail:Q,autolinkProtocol:U,blockQuote:l(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:Se,characterReference:J,codeFenced:l(S),codeFencedFence:w,codeFencedFenceInfo:g,codeFencedFenceMeta:x,codeFlowValue:P,codeIndented:l(b),codeText:l(Z),codeTextData:P,data:P,definition:l(),definitionDestinationString:O,definitionLabelString:k,definitionTitleString:E,emphasis:l(),hardBreakEscape:l(W),hardBreakTrailing:l(W),htmlFlow:l($),htmlFlowData:P,htmlText:l(se),htmlTextData:P,image:l(ce),label:xe,labelText:de,lineEnding:j,link:l(ne),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:me,resourceDestinationString:L,resourceTitleString:G,resource:ue,setextHeading:l(V),setextHeadingLineSequence:_,setextHeadingText:m,strong:l(),thematicBreak:l()}};_d(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ae){let le={type:"root",children:[]};const A={stack:[le],tokenStack:[],config:t,enter:u,exit:c,buffer:o,resume:p,data:n},Me=[];let Xe=-1;for(;++Xe<ae.length;)if(ae[Xe][1].type==="listOrdered"||ae[Xe][1].type==="listUnordered")if(ae[Xe][0]==="enter")Me.push(Xe);else{const yt=Me.pop();Xe=i(ae,yt,Xe)}for(Xe=-1;++Xe<ae.length;){const yt=t[ae[Xe][0]];Ed.call(yt,ae[Xe][1].type)&&yt[ae[Xe][1].type].call(Object.assign({sliceSerialize:ae[Xe][2].sliceSerialize},A),ae[Xe][1])}if(A.tokenStack.length>0){const yt=A.tokenStack[A.tokenStack.length-1];(yt[1]||af).call(A,void 0,yt[0])}for(le.position={start:Un(ae.length>0?ae[0][1].start:{line:1,column:1,offset:0}),end:Un(ae.length>0?ae[ae.length-2][1].end:{line:1,column:1,offset:0})},Xe=-1;++Xe<t.transforms.length;)le=t.transforms[Xe](le)||le;return le}function i(ae,le,A){let Me=le-1,Xe=-1,yt=!1,_e,Ot,An,Lt;for(;++Me<=A;){const gt=ae[Me];switch(gt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{gt[0]==="enter"?Xe++:Xe--,Lt=void 0;break}case"lineEndingBlank":{gt[0]==="enter"&&(_e&&!Lt&&!Xe&&!An&&(An=Me),Lt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Lt=void 0}if(!Xe&>[0]==="enter"&>[1].type==="listItemPrefix"||Xe===-1&>[0]==="exit"&&(gt[1].type==="listUnordered"||gt[1].type==="listOrdered")){if(_e){let rn=Me;for(Ot=void 0;rn--;){const Vt=ae[rn];if(Vt[1].type==="lineEnding"||Vt[1].type==="lineEndingBlank"){if(Vt[0]==="exit")continue;Ot&&(ae[Ot][1].type="lineEndingBlank",yt=!0),Vt[1].type="lineEnding",Ot=rn}else if(!(Vt[1].type==="linePrefix"||Vt[1].type==="blockQuotePrefix"||Vt[1].type==="blockQuotePrefixWhitespace"||Vt[1].type==="blockQuoteMarker"||Vt[1].type==="listItemIndent"))break}An&&(!Ot||An<Ot)&&(_e._spread=!0),_e.end=Object.assign({},Ot?ae[Ot][1].start:gt[1].end),ae.splice(Ot||Me,0,["exit",_e,gt[2]]),Me++,A++}if(gt[1].type==="listItemPrefix"){const rn={type:"listItem",_spread:!1,start:Object.assign({},gt[1].start),end:void 0};_e=rn,ae.splice(Me,0,["enter",rn,gt[2]]),Me++,A++,An=void 0,Lt=!0}}}return ae[le][1]._spread=yt,A}function a(ae,le){return A;function A(Me){u.call(this,ae(Me),Me),le&&le.call(this,Me)}}function o(){this.stack.push({type:"fragment",children:[]})}function u(ae,le,A){this.stack[this.stack.length-1].children.push(ae),this.stack.push(ae),this.tokenStack.push([le,A||void 0]),ae.position={start:Un(le.start),end:void 0}}function l(ae){return le;function le(A){ae&&ae.call(this,A),c.call(this,A)}}function c(ae,le){const A=this.stack.pop(),Me=this.tokenStack.pop();if(Me)Me[0].type!==ae.type&&(le?le.call(this,ae,Me[0]):(Me[1]||af).call(this,ae,Me[0]));else throw new Error("Cannot close `"+ae.type+"` ("+Rn({start:ae.start,end:ae.end})+"): it’s not open");A.position.end=Un(ae.end)}function p(){return c1(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(ae){if(this.data.expectingFirstListItemValue){const le=this.stack[this.stack.length-2];le.start=Number.parseInt(this.sliceSerialize(ae),10),this.data.expectingFirstListItemValue=void 0}}function g(){const ae=this.resume(),le=this.stack[this.stack.length-1];le.lang=ae}function x(){const ae=this.resume(),le=this.stack[this.stack.length-1];le.meta=ae}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const ae=this.resume(),le=this.stack[this.stack.length-1];le.value=ae.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const ae=this.resume(),le=this.stack[this.stack.length-1];le.value=ae.replace(/(\r?\n|\r)$/g,"")}function k(ae){const le=this.resume(),A=this.stack[this.stack.length-1];A.label=le,A.identifier=vn(this.sliceSerialize(ae)).toLowerCase()}function E(){const ae=this.resume(),le=this.stack[this.stack.length-1];le.title=ae}function O(){const ae=this.resume(),le=this.stack[this.stack.length-1];le.url=ae}function y(ae){const le=this.stack[this.stack.length-1];if(!le.depth){const A=this.sliceSerialize(ae).length;le.depth=A}}function m(){this.data.setextHeadingSlurpLineEnding=!0}function _(ae){const le=this.stack[this.stack.length-1];le.depth=this.sliceSerialize(ae).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function M(ae){const A=this.stack[this.stack.length-1].children;let Me=A[A.length-1];(!Me||Me.type!=="text")&&(Me=De(),Me.position={start:Un(ae.start),end:void 0},A.push(Me)),this.stack.push(Me)}function P(ae){const le=this.stack.pop();le.value+=this.sliceSerialize(ae),le.position.end=Un(ae.end)}function j(ae){const le=this.stack[this.stack.length-1];if(this.data.atHardBreak){const A=le.children[le.children.length-1];A.position.end=Un(ae.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(le.type)&&(M.call(this,ae),P.call(this,ae))}function W(){this.data.atHardBreak=!0}function $(){const ae=this.resume(),le=this.stack[this.stack.length-1];le.value=ae}function se(){const ae=this.resume(),le=this.stack[this.stack.length-1];le.value=ae}function Z(){const ae=this.resume(),le=this.stack[this.stack.length-1];le.value=ae}function ne(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=le,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function ce(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=le,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function de(ae){const le=this.sliceSerialize(ae),A=this.stack[this.stack.length-2];A.label=kd(le),A.identifier=vn(le).toLowerCase()}function xe(){const ae=this.stack[this.stack.length-1],le=this.resume(),A=this.stack[this.stack.length-1];if(this.data.inReference=!0,A.type==="link"){const Me=ae.children;A.children=Me}else A.alt=le}function L(){const ae=this.resume(),le=this.stack[this.stack.length-1];le.url=ae}function G(){const ae=this.resume(),le=this.stack[this.stack.length-1];le.title=ae}function ue(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function me(ae){const le=this.resume(),A=this.stack[this.stack.length-1];A.label=le,A.identifier=vn(this.sliceSerialize(ae)).toLowerCase(),this.data.referenceType="full"}function be(ae){this.data.characterReferenceType=ae.type}function Se(ae){const le=this.sliceSerialize(ae),A=this.data.characterReferenceType;let Me;A?(Me=wd(le,A==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Me=xi(le);const Xe=this.stack[this.stack.length-1];Xe.value+=Me}function J(ae){const le=this.stack.pop();le.position.end=Un(ae.end)}function U(ae){P.call(this,ae);const le=this.stack[this.stack.length-1];le.url=this.sliceSerialize(ae)}function Q(ae){P.call(this,ae);const le=this.stack[this.stack.length-1];le.url="mailto:"+this.sliceSerialize(ae)}function ie(){return{type:"blockquote",children:[]}}function oe(){return{type:"code",lang:null,meta:null,value:""}}function re(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Y(){return{type:"emphasis",children:[]}}function q(){return{type:"heading",depth:0,children:[]}}function ee(){return{type:"break"}}function he(){return{type:"html",value:""}}function Ce(){return{type:"image",title:null,url:"",alt:null}}function Ee(){return{type:"link",title:null,url:"",children:[]}}function Te(ae){return{type:"list",ordered:ae.type==="listOrdered",start:null,spread:ae._spread,children:[]}}function Fe(ae){return{type:"listItem",spread:ae._spread,checked:null,children:[]}}function ye(){return{type:"paragraph",children:[]}}function Re(){return{type:"strong",children:[]}}function De(){return{type:"text",value:""}}function Ge(){return{type:"thematicBreak"}}}function Un(e){return{line:e.line,column:e.column,offset:e.offset}}function _d(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?_d(e,r):H1(e,r)}}function H1(e,t){let n;for(n in t)if(Ed.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 af(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Rn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Rn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Rn({start:t.start,end:t.end})+") is still open")}function U1(e){const t=this;t.parser=n;function n(r){return z1(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const sf={}.hasOwnProperty;function q1(e,t){const n=t||{};function r(i,...a){let o=r.invalid;const u=r.handlers;if(i&&sf.call(i,e)){const l=String(i[e]);o=sf.call(u,l)?u[l]:r.unknown}if(o)return o.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const W1={}.hasOwnProperty;function Id(e,t){let n=-1,r;if(t.extensions)for(;++n<t.extensions.length;)Id(e,t.extensions[n]);for(r in t)if(W1.call(t,r))switch(r){case"extensions":break;case"unsafe":{of(e[r],t[r]);break}case"join":{of(e[r],t[r]);break}case"handlers":{K1(e[r],t[r]);break}default:e.options[r]=t[r]}return e}function of(e,t){t&&e.push(...t)}function K1(e,t){t&&Object.assign(e,t)}function J1(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const o=n.indentLines(n.containerFlow(e,a.current()),G1);return i(),o}function G1(e,t,n){return">"+(n?"":" ")+e}function Td(e,t){return uf(e,t.inConstruct,!0)&&!uf(e,t.notInConstruct,!1)}function uf(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function lf(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
36
|
-
`&&Td(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
37
|
-
`}function Y1(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function pu(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function X1(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Q1(e,t,n,r){const i=X1(n),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(pu(e,n)){const f=n.enter("codeIndented"),d=n.indentLines(a,Z1);return f(),d}const u=n.createTracker(r),l=i.repeat(Math.max(Y1(a,i)+1,3)),c=n.enter("codeFenced");let p=u.move(l);if(e.lang){const f=n.enter(`codeFencedLang${o}`);p+=u.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...u.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${o}`);p+=u.move(" "),p+=u.move(n.safe(e.meta,{before:p,after:`
|
|
38
|
-
`,encode:["`"],...u.current()})),f()}return p+=u.move(`
|
|
39
|
-
`),a&&(p+=u.move(a+`
|
|
40
|
-
`)),p+=u.move(l),c(),p}function Z1(e,t,n){return(n?"":" ")+e}function al(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ew(e,t,n,r){const i=al(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let u=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(u=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":`
|
|
41
|
-
`,...l.current()}))),u(),e.title&&(u=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),u()),o(),c}function tw(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Yn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ya(e,t,n){const r=jr(e),i=jr(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ad.peek=nw;function Ad(e,t,n,r){const i=tw(n),a=n.enter("emphasis"),o=n.createTracker(r),u=o.move(i);let l=o.move(n.containerPhrasing(e,{after:i,before:u,...o.current()}));const c=l.charCodeAt(0),p=Ya(r.before.charCodeAt(r.before.length-1),c,i);p.inside&&(l=Yn(c)+l.slice(1));const f=l.charCodeAt(l.length-1),d=Ya(r.after.charCodeAt(0),f,i);d.inside&&(l=l.slice(0,-1)+Yn(f));const g=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:d.outside,before:p.outside},u+l+g}function nw(e,t,n){return n.options.emphasis||"*"}const Is=(function(e){if(e==null)return sw;if(typeof e=="function")return Ts(e);if(typeof e=="object")return Array.isArray(e)?rw(e):iw(e);if(typeof e=="string")return aw(e);throw new Error("Expected function, string, or object as test")});function rw(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Is(e[n]);return Ts(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function iw(e){const t=e;return Ts(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function aw(e){return Ts(t);function t(n){return n&&n.type===e}}function Ts(e){return t;function t(n,r,i){return!!(ow(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function sw(){return!0}function ow(e){return e!==null&&typeof e=="object"&&"type"in e}const Pd=[],uw=!0,du=!1,lw="skip";function Nd(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=Is(i),o=r?-1:1;u(e,void 0,[])();function u(l,c,p){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const g=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(g?"<"+g+">":""))+")"})}return d;function d(){let g=Pd,x,w,S;if((!t||a(l,c,p[p.length-1]||void 0))&&(g=cw(n(l,p)),g[0]===du))return g;if("children"in l&&l.children){const b=l;if(b.children&&g[0]!==lw)for(w=(r?b.children.length:-1)+o,S=p.concat(b);w>-1&&w<b.children.length;){const k=b.children[w];if(x=u(k,w,S)(),x[0]===du)return x;w=typeof x[1]=="number"?x[1]:w+o}}return g}}}function cw(e){return Array.isArray(e)?e:typeof e=="number"?[uw,e]:e==null?Pd:[e]}function fw(e,t,n,r){let i,a,o;typeof t=="function"&&typeof n!="function"?(a=void 0,o=t,i=n):(a=t,o=n,i=r),Nd(e,a,u,i);function u(l,c){const p=c[c.length-1],f=p?p.children.indexOf(l):void 0;return o(l,f,p)}}const hw={};function Rd(e,t){const n=hw,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Od(e,r,i)}function Od(e,t,n){if(pw(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 cf(e.children,t,n)}return Array.isArray(e)?cf(e,t,n):""}function cf(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Od(e[i],t,n);return r.join("")}function pw(e){return!!(e&&typeof e=="object")}function Ld(e,t){let n=!1;return fw(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,du}),!!((!e.depth||e.depth<3)&&Rd(e)&&(t.options.setext||n))}function dw(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Ld(e,n)){const p=n.enter("headingSetext"),f=n.enter("phrasing"),d=n.containerPhrasing(e,{...a.current(),before:`
|
|
42
|
-
`,after:`
|
|
43
|
-
`});return f(),p(),d+`
|
|
44
|
-
`+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
|
|
45
|
-
`))+1))}const o="#".repeat(i),u=n.enter("headingAtx"),l=n.enter("phrasing");a.move(o+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
|
|
46
|
-
`,...a.current()});return/^[\t ]/.test(c)&&(c=Yn(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),u(),c}Vd.peek=mw;function Vd(e){return e.value||""}function mw(){return"<"}Dd.peek=gw;function Dd(e,t,n,r){const i=al(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let u=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(u=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),u(),e.title&&(u=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),u()),c+=l.move(")"),o(),c}function gw(){return"!"}Fd.peek=xw;function Fd(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const u=n.createTracker(r);let l=u.move("![");const c=n.safe(e.alt,{before:l,after:"]",...u.current()});l+=u.move(c+"]["),o();const p=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...u.current()});return o(),n.stack=p,a(),i==="full"||!c||c!==f?l+=u.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=u.move("]"),l}function xw(){return"!"}Md.peek=vw;function Md(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const o=n.unsafe[a],u=n.compilePattern(o);let l;if(o.atBreak)for(;l=u.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function vw(){return"`"}function jd(e,t){const n=Rd(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Bd.peek=bw;function Bd(e,t,n,r){const i=al(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let u,l;if(jd(e,n)){const p=n.stack;n.stack=[],u=n.enter("autolink");let f=o.move("<");return f+=o.move(n.containerPhrasing(e,{before:f,after:">",...o.current()})),f+=o.move(">"),u(),n.stack=p,f}u=n.enter("link"),l=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),l()),c+=o.move(")"),u(),c}function bw(e,t,n){return jd(e,n)?"<":"["}zd.peek=yw;function zd(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const u=n.createTracker(r);let l=u.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...u.current()});l+=u.move(c+"]["),o();const p=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...u.current()});return o(),n.stack=p,a(),i==="full"||!c||c!==f?l+=u.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=u.move("]"),l}function yw(){return"["}function sl(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ww(e){const t=sl(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Sw(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function $d(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Cw(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?Sw(n):sl(n);const u=e.ordered?o==="."?")":".":ww(n);let l=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),$d(n)===o&&p){let f=-1;for(;++f<e.children.length;){const d=e.children[f];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=u),n.bulletCurrent=o;const c=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),c}function kw(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Ew(e,t,n,r){const i=kw(n);let a=n.bulletCurrent||sl(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const u=n.createTracker(r);u.move(a+" ".repeat(o-a.length)),u.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,u.current()),p);return l(),c;function p(f,d,g){return d?(g?"":" ".repeat(o))+f:(g?a:a+" ".repeat(o-a.length))+f}}function _w(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o}const Iw=Is(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Tw(e,t,n,r){return(e.children.some(function(o){return Iw(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Aw(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Hd.peek=Pw;function Hd(e,t,n,r){const i=Aw(n),a=n.enter("strong"),o=n.createTracker(r),u=o.move(i+i);let l=o.move(n.containerPhrasing(e,{after:i,before:u,...o.current()}));const c=l.charCodeAt(0),p=Ya(r.before.charCodeAt(r.before.length-1),c,i);p.inside&&(l=Yn(c)+l.slice(1));const f=l.charCodeAt(l.length-1),d=Ya(r.after.charCodeAt(0),f,i);d.inside&&(l=l.slice(0,-1)+Yn(f));const g=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:d.outside,before:p.outside},u+l+g}function Pw(e,t,n){return n.options.strong||"*"}function Nw(e,t,n,r){return n.safe(e.value,r)}function Rw(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Ow(e,t,n){const r=($d(n)+(n.options.ruleSpaces?" ":"")).repeat(Rw(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ol={blockquote:J1,break:lf,code:Q1,definition:ew,emphasis:Ad,hardBreak:lf,heading:dw,html:Vd,image:Dd,imageReference:Fd,inlineCode:Md,link:Bd,linkReference:zd,list:Cw,listItem:Ew,paragraph:_w,root:Tw,strong:Hd,text:Nw,thematicBreak:Ow},Lw=[Vw];function Vw(e,t,n,r){if(t.type==="code"&&pu(t,r)&&(e.type==="list"||e.type===t.type&&pu(e,r)))return!1;if("spread"in n&&typeof n.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&Ld(t,r))?void 0:n.spread?1:0}const hr=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],Dw=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
|
|
47
|
-
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:hr},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
|
|
48
|
-
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:hr},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
|
|
49
|
-
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:hr},{atBreak:!0,character:"+",after:`(?:[ \r
|
|
50
|
-
])`},{atBreak:!0,character:"-",after:`(?:[ \r
|
|
51
|
-
-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
|
|
52
|
-
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:hr},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:hr},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:hr},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:hr},{atBreak:!0,character:"~"}];function Fw(e){return e.label||!e.identifier?e.label||"":kd(e.identifier)}function Mw(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function jw(e,t,n){const r=t.indexStack,i=e.children||[],a=[];let o=-1,u=n.before,l;r.push(-1);let c=t.createTracker(n);for(;++o<i.length;){const p=i[o];let f;if(r[r.length-1]=o,o+1<i.length){let x=t.handle.handlers[i[o+1].type];x&&x.peek&&(x=x.peek),f=x?x(i[o+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else f=n.after;a.length>0&&(u==="\r"||u===`
|
|
53
|
-
`)&&p.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),u=" ",c=t.createTracker(n),c.move(a.join("")));let d=t.handle(p,e,t,{...c.current(),after:f,before:u});l&&l===d.slice(0,1)&&(d=Yn(l.charCodeAt(0))+d.slice(1));const g=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,l=void 0,g&&(a.length>0&&g.before&&u===a[a.length-1].slice(-1)&&(a[a.length-1]=a[a.length-1].slice(0,-1)+Yn(u.charCodeAt(0))),g.after&&(l=f)),c.move(d),a.push(d),u=d.slice(-1)}return r.pop(),a.join("")}function Bw(e,t,n){const r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[];let u=-1;for(r.push(-1);++u<i.length;){const l=i[u];r[r.length-1]=u,o.push(a.move(t.handle(l,e,t,{before:`
|
|
54
|
-
`,after:`
|
|
55
|
-
`,...a.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),u<i.length-1&&o.push(a.move(zw(l,i[u+1],e,t)))}return r.pop(),o.join("")}function zw(e,t,n,r){let i=r.join.length;for(;i--;){const a=r.join[i](e,t,n,r);if(a===!0||a===1)break;if(typeof a=="number")return`
|
|
56
|
-
`.repeat(1+a);if(a===!1)return`
|
|
57
|
-
|
|
58
|
-
<!---->
|
|
59
|
-
|
|
60
|
-
`}return`
|
|
61
|
-
|
|
62
|
-
`}const $w=/\r?\n|\r/g;function Hw(e,t){const n=[];let r=0,i=0,a;for(;a=$w.exec(e);)o(e.slice(r,a.index)),n.push(a[0]),r=a.index+a[0].length,i++;return o(e.slice(r)),n.join("");function o(u){n.push(t(u,i,!u))}}function Uw(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],a=[],o={};let u=-1;for(;++u<e.unsafe.length;){const p=e.unsafe[u];if(!Td(e.stack,p))continue;const f=e.compilePattern(p);let d;for(;d=f.exec(r);){const g="before"in p||!!p.atBreak,x="after"in p,w=d.index+(g?d[1].length:0);i.includes(w)?(o[w].before&&!g&&(o[w].before=!1),o[w].after&&!x&&(o[w].after=!1)):(i.push(w),o[w]={before:g,after:x})}}i.sort(qw);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(u=-1;++u<i.length;){const p=i[u];p<l||p>=c||p+1<c&&i[u+1]===p+1&&o[p].after&&!o[p+1].before&&!o[p+1].after||i[u-1]===p-1&&o[p].before&&!o[p-1].before&&!o[p-1].after||(l!==p&&a.push(ff(r.slice(l,p),"\\")),l=p,/[!-/:-@[-`{-~]/.test(r.charAt(p))&&(!n.encode||!n.encode.includes(r.charAt(p)))?a.push("\\"):(a.push(Yn(r.charCodeAt(p))),l++))}return a.push(ff(r.slice(l,c),n.after)),a.join("")}function qw(e,t){return e-t}function ff(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],a=e+t;let o=-1,u=0,l;for(;l=n.exec(a);)r.push(l.index);for(;++o<r.length;)u!==r[o]&&i.push(e.slice(u,r[o])),i.push("\\"),u=r[o];return i.push(e.slice(u)),i.join("")}function Ww(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,a=n.column||1;return{move:l,current:o,shift:u};function o(){return{now:{line:i,column:a},lineShift:r}}function u(c){r+=c}function l(c){const p=c||"",f=p.split(/\r?\n|\r/g),d=f[f.length-1];return i+=f.length-1,a=f.length===1?a+d.length:1+d.length+r,p}}function Kw(e,t){const n=t||{},r={associationId:Fw,containerPhrasing:Xw,containerFlow:Qw,createTracker:Ww,compilePattern:Mw,enter:a,handlers:{...ol},handle:void 0,indentLines:Hw,indexStack:[],join:[...Lw],options:{},safe:Zw,stack:[],unsafe:[...Dw]};Id(r,n),r.options.tightDefinitions&&r.join.push(Yw),r.handle=q1("type",{invalid:Jw,unknown:Gw,handlers:r.handlers});let i=r.handle(e,void 0,r,{before:`
|
|
63
|
-
`,after:`
|
|
64
|
-
`,now:{line:1,column:1},lineShift:0});return i&&i.charCodeAt(i.length-1)!==10&&i.charCodeAt(i.length-1)!==13&&(i+=`
|
|
65
|
-
`),i;function a(o){return r.stack.push(o),u;function u(){r.stack.pop()}}}function Jw(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function Gw(e){const t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function Yw(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function Xw(e,t){return jw(e,this,t)}function Qw(e,t){return Bw(e,this,t)}function Zw(e,t){return Uw(this,e,t)}function eS(e){const t=this;t.compiler=n;function n(r){return Kw(r,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function hf(e){if(e)throw e}var So,pf;function tS(){if(pf)return So;pf=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},a=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var p=e.call(c,"constructor"),f=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!p&&!f)return!1;var d;for(d in c);return typeof d>"u"||e.call(c,d)},o=function(c,p){n&&p.name==="__proto__"?n(c,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):c[p.name]=p.newValue},u=function(c,p){if(p==="__proto__")if(e.call(c,p)){if(r)return r(c,p).value}else return;return c[p]};return So=function l(){var c,p,f,d,g,x,w=arguments[0],S=1,b=arguments.length,k=!1;for(typeof w=="boolean"&&(k=w,w=arguments[1]||{},S=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});S<b;++S)if(c=arguments[S],c!=null)for(p in c)f=u(w,p),d=u(c,p),w!==d&&(k&&d&&(a(d)||(g=i(d)))?(g?(g=!1,x=f&&i(f)?f:[]):x=f&&a(f)?f:{},o(w,{name:p,newValue:l(k,x,d)})):typeof d<"u"&&o(w,{name:p,newValue:d}));return w},So}var nS=tS();const Co=Li(nS);function mu(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 rS(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);u(null,...i);function u(l,...c){const p=e[++a];let f=-1;if(l){o(l);return}for(;++f<i.length;)(c[f]===null||c[f]===void 0)&&(c[f]=i[f]);i=c,p?iS(p,u)(...c):o(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function iS(e,t){let n;return r;function r(...o){const u=e.length>o.length;let l;u&&o.push(i);try{l=e.apply(this,o)}catch(c){const p=c;if(u&&n)throw p;return i(p)}u||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...u){n||(n=!0,t(o,...u))}function a(o){i(null,o)}}const wn={basename:aS,dirname:sS,extname:oS,join:uS,sep:"/"};function aS(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Vi(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function sS(e){if(Vi(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 oS(e){Vi(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const u=e.codePointAt(t);if(u===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),u===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function uS(...e){let t=-1,n;for(;++t<e.length;)Vi(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":lS(n)}function lS(e){Vi(e);const t=e.codePointAt(0)===47;let n=cS(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function cS(e,t){let n="",r=0,i=-1,a=0,o=-1,u,l;for(;++o<=e.length;){if(o<e.length)u=e.codePointAt(o);else{if(u===47)break;u=47}if(u===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else u===46&&a>-1?a++:a=-1}return n}function Vi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const fS={cwd:hS};function hS(){return"/"}function gu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function pS(e){if(typeof e=="string")e=new URL(e);else if(!gu(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 dS(e)}function dS(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 ko=["history","path","basename","stem","extname","dirname"];class mS{constructor(t){let n;t?gu(t)?n={path:t}:typeof t=="string"||gS(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":fS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ko.length;){const a=ko[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)ko.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?wn.basename(this.path):void 0}set basename(t){_o(t,"basename"),Eo(t,"basename"),this.path=wn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?wn.dirname(this.path):void 0}set dirname(t){df(this.basename,"dirname"),this.path=wn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?wn.extname(this.path):void 0}set extname(t){if(Eo(t,"extname"),df(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=wn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){gu(t)&&(t=pS(t)),_o(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?wn.basename(this.path,this.extname):void 0}set stem(t){_o(t,"stem"),Eo(t,"stem"),this.path=wn.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 rt(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 Eo(e,t){if(e&&e.includes(wn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+wn.sep+"`")}function _o(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function df(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function gS(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const xS=(function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),vS={}.hasOwnProperty;class ul extends xS{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=rS()}copy(){const t=new ul;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Co(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ao("data",this.frozen),this.namespace[t]=n,this):vS.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ao("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=pa(t),r=this.parser||this.Parser;return Io("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Io("process",this.parser||this.Parser),To("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,o){const u=pa(t),l=r.parse(u);r.run(l,u,function(p,f,d){if(p||!f||!d)return c(p);const g=f,x=r.stringify(g,d);wS(x)?d.value=x:d.result=x,c(p,d)});function c(p,f){p||!f?o(p):a?a(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Io("processSync",this.parser||this.Parser),To("processSync",this.compiler||this.Compiler),this.process(t,i),gf("processSync","process",n),r;function i(a,o){n=!0,hf(a),r=o}}run(t,n,r){mf(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(o,u){const l=pa(n);i.run(t,l,c);function c(p,f,d){const g=f||t;p?u(p):o?o(g):r(void 0,g,d)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),gf("runSync","run",r),i;function a(o,u){hf(o),i=u,r=!0}}stringify(t,n){this.freeze();const r=pa(n),i=this.compiler||this.Compiler;return To("stringify",i),mf(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Ao("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[p,...f]=c;l(p,f)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))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");u(c.plugins),c.settings&&(i.settings=Co(!0,i.settings,c.settings))}function u(c){let p=-1;if(c!=null)if(Array.isArray(c))for(;++p<c.length;){const f=c[p];a(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,p){let f=-1,d=-1;for(;++f<r.length;)if(r[f][0]===c){d=f;break}if(d===-1)r.push([c,...p]);else if(p.length>0){let[g,...x]=p;const w=r[d][1];mu(w)&&mu(g)&&(g=Co(!0,w,g)),r[d]=[c,g,...x]}}}}const bS=new ul().freeze();function Io(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function To(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ao(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 mf(e){if(!mu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function gf(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function pa(e){return yS(e)?e:new mS(e)}function yS(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function wS(e){return typeof e=="string"||SS(e)}function SS(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const CS=bS().use(U1).use(eS).freeze();function kS(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ES(e,t,n){const i=Is((n||{}).ignore||[]),a=_S(t);let o=-1;for(;++o<a.length;)Nd(e,"text",u);function u(c,p){let f=-1,d;for(;++f<p.length;){const g=p[f],x=d?d.children:void 0;if(i(g,x?x.indexOf(g):void 0,d))return;d=g}if(d)return l(c,p)}function l(c,p){const f=p[p.length-1],d=a[o][0],g=a[o][1];let x=0;const S=f.children.indexOf(c);let b=!1,k=[];d.lastIndex=0;let E=d.exec(c.value);for(;E;){const O=E.index,y={index:E.index,input:E.input,stack:[...p,c]};let m=g(...E,y);if(typeof m=="string"&&(m=m.length>0?{type:"text",value:m}:void 0),m===!1?d.lastIndex=O+1:(x!==O&&k.push({type:"text",value:c.value.slice(x,O)}),Array.isArray(m)?k.push(...m):m&&k.push(m),x=O+E[0].length,b=!0),!d.global)break;E=d.exec(c.value)}return b?(x<c.value.length&&k.push({type:"text",value:c.value.slice(x)}),f.children.splice(S,1,...k)):k=[c],S+k.length}}function _S(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([IS(i[0]),TS(i[1])])}return t}function IS(e){return typeof e=="string"?new RegExp(kS(e),"g"):e}function TS(e){return typeof e=="function"?e:function(){return e}}const Po="phrasing",No=["autolink","link","image","label"];function AS(){return{transforms:[DS],enter:{literalAutolink:NS,literalAutolinkEmail:Ro,literalAutolinkHttp:Ro,literalAutolinkWww:Ro},exit:{literalAutolink:VS,literalAutolinkEmail:LS,literalAutolinkHttp:RS,literalAutolinkWww:OS}}}function PS(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Po,notInConstruct:No},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Po,notInConstruct:No},{character:":",before:"[ps]",after:"\\/",inConstruct:Po,notInConstruct:No}]}}function NS(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ro(e){this.config.enter.autolinkProtocol.call(this,e)}function RS(e){this.config.exit.autolinkProtocol.call(this,e)}function OS(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function LS(e){this.config.exit.autolinkEmail.call(this,e)}function VS(e){this.exit(e)}function DS(e){ES(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,FS],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),MS]],{ignore:["link","linkReference"]})}function FS(e,t,n,r,i){let a="";if(!Ud(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!jS(n)))return!1;const o=BS(n+r);if(!o[0])return!1;const u={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[u,{type:"text",value:o[1]}]:u}function MS(e,t,n,r){return!Ud(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function jS(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function BS(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Ha(e,"(");let a=Ha(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Ud(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ft(n)||Es(n))&&(!t||n!==47)}qd.peek=GS;function zS(){this.buffer()}function $S(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function HS(){this.buffer()}function US(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function qS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=vn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function WS(e){this.exit(e)}function KS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=vn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function JS(e){this.exit(e)}function GS(){return"["}function qd(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const o=n.enter("footnoteReference"),u=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),u(),o(),a+=i.move("]"),a}function YS(){return{enter:{gfmFootnoteCallString:zS,gfmFootnoteCall:$S,gfmFootnoteDefinitionLabelString:HS,gfmFootnoteDefinition:US},exit:{gfmFootnoteCallString:qS,gfmFootnoteCall:WS,gfmFootnoteDefinitionLabelString:KS,gfmFootnoteDefinition:JS}}}function XS(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:qd},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,o){const u=a.createTracker(o);let l=u.move("[^");const c=a.enter("footnoteDefinition"),p=a.enter("label");return l+=u.move(a.safe(a.associationId(r),{before:l,after:"]"})),p(),l+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),l+=u.move((t?`
|
|
66
|
-
`:" ")+a.indentLines(a.containerFlow(r,u.current()),t?Wd:QS))),c(),l}}function QS(e,t,n){return t===0?e:Wd(e,t,n)}function Wd(e,t,n){return(n?"":" ")+e}const ZS=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Kd.peek=iC;function eC(){return{canContainEols:["delete"],enter:{strikethrough:nC},exit:{strikethrough:rC}}}function tC(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ZS}],handlers:{delete:Kd}}}function nC(e){this.enter({type:"delete",children:[]},e)}function rC(e){this.exit(e)}function Kd(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function iC(){return"~"}function aC(e){return e.length}function sC(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||aC,a=[],o=[],u=[],l=[];let c=0,p=-1;for(;++p<e.length;){const w=[],S=[];let b=-1;for(e[p].length>c&&(c=e[p].length);++b<e[p].length;){const k=oC(e[p][b]);if(n.alignDelimiters!==!1){const E=i(k);S[b]=E,(l[b]===void 0||E>l[b])&&(l[b]=E)}w.push(k)}o[p]=w,u[p]=S}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<c;)a[f]=xf(r[f]);else{const w=xf(r);for(;++f<c;)a[f]=w}f=-1;const d=[],g=[];for(;++f<c;){const w=a[f];let S="",b="";w===99?(S=":",b=":"):w===108?S=":":w===114&&(b=":");let k=n.alignDelimiters===!1?1:Math.max(1,l[f]-S.length-b.length);const E=S+"-".repeat(k)+b;n.alignDelimiters!==!1&&(k=S.length+k+b.length,k>l[f]&&(l[f]=k),g[f]=k),d[f]=E}o.splice(1,0,d),u.splice(1,0,g),p=-1;const x=[];for(;++p<o.length;){const w=o[p],S=u[p];f=-1;const b=[];for(;++f<c;){const k=w[f]||"";let E="",O="";if(n.alignDelimiters!==!1){const y=l[f]-(S[f]||0),m=a[f];m===114?E=" ".repeat(y):m===99?y%2?(E=" ".repeat(y/2+.5),O=" ".repeat(y/2-.5)):(E=" ".repeat(y/2),O=E):O=" ".repeat(y)}n.delimiterStart!==!1&&!f&&b.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&k==="")&&(n.delimiterStart!==!1||f)&&b.push(" "),n.alignDelimiters!==!1&&b.push(E),b.push(k),n.alignDelimiters!==!1&&b.push(O),n.padding!==!1&&b.push(" "),(n.delimiterEnd!==!1||f!==c-1)&&b.push("|")}x.push(n.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return x.join(`
|
|
67
|
-
`)}function oC(e){return e==null?"":String(e)}function xf(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function uC(){return{enter:{table:lC,tableData:vf,tableHeader:vf,tableRow:fC},exit:{codeText:hC,table:cC,tableData:Oo,tableHeader:Oo,tableRow:Oo}}}function lC(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function cC(e){this.exit(e),this.data.inTable=void 0}function fC(e){this.enter({type:"tableRow",children:[]},e)}function Oo(e){this.exit(e)}function vf(e){this.enter({type:"tableCell",children:[]},e)}function hC(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,pC));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function pC(e,t){return t==="|"?t:e}function dC(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
68
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:o,tableCell:l,tableRow:u}};function o(g,x,w,S){return c(p(g,w,S),g.align)}function u(g,x,w,S){const b=f(g,w,S),k=c([b]);return k.slice(0,k.indexOf(`
|
|
69
|
-
`))}function l(g,x,w,S){const b=w.enter("tableCell"),k=w.enter("phrasing"),E=w.containerPhrasing(g,{...S,before:a,after:a});return k(),b(),E}function c(g,x){return sC(g,{align:x,alignDelimiters:r,padding:n,stringLength:i})}function p(g,x,w){const S=g.children;let b=-1;const k=[],E=x.enter("table");for(;++b<S.length;)k[b]=f(S[b],x,w);return E(),k}function f(g,x,w){const S=g.children;let b=-1;const k=[],E=x.enter("tableRow");for(;++b<S.length;)k[b]=l(S[b],g,x,w);return E(),k}function d(g,x,w){let S=ol.inlineCode(g,x,w);return w.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function mC(){return{exit:{taskListCheckValueChecked:bf,taskListCheckValueUnchecked:bf,paragraph:xC}}}function gC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:vC}}}function bf(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function xC(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a<i.length;){const u=i[a];if(u.type==="paragraph"){o=u;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function vC(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);a&&u.move(o);let l=ol.listItem(e,t,n,{...r,...u.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(p){return p+o}}function bC(){return[AS(),YS(),eC(),uC(),mC()]}function yC(e){return{extensions:[PS(),XS(e),tC(),dC(e),gC()]}}const wC={tokenize:IC,partial:!0},Jd={tokenize:TC,partial:!0},Gd={tokenize:AC,partial:!0},Yd={tokenize:PC,partial:!0},SC={tokenize:NC,partial:!0},Xd={name:"wwwAutolink",tokenize:EC,previous:Zd},Qd={name:"protocolAutolink",tokenize:_C,previous:em},jn={name:"emailAutolink",tokenize:kC,previous:tm},Tn={};function CC(){return{text:Tn}}let pr=48;for(;pr<123;)Tn[pr]=jn,pr++,pr===58?pr=65:pr===91&&(pr=97);Tn[43]=jn;Tn[45]=jn;Tn[46]=jn;Tn[95]=jn;Tn[72]=[jn,Qd];Tn[104]=[jn,Qd];Tn[87]=[jn,Xd];Tn[119]=[jn,Xd];function kC(e,t,n){const r=this;let i,a;return o;function o(f){return!xu(f)||!tm.call(r,r.previous)||ll(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(f))}function u(f){return xu(f)?(e.consume(f),u):f===64?(e.consume(f),l):n(f)}function l(f){return f===46?e.check(SC,p,c)(f):f===45||f===95||Kt(f)?(a=!0,e.consume(f),l):p(f)}function c(f){return e.consume(f),i=!0,l}function p(f){return a&&i&&Rt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function EC(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!Zd.call(r,r.previous)||ll(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(wC,e.attempt(Jd,e.attempt(Gd,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function _C(e,t,n){const r=this;let i="",a=!1;return o;function o(f){return(f===72||f===104)&&em.call(r,r.previous)&&!ll(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),u):n(f)}function u(f){if(Rt(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),u;if(f===58){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(f),l}return n(f)}function l(f){return f===47?(e.consume(f),a?c:(a=!0,l)):n(f)}function c(f){return f===null||Ja(f)||Qe(f)||Ft(f)||Es(f)?n(f):e.attempt(Jd,e.attempt(Gd,p),n)(f)}function p(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function IC(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function TC(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(Yd,l,u)(c):c===null||Qe(c)||Ft(c)||c!==45&&Es(c)?l(c):(a=!0,e.consume(c),o)}function u(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function l(c){return i||r||!a?n(c):t(c)}}function AC(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Yd,t,a)(o):o===null||Qe(o)||Ft(o)?t(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function PC(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),a):u===93?(e.consume(u),i):u===60||u===null||Qe(u)||Ft(u)?t(u):n(u)}function i(u){return u===null||u===40||u===91||Qe(u)||Ft(u)?t(u):r(u)}function a(u){return Rt(u)?o(u):n(u)}function o(u){return u===59?(e.consume(u),r):Rt(u)?(e.consume(u),o):n(u)}}function NC(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return Kt(a)?n(a):t(a)}}function Zd(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Qe(e)}function em(e){return!Rt(e)}function tm(e){return!(e===47||xu(e))}function xu(e){return e===43||e===45||e===46||e===95||Kt(e)}function ll(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const RC={tokenize:BC,partial:!0};function OC(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:FC,continuation:{tokenize:MC},exit:jC}},text:{91:{name:"gfmFootnoteCall",tokenize:DC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:LC,resolveTo:VC}}}}function LC(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return u;function u(l){if(!o||!o._balanced)return n(l);const c=vn(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function VC(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function DC(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return u;function u(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(a>999||f===93&&!o||f===null||f===91||Qe(f))return n(f);if(f===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(vn(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Qe(f)||(o=!0),a++,e.consume(f),f===92?p:c}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,c):c(f)}}function FC(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,u;return l;function l(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(x)}function p(x){if(o>999||x===93&&!u||x===null||x===91||Qe(x))return n(x);if(x===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return a=vn(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Qe(x)||(u=!0),o++,e.consume(x),x===92?f:p}function f(x){return x===91||x===92||x===93?(e.consume(x),o++,p):p(x)}function d(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),i.includes(a)||i.push(a),Ke(e,g,"gfmFootnoteDefinitionWhitespace")):n(x)}function g(x){return t(x)}}function MC(e,t,n){return e.check(Wr,t,e.attempt(RC,t,n))}function jC(e){e.exit("gfmFootnoteDefinition")}function BC(e,t,n){const r=this;return Ke(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function zC(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,u){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let c=l;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[l][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[l][1].end)},f={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[l][1].start)},d=[["enter",p,u],["enter",o[c][1],u],["exit",o[c][1],u],["enter",f,u]],g=u.parser.constructs.insideSpan.null;g&&en(d,d.length,0,_s(g,o.slice(c+1,l),u)),en(d,d.length,0,[["exit",f,u],["enter",o[l][1],u],["exit",o[l][1],u],["exit",p,u]]),en(o,c-1,l-c+3,d),l=c+d.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function a(o,u,l){const c=this.previous,p=this.events;let f=0;return d;function d(x){return c===126&&p[p.length-1][1].type!=="characterEscape"?l(x):(o.enter("strikethroughSequenceTemporary"),g(x))}function g(x){const w=jr(c);if(x===126)return f>1?l(x):(o.consume(x),f++,g);if(f<2&&!n)return l(x);const S=o.exit("strikethroughSequenceTemporary"),b=jr(x);return S._open=!b||b===2&&!!w,S._close=!w||w===2&&!!b,u(x)}}}class $C{constructor(){this.map=[]}add(t,n,r){HC(this,t,n,r)}consume(t){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function HC(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function UC(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function qC(){return{flow:{null:{name:"table",tokenize:WC,resolveAll:KC}}}}function WC(e,t,n){const r=this;let i=0,a=0,o;return u;function u(P){let j=r.events.length-1;for(;j>-1;){const se=r.events[j][1].type;if(se==="lineEnding"||se==="linePrefix")j--;else break}const W=j>-1?r.events[j][1].type:null,$=W==="tableHead"||W==="tableRow"?m:l;return $===m&&r.parser.lazy[r.now().line]?n(P):$(P)}function l(P){return e.enter("tableHead"),e.enter("tableRow"),c(P)}function c(P){return P===124||(o=!0,a+=1),p(P)}function p(P){return P===null?n(P):Ve(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),g):n(P):Ue(P)?Ke(e,p,"whitespace")(P):(a+=1,o&&(o=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),f(P)))}function f(P){return P===null||P===124||Qe(P)?(e.exit("data"),p(P)):(e.consume(P),P===92?d:f)}function d(P){return P===92||P===124?(e.consume(P),f):f(P)}function g(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),o=!1,Ue(P)?Ke(e,x,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):x(P))}function x(P){return P===45||P===58?S(P):P===124?(o=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),w):y(P)}function w(P){return Ue(P)?Ke(e,S,"whitespace")(P):S(P)}function S(P){return P===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),b):P===45?(a+=1,b(P)):P===null||Ve(P)?O(P):y(P)}function b(P){return P===45?(e.enter("tableDelimiterFiller"),k(P)):y(P)}function k(P){return P===45?(e.consume(P),k):P===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(P))}function E(P){return Ue(P)?Ke(e,O,"whitespace")(P):O(P)}function O(P){return P===124?x(P):P===null||Ve(P)?!o||i!==a?y(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):y(P)}function y(P){return n(P)}function m(P){return e.enter("tableRow"),_(P)}function _(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),_):P===null||Ve(P)?(e.exit("tableRow"),t(P)):Ue(P)?Ke(e,_,"whitespace")(P):(e.enter("data"),V(P))}function V(P){return P===null||P===124||Qe(P)?(e.exit("data"),_(P)):(e.consume(P),P===92?M:V)}function M(P){return P===92||P===124?(e.consume(P),V):V(P)}}function KC(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],u=!1,l=0,c,p,f;const d=new $C;for(;++n<e.length;){const g=e[n],x=g[1];g[0]==="enter"?x.type==="tableHead"?(u=!1,l!==0&&(yf(d,t,l,c,p),p=void 0,l=0),c={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},d.add(n,0,[["enter",c,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(r=!0,f=void 0,a=[0,0,0,0],o=[0,n+1,0,0],u&&(u=!1,p={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},d.add(n,0,[["enter",p,t]])),i=x.type==="tableDelimiterRow"?2:p?3:1):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],f=da(d,t,a,i,void 0,f),a=[0,0,0,0]),o[2]=n)):x.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],f=da(d,t,a,i,void 0,f)),a=o,o=[a[1],n,0,0])):x.type==="tableHead"?(u=!0,l=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(l=n,a[1]!==0?(o[0]=o[1],f=da(d,t,a,i,n,f)):o[1]!==0&&(f=da(d,t,o,i,n,f)),i=0):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&yf(d,t,l,c,p),d.consume(t.events),n=-1;++n<t.events.length;){const g=t.events[n];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=UC(t.events,n))}return e}function da(e,t,n,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(a.end=Object.assign({},Tr(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=Tr(t.events,n[1]);if(a={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const c=Tr(t.events,n[2]),p=Tr(t.events,n[3]),f={type:u,start:Object.assign({},c),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const d=t.events[n[2]],g=t.events[n[3]];if(d[1].end=Object.assign({},g[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const x=n[2]+1,w=n[3]-n[2]-1;e.add(x,w,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},Tr(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function yf(e,t,n,r,i){const a=[],o=Tr(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function Tr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const JC={name:"tasklistCheck",tokenize:YC};function GC(){return{text:{91:JC}}}function YC(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return Qe(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(l)}function u(l){return Ve(l)?t(l):Ue(l)?e.check({tokenize:XC},t,n)(l):n(l)}}function XC(e,t,n){return Ke(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function QC(e){return il([CC(),OC(),zC(e),qC(),GC()])}const ZC={};function ek(e){const t=this,n=e||ZC,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(QC(n)),a.push(bC()),o.push(yC(n))}const nm=async()=>(await we.getNodeInfo({verb:we.DesignerRequestVerb.GET_INFO,path:"WebForms"})).filter(t=>t.ext==="WebForm"),vu=(e,t,n)=>{let r=[];return Array.isArray(e)?e.forEach((i,a)=>{r=r.concat(vu(i,`${t}.[${a}]`,n))}):ge.isObject(e)?ge.has(e,n)?r.push(`${t}.${n}`):Object.entries(e).forEach(([a,o])=>{r=r.concat(vu(o,`${t}.${a}`,n))}):t===n&&r.push(n),r},tk=()=>new Date().toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit"}),wf=e=>{const t=/[",\n\r]/.test(e);let n=e.replace(/"/g,'""');return t&&(n=`"${n}"`),n},nk=(e,t,n)=>{let r="";const i=[...t],a=()=>i.map(p=>""),o=(p,f,d)=>{const g=i.findIndex(x=>x===f);g<0?(p.push(d),i.push(f)):p[g]=d},u=p=>p.join(n)+`
|
|
70
|
-
`,{webforms:l,i18n:c}=e;return l&&Object.keys(l).forEach(f=>{const d=ge.get(l,`${f}`);Object.keys(d).forEach(x=>{const{props:w,resolverName:S}=ge.get(d,x);Array.isArray(w)&&w.forEach(({__dataPath:b,__default:k,...E})=>{const O=a();o(O,"keys",`webforms.${f}.${x}.${b}`),o(O,"__t",wf(k)),o(O,"resolverName",S),Object.keys(E).forEach(y=>{let m=y;y.startsWith("states:")&&(m=y.replace("states:",""),m=m.replace("i18n:","")),o(O,m,wf(E[y]))}),r+=u(O)})})}),c&&Object.keys(c).forEach(f=>{const d=ge.get(c,f);d&&Object.keys(d).forEach(x=>{const w=ge.get(d,x),S=a();o(S,"keys",`i18n.${f}.${x}`),o(S,x==="default"?"i18nkey_default":x,w),r+=u(S)})}),u(i)+r},ma=(e,t)=>{let n=e;return t.bold&&(n=`**${n}**`),t.italic&&(n=`*${n}*`),t.underlined&&(n=`<u>${n}</u>`),t.strikethrough&&(n=`~~${n}~~`),n},ga={datasource:e=>{const{datasource:t,dsType:n,format:r,children:i}=e;let a,o="";return i&&i[0]&&(a=i[0],o=`<ds datasource='${t}' dsType='${n}' format='${r}'>${ma(a.text,a)}</ds>`),o},link:e=>{const{url:t,target:n,datasource:r,isDatasource:i,children:a}=e;let o="";if(a&&a[0]){const{text:u,...l}=a[0];o=`<link datasource='${r}' isDatasource='${i}' url='${t}' target='${n}'>${ma(u,l)}</link>`}return o},i18n:e=>{const{children:t,__i18n:n}=e;let r="";if(t&&t[0]){const{text:i,...a}=t[0];r=`<i18n __i18n='${n}'>${ma(i,a)}</i18n>`}return r},defaultElement:e=>{const{text:t}=e;return ma(t,e)}},rk=e=>{const{type:t,text:n}=e;if(!t&&!n)return"<e/>";switch(t){case"datasource":return ga.datasource(e);case"link":return ga.link(e);case"i18n":return ga.i18n(e);default:return ga.defaultElement(e)}},ik=e=>e.map(t=>{const{children:n}=t;return n?n.map(r=>rk(r)).join(""):""}).filter(Boolean).join(`
|
|
71
|
-
|
|
72
|
-
`),ak=e=>{const t=/<\/?[a-zA-Z][^>]*>/g;let n="",r=0;for(const a of e.matchAll(t)){const o=a.index,u=o+a[0].length,l=e.slice(r,o).replace(/</g,"<").replace(/>/g,">");n+=l+a[0],r=u}const i=e.slice(r).replace(/</g,"<").replace(/>/g,">");return n+=i,n=n.replace(/\[object Object\]/g,""),n},rm=e=>{let t="",n=!1;for(let r=0;r<e.length;r++){const i=e[r];if(i==='"')if(n)if(r+1<e.length&&e[r+1]==='"')t+='""',r++;else{let a=r+1;for(;a<e.length&&(e[a]===" "||e[a]===" ");)a++;a>=e.length||e[a]===","||e[a]===`
|
|
73
|
-
`||e[a]==="\r"?(n=!1,t+='"'):t+='""'}else n=!0,t+='"';else t+=i}return t},Lo=e=>{const t=ak(e),n=CS().use(ek,{singleTilde:!0}).use(u1).parse(t),r=(a,o,u)=>{var f;const{type:l,value:c}=a;let p={};if(l==="root"){const{children:d}=a;return d.map(g=>r(g,o)).flat()}if(o){if(l==="list"){const{children:d}=a;return d.map(g=>r(g,p,u)).flat()}else if(l==="listItem"){const{children:d}=a;return d.map(g=>{const x=u!=null&&u.prefix?u.prefix:g.type==="list"?" - ":"* ",w=r(g,p,{prefix:x});return w.type==="paragraph"&&w.children&&(w.children.length>1?w.children=[{text:x},...w.children]:w.children=w.children.map(S=>(S.text&&(S.text=`${x}${S.text}`),S))),w}).flat()}else if(l==="paragraph"){p={type:"paragraph",children:[]};const{children:d}=a,g=d.map(x=>r(x,p));p.children=g}else if(l==="mdxJsxTextElement"){const{name:d}=a;if(d==="ds"){p={type:"datasource",children:[]};const{children:g,attributes:x}=a;if(g){const w=r(g[0],p);p.children=[w]}if(x){const w=x.reduce((S,b)=>({...S,[b.name]:b.value}),{});p={...p,...w}}}else if(d==="i18n"){p={type:"i18n",children:""};const{children:g,attributes:x}=a;if(g){const w=r(g[0],p);p.children=[w]}if(x){const w=x.reduce((S,b)=>({...S,[b.name]:b.value}),{});p={...p,...w}}}else if(d==="u"){p={underlined:!0};const{children:g}=a;if(g){const x=r(g[0],p);p={...p,...x}}}else if(d==="link"){p={type:"link",children:[]};const{children:g,attributes:x}=a;if(g){const w=r(g[0],p);p.children=[w]}if(x){const w=x.reduce((S,b)=>({...S,[b.name]:b.value}),{});p={...p,...w}}}else d==="e"&&(p={text:""})}else if(l==="text")p={text:c};else if(l==="strong"){p={bold:!0};const{children:d}=a;if(d){const g=r(d[0],p);p={...p,...g}}}else if(l==="emphasis"){p={italic:!0};const{children:d}=a;if(d){const g=r(d[0],p);p={...p,...g}}}else if(l==="delete"){p={strikethrough:!0};const{children:d}=a;if(d){const g=r(d[0],p);p={...p,...g}}}else if(l==="link"){const{children:d}=a;p={text:((f=d[0])==null?void 0:f.value)||""}}}else return;return p};return r(n,[])},sk=e=>{const[,t,n,r,...i]=e.split(".");return{webformName:t,componentId:n,propName:r,restOfPropPath:i.join(".")}},im=({children:e,isOpen:t,onClose:n,title:r})=>R.jsx(ei.Transition,{appear:!0,show:t,as:F.Fragment,children:R.jsxs(ei.Dialog,{as:"div",className:"relative z-[1000]",onClose:n,children:[R.jsx(ei.Transition.Child,{as:F.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:R.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-75"})}),R.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:R.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:R.jsx(ei.Transition.Child,{as:F.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:R.jsxs(ei.Dialog.Panel,{className:"w-full space-y-2 max-w-md transform overflow-hidden rounded border border-grey-50 bg-grey-900 px-5 py-4 text-left align-middle text-white shadow-xl transition-all",children:[R.jsxs("div",{className:"flex flex-col items-center justify-center space-y-2",children:[R.jsx(ot.FdDownload,{className:"h-6 w-6"}),R.jsx("h3",{className:"mt-4 text-sm font-bold",children:r})]}),R.jsx("div",{className:"space-y-2",children:e})]})})})})]})});var xa={exports:{}},va={exports:{}},it={};/** @license React v16.13.1
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react/jsx-runtime"),M=require("react"),Vt=require("classnames"),st=require("@ws-ui/icons"),ye=require("@ws-ui/shared"),Ft=require("@ws-ui/store"),ce=require("lodash"),oo=require("short-uuid"),er=require("react-dom"),lo=require("./common.cjs.js"),hm=require("simplebar-react"),dm=require("react-dropzone"),uo=require("papaparse"),pm=require("jsonschema");function lh(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Q=lh(M),fm=lh(er),gm=e=>e&&e.length===0,mm=e=>e.length>=1,vm=e=>e.length>=1,xm=()=>w.jsx("div",{className:"flex flex-col w-full h-full p-2",children:w.jsxs("div",{className:"w-full h-full flex flex-col items-center space-y-3 mt-48 text-inactive-text",children:[w.jsx(st.FdInfoBold,{className:"h-8 w-8"}),w.jsx("span",{className:"text-sm text-center",children:"Your locales are set , you can start translating right away. Shared labels are optional, can be created from components at any time, and managed here."})]})}),uh=M.createContext(null),ch=({children:e,adapter:t})=>w.jsx(uh.Provider,{value:t,children:e});function Vn({permissive:e=!1}={}){const t=M.useContext(uh);if(!t&&!e)throw new Error("useEditorStateAdapter must be used within an EditorStateAdapterProvider");return t}const Jn={keys:{},userLang:{primary:"",supported:[]}};async function hh(){try{const e=await fetch(`/$shared/i18n.json?ts=${Date.now()}`);if(!e.ok)throw new Error(`HTTP ${e.status}`);const t=await e.json();return{keys:ce.get(t,"keys",Jn.keys),userLang:ce.get(t,"userLang",Jn.userLang)}}catch{return Jn}}function bm(e,t){const n=Ft.useAppDispatch(),i=Ft.useAppSelector(Ft.selectTabs),r=Ft.useAppSelector(Ft.selectActiveTab),a=Ft.useAppSelector(Ft.selectAllTabsByType("webform")),o=Ft.useAppSelector(Ft.selectI18nCurrent);return{getTabs:M.useCallback(()=>i??[],[i]),getI18nCurrent:M.useCallback(()=>o??"",[o]),getWebformTabs:M.useCallback(()=>a??[],[a]),getActiveTabPath:M.useCallback(()=>r??"",[r]),getFlagsByPath:M.useCallback(l=>{var u;return(u=i.find(c=>c.path===l))==null?void 0:u.flags},[i]),getSupportedLanguages:M.useCallback(async l=>ye.getSupportedLanguages(l),[]),fetchI18nFile:M.useCallback(hh,[]),getUserComponents:M.useCallback(()=>e??{},[e]),buildResolver:t,actions:{openModal:M.useCallback(async l=>await n(Ft.openModal(l)).unwrap(),[n]),setTabs:M.useCallback(l=>{n(Ft.setTabs(l))},[n]),setI18nCurrent:M.useCallback(l=>{n(Ft.setI18nCurrent({current:l}))},[n]),setTabContent:M.useCallback(async l=>n(Ft.setTabContent(l)),[n])}}}var Rs=function(e,t){return Rs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},Rs(e,t)};function tr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Rs(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ln=function(){return ln=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ln.apply(this,arguments)};function dh(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function Ds(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ms(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,a=[],o;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Yr(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,a;i<r;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}function un(e){return typeof e=="function"}function ph(e){var t=function(i){Error.call(i),i.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ba=ph(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
2
|
+
`+n.map(function(i,r){return r+1+") "+i.toString()}).join(`
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}});function Fs(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var xa=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,i,r,a;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var l=Ds(o),u=l.next();!u.done;u=l.next()){var c=u.value;c.remove(this)}}catch(x){t={error:x}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}else o.remove(this);var p=this.initialTeardown;if(un(p))try{p()}catch(x){a=x instanceof Ba?x.errors:[x]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var m=Ds(d),g=m.next();!g.done;g=m.next()){var _=g.value;try{Jl(_)}catch(x){a=a??[],x instanceof Ba?a=Yr(Yr([],Ms(a)),Ms(x.errors)):a.push(x)}}}catch(x){i={error:x}}finally{try{g&&!g.done&&(r=m.return)&&r.call(m)}finally{if(i)throw i.error}}}if(a)throw new Ba(a)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Jl(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Fs(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Fs(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),fh=xa.EMPTY;function gh(e){return e instanceof xa||e&&"closed"in e&&un(e.remove)&&un(e.add)&&un(e.unsubscribe)}function Jl(e){un(e)?e():e.unsubscribe()}var ym={Promise:void 0},wm={setTimeout:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return setTimeout.apply(void 0,Yr([e,t],Ms(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function km(e){wm.setTimeout(function(){throw e})}function Yl(){}function jr(e){e()}var co=(function(e){tr(t,e);function t(n){var i=e.call(this)||this;return i.isStopped=!1,n?(i.destination=n,gh(n)&&n.add(i)):i.destination=Cm,i}return t.create=function(n,i,r){return new js(n,i,r)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(xa),Sm=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(i){fr(i)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(i){fr(i)}else fr(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){fr(n)}},e})(),js=(function(e){tr(t,e);function t(n,i,r){var a=e.call(this)||this,o;return un(n)||!n?o={next:n??void 0,error:i??void 0,complete:r??void 0}:o=n,a.destination=new Sm(o),a}return t})(co);function fr(e){km(e)}function Em(e){throw e}var Cm={closed:!0,next:Yl,error:Em,complete:Yl},Im=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function _m(e){return e}function Am(e){return e.length===0?_m:e.length===1?e[0]:function(n){return e.reduce(function(i,r){return r(i)},n)}}var Xl=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,i){var r=this,a=Tm(t)?t:new js(t,n,i);return jr(function(){var o=r,l=o.operator,u=o.source;a.add(l?l.call(a,u):u?r._subscribe(a):r._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var i=this;return n=Zl(n),new n(function(r,a){var o=new js({next:function(l){try{t(l)}catch(u){a(u),o.unsubscribe()}},error:a,complete:r});i.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Im]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Am(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Zl(t),new t(function(i,r){var a;n.subscribe(function(o){return a=o},function(o){return r(o)},function(){return i(a)})})},e.create=function(t){return new e(t)},e})();function Zl(e){var t;return(t=e??ym.Promise)!==null&&t!==void 0?t:Promise}function Nm(e){return e&&un(e.next)&&un(e.error)&&un(e.complete)}function Tm(e){return e&&e instanceof co||Nm(e)&&gh(e)}function Pm(e){return un(e==null?void 0:e.lift)}function mh(e){return function(t){if(Pm(t))return t.lift(function(n){try{return e(n,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function vh(e,t,n,i,r){return new Om(e,t,n,i,r)}var Om=(function(e){tr(t,e);function t(n,i,r,a,o,l){var u=e.call(this,n)||this;return u.onFinalize=o,u.shouldUnsubscribe=l,u._next=i?function(c){try{i(c)}catch(p){n.error(p)}}:e.prototype._next,u._error=a?function(c){try{a(c)}catch(p){n.error(p)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=r?function(){try{r()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,u}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t})(co),Lm=ph(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),xh=(function(e){tr(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var i=new Ql(this,this);return i.operator=n,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Lm},t.prototype.next=function(n){var i=this;jr(function(){var r,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=Ds(i.currentObservers),l=o.next();!l.done;l=o.next()){var u=l.value;u.next(n)}}catch(c){r={error:c}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(n){var i=this;jr(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=n;for(var r=i.observers;r.length;)r.shift().error(n)}})},t.prototype.complete=function(){var n=this;jr(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var i=n.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var i=this,r=this,a=r.hasError,o=r.isStopped,l=r.observers;return a||o?fh:(this.currentObservers=null,l.push(n),new xa(function(){i.currentObservers=null,Fs(l,n)}))},t.prototype._checkFinalizedStatuses=function(n){var i=this,r=i.hasError,a=i.thrownError,o=i.isStopped;r?n.error(a):o&&n.complete()},t.prototype.asObservable=function(){var n=new Xl;return n.source=this,n},t.create=function(n,i){return new Ql(n,i)},t})(Xl),Ql=(function(e){tr(t,e);function t(n,i){var r=e.call(this)||this;return r.destination=n,r.source=i,r}return t.prototype.next=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,n)},t.prototype.error=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,n)},t.prototype.complete=function(){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||i===void 0||i.call(n)},t.prototype._subscribe=function(n){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(n))!==null&&r!==void 0?r:fh},t})(xh);function Rm(e,t){return mh(function(n,i){var r=0;n.subscribe(vh(i,function(a){i.next(e.call(t,a,r++))}))})}function Dm(e,t){return mh(function(n,i){var r=0;n.subscribe(vh(i,function(a){return e.call(t,a,r++)&&i.next(a)}))})}const bh=new xh,Mm=(e,t)=>({name:e.split("/").pop()||e,type:ye.FileFolderType.WEBFORM,path:e,date:new Date().toISOString(),content:t,view:{panel:{isOpen:!1,type:"",current:""}},flags:{}});function yh(e,t){switch(t.type){case"SET_TABS":return{...e,tabs:t.payload};case"SET_I18N_CURRENT":return{...e,i18nCurrent:t.payload};case"SET_TAB_CONTENT":{const{path:n,content:i}=t.payload;return e.tabs.find(a=>a.path===n)?{...e,tabs:e.tabs.map(a=>a.path===n?{...a,content:i}:a)}:{...e,tabs:[...e.tabs,Mm(n,i)]}}case"CREATE_MODAL":return{...e,modals:{...e.modals,list:[...e.modals.list,t.payload]}};case"REMOVE_MODAL":return{...e,modals:{...e.modals,list:e.modals.list.filter(n=>n.id!==t.payload)}};case"CLOSE_MODAL":{const{id:n,reason:i}=t.payload;let r;if(i)if(e.modals.list.find(o=>o.id===n))r={...e,modals:{...e.modals,list:e.modals.list.map(o=>o.id===n?{...o,closeReason:i,isOpen:!1}:o)}};else return e;else r={...e,modals:{...e.modals,list:e.modals.list.filter(a=>a.id!==n)}};return bh.next(r.modals),r}case"EDIT_MODAL":{const{id:n,...i}=t.payload;return e.modals.list.find(a=>a.id===n)?{...e,modals:{...e.modals,list:e.modals.list.map(a=>a.id===n?{...a,...i}:a)}}:e}default:return e}}const ba=M.createContext(null),wh=(e,t)=>({tabs:e,i18nCurrent:t,modals:{list:[]}}),kh=({children:e,tabs:t=[],i18nCurrent:n="",initialI18nFile:i})=>{const[r,a]=M.useReducer(yh,wh(t,n));M.useEffect(()=>{ce.isEqual(r.tabs,t)||a({type:"SET_TABS",payload:t})},[t,r.tabs]),M.useEffect(()=>{r.i18nCurrent!==n&&a({type:"SET_I18N_CURRENT",payload:n})},[n,r.i18nCurrent]);const o=M.useMemo(()=>({state:r,dispatch:a,initialI18nFile:i}),[r,i]);return w.jsx(ba.Provider,{value:o,children:e})};function Sh(e,t,n){const i=M.useContext(ba);if(!i)throw new Error("useReducerAdapter must be used within a ReducerAdapterProvider");const{state:r,dispatch:a,initialI18nFile:o}=i;return{getTabs:M.useCallback(()=>r.tabs,[r.tabs]),getI18nCurrent:M.useCallback(()=>r.i18nCurrent,[r.i18nCurrent]),fetchI18nFile:M.useCallback(()=>{if(!o)return Promise.resolve(Jn);if(typeof o!="string")return Promise.resolve(o);try{const l=JSON.parse(o);return Promise.resolve({keys:(l==null?void 0:l.keys)??Jn.keys,userLang:(l==null?void 0:l.userLang)??Jn.userLang})}catch{return Promise.resolve(Jn)}},[o]),getWebformTabs:M.useCallback(()=>r.tabs.filter(l=>l.type===ye.FileFolderType.WEBFORM),[r.tabs]),getActiveTabPath:M.useCallback(()=>{var l;return((l=r.tabs[0])==null?void 0:l.path)??""},[r.tabs]),getFlagsByPath:M.useCallback(l=>{var u;return(u=r.tabs.find(c=>c.path===l))==null?void 0:u.flags},[r.tabs]),getSupportedLanguages:M.useCallback(async l=>n&&n.length?n:ye.getSupportedLanguages(l),[n]),getUserComponents:M.useCallback(()=>e??{},[e]),buildResolver:t,actions:{openModal:M.useCallback(async l=>{const{type:u=ye.ModalType.ALERT}=l,c=oo.generate();return a({type:"CREATE_MODAL",payload:{id:c,type:u,isOpen:!0,...l}}),u===ye.ModalType.CONFIRM?new Promise(p=>{const d=bh.pipe(Dm(m=>{const g=m.list.find(_=>_.id===c);return g!==void 0&&!g.isOpen})).subscribe(m=>{var _;const g=m.list.find(x=>x.id===c);if(g){const x=g.closeReason===ye.ModalCloseReason.CONFIRMED,E=ce.entries(((_=g.views)==null?void 0:_.toggles)||{}).reduce((C,S)=>({...C,[S[0]]:S[1].value}),{});a({type:"REMOVE_MODAL",payload:c}),d.unsubscribe(),p({confirmed:x,options:E})}})}):{confirmed:!1}},[a]),setTabs:M.useCallback(l=>{a({type:"SET_TABS",payload:l})},[a]),setI18nCurrent:M.useCallback(l=>{a({type:"SET_I18N_CURRENT",payload:l})},[a]),setTabContent:M.useCallback(async l=>(a({type:"SET_TAB_CONTENT",payload:l}),l),[a])}}}function Eh(){const e=M.useContext(ba);if(!e)throw new Error("useModals must be used within a ReducerAdapterProvider");const{state:t,dispatch:n}=e;return{modals:t.modals.list,closeModal:M.useCallback(i=>{n({type:"CLOSE_MODAL",payload:i})},[n]),editModal:M.useCallback(i=>{n({type:"EDIT_MODAL",payload:i})},[n]),removeModal:M.useCallback(i=>{n({type:"REMOVE_MODAL",payload:i})},[n])}}const Ch=M.createContext(void 0),Ha={i18n:{keys:{},userLang:{primary:"",supported:[]}},i18nFileFetched:!1},Ih={tr_key:"__t"},{tr_key:gr}=Ih,Fm={buildPathFullObject:e=>`${gr}.${e}`,getKeyValueFromCustom:(e,t)=>ce.get(e,`${gr}.${t}.key`),getDefaultValueFromCustom:(e,t)=>ce.get(e,`${gr}.${t}.default`),getFullObject:(e,t)=>ce.get(e,`${gr}.${t}`)},_h=M.memo(({children:e,isI18nEnabled:t,onI18nChange:n})=>{const i=Vn({permissive:!0}),[r,a]=M.useState(Ha),o=M.useRef(!1),{i18n:l}=r,u=(C,S,k)=>{let A=1,b=C;for(;l.keys[b];)b=`${C}-${A}`,A++;const f={default:k};S.forEach(({lang:L,value:V})=>{L&&ce.set(f,L,V)});const T={keys:{...l.keys,[C]:f},userLang:l.userLang};a(L=>({...L,i18n:T}))},c=()=>{const C=new window.Event("i18n:ready");window.dispatchEvent(C)},p=M.useCallback(ce.debounce((C,S,k,A=!1)=>{a(b=>{const{keys:f,userLang:T}=b.i18n;if(f[C]&&S){const L={...f,[C]:{...f[C],[S]:k}};return o.current=A,{...b,i18n:{keys:L,userLang:T}}}return b})},300),[]),d=M.useCallback(ce.debounce((C,S)=>{a(k=>{const{keys:A,userLang:b}=ce.cloneDeep(k.i18n);return A[C]&&S&&ce.set(A,`${C}.default`,S),{...k,i18n:{keys:A,userLang:b}}})},300),[]),m=C=>{C&&a(S=>({...S,i18n:{...S.i18n,userLang:C}}))},g=M.useCallback((C,S)=>{const{keys:k,userLang:A}=l,f={keys:Object.entries(k).reduce((T,[L,V])=>{const D={...V};return C.isocode in D&&(D[S.isocode]=D[C.isocode],delete D[C.isocode]),T[L]=D,T},{}),userLang:A};a(T=>({...T,i18n:f}))},[l]),_=M.useCallback(C=>{const{keys:S,userLang:k}=l,b={keys:Object.entries(S).reduce((f,[T,L])=>{const V={...L};return C.isocode in V&&delete V[C.isocode],f[T]=V,f},{}),userLang:k};a(f=>({...f,i18n:b}))},[l]),x=C=>{const S=[];return Object.keys(l.keys).forEach(A=>{const b=ce.get(l,`keys.${A}.${C}`,ce.get(l,`keys.${A}.default`,""));S.push({key:A,value:b})}),S},E=M.useCallback(ce.debounce(C=>{a(S=>{const{keys:k,userLang:A}=S.i18n,b={...k};return delete b[C],{...S,i18n:{userLang:A,keys:b}}})},300),[]);return M.useEffect(()=>{(async()=>{if(!t){a(S=>({...S,i18nFileFetched:!0})),c();return}try{const S=await((i==null?void 0:i.fetchI18nFile)||hh)();a(k=>({...k,i18n:{keys:ce.get(S,"keys",Ha.i18n.keys),userLang:ce.get(S,"userLang",Ha.i18n.userLang)}}))}catch{}finally{a(S=>({...S,i18nFileFetched:!0})),c()}})()},[t,i==null?void 0:i.fetchI18nFile]),M.useEffect(()=>{const C=ye.i18nSubject.pipe(Rm(({action:S,payload:k})=>{if(S==="set_content"){const A={...l,keys:{...l.keys,...k}};a(b=>({...b,i18n:A}))}if(S==="set_locale_state"){const A={...l,...k};a(b=>({...b,i18n:A}))}})).subscribe();return()=>C.unsubscribe()},[l]),M.useEffect(()=>{r.i18nFileFetched&&(n==null||n(r.i18n))},[r]),w.jsx(Ch.Provider,{value:{i18n:r.i18n,createKey:u,updateKey:p,removeKey:E,editLanguageKeys:g,updateKeyDefault:d,deleteLanguageKeys:_,getI18nAsKeyValues:x,setUserLangSettings:m,shouldRecompute:o},children:e})});function zn(){const e=M.useContext(Ch);if(e===void 0)throw new Error("useI18n must be used within a I18nProviderContext");return e}const Ah=M.createContext(void 0),Nh=M.createContext(void 0),jm=e=>ye.getSupportedLanguages(e),Th=({children:e,getSupportedLanguages:t=jm,i18nCurrent:n="",activeTabPath:i="",flagsForActiveTab:r})=>{const{isInsideStudio:a}=ye.useStudioContext();return a?w.jsx(zm,{getSupportedLanguages:t,i18nCurrent:n,activeTabPath:i,flagsForActiveTab:r,children:e}):w.jsx(Vm,{getSupportedLanguages:t,children:e})},Vm=({children:e,getSupportedLanguages:t})=>{const{state:{currentLang:n},actions:i}=ye.useStateObject({currentLang:""}),{actions:r}=ye.useDsRendererAdapter(`${ye.QODLY_NAMESPACE}:${ye.USER_LANGUAGE_DATASOURCE_ID}`),{i18n:{userLang:{primary:a,supported:o}}}=zn(),{isInsideStudio:l}=ye.useStudioContext(),[u,c]=M.useState([]),{loaded:p}=ye.useDsChangeRenderer({datasourceId:`${ye.QODLY_NAMESPACE}:${ye.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:!0,onChange:x=>{if(!x)return;const{selected:E}=x;E&&E.isocode&&(i.setCurrentLang(E.isocode),m(E))}}),d=(x,E)=>{r.setProperty(x,E)},m=x=>{localStorage.setItem("i18n.selected",JSON.stringify(x))},g=()=>{const x=localStorage.getItem("i18n.selected");return x?JSON.parse(x):null},_=()=>navigator.language;return M.useEffect(()=>{t(l).then(x=>{c(x)})},[l]),M.useEffect(()=>{if(p&&o){const x=o.map(({isocode:E})=>u.find(C=>C.isocode===E)).filter(Boolean);d("supported",x)}},[o,p]),M.useEffect(()=>{if(p){const x=g();if(x){d("selected",x);return}const E=_();if(E){const C=o.find(S=>S.isocode===E);if(C){d("selected",C);return}}if(a){const C=o.find(S=>S.isocode===a);C&&d("selected",C)}}},[p,o,a]),w.jsx(Nh.Provider,{value:{selected:n,supported:u},children:e})},zm=M.memo(({children:e,getSupportedLanguages:t,i18nCurrent:n,flagsForActiveTab:i})=>{const{state:{supported:r},actions:a}=ye.useStateObject({supported:[]}),{i18n:{userLang:{primary:o,supported:l}}}=zn(),{isInsideStudio:u}=ye.useStudioContext(),c=n&&l.find(m=>m.isocode===n)?n:"",[p,d]=M.useState(c);return M.useEffect(()=>{i!=null&&i.enabled&&d("")},[i==null?void 0:i.enabled]),M.useEffect(()=>{d(c)},[c]),ye.useDsChangeRenderer({datasourceId:`${ye.QODLY_NAMESPACE}:${ye.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:i==null?void 0:i.enabled,onChange:m=>{if(!m)return;const{selected:g}=m;g&&g.isocode&&(d(g.isocode),localStorage.setItem("i18n.selected",g.isocode))}}),M.useEffect(()=>{t(u).then(m=>{a.setSupported(m)})},[u]),w.jsx(Ah.Provider,{value:{primary:o,selected:p||c,supported:r,userLangagues:l},children:e})});function Ph(){const{isInsideStudio:e}=ye.useStudioContext(),t=M.useContext(Ah),n=M.useContext(Nh),i=e?t:n;if(i===void 0)throw new Error("useLocalization must be used within a LocalizationContext");return i}const Oh=M.createContext(void 0),Lh=({children:e})=>{const{state:{allSupportedLanguages:t,selectedLanguage:n,languageKeys:i,addFirstLanguage:r},actions:a}=ye.useStateObject({allSupportedLanguages:[],selectedLanguage:void 0,languageKeys:[],addFirstLanguage:!1}),{supported:o}=Ph(),{i18n:l,setUserLangSettings:u,updateKey:c,removeKey:p,createKey:d}=zn(),m=(_,x)=>Object.keys(x).reduce((S,k)=>{if(x[k]){const A=x[k];if(Object.hasOwn(A,_)){const b=x[k][_];S.push({key:k,value:b,isDefault:!1})}else{const b=x[k].default;S.push({key:k,value:b,isDefault:!0})}}return S},[]),g=(_,x)=>{if(n){const{isocode:E}=n;c(_,E,x,!0);const C=structuredClone(l.keys),S=ce.set({...C},`${_}.${E}`,x),k=m(E,S);a.setLanguageKeys(k)}};return M.useEffect(()=>{a.setAllSupportedLanguages(o||[])},[o]),M.useEffect(()=>{if(n){const{isocode:_}=n,x=m(_,l.keys);a.setLanguageKeys(x)}},[l,n]),w.jsx(Oh.Provider,{value:{userLanguages:l.userLang,languageKeys:i,selectedLanguage:n,allSupportedLanguages:t,addFirstLanguage:r,isPrimary:l.userLang.primary===(n==null?void 0:n.isocode),removeKey:p,addNewKey:d,setAddFirstLanguage:a.setAddFirstLanguage,setUserLangSettings:u,setSelectedLanguage:_=>a.setSelectedLanguage(_),setLanguageKeyValue:g},children:e})},Bn=()=>{const e=M.useContext(Oh);if(e===void 0)throw new Error("useLocalizationEditor must be used within a LocalizationEditorProvider");return e};var he={};(function(){try{const e=document.createElement("style");e.setAttribute("data-vite-dev-id","ui-components.css"),e.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}:root:not(#\\#),:host:not(#\\#){--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-500:oklch(65.6% .241 354.308);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.65rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-grey-50:var(--ws-grey-50);--color-grey-100:var(--ws-grey-100);--color-grey-200:var(--ws-grey-200);--color-grey-300:var(--ws-grey-300);--color-grey-400:var(--ws-grey-400);--color-grey-500:var(--ws-grey-500);--color-grey-600:var(--ws-grey-600);--color-grey-700:var(--ws-grey-700);--color-grey-800:var(--ws-grey-800);--color-primary-500:var(--ws-primary-500);--color-primary-600:var(--ws-primary-600);--color-primary-700:var(--ws-primary-700);--color-positive-200:var(--ws-positive-200);--color-positive-400:var(--ws-positive-400);--color-positive-500:var(--ws-positive-500);--color-positive-600:var(--ws-positive-600);--color-warning-500:var(--ws-warning-500);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--text-xxs:.55rem;--text-s:.75rem;--min-height-6:1.5rem;--color-canvas-default:var(--ws-bg-default);--color-canvas-subtle:var(--ws-grey-100);--color-panel:var(--ws-grey-300);--color-panel-subtle:var(--ws-grey-200);--color-card:var(--ws-card-bg);--color-card-border:var(--ws-card-border);--color-body:var(--ws-bg-foreground);--color-body-bg:var(--ws-bg-default);--color-body-light:var(--ws-grey-100);--color-muted:var(--ws-text-muted);--color-neutral:var(--ws-grey-200);--color-button-text:var(--ws-button-fg);--color-primary:var(--ws-primary-default);--color-primary-hover:var(--ws-primary-hover);--color-primary-light:var(--ws-primary-light);--color-primary-dark:var(--ws-primary-dark);--color-positive:var(--ws-positive-500);--color-positive-hover:var(--ws-positive-hover);--color-positive-text:var(--ws-positive-text);--color-positive-bg:var(--ws-positive-bg);--color-positive-light:var(--ws-positive-light);--color-positive-dark:var(--ws-positive-dark);--color-negative:var(--ws-negative-500);--color-negative-hover:var(--ws-negative-hover);--color-negative-text:var(--ws-negative-text);--color-negative-bg:var(--ws-negative-bg);--color-negative-light:var(--ws-negative-light);--color-negative-dark:var(--ws-negative-dark);--color-warning:var(--ws-warning-500);--color-warning-hover:var(--ws-warning-hover);--color-warning-text:var(--ws-warning-text);--color-warning-bg:var(--ws-warning-bg);--color-warning-light:var(--ws-warning-light);--color-warning-dark:var(--ws-warning-dark);--color-input-bg:var(--ws-input-bg);--color-input-border:var(--ws-input-border);--color-input-text:var(--ws-input-text);--color-input-placeholder:var(--ws-input-placeholder);--color-input-focus-border:var(--ws-input-focus-border);--color-select-border:var(--ws-select-border);--color-select-text:var(--ws-select-text);--color-select-list-bg:var(--ws-select-list-bg);--color-input-option-hover-bg:var(--ws-input-option-hover-bg);--color-input-option-active-bg:var(--ws-input-option-active-bg);--color-input-option-active-text:var(--ws-input-option-active-text);--color-input-error-border:var(--ws-input-error-border);--color-input-error-bg:var(--ws-input-error-bg);--color-input-warning-border:var(--ws-input-warning-border);--color-input-warning-bg:var(--ws-input-warning-bg);--color-input-message-bg:var(--ws-input-message-bg);--color-input-message-text:var(--ws-input-message-text);--color-input-disable:var(--ws-disable-input);--color-inactive-text:var(--ws-inactive-text);--color-panel-0:var(--ws-panel-0);--color-panel-1:var(--ws-panel-1);--color-panel-2:var(--ws-panel-2);--color-panel-3:var(--ws-panel-3);--color-panel-4:var(--ws-panel-4);--color-panel-5:var(--ws-panel-5);--color-panel-border-subtle:var(--ws-panel-border-subtle);--color-tab-bg-default:var(--ws-tab-bg-default);--color-tab-border:var(--ws-tab-border);--color-tab-active-bg:var(--ws-tab-active-bg);--color-tab-active-fg:var(--ws-tab-active-fg);--color-tab-inactive-bg:var(--ws-tab-inactive-bg);--color-tab-inactive-fg:var(--ws-tab-inactive-fg);--color-panel-border:var(--ws-panel-border)}.pointer-events-auto:not(#\\#){pointer-events:auto}.pointer-events-none:not(#\\#){pointer-events:none}.collapse:not(#\\#){visibility:collapse}.visible:not(#\\#){visibility:visible}.sr-only:not(#\\#){clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute:not(#\\#){position:absolute}.fixed:not(#\\#){position:fixed}.relative:not(#\\#){position:relative}.static:not(#\\#){position:static}.inset-0:not(#\\#){inset:calc(var(--spacing)*0)}.-top-1\\/5:not(#\\#){top:-20%}.top-0:not(#\\#){top:calc(var(--spacing)*0)}.top-1:not(#\\#){top:calc(var(--spacing)*1)}.top-full:not(#\\#){top:100%}.-right-12:not(#\\#){right:calc(var(--spacing)*-12)}.right-0:not(#\\#){right:calc(var(--spacing)*0)}.right-1:not(#\\#){right:calc(var(--spacing)*1)}.bottom-0:not(#\\#){bottom:calc(var(--spacing)*0)}.bottom-full:not(#\\#){bottom:100%}.left-0:not(#\\#){left:calc(var(--spacing)*0)}.left-0\\.5:not(#\\#){left:calc(var(--spacing)*.5)}.left-1\\/2:not(#\\#){left:50%}.left-3\\.5:not(#\\#){left:calc(var(--spacing)*3.5)}.left-4:not(#\\#){left:calc(var(--spacing)*4)}.left-4\\.5:not(#\\#){left:calc(var(--spacing)*4.5)}.left-5\\.5:not(#\\#){left:calc(var(--spacing)*5.5)}.left-full:not(#\\#){left:100%}.z-1:not(#\\#){z-index:1}.z-2:not(#\\#){z-index:2}.z-10:not(#\\#){z-index:10}.z-40:not(#\\#){z-index:40}.z-50:not(#\\#){z-index:50}.z-60:not(#\\#){z-index:60}.z-9999:not(#\\#){z-index:9999}.container:not(#\\#){width:100%}@media(min-width:40rem){.container:not(#\\#){max-width:40rem}}@media(min-width:48rem){.container:not(#\\#){max-width:48rem}}@media(min-width:64rem){.container:not(#\\#){max-width:64rem}}@media(min-width:80rem){.container:not(#\\#){max-width:80rem}}@media(min-width:96rem){.container:not(#\\#){max-width:96rem}}.m-0:not(#\\#){margin:calc(var(--spacing)*0)}.m-0\\.5:not(#\\#){margin:calc(var(--spacing)*.5)}.m-px:not(#\\#){margin:1px}.mx-1:not(#\\#){margin-inline:calc(var(--spacing)*1)}.-my-1:not(#\\#){margin-block:calc(var(--spacing)*-1)}.mt-1:not(#\\#){margin-top:calc(var(--spacing)*1)}.mt-2:not(#\\#){margin-top:calc(var(--spacing)*2)}.mt-4:not(#\\#){margin-top:calc(var(--spacing)*4)}.mt-8:not(#\\#){margin-top:calc(var(--spacing)*8)}.mr-1:not(#\\#){margin-right:calc(var(--spacing)*1)}.mr-2:not(#\\#){margin-right:calc(var(--spacing)*2)}.mb-1:not(#\\#){margin-bottom:calc(var(--spacing)*1)}.mb-2:not(#\\#){margin-bottom:calc(var(--spacing)*2)}.mb-4:not(#\\#){margin-bottom:calc(var(--spacing)*4)}.ml-1:not(#\\#){margin-left:calc(var(--spacing)*1)}.ml-1\\.5:not(#\\#){margin-left:calc(var(--spacing)*1.5)}.ml-2:not(#\\#){margin-left:calc(var(--spacing)*2)}.box-border:not(#\\#){box-sizing:border-box}.block:not(#\\#){display:block}.flex:not(#\\#){display:flex}.grid:not(#\\#){display:grid}.hidden:not(#\\#){display:none}.inline:not(#\\#){display:inline}.inline-block:not(#\\#){display:inline-block}.inline-flex:not(#\\#){display:inline-flex}.table:not(#\\#){display:table}.size-1\\.5:not(#\\#){width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-1\\.75:not(#\\#){width:calc(var(--spacing)*1.75);height:calc(var(--spacing)*1.75)}.size-2:not(#\\#){width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5:not(#\\#){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3:not(#\\#){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-3\\.25:not(#\\#){width:calc(var(--spacing)*3.25);height:calc(var(--spacing)*3.25)}.size-4:not(#\\#){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5:not(#\\#){width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6:not(#\\#){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-fit:not(#\\#){width:fit-content;height:fit-content}.h-2:not(#\\#){height:calc(var(--spacing)*2)}.h-3:not(#\\#){height:calc(var(--spacing)*3)}.h-3\\.5:not(#\\#){height:calc(var(--spacing)*3.5)}.h-4:not(#\\#){height:calc(var(--spacing)*4)}.h-4\\.5:not(#\\#){height:calc(var(--spacing)*4.5)}.h-5:not(#\\#){height:calc(var(--spacing)*5)}.h-5\\.5:not(#\\#){height:calc(var(--spacing)*5.5)}.h-6:not(#\\#){height:calc(var(--spacing)*6)}.h-7:not(#\\#){height:calc(var(--spacing)*7)}.h-7\\.5:not(#\\#){height:calc(var(--spacing)*7.5)}.h-8:not(#\\#){height:calc(var(--spacing)*8)}.h-10:not(#\\#){height:calc(var(--spacing)*10)}.h-14:not(#\\#){height:calc(var(--spacing)*14)}.h-20:not(#\\#){height:calc(var(--spacing)*20)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-\\[120px\\]:not(#\\#){height:120px}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.max-h-\\[400px\\]:not(#\\#){max-height:400px}.max-h-full:not(#\\#){max-height:100%}.min-h-5:not(#\\#){min-height:calc(var(--spacing)*5)}.min-h-6:not(#\\#){min-height:var(--min-height-6)}.min-h-7:not(#\\#){min-height:calc(var(--spacing)*7)}.min-h-\\[100px\\]:not(#\\#){min-height:100px}.min-h-fit:not(#\\#){min-height:fit-content}.min-h-screen:not(#\\#){min-height:100vh}.w-0\\.5:not(#\\#){width:calc(var(--spacing)*.5)}.w-1\\/2:not(#\\#){width:50%}.w-3:not(#\\#){width:calc(var(--spacing)*3)}.w-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5)}.w-4:not(#\\#){width:calc(var(--spacing)*4)}.w-5:not(#\\#){width:calc(var(--spacing)*5)}.w-6:not(#\\#){width:calc(var(--spacing)*6)}.w-7:not(#\\#){width:calc(var(--spacing)*7)}.w-8:not(#\\#){width:calc(var(--spacing)*8)}.w-9:not(#\\#){width:calc(var(--spacing)*9)}.w-11:not(#\\#){width:calc(var(--spacing)*11)}.w-16:not(#\\#){width:calc(var(--spacing)*16)}.w-20:not(#\\#){width:calc(var(--spacing)*20)}.w-32:not(#\\#){width:calc(var(--spacing)*32)}.w-48:not(#\\#){width:calc(var(--spacing)*48)}.w-52:not(#\\#){width:calc(var(--spacing)*52)}.w-60:not(#\\#){width:calc(var(--spacing)*60)}.w-64:not(#\\#){width:calc(var(--spacing)*64)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.w-fit:not(#\\#){width:fit-content}.w-full:not(#\\#){width:100%}.w-px:not(#\\#){width:1px}.max-w-100:not(#\\#){max-width:calc(var(--spacing)*100)}.max-w-\\[300px\\]:not(#\\#){max-width:300px}.max-w-md:not(#\\#){max-width:var(--container-md)}.min-w-0:not(#\\#){min-width:calc(var(--spacing)*0)}.min-w-3\\.5:not(#\\#){min-width:calc(var(--spacing)*3.5)}.min-w-4\\.5:not(#\\#){min-width:calc(var(--spacing)*4.5)}.min-w-5:not(#\\#){min-width:calc(var(--spacing)*5)}.min-w-7\\.5:not(#\\#){min-width:calc(var(--spacing)*7.5)}.min-w-50:not(#\\#){min-width:calc(var(--spacing)*50)}.min-w-\\[150px\\]:not(#\\#){min-width:150px}.min-w-fit:not(#\\#){min-width:fit-content}.min-w-full:not(#\\#){min-width:100%}.flex-1:not(#\\#){flex:1}.flex-3:not(#\\#){flex:3}.flex-none:not(#\\#){flex:none}.shrink-0:not(#\\#){flex-shrink:0}.origin-top-right:not(#\\#){transform-origin:100% 0}.-translate-x-1\\/2:not(#\\#){--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full:not(#\\#){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0:not(#\\#){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full:not(#\\#){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full:not(#\\#){--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0:not(#\\#){--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\\/2:not(#\\#){--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full:not(#\\#){--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0:not(#\\#){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95:not(#\\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100:not(#\\#){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110:not(#\\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45:not(#\\#){rotate:-45deg}.rotate-45:not(#\\#){rotate:45deg}.rotate-90:not(#\\#){rotate:90deg}.rotate-180:not(#\\#){rotate:180deg}.transform:not(#\\#){transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce:not(#\\#){animation:var(--animate-bounce)}.cursor-auto:not(#\\#){cursor:auto}.cursor-not-allowed:not(#\\#){cursor:not-allowed}.cursor-pointer:not(#\\#){cursor:pointer}.cursor-se-resize:not(#\\#){cursor:se-resize}.resize:not(#\\#){resize:both}.resize-none:not(#\\#){resize:none}.list-disc:not(#\\#){list-style-type:disc}.appearance-none:not(#\\#){-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2:not(#\\#){grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3:not(#\\#){grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col:not(#\\#){flex-direction:column}.flex-row:not(#\\#){flex-direction:row}.flex-wrap:not(#\\#){flex-wrap:wrap}.place-content-center:not(#\\#){place-content:center}.place-items-center:not(#\\#){place-items:center}.items-center:not(#\\#){align-items:center}.items-end:not(#\\#){align-items:flex-end}.items-start:not(#\\#){align-items:flex-start}.justify-around:not(#\\#){justify-content:space-around}.justify-between:not(#\\#){justify-content:space-between}.justify-center:not(#\\#){justify-content:center}.gap-0\\.5:not(#\\#){gap:calc(var(--spacing)*.5)}.gap-1:not(#\\#){gap:calc(var(--spacing)*1)}.gap-1\\.5:not(#\\#){gap:calc(var(--spacing)*1.5)}.gap-2:not(#\\#){gap:calc(var(--spacing)*2)}.gap-2\\.5:not(#\\#){gap:calc(var(--spacing)*2.5)}.gap-3:not(#\\#){gap:calc(var(--spacing)*3)}.gap-4:not(#\\#){gap:calc(var(--spacing)*4)}.gap-6:not(#\\#){gap:calc(var(--spacing)*6)}.gap-8:not(#\\#){gap:calc(var(--spacing)*8)}.gap-10:not(#\\#){gap:calc(var(--spacing)*10)}.gap-14:not(#\\#){gap:calc(var(--spacing)*14)}:where(.space-y-1>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1:not(#\\#){column-gap:calc(var(--spacing)*1)}.gap-x-2:not(#\\#){column-gap:calc(var(--spacing)*2)}.gap-x-3:not(#\\#){column-gap:calc(var(--spacing)*3)}.gap-x-4:not(#\\#){column-gap:calc(var(--spacing)*4)}.gap-x-20:not(#\\#){column-gap:calc(var(--spacing)*20)}:where(.space-x-4>:not(:last-child)):not(#\\#){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.truncate:not(#\\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden:not(#\\#){overflow:hidden}.overflow-y-auto:not(#\\#){overflow-y:auto}.rounded:not(#\\#){border-radius:.25rem}.rounded-full:not(#\\#){border-radius:3.40282e38px}.rounded-lg:not(#\\#){border-radius:var(--radius-lg)}.rounded-md:not(#\\#){border-radius:var(--radius-md)}.rounded-xs:not(#\\#){border-radius:var(--radius-xs)}.rounded-t:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-none:not(#\\#){border-top-left-radius:0;border-top-right-radius:0}.rounded-b-none:not(#\\#){border-bottom-right-radius:0;border-bottom-left-radius:0}.border:not(#\\#){border-style:var(--tw-border-style);border-width:1px}.border-0:not(#\\#){border-style:var(--tw-border-style);border-width:0}.border-2:not(#\\#){border-style:var(--tw-border-style);border-width:2px}.border-px:not(#\\#){border-width:1px}.divide:not(#\\#){border-width:.5px}.border-t:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:0}.border-r:not(#\\#){border-right-style:var(--tw-border-style);border-right-width:1px}.border-b:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-dashed:not(#\\#){--tw-border-style:dashed;border-style:dashed}.border-body:not(#\\#){border-color:var(--color-body)}.border-body-light:not(#\\#){border-color:var(--color-body-light)}.border-canvas-default:not(#\\#){border-color:var(--color-canvas-default)}.border-card-border:not(#\\#){border-color:var(--color-card-border)}.border-grey-100:not(#\\#){border-color:var(--color-grey-100)}.border-grey-200:not(#\\#){border-color:var(--color-grey-200)}.border-input-border:not(#\\#){border-color:var(--color-input-border)}.border-input-disable:not(#\\#){border-color:var(--color-input-disable)}.border-input-error-border:not(#\\#){border-color:var(--color-input-error-border)}.border-input-focus-border:not(#\\#){border-color:var(--color-input-focus-border)}.border-input-warning-border:not(#\\#){border-color:var(--color-input-warning-border)}.border-negative:not(#\\#){border-color:var(--color-negative)}.border-negative-500:not(#\\#){border-color:var(--color-negative-500)}.border-neutral:not(#\\#){border-color:var(--color-neutral)}.border-panel:not(#\\#){border-color:var(--color-panel)}.border-panel-border:not(#\\#){border-color:var(--color-panel-border)}.border-panel-border-subtle:not(#\\#){border-color:var(--color-panel-border-subtle)}.border-panel-subtle:not(#\\#){border-color:var(--color-panel-subtle)}.border-positive:not(#\\#){border-color:var(--color-positive)}.border-positive-text:not(#\\#){border-color:var(--color-positive-text)}.border-primary:not(#\\#){border-color:var(--color-primary)}.border-primary-700:not(#\\#){border-color:var(--color-primary-700)}.border-primary-hover:not(#\\#){border-color:var(--color-primary-hover)}.border-select-border:not(#\\#){border-color:var(--color-select-border)}.border-tab-border:not(#\\#){border-color:var(--color-tab-border)}.border-transparent:not(#\\#){border-color:#0000}.border-warning:not(#\\#){border-color:var(--color-warning)}.border-warning-bg:not(#\\#){border-color:var(--color-warning-bg)}.border-white:not(#\\#){border-color:var(--color-white)}.bg-blue-500:not(#\\#){background-color:var(--color-blue-500)}.bg-body:not(#\\#){background-color:var(--color-body)}.bg-body-bg:not(#\\#){background-color:var(--color-body-bg)}.bg-canvas-default:not(#\\#){background-color:var(--color-canvas-default)}.bg-canvas-subtle:not(#\\#){background-color:var(--color-canvas-subtle)}.bg-card:not(#\\#){background-color:var(--color-card)}.bg-gray-100:not(#\\#){background-color:var(--color-gray-100)}.bg-grey-50:not(#\\#){background-color:var(--color-grey-50)}.bg-grey-200:not(#\\#){background-color:var(--color-grey-200)}.bg-grey-300:not(#\\#){background-color:var(--color-grey-300)}.bg-grey-400:not(#\\#){background-color:var(--color-grey-400)}.bg-grey-500:not(#\\#){background-color:var(--color-grey-500)}.bg-grey-600:not(#\\#){background-color:var(--color-grey-600)}.bg-grey-700:not(#\\#){background-color:var(--color-grey-700)}.bg-grey-800:not(#\\#){background-color:var(--color-grey-800)}.bg-input-bg:not(#\\#){background-color:var(--color-input-bg)}.bg-input-border:not(#\\#){background-color:var(--color-input-border)}.bg-input-disable:not(#\\#){background-color:var(--color-input-disable)}.bg-input-error-bg:not(#\\#){background-color:var(--color-input-error-bg)}.bg-input-message-bg:not(#\\#){background-color:var(--color-input-message-bg)}.bg-input-option-active-bg:not(#\\#){background-color:var(--color-input-option-active-bg)}.bg-input-option-hover-bg:not(#\\#){background-color:var(--color-input-option-hover-bg)}.bg-input-text:not(#\\#){background-color:var(--color-input-text)}.bg-input-warning-bg:not(#\\#){background-color:var(--color-input-warning-bg)}.bg-negative:not(#\\#){background-color:var(--color-negative)}.bg-negative-400:not(#\\#){background-color:var(--color-negative-400)}.bg-negative-500:not(#\\#){background-color:var(--color-negative-500)}.bg-negative-bg:not(#\\#){background-color:var(--color-negative-bg)}.bg-negative-hover:not(#\\#){background-color:var(--color-negative-hover)}.bg-negative-light:not(#\\#){background-color:var(--color-negative-light)}.bg-panel:not(#\\#){background-color:var(--color-panel)}.bg-panel-0:not(#\\#){background-color:var(--color-panel-0)}.bg-panel-1:not(#\\#){background-color:var(--color-panel-1)}.bg-panel-2:not(#\\#){background-color:var(--color-panel-2)}.bg-panel-3:not(#\\#){background-color:var(--color-panel-3)}.bg-panel-4:not(#\\#){background-color:var(--color-panel-4)}.bg-panel-5:not(#\\#){background-color:var(--color-panel-5)}.bg-panel-subtle:not(#\\#){background-color:var(--color-panel-subtle)}.bg-positive:not(#\\#){background-color:var(--color-positive)}.bg-positive-200:not(#\\#){background-color:var(--color-positive-200)}.bg-positive-500:not(#\\#){background-color:var(--color-positive-500)}.bg-positive-bg:not(#\\#){background-color:var(--color-positive-bg)}.bg-positive-hover:not(#\\#){background-color:var(--color-positive-hover)}.bg-positive-light:not(#\\#){background-color:var(--color-positive-light)}.bg-primary:not(#\\#){background-color:var(--color-primary)}.bg-primary-500:not(#\\#){background-color:var(--color-primary-500)}.bg-primary-600:not(#\\#){background-color:var(--color-primary-600)}.bg-primary-hover:not(#\\#){background-color:var(--color-primary-hover)}.bg-primary-light:not(#\\#){background-color:var(--color-primary-light)}.bg-primary\\/30:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/30:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.bg-select-list-bg:not(#\\#){background-color:var(--color-select-list-bg)}.bg-tab-active-bg:not(#\\#){background-color:var(--color-tab-active-bg)}.bg-tab-bg-default:not(#\\#){background-color:var(--color-tab-bg-default)}.bg-tab-inactive-bg:not(#\\#){background-color:var(--color-tab-inactive-bg)}.bg-transparent:not(#\\#){background-color:#0000}.bg-warning:not(#\\#){background-color:var(--color-warning)}.bg-warning-500:not(#\\#){background-color:var(--color-warning-500)}.bg-warning-bg:not(#\\#){background-color:var(--color-warning-bg)}.bg-warning-hover:not(#\\#){background-color:var(--color-warning-hover)}.bg-warning-light:not(#\\#){background-color:var(--color-warning-light)}.bg-white:not(#\\#){background-color:var(--color-white)}.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right in oklab}}.bg-linear-to-r:not(#\\#){background-image:linear-gradient(var(--tw-gradient-stops))}.from-green-500:not(#\\#){--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-primary:not(#\\#){--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500:not(#\\#){--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500:not(#\\#){--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-current:not(#\\#){stroke:currentColor}.p-0:not(#\\#){padding:calc(var(--spacing)*0)}.p-0\\.5:not(#\\#){padding:calc(var(--spacing)*.5)}.p-1:not(#\\#){padding:calc(var(--spacing)*1)}.p-1\\!{padding:calc(var(--spacing)*1)!important}.p-1\\.5:not(#\\#){padding:calc(var(--spacing)*1.5)}.p-2:not(#\\#){padding:calc(var(--spacing)*2)}.p-2\\.5:not(#\\#){padding:calc(var(--spacing)*2.5)}.p-3:not(#\\#){padding:calc(var(--spacing)*3)}.p-4:not(#\\#){padding:calc(var(--spacing)*4)}.p-6:not(#\\#){padding:calc(var(--spacing)*6)}.p-8:not(#\\#){padding:calc(var(--spacing)*8)}.p-10:not(#\\#){padding:calc(var(--spacing)*10)}.p-50:not(#\\#){padding:calc(var(--spacing)*50)}.p-px:not(#\\#){padding:1px}.px-0\\.5:not(#\\#){padding-inline:calc(var(--spacing)*.5)}.px-1:not(#\\#){padding-inline:calc(var(--spacing)*1)}.px-1\\.5:not(#\\#){padding-inline:calc(var(--spacing)*1.5)}.px-2:not(#\\#){padding-inline:calc(var(--spacing)*2)}.px-3:not(#\\#){padding-inline:calc(var(--spacing)*3)}.px-4:not(#\\#){padding-inline:calc(var(--spacing)*4)}.px-6:not(#\\#){padding-inline:calc(var(--spacing)*6)}.px-7:not(#\\#){padding-inline:calc(var(--spacing)*7)}.px-8:not(#\\#){padding-inline:calc(var(--spacing)*8)}.py-0\\.5:not(#\\#){padding-block:calc(var(--spacing)*.5)}.py-1:not(#\\#){padding-block:calc(var(--spacing)*1)}.py-1\\.5:not(#\\#){padding-block:calc(var(--spacing)*1.5)}.py-2:not(#\\#){padding-block:calc(var(--spacing)*2)}.py-3:not(#\\#){padding-block:calc(var(--spacing)*3)}.pt-0\\.5:not(#\\#){padding-top:calc(var(--spacing)*.5)}.pt-1:not(#\\#){padding-top:calc(var(--spacing)*1)}.pt-1\\.5:not(#\\#){padding-top:calc(var(--spacing)*1.5)}.pt-2:not(#\\#){padding-top:calc(var(--spacing)*2)}.pl-1:not(#\\#){padding-left:calc(var(--spacing)*1)}.pl-4:not(#\\#){padding-left:calc(var(--spacing)*4)}.text-center:not(#\\#){text-align:center}.text-left:not(#\\#){text-align:left}.text-2xl:not(#\\#){font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl:not(#\\#){font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl:not(#\\#){font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl:not(#\\#){font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl:not(#\\#){font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-7xl:not(#\\#){font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-8xl:not(#\\#){font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.text-9xl:not(#\\#){font-size:var(--text-9xl);line-height:var(--tw-leading,var(--text-9xl--line-height))}.text-base:not(#\\#){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg:not(#\\#){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm:not(#\\#){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl:not(#\\#){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs:not(#\\#){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-s:not(#\\#){font-size:var(--text-s)}.text-xxs:not(#\\#){font-size:var(--text-xxs)}.leading-3:not(#\\#){--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-4:not(#\\#){--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5:not(#\\#){--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none:not(#\\#){--tw-leading:1;line-height:1}.font-bold:not(#\\#){--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium:not(#\\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold:not(#\\#){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin:not(#\\#){--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.whitespace-nowrap:not(#\\#){white-space:nowrap}.text-body:not(#\\#){color:var(--color-body)}.text-button-text:not(#\\#){color:var(--color-button-text)}.text-gray-50:not(#\\#){color:var(--color-gray-50)}.text-gray-400:not(#\\#){color:var(--color-gray-400)}.text-gray-500:not(#\\#){color:var(--color-gray-500)}.text-gray-800:not(#\\#){color:var(--color-gray-800)}.text-grey-50:not(#\\#){color:var(--color-grey-50)}.text-grey-100:not(#\\#){color:var(--color-grey-100)}.text-grey-200:not(#\\#){color:var(--color-grey-200)}.text-grey-300:not(#\\#){color:var(--color-grey-300)}.text-grey-700:not(#\\#){color:var(--color-grey-700)}.text-inactive-text:not(#\\#){color:var(--color-inactive-text)}.text-inherit:not(#\\#){color:inherit}.text-input-disable:not(#\\#){color:var(--color-input-disable)}.text-input-message-text:not(#\\#){color:var(--color-input-message-text)}.text-input-option-active-text:not(#\\#){color:var(--color-input-option-active-text)}.text-input-placeholder:not(#\\#){color:var(--color-input-placeholder)}.text-input-text:not(#\\#){color:var(--color-input-text)}.text-muted:not(#\\#){color:var(--color-muted)}.text-negative:not(#\\#){color:var(--color-negative)}.text-negative-500:not(#\\#){color:var(--color-negative-500)}.text-negative-dark:not(#\\#){color:var(--color-negative-dark)}.text-negative-text:not(#\\#){color:var(--color-negative-text)}.text-panel-subtle:not(#\\#){color:var(--color-panel-subtle)}.text-positive:not(#\\#){color:var(--color-positive)}.text-positive-500:not(#\\#){color:var(--color-positive-500)}.text-positive-600:not(#\\#){color:var(--color-positive-600)}.text-positive-dark:not(#\\#){color:var(--color-positive-dark)}.text-positive-text:not(#\\#),.text-positive-text\\/70:not(#\\#){color:var(--color-positive-text)}@supports (color:color-mix(in lab,red,red)){.text-positive-text\\/70:not(#\\#){color:color-mix(in oklab,var(--color-positive-text)70%,transparent)}}.text-primary:not(#\\#){color:var(--color-primary)}.text-primary-dark:not(#\\#){color:var(--color-primary-dark)}.text-primary-hover:not(#\\#){color:var(--color-primary-hover)}.text-select-text:not(#\\#){color:var(--color-select-text)}.text-tab-active-fg:not(#\\#){color:var(--color-tab-active-fg)}.text-tab-inactive-fg:not(#\\#){color:var(--color-tab-inactive-fg)}.text-warning:not(#\\#){color:var(--color-warning)}.text-warning-dark:not(#\\#){color:var(--color-warning-dark)}.text-warning-text:not(#\\#){color:var(--color-warning-text)}.capitalize:not(#\\#){text-transform:capitalize}.lowercase:not(#\\#){text-transform:lowercase}.uppercase:not(#\\#){text-transform:uppercase}.italic:not(#\\#){font-style:italic}.underline:not(#\\#){text-decoration-line:underline}.decoration-transparent:not(#\\#){text-decoration-color:#0000}.opacity-0:not(#\\#){opacity:0}.opacity-50:not(#\\#){opacity:.5}.opacity-60:not(#\\#){opacity:.6}.opacity-80:not(#\\#){opacity:.8}.opacity-100:not(#\\#){opacity:1}.shadow:not(#\\#){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner:not(#\\#){--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg:not(#\\#){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md:not(#\\#){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs:not(#\\#){--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-input-error-border:not(#\\#){--tw-ring-color:var(--color-input-error-border)}.ring-input-focus-border:not(#\\#){--tw-ring-color:var(--color-input-focus-border)}.ring-input-warning-border:not(#\\#){--tw-ring-color:var(--color-input-warning-border)}.ring-positive:not(#\\#){--tw-ring-color:var(--color-positive)}.outline-hidden:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.outline:not(#\\#),.outline-1:not(#\\#){outline-style:var(--tw-outline-style);outline-width:1px}.outline-s:not(#\\#){outline-width:.5px}.outline-xs:not(#\\#){outline-width:.3px}.outline-xxs:not(#\\#){outline-width:.1px}.outline-canvas-default:not(#\\#){outline-color:var(--color-canvas-default)}.outline-primary:not(#\\#){outline-color:var(--color-primary)}.blur:not(#\\#){--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter:not(#\\#){filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all:not(#\\#){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity:not(#\\#){transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform:not(#\\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150:not(#\\#){--tw-duration:.15s;transition-duration:.15s}.duration-200:not(#\\#){--tw-duration:.2s;transition-duration:.2s}.duration-300:not(#\\#){--tw-duration:.3s;transition-duration:.3s}.ease-in-out:not(#\\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out:not(#\\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-solid:not(#\\#){--tw-outline-style:solid;outline-style:solid}.select-none:not(#\\#){-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:flex:is(:where(.group):hover *):not(#\\#){display:flex}.group-hover\\:grid:is(:where(.group):hover *):not(#\\#){display:grid}.group-hover\\:border-body:is(:where(.group):hover *):not(#\\#){border-color:var(--color-body)}.group-hover\\:border-negative-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-negative-text)}.group-hover\\:border-positive-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-positive-text)}.group-hover\\:border-warning-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-warning-text)}.group-hover\\:bg-grey-400:is(:where(.group):hover *):not(#\\#){background-color:var(--color-grey-400)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-hover)}.group-hover\\:bg-negative-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-light)}.group-hover\\:bg-positive-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-hover)}.group-hover\\:bg-positive-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-light)}.group-hover\\:bg-primary-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-hover)}.group-hover\\:bg-primary-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-light)}.group-hover\\:bg-warning-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-hover)}.group-hover\\:bg-warning-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-light)}.group-hover\\:opacity-100:is(:where(.group):hover *):not(#\\#){opacity:1}}.placeholder\\:text-sm:not(#\\#)::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.placeholder\\:text-xs:not(#\\#)::placeholder{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.placeholder\\:text-s:not(#\\#)::placeholder{font-size:var(--text-s)}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:bottom-full:first-child:not(#\\#){bottom:100%}.first\\:-ml-1\\.5:first-child:not(#\\#){margin-left:calc(var(--spacing)*-1.5)}.first\\:rounded-t:first-child:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.first\\:rounded-l:first-child:not(#\\#){border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.last\\:top-full:last-child:not(#\\#){top:100%}.last\\:-mr-1\\.5:last-child:not(#\\#){margin-right:calc(var(--spacing)*-1.5)}.last\\:rounded-r:last-child:not(#\\#){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.last\\:rounded-b:last-child:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.only\\:top-full:only-child:not(#\\#){top:100%}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.only\\:ring-1:only-child:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:border-input-error-border:focus-within:not(#\\#){border-color:var(--color-input-error-border)}.focus-within\\:border-input-focus-border:focus-within:not(#\\#){border-color:var(--color-input-focus-border)}.focus-within\\:border-input-warning-border:focus-within:not(#\\#){border-color:var(--color-input-warning-border)}.focus-within\\:border-positive:focus-within:not(#\\#){border-color:var(--color-positive)}@media(hover:hover){.hover\\:border-black:hover:not(#\\#){border-color:var(--color-black)}.hover\\:border-canvas-subtle:hover:not(#\\#){border-color:var(--color-canvas-subtle)}.hover\\:border-negative-hover:hover:not(#\\#){border-color:var(--color-negative-hover)}.hover\\:border-positive-hover:hover:not(#\\#){border-color:var(--color-positive-hover)}.hover\\:border-primary-hover:hover:not(#\\#){border-color:var(--color-primary-hover)}.hover\\:border-warning-hover:hover:not(#\\#){border-color:var(--color-warning-hover)}.hover\\:bg-canvas-subtle:hover:not(#\\#){background-color:var(--color-canvas-subtle)}.hover\\:bg-grey-500:hover:not(#\\#){background-color:var(--color-grey-500)}.hover\\:bg-grey-700:hover:not(#\\#){background-color:var(--color-grey-700)}.hover\\:bg-input-option-hover-bg:hover:not(#\\#){background-color:var(--color-input-option-hover-bg)}.hover\\:bg-negative:hover:not(#\\#){background-color:var(--color-negative)}.hover\\:bg-negative-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary-600:hover:not(#\\#){background-color:var(--color-primary-600)}.hover\\:bg-primary-hover:hover:not(#\\#){background-color:var(--color-primary-hover)}.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)20%,transparent)}}.hover\\:bg-transparent:hover:not(#\\#){background-color:#0000}.hover\\:bg-warning:hover:not(#\\#){background-color:var(--color-warning)}.hover\\:bg-warning-hover:hover:not(#\\#){background-color:var(--color-warning-hover)}.hover\\:text-body:hover:not(#\\#){color:var(--color-body)}.hover\\:text-button-text:hover:not(#\\#){color:var(--color-button-text)}.hover\\:text-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-negative-hover:hover:not(#\\#){color:var(--color-negative-hover)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-hover:hover:not(#\\#){color:var(--color-positive-hover)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary-hover:hover:not(#\\#){color:var(--color-primary-hover)}.hover\\:text-tab-active-fg:hover:not(#\\#){color:var(--color-tab-active-fg)}.hover\\:text-warning-hover:hover:not(#\\#){color:var(--color-warning-hover)}.hover\\:decoration-current:hover:not(#\\#){text-decoration-color:currentColor}}.focus\\:bg-transparent:focus:not(#\\#){background-color:#0000}.focus\\:ring-2:focus:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-negative:focus:not(#\\#){--tw-ring-color:var(--color-negative)}.focus\\:ring-positive:focus:not(#\\#){--tw-ring-color:var(--color-positive)}.focus\\:ring-primary:focus:not(#\\#){--tw-ring-color:var(--color-primary)}.focus\\:ring-warning:focus:not(#\\#){--tw-ring-color:var(--color-warning)}.focus\\:ring-offset-0:focus:not(#\\#){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:ring-offset-2:focus:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:ring-2:focus-visible:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-primary:focus-visible:not(#\\#){--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}:root:not(#\\#){--ws-primary-50:#f2ddff;--ws-primary-100:#edd0ff;--ws-primary-300:#d0acef;--ws-primary-400:#c190ea;--ws-primary-600:#935ebf;--ws-primary-800:#563374;--ws-primary-900:#381e4f;--ws-primary-950:#29133c;--ws-positive-50:#ecf9f2;--ws-positive-100:#d9f2e6;--ws-positive-300:#8ed9b3;--ws-positive-400:#68cd99;--ws-positive-700:#28734d;--ws-positive-800:#28734d;--ws-positive-900:#0d261a;--ws-positive-950:#07130d;--ws-warning-50:#fff7e6;--ws-warning-100:#ffefcc;--ws-warning-300:#fed066;--ws-warning-400:#fdc133;--ws-warning-700:#986a00;--ws-warning-800:#654700;--ws-warning-900:#332300;--ws-warning-950:#191200;--ws-negative-50:#feeeee;--ws-negative-100:#fcdcdc;--ws-negative-300:#f69797;--ws-negative-400:#f37575;--ws-negative-700:#9a3232;--ws-negative-800:#6e2222;--ws-negative-900:#431212;--ws-negative-950:#2e0a0a;--ws-grey-300:#535353;--ws-grey-400:#484848;--ws-grey-600:#3f3f3f;--ws-palette-primary-200:#e0c7f5;--ws-palette-primary-500:#b174e5;--ws-palette-primary-700:#75499a;--ws-button-bg:var(--vscode-button-background,var(--theia-button-background,var(--ws-palette-primary-500)));--ws-button-fg:var(--vscode-button-foreground,var(--theia-button-foreground,var(--ws-palette-white)));--ws-primary-default:var(--ws-button-bg);--ws-button-text:var(--ws-button-fg);--ws-primary-hover:var(--vscode-button-hoverBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-light:var(--vscode-editorInfo-foreground,var(--theia-button-secondaryForeground,var(--ws-palette-primary-200)));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--theia-button-secondaryBackground,var(--ws-palette-primary-700)));--ws-primary-200:var(--ws-primary-light);--ws-primary-500:var(--ws-primary-default);--ws-primary-700:var(--ws-primary-hover);--ws-palette-positive-200:#b3e6cc;--ws-palette-positive-500:#42c080;--ws-palette-positive-600:#359a66;--ws-positive-dark:var(--vscode-gitDecoration-addedResourceForeground,var(--ws-palette-positive-600));--ws-positive-hover:var(--ws-positive-dark);--ws-positive-bg:var(--ws-palette-positive-100);--ws-positive-light:var(--ws-palette-positive-200);--ws-positive-border:var(--ws-positive-500);--ws-positive-text:var(--ws-positive-500);--ws-positive-500:var(--vscode-testing-iconPassed,var(--ws-palette-positive-500));--ws-positive-200:var(--ws-positive-light);--ws-positive-600:var(--ws-positive-dark);--ws-palette-warning-200:#fee099;--ws-palette-warning-500:#fdb100;--ws-palette-warning-600:#ca8e00;--ws-warning-hover:var(--ws-warning-600);--ws-warning-text:var(--ws-warning-500);--ws-warning-border:var(--ws-warning-500);--ws-warning-500:var(--vscode-list-warningForeground,var(--ws-palette-warning-500));--ws-warning-bg:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-500));--ws-warning-light:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-200));--ws-warning-dark:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-600));--ws-warning-200:var(--ws-warning-light);--ws-warning-600:var(--ws-warning-dark);--ws-palette-negative-200:#f9baba;--ws-palette-negative-500:#f05252;--ws-palette-negative-600:#c54242;--ws-negative-hover:var(--ws-negative-600);--ws-negative-text:var(--ws-negative-500);--ws-negative-500:var(--vscode-errorForeground,var(--ws-palette-negative-500));--ws-negative-light:var(--ws-palette-negative-200);--ws-negative-dark:var(--ws-palette-negative-600);--ws-negative-200:var(--ws-negative-light);--ws-negative-600:var(--ws-negative-dark);--ws-palette-white:#fff;--ws-palette-grey-50:#f1f5f9;--ws-palette-grey-100:#ccc;--ws-palette-grey-200:#888;--ws-palette-grey-300:#535353;--ws-palette-grey-400:#484848;--ws-palette-grey-500:#444;--ws-palette-grey-600:#3f3f3f;--ws-palette-grey-700:#393939;--ws-palette-grey-800:#383838;--ws-palette-grey-900:#262626;--ws-palette-grey-950:#151515;--ws-bg-default:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-white)));--ws-bg-foreground:var(--vscode-editor-foreground,var(--theia-editor-foreground,var(--ws-palette-grey-50)));--ws-grey-50:var(--ws-bg-foreground);--ws-grey-100:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-100)));--ws-grey-200:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-200)));--ws-grey-950:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-950)));--ws-grey-500:var(--vscode-descriptionForeground,var(--ws-palette-grey-500));--ws-grey-800:var(--vscode-descriptionForeground,var(--ws-palette-grey-800));--ws-card-bg:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editorGroupHeader-tabsBorder,var(--ws-palette-grey-50)));--ws-palette-input-bg:var(--ws-palette-grey-300);--ws-palette-input-border:var(--ws-palette-grey-300);--ws-palette-input-text:var(--ws-palette-grey-50);--ws-palette-input-placeholder:var(--ws-palette-grey-200);--ws-palette-input-focus-border:var(--ws-palette-grey-50);--ws-input-bg:var(--vscode-input-background,var(--vscode-editorWidget-background,var(--theia-input-background,var(--ws-palette-input-bg))));--ws-input-border:var(--vscode-input-border,var(--vscode-panel-border,var(--theia-input-border,var(--ws-palette-input-border))));--ws-input-text:var(--vscode-input-foreground,var(--vscode-editor-foreground,var(--theia-input-foreground,var(--ws-palette-input-text))));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--vscode-editor-foreground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder))));--ws-input-focus-border:var(--vscode-focusBorder,var(--vscode-button-background,var(--theia-focusBorder,var(--ws-palette-primary-500))));--ws-select-bg:var(--vscode-dropdown-background,var(--vscode-editorWidget-background,var(--theia-dropdown-background,var(--ws-input-bg))));--ws-select-border:var(--vscode-dropdown-border,var(--vscode-panel-border,var(--theia-dropdown-border,var(--ws-input-border))));--ws-select-text:var(--vscode-dropdown-foreground,var(--vscode-editor-foreground,var(--theia-dropdown-foreground,var(--ws-input-text))));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-900))));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--vscode-button-hoverBackground,var(--theia-list-hoverBackground,var(--ws-palette-primary-700))));--ws-input-option-active-bg:var(--vscode-list-activeSelectionBackground,var(--theia-list-activeSelectionBackground,var(--ws-palette-primary-500)));--ws-input-option-active-text:var(--vscode-list-activeSelectionForeground,var(--theia-list-activeSelectionForeground,var(--ws-palette-white)));--ws-input-error-border:var(--vscode-inputValidation-errorBorder,var(--theia-inputValidation-errorBorder,var(--ws-palette-negative-500)));--ws-input-error-bg:var(--vscode-inputValidation-errorBackground,var(--theia-inputValidation-errorBackground,var(--ws-palette-negative-200)));--ws-input-warning-border:var(--vscode-inputValidation-warningBorder,var(--theia-inputValidation-warningBorder,var(--ws-palette-warning-500)));--ws-input-warning-bg:var(--vscode-inputValidation-warningBackground,var(--theia-inputValidation-warningBackground,var(--ws-palette-warning-200)));--ws-input-info-bg:var(--vscode-panel-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-bg:var(--vscode-editor-lineHighlightBackground,var(--vscode-editorWidget-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200))));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--vscode-editor-foreground,var(--theia-inputValidation-infoForeground,var(--ws-palette-primary-500))));--ws-inactive-text:var(--vscode-disabledForeground,var(--theia-disabled-foreground,var(--ws-palette-grey-200)));--ws-text-muted:var(--vscode-descriptionForeground,var(--vscode-editor-foreground,var(--theia-descriptionForeground,var(--ws-palette-grey-100))));--ws-disable-bg:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-300)));--ws-disable-input:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-200)));--ws-panel-0:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-900)));--ws-panel-1:var(--vscode-sideBar-background,var(--vscode-panel-background,var(--theia-sideBar-background,var(--ws-palette-grey-700))));--ws-panel-2:var(--vscode-panel-background,var(--vscode-editor-background,var(--theia-panel-background,var(--ws-palette-grey-900))));--ws-panel-3:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900))));--ws-panel-4:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-300)));--ws-panel-5:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-950)));--ws-panel-border-subtle:var(--vscode-panel-border,var(--vscode-tab-border,var(--theia-border-color,var(--ws-palette-grey-100))));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--vscode-focusBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300))));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--ws-palette-grey-900)));--ws-tab-border:var(--vscode-tab-border,var(--vscode-editorGroupHeader-tabsBorder,var(--ws-palette-grey-950)));--ws-tab-active-bg:var(--vscode-tab-activeBackground,var(--ws-palette-grey-800));--ws-tab-active-fg:var(--vscode-tab-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-tab-inactive-bg:var(--vscode-tab-inactiveBackground,var(--ws-palette-grey-900));--ws-tab-inactive-fg:var(--vscode-tab-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-200)));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--vscode-toolbar-hoverBackground,var(--ws-palette-grey-700)));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-800)));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-bg:var(--vscode-panel-background,var(--vscode-editor-background,var(--ws-bg-default)));--ws-panel-border:var(--vscode-panel-border,var(--vscode-tab-border,var(--ws-palette-grey-950)));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--vscode-focusBorder,var(--ws-palette-primary-500)));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-100)))}.center-absolute:not(#\\#){--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);position:absolute;top:50%;left:50%}.ws-group:hover .ws-checkbox-hover-target{opacity:1!important}.simplebar-scrollbar:not(#\\#):before{background-color:#ccc}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
4
|
+
`,document.head.appendChild(e)}catch(e){console.error("vite-plugin-inject-css: failed to inject css",e)}})();const Bm=e=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:w.jsx("path",{d:"M21.66 6.28a.5.5 0 0 0 0-.697l-.967-.993a.5.5 0 0 0-.716 0L8.499 16.373 4.023 11.78a.5.5 0 0 0-.716 0l-.967.993a.5.5 0 0 0 0 .697l5.889 6.046.014-.014a.377.377 0 0 0 .54 0L21.66 6.28Z",fill:"currentColor"})}),Hm=e=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:w.jsx("path",{d:"M10.84 2.714c0-.394.346-.714.773-.714h.774c.427 0 .773.32.773.714V9.5h5.025c.427 0 .773.32.773.714v3.572H5.042v-3.572c0-.394.346-.714.773-.714h5.025V2.714ZM5.042 14.5h13.916l1.034 6.685c.067.43-.295.815-.765.815h-2.1l-.681-5.929L15.764 22h-3.236l-.721-2.143L11.086 22h-2.85l-.682-3.929L6.872 22H4.773c-.47 0-.832-.385-.765-.815L5.042 14.5Z",fill:"currentColor"})}),ya=e=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:w.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),Km=e=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:w.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),Um=e=>w.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:w.jsx("path",{d:"M20.673 5.133c.136.24.053.55-.185.69l-16.25 9.623a.487.487 0 0 1-.676-.18l-.497-.884a.513.513 0 0 1 .185-.69L19.5 4.069c.238-.141.54-.06.676.18l.497.884ZM20.938 9.657c.136.24.053.55-.185.69L7.925 17.944a.487.487 0 0 1-.676-.181l-.497-.884a.513.513 0 0 1 .185-.69l12.829-7.597c.237-.14.54-.06.675.181l.497.884ZM20.16 15.376c.237-.14.32-.45.184-.69l-.497-.884a.487.487 0 0 0-.676-.18l-7.695 4.556a.513.513 0 0 0-.185.69l.498.884c.135.24.437.322.675.181l7.695-4.557Z",fill:"currentColor"})}),Wm=(e,t)=>{const n=new Array(e.length+t.length);for(let i=0;i<e.length;i++)n[i]=e[i];for(let i=0;i<t.length;i++)n[e.length+i]=t[i];return n},qm=(e,t)=>({classGroupId:e,validator:t}),Rh=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Xr="-",eu=[],Gm="arbitrary..",$m=e=>{const t=Ym(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:r=>{if(r.startsWith("[")&&r.endsWith("]"))return Jm(r);const a=r.split(Xr),o=a[0]===""&&a.length>1?1:0;return Dh(a,o,t)},getConflictingClassGroupIds:(r,a)=>{if(a){const o=i[r],l=n[r];return o?l?Wm(l,o):o:l||eu}return n[r]||eu}}},Dh=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],r=n.nextPart.get(i);if(r){const u=Dh(e,t+1,r);if(u)return u}const a=n.validators;if(a===null)return;const o=t===0?e.join(Xr):e.slice(t).join(Xr),l=a.length;for(let u=0;u<l;u++){const c=a[u];if(c.validator(o))return c.classGroupId}},Jm=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),i=t.slice(0,n);return i?Gm+i:void 0})(),Ym=e=>{const{theme:t,classGroups:n}=e;return Xm(n,t)},Xm=(e,t)=>{const n=Rh();for(const i in e){const r=e[i];ho(r,n,i,t)}return n},ho=(e,t,n,i)=>{const r=e.length;for(let a=0;a<r;a++){const o=e[a];Zm(o,t,n,i)}},Zm=(e,t,n,i)=>{if(typeof e=="string"){Qm(e,t,n);return}if(typeof e=="function"){ev(e,t,n,i);return}tv(e,t,n,i)},Qm=(e,t,n)=>{const i=e===""?t:Mh(t,e);i.classGroupId=n},ev=(e,t,n,i)=>{if(nv(e)){ho(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(qm(n,e))},tv=(e,t,n,i)=>{const r=Object.entries(e),a=r.length;for(let o=0;o<a;o++){const[l,u]=r[o];ho(u,Mh(t,l),n,i)}},Mh=(e,t)=>{let n=e;const i=t.split(Xr),r=i.length;for(let a=0;a<r;a++){const o=i[a];let l=n.nextPart.get(o);l||(l=Rh(),n.nextPart.set(o,l)),n=l}return n},nv=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,iv=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null);const r=(a,o)=>{n[a]=o,t++,t>e&&(t=0,i=n,n=Object.create(null))};return{get(a){let o=n[a];if(o!==void 0)return o;if((o=i[a])!==void 0)return r(a,o),o},set(a,o){a in n?n[a]=o:r(a,o)}}},Vs="!",tu=":",rv=[],nu=(e,t,n,i,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:r}),av=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=r=>{const a=[];let o=0,l=0,u=0,c;const p=r.length;for(let x=0;x<p;x++){const E=r[x];if(o===0&&l===0){if(E===tu){a.push(r.slice(u,x)),u=x+1;continue}if(E==="/"){c=x;continue}}E==="["?o++:E==="]"?o--:E==="("?l++:E===")"&&l--}const d=a.length===0?r:r.slice(u);let m=d,g=!1;d.endsWith(Vs)?(m=d.slice(0,-1),g=!0):d.startsWith(Vs)&&(m=d.slice(1),g=!0);const _=c&&c>u?c-u:void 0;return nu(a,g,m,_)};if(t){const r=t+tu,a=i;i=o=>o.startsWith(r)?a(o.slice(r.length)):nu(rv,!1,o,void 0,!0)}if(n){const r=i;i=a=>n({className:a,parseClassName:r})}return i},sv=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,i)=>{t.set(n,1e6+i)}),n=>{const i=[];let r=[];for(let a=0;a<n.length;a++){const o=n[a],l=o[0]==="[",u=t.has(o);l||u?(r.length>0&&(r.sort(),i.push(...r),r=[]),i.push(o)):r.push(o)}return r.length>0&&(r.sort(),i.push(...r)),i}},ov=e=>({cache:iv(e.cacheSize),parseClassName:av(e),sortModifiers:sv(e),...$m(e)}),lv=/\s+/,uv=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:r,sortModifiers:a}=t,o=[],l=e.trim().split(lv);let u="";for(let c=l.length-1;c>=0;c-=1){const p=l[c],{isExternal:d,modifiers:m,hasImportantModifier:g,baseClassName:_,maybePostfixModifierPosition:x}=n(p);if(d){u=p+(u.length>0?" "+u:u);continue}let E=!!x,C=i(E?_.substring(0,x):_);if(!C){if(!E){u=p+(u.length>0?" "+u:u);continue}if(C=i(_),!C){u=p+(u.length>0?" "+u:u);continue}E=!1}const S=m.length===0?"":m.length===1?m[0]:a(m).join(":"),k=g?S+Vs:S,A=k+C;if(o.indexOf(A)>-1)continue;o.push(A);const b=r(C,E);for(let f=0;f<b.length;++f){const T=b[f];o.push(k+T)}u=p+(u.length>0?" "+u:u)}return u},cv=(...e)=>{let t=0,n,i,r="";for(;t<e.length;)(n=e[t++])&&(i=Fh(n))&&(r&&(r+=" "),r+=i);return r},Fh=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=Fh(e[i]))&&(n&&(n+=" "),n+=t);return n},iu=(e,...t)=>{let n,i,r,a;const o=u=>{const c=t.reduce((p,d)=>d(p),e());return n=ov(c),i=n.cache.get,r=n.cache.set,a=l,l(u)},l=u=>{const c=i(u);if(c)return c;const p=uv(u,n);return r(u,p),p};return a=o,(...u)=>a(cv(...u))},hv=[],mt=e=>{const t=n=>n[e]||hv;return t.isThemeGetter=!0,t},jh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vh=/^\((?:(\w[\w-]*):)?(.+)\)$/i,dv=/^\d+\/\d+$/,pv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fv=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ri=e=>dv.test(e),ze=e=>!!e&&!Number.isNaN(Number(e)),An=e=>!!e&&Number.isInteger(Number(e)),Ka=e=>e.endsWith("%")&&ze(e.slice(0,-1)),xn=e=>pv.test(e),xv=()=>!0,bv=e=>fv.test(e)&&!gv.test(e),zh=()=>!1,yv=e=>mv.test(e),wv=e=>vv.test(e),kv=e=>!Ee(e)&&!Ce(e),Sv=e=>wi(e,Kh,zh),Ee=e=>jh.test(e),qn=e=>wi(e,Uh,bv),Ua=e=>wi(e,Av,ze),ru=e=>wi(e,Bh,zh),Ev=e=>wi(e,Hh,wv),mr=e=>wi(e,Wh,yv),Ce=e=>Vh.test(e),Li=e=>ki(e,Uh),Cv=e=>ki(e,Nv),au=e=>ki(e,Bh),Iv=e=>ki(e,Kh),_v=e=>ki(e,Hh),vr=e=>ki(e,Wh,!0),wi=(e,t,n)=>{const i=jh.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},ki=(e,t,n=!1)=>{const i=Vh.exec(e);return i?i[1]?t(i[1]):n:!1},Bh=e=>e==="position"||e==="percentage",Hh=e=>e==="image"||e==="url",Kh=e=>e==="length"||e==="size"||e==="bg-size",Uh=e=>e==="length",Av=e=>e==="number",Nv=e=>e==="family-name",Wh=e=>e==="shadow",su=()=>{const e=mt("color"),t=mt("font"),n=mt("text"),i=mt("font-weight"),r=mt("tracking"),a=mt("leading"),o=mt("breakpoint"),l=mt("container"),u=mt("spacing"),c=mt("radius"),p=mt("shadow"),d=mt("inset-shadow"),m=mt("text-shadow"),g=mt("drop-shadow"),_=mt("blur"),x=mt("perspective"),E=mt("aspect"),C=mt("ease"),S=mt("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],b=()=>[...A(),Ce,Ee],f=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],L=()=>[Ce,Ee,u],V=()=>[ri,"full","auto",...L()],D=()=>[An,"none","subgrid",Ce,Ee],B=()=>["auto",{span:["full",An,Ce,Ee]},An,Ce,Ee],j=()=>[An,"auto",Ce,Ee],$=()=>["auto","min","max","fr",Ce,Ee],K=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],ne=()=>["auto",...L()],te=()=>[ri,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],J=()=>[e,Ce,Ee],ue=()=>[...A(),au,ru,{position:[Ce,Ee]}],y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",Iv,Sv,{size:[Ce,Ee]}],ie=()=>[Ka,Li,qn],P=()=>["","none","full",c,Ce,Ee],G=()=>["",ze,Li,qn],q=()=>["solid","dashed","dotted","double"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>[ze,Ka,au,ru],Y=()=>["","none",_,Ce,Ee],ee=()=>["none",ze,Ce,Ee],se=()=>["none",ze,Ce,Ee],le=()=>[ze,Ce,Ee],H=()=>[ri,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xn],breakpoint:[xn],color:[xv],container:[xn],"drop-shadow":[xn],ease:["in","out","in-out"],font:[kv],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xn],shadow:[xn],spacing:["px",ze],text:[xn],"text-shadow":[xn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ri,Ee,Ce,E]}],container:["container"],columns:[{columns:[ze,Ee,Ce,l]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:f()}],"overflow-x":[{"overflow-x":f()}],"overflow-y":[{"overflow-y":f()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[An,"auto",Ce,Ee]}],basis:[{basis:[ri,"full","auto",l,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ze,ri,"auto","initial","none",Ee]}],grow:[{grow:["",ze,Ce,Ee]}],shrink:[{shrink:["",ze,Ce,Ee]}],order:[{order:[An,"first","last","none",Ce,Ee]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$()}],"auto-rows":[{"auto-rows":$()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:ne()}],mx:[{mx:ne()}],my:[{my:ne()}],ms:[{ms:ne()}],me:[{me:ne()}],mt:[{mt:ne()}],mr:[{mr:ne()}],mb:[{mb:ne()}],ml:[{ml:ne()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[l,"screen",...te()]}],"min-w":[{"min-w":[l,"screen","none",...te()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",n,Li,qn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Ce,Ua]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ka,Ee]}],"font-family":[{font:[Cv,Ee,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,Ce,Ee]}],"line-clamp":[{"line-clamp":[ze,"none",Ce,Ua]}],leading:[{leading:[a,...L()]}],"list-image":[{"list-image":["none",Ce,Ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ce,Ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:J()}],"text-color":[{text:J()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:[ze,"from-font","auto",Ce,qn]}],"text-decoration-color":[{decoration:J()}],"underline-offset":[{"underline-offset":[ze,"auto",Ce,Ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce,Ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce,Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ue()}],"bg-repeat":[{bg:y()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},An,Ce,Ee],radial:["",Ce,Ee],conic:[An,Ce,Ee]},_v,Ev]}],"bg-color":[{bg:J()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:J()}],"gradient-via":[{via:J()}],"gradient-to":[{to:J()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...q(),"hidden","none"]}],"divide-style":[{divide:[...q(),"hidden","none"]}],"border-color":[{border:J()}],"border-color-x":[{"border-x":J()}],"border-color-y":[{"border-y":J()}],"border-color-s":[{"border-s":J()}],"border-color-e":[{"border-e":J()}],"border-color-t":[{"border-t":J()}],"border-color-r":[{"border-r":J()}],"border-color-b":[{"border-b":J()}],"border-color-l":[{"border-l":J()}],"divide-color":[{divide:J()}],"outline-style":[{outline:[...q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ze,Ce,Ee]}],"outline-w":[{outline:["",ze,Li,qn]}],"outline-color":[{outline:J()}],shadow:[{shadow:["","none",p,vr,mr]}],"shadow-color":[{shadow:J()}],"inset-shadow":[{"inset-shadow":["none",d,vr,mr]}],"inset-shadow-color":[{"inset-shadow":J()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:J()}],"ring-offset-w":[{"ring-offset":[ze,qn]}],"ring-offset-color":[{"ring-offset":J()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":J()}],"text-shadow":[{"text-shadow":["none",m,vr,mr]}],"text-shadow-color":[{"text-shadow":J()}],opacity:[{opacity:[ze,Ce,Ee]}],"mix-blend":[{"mix-blend":[...F(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":F()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":J()}],"mask-image-linear-to-color":[{"mask-linear-to":J()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":J()}],"mask-image-t-to-color":[{"mask-t-to":J()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":J()}],"mask-image-r-to-color":[{"mask-r-to":J()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":J()}],"mask-image-b-to-color":[{"mask-b-to":J()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":J()}],"mask-image-l-to-color":[{"mask-l-to":J()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":J()}],"mask-image-x-to-color":[{"mask-x-to":J()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":J()}],"mask-image-y-to-color":[{"mask-y-to":J()}],"mask-image-radial":[{"mask-radial":[Ce,Ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":J()}],"mask-image-radial-to-color":[{"mask-radial-to":J()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":J()}],"mask-image-conic-to-color":[{"mask-conic-to":J()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ue()}],"mask-repeat":[{mask:y()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ce,Ee]}],filter:[{filter:["","none",Ce,Ee]}],blur:[{blur:Y()}],brightness:[{brightness:[ze,Ce,Ee]}],contrast:[{contrast:[ze,Ce,Ee]}],"drop-shadow":[{"drop-shadow":["","none",g,vr,mr]}],"drop-shadow-color":[{"drop-shadow":J()}],grayscale:[{grayscale:["",ze,Ce,Ee]}],"hue-rotate":[{"hue-rotate":[ze,Ce,Ee]}],invert:[{invert:["",ze,Ce,Ee]}],saturate:[{saturate:[ze,Ce,Ee]}],sepia:[{sepia:["",ze,Ce,Ee]}],"backdrop-filter":[{"backdrop-filter":["","none",Ce,Ee]}],"backdrop-blur":[{"backdrop-blur":Y()}],"backdrop-brightness":[{"backdrop-brightness":[ze,Ce,Ee]}],"backdrop-contrast":[{"backdrop-contrast":[ze,Ce,Ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ze,Ce,Ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ze,Ce,Ee]}],"backdrop-invert":[{"backdrop-invert":["",ze,Ce,Ee]}],"backdrop-opacity":[{"backdrop-opacity":[ze,Ce,Ee]}],"backdrop-saturate":[{"backdrop-saturate":[ze,Ce,Ee]}],"backdrop-sepia":[{"backdrop-sepia":["",ze,Ce,Ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ce,Ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ze,"initial",Ce,Ee]}],ease:[{ease:["linear","initial",C,Ce,Ee]}],delay:[{delay:[ze,Ce,Ee]}],animate:[{animate:["none",S,Ce,Ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,Ce,Ee]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[Ce,Ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"translate-none":["translate-none"],accent:[{accent:J()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:J()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce,Ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce,Ee]}],fill:[{fill:["none",...J()]}],"stroke-w":[{stroke:[ze,Li,qn,Ua]}],stroke:[{stroke:["none",...J()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Tv=(e,{cacheSize:t,prefix:n,experimentalParseClassName:i,extend:r={},override:a={}})=>(ji(e,"cacheSize",t),ji(e,"prefix",n),ji(e,"experimentalParseClassName",i),xr(e.theme,a.theme),xr(e.classGroups,a.classGroups),xr(e.conflictingClassGroups,a.conflictingClassGroups),xr(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),ji(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),br(e.theme,r.theme),br(e.classGroups,r.classGroups),br(e.conflictingClassGroups,r.conflictingClassGroups),br(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),qh(e,r,"orderSensitiveModifiers"),e),ji=(e,t,n)=>{n!==void 0&&(e[t]=n)},xr=(e,t)=>{if(t)for(const n in t)ji(e,n,t[n])},br=(e,t)=>{if(t)for(const n in t)qh(e,t,n)},qh=(e,t,n)=>{const i=t[n];i!==void 0&&(e[n]=e[n]?e[n].concat(i):i)},Pv=(e,...t)=>typeof e=="function"?iu(su,e,...t):iu(()=>Tv(su(),e),...t);function Gh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ou={exports:{}};/*!
|
|
5
|
+
Copyright (c) 2018 Jed Watson.
|
|
6
|
+
Licensed under the MIT License (MIT), see
|
|
7
|
+
http://jedwatson.github.io/classnames
|
|
8
|
+
*/var lu;function Ov(){return lu||(lu=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var l=arguments[o];l&&(a=r(a,i(l)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var l in a)t.call(a,l)&&a[l]&&(o=r(o,l));return o}function r(a,o){return o?a?a+" "+o:a+o:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ou)),ou.exports}var Lv=Ov();const Rv=Gh(Lv),Dv=Pv({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-s","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],"text-color":["text-body","text-muted","text-inactive-text","text-button-text","text-positive-text","text-negative-text","text-negative","text-warning-text","text-input-text","text-select-text","text-input-message-text","text-placeholder"]}}});function de(...e){return Dv(Rv(e))}const nr={sm:{checkbox:"size-4",hoverSquare:"size-2.5",text:"text-xs",spacing:"gap-1",icon:"size-3.25"},md:{checkbox:"size-5",hoverSquare:"size-3.5",text:"text-sm",spacing:"gap-1.5",icon:"size-4"},lg:{checkbox:"size-6",hoverSquare:"size-4",text:"text-base",spacing:"gap-2",icon:"size-5"}},Wt={primary:{checked:"bg-primary border-primary",unchecked:"border border-body bg-transparent",checkedHover:"hover:bg-primary-hover hover:border-primary-hover",hoverSquare:"bg-primary-hover",focus:"focus:ring-primary",label:"text-body"},positive:{checked:"bg-positive border-positive",unchecked:"border border-positive bg-transparent",checkedHover:"hover:bg-positive-hover hover:border-positive-hover",hoverSquare:"bg-positive-hover",focus:"focus:ring-positive",label:"text-positive"},warning:{checked:"bg-warning border-warning",unchecked:"border border-warning bg-transparent",checkedHover:"hover:bg-warning-hover hover:border-warning-hover",hoverSquare:"bg-warning-hover",focus:"focus:ring-warning",label:"text-warning"},negative:{checked:"bg-negative border-negative",unchecked:"border border-negative bg-transparent",checkedHover:"hover:bg-negative-hover hover:border-negative-hover",hoverSquare:"bg-negative-hover",focus:"focus:ring-negative",label:"text-negative"}},Mv=`
|
|
9
|
+
appearance-none border rounded transition-all duration-200
|
|
10
|
+
focus:ring-2 focus:ring-offset-2 focus:outline-hidden
|
|
11
|
+
relative
|
|
12
|
+
`,Fv=(e,t,n)=>{const{isChecked:i,isIndeterminate:r,isDisabled:a,isInvalid:o}=n,l=i||r;return de(Mv,nr[e].checkbox,{"cursor-pointer":!a},o?{[Wt.negative.checked]:l,[Wt.negative.unchecked]:!l,[Wt.negative.checkedHover]:!a&&l,[Wt.negative.focus]:!a,"border-input-disable":a}:{[Wt[t].checked]:l&&!a,[Wt[t].unchecked]:!l&&!a,[Wt[t].checkedHover]:!a&&l,[Wt[t].focus]:!a,"border-input-disable":a,"bg-input-disable":a&&l})},jv=(e,t,n)=>{const{isDisabled:i,isInvalid:r}=n;return de(nr[e].text,r?{[Wt.negative.label]:r}:{"text-input-disable":i,[Wt[t].label]:!i,"cursor-pointer":!i})},Vv=e=>de("inline-flex items-center ws-group",nr[e].spacing),zv=(e,t,n)=>de("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",nr[e].hoverSquare,{[Wt.negative.hoverSquare]:n,[Wt[t].hoverSquare]:!n}),Bv=e=>`${nr[e].icon}`,Hv=e=>w.jsx("svg",{className:`absolute inset-0 ${e.className}`,fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...e,children:w.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),wa=M.forwardRef(({label:e,isDisabled:t=!1,isInvalid:n=!1,isRequired:i=!1,size:r="md",color:a="primary",onChange:o,onFocus:l,onBlur:u,value:c,defaultValue:p,name:d,id:m,...g},_)=>{const[x,E]=M.useState(p),C=c===!0||x===!0,S=c===null,k=C||S,A={isChecked:C,isIndeterminate:S,isDisabled:t,isInvalid:n},b=Fv(r,a,A),f=jv(r,a,A),T=Vv(r),L=zv(r,a,n),V=Bv(r);return w.jsxs("label",{"data-qui":"Checkbox",className:T,children:[w.jsxs("div",{className:b,children:[w.jsx("input",{ref:_,type:"checkbox",className:"sr-only",checked:C,disabled:t,required:i,onChange:D=>{c===void 0&&E(D.target.checked),o==null||o(D)},onFocus:l,onBlur:u,name:d,id:m,...g}),k&&w.jsx("div",{className:"center-absolute",children:S?w.jsx(Hv,{className:V}):w.jsx(Bm,{className:V})}),!k&&!t&&w.jsx("div",{className:L})]}),e&&w.jsxs("span",{className:f,children:[e,i&&w.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});wa.displayName="Checkbox";const ir={sm:{container:"gap-2",radio:"size-3",label:"text-xs",dot:"size-2",hoverDot:"size-1.5"},md:{container:"gap-2.5",radio:"size-4",label:"text-sm",dot:"size-2.5",hoverDot:"size-2"},lg:{container:"gap-3",radio:"size-6",label:"text-base",dot:"size-4",hoverDot:"size-3"}},Ui={primary:{radio:"border-body-light group-hover:border-body",radioInvalid:"border-negative",dot:"bg-primary group-hover:bg-primary-hover",hoverDot:"bg-primary-hover",label:"text-body"},positive:{radio:"border-positive group-hover:border-positive-text",radioInvalid:"border-negative",dot:"bg-positive group-hover:bg-positive-hover",hoverDot:"bg-positive-bg",label:"text-positive-text"},warning:{radio:"border-warning group-hover:border-warning-text",radioInvalid:"border-negative",dot:"bg-warning group-hover:bg-warning-hover",hoverDot:"bg-warning-bg",label:"text-warning-text"},negative:{radio:"border-negative group-hover:border-negative-text",radioInvalid:"border-negative",dot:"bg-negative group-hover:bg-negative-hover",hoverDot:"bg-negative-bg",label:"text-negative"}},Kv=`
|
|
13
|
+
relative rounded-full border transition-all duration-200 ease-in-out bg-transparent
|
|
14
|
+
focus:outline-hidden focus:ring-2 focus:ring-offset-0
|
|
15
|
+
cursor-pointer peer
|
|
16
|
+
`,Uv=(e,t,n)=>{const{isDisabled:i,isInvalid:r}=n;return de(Kv,ir[e].radio,r?Ui[t].radioInvalid:{[Ui[t].radio]:!i,"cursor-not-allowed opacity-60":i})},Wv=(e,t,n)=>{const{checked:i,isDisabled:r,isInvalid:a}=n;return de("center-absolute rounded-full transition-all duration-200 ease-in-out",ir[e].dot,a?"bg-negative":{[Ui[t].dot]:!r,"border-neutral":r,"opacity-0 scale-0":!i,"opacity-100 scale-100":i&&!r})},qv=(e,t,n)=>de("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",ir[e].hoverDot,{[Ui[t].hoverDot]:!n,"bg-negative-bg":n}),Gv=e=>de("cursor-pointer select-none transition-colors duration-200",ir[e].label),$v=(e,t,n,i)=>{const{isDisabled:r,isInvalid:a}=n;return de("inline-flex items-center group",ir[e].container,a?{"text-negative":a}:{[Ui[t].label]:!r,"text-muted":r},i)},Jv=()=>de("flex flex-col"),$h=M.createContext(null),Yv=()=>{const e=M.useContext($h);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},Jh=({value:e,defaultValue:t,onChange:n,name:i,size:r="md",color:a="primary",isDisabled:o=!1,isInvalid:l=!1,isRequired:u=!1,hideIndicator:c=!1,className:p,children:d,...m})=>{const[g,_]=M.useState(t),x=e!==void 0,E={value:x?e:g,onChange:C=>{x||_(C),n==null||n(C)},name:i,size:r,color:a,isDisabled:o,isInvalid:l,isRequired:u,hideIndicator:c};return w.jsx($h.Provider,{value:E,children:w.jsx("div",{"data-qui":"RadioGroup",role:"radiogroup",className:de(Jv(),p),...m,children:d})})},Yh=M.forwardRef(({value:e,label:t,size:n,color:i,isDisabled:r,isInvalid:a,isRequired:o,className:l,...u},c)=>{const p=Yv(),d=n??p.size,m=i??p.color,g=r??p.isDisabled,_=a??p.isInvalid,x=o??p.isRequired,E=p.value===e,C={checked:E,isDisabled:g,isInvalid:_},S=Uv(d,m,C),k=Wv(d,m,C),A=qv(d,m,_),b=Gv(d),f=$v(d,m,C,l),T=()=>{g||p.onChange(e)};return w.jsxs("label",{"data-qui":"RadioItem",className:f,children:[w.jsxs("div",{className:de("relative",{hidden:p.hideIndicator}),children:[w.jsx("input",{ref:c,type:"radio",value:e,checked:E,disabled:g,required:x,"aria-invalid":_,"aria-label":t?void 0:u["aria-label"],name:p.name,onChange:T,className:"sr-only",...u}),w.jsxs("div",{className:S,children:[w.jsx("div",{className:k}),!E&&!g&&w.jsx("div",{className:A})]})]}),t&&w.jsxs("span",{className:b,children:[t,x&&w.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});Jh.displayName="RadioGroup";Yh.displayName="RadioItem";const uu={Group:Jh,Item:Yh},Xh={sm:{container:"h-4.5 p-1 rounded",text:"text-xxs"},md:{container:"h-6 p-1 rounded",text:"text-s"},lg:{container:"h-7 p-1 rounded",text:"text-sm"},xl:{container:"h-7.5 p-1 rounded",text:"text-lg"}},Xv={primary:{bg:{solid:"bg-primary",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-primary",ghost:"text-primary"},border:{solid:"border-primary",outline:"border-primary",ghost:"border-transparent"},hover:{solid:"hover:bg-primary-hover hover:border-primary-hover",outline:"hover:border-black hover:text-primary-hover",ghost:"hover:bg-primary-hover hover:text-body"}},white:{bg:{solid:"bg-white",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-primary",outline:"text-body",ghost:"text-body"},border:{solid:"border-white",outline:"border-white",ghost:"border-transparent"},hover:{solid:"hover:bg-canvas-subtle hover:border-canvas-subtle",outline:"hover:border-canvas hover:text-canvas",ghost:"hover:bg-primary-hover hover:text-body"}},positive:{bg:{solid:"bg-positive",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-positive-text",ghost:"text-positive-text"},border:{solid:"border-positive",outline:"border-positive",ghost:"border-transparent"},hover:{solid:"hover:bg-positive-hover hover:border-positive-hover",outline:"hover:border-positive-hover hover:text-positive-hover",ghost:"hover:bg-positive-hover hover:text-body"}},warning:{bg:{solid:"bg-warning",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-warning-text",ghost:"text-warning-text"},border:{solid:"border-warning",outline:"border-warning",ghost:"border-transparent"},hover:{solid:"hover:bg-warning-hover hover:border-warning-hover",outline:"hover:border-warning-hover hover:text-warning-hover",ghost:"hover:bg-warning-hover hover:text-body"}},negative:{bg:{solid:"bg-negative",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-negative",ghost:"text-negative"},border:{solid:"border-negative",outline:"border-negative",ghost:"border-transparent"},hover:{solid:"hover:bg-negative-hover hover:border-negative-hover",outline:"hover:border-negative-hover hover:text-negative-hover",ghost:"hover:bg-negative-hover hover:text-body"}}},Zv=(e,t,n,i)=>{const r=Xh[e],a=Xv[n],o=de("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!i},r.container);return i?de(o,"text-inactive-text",{"border-panel":t!=="ghost"&&t==="solid","border-panel-subtle":t==="outline","bg-panel":t==="solid","bg-transparent ":t==="outline"||t==="ghost","border-transparent":t==="ghost"}):de(o,a.bg[t],a.text[t],a.hover[t],a.border[t])},Qv=e=>de("flex items-center justify-center gap-1",Xh[e].text),ut=M.forwardRef(({size:e="md",variant:t="solid",color:n="primary",className:i,children:r,disabled:a,...o},l)=>w.jsx("button",{"data-qui":"Button",ref:l,type:"button",className:de(Zv(e,t,n,a),Qv(e),i),disabled:a,...o,children:r}));ut.displayName="Button";const Zh=M.createContext(null),rr=()=>{const e=M.useContext(Zh);if(!e)throw new Error("Input components must be used within Input.Root");return e},Si={sm:{group:"h-5 min-h-fit",input:"text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{group:"h-6 min-h-fit",input:"text-xs",message:"text-xs p-2",icon:"text-base"},lg:{group:"h-7 min-h-fit",input:"text-s",message:"text-s p-2.5",icon:"text-lg"}},wn={primary:{border:"border border-input-border focus-within:border-input-focus-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-focus-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-input-message-text",messageBackground:"bg-input-message-bg",icon:"text-input-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},positive:{border:"border border-input-border focus-within:border-positive",borderInvalid:"ring-input-error-border",borderMessage:"ring-positive",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-positive-dark",messageBackground:"bg-positive-light",icon:"text-positive-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},warning:{border:"border border-input-border focus-within:border-input-warning-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-warning-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-warning-dark",messageBackground:"bg-input-warning-bg",icon:"text-warning-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},negative:{border:"border border-input-border focus-within:border-input-error-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-error-border",text:"text-negative",placeholder:"placeholder:text-input-placeholder",messageText:"text-negative-dark",messageBackground:"bg-input-error-bg",icon:"text-negative",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"}},ex=()=>de("flex flex-col relative"),tx=({size:e,color:t,isDisabled:n,isReadOnly:i,hasMessage:r,hasArea:a,isInvalid:o})=>{const l=wn[o?"negative":t];return de("bg-input-bg flex gap-1 relative px-1 transition-all duration-200 ease-in-out only:rounded first:rounded-t last:rounded-b",l.text,r?l.borderMessage:!i&&l.border,Si[e].group,{"ring-1":r,"opacity-60":n,"items-center":!a})},nx=({size:e,color:t})=>de("bg-transparent ring-0 w-full","focus:outline-hidden",[Si[e].input],wn[t].placeholder),cu=({size:e,color:t})=>de("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",Si[e].input,wn[t].placeholder),ix=({size:e,color:t,isDisabled:n,isAction:i})=>de("transition-colors duration-200 rounded max-h-full h-fit",Si[e].icon,e==="sm"?"m-px":"m-0.5",n?"text-muted opacity-60 pointer-events-none":i?wn[t].action:wn[t].icon,{"cursor-pointer p-0.5":i&&!n,[wn[t].actionHover]:i&&!n,"pointer-events-none":!i}),rx=({size:e,color:t,isDisabled:n})=>de("absolute left-0 right-0 z-10","flex items-start gap-x-2 ring-1","first:bottom-full first:rounded-t first:ring-b-0","last:top-full last:rounded-b last:ring-t-0","only:top-full only:rounded only:ring-1",n?"text-muted":wn[t].messageText,wn[t].borderMessage,wn[t].messageBackground,Si[e].message,{"opacity-60":n}),ax=({size:e})=>de(Si[e].icon);function Zr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var sx=typeof global=="object"&&global&&global.Object===Object&&global,ox=typeof self=="object"&&self&&self.Object===Object&&self,Qh=sx||ox||Function("return this")(),Wa=function(){return Qh.Date.now()},lx=/\s/;function ux(e){for(var t=e.length;t--&&lx.test(e.charAt(t)););return t}var cx=/^\s+/;function hx(e){return e&&e.slice(0,ux(e)+1).replace(cx,"")}var Qr=Qh.Symbol,ed=Object.prototype,dx=ed.hasOwnProperty,px=ed.toString,Ri=Qr?Qr.toStringTag:void 0;function fx(e){var t=dx.call(e,Ri),n=e[Ri];try{e[Ri]=void 0;var i=!0}catch{}var r=px.call(e);return i&&(t?e[Ri]=n:delete e[Ri]),r}var gx=Object.prototype,mx=gx.toString;function vx(e){return mx.call(e)}var xx="[object Null]",bx="[object Undefined]",hu=Qr?Qr.toStringTag:void 0;function yx(e){return e==null?e===void 0?bx:xx:hu&&hu in Object(e)?fx(e):vx(e)}function wx(e){return e!=null&&typeof e=="object"}var kx="[object Symbol]";function Sx(e){return typeof e=="symbol"||wx(e)&&yx(e)==kx}var du=NaN,Ex=/^[-+]0x[0-9a-f]+$/i,Cx=/^0b[01]+$/i,Ix=/^0o[0-7]+$/i,_x=parseInt;function pu(e){if(typeof e=="number")return e;if(Sx(e))return du;if(Zr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Zr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=hx(e);var n=Cx.test(e);return n||Ix.test(e)?_x(e.slice(2),n?2:8):Ex.test(e)?du:+e}var Ax="Expected a function",Nx=Math.max,Tx=Math.min;function Vr(e,t,n){var i,r,a,o,l,u,c=0,p=!1,d=!1,m=!0;if(typeof e!="function")throw new TypeError(Ax);t=pu(t)||0,Zr(n)&&(p=!!n.leading,d="maxWait"in n,a=d?Nx(pu(n.maxWait)||0,t):a,m="trailing"in n?!!n.trailing:m);function g(f){var T=i,L=r;return i=r=void 0,c=f,o=e.apply(L,T),o}function _(f){return c=f,l=setTimeout(C,t),p?g(f):o}function x(f){var T=f-u,L=f-c,V=t-T;return d?Tx(V,a-L):V}function E(f){var T=f-u,L=f-c;return u===void 0||T>=t||T<0||d&&L>=a}function C(){var f=Wa();if(E(f))return S(f);l=setTimeout(C,x(f))}function S(f){return l=void 0,m&&i?g(f):(i=r=void 0,o)}function k(){l!==void 0&&clearTimeout(l),c=0,i=u=r=l=void 0}function A(){return l===void 0?o:S(Wa())}function b(){var f=Wa(),T=E(f);if(i=arguments,r=this,u=f,T){if(l===void 0)return _(u);if(d)return clearTimeout(l),l=setTimeout(C,t),g(u)}return l===void 0&&(l=setTimeout(C,t)),o}return b.cancel=k,b.flush=A,b}var Px="Expected a function";function Ox(e,t,n){var i=!0,r=!0;if(typeof e!="function")throw new TypeError(Px);return Zr(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Vr(e,t,{leading:i,maxWait:t,trailing:r})}var pi=function(){return pi=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},pi.apply(this,arguments)};function td(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function nd(e){return!e||!e.ownerDocument?document:e.ownerDocument}var id=function(e){var t={},n=Array.prototype.reduce.call(e,function(i,r){var a=r.name.match(/data-simplebar-(.+)/);if(a){var o=a[1].replace(/\W+(.)/g,function(l,u){return u.toUpperCase()});switch(r.value){case"true":i[o]=!0;break;case"false":i[o]=!1;break;case void 0:i[o]=!0;break;default:i[o]=r.value}}return i},t);return n};function rd(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function ad(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function sd(e){return".".concat(e.split(" ").join("."))}var po=!!(typeof window<"u"&&window.document&&window.document.createElement),Lx=Object.freeze({__proto__:null,addClasses:rd,canUseDOM:po,classNamesToQuery:sd,getElementDocument:nd,getElementWindow:td,getOptions:id,removeClasses:ad}),hi=null,fu=null;po&&window.addEventListener("resize",function(){fu!==window.devicePixelRatio&&(fu=window.devicePixelRatio,hi=null)});function gu(){if(hi===null){if(typeof document>"u")return hi=0,hi;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),hi=n}return hi}var Nn=td,qa=nd,Rx=id,Tn=rd,Pn=ad,Pt=sd,Di=(function(){function e(t,n){n===void 0&&(n={});var i=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var r=Nn(i.el);i.scrollXTicking||(r.requestAnimationFrame(i.scrollX),i.scrollXTicking=!0),i.scrollYTicking||(r.requestAnimationFrame(i.scrollY),i.scrollYTicking=!0),i.isScrolling||(i.isScrolling=!0,Tn(i.el,i.classNames.scrolling)),i.showScrollbar("x"),i.showScrollbar("y"),i.onStopScrolling()},this.scrollX=function(){i.axis.x.isOverflowing&&i.positionScrollbar("x"),i.scrollXTicking=!1},this.scrollY=function(){i.axis.y.isOverflowing&&i.positionScrollbar("y"),i.scrollYTicking=!1},this._onStopScrolling=function(){Pn(i.el,i.classNames.scrolling),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isScrolling=!1},this.onMouseEnter=function(){i.isMouseEntering||(Tn(i.el,i.classNames.mouseEntered),i.showScrollbar("x"),i.showScrollbar("y"),i.isMouseEntering=!0),i.onMouseEntered()},this._onMouseEntered=function(){Pn(i.el,i.classNames.mouseEntered),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isMouseEntering=!1},this._onMouseMove=function(r){i.mouseX=r.clientX,i.mouseY=r.clientY,(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseMoveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseMoveForAxis("y")},this.onMouseLeave=function(){i.onMouseMove.cancel(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseLeaveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseLeaveForAxis("y"),i.mouseX=-1,i.mouseY=-1},this._onWindowResize=function(){i.scrollbarWidth=i.getScrollbarWidth(),i.hideNativeScrollbar()},this.onPointerEvent=function(r){if(!(!i.axis.x.track.el||!i.axis.y.track.el||!i.axis.x.scrollbar.el||!i.axis.y.scrollbar.el)){var a,o;i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&(a=i.isWithinBounds(i.axis.x.track.rect)),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&(o=i.isWithinBounds(i.axis.y.track.rect)),(a||o)&&(r.stopPropagation(),r.type==="pointerdown"&&r.pointerType!=="touch"&&(a&&(i.axis.x.scrollbar.rect=i.axis.x.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.x.scrollbar.rect)?i.onDragStart(r,"x"):i.onTrackClick(r,"x")),o&&(i.axis.y.scrollbar.rect=i.axis.y.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.scrollbar.rect)?i.onDragStart(r,"y"):i.onTrackClick(r,"y"))))}},this.drag=function(r){var a,o,l,u,c,p,d,m,g,_,x;if(!(!i.draggedAxis||!i.contentWrapperEl)){var E,C=i.axis[i.draggedAxis].track,S=(o=(a=C.rect)===null||a===void 0?void 0:a[i.axis[i.draggedAxis].sizeAttr])!==null&&o!==void 0?o:0,k=i.axis[i.draggedAxis].scrollbar,A=(u=(l=i.contentWrapperEl)===null||l===void 0?void 0:l[i.axis[i.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,b=parseInt((p=(c=i.elStyles)===null||c===void 0?void 0:c[i.axis[i.draggedAxis].sizeAttr])!==null&&p!==void 0?p:"0px",10);r.preventDefault(),r.stopPropagation(),i.draggedAxis==="y"?E=r.pageY:E=r.pageX;var f=E-((m=(d=C.rect)===null||d===void 0?void 0:d[i.axis[i.draggedAxis].offsetAttr])!==null&&m!==void 0?m:0)-i.axis[i.draggedAxis].dragOffset;f=i.draggedAxis==="x"&&i.isRtl?((_=(g=C.rect)===null||g===void 0?void 0:g[i.axis[i.draggedAxis].sizeAttr])!==null&&_!==void 0?_:0)-k.size-f:f;var T=f/(S-k.size),L=T*(A-b);i.draggedAxis==="x"&&i.isRtl&&(L=!((x=e.getRtlHelpers())===null||x===void 0)&&x.isScrollingToNegative?-L:L),i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr]=L}},this.onEndDrag=function(r){i.isDragging=!1;var a=qa(i.el),o=Nn(i.el);r.preventDefault(),r.stopPropagation(),Pn(i.el,i.classNames.dragging),i.onStopScrolling(),a.removeEventListener("mousemove",i.drag,!0),a.removeEventListener("mouseup",i.onEndDrag,!0),i.removePreventClickId=o.setTimeout(function(){a.removeEventListener("click",i.preventClick,!0),a.removeEventListener("dblclick",i.preventClick,!0),i.removePreventClickId=null})},this.preventClick=function(r){r.preventDefault(),r.stopPropagation()},this.el=t,this.options=pi(pi({},e.defaultOptions),n),this.classNames=pi(pi({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Ox(this._onMouseMove,64),this.onWindowResize=Vr(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Vr(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Vr(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,i=n==null?void 0:n.firstElementChild;if(!i)return null;document.body.appendChild(n),n.scrollLeft=0;var r=e.getOffset(n),a=e.getOffset(i);n.scrollLeft=-999;var o=e.getOffset(i);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:r.left!==a.left,isScrollingToNegative:a.left!==o.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:gu()}catch{return gu()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),i=qa(t),r=Nn(t);return{top:n.top+(r.pageYOffset||i.documentElement.scrollTop),left:n.left+(r.pageXOffset||i.documentElement.scrollLeft)}},e.prototype.init=function(){po&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(Pt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Pt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Pt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Pt(this.classNames.offset)),this.maskEl=this.el.querySelector(Pt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Pt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Pt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Pt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Pt(this.classNames.track)).concat(Pt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Pt(this.classNames.track)).concat(Pt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Pt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Pt(this.classNames.scrollbar)))||null,this.options.autoHide||(Tn(this.axis.x.scrollbar.el,this.classNames.visible),Tn(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,i=Nn(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),i.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var r=!1,a=i.ResizeObserver||ResizeObserver;this.resizeObserver=new a(function(){r&&i.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),i.requestAnimationFrame(function(){r=!0})}this.mutationObserver=new i.MutationObserver(function(){i.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=Nn(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,i=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||n>0,a=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,l=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=i?"auto":"100%",this.placeholderEl.style.width=r?"".concat(n||c,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var p=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&c>n,this.axis.y.isOverflowing=u>p,this.axis.x.isOverflowing=o==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=l==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var d=this.axis.x.isOverflowing?this.scrollbarWidth:0,m=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>a-m,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>p-d,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,i;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var r=this.contentEl[this.axis[t].scrollSizeAttr],a=(i=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&i!==void 0?i:0,o=a/r,l;return l=Math.max(~~(o*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(l=Math.min(l,this.options.scrollbarMaxSize)),l},e.prototype.positionScrollbar=function(t){var n,i,r;t===void 0&&(t="y");var a=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!a.el||!this.elStyles)){var o=this.contentWrapperEl[this.axis[t].scrollSizeAttr],l=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),c=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];c=t==="x"&&this.isRtl&&!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollOriginAtZero?-c:c,t==="x"&&this.isRtl&&(c=!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollingToNegative?c:-c);var p=c/(o-u),d=~~((l-a.size)*p);d=t==="x"&&this.isRtl?-d+(l-a.size):d,a.el.style.transform=t==="x"?"translate3d(".concat(d,"px, 0, 0)"):"translate3d(0, ".concat(d,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,i=this.axis[t].scrollbar.el;!n||!i||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?i.style.display="block":i.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Tn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Pn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Tn(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Tn(n.scrollbar.el,this.classNames.hover):Pn(n.scrollbar.el,this.classNames.hover)):(Pn(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Pn(this.axis[t].track.el,this.classNames.hover),Pn(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var i;n===void 0&&(n="y"),this.isDragging=!0;var r=qa(this.el),a=Nn(this.el),o=this.axis[n].scrollbar,l=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=l-(((i=o.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Tn(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var i=this,r,a,o,l;n===void 0&&(n="y");var u=this.axis[n];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var c=Nn(this.el);this.axis[n].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var p=this.axis[n].scrollbar,d=(a=(r=p.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])!==null&&a!==void 0?a:0,m=parseInt((l=(o=this.elStyles)===null||o===void 0?void 0:o[this.axis[n].sizeAttr])!==null&&l!==void 0?l:"0px",10),g=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],_=n==="y"?this.mouseY-d:this.mouseX-d,x=_<0?-1:1,E=x===-1?g-m:g+m,C=40,S=function(){i.contentWrapperEl&&(x===-1?g>E&&(g-=C,i.contentWrapperEl[i.axis[n].scrollOffsetAttr]=g,c.requestAnimationFrame(S)):g<E&&(g+=C,i.contentWrapperEl[i.axis[n].scrollOffsetAttr]=g,c.requestAnimationFrame(S)))};S()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Nn(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(r){return i.call(r,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=Rx,e.helpers=Lx,e})(),jt=function(){return jt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},jt.apply(this,arguments)};function Dx(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}var fo=Q.forwardRef(function(e,t){var n=e.children,i=e.scrollableNodeProps,r=i===void 0?{}:i,a=Dx(e,["children","scrollableNodeProps"]),o=Q.useRef(),l=Q.useRef(),u=Q.useRef(),c={},p={};Object.keys(a).forEach(function(g){Object.prototype.hasOwnProperty.call(Di.defaultOptions,g)?c[g]=a[g]:p[g]=a[g]});var d=jt(jt({},Di.defaultOptions.classNames),c.classNames),m=jt(jt({},r),{className:"".concat(d.contentWrapper).concat(r.className?" ".concat(r.className):""),tabIndex:c.tabIndex||Di.defaultOptions.tabIndex,role:"region","aria-label":c.ariaLabel||Di.defaultOptions.ariaLabel});return Q.useEffect(function(){var g;return l.current=m.ref?m.ref.current:l.current,o.current&&(g=new Di(o.current,jt(jt(jt({},c),l.current&&{scrollableNode:l.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(g):t&&(t.current=g)),function(){g==null||g.unMount(),g=null,typeof t=="function"&&t(null)}},[]),Q.createElement("div",jt({"data-simplebar":"init",ref:o},p),Q.createElement("div",{className:d.wrapper},Q.createElement("div",{className:d.heightAutoObserverWrapperEl},Q.createElement("div",{className:d.heightAutoObserverEl})),Q.createElement("div",{className:d.mask},Q.createElement("div",{className:d.offset},typeof n=="function"?n({scrollableNodeRef:l,scrollableNodeProps:jt(jt({},m),{ref:l}),contentNodeRef:u,contentNodeProps:{className:d.contentEl,ref:u}}):Q.createElement("div",jt({},m),Q.createElement("div",{className:d.contentEl},n)))),Q.createElement("div",{className:d.placeholder})),Q.createElement("div",{className:"".concat(d.track," ").concat(d.horizontal)},Q.createElement("div",{className:d.scrollbar})),Q.createElement("div",{className:"".concat(d.track," ").concat(d.vertical)},Q.createElement("div",{className:d.scrollbar})))});fo.displayName="SimpleBar";const od=M.forwardRef(({size:e="md",color:t="primary",isInvalid:n=!1,isDisabled:i=!1,isReadOnly:r=!1,className:a,children:o,...l},u)=>{const[c,p]=M.useState(!1),[d,m]=M.useState(!1),g={size:e,color:n?"negative":t,isInvalid:n,isDisabled:i,isReadOnly:r,hasMessage:c,setHasMessage:p,hasArea:d,setHasArea:m};return w.jsx(Zh.Provider,{value:g,children:w.jsx("div",{ref:u,"data-qui":"Input",className:de(ex(),a),...l,children:o})})}),ld=M.forwardRef(({className:e,children:t,...n},i)=>{const{size:r,color:a,isDisabled:o,isReadOnly:l,hasMessage:u,hasArea:c,isInvalid:p}=rr();return w.jsx("div",{ref:i,"data-qui":"InputGroup",className:de(tx({size:r,color:a,isDisabled:o,isReadOnly:l,hasMessage:u,hasArea:c,isInvalid:p}),e),...n,children:t})}),ud=M.forwardRef(({className:e,...t},n)=>{const{size:i,color:r,isInvalid:a,isDisabled:o,isReadOnly:l}=rr(),{isDisabled:u,isReadOnly:c,...p}=t;return w.jsx("input",{ref:n,disabled:o||u,readOnly:c||l||!1,"aria-invalid":a,className:de(nx({size:i,color:r}),e),...p})}),cd=M.forwardRef(({className:e,autoHeight:t,...n},i)=>{const{size:r,color:a,isInvalid:o,isDisabled:l,setHasArea:u}=rr(),c=M.useRef(null),p=i||c,d=M.useRef(null);M.useEffect(()=>(u(!0),()=>{u(!1)}),[u]);const m=M.useCallback(()=>{if(c.current){const S=c.current;S.style.height="auto",S.style.height=`${S.scrollHeight}px`}},[]),g=S=>{var k;m(),(k=n.onInput)==null||k.call(n,S)};M.useEffect(()=>{m()},[m,n.value]),M.useEffect(()=>{t&&d.current&&d.current.style.removeProperty("height")},[t]);const _=S=>{S.preventDefault();const k=d.current;if(!k)return;const A=S.clientY,b=k.offsetHeight,f=L=>{const V=b+(L.clientY-A);V>30&&(k.style.height=V+"px")},T=()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",T)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",T)},{isDisabled:x,isReadOnly:E,...C}=n;return w.jsxs("div",{ref:d,className:de("w-full relative",!t&&"h-[120px]"),children:[t?w.jsx("textarea",{ref:p,rows:1,className:de(cu({size:r,color:a}),e),disabled:l||x,onInput:g,readOnly:E||!1,"aria-invalid":o,style:{overflow:"hidden"},...C}):w.jsx(fo,{style:{height:"100%"},children:w.jsx("textarea",{ref:p,rows:1,className:de(cu({size:r,color:a}),e),disabled:l||x,onInput:g,readOnly:E||!1,"aria-invalid":o,style:{height:"auto",overflow:"hidden",width:"100%"},...C})}),!t&&w.jsx("div",{className:"absolute right-0 bottom-0 -translate-x-full -translate-y-full size-1.75 text-sm cursor-se-resize z-10",onMouseDown:_,children:w.jsx(Um,{})})]})}),Mx=M.forwardRef(({isAction:e=!1,className:t,isDisabled:n=!1,style:i,children:r,...a},o)=>{const{size:l,color:u,isDisabled:c}=rr(),p=n||c,d=ix({size:l,color:u,isDisabled:p,isAction:e});return w.jsx("div",{ref:o,"data-qui":"InputIcon",className:de(d,t),style:i,role:e||a.onClick?"button":void 0,tabIndex:(e||a.onClick)&&!p?0:void 0,"aria-disabled":p,...a,children:r})}),hd=M.forwardRef(({icon:e,className:t,children:n,...i},r)=>{const{size:a,color:o,setHasMessage:l,isDisabled:u}=rr();return M.useEffect(()=>(l(!0),()=>{l(!1)}),[l]),w.jsxs("div",{ref:r,"data-qui":"InputMessage",role:"alert",className:de(rx({size:a,color:o,isDisabled:u}),t),...i,children:[e!==void 0&&w.jsx("div",{className:de(ax({size:a}),t),children:e}),w.jsx("p",{children:n})]})});od.displayName="InputRoot";ld.displayName="InputGroup";ud.displayName="InputField";cd.displayName="InputArea";Mx.displayName="InputIcon";hd.displayName="InputMessage";const Zt={Root:od,Group:ld,Field:ud,Area:cd,Message:hd},Wi={primary:{container:"bg-primary-light",text:"text-primary-dark",icon:"text-primary-dark",button:"hover:bg-primary-hover hover:text-body"},positive:{container:"bg-positive-light",text:"text-positive-dark",icon:"text-positive-dark",button:"hover:bg-positive hover:text-body"},negative:{container:"bg-negative-light",text:"text-negative-dark",icon:"text-negative-dark",button:"hover:bg-negative hover:text-body"},warning:{container:"bg-warning-light",text:"text-warning-dark",icon:"text-warning-dark",button:"hover:bg-warning hover:text-body"}},Fx=({color:e})=>de("min-h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",Wi[e].container,Wi[e].icon),jx=({color:e})=>de("text-xs font-medium leading-3",Wi[e].text),Vx=({color:e})=>de("p-0.5 rounded cursor-pointer",Wi[e].button,Wi[e].icon),yt=({label:e,color:t="primary",position:n="up",showCloseButton:i=!1,icon:r,children:a,delay:o=0,trigger:l="hover",className:u,container:c,isHidden:p=!1})=>{const[d,m]=M.useState(!1),[g,_]=M.useState(!1),[x,E]=M.useState({position:n,transform:""}),C=M.useRef(null),S=M.useRef(null),k=M.useRef(null);M.useEffect(()=>{p&&d&&(m(!1),k.current&&clearTimeout(k.current))},[p,d]);const A=M.useCallback(()=>{if(!C.current||!S.current)return;const j=C.current.getBoundingClientRect(),$=S.current.getBoundingClientRect(),K=window.innerWidth,W=window.innerHeight,ne=window.scrollX,te=window.scrollY,J=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,K),ue=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,W),y=4;let X=n,ie={position:X,transform:""};const P=z=>{const{top:Y,left:ee,width:se,height:le}=j,H=Y+te,pe=ee+ne;switch(z){case"up":return{top:`${H-$.height-y}px`,left:`${pe+se/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${H-$.height-y}px`,left:`${pe}px`,transform:"translateX(0)"};case"up-end":return{top:`${H-$.height-y}px`,left:`${pe+se-$.width}px`,transform:"translateX(0)"};case"down":return{top:`${H+le+y}px`,left:`${pe+se/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${H+le+y}px`,left:`${pe}px`,transform:"translateX(0)"};case"down-end":return{top:`${H+le+y}px`,left:`${pe+se-$.width}px`,transform:"translateX(0)"};case"left":return{top:`${H+le/2}px`,left:`${pe-$.width-y}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${H}px`,left:`${pe-$.width-y}px`,transform:"translateY(0)"};case"left-end":return{top:`${H+le-$.height}px`,left:`${pe-$.width-y}px`,transform:"translateY(0)"};case"right":return{top:`${H+le/2}px`,left:`${pe+se+y}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${H}px`,left:`${pe+se+y}px`,transform:"translateY(0)"};case"right-end":return{top:`${H+le-$.height}px`,left:`${pe+se+y}px`,transform:"translateY(0)"};default:return{}}},G={up:{fits:j.top-$.height-y>=0},"up-start":{fits:j.top-$.height-y>=0&&j.left+$.width<=K},"up-end":{fits:j.top-$.height-y>=0&&j.right-$.width>=0},down:{fits:j.bottom+$.height+y<=W&&j.bottom+$.height+y<=ue},"down-start":{fits:j.bottom+$.height+y<=W&&j.bottom+$.height+y<=ue&&j.left+$.width<=K},"down-end":{fits:j.bottom+$.height+y<=W&&j.bottom+$.height+y<=ue&&j.right-$.width>=0},left:{fits:j.left-$.width-y>=0},"left-start":{fits:j.left-$.width-y>=0&&j.top+$.height<=W},"left-end":{fits:j.left-$.width-y>=0&&j.bottom-$.height>=0},right:{fits:j.right+$.width+y<=K&&j.right+$.width+y<=J},"right-start":{fits:j.right+$.width+y<=K&&j.right+$.width+y<=J&&j.top+$.height<=W},"right-end":{fits:j.right+$.width+y<=K&&j.right+$.width+y<=J&&j.bottom-$.height>=0}},q=j.left+j.width/2-$.width/2,F=j.left+j.width/2+$.width/2;if((n==="up"||n==="down")&&(q<0||F>K)&&(G[n].fits=!1),G[n].fits){const z=P(n);ie={position:n,...z,transform:z.transform||""}}else{const z=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(Y=>G[Y].fits);if(z){X=z;const Y=P(z);ie={position:X,...Y,transform:Y.transform||""}}else{const Y={up:j.top,"up-start":j.top,"up-end":j.top,down:Math.min(W-j.bottom,ue-j.bottom),"down-start":Math.min(W-j.bottom,ue-j.bottom),"down-end":Math.min(W-j.bottom,ue-j.bottom),left:j.left,"left-start":j.left,"left-end":j.left,right:Math.min(K-j.right,J-j.right),"right-start":Math.min(K-j.right,J-j.right),"right-end":Math.min(K-j.right,J-j.right)},ee=Object.entries(Y).reduce((le,[H,pe])=>pe>le.space?{position:H,space:pe}:le,{position:"up",space:0}).position;X=ee;const se=P(ee);ie={position:X,...se,transform:se.transform||""}}}E(ie)},[n]),b=()=>{l!=="click"||p||(m(!0),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{g||m(!1)},o))},f=j=>{j.stopPropagation(),m(!1),k.current&&clearTimeout(k.current)},T=()=>{_(!0),k.current&&clearTimeout(k.current)},L=()=>{_(!1),d&&(k.current=setTimeout(()=>{m(!1)},o))},V=()=>{l==="hover"&&!p&&(m(!0),k.current&&clearTimeout(k.current))},D=()=>{l==="hover"&&(k.current=setTimeout(()=>{m(!1)},o))};M.useEffect(()=>{if(d){const j=requestAnimationFrame(()=>{A()});return()=>cancelAnimationFrame(j)}},[d,e,A]),M.useEffect(()=>{if(d){const j=setTimeout(()=>A(),0);return()=>clearTimeout(j)}},[d,A]),M.useEffect(()=>{const j=()=>{d&&A()},$=()=>{d&&A()};return window.addEventListener("resize",j),window.addEventListener("scroll",$,!0),()=>{window.removeEventListener("resize",j),window.removeEventListener("scroll",$,!0),k.current&&clearTimeout(k.current)}},[d,A]);const B=c||(typeof document<"u"?document.body:null);return B?w.jsxs(w.Fragment,{children:[w.jsx("div",{"data-qui":"Tooltip",ref:C,onClick:b,onMouseEnter:V,onMouseLeave:D,className:de("relative inline-flex items-center",u),children:a}),d&&!!e&&er.createPortal(w.jsxs("div",{ref:S,role:"tooltip",className:Fx({color:t}),style:{position:"absolute",left:x.left??0,top:x.top??0,transform:x.transform,zIndex:1e3,visibility:x.left?"visible":"hidden"},onMouseEnter:T,onMouseLeave:L,children:[r&&w.jsx("span",{"data-testid":"tooltip-icon",children:r}),w.jsx("div",{className:jx({color:t}),children:e}),i&&w.jsx("div",{onClick:f,className:Vx({color:t}),role:"button",children:w.jsx(ya,{})})]}),B)]}):null};var mu;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(mu||(mu={}));const zx=Object.freeze({x:0,y:0});var fi;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(fi||(fi={}));var vu;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(vu||(vu={}));var qt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(qt||(qt={}));qt.Space,qt.Enter,qt.Esc,qt.Space,qt.Enter,qt.Tab;var xu;(function(e){e[e.RightClick=2]="RightClick"})(xu||(xu={}));var bu;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(bu||(bu={}));var yu;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(yu||(yu={}));fi.Backward+"",fi.Forward+"",fi.Backward+"",fi.Forward+"";var zs;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(zs||(zs={}));var Bs;(function(e){e.Optimized="optimized"})(Bs||(Bs={}));zs.WhileDragging,Bs.Optimized;({...zx});var wu;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(wu||(wu={}));qt.Down,qt.Right,qt.Up,qt.Left;const dd={sm:{padding:"px-4 py-0.5",text:"text-xxs",icon:"w-3 h-3",gap:"gap-0.5",badge:"min-w-3.5 h-3.5 text-2"},md:{padding:"px-6 py-1",text:"text-s",icon:"w-4 h-4",gap:"gap-1",badge:"min-w-4.5 h-4.5 text-xxs"},lg:{padding:"px-8 py-1.5",text:"text-base",icon:"w-5 h-5",gap:"gap-1.5",badge:"min-w-5 h-5 text-xs"}},Bx={primary:{active:{bg:"bg-primary",text:"text-button-text",border:"border-primary"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-primary-hover",text:"hover:text-button-text"}},positive:{active:{bg:"bg-positive",text:"text-button-text",border:"border-positive"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-positive-hover",text:"hover:text-body"}},warning:{active:{bg:"bg-warning",text:"text-warning-text",border:"border-warning"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-warning-hover",text:"hover:text-body"}},negative:{active:{bg:"bg-negative",text:"text-button-text",border:"border-negative"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-negative-hover",text:"hover:text-body"}}},Hx=(e,t,n,i)=>{const r=Bx[e],a=dd[t],o="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return i?de(o,a.padding,a.text,a.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):n?de(o,a.padding,a.text,a.gap,r.active.bg,r.active.text,"shadow-xs"):de(o,a.padding,a.text,a.gap,r.inactive.bg,r.inactive.text,r.hover.bg,r.hover.text)},Kx=(e,t)=>de("flex items-center justify-center",dd[e].icon,{"opacity-50":t}),Ux=()=>de("whitespace-nowrap"),pd=(e,t)=>{const n=de("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return e&&!t?de(n,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):t&&!e?de(n,"border border-transparent bg-tab-inactive-bg text-inactive-text"):de(n,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},Wx=M.createContext(void 0),qx=M.forwardRef(({value:e,label:t,icon:n,disabled:i,children:r,className:a,onClick:o,active:l,content:u,...c},p)=>{const d=M.useContext(Wx);if(!d)return null;const{activeTab:m,onTabChange:g,variant:_,color:x,size:E,showIcons:C,disabled:S}=d,k=l!==void 0?l:m===e,A=i||S,b=f=>{A||(g(e),o==null||o(f))};return _==="file"?w.jsx("div",{"data-qui":"FileTabItem",className:de(pd(k,!1),"cursor-pointer",a),onClick:f=>!A&&b(f),children:r||w.jsx(w.Fragment,{children:w.jsxs("span",{className:"flex items-center gap-2",children:[n,w.jsx("span",{children:t})]})})}):w.jsxs("button",{ref:p,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":k,"aria-disabled":A,className:de(Hx(x,E,k,A||!1),a),onClick:b,disabled:A,...c,children:[C&&n&&w.jsx("span",{className:Kx(E,A||!1),children:n}),w.jsx("span",{className:Ux(),children:r||t})]})});qx.displayName="TabItem";const Gx=M.forwardRef(({isActive:e=!1,isDesactive:t=!1,children:n,...i},r)=>w.jsx("div",{"data-qui":"TabNavContainer",className:pd(e,t),ref:r,...i,children:n}));Gx.displayName="TabNavContainer";var pt=function(){return pt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},pt.apply(this,arguments)},ku={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Su={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},yr={width:"20px",height:"20px",position:"absolute",zIndex:1},$x={top:pt(pt({},ku),{top:"-5px"}),right:pt(pt({},Su),{left:void 0,right:"-5px"}),bottom:pt(pt({},ku),{top:void 0,bottom:"-5px"}),left:pt(pt({},Su),{left:"-5px"}),topRight:pt(pt({},yr),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:pt(pt({},yr),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:pt(pt({},yr),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:pt(pt({},yr),{left:"-10px",top:"-10px",cursor:"nw-resize"})},Jx=M.memo(function(e){var t=e.onResizeStart,n=e.direction,i=e.children,r=e.replaceStyles,a=e.className,o=M.useCallback(function(c){t(c,n)},[t,n]),l=M.useCallback(function(c){t(c,n)},[t,n]),u=M.useMemo(function(){return pt(pt({position:"absolute",userSelect:"none"},$x[n]),r??{})},[r,n]);return w.jsx("div",{className:a||void 0,style:u,onMouseDown:o,onTouchStart:l,children:i})}),Yx=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),sn=function(){return sn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},sn.apply(this,arguments)},Xx={width:"auto",height:"auto"},wr=function(e,t,n){return Math.max(Math.min(e,n),t)},Eu=function(e,t,n){var i=Math.round(e/t);return i*t+n*(i-1)},ai=function(e,t){return new RegExp(e,"i").test(t)},kr=function(e){return!!(e.touches&&e.touches.length)},Zx=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Cu=function(e,t,n){n===void 0&&(n=0);var i=t.reduce(function(a,o,l){return Math.abs(o-e)<Math.abs(t[a]-e)?l:a},0),r=Math.abs(t[i]-e);return n===0||r<n?t[i]:e},Ga=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},Sr=function(e,t,n,i){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var r=Number(e.replace("%",""))/100;return t*r}if(e.endsWith("vw")){var r=Number(e.replace("vw",""))/100;return n*r}if(e.endsWith("vh")){var r=Number(e.replace("vh",""))/100;return i*r}}return e},Qx=function(e,t,n,i,r,a,o){return i=Sr(i,e.width,t,n),r=Sr(r,e.height,t,n),a=Sr(a,e.width,t,n),o=Sr(o,e.height,t,n),{maxWidth:typeof i>"u"?void 0:Number(i),maxHeight:typeof r>"u"?void 0:Number(r),minWidth:typeof a>"u"?void 0:Number(a),minHeight:typeof o>"u"?void 0:Number(o)}},eb=function(e){return Array.isArray(e)?e:[e,e]},tb=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Iu="__resizable_base__",nb=(function(e){Yx(t,e);function t(n){var i,r,a,o,l=e.call(this,n)||this;return l.ratio=1,l.resizable=null,l.parentLeft=0,l.parentTop=0,l.resizableLeft=0,l.resizableRight=0,l.resizableTop=0,l.resizableBottom=0,l.targetLeft=0,l.targetTop=0,l.delta={width:0,height:0},l.appendBase=function(){if(!l.resizable||!l.window)return null;var u=l.parentNode;if(!u)return null;var c=l.window.document.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.position="absolute",c.style.transform="scale(0, 0)",c.style.left="0",c.style.flex="0 0 100%",c.classList?c.classList.add(Iu):c.className+=Iu,u.appendChild(c),c},l.removeBase=function(u){var c=l.parentNode;c&&c.removeChild(u)},l.state={isResizing:!1,width:(r=(i=l.propsSize)===null||i===void 0?void 0:i.width)!==null&&r!==void 0?r:"auto",height:(o=(a=l.propsSize)===null||a===void 0?void 0:a.height)!==null&&o!==void 0?o:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},l.onResizeStart=l.onResizeStart.bind(l),l.onMouseMove=l.onMouseMove.bind(l),l.onMouseUp=l.onMouseUp.bind(l),l}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Xx},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var n=0,i=0;if(this.resizable&&this.window){var r=this.resizable.offsetWidth,a=this.resizable.offsetHeight,o=this.resizable.style.position;o!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:r,i=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:a,this.resizable.style.position=o}return{width:n,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var n=this,i=this.props.size,r=function(l){var u;if(typeof n.state[l]>"u"||n.state[l]==="auto")return"auto";if(n.propsSize&&n.propsSize[l]&&!((u=n.propsSize[l])===null||u===void 0)&&u.toString().endsWith("%")){if(n.state[l].toString().endsWith("%"))return n.state[l].toString();var c=n.getParentSize(),p=Number(n.state[l].toString().replace("px","")),d=p/c[l]*100;return"".concat(d,"%")}return Ga(n.state[l])},a=i&&typeof i.width<"u"&&!this.state.isResizing?Ga(i.width):r("width"),o=i&&typeof i.height<"u"&&!this.state.isResizing?Ga(i.height):r("height");return{width:a,height:o}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var i=!1,r=this.parentNode.style.flexWrap;r!=="wrap"&&(i=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var a={width:n.offsetWidth,height:n.offsetHeight};return i&&(this.parentNode.style.flexWrap=r),this.removeBase(n),a},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(n,i){var r=this.propsSize&&this.propsSize[i];return this.state[i]==="auto"&&this.state.original[i]===n&&(typeof r>"u"||r==="auto")?"auto":n},t.prototype.calculateNewMaxFromBoundary=function(n,i){var r=this.props.boundsByDirection,a=this.state.direction,o=r&&ai("left",a),l=r&&ai("top",a),u,c;if(this.props.bounds==="parent"){var p=this.parentNode;p&&(u=o?this.resizableRight-this.parentLeft:p.offsetWidth+(this.parentLeft-this.resizableLeft),c=l?this.resizableBottom-this.parentTop:p.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=o?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=l?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=o?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=l?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(n=n&&n<u?n:u),c&&Number.isFinite(c)&&(i=i&&i<c?i:c),{maxWidth:n,maxHeight:i}},t.prototype.calculateNewSizeFromDirection=function(n,i){var r=this.props.scale||1,a=eb(this.props.resizeRatio||1),o=a[0],l=a[1],u=this.state,c=u.direction,p=u.original,d=this.props,m=d.lockAspectRatio,g=d.lockAspectRatioExtraHeight,_=d.lockAspectRatioExtraWidth,x=p.width,E=p.height,C=g||0,S=_||0;return ai("right",c)&&(x=p.width+(n-p.x)*o/r,m&&(E=(x-S)/this.ratio+C)),ai("left",c)&&(x=p.width-(n-p.x)*o/r,m&&(E=(x-S)/this.ratio+C)),ai("bottom",c)&&(E=p.height+(i-p.y)*l/r,m&&(x=(E-C)*this.ratio+S)),ai("top",c)&&(E=p.height-(i-p.y)*l/r,m&&(x=(E-C)*this.ratio+S)),{newWidth:x,newHeight:E}},t.prototype.calculateNewSizeFromAspectRatio=function(n,i,r,a){var o=this.props,l=o.lockAspectRatio,u=o.lockAspectRatioExtraHeight,c=o.lockAspectRatioExtraWidth,p=typeof a.width>"u"?10:a.width,d=typeof r.width>"u"||r.width<0?n:r.width,m=typeof a.height>"u"?10:a.height,g=typeof r.height>"u"||r.height<0?i:r.height,_=u||0,x=c||0;if(l){var E=(m-_)*this.ratio+x,C=(g-_)*this.ratio+x,S=(p-x)/this.ratio+_,k=(d-x)/this.ratio+_,A=Math.max(p,E),b=Math.min(d,C),f=Math.max(m,S),T=Math.min(g,k);n=wr(n,A,b),i=wr(i,f,T)}else n=wr(n,p,d),i=wr(i,m,g);return{newWidth:n,newHeight:i}},t.prototype.setBoundingClientRect=function(){var n=1/(this.props.scale||1);if(this.props.bounds==="parent"){var i=this.parentNode;if(i){var r=i.getBoundingClientRect();this.parentLeft=r.left*n,this.parentTop=r.top*n}}if(this.props.bounds&&typeof this.props.bounds!="string"){var a=this.props.bounds.getBoundingClientRect();this.targetLeft=a.left*n,this.targetTop=a.top*n}if(this.resizable){var o=this.resizable.getBoundingClientRect(),l=o.left,u=o.top,c=o.right,p=o.bottom;this.resizableLeft=l*n,this.resizableRight=c*n,this.resizableTop=u*n,this.resizableBottom=p*n}},t.prototype.onResizeStart=function(n,i){if(!(!this.resizable||!this.window)){var r=0,a=0;if(n.nativeEvent&&Zx(n.nativeEvent)?(r=n.nativeEvent.clientX,a=n.nativeEvent.clientY):n.nativeEvent&&kr(n.nativeEvent)&&(r=n.nativeEvent.touches[0].clientX,a=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var o=this.props.onResizeStart(n,i,this.resizable);if(o===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var l,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var c=this.parentNode;if(c){var p=this.window.getComputedStyle(c).flexDirection;this.flexDir=p.startsWith("row")?"row":"column",l=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var d={original:{x:r,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:sn(sn({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:i,flexBasis:l};this.setState(d)}},t.prototype.onMouseMove=function(n){var i=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&kr(n))try{n.preventDefault(),n.stopPropagation()}catch{}var r=this.props,a=r.maxWidth,o=r.maxHeight,l=r.minWidth,u=r.minHeight,c=kr(n)?n.touches[0].clientX:n.clientX,p=kr(n)?n.touches[0].clientY:n.clientY,d=this.state,m=d.direction,g=d.original,_=d.width,x=d.height,E=this.getParentSize(),C=Qx(E,this.window.innerWidth,this.window.innerHeight,a,o,l,u);a=C.maxWidth,o=C.maxHeight,l=C.minWidth,u=C.minHeight;var S=this.calculateNewSizeFromDirection(c,p),k=S.newHeight,A=S.newWidth,b=this.calculateNewMaxFromBoundary(a,o);this.props.snap&&this.props.snap.x&&(A=Cu(A,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(k=Cu(k,this.props.snap.y,this.props.snapGap));var f=this.calculateNewSizeFromAspectRatio(A,k,{width:b.maxWidth,height:b.maxHeight},{width:l,height:u});if(A=f.newWidth,k=f.newHeight,this.props.grid){var T=Eu(A,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),L=Eu(k,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),V=this.props.snapGap||0,D=V===0||Math.abs(T-A)<=V?T:A,B=V===0||Math.abs(L-k)<=V?L:k;A=D,k=B}var j={width:A-g.width,height:k-g.height};if(this.delta=j,_&&typeof _=="string"){if(_.endsWith("%")){var $=A/E.width*100;A="".concat($,"%")}else if(_.endsWith("vw")){var K=A/this.window.innerWidth*100;A="".concat(K,"vw")}else if(_.endsWith("vh")){var W=A/this.window.innerHeight*100;A="".concat(W,"vh")}}if(x&&typeof x=="string"){if(x.endsWith("%")){var $=k/E.height*100;k="".concat($,"%")}else if(x.endsWith("vw")){var K=k/this.window.innerWidth*100;k="".concat(K,"vw")}else if(x.endsWith("vh")){var W=k/this.window.innerHeight*100;k="".concat(W,"vh")}}var ne={width:this.createSizeForCssProperty(A,"width"),height:this.createSizeForCssProperty(k,"height")};this.flexDir==="row"?ne.flexBasis=ne.width:this.flexDir==="column"&&(ne.flexBasis=ne.height);var te=this.state.width!==ne.width,J=this.state.height!==ne.height,ue=this.state.flexBasis!==ne.flexBasis,y=te||J||ue;y&&er.flushSync(function(){i.setState(ne)}),this.props.onResize&&y&&this.props.onResize(n,m,this.resizable,j)}},t.prototype.onMouseUp=function(n){var i,r,a=this.state,o=a.isResizing,l=a.direction;a.original,!(!o||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(n,l,this.resizable,this.delta),this.props.size&&this.setState({width:(i=this.props.size.width)!==null&&i!==void 0?i:"auto",height:(r=this.props.size.height)!==null&&r!==void 0?r:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:sn(sn({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(n){var i,r;this.setState({width:(i=n.width)!==null&&i!==void 0?i:"auto",height:(r=n.height)!==null&&r!==void 0?r:"auto"})},t.prototype.renderResizer=function(){var n=this,i=this.props,r=i.enable,a=i.handleStyles,o=i.handleClasses,l=i.handleWrapperStyle,u=i.handleWrapperClass,c=i.handleComponent;if(!r)return null;var p=Object.keys(r).map(function(d){return r[d]!==!1?w.jsx(Jx,{direction:d,onResizeStart:n.onResizeStart,replaceStyles:a&&a[d],className:o&&o[d],children:c&&c[d]?c[d]:null},d):null});return w.jsx("div",{className:u,style:l,children:p})},t.prototype.render=function(){var n=this,i=Object.keys(this.props).reduce(function(o,l){return tb.indexOf(l)!==-1||(o[l]=n.props[l]),o},{}),r=sn(sn(sn({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(r.flexBasis=this.state.flexBasis);var a=this.props.as||"div";return w.jsxs(a,sn({style:r,className:this.props.className},i,{ref:function(o){o&&(n.resizable=o)},children:[this.state.isResizing&&w.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(M.PureComponent);const ib={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},rb={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},fd=({depth:e=0,className:t,borderType:n,disabled:i})=>de("transition-colors duration-200",{"text-body":!i,"text-inactive-text":i},n?rb[n]:"border-panel-border",ib[e],t),ab=e=>{if(!e)return{};const t={},n=e.match(/min-w-\[(\d+)px\]/);n&&(t.minWidth=parseInt(n[1],10));const i=e.match(/max-w-\[(\d+)px\]/);i&&(t.maxWidth=parseInt(i[1],10));const r=e.match(/min-h-\[(\d+)px\]/);r&&(t.minHeight=parseInt(r[1],10));const a=e.match(/max-h-\[(\d+)px\]/);return a&&(t.maxHeight=parseInt(a[1],10)),t},sb=M.forwardRef(({children:e,width:t,height:n,minWidth:i=10,minHeight:r=10,maxWidth:a,maxHeight:o,defaultWidth:l,defaultHeight:u,defaultSize:c,size:p,grid:d,snap:m,lockAspectRatio:g=!1,enable:_,handleStyles:x={},handleClasses:E={},handleComponent:C={},style:S={},className:k,onResizeStart:A,onResize:b,onResizeStop:f,scale:T=1,bounds:L,snapGap:V,as:D="div",depth:B,disabled:j},$)=>{const K=fd({depth:B,className:k,disabled:j}),W=ab(k),ne=p?{size:p}:t!==void 0||n!==void 0?{size:{width:t??"auto",height:n??"auto"}}:{},te=c?{defaultSize:c}:l!==void 0||u!==void 0?{defaultSize:{width:l??"auto",height:u??"auto"}}:{},J=M.useRef(null);return M.useImperativeHandle($,()=>{var ue;return(ue=J.current)==null?void 0:ue.resizable}),w.jsx(nb,{"data-qui":"Resizable",ref:J,...ne,...te,minWidth:i??W.minWidth,minHeight:r??W.minHeight,maxWidth:a??W.maxWidth,maxHeight:o??W.maxHeight,grid:d,snap:m,lockAspectRatio:g,enable:_,handleStyles:x,handleClasses:E,handleComponent:C,style:S,className:de("relative box-border",K),onResizeStart:A,onResize:b,onResizeStop:f,scale:T,bounds:L,snapGap:V,as:D,children:e})});sb.displayName="Resizable";const si={sm:{track:"h-4 w-7",thumb:"size-3",thumbUnchecked:"left-0.5",thumbChecked:"left-3.5",label:"text-xs",gap:"gap-2"},md:{track:"h-5 w-9",thumb:"size-4",thumbUnchecked:"left-0.5",thumbChecked:"left-4.5",label:"text-sm",gap:"gap-2.5"},lg:{track:"h-6 w-11",thumb:"size-5",thumbUnchecked:"left-0.5",thumbChecked:"left-5.5",label:"text-base",gap:"gap-3"}},Er={primary:{bg:"bg-primary",thumb:"group-hover:bg-primary-light",icon:"text-primary"},positive:{bg:"bg-positive",thumb:"group-hover:bg-positive-light",icon:"text-positive"},warning:{bg:"bg-warning",thumb:"group-hover:bg-warning-light",icon:"text-warning"},negative:{bg:"bg-negative",thumb:"group-hover:bg-negative-light",icon:"text-negative"}},ob=(e,t,n,i,r,a)=>({container:de("inline-flex items-center",si[e].gap,a),track:de("relative inline-flex items-center shrink-0 group","transition-colors duration-200 ease-in-out","focus:outline-hidden focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2","border border-input-border rounded-full justify-between px-0.5",si[e].track,{[Er[t].bg]:n&&!i&&!r,"bg-input-bg":!n&&!i||r,"bg-panel cursor-not-allowed":i,"cursor-pointer":!i}),thumb:de("bg-input-text pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",si[e].thumb,n?si[e].thumbChecked:si[e].thumbUnchecked,{[Er[t].thumb]:!i,"bg-canvas-subtle":i}),iconLeft:de("flex items-center justify-center z-10 w-1/2 p-0.5",{[Er[t].icon]:!n&&!i,"text-panel-subtle":i||n}),iconRight:de("flex items-center justify-center z-10 w-1/2 p-0.5",{[Er[t].icon]:n&&!i,"text-panel-subtle":i||!n}),label:de("font-medium text-body",si[e].label,{"cursor-pointer":!i,"cursor-not-allowed text-muted":i})}),gd=M.forwardRef(({label:e,checked:t,defaultChecked:n=!1,disabled:i=!1,size:r="md",color:a="primary",icons:o,onChange:l,className:u,id:c,name:p,...d},m)=>{const[g,_]=M.useState(n),x=t!==void 0,E=x?t:g,C=()=>{const k=!E;x||_(k),l==null||l(k)},S=ob(r,a,E,i,!!o,u);return w.jsxs("div",{"data-qui":"Toggle",className:S.container,children:[e&&w.jsx("label",{htmlFor:c,className:S.label,children:e}),w.jsxs("button",{ref:m,...d,type:"button",role:"switch","aria-checked":E,"aria-label":e,disabled:i,onClick:C,name:p,id:c,className:S.track,children:[o&&w.jsx("span",{className:S.iconLeft,children:o.unchecked}),w.jsx("span",{className:S.thumb,"aria-hidden":"true"}),o&&w.jsx("span",{className:S.iconRight,children:o.checked})]})]})});gd.displayName="Toggle";M.createContext(null);const Hn=M.forwardRef(({depth:e=0,className:t,children:n,borderType:i,disabled:r,...a},o)=>{const l=fd({depth:e,className:t,borderType:i,disabled:r});return w.jsx("div",{"data-qui":"Panel",ref:o,className:l,"aria-disabled":r,...a,children:n})});Hn.displayName="Panel";const qi={sm:{container:"h-5 px-0.5 gap-1 rounded",text:"text-xxs leading-3",icon:"text-s",iconButton:"text-s p-0.5 cursor-pointer"},md:{container:"h-5.5 px-1 gap-1 rounded",text:"text-xs leading-4",icon:"text-sm",iconButton:" text-sm p-0.5 cursor-pointer"},lg:{container:"h-6 px-1.5 gap-1.5 rounded",text:"text-s leading-none",icon:"text-base",iconButton:"text-base p-0.5 cursor-pointer"}},zr={primary:{bg:"bg-primary",text:"text-button-text",border:"border-primary",buttonHover:"hover:bg-primary-hover"},white:{bg:"bg-canvas-default",text:"text-primary",border:"border-canvas-default",buttonHover:"hover:bg-primary-hover hover:text-button-text"},positive:{bg:"bg-positive",text:"text-button-text",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-button-text",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-button-text",border:"border-negative",buttonHover:"hover:bg-negative-hover"},dark:{bg:"bg-input-bg",text:"text-input-text",border:"border-input-border",buttonHover:"hover:bg-primary-hover hover:text-button-text"}},lb=(e,t,n,i)=>de("inline-flex items-center justify-center font-medium border",qi[e].container,zr[t].bg,zr[t].text,zr[t].border,qi[e].text,{"opacity-60 pointer-events-none":n,"cursor-pointer hover:bg-opacity-90 transition-opacity":i&&!n}),ub=(e,t,n)=>de({[qi[e].icon]:!n,"bg-canvas-default outline-canvas-default text-primary":n&&t!=="white"||n,"bg-primary outline-primary text-button-text":n&&t==="white"&&!n,"outline-solid outline-1 h-full py-0.5 grid place-items-center -my-1 only:-mx-0.5 first:-ml-1.5 last:-mr-1.5 only:rounded first:rounded-l last:rounded-r":n||n}),cb=e=>de(qi[e].text),md=(e,t,n)=>de("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",qi[e].iconButton,zr[t].buttonHover,{"pointer-events-none":n}),vd=M.createContext(null),ka=()=>{const e=M.useContext(vd);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},go=M.forwardRef(({size:e="md",color:t="primary",className:n,children:i,disabled:r=!1,onClick:a,...o},l)=>{const u={size:e,color:t,disabled:r},c=!!a;return w.jsx(vd.Provider,{value:u,children:w.jsx("div",{"data-qui":"Pill",ref:l,onClick:a,className:de(lb(e,t,r,c),n),...o,children:i})})});go.displayName="Pill.Root";const mo=M.forwardRef(({className:e,children:t,...n},i)=>{const{size:r}=ka();return w.jsx("span",{ref:i,className:de(cb(r),e),...n,children:t})});mo.displayName="Pill.Text";const vo=M.forwardRef(({className:e,children:t,label:n,position:i,...r},a)=>{const{size:o,color:l,disabled:u}=ka(),c=!!n,p=w.jsx("span",{ref:a,className:de(ub(o,l,c),e,{"opacity-60":u}),...r,children:t});return c&&!u?w.jsx(yt,{label:n||"",position:i||"up",children:p}):p});vo.displayName="Pill.Icon";const xd=M.forwardRef(({className:e,children:t,...n},i)=>{const{size:r,color:a,disabled:o}=ka();return w.jsx("button",{ref:i,type:"button",disabled:o,className:de(md(r,a,o),e),...n,children:t})});xd.displayName="Pill.Button";const xo=M.forwardRef(({className:e,onClose:t,"aria-label":n="Remove pill",children:i,...r},a)=>{const{size:o,color:l,disabled:u}=ka();return w.jsx("button",{ref:a,type:"button",disabled:u,className:de(md(o,l,u),e),onClick:t,"aria-label":n,...r,children:i||w.jsx(ya,{})})});xo.displayName="Pill.Close";const bd=M.forwardRef(({size:e="md",color:t="primary",label:n,icon:i,onClose:r,closable:a=!1,className:o,children:l,disabled:u=!1,...c},p)=>w.jsxs(go,{ref:p,size:e,color:t,className:o,disabled:u,...c,children:[i&&w.jsx(vo,{children:i}),l||n&&w.jsx(mo,{children:n}),a&&w.jsx(xo,{onClose:r})]}));bd.displayName="Pill";const hb=Object.assign(bd,{Root:go,Text:mo,Icon:vo,Button:xd,Close:xo}),yd=M.createContext(null),At=()=>{const e=M.useContext(yd);if(!e)throw new Error("Select compound components must be used within Select.Root");return e},Et={sm:{trigger:"h-5 min-h-fit",control:"min-h-5 p-0.5 gap-1",input:"text-xs h-3.5",placeholder:"placeholder:text-xs text-xs",singleValue:"text-xs",multiValue:"h-3.5 px-0.5 gap-1 text-xxs",multiValueLabel:"text-xxs",multiValueRemove:"w-3 h-3",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-3",dropdownIndicator:"p-0.5 size-3",indicatorSeparator:"h-3",loadingIndicator:"w-3 h-3",menu:"m-0",menuList:"py-1",option:"px-1 py-0.5 text-xs",group:"pt-1",groupHeading:"px-2 py-0.5 text-xxs",noOptionsMessage:"px-2 py-1 text-xxs",loadingMessage:"px-2 py-1 text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{trigger:"h-6 min-h-fit",control:"min-h-6 p-1 gap-1.5",input:"text-s h-4",placeholder:"placeholder:text-s text-s",singleValue:"text-s",multiValue:"h-4 p-1 gap-1 text-xs",multiValueLabel:"text-xs",multiValueRemove:"w-3.5 h-3.5",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-4",dropdownIndicator:"p-0.5 size-4",indicatorSeparator:"h-4",loadingIndicator:"w-4 h-4",menu:"m-0",menuList:"py-1",option:"px-2 py-1 text-s",group:"pt-1.5",groupHeading:"px-3 py-1 text-xs",noOptionsMessage:"px-2 py-1.5 text-xs",loadingMessage:"px-3 py-1.5 text-xs",message:"text-xs p-2",icon:"text-base"},lg:{trigger:"h-7 min-h-fit",control:"min-h-7 p-1.5 gap-2",input:"text-sm h-5",placeholder:"placeholder:text-sm text-sm",singleValue:"text-sm",multiValue:"h-5 px-1.5 gap-1.5 text-s",multiValueLabel:"text-xs",multiValueRemove:"w-4 h-4",indicatorsContainer:"gap-1.5",clearIndicator:"p-0.5 size-5",dropdownIndicator:"p-1 size-5",indicatorSeparator:"h-5",loadingIndicator:"w-5 h-5",menu:"m-0",menuList:"py-1.5",option:"px-3 py-2 text-sm",group:"pt-2",groupHeading:"px-4 py-1.5 text-s",noOptionsMessage:"px-4 py-2 text-s",loadingMessage:"px-4 py-2 text-s",message:"text-s p-2.5",icon:"text-lg"}},dt={primary:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-focus-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-primary",menu:"bg-select-list-bg border-input-focus-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-primary-dark",messageBackground:"bg-input-message-bg",messageBorder:"ring-input-info-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},positive:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-positive",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-positive",menu:"bg-select-list-bg border-positive shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-positive-dark",messageBackground:"bg-positive-light",messageBorder:"ring-positive",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},warning:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-warning-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-warning",menu:"bg-select-list-bg border-input-warning-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-warning-dark",messageBackground:"bg-input-warning-bg",messageBorder:"ring-input-warning-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},negative:{control:"cursor-pointer bg-input-bg text-negative",controlFocused:"border-input-error-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-negative",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-negative",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-negative",menu:"bg-select-list-bg border-input-error-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-negative-dark",messageBackground:"bg-input-error-bg",messageBorder:"ring-input-error-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"}},db=()=>de("flex flex-col relative"),pb=({size:e,color:t,isDisabled:n,isFocused:i,isInvalid:r,hasMessage:a})=>{const o=dt[r?"negative":t];return de("flex items-center justify-between only:rounded first:rounded-t last:rounded-b",Et[e].control,o.control,a?["ring-1",o.messageBorder]:["border",n?"border-input-border":i?o.controlFocused:`border-select-border
|
|
17
|
+
focus-within:${o.controlFocused}`],{[o.controlDisabled]:n})},fb=({isMulti:e})=>de("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":e,"px-0.5":!e}),gb=({size:e,color:t})=>de("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 px-1 text-input-text",Et[e].input,dt[t].placeholder),mb=({size:e,color:t})=>de("select-none truncate",Et[e].placeholder,dt[t].placeholder),vb=({size:e,color:t,isDisabled:n})=>de("truncate",Et[e].singleValue,n?dt[t].singleValueDisabled:dt[t].singleValue),xb=({size:e,color:t,isDisabled:n,isFocused:i})=>de("inline-flex items-center rounded-xs",Et[e].multiValue,n?dt[t].multiValueDisabled:dt[t].multiValue,{"border border-white":i&&!n}),bb=({size:e})=>de("truncate",Et[e].multiValueLabel),yb=({size:e,color:t,isDisabled:n})=>de("flex items-center justify-center cursor-pointer transition-colors",Et[e].multiValueRemove,dt[t].multiValueRemove),wd=({size:e,color:t,isDisabled:n})=>de("flex items-center justify-center transition-colors rounded",Et[e].clearIndicator,n?"hidden":[dt[t].clearIndicator,dt[t].clearIndicatorHover]),wb=({size:e,color:t,isDisabled:n})=>de("flex items-center justify-center transition-colors rounded",Et[e].dropdownIndicator,n?"text-grey-200":[dt[t].dropdownIndicator,dt[t].dropdownIndicatorHover]),kb=({size:e,placement:t,hasMessage:n,color:i})=>{const r={auto:"top-full rounded-t-none",bottom:"top-full rounded-t-none",top:"bottom-full rounded-b-none"};return de("absolute w-full z-50 rounded overflow-hidden border border-t-0",dt[i].menu,{[dt[i].messageBorder]:n},r[t||"auto"],Et[e].menu)},Sb=({size:e})=>de("overflow-y-auto",Et[e].menuList,dt.primary.menuList),Eb=({size:e,color:t,isDisabled:n,isFocused:i,isSelected:r})=>de("transition-colors duration-150 cursor-pointer mx-1 rounded flex items-center gap-2",Et[e].option,{[dt[t].optionDisabled]:n,[dt[t].optionSelected]:r&&!n,[dt[t].optionFocused]:i&&!r&&!n,[dt[t].option]:!r&&!i&&!n}),Cb=({size:e})=>de(Et[e].group),Ib=({size:e,color:t})=>de(Et[e].groupHeading,dt[t].groupHeading),_b=({size:e})=>de("text-grey-100",Et[e].loadingMessage),Ab=({size:e})=>de(Et[e].noOptionsMessage,dt.primary.noOptionsMessage),kd=e=>{const t=e[0];return e.length>0&&typeof t=="object"&&t!==null&&"options"in t&&Array.isArray(t.options)},Nb=e=>kd(e)?e.reduce((t,n)=>[...t,...n.options],[]):e;function _t(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Le.apply(null,arguments)}function Hs(e,t){return Hs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hs(e,t)}function Tb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hs(e,t)}var Cr={exports:{}},$a={exports:{}},tt={};/** @license React v16.13.1
|
|
74
18
|
* react-is.production.min.js
|
|
75
19
|
*
|
|
76
20
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
77
21
|
*
|
|
78
22
|
* This source code is licensed under the MIT license found in the
|
|
79
23
|
* LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/var
|
|
24
|
+
*/var _u;function Pb(){if(_u)return tt;_u=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function k(b){if(typeof b=="object"&&b!==null){var f=b.$$typeof;switch(f){case t:switch(b=b.type,b){case u:case c:case i:case a:case r:case d:return b;default:switch(b=b&&b.$$typeof,b){case l:case p:case _:case g:case o:return b;default:return f}}case n:return f}}}function A(b){return k(b)===c}return tt.AsyncMode=u,tt.ConcurrentMode=c,tt.ContextConsumer=l,tt.ContextProvider=o,tt.Element=t,tt.ForwardRef=p,tt.Fragment=i,tt.Lazy=_,tt.Memo=g,tt.Portal=n,tt.Profiler=a,tt.StrictMode=r,tt.Suspense=d,tt.isAsyncMode=function(b){return A(b)||k(b)===u},tt.isConcurrentMode=A,tt.isContextConsumer=function(b){return k(b)===l},tt.isContextProvider=function(b){return k(b)===o},tt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},tt.isForwardRef=function(b){return k(b)===p},tt.isFragment=function(b){return k(b)===i},tt.isLazy=function(b){return k(b)===_},tt.isMemo=function(b){return k(b)===g},tt.isPortal=function(b){return k(b)===n},tt.isProfiler=function(b){return k(b)===a},tt.isStrictMode=function(b){return k(b)===r},tt.isSuspense=function(b){return k(b)===d},tt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===i||b===c||b===a||b===r||b===d||b===m||typeof b=="object"&&b!==null&&(b.$$typeof===_||b.$$typeof===g||b.$$typeof===o||b.$$typeof===l||b.$$typeof===p||b.$$typeof===E||b.$$typeof===C||b.$$typeof===S||b.$$typeof===x)},tt.typeOf=k,tt}var it={};/** @license React v16.13.1
|
|
81
25
|
* react-is.development.js
|
|
82
26
|
*
|
|
83
27
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
84
28
|
*
|
|
85
29
|
* This source code is licensed under the MIT license found in the
|
|
86
30
|
* LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/return
|
|
31
|
+
*/var Au;function Ob(){return Au||(Au=1,he.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,i=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function k(H){return typeof H=="string"||typeof H=="function"||H===i||H===c||H===a||H===r||H===d||H===m||typeof H=="object"&&H!==null&&(H.$$typeof===_||H.$$typeof===g||H.$$typeof===o||H.$$typeof===l||H.$$typeof===p||H.$$typeof===E||H.$$typeof===C||H.$$typeof===S||H.$$typeof===x)}function A(H){if(typeof H=="object"&&H!==null){var pe=H.$$typeof;switch(pe){case t:var re=H.type;switch(re){case u:case c:case i:case a:case r:case d:return re;default:var we=re&&re.$$typeof;switch(we){case l:case p:case _:case g:case o:return we;default:return pe}}case n:return pe}}}var b=u,f=c,T=l,L=o,V=t,D=p,B=i,j=_,$=g,K=n,W=a,ne=r,te=d,J=!1;function ue(H){return J||(J=!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.")),y(H)||A(H)===u}function y(H){return A(H)===c}function X(H){return A(H)===l}function ie(H){return A(H)===o}function P(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function G(H){return A(H)===p}function q(H){return A(H)===i}function F(H){return A(H)===_}function z(H){return A(H)===g}function Y(H){return A(H)===n}function ee(H){return A(H)===a}function se(H){return A(H)===r}function le(H){return A(H)===d}it.AsyncMode=b,it.ConcurrentMode=f,it.ContextConsumer=T,it.ContextProvider=L,it.Element=V,it.ForwardRef=D,it.Fragment=B,it.Lazy=j,it.Memo=$,it.Portal=K,it.Profiler=W,it.StrictMode=ne,it.Suspense=te,it.isAsyncMode=ue,it.isConcurrentMode=y,it.isContextConsumer=X,it.isContextProvider=ie,it.isElement=P,it.isForwardRef=G,it.isFragment=q,it.isLazy=F,it.isMemo=z,it.isPortal=Y,it.isProfiler=ee,it.isStrictMode=se,it.isSuspense=le,it.isValidElementType=k,it.typeOf=A})()),it}var Nu;function Sd(){return Nu||(Nu=1,he.NODE_ENV==="production"?$a.exports=Pb():$a.exports=Ob()),$a.exports}/*
|
|
88
32
|
object-assign
|
|
89
33
|
(c) Sindre Sorhus
|
|
90
34
|
@license MIT
|
|
91
|
-
*/var
|
|
92
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
35
|
+
*/var Ja,Tu;function Lb(){if(Tu)return Ja;Tu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function r(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},l=0;l<10;l++)o["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(o).map(function(p){return o[p]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(p){c[p]=p}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ja=r()?Object.assign:function(a,o){for(var l,u=i(a),c,p=1;p<arguments.length;p++){l=Object(arguments[p]);for(var d in l)t.call(l,d)&&(u[d]=l[d]);if(e){c=e(l);for(var m=0;m<c.length;m++)n.call(l,c[m])&&(u[c[m]]=l[c[m]])}}return u},Ja}var Ya,Pu;function bo(){if(Pu)return Ya;Pu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ya=e,Ya}var Ou,Lu;function Ed(){return Lu||(Lu=1,Ou=Function.call.bind(Object.prototype.hasOwnProperty)),Ou}var Xa,Ru;function Rb(){if(Ru)return Xa;Ru=1;var e=function(){};if(he.NODE_ENV!=="production"){var t=bo(),n={},i=Ed();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function r(a,o,l,u,c){if(he.NODE_ENV!=="production"){for(var p in a)if(i(a,p)){var d;try{if(typeof a[p]!="function"){var m=Error((u||"React class")+": "+l+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}d=a[p](o,p,u,l,null,t)}catch(_){d=_}if(d&&!(d instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var g=c?c():"";e("Failed "+l+" type: "+d.message+(g??""))}}}}return r.resetWarningCache=function(){he.NODE_ENV!=="production"&&(n={})},Xa=r,Xa}var Za,Du;function Db(){if(Du)return Za;Du=1;var e=Sd(),t=Lb(),n=bo(),i=Ed(),r=Rb(),a=function(){};he.NODE_ENV!=="production"&&(a=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return Za=function(l,u){var c=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function d(y){var X=y&&(c&&y[c]||y[p]);if(typeof X=="function")return X}var m="<<anonymous>>",g={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:S(),arrayOf:k,element:A(),elementType:b(),instanceOf:f,node:D(),objectOf:L,oneOf:T,oneOfType:V,shape:j,exact:$};function _(y,X){return y===X?y!==0||1/y===1/X:y!==y&&X!==X}function x(y,X){this.message=y,this.data=X&&typeof X=="object"?X:{},this.stack=""}x.prototype=Error.prototype;function E(y){if(he.NODE_ENV!=="production")var X={},ie=0;function P(q,F,z,Y,ee,se,le){if(Y=Y||m,se=se||z,le!==n){if(u){var H=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw H.name="Invariant Violation",H}else if(he.NODE_ENV!=="production"&&typeof console<"u"){var pe=Y+":"+z;!X[pe]&&ie<3&&(a("You are manually calling a React.PropTypes validation function for the `"+se+"` prop on `"+Y+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),X[pe]=!0,ie++)}}return F[z]==null?q?F[z]===null?new x("The "+ee+" `"+se+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new x("The "+ee+" `"+se+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:y(F,z,Y,ee,se)}var G=P.bind(null,!1);return G.isRequired=P.bind(null,!0),G}function C(y){function X(ie,P,G,q,F,z){var Y=ie[P],ee=ne(Y);if(ee!==y){var se=te(Y);return new x("Invalid "+q+" `"+F+"` of type "+("`"+se+"` supplied to `"+G+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return E(X)}function S(){return E(o)}function k(y){function X(ie,P,G,q,F){if(typeof y!="function")return new x("Property `"+F+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var z=ie[P];if(!Array.isArray(z)){var Y=ne(z);return new x("Invalid "+q+" `"+F+"` of type "+("`"+Y+"` supplied to `"+G+"`, expected an array."))}for(var ee=0;ee<z.length;ee++){var se=y(z,ee,G,q,F+"["+ee+"]",n);if(se instanceof Error)return se}return null}return E(X)}function A(){function y(X,ie,P,G,q){var F=X[ie];if(!l(F)){var z=ne(F);return new x("Invalid "+G+" `"+q+"` of type "+("`"+z+"` supplied to `"+P+"`, expected a single ReactElement."))}return null}return E(y)}function b(){function y(X,ie,P,G,q){var F=X[ie];if(!e.isValidElementType(F)){var z=ne(F);return new x("Invalid "+G+" `"+q+"` of type "+("`"+z+"` supplied to `"+P+"`, expected a single ReactElement type."))}return null}return E(y)}function f(y){function X(ie,P,G,q,F){if(!(ie[P]instanceof y)){var z=y.name||m,Y=ue(ie[P]);return new x("Invalid "+q+" `"+F+"` of type "+("`"+Y+"` supplied to `"+G+"`, expected ")+("instance of `"+z+"`."))}return null}return E(X)}function T(y){if(!Array.isArray(y))return he.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function X(ie,P,G,q,F){for(var z=ie[P],Y=0;Y<y.length;Y++)if(_(z,y[Y]))return null;var ee=JSON.stringify(y,function(se,le){var H=te(le);return H==="symbol"?String(le):le});return new x("Invalid "+q+" `"+F+"` of value `"+String(z)+"` "+("supplied to `"+G+"`, expected one of "+ee+"."))}return E(X)}function L(y){function X(ie,P,G,q,F){if(typeof y!="function")return new x("Property `"+F+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var z=ie[P],Y=ne(z);if(Y!=="object")return new x("Invalid "+q+" `"+F+"` of type "+("`"+Y+"` supplied to `"+G+"`, expected an object."));for(var ee in z)if(i(z,ee)){var se=y(z,ee,G,q,F+"."+ee,n);if(se instanceof Error)return se}return null}return E(X)}function V(y){if(!Array.isArray(y))return he.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var X=0;X<y.length;X++){var ie=y[X];if(typeof ie!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+J(ie)+" at index "+X+"."),o}function P(G,q,F,z,Y){for(var ee=[],se=0;se<y.length;se++){var le=y[se],H=le(G,q,F,z,Y,n);if(H==null)return null;H.data&&i(H.data,"expectedType")&&ee.push(H.data.expectedType)}var pe=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new x("Invalid "+z+" `"+Y+"` supplied to "+("`"+F+"`"+pe+"."))}return E(P)}function D(){function y(X,ie,P,G,q){return K(X[ie])?null:new x("Invalid "+G+" `"+q+"` supplied to "+("`"+P+"`, expected a ReactNode."))}return E(y)}function B(y,X,ie,P,G){return new x((y||"React class")+": "+X+" type `"+ie+"."+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function j(y){function X(ie,P,G,q,F){var z=ie[P],Y=ne(z);if(Y!=="object")return new x("Invalid "+q+" `"+F+"` of type `"+Y+"` "+("supplied to `"+G+"`, expected `object`."));for(var ee in y){var se=y[ee];if(typeof se!="function")return B(G,q,F,ee,te(se));var le=se(z,ee,G,q,F+"."+ee,n);if(le)return le}return null}return E(X)}function $(y){function X(ie,P,G,q,F){var z=ie[P],Y=ne(z);if(Y!=="object")return new x("Invalid "+q+" `"+F+"` of type `"+Y+"` "+("supplied to `"+G+"`, expected `object`."));var ee=t({},ie[P],y);for(var se in ee){var le=y[se];if(i(y,se)&&typeof le!="function")return B(G,q,F,se,te(le));if(!le)return new x("Invalid "+q+" `"+F+"` key `"+se+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(ie[P],null," ")+`
|
|
36
|
+
Valid keys: `+JSON.stringify(Object.keys(y),null," "));var H=le(z,se,G,q,F+"."+se,n);if(H)return H}return null}return E(X)}function K(y){switch(typeof y){case"number":case"string":case"undefined":return!0;case"boolean":return!y;case"object":if(Array.isArray(y))return y.every(K);if(y===null||l(y))return!0;var X=d(y);if(X){var ie=X.call(y),P;if(X!==y.entries){for(;!(P=ie.next()).done;)if(!K(P.value))return!1}else for(;!(P=ie.next()).done;){var G=P.value;if(G&&!K(G[1]))return!1}}else return!1;return!0;default:return!1}}function W(y,X){return y==="symbol"?!0:X?X["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&X instanceof Symbol:!1}function ne(y){var X=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":W(X,y)?"symbol":X}function te(y){if(typeof y>"u"||y===null)return""+y;var X=ne(y);if(X==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return X}function J(y){var X=te(y);switch(X){case"array":case"object":return"an "+X;case"boolean":case"date":case"regexp":return"a "+X;default:return X}}function ue(y){return!y.constructor||!y.constructor.name?m:y.constructor.name}return g.checkPropTypes=r,g.resetWarningCache=r.resetWarningCache,g.PropTypes=g,g},Za}var Qa,Mu;function Mb(){if(Mu)return Qa;Mu=1;var e=bo();function t(){}function n(){}return n.resetWarningCache=t,Qa=function(){function i(o,l,u,c,p,d){if(d!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}i.isRequired=i;function r(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:r,element:i,elementType:i,instanceOf:r,node:i,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Qa}var Fu;function Fb(){if(Fu)return Cr.exports;if(Fu=1,he.NODE_ENV!=="production"){var e=Sd(),t=!0;Cr.exports=Db()(e.isElement,t)}else Cr.exports=Mb()();return Cr.exports}var jb=Fb();const ge=Gh(jb);var es={exports:{}},nt={};/**
|
|
37
|
+
* @license React
|
|
93
38
|
* react-is.production.min.js
|
|
94
39
|
*
|
|
95
40
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
96
41
|
*
|
|
97
42
|
* This source code is licensed under the MIT license found in the
|
|
98
43
|
* LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/var
|
|
44
|
+
*/var ju;function Vb(){if(ju)return nt;ju=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function x(E){if(typeof E=="object"&&E!==null){var C=E.$$typeof;switch(C){case e:switch(E=E.type,E){case n:case r:case i:case c:case p:return E;default:switch(E=E&&E.$$typeof,E){case l:case o:case u:case m:case d:case a:return E;default:return C}}case t:return C}}}return nt.ContextConsumer=o,nt.ContextProvider=a,nt.Element=e,nt.ForwardRef=u,nt.Fragment=n,nt.Lazy=m,nt.Memo=d,nt.Portal=t,nt.Profiler=r,nt.StrictMode=i,nt.Suspense=c,nt.SuspenseList=p,nt.isAsyncMode=function(){return!1},nt.isConcurrentMode=function(){return!1},nt.isContextConsumer=function(E){return x(E)===o},nt.isContextProvider=function(E){return x(E)===a},nt.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},nt.isForwardRef=function(E){return x(E)===u},nt.isFragment=function(E){return x(E)===n},nt.isLazy=function(E){return x(E)===m},nt.isMemo=function(E){return x(E)===d},nt.isPortal=function(E){return x(E)===t},nt.isProfiler=function(E){return x(E)===r},nt.isStrictMode=function(E){return x(E)===i},nt.isSuspense=function(E){return x(E)===c},nt.isSuspenseList=function(E){return x(E)===p},nt.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===r||E===i||E===c||E===p||E===g||typeof E=="object"&&E!==null&&(E.$$typeof===m||E.$$typeof===d||E.$$typeof===a||E.$$typeof===o||E.$$typeof===u||E.$$typeof===_||E.getModuleId!==void 0)},nt.typeOf=x,nt}var rt={};/**
|
|
45
|
+
* @license React
|
|
100
46
|
* react-is.development.js
|
|
101
47
|
*
|
|
102
48
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
103
49
|
*
|
|
104
50
|
* This source code is licensed under the MIT license found in the
|
|
105
51
|
* LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/return e.NODE_ENV!=="production"&&(function(){var t=60103,n=60106,r=60107,i=60108,a=60114,o=60109,u=60110,l=60112,c=60113,p=60120,f=60115,d=60116,g=60121,x=60122,w=60117,S=60129,b=60131;if(typeof Symbol=="function"&&Symbol.for){var k=Symbol.for;t=k("react.element"),n=k("react.portal"),r=k("react.fragment"),i=k("react.strict_mode"),a=k("react.profiler"),o=k("react.provider"),u=k("react.context"),l=k("react.forward_ref"),c=k("react.suspense"),p=k("react.suspense_list"),f=k("react.memo"),d=k("react.lazy"),g=k("react.block"),x=k("react.server.block"),w=k("react.fundamental"),k("react.scope"),k("react.opaque.id"),S=k("react.debug_trace_mode"),k("react.offscreen"),b=k("react.legacy_hidden")}var E=!1;function O(re){return!!(typeof re=="string"||typeof re=="function"||re===r||re===a||re===S||re===i||re===c||re===p||re===b||E||typeof re=="object"&&re!==null&&(re.$$typeof===d||re.$$typeof===f||re.$$typeof===o||re.$$typeof===u||re.$$typeof===l||re.$$typeof===w||re.$$typeof===g||re[0]===x))}function y(re){if(typeof re=="object"&&re!==null){var K=re.$$typeof;switch(K){case t:var Y=re.type;switch(Y){case r:case a:case i:case c:case p:return Y;default:var q=Y&&Y.$$typeof;switch(q){case u:case l:case d:case f:case o:return q;default:return K}}case n:return K}}}var m=u,_=o,V=t,M=l,P=r,j=d,W=f,$=n,se=a,Z=i,ne=c,ce=!1,de=!1;function xe(re){return ce||(ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(re){return de||(de=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(re){return y(re)===u}function ue(re){return y(re)===o}function T(re){return typeof re=="object"&&re!==null&&re.$$typeof===t}function me(re){return y(re)===l}function be(re){return y(re)===r}function Se(re){return y(re)===d}function J(re){return y(re)===f}function U(re){return y(re)===n}function Q(re){return y(re)===a}function ie(re){return y(re)===i}function oe(re){return y(re)===c}ct.ContextConsumer=m,ct.ContextProvider=_,ct.Element=V,ct.ForwardRef=M,ct.Fragment=P,ct.Lazy=j,ct.Memo=W,ct.Portal=$,ct.Profiler=se,ct.StrictMode=Z,ct.Suspense=ne,ct.isAsyncMode=xe,ct.isConcurrentMode=L,ct.isContextConsumer=G,ct.isContextProvider=ue,ct.isElement=T,ct.isForwardRef=me,ct.isFragment=be,ct.isLazy=Se,ct.isMemo=J,ct.isPortal=U,ct.isProfiler=Q,ct.isStrictMode=ie,ct.isSuspense=oe,ct.isValidElementType=O,ct.typeOf=y})(),ct}var Lf;function xk(){if(Lf)return ba.exports;Lf=1;var e={};return e.NODE_ENV==="production"?ba.exports=mk():ba.exports=gk(),ba.exports}var Vf=xk();function Df(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Ff(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function zo(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Ff(n.overflowY,t)||Ff(n.overflowX,t)||(function(r){var i=(function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1}function ya(e,t,n,r,i,a,o,u){return a<e&&o>t||a>e&&o<t?0:a<=e&&u<=n||o>=t&&u>=n?a-e-r:o>t&&u<n||a<e&&u>n?o-t+i:0}var vk=function(e,t){var n=window,r=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,o=typeof i=="function"?i:function(re){return re!==i};if(!Df(e))throw new TypeError("Invalid target");for(var u,l,c=document.scrollingElement||document.documentElement,p=[],f=e;Df(f)&&o(f);){if((f=(l=(u=f).parentElement)==null?u.getRootNode().host||null:l)===c){p.push(f);break}f!=null&&f===document.body&&zo(f)&&!zo(document.documentElement)||f!=null&&zo(f,a)&&p.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,x=window.scrollX||pageXOffset,w=window.scrollY||pageYOffset,S=e.getBoundingClientRect(),b=S.height,k=S.width,E=S.top,O=S.right,y=S.bottom,m=S.left,_=E,V=r==="center"?m+k/2:r==="end"?O:m,M=[],P=0;P<p.length;P++){var j=p[P],W=j.getBoundingClientRect(),$=W.height,se=W.width,Z=W.top,ne=W.right,ce=W.bottom,de=W.left;if(E>=0&&m>=0&&y<=g&&O<=d&&E>=Z&&y<=ce&&m>=de&&O<=ne)return M;var xe=getComputedStyle(j),L=parseInt(xe.borderLeftWidth,10),G=parseInt(xe.borderTopWidth,10),ue=parseInt(xe.borderRightWidth,10),T=parseInt(xe.borderBottomWidth,10),me=0,be=0,Se="offsetWidth"in j?j.offsetWidth-j.clientWidth-L-ue:0,J="offsetHeight"in j?j.offsetHeight-j.clientHeight-G-T:0,U="offsetWidth"in j?j.offsetWidth===0?0:se/j.offsetWidth:0,Q="offsetHeight"in j?j.offsetHeight===0?0:$/j.offsetHeight:0;if(c===j)me=ya(w,w+g,g,G,T,w+_,w+_+b,b),be=r==="start"?V:r==="center"?V-d/2:r==="end"?V-d:ya(x,x+d,d,L,ue,x+V,x+V+k,k),me=Math.max(0,me+w),be=Math.max(0,be+x);else{me=ya(Z,ce,$,G,T+J,_,_+b,b),be=r==="start"?V-de-L:r==="center"?V-(de+se/2)+Se/2:r==="end"?V-ne+ue+Se:ya(de,ne,se,L,ue+Se,V,V+k,k);var ie=j.scrollLeft,oe=j.scrollTop;_+=oe-(me=Math.max(0,Math.min(oe+me/Q,j.scrollHeight-$/Q+J))),V+=ie-(be=Math.max(0,Math.min(ie+be/U,j.scrollWidth-se/U+Se)))}M.push({el:j,top:me,left:be})}return M},Ie={};let bk=0;function Mf(e){return typeof e=="function"?e:Zt}function Zt(){}function om(e,t){if(!e)return;vk(e,{boundary:t}).forEach(r=>{let{el:i,top:a,left:o}=r;i.scrollTop=a,i.scrollLeft=o})}function jf(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function As(e,t){let n;function r(){n&&clearTimeout(n)}function i(){for(var a=arguments.length,o=new Array(a),u=0;u<a;u++)o[u]=arguments[u];r(),n=setTimeout(()=>{n=null,e(...o)},t)}return i.cancel=r,i}function mt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.some(u=>(u&&u(r,...a),r.preventDownshiftDefault||r.hasOwnProperty("nativeEvent")&&r.nativeEvent.preventDownshiftDefault))}}function Sn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r=>{t.forEach(i=>{typeof i=="function"?i(r):i&&(i.current=r)})}}function um(){return String(bk++)}function lm(e){let{isOpen:t,resultCount:n,previousResultCount:r}=e;return t?n?n!==r?`${n} result${n===1?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function Bf(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function cm(e){return typeof e.type=="string"}function fm(e){return e.props}function yk(e,t){console.error(`The property "${t}" is required in "${e}"`)}const wk=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function wa(e){e===void 0&&(e={});const t={};return wk.forEach(n=>{e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function yi(e,t){return Object.keys(e).reduce((n,r)=>(n[r]=Xa(t,r)?t[r]:e[r],n),{})}function Xa(e,t){return e[t]!==void 0}function wi(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&t.indexOf("Arrow")!==0?`Arrow${t}`:t}function Sk(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jn(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;const a=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:a+1);let o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);const u=Dn(e,o,n,r,i);return u===-1?t>=n?-1:t:u}function Dn(e,t,n,r,i){const a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(let o=t+1;o<n;o++)if(!r(o).hasAttribute("disabled"))return o}else for(let o=t-1;o>=0;o--)if(!r(o).hasAttribute("disabled"))return o;return i?e>0?Dn(1,0,n,r,!1):Dn(-1,n-1,n,r,!1):-1}function Qa(e,t,n,r){return r===void 0&&(r=!0),t.some(i=>i&&(jf(i,e,n)||r&&jf(i,n.document.activeElement,n)))}let fl=Zt;Ie.NODE_ENV!=="production"&&(fl=(e,t,n)=>{const r="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach(i=>{t[i]!==void 0&&n[i]===void 0?console.error(`downshift: A component has changed the controlled prop "${i}" to be uncontrolled. ${r}`):t[i]===void 0&&n[i]!==void 0&&console.error(`downshift: A component has changed the uncontrolled prop "${i}" to be controlled. ${r}`)})});const Ck=As(e=>{pm(e).textContent=""},500);function hm(e,t){const n=pm(t);e&&(n.textContent=e,Ck(t))}function pm(e){e===void 0&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}const dm=Ie.NODE_ENV!=="production"?"__autocomplete_unknown__":0,mm=Ie.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,gm=Ie.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,Va=Ie.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,Da=Ie.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,xm=Ie.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,vm=Ie.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,bm=Ie.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,ym=Ie.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,wm=Ie.NODE_ENV!=="production"?"__autocomplete_click_item__":9,Sm=Ie.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,Cm=Ie.NODE_ENV!=="production"?"__autocomplete_change_input__":11,km=Ie.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,bu=Ie.NODE_ENV!=="production"?"__autocomplete_click_button__":13,Em=Ie.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,_m=Ie.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,Im=Ie.NODE_ENV!=="production"?"__autocomplete_touchend__":16;var kk=Object.freeze({__proto__:null,unknown:dm,mouseUp:mm,itemMouseEnter:gm,keyDownArrowUp:Va,keyDownArrowDown:Da,keyDownEscape:xm,keyDownEnter:vm,keyDownHome:bm,keyDownEnd:ym,clickItem:wm,blurInput:Sm,changeInput:Cm,keyDownSpaceButton:km,clickButton:bu,blurButton:Em,controlledPropUpdatedSelectedItem:_m,touchEnd:Im});const Ek=(()=>{class e extends F.Component{constructor(n){var r;super(n),r=this,this.id=this.props.id||`downshift-${um()}`,this.menuId=this.props.menuId||`${this.id}-menu`,this.labelId=this.props.labelId||`${this.id}-label`,this.inputId=this.props.inputId||`${this.id}-input`,this.getItemId=this.props.getItemId||(f=>`${this.id}-item-${f}`),this.input=null,this.items=[],this.itemCount=null,this.previousResultCount=0,this.timeoutIds=[],this.internalSetTimeout=(f,d)=>{const g=setTimeout(()=>{this.timeoutIds=this.timeoutIds.filter(x=>x!==g),f()},d);this.timeoutIds.push(g)},this.setItemCount=f=>{this.itemCount=f},this.unsetItemCount=()=>{this.itemCount=null},this.setHighlightedIndex=function(f,d){f===void 0&&(f=r.props.defaultHighlightedIndex),d===void 0&&(d={}),d=wa(d),r.internalSetState({highlightedIndex:f,...d})},this.clearSelection=f=>{this.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:this.props.defaultHighlightedIndex,isOpen:this.props.defaultIsOpen},f)},this.selectItem=(f,d,g)=>{d=wa(d),this.internalSetState({isOpen:this.props.defaultIsOpen,highlightedIndex:this.props.defaultHighlightedIndex,selectedItem:f,inputValue:this.props.itemToString(f),...d},g)},this.selectItemAtIndex=(f,d,g)=>{const x=this.items[f];x!=null&&this.selectItem(x,d,g)},this.selectHighlightedItem=(f,d)=>this.selectItemAtIndex(this.getState().highlightedIndex,f,d),this.internalSetState=(f,d)=>{let g,x;const w={},S=typeof f=="function";return!S&&f.hasOwnProperty("inputValue")&&this.props.onInputValueChange(f.inputValue,{...this.getStateAndHelpers(),...f}),this.setState(b=>{b=this.getState(b);let k=S?f(b):f;k=this.props.stateReducer(b,k),g=k.hasOwnProperty("selectedItem");const E={};return g&&k.selectedItem!==b.selectedItem&&(x=k.selectedItem),k.type=k.type||dm,Object.keys(k).forEach(O=>{b[O]!==k[O]&&(w[O]=k[O]),O!=="type"&&(k[O],Xa(this.props,O)||(E[O]=k[O]))}),S&&k.hasOwnProperty("inputValue")&&this.props.onInputValueChange(k.inputValue,{...this.getStateAndHelpers(),...k}),E},()=>{Mf(d)(),Object.keys(w).length>1&&this.props.onStateChange(w,this.getStateAndHelpers()),g&&this.props.onSelect(f.selectedItem,this.getStateAndHelpers()),x!==void 0&&this.props.onChange(x,this.getStateAndHelpers()),this.props.onUserAction(w,this.getStateAndHelpers())})},this.rootRef=f=>this._rootNode=f,this.getRootProps=function(f,d){let{refKey:g="ref",ref:x,...w}=f===void 0?{}:f,{suppressRefError:S=!1}=d===void 0?{}:d;r.getRootProps.called=!0,r.getRootProps.refKey=g,r.getRootProps.suppressRefError=S;const{isOpen:b}=r.getState();return{[g]:Sn(x,r.rootRef),role:"combobox","aria-expanded":b,"aria-haspopup":"listbox","aria-owns":b?r.menuId:null,"aria-labelledby":r.labelId,...w}},this.keyDownHandlers={ArrowDown(f){if(f.preventDefault(),this.getState().isOpen){const d=f.shiftKey?5:1;this.moveHighlightedIndex(d,{type:Da})}else this.internalSetState({isOpen:!0,type:Da},()=>{const d=this.getItemCount();if(d>0){const{highlightedIndex:g}=this.getState(),x=Jn(1,g,d,w=>this.getItemNodeFromIndex(w));this.setHighlightedIndex(x,{type:Da})}})},ArrowUp(f){if(f.preventDefault(),this.getState().isOpen){const d=f.shiftKey?-5:-1;this.moveHighlightedIndex(d,{type:Va})}else this.internalSetState({isOpen:!0,type:Va},()=>{const d=this.getItemCount();if(d>0){const{highlightedIndex:g}=this.getState(),x=Jn(-1,g,d,w=>this.getItemNodeFromIndex(w));this.setHighlightedIndex(x,{type:Va})}})},Enter(f){if(f.which===229)return;const{isOpen:d,highlightedIndex:g}=this.getState();if(d&&g!=null){f.preventDefault();const x=this.items[g],w=this.getItemNodeFromIndex(g);if(x==null||w&&w.hasAttribute("disabled"))return;this.selectHighlightedItem({type:vm})}},Escape(f){f.preventDefault(),this.reset({type:xm,...!this.state.isOpen&&{selectedItem:null,inputValue:""}})}},this.buttonKeyDownHandlers={...this.keyDownHandlers," "(f){f.preventDefault(),this.toggleMenu({type:km})}},this.inputKeyDownHandlers={...this.keyDownHandlers,Home(f){const{isOpen:d}=this.getState();if(!d)return;f.preventDefault();const g=this.getItemCount();if(g<=0||!d)return;const x=Dn(1,0,g,w=>this.getItemNodeFromIndex(w),!1);this.setHighlightedIndex(x,{type:bm})},End(f){const{isOpen:d}=this.getState();if(!d)return;f.preventDefault();const g=this.getItemCount();if(g<=0||!d)return;const x=Dn(-1,g-1,g,w=>this.getItemNodeFromIndex(w),!1);this.setHighlightedIndex(x,{type:ym})}},this.getToggleButtonProps=function(f){let{onClick:d,onPress:g,onKeyDown:x,onKeyUp:w,onBlur:S,...b}=f===void 0?{}:f;const{isOpen:k}=r.getState(),E={onClick:mt(d,r.buttonHandleClick),onKeyDown:mt(x,r.buttonHandleKeyDown),onKeyUp:mt(w,r.buttonHandleKeyUp),onBlur:mt(S,r.buttonHandleBlur)},O=b.disabled?{}:E;return{type:"button",role:"button","aria-label":k?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0,...O,...b}},this.buttonHandleKeyUp=f=>{f.preventDefault()},this.buttonHandleKeyDown=f=>{const d=wi(f);this.buttonKeyDownHandlers[d]&&this.buttonKeyDownHandlers[d].call(this,f)},this.buttonHandleClick=f=>{f.preventDefault(),this.props.environment.document.activeElement===this.props.environment.document.body&&f.target.focus(),Ie.NODE_ENV==="test"?this.toggleMenu({type:bu}):this.internalSetTimeout(()=>this.toggleMenu({type:bu}))},this.buttonHandleBlur=f=>{const d=f.target;this.internalSetTimeout(()=>{!this.isMouseDown&&(this.props.environment.document.activeElement==null||this.props.environment.document.activeElement.id!==this.inputId)&&this.props.environment.document.activeElement!==d&&this.reset({type:Em})})},this.getLabelProps=f=>({htmlFor:this.inputId,id:this.labelId,...f}),this.getInputProps=function(f){let{onKeyDown:d,onBlur:g,onChange:x,onInput:w,onChangeText:S,...b}=f===void 0?{}:f,k,E={};k="onChange";const{inputValue:O,isOpen:y,highlightedIndex:m}=r.getState();return b.disabled||(E={[k]:mt(x,w,r.inputHandleChange),onKeyDown:mt(d,r.inputHandleKeyDown),onBlur:mt(g,r.inputHandleBlur)}),{"aria-autocomplete":"list","aria-activedescendant":y&&typeof m=="number"&&m>=0?r.getItemId(m):null,"aria-controls":y?r.menuId:null,"aria-labelledby":r.labelId,autoComplete:"off",value:O,id:r.inputId,...E,...b}},this.inputHandleKeyDown=f=>{const d=wi(f);d&&this.inputKeyDownHandlers[d]&&this.inputKeyDownHandlers[d].call(this,f)},this.inputHandleChange=f=>{this.internalSetState({type:Cm,isOpen:!0,inputValue:f.target.value,highlightedIndex:this.props.defaultHighlightedIndex})},this.inputHandleBlur=()=>{this.internalSetTimeout(()=>{const f=this.props.environment.document&&!!this.props.environment.document.activeElement&&!!this.props.environment.document.activeElement.dataset&&this.props.environment.document.activeElement.dataset.toggle&&this._rootNode&&this._rootNode.contains(this.props.environment.document.activeElement);!this.isMouseDown&&!f&&this.reset({type:Sm})})},this.menuRef=f=>{this._menuNode=f},this.getMenuProps=function(f,d){let{refKey:g="ref",ref:x,...w}=f===void 0?{}:f,{suppressRefError:S=!1}=d===void 0?{}:d;return r.getMenuProps.called=!0,r.getMenuProps.refKey=g,r.getMenuProps.suppressRefError=S,{[g]:Sn(x,r.menuRef),role:"listbox","aria-labelledby":w&&w["aria-label"]?null:r.labelId,id:r.menuId,...w}},this.getItemProps=function(f){let{onMouseMove:d,onMouseDown:g,onClick:x,onPress:w,index:S,item:b=Ie.NODE_ENV==="production"?void 0:yk("getItemProps","item"),...k}=f===void 0?{}:f;S===void 0?(r.items.push(b),S=r.items.indexOf(b)):r.items[S]=b;const E="onClick",O=x,y={onMouseMove:mt(d,()=>{S!==r.getState().highlightedIndex&&(r.setHighlightedIndex(S,{type:gm}),r.avoidScrolling=!0,r.internalSetTimeout(()=>r.avoidScrolling=!1,250))}),onMouseDown:mt(g,_=>{_.preventDefault()}),[E]:mt(O,()=>{r.selectItemAtIndex(S,{type:wm})})},m=k.disabled?{onMouseDown:y.onMouseDown}:y;return{id:r.getItemId(S),role:"option","aria-selected":r.getState().highlightedIndex===S,...m,...k}},this.clearItems=()=>{this.items=[]},this.reset=function(f,d){f===void 0&&(f={}),f=wa(f),r.internalSetState(g=>{let{selectedItem:x}=g;return{isOpen:r.props.defaultIsOpen,highlightedIndex:r.props.defaultHighlightedIndex,inputValue:r.props.itemToString(x),...f}},d)},this.toggleMenu=function(f,d){f===void 0&&(f={}),f=wa(f),r.internalSetState(g=>{let{isOpen:x}=g;return{isOpen:!x,...x&&{highlightedIndex:r.props.defaultHighlightedIndex},...f}},()=>{const{isOpen:g,highlightedIndex:x}=r.getState();g&&r.getItemCount()>0&&typeof x=="number"&&r.setHighlightedIndex(x,f),Mf(d)()})},this.openMenu=f=>{this.internalSetState({isOpen:!0},f)},this.closeMenu=f=>{this.internalSetState({isOpen:!1},f)},this.updateStatus=As(()=>{const f=this.getState(),d=this.items[f.highlightedIndex],g=this.getItemCount(),x=this.props.getA11yStatusMessage({itemToString:this.props.itemToString,previousResultCount:this.previousResultCount,resultCount:g,highlightedItem:d,...f});this.previousResultCount=g,hm(x,this.props.environment.document)},200);const{defaultHighlightedIndex:i,initialHighlightedIndex:a=i,defaultIsOpen:o,initialIsOpen:u=o,initialInputValue:l="",initialSelectedItem:c=null}=this.props,p=this.getState({highlightedIndex:a,isOpen:u,inputValue:l,selectedItem:c});p.selectedItem!=null&&this.props.initialInputValue===void 0&&(p.inputValue=this.props.itemToString(p.selectedItem)),this.state=p}internalClearTimeouts(){this.timeoutIds.forEach(n=>{clearTimeout(n)}),this.timeoutIds=[]}getState(n){return n===void 0&&(n=this.state),yi(n,this.props)}getItemCount(){let n=this.items.length;return this.itemCount!=null?n=this.itemCount:this.props.itemCount!==void 0&&(n=this.props.itemCount),n}getItemNodeFromIndex(n){return this.props.environment.document.getElementById(this.getItemId(n))}scrollHighlightedItemIntoView(){{const n=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(n,this._menuNode)}}moveHighlightedIndex(n,r){const i=this.getItemCount(),{highlightedIndex:a}=this.getState();if(i>0){const o=Jn(n,a,i,u=>this.getItemNodeFromIndex(u));this.setHighlightedIndex(o,r)}}getStateAndHelpers(){const{highlightedIndex:n,inputValue:r,selectedItem:i,isOpen:a}=this.getState(),{itemToString:o}=this.props,{id:u}=this,{getRootProps:l,getToggleButtonProps:c,getLabelProps:p,getMenuProps:f,getInputProps:d,getItemProps:g,openMenu:x,closeMenu:w,toggleMenu:S,selectItem:b,selectItemAtIndex:k,selectHighlightedItem:E,setHighlightedIndex:O,clearSelection:y,clearItems:m,reset:_,setItemCount:V,unsetItemCount:M,internalSetState:P}=this;return{getRootProps:l,getToggleButtonProps:c,getLabelProps:p,getMenuProps:f,getInputProps:d,getItemProps:g,reset:_,openMenu:x,closeMenu:w,toggleMenu:S,selectItem:b,selectItemAtIndex:k,selectHighlightedItem:E,setHighlightedIndex:O,clearSelection:y,clearItems:m,setItemCount:V,unsetItemCount:M,setState:P,itemToString:o,id:u,highlightedIndex:n,inputValue:r,isOpen:a,selectedItem:i}}componentDidMount(){Ie.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&zf(this._menuNode,this.getMenuProps);{const n=()=>{this.isMouseDown=!0},r=l=>{this.isMouseDown=!1,!Qa(l.target,[this._rootNode,this._menuNode],this.props.environment)&&this.getState().isOpen&&this.reset({type:mm},()=>this.props.onOuterClick(this.getStateAndHelpers()))},i=()=>{this.isTouchMove=!1},a=()=>{this.isTouchMove=!0},o=l=>{const c=Qa(l.target,[this._rootNode,this._menuNode],this.props.environment,!1);!this.isTouchMove&&!c&&this.getState().isOpen&&this.reset({type:Im},()=>this.props.onOuterClick(this.getStateAndHelpers()))},{environment:u}=this.props;u.addEventListener("mousedown",n),u.addEventListener("mouseup",r),u.addEventListener("touchstart",i),u.addEventListener("touchmove",a),u.addEventListener("touchend",o),this.cleanup=()=>{this.internalClearTimeouts(),this.updateStatus.cancel(),u.removeEventListener("mousedown",n),u.removeEventListener("mouseup",r),u.removeEventListener("touchstart",i),u.removeEventListener("touchmove",a),u.removeEventListener("touchend",o)}}}shouldScroll(n,r){const{highlightedIndex:i}=this.props.highlightedIndex===void 0?this.getState():this.props,{highlightedIndex:a}=r.highlightedIndex===void 0?n:r;return i&&this.getState().isOpen&&!n.isOpen||i!==a}componentDidUpdate(n,r){Ie.NODE_ENV!=="production"&&(fl(this.state,n,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&zf(this._menuNode,this.getMenuProps)),Xa(this.props,"selectedItem")&&this.props.selectedItemChanged(n.selectedItem,this.props.selectedItem)&&this.internalSetState({type:_m,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(r,n)&&this.scrollHighlightedItemIntoView(),this.updateStatus()}componentWillUnmount(){this.cleanup()}render(){const n=Bf(this.props.children,Zt);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;const r=Bf(n(this.getStateAndHelpers()));if(!r)return null;if(this.getRootProps.called||this.props.suppressRefError)return Ie.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&_k(r,this.getRootProps),r;if(cm(r))return F.cloneElement(r,this.getRootProps(fm(r)));if(Ie.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")}}return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:lm,itemToString:t=>t==null?"":(Ie.NODE_ENV!=="production"&&Sk(t)&&!t.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",t),String(t)),onStateChange:Zt,onInputValueChange:Zt,onUserAction:Zt,onChange:Zt,onSelect:Zt,onOuterClick:Zt,selectedItemChanged:(t,n)=>t!==n,environment:typeof window>"u"?{}:window,stateReducer:(t,n)=>n,suppressRefError:!1,scrollIntoView:om},e.stateChangeTypes=kk,e})();Ie.NODE_ENV!=="production"&&(Ek.propTypes={children:fe.func,defaultHighlightedIndex:fe.number,defaultIsOpen:fe.bool,initialHighlightedIndex:fe.number,initialSelectedItem:fe.any,initialInputValue:fe.string,initialIsOpen:fe.bool,getA11yStatusMessage:fe.func,itemToString:fe.func,onChange:fe.func,onSelect:fe.func,onStateChange:fe.func,onInputValueChange:fe.func,onUserAction:fe.func,onOuterClick:fe.func,selectedItemChanged:fe.func,stateReducer:fe.func,itemCount:fe.number,id:fe.string,environment:fe.shape({addEventListener:fe.func,removeEventListener:fe.func,document:fe.shape({getElementById:fe.func,activeElement:fe.any,body:fe.any})}),suppressRefError:fe.bool,scrollIntoView:fe.func,selectedItem:fe.any,isOpen:fe.bool,inputValue:fe.string,highlightedIndex:fe.number,labelId:fe.string,inputId:fe.string,menuId:fe.string,getItemId:fe.func});function zf(e,t){let{refKey:n}=t;e||console.error(`downshift: The ref prop "${n}" from getMenuProps was not applied correctly on your menu element.`)}function _k(e,t){let{refKey:n}=t;const r=n!=="ref",i=!cm(e);i&&!r&&!Vf.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!i&&r&&console.error(`downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "${n}"`),!Vf.isForwardRef(e)&&!fm(e)[n]&&console.error(`downshift: You must apply the ref prop "${n}" from getRootProps onto your root element.`)}const Tm={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Ik(e,t,n){const{props:r,type:i}=e,a={};Object.keys(t).forEach(o=>{Tk(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange({type:i,...a})}function Tk(e,t,n,r){const{props:i,type:a}=t,o=`on${hl(e)}Change`;i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o]({type:a,...r})}function Ak(e,t){return t.changes}function Pk(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""}const Nk=As((e,t)=>{hm(e(),t)},200),Rk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?F.useLayoutEffect:F.useEffect;function Am(e){let{id:t=`downshift-${um()}`,labelId:n,menuId:r,getItemId:i,toggleButtonId:a,inputId:o}=e;return F.useRef({labelId:n||`${t}-label`,menuId:r||`${t}-menu`,getItemId:i||(l=>`${t}-item-${l}`),toggleButtonId:a||`${t}-toggle-button`,inputId:o||`${t}-input`}).current}function Pm(e,t,n){return e!==void 0?e:n.length===0?-1:n.indexOf(t)}function Ok(e){return e?String(e):""}function $f(e){return/^\S{1}$/.test(e)}function hl(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function pl(e){const t=F.useRef(e);return t.current=e,t}function Nm(e,t,n){const r=F.useRef(),i=F.useRef(),a=F.useCallback((f,d)=>{i.current=d,f=yi(f,d.props);const g=e(f,d);return d.props.stateReducer(f,{...d,changes:g})},[e]),[o,u]=F.useReducer(a,t),l=pl(n),c=F.useCallback(f=>u({props:l.current,...f}),[l]),p=i.current;return F.useEffect(()=>{p&&r.current&&r.current!==o&&Ik(p,yi(r.current,p.props),o),r.current=o},[o,n,p]),[o,c]}function Lk(e,t,n){const[r,i]=Nm(e,t,n);return[yi(r,n),i]}const li={itemToString:Ok,stateReducer:Ak,getA11ySelectionMessage:Pk,scrollIntoView:om,circularNavigation:!1,environment:typeof window>"u"?{}:window};function Wt(e,t,n){n===void 0&&(n=Tm);const r=e[`default${hl(t)}`];return r!==void 0?r:n[t]}function Sa(e,t,n){n===void 0&&(n=Tm);const r=e[t];if(r!==void 0)return r;const i=e[`initial${hl(t)}`];return i!==void 0?i:Wt(e,t,n)}function Rm(e){const t=Sa(e,"selectedItem"),n=Sa(e,"isOpen"),r=Sa(e,"highlightedIndex"),i=Sa(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Br(e,t,n,r){const{items:i,initialHighlightedIndex:a,defaultHighlightedIndex:o}=e,{selectedItem:u,highlightedIndex:l}=t;return i.length===0?-1:a!==void 0&&l===a?a:o!==void 0?o:u?n===0?i.indexOf(u):Jn(n,i.indexOf(u),i.length,r,!1):n===0?-1:n<0?i.length-1:0}function Om(e,t,n,r){const i=F.useRef({isMouseDown:!1,isTouchMove:!1});return F.useEffect(()=>{const a=()=>{i.current.isMouseDown=!0},o=p=>{i.current.isMouseDown=!1,e&&!Qa(p.target,t.map(f=>f.current),n)&&r()},u=()=>{i.current.isTouchMove=!1},l=()=>{i.current.isTouchMove=!0},c=p=>{e&&!i.current.isTouchMove&&!Qa(p.target,t.map(f=>f.current),n,!1)&&r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",o),n.addEventListener("touchstart",u),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",u),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}},[e,n]),i}let dl=()=>Zt;Ie.NODE_ENV!=="production"&&(dl=function(){const e=F.useRef(!0);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=F.useRef(n.reduce((o,u)=>(o[u]={},o),{}));return F.useEffect(()=>{Object.keys(i.current).forEach(o=>{const u=i.current[o];if(e.current&&!Object.keys(u).length){console.error(`downshift: You forgot to call the ${o} getter function on your component / element.`);return}const{suppressRefError:l,refKey:c,elementRef:p}=u;(!p||!p.current)&&!l&&console.error(`downshift: The ref prop "${c}" from ${o} was not applied correctly on your element.`)}),e.current=!1}),F.useCallback((o,u,l,c)=>{i.current[o]={suppressRefError:u,refKey:l,elementRef:c}},[])});function Za(e,t,n){let{isInitialMount:r,highlightedIndex:i,items:a,environment:o,...u}=n;F.useEffect(()=>{r||Nk(()=>e({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length,...u}),o.document)},t)}function Lm(e){let{highlightedIndex:t,isOpen:n,itemRefs:r,getItemNodeFromIndex:i,menuElement:a,scrollIntoView:o}=e;const u=F.useRef(!0);return Rk(()=>{t<0||!n||!Object.keys(r.current).length||(u.current===!1?u.current=!0:o(i(t),a))},[t]),u}let ml=Zt;Ie.NODE_ENV!=="production"&&(ml=e=>{let{isInitialMount:t,props:n,state:r}=e;const i=F.useRef(n);F.useEffect(()=>{t||(fl(r,i.current,n),i.current=n)},[r,n,t])});function Vm(e,t,n){const{type:r,props:i}=t;let a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Br(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Br(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:Wt(i,"highlightedIndex"),isOpen:Wt(i,"isOpen"),selectedItem:Wt(i,"selectedItem"),inputValue:Wt(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...a}}function Hf(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,a=e.getItemNodeFromIndex,o=t.toLowerCase(),u=0;u<r.length;u++){var l=(u+n+1)%r.length,c=r[l];if(c!==void 0&&i(c).toLowerCase().startsWith(o)){var p=a(l);if(!(p!=null&&p.hasAttribute("disabled")))return l}}return n}var Vk={items:fe.array.isRequired,itemToString:fe.func,getA11yStatusMessage:fe.func,getA11ySelectionMessage:fe.func,circularNavigation:fe.bool,highlightedIndex:fe.number,defaultHighlightedIndex:fe.number,initialHighlightedIndex:fe.number,isOpen:fe.bool,defaultIsOpen:fe.bool,initialIsOpen:fe.bool,selectedItem:fe.any,initialSelectedItem:fe.any,defaultSelectedItem:fe.any,id:fe.string,labelId:fe.string,menuId:fe.string,getItemId:fe.func,toggleButtonId:fe.string,stateReducer:fe.func,onSelectedItemChange:fe.func,onHighlightedIndexChange:fe.func,onStateChange:fe.func,onIsOpenChange:fe.func,environment:fe.shape({addEventListener:fe.func,removeEventListener:fe.func,document:fe.shape({getElementById:fe.func,activeElement:fe.any,body:fe.any})})};function Dk(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}var Fk=pe(pe({},li),{getA11yStatusMessage:Dk}),Dm=Zt;Ie.NODE_ENV!=="production"&&(Dm=function(e,t){fe.checkPropTypes(Vk,e,"prop",t.name)});const gl=Ie.NODE_ENV!=="production"?"__menu_keydown_arrow_down__":0,xl=Ie.NODE_ENV!=="production"?"__menu_keydown_arrow_up__":1,vl=Ie.NODE_ENV!=="production"?"__menu_keydown_escape__":2,bl=Ie.NODE_ENV!=="production"?"__menu_keydown_home__":3,yl=Ie.NODE_ENV!=="production"?"__menu_keydown_end__":4,wl=Ie.NODE_ENV!=="production"?"__menu_keydown_enter__":5,Sl=Ie.NODE_ENV!=="production"?"__menu_keydown_space_button__":6,Cl=Ie.NODE_ENV!=="production"?"__menu_keydown_character__":7,es=Ie.NODE_ENV!=="production"?"__menu_blur__":8,Fm=Ie.NODE_ENV!=="production"?"__menu_mouse_leave__":9,Mm=Ie.NODE_ENV!=="production"?"__item_mouse_move__":10,kl=Ie.NODE_ENV!=="production"?"__item_click__":11,jm=Ie.NODE_ENV!=="production"?"__togglebutton_click__":12,El=Ie.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_down__":13,_l=Ie.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_up__":14,Il=Ie.NODE_ENV!=="production"?"__togglebutton_keydown_character__":15,Bm=Ie.NODE_ENV!=="production"?"__function_toggle_menu__":16,zm=Ie.NODE_ENV!=="production"?"__function_open_menu__":17,$m=Ie.NODE_ENV!=="production"?"__function_close_menu__":18,Hm=Ie.NODE_ENV!=="production"?"__function_set_highlighted_index__":19,Tl=Ie.NODE_ENV!=="production"?"__function_select_item__":20,yu=Ie.NODE_ENV!=="production"?"__function_set_input_value__":21,Um=Ie.NODE_ENV!=="production"?"__function_reset__":22;var qm=Object.freeze({__proto__:null,MenuKeyDownArrowDown:gl,MenuKeyDownArrowUp:xl,MenuKeyDownEscape:vl,MenuKeyDownHome:bl,MenuKeyDownEnd:yl,MenuKeyDownEnter:wl,MenuKeyDownSpaceButton:Sl,MenuKeyDownCharacter:Cl,MenuBlur:es,MenuMouseLeave:Fm,ItemMouseMove:Mm,ItemClick:kl,ToggleButtonClick:jm,ToggleButtonKeyDownArrowDown:El,ToggleButtonKeyDownArrowUp:_l,ToggleButtonKeyDownCharacter:Il,FunctionToggleMenu:Bm,FunctionOpenMenu:zm,FunctionCloseMenu:$m,FunctionSetHighlightedIndex:Hm,FunctionSelectItem:Tl,FunctionSetInputValue:yu,FunctionReset:Um});function Mk(e,t){const{type:n,props:r,shiftKey:i}=t;let a;switch(n){case kl:a={isOpen:Wt(r,"isOpen"),highlightedIndex:Wt(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case Il:{const o=t.key,u=`${e.inputValue}${o}`,l=Hf({keysSoFar:u,highlightedIndex:e.selectedItem?r.items.indexOf(e.selectedItem):-1,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});a={inputValue:u,...l>=0&&{selectedItem:r.items[l]}}}break;case El:a={highlightedIndex:Br(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case _l:a={highlightedIndex:Br(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case wl:case Sl:a={isOpen:Wt(r,"isOpen"),highlightedIndex:Wt(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case bl:a={highlightedIndex:Dn(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case yl:a={highlightedIndex:Dn(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case vl:a={isOpen:!1,highlightedIndex:-1};break;case es:a={isOpen:!1,highlightedIndex:-1};break;case Cl:{const o=t.key,u=`${e.inputValue}${o}`,l=Hf({keysSoFar:u,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});a={inputValue:u,...l>=0&&{highlightedIndex:l}}}break;case gl:a={highlightedIndex:Jn(i?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case xl:a={highlightedIndex:Jn(i?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case Tl:a={selectedItem:t.selectedItem};break;default:return Vm(e,t,qm)}return{...e,...a}}Al.stateChangeTypes=qm;function Al(e){e===void 0&&(e={}),Dm(e,Al);const t={...Fk,...e},{items:n,scrollIntoView:r,environment:i,initialIsOpen:a,defaultIsOpen:o,itemToString:u,getA11ySelectionMessage:l,getA11yStatusMessage:c}=t,p=Rm(t),[f,d]=Lk(Mk,p,t),{isOpen:g,highlightedIndex:x,selectedItem:w,inputValue:S}=f,b=F.useRef(null),k=F.useRef(null),E=F.useRef({}),O=F.useRef(!0),y=F.useRef(null),m=Am(t),_=F.useRef(),V=F.useRef(!0),M=pl({state:f,props:t}),P=F.useCallback(J=>E.current[m.getItemId(J)],[m]);Za(c,[g,x,S,n],{isInitialMount:V.current,previousResultCount:_.current,items:n,environment:i,itemToString:u,...f}),Za(l,[w],{isInitialMount:V.current,previousResultCount:_.current,items:n,environment:i,itemToString:u,...f});const j=Lm({menuElement:k.current,highlightedIndex:x,isOpen:g,itemRefs:E,scrollIntoView:r,getItemNodeFromIndex:P});F.useEffect(()=>(y.current=As(J=>{J({type:yu,inputValue:""})},500),()=>{y.current.cancel()}),[]),F.useEffect(()=>{S&&y.current(d)},[d,S]),ml({isInitialMount:V.current,props:t,state:f}),F.useEffect(()=>{if(V.current){(a||o||g)&&k.current&&k.current.focus();return}if(g){k.current&&k.current.focus();return}i.document.activeElement===k.current&&b.current&&(O.current=!1,b.current.focus())},[g]),F.useEffect(()=>{V.current||(_.current=n.length)});const W=Om(g,[k,b],i,()=>{d({type:es})}),$=dl("getMenuProps","getToggleButtonProps");F.useEffect(()=>{V.current=!1},[]),F.useEffect(()=>{g||(E.current={})},[g]);const se=F.useMemo(()=>({ArrowDown(J){J.preventDefault(),d({type:El,getItemNodeFromIndex:P,shiftKey:J.shiftKey})},ArrowUp(J){J.preventDefault(),d({type:_l,getItemNodeFromIndex:P,shiftKey:J.shiftKey})}}),[d,P]),Z=F.useMemo(()=>({ArrowDown(J){J.preventDefault(),d({type:gl,getItemNodeFromIndex:P,shiftKey:J.shiftKey})},ArrowUp(J){J.preventDefault(),d({type:xl,getItemNodeFromIndex:P,shiftKey:J.shiftKey})},Home(J){J.preventDefault(),d({type:bl,getItemNodeFromIndex:P})},End(J){J.preventDefault(),d({type:yl,getItemNodeFromIndex:P})},Escape(){d({type:vl})},Enter(J){J.preventDefault(),d({type:wl})}," "(J){J.preventDefault(),d({type:Sl})}}),[d,P]),ne=F.useCallback(()=>{d({type:Bm})},[d]),ce=F.useCallback(()=>{d({type:$m})},[d]),de=F.useCallback(()=>{d({type:zm})},[d]),xe=F.useCallback(J=>{d({type:Hm,highlightedIndex:J})},[d]),L=F.useCallback(J=>{d({type:Tl,selectedItem:J})},[d]),G=F.useCallback(()=>{d({type:Um})},[d]),ue=F.useCallback(J=>{d({type:yu,inputValue:J})},[d]),T=F.useCallback(J=>({id:m.labelId,htmlFor:m.toggleButtonId,...J}),[m]),me=F.useCallback(function(J,U){let{onMouseLeave:Q,refKey:ie="ref",onKeyDown:oe,onBlur:re,ref:K,...Y}=J===void 0?{}:J,{suppressRefError:q=!1}=U===void 0?{}:U;const ee=M.current.state,he=Te=>{const Fe=wi(Te);Fe&&Z[Fe]?Z[Fe](Te):$f(Fe)&&d({type:Cl,key:Fe,getItemNodeFromIndex:P})},Ce=()=>{if(O.current===!1){O.current=!0;return}!W.current.isMouseDown&&d({type:es})},Ee=()=>{d({type:Fm})};return $("getMenuProps",q,ie,k),{[ie]:Sn(K,Te=>{k.current=Te}),id:m.menuId,role:"listbox","aria-labelledby":m.labelId,tabIndex:-1,...ee.isOpen&&ee.highlightedIndex>-1&&{"aria-activedescendant":m.getItemId(ee.highlightedIndex)},onMouseLeave:mt(Q,Ee),onKeyDown:mt(oe,he),onBlur:mt(re,Ce),...Y}},[d,M,Z,W,$,m,P]),be=F.useCallback(function(J,U){let{onClick:Q,onKeyDown:ie,refKey:oe="ref",ref:re,...K}=J===void 0?{}:J,{suppressRefError:Y=!1}=U===void 0?{}:U;const q=()=>{d({type:jm})},ee=Ce=>{const Ee=wi(Ce);Ee&&se[Ee]?se[Ee](Ce):$f(Ee)&&d({type:Il,key:Ee,getItemNodeFromIndex:P})},he={[oe]:Sn(re,Ce=>{b.current=Ce}),id:m.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":M.current.state.isOpen,"aria-labelledby":`${m.labelId} ${m.toggleButtonId}`,...K};return K.disabled||(he.onClick=mt(Q,q),he.onKeyDown=mt(ie,ee)),$("getToggleButtonProps",Y,oe,b),he},[d,M,se,$,m,P]),Se=F.useCallback(function(J){let{item:U,index:Q,onMouseMove:ie,onClick:oe,refKey:re="ref",ref:K,disabled:Y,...q}=J===void 0?{}:J;const{state:ee,props:he}=M.current,Ce=()=>{Q!==ee.highlightedIndex&&(j.current=!1,d({type:Mm,index:Q,disabled:Y}))},Ee=()=>{d({type:kl,index:Q})},Te=Pm(Q,U,he.items);if(Te<0)throw new Error("Pass either item or item index in getItemProps!");const Fe={disabled:Y,role:"option","aria-selected":`${Te===ee.highlightedIndex}`,id:m.getItemId(Te),[re]:Sn(K,ye=>{ye&&(E.current[m.getItemId(Te)]=ye)}),...q};return Y||(Fe.onClick=mt(oe,Ee)),Fe.onMouseMove=mt(ie,Ce),Fe},[d,M,j,m]);return{getToggleButtonProps:be,getLabelProps:T,getMenuProps:me,getItemProps:Se,toggleMenu:ne,openMenu:de,closeMenu:ce,setHighlightedIndex:xe,selectItem:L,reset:G,setInputValue:ue,highlightedIndex:x,isOpen:g,selectedItem:w,inputValue:S}}const Pl=Ie.NODE_ENV!=="production"?"__input_keydown_arrow_down__":0,Nl=Ie.NODE_ENV!=="production"?"__input_keydown_arrow_up__":1,Rl=Ie.NODE_ENV!=="production"?"__input_keydown_escape__":2,Ol=Ie.NODE_ENV!=="production"?"__input_keydown_home__":3,Ll=Ie.NODE_ENV!=="production"?"__input_keydown_end__":4,Vl=Ie.NODE_ENV!=="production"?"__input_keydown_enter__":5,Dl=Ie.NODE_ENV!=="production"?"__input_change__":6,ts=Ie.NODE_ENV!=="production"?"__input_blur__":7,Wm=Ie.NODE_ENV!=="production"?"__menu_mouse_leave__":8,Km=Ie.NODE_ENV!=="production"?"__item_mouse_move__":9,Fl=Ie.NODE_ENV!=="production"?"__item_click__":10,Jm=Ie.NODE_ENV!=="production"?"__togglebutton_click__":11,Gm=Ie.NODE_ENV!=="production"?"__function_toggle_menu__":12,Ym=Ie.NODE_ENV!=="production"?"__function_open_menu__":13,Xm=Ie.NODE_ENV!=="production"?"__function_close_menu__":14,Qm=Ie.NODE_ENV!=="production"?"__function_set_highlighted_index__":15,Ml=Ie.NODE_ENV!=="production"?"__function_select_item__":16,Zm=Ie.NODE_ENV!=="production"?"__function_set_input_value__":17,eg=Ie.NODE_ENV!=="production"?"__function_reset__":18,jl=Ie.NODE_ENV!=="production"?"__controlled_prop_updated_selected_item__":19;var tg=Object.freeze({__proto__:null,InputKeyDownArrowDown:Pl,InputKeyDownArrowUp:Nl,InputKeyDownEscape:Rl,InputKeyDownHome:Ol,InputKeyDownEnd:Ll,InputKeyDownEnter:Vl,InputChange:Dl,InputBlur:ts,MenuMouseLeave:Wm,ItemMouseMove:Km,ItemClick:Fl,ToggleButtonClick:Jm,FunctionToggleMenu:Gm,FunctionOpenMenu:Ym,FunctionCloseMenu:Xm,FunctionSetHighlightedIndex:Qm,FunctionSelectItem:Ml,FunctionSetInputValue:Zm,FunctionReset:eg,ControlledPropUpdatedSelectedItem:jl});function jk(e){const t=Rm(e),{selectedItem:n}=t;let{inputValue:r}=t;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),{...t,inputValue:r}}const Bk={items:fe.array.isRequired,itemToString:fe.func,getA11yStatusMessage:fe.func,getA11ySelectionMessage:fe.func,circularNavigation:fe.bool,highlightedIndex:fe.number,defaultHighlightedIndex:fe.number,initialHighlightedIndex:fe.number,isOpen:fe.bool,defaultIsOpen:fe.bool,initialIsOpen:fe.bool,selectedItem:fe.any,initialSelectedItem:fe.any,defaultSelectedItem:fe.any,inputValue:fe.string,defaultInputValue:fe.string,initialInputValue:fe.string,id:fe.string,labelId:fe.string,menuId:fe.string,getItemId:fe.func,inputId:fe.string,toggleButtonId:fe.string,stateReducer:fe.func,onSelectedItemChange:fe.func,onHighlightedIndexChange:fe.func,onStateChange:fe.func,onIsOpenChange:fe.func,onInputValueChange:fe.func,environment:fe.shape({addEventListener:fe.func,removeEventListener:fe.func,document:fe.shape({getElementById:fe.func,activeElement:fe.any,body:fe.any})})};function zk(e,t,n){const r=F.useRef(),[i,a]=Nm(e,t,n);return F.useEffect(()=>{Xa(n,"selectedItem")&&(r.current!==n.selectedItem&&a({type:jl,inputValue:n.itemToString(n.selectedItem)}),r.current=i.selectedItem===r.current?n.selectedItem:i.selectedItem)}),[yi(i,n),a]}let ng=Zt;Ie.NODE_ENV!=="production"&&(ng=(e,t)=>{fe.checkPropTypes(Bk,e,"prop",t.name)});const $k={...li,getA11yStatusMessage:lm,circularNavigation:!0};function Hk(e,t){const{type:n,props:r,shiftKey:i}=t;let a;switch(n){case Fl:a={isOpen:Wt(r,"isOpen"),highlightedIndex:Wt(r,"highlightedIndex"),selectedItem:r.items[t.index],inputValue:r.itemToString(r.items[t.index])};break;case Pl:e.isOpen?a={highlightedIndex:Jn(i?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)}:a={highlightedIndex:Br(r,e,1,t.getItemNodeFromIndex),isOpen:r.items.length>=0};break;case Nl:e.isOpen?a={highlightedIndex:Jn(i?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)}:a={highlightedIndex:Br(r,e,-1,t.getItemNodeFromIndex),isOpen:r.items.length>=0};break;case Vl:a={...e.isOpen&&e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex],isOpen:Wt(r,"isOpen"),highlightedIndex:Wt(r,"highlightedIndex"),inputValue:r.itemToString(r.items[e.highlightedIndex])}};break;case Rl:a={isOpen:!1,highlightedIndex:-1,...!e.isOpen&&{selectedItem:null,inputValue:""}};break;case Ol:a={highlightedIndex:Dn(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case Ll:a={highlightedIndex:Dn(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case ts:a={isOpen:!1,highlightedIndex:-1,...e.highlightedIndex>=0&&t.selectItem&&{selectedItem:r.items[e.highlightedIndex],inputValue:r.itemToString(r.items[e.highlightedIndex])}};break;case Dl:a={isOpen:!0,highlightedIndex:Wt(r,"highlightedIndex"),inputValue:t.inputValue};break;case Ml:a={selectedItem:t.selectedItem,inputValue:r.itemToString(t.selectedItem)};break;case jl:a={inputValue:t.inputValue};break;default:return Vm(e,t,tg)}return{...e,...a}}Bl.stateChangeTypes=tg;function Bl(e){e===void 0&&(e={}),ng(e,Bl);const t={...$k,...e},{initialIsOpen:n,defaultIsOpen:r,items:i,scrollIntoView:a,environment:o,getA11yStatusMessage:u,getA11ySelectionMessage:l,itemToString:c}=t,p=jk(t),[f,d]=zk(Hk,p,t),{isOpen:g,highlightedIndex:x,selectedItem:w,inputValue:S}=f,b=F.useRef(null),k=F.useRef({}),E=F.useRef(null),O=F.useRef(null),y=F.useRef(null),m=F.useRef(!0),_=Am(t),V=F.useRef(),M=pl({state:f,props:t}),P=F.useCallback(U=>k.current[_.getItemId(U)],[_]);Za(u,[g,x,S,i],{isInitialMount:m.current,previousResultCount:V.current,items:i,environment:o,itemToString:c,...f}),Za(l,[w],{isInitialMount:m.current,previousResultCount:V.current,items:i,environment:o,itemToString:c,...f});const j=Lm({menuElement:b.current,highlightedIndex:x,isOpen:g,itemRefs:k,scrollIntoView:a,getItemNodeFromIndex:P});ml({isInitialMount:m.current,props:t,state:f}),F.useEffect(()=>{(n||r||g)&&E.current&&E.current.focus()},[]),F.useEffect(()=>{m.current||(V.current=i.length)});const W=Om(g,[y,b,O],o,()=>{d({type:ts,selectItem:!1})}),$=dl("getInputProps","getComboboxProps","getMenuProps");F.useEffect(()=>{m.current=!1},[]),F.useEffect(()=>{g||(k.current={})},[g]);const se=F.useMemo(()=>({ArrowDown(U){U.preventDefault(),d({type:Pl,shiftKey:U.shiftKey,getItemNodeFromIndex:P})},ArrowUp(U){U.preventDefault(),d({type:Nl,shiftKey:U.shiftKey,getItemNodeFromIndex:P})},Home(U){M.current.state.isOpen&&(U.preventDefault(),d({type:Ol,getItemNodeFromIndex:P}))},End(U){M.current.state.isOpen&&(U.preventDefault(),d({type:Ll,getItemNodeFromIndex:P}))},Escape(U){const Q=M.current.state;(Q.isOpen||Q.inputValue||Q.selectedItem||Q.highlightedIndex>-1)&&(U.preventDefault(),d({type:Rl}))},Enter(U){const Q=M.current.state;!Q.isOpen||Q.highlightedIndex<0||U.which===229||(U.preventDefault(),d({type:Vl,getItemNodeFromIndex:P}))}}),[d,M,P]),Z=F.useCallback(U=>({id:_.labelId,htmlFor:_.inputId,...U}),[_]),ne=F.useCallback(function(U,Q){let{onMouseLeave:ie,refKey:oe="ref",ref:re,...K}=U===void 0?{}:U,{suppressRefError:Y=!1}=Q===void 0?{}:Q;return $("getMenuProps",Y,oe,b),{[oe]:Sn(re,q=>{b.current=q}),id:_.menuId,role:"listbox","aria-labelledby":_.labelId,onMouseLeave:mt(ie,()=>{d({type:Wm})}),...K}},[d,$,_]),ce=F.useCallback(function(U){let{item:Q,index:ie,refKey:oe="ref",ref:re,onMouseMove:K,onMouseDown:Y,onClick:q,onPress:ee,disabled:he,...Ce}=U===void 0?{}:U;const{props:Ee,state:Te}=M.current,Fe=Pm(ie,Q,Ee.items);if(Fe<0)throw new Error("Pass either item or item index in getItemProps!");const ye="onClick",Re=q,De=()=>{ie!==Te.highlightedIndex&&(j.current=!1,d({type:Km,index:ie,disabled:he}))},Ge=()=>{d({type:Fl,index:ie})},ae=le=>le.preventDefault();return{[oe]:Sn(re,le=>{le&&(k.current[_.getItemId(Fe)]=le)}),disabled:he,role:"option","aria-selected":`${Fe===Te.highlightedIndex}`,id:_.getItemId(Fe),...!he&&{[ye]:mt(Re,Ge)},onMouseMove:mt(K,De),onMouseDown:mt(Y,ae),...Ce}},[d,M,j,_]),de=F.useCallback(function(U){let{onClick:Q,onPress:ie,refKey:oe="ref",ref:re,...K}=U===void 0?{}:U;const Y=()=>{d({type:Jm}),!M.current.state.isOpen&&E.current&&E.current.focus()};return{[oe]:Sn(re,q=>{O.current=q}),id:_.toggleButtonId,tabIndex:-1,...!K.disabled&&{onClick:mt(Q,Y)},...K}},[d,M,_]),xe=F.useCallback(function(U,Q){let{onKeyDown:ie,onChange:oe,onInput:re,onBlur:K,onChangeText:Y,refKey:q="ref",ref:ee,...he}=U===void 0?{}:U,{suppressRefError:Ce=!1}=Q===void 0?{}:Q;$("getInputProps",Ce,q,E);const Ee=M.current.state,Te=Ge=>{const ae=wi(Ge);ae&&se[ae]&&se[ae](Ge)},Fe=Ge=>{d({type:Dl,inputValue:Ge.target.value})},ye=()=>{Ee.isOpen&&!W.current.isMouseDown&&d({type:ts,selectItem:!0})},Re="onChange";let De={};return he.disabled||(De={[Re]:mt(oe,re,Fe),onKeyDown:mt(ie,Te),onBlur:mt(K,ye)}),{[q]:Sn(ee,Ge=>{E.current=Ge}),id:_.inputId,"aria-autocomplete":"list","aria-controls":_.menuId,...Ee.isOpen&&Ee.highlightedIndex>-1&&{"aria-activedescendant":_.getItemId(Ee.highlightedIndex)},"aria-labelledby":_.labelId,autoComplete:"off",value:Ee.inputValue,...De,...he}},[d,se,M,W,$,_]),L=F.useCallback(function(U,Q){let{refKey:ie="ref",ref:oe,...re}=U===void 0?{}:U,{suppressRefError:K=!1}=Q===void 0?{}:Q;return $("getComboboxProps",K,ie,y),{[ie]:Sn(oe,Y=>{y.current=Y}),role:"combobox","aria-haspopup":"listbox","aria-owns":_.menuId,"aria-expanded":M.current.state.isOpen,...re}},[M,$,_]),G=F.useCallback(()=>{d({type:Gm})},[d]),ue=F.useCallback(()=>{d({type:Xm})},[d]),T=F.useCallback(()=>{d({type:Ym})},[d]),me=F.useCallback(U=>{d({type:Qm,highlightedIndex:U})},[d]),be=F.useCallback(U=>{d({type:Ml,selectedItem:U})},[d]),Se=F.useCallback(U=>{d({type:Zm,inputValue:U})},[d]),J=F.useCallback(()=>{d({type:eg})},[d]);return{getItemProps:ce,getLabelProps:Z,getMenuProps:ne,getInputProps:xe,getComboboxProps:L,getToggleButtonProps:de,toggleMenu:G,openMenu:T,closeMenu:ue,setHighlightedIndex:me,setInputValue:Se,selectItem:be,reset:J,highlightedIndex:x,isOpen:g,selectedItem:w,inputValue:S}}fe.array,fe.array,fe.array,fe.func,fe.func,fe.func,fe.number,fe.number,fe.number,fe.func,fe.func,fe.string,fe.string,fe.shape({addEventListener:fe.func,removeEventListener:fe.func,document:fe.shape({getElementById:fe.func,activeElement:fe.any,body:fe.any})});li.itemToString,li.stateReducer,li.environment;const Uf=[{label:"json",value:"json"},{label:"csv",value:"csv"}],Uk=({onSelect:e})=>{const{isOpen:t,selectedItem:n,getToggleButtonProps:r,getMenuProps:i,getItemProps:a}=Al({items:Uf,onSelectedItemChange:({selectedItem:o})=>{e(o==null?void 0:o.value)},itemToString:o=>o?o.value:""});return R.jsxs("div",{className:"w-full",children:[R.jsxs("div",{"data-cy":"localization-export-file-type-select",className:ht("w-full p-2 flex items-center justify-between cursor-pointer space-x-1 bg-grey-300 text-grey-50 h-6",{"border-l border-r border-t border-primary-dark rounded-t":t,rounded:!t}),...r(),children:[R.jsx("span",{className:"text-grey-50 text-xs",children:n?n.label:"Select a file format"}),R.jsx(ot.FdDown,{className:"w-4 h-4"})]}),R.jsx("ul",{className:ht("h-full rounded-b py-[6px]",{hidden:!t,"border-[1px] border-primary-dark":t}),...i(),children:t&&Uf.map((o,u)=>R.jsx("li",{className:ht("h-5 p-1 bg-grey-900 text-xs hover:bg-primary-hover cursor-pointer"),...a({item:o,index:u}),children:o.label},u))})]})},qk=({selected:e,delimiter:t,onSelect:n,label:r})=>R.jsxs("div",{className:"flex flex-row items-center justify-between space-x-2",children:[R.jsx("div",{className:"flex h-[16px] w-[16px] items-center justify-center rounded-full border",onClick:()=>n(t),children:e===t&&R.jsx("div",{className:"h-2 w-2 rounded-full bg-primary-dark"})}),R.jsxs("div",{className:"text-sm text-grey-50",children:[r,` (${t})`]})]}),Wk=({enable:e,onSelect:t})=>{const{state:n,actions:r}=we.useStateObject({delimiters:[{label:"Comma",value:","},{label:"Semicolon",value:";"}],selected:","});return F.useEffect(()=>{t(n.selected)},[n.selected]),e?R.jsxs("div",{className:"flex flex-row items-center justify-between",children:[R.jsx("span",{className:"text-sm text-grey-50",children:" Select a Delimiter "}),R.jsx("div",{className:"flex flex-row space-x-2",children:n.delimiters.map(({label:i,value:a},o)=>R.jsx(qk,{onSelect:u=>r.setSelected(u),selected:n.selected,delimiter:a,label:i},o))})]}):R.jsx(R.Fragment,{})},Kk={SELECT_FILE_TYPE:"Please Select a File Format !"},Jk=({toExport:e})=>{var se;const[t,n]=F.useState(),r=yr(),i=r.getWebformTabs(),a=F.useRef(null),o=F.useRef([]),u=F.useRef([]),{i18n:l}=Zn(),c=((se=r.getUserComponents)==null?void 0:se.call(r))??{},p=r.buildResolver??{},[f]=F.useState(!0),{state:{isOpen:d,fileType:g,error:x,csvDelimier:w},actions:S}=we.useStateObject({error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],csvDelimier:","}),b=e.length===0;F.useEffect(()=>{we.tasksManagerSubject.subscribe({next:Z=>{if(Z.type==="i18n"&&Z.action==="cancel"){const{id:ne}=Z;u.current.push(ne)}}}),n({...p,...c})},[]);const k=()=>{S.setFileType(""),S.setError(""),S.setIsOpen(!1)},E=()=>{k()},O=()=>E(),y=()=>{const Z={};t&&(Object.entries(t).forEach(([ne,ce])=>{const{info:{settings:de}}=ce;if(de)if(ne==="Text")Z.Text=[{keyPropName:"doc",keyDefaultName:"text"}];else{const xe=m(de,"");Z[ne]=xe}}),a.current=Z)},m=(Z,ne)=>{let ce=[];if(Array.isArray(Z))Z.forEach(de=>ce=ce.concat(m(de,ne)));else if(ge.isObject(Z)){const{key:de,type:xe}=Z;if(xe===we.ESetting.GROUP){const{components:L}=Z;L==null||L.forEach(G=>ce=ce.concat(m(G,ne)))}else xe===we.ESetting.I18NFIELD?ce.push({keyPropName:ne||de,keyDefaultName:de}):Object.entries(Z).forEach(([,L])=>{ge.isObject(L)&&(ce=ce.concat(m(L,ne||de)))})}return ce},_=(Z,ne)=>{const{content:ce}=Z,{components:de}=ce,xe={};if(!de)return Z;const L=(ue,T,me,be)=>{const Se=[];if(ge.has(ue,me)){const Q=ge.get(ue,me);Se.push(...vu(Q,me,be))}const U=[];return Se.forEach(Q=>{const ie=ge.get(ue,Q),oe={__dataPath:Q,__default:ie};e.forEach(re=>{const K=`i18n:${re}`,Y=Object.keys(T),q=Y.find(he=>he.startsWith(K)),ee=Y.reduce((he,Ce)=>(Ce!==K&&Ce.endsWith(K)&&he.push(Ce),he),[]);if(q){const he=ge.get(T,`${q}.${Q}`);ge.set(oe,re,he)}if(ee.length&&ee.forEach(he=>{const Ce=ge.get(T,`${he}.${Q}`);let Ee=he;Ee=he.replace("states:",""),Ee=Ee.replace("i18n:",""),Ce&&ge.set(oe,Ee,Ce)}),!q){const he=ge.get(ue,`${Q}`);ge.set(oe,re,he)}}),U.push(oe)}),U},G=(ue,T,me)=>{const be=[],Se=ge.get(ue,me);return Se?(be.push({key:"__default",props:Se}),e.forEach(U=>{const Q=`i18n:${U}`,ie=Object.keys(T),oe=ie.find(K=>K.startsWith(Q)),re=ie.reduce((K,Y)=>(Y!==Q&&Y.endsWith(Q)&&K.push(Y),K),[]);if(oe){const K=ge.get(T,`${oe}.${me}`);K&&be.push({key:U,props:K})}re.length&&re.forEach(K=>{const Y=ge.get(T,`${K}.${me}`);be.push({key:K,props:Y||""})}),!oe&&!re.length&&be.push({key:U,props:Se})}),be.reduce((U,Q)=>{const{key:ie,props:oe}=Q,re=ik(oe);return{...U,[ie]:re}},{__dataPath:me})):ue};return Object.entries(de).forEach(([ue,T])=>{const{props:me,custom:be={},type:Se}=T,J=Se.resolvedName,U=ne[J];if(!U||U.length===0)return;const Q=U.map(({keyPropName:ie,keyDefaultName:oe})=>J==="Text"?G(me,be,ie):L(me,be,ie,oe));ge.set(xe,ue,{resolverName:J,props:[...Q.flat()]})}),xe},V=async(Z,ne)=>{const ce={},de=xe=>{const L=xe+1===Z.length?Z.length:xe,G=Math.ceil(L/Z.length*100);we.tasksManagerSubject.next({id:ne,action:"update",type:"i18n",payload:{progress:G,status:G>=100?"finished":"ongoing"}})};for(let xe=0;xe<Z.length;xe++){const L=Z[xe],G=i.find(me=>me.name===L.name&&me.type==="webform");if(!a.current){de(xe);continue}const ue=G||await we.getNodeInfo({verb:we.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${L.name}.${L.ext}`,as:"json"}),T=_(ue,a.current);if(ge.isEmpty(T)||ge.set(ce,L.name,T),u.current.find(me=>me===ne))return{};de(xe)}return ce},M=(Z,ne,ce)=>{const de="data:text/json;charset=utf-8,"+encodeURIComponent(Z),xe=document.createElement("a");xe.setAttribute("href",de),xe.setAttribute("download",ne+`.${ce}`),document.body.appendChild(xe),xe.click(),xe.remove()},P=Z=>{switch(g){case"csv":{const ne=["keys","resolverName","__t"].concat(e.concat(["i18nkey_default"]));return nk(Z,ne,w)}case"json":return JSON.stringify(Z,null," ");default:return JSON.stringify(Z,null," ")}},j=(Z,ne)=>{Object.entries(ne.keys).forEach(([de,xe])=>{Object.keys(xe).forEach(L=>{o.current.push(`i18n.${de}.${L}`)})});const ce={};return Object.entries(ne.keys).forEach(([de,xe])=>{ce[de]={default:xe.default},e.forEach(L=>{ce[de][L]=Object.hasOwn(xe,L)?xe[L]:f?xe.default:void 0})}),{webforms:{...Z},i18n:ce}},W=Z=>S.setCsvDelimier(Z),$=async()=>{const Z=Wu.generate().toString();try{we.tasksManagerSubject.next({id:Z,action:"add",type:"i18n",payload:{progress:0,name:"Export i18n",status:"ongoing",date:new Date().toISOString(),time:tk()}}),y();const ne=await nm(),ce=await V(ne,Z),de=j(ce,l),xe=P(de);ge.isEmpty(xe)||M(xe,"export-i18n",g),k()}catch(ne){we.tasksManagerSubject.next({id:Z,type:"i18n",action:"update",payload:{status:"canceled"}}),we.tasksManagerSubject.next({id:Z,type:"i18n",action:"error",payload:{errorMessage:ne.message||"Export file error"}})}k()};return R.jsxs(R.Fragment,{children:[R.jsx(we.Tooltip,{label:"Export",children:R.jsx("button",{disabled:b,className:ht("flex h-full flex-row items-center p-1 rounded disabled:opacity-50",{"cursor-not-allowed":b},{"hover:bg-primary-hover":!b}),onClick:()=>{S.setIsOpen(!0)},children:R.jsx(ot.FdUpload,{className:"h-4 w-4"})})}),R.jsxs(im,{isOpen:d,onClose:E,title:"Export","data-cy":"localization-export-dialog",children:[R.jsx("div",{className:"mt-4",children:R.jsx(Uk,{onSelect:Z=>S.setFileType(Z)})}),R.jsx(Wk,{enable:g==="csv",onSelect:W}),R.jsxs("div",{className:"mt-3 flex items-center justify-between gap-4",children:[R.jsxs("div",{className:"flex flex-row space-x-1 justify-center items-center text-purple-600 hover:underline cursor-pointer",onClick:()=>{window.open("https://developer.4d.com/qodly/4DQodlyPro/localization#exporting-and-importing-translations","_blank")},children:[R.jsx("p",{className:"text-xs",children:"How to Export an i18n File"}),R.jsx(ot.FdOutload,{className:"ml-1 h-4 w-4 text-grey-50"})]}),R.jsxs("div",{className:"flex items-center space-x-2",children:[R.jsx("button",{onClick:O,className:"rounded border w-16 border-white px-2 py-1 text-xs font-medium text-grey-50 hover:bg-white hover:border-white hover:font-bold hover:text-primary-dark",children:"Cancel"}),R.jsx("button",{onClick:()=>{g?(S.setIsOpen(!1),$()):S.setError(Kk.SELECT_FILE_TYPE)},className:"rounded w-16 px-2 py-1 text-xs font-medium text-grey-50 bg-primary-dark hover:border-white hover:border hover:bg-primary-hover hover:text-white hover:font-bold",children:"Export"})]})]}),x&&R.jsx("div",{className:"flex items-center justify-center p-2",children:R.jsx("span",{className:"text-sm text-red-500",children:x})})]})]})},Gk={DROP_EVENT_ERROR:"Not Suported File type! Only .json and .csv are Supported."},Yk=["default"],Xk={MISSING_WEBFORMS_OR_I18N:"The file must contain 'webforms' or 'i18n' (or both). The file is empty or missing these keys."},rg=["__dataPath","__default","default","__t","i18nkey_default"],Qk=["i18n:","state:"],ns=e=>rg.includes(e)||Qk.some(t=>e.startsWith(t)),Zk=e=>{const t=new Set;return e.webforms&&Object.values(e.webforms).forEach(n=>{Object.values(n).forEach(r=>{(r.props||[]).forEach(i=>{Object.keys(i).forEach(a=>{ns(a)||t.add(a)})})})}),e.i18n&&Object.values(e.i18n).forEach(n=>{Object.keys(n||{}).forEach(r=>{ns(r)||t.add(r)})}),Array.from(t).sort()},qf=e=>{if(rg.includes(e))return null;if(e.startsWith("state:")){const t=e.lastIndexOf("i18n:");return t!==-1&&e.slice(t+5)||null}return e},eE=(e,t)=>{const n=new Set(t),r={};return e.webforms&&(r.webforms={},Object.entries(e.webforms).forEach(([i,a])=>{if(!a||typeof a!="object")return;const o={};Object.entries(a).forEach(([u,l])=>{if(!l||typeof l!="object")return;const c={resolverName:l.resolverName};l.resolverName==="Text"?(l.props&&(c.props=l.props),l.custom&&(c.custom={},Object.entries(l.custom).forEach(([f,d])=>{const g=f.startsWith("state:")||f.startsWith("states:")?qf(f):f.startsWith("i18n:")?f.slice(5):f;g&&n.has(g)&&(c.custom[f]=d)}))):Object.entries(l).forEach(([f,d])=>{if(f!=="resolverName")if(d&&ge.isObject(d)&&!Array.isArray(d)){const g={};Object.entries(d).forEach(([x,w])=>{const S=qf(x);(S===null||n.has(S))&&(g[x]=w)}),Object.keys(g).length>0&&(c[f]=g)}else c[f]=d}),o[u]=c}),r.webforms[i]=o})),e.i18n&&(r.i18n={},Object.entries(e.i18n).forEach(([i,a])=>{if(!a||typeof a!="object")return;const o={};Object.entries(a).forEach(([u,l])=>{(u==="default"||!ns(u)&&n.has(u))&&(o[u]=l)}),Object.keys(o).length>0&&(r.i18n[i]=o)})),r},tE=e=>{const{data:t}=Ku.parse(e),n=t[0];if(!n||!Array.isArray(n))return[];const r=n.slice(2).filter(i=>i&&!ns(i.trim()));return[...new Set(r)].sort()},_r={EMPTY_OR_INVALID:"The CSV file is empty or could not be parsed.",HEADER_REQUIRED:"The first row must be a header with at least columns: 'keys', 'resolverName', and one locale (e.g. __t, fr, en).",KEY_FORMAT:"Each data row's first column (keys) must be non-empty and start with 'webforms.' or 'i18n.'.",ROW_COLUMNS:"Every row must have the same number of columns as the header."},nE=e=>{const t=rm(e),{data:n}=Ku.parse(t),r=n;if(!(r!=null&&r.length))return{valid:!1,message:_r.EMPTY_OR_INVALID};const i=r[0];if(!i||i.length<3)return{valid:!1,message:_r.HEADER_REQUIRED};const a=(i[0]??"").trim().toLowerCase(),o=(i[1]??"").trim().toLowerCase();if(a!=="keys"||o!=="resolvername")return{valid:!1,message:_r.HEADER_REQUIRED};const u=i.length;for(let l=1;l<r.length;l++){if(r[l].length<=1)continue;const c=r[l];if(!c||c.length!==u)return{valid:!1,message:_r.ROW_COLUMNS};const p=(c[0]??"").trim();if(!p)return{valid:!1,message:_r.KEY_FORMAT};if(!p.startsWith("webforms.")&&!p.startsWith("i18n."))return{valid:!1,message:_r.KEY_FORMAT}}return{valid:!0}},rE=(e,t)=>{const r=new f0.Validator().validate(e,t);if(r.valid)return{valid:!0};const i=r.errors[0],a=i?`${i.property||"root"} ${i.message}`.trim():"Invalid file format";return{valid:!1,message:ge.isObject(e)&&!ge.has(e,"webforms")&&!ge.has(e,"i18n")&&(a.includes("subschema")||a.includes("any of"))?Xk.MISSING_WEBFORMS_OR_I18N:a}},iE="Export i18n",aE="Schema for i18n export format. Must have webforms, i18n, or both.",sE="object",oE=!1,uE={webforms:{type:"object",description:"Webform names to their component localizations",additionalProperties:{$ref:"#/definitions/webformComponents"}},i18n:{type:"object",description:"Shared i18n keys and their localized values",additionalProperties:{$ref:"#/definitions/i18nKeys"}}},lE=[{required:["webforms"]},{required:["i18n"]}],cE={webformComponents:{type:"object",description:"Component ID to component localization entry",additionalProperties:{$ref:"#/definitions/componentEntry"}},componentEntry:{type:"object",required:["resolverName","props"],additionalProperties:!1,properties:{resolverName:{type:"string",description:"Name of the component resolver (e.g. Button)"},props:{type:"array",description:"Localized prop entries",items:{$ref:"#/definitions/propLocalization"}}}},propLocalization:{type:"object",required:["__dataPath","__default"],properties:{__dataPath:{type:"string",description:"Path to the prop (e.g. text)"},__default:{type:"string",description:"Default value for the prop"}},additionalProperties:{type:"string",description:"Locale code to localized string (e.g. fr, en)"}},i18nKeys:{type:"object",required:["default"],properties:{default:{type:"string",description:"Default value"}},additionalProperties:{type:"string",description:"Locale code to localized string (e.g. fr, en)"}}},fE={title:iE,description:aE,type:sE,additionalProperties:oE,properties:uE,anyOf:lE,definitions:cE};var si={exports:{}};si.exports;var Wf;function hE(){return Wf||(Wf=1,(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,a=16,o=9007199254740991,u="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",p="[object Boolean]",f="[object Date]",d="[object Error]",g="[object Function]",x="[object GeneratorFunction]",w="[object Map]",S="[object Number]",b="[object Null]",k="[object Object]",E="[object Proxy]",O="[object RegExp]",y="[object Set]",m="[object String]",_="[object Undefined]",V="[object WeakMap]",M="[object ArrayBuffer]",P="[object DataView]",j="[object Float32Array]",W="[object Float64Array]",$="[object Int8Array]",se="[object Int16Array]",Z="[object Int32Array]",ne="[object Uint8Array]",ce="[object Uint8ClampedArray]",de="[object Uint16Array]",xe="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,G=/^\[object .+?Constructor\]$/,ue=/^(?:0|[1-9]\d*)$/,T={};T[j]=T[W]=T[$]=T[se]=T[Z]=T[ne]=T[ce]=T[de]=T[xe]=!0,T[u]=T[l]=T[M]=T[p]=T[P]=T[f]=T[d]=T[g]=T[w]=T[S]=T[k]=T[O]=T[y]=T[m]=T[V]=!1;var me=typeof ha=="object"&&ha&&ha.Object===Object&&ha,be=typeof self=="object"&&self&&self.Object===Object&&self,Se=me||be||Function("return this")(),J=t&&!t.nodeType&&t,U=J&&!0&&e&&!e.nodeType&&e,Q=U&&U.exports===J,ie=Q&&me.process,oe=(function(){try{var D=U&&U.require&&U.require("util").types;return D||ie&&ie.binding&&ie.binding("util")}catch{}})(),re=oe&&oe.isTypedArray;function K(D,B,te){switch(te.length){case 0:return D.call(B);case 1:return D.call(B,te[0]);case 2:return D.call(B,te[0],te[1]);case 3:return D.call(B,te[0],te[1],te[2])}return D.apply(B,te)}function Y(D,B){for(var te=-1,Pe=Array(D);++te<D;)Pe[te]=B(te);return Pe}function q(D){return function(B){return D(B)}}function ee(D,B){return D==null?void 0:D[B]}function he(D,B){return function(te){return D(B(te))}}var Ce=Array.prototype,Ee=Function.prototype,Te=Object.prototype,Fe=Se["__core-js_shared__"],ye=Ee.toString,Re=Te.hasOwnProperty,De=(function(){var D=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||"");return D?"Symbol(src)_1."+D:""})(),Ge=Te.toString,ae=ye.call(Object),le=RegExp("^"+ye.call(Re).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=Q?Se.Buffer:void 0,Me=Se.Symbol,Xe=Se.Uint8Array;A&&A.allocUnsafe;var yt=he(Object.getPrototypeOf,Object),_e=Object.create,Ot=Te.propertyIsEnumerable,An=Ce.splice,Lt=Me?Me.toStringTag:void 0,gt=(function(){try{var D=At(Object,"defineProperty");return D({},"",{}),D}catch{}})(),rn=A?A.isBuffer:void 0,Vt=Math.max,$s=Date.now,ar=At(Se,"Map"),Ct=At(Object,"create"),jt=(function(){function D(){}return function(B){if(!C(B))return{};if(_e)return _e(B);D.prototype=B;var te=new D;return D.prototype=void 0,te}})();function Ze(D){var B=-1,te=D==null?0:D.length;for(this.clear();++B<te;){var Pe=D[B];this.set(Pe[0],Pe[1])}}function Bn(){this.__data__=Ct?Ct(null):{},this.size=0}function Be(D){var B=this.has(D)&&delete this.__data__[D];return this.size-=B?1:0,B}function $i(D){var B=this.__data__;if(Ct){var te=B[D];return te===r?void 0:te}return Re.call(B,D)?B[D]:void 0}function Jr(D){var B=this.__data__;return Ct?B[D]!==void 0:Re.call(B,D)}function Hs(D,B){var te=this.__data__;return this.size+=this.has(D)?0:1,te[D]=Ct&&B===void 0?r:B,this}Ze.prototype.clear=Bn,Ze.prototype.delete=Be,Ze.prototype.get=$i,Ze.prototype.has=Jr,Ze.prototype.set=Hs;function Bt(D){var B=-1,te=D==null?0:D.length;for(this.clear();++B<te;){var Pe=D[B];this.set(Pe[0],Pe[1])}}function bn(){this.__data__=[],this.size=0}function Us(D){var B=this.__data__,te=ur(B,D);if(te<0)return!1;var Pe=B.length-1;return te==Pe?B.pop():An.call(B,te,1),--this.size,!0}function sr(D){var B=this.__data__,te=ur(B,D);return te<0?void 0:B[te][1]}function or(D){return ur(this.__data__,D)>-1}function Hi(D,B){var te=this.__data__,Pe=ur(te,D);return Pe<0?(++this.size,te.push([D,B])):te[Pe][1]=B,this}Bt.prototype.clear=bn,Bt.prototype.delete=Us,Bt.prototype.get=sr,Bt.prototype.has=or,Bt.prototype.set=Hi;function zn(D){var B=-1,te=D==null?0:D.length;for(this.clear();++B<te;){var Pe=D[B];this.set(Pe[0],Pe[1])}}function Ui(){this.size=0,this.__data__={hash:new Ze,map:new(ar||Bt),string:new Ze}}function qi(D){var B=zt(this,D).delete(D);return this.size-=B?1:0,B}function Wi(D){return zt(this,D).get(D)}function Ki(D){return zt(this,D).has(D)}function Ji(D,B){var te=zt(this,D),Pe=te.size;return te.set(D,B),this.size+=te.size==Pe?0:1,this}zn.prototype.clear=Ui,zn.prototype.delete=qi,zn.prototype.get=Wi,zn.prototype.has=Ki,zn.prototype.set=Ji;function $n(D){var B=this.__data__=new Bt(D);this.size=B.size}function qs(){this.__data__=new Bt,this.size=0}function Ws(D){var B=this.__data__,te=B.delete(D);return this.size=B.size,te}function Ks(D){return this.__data__.get(D)}function Gi(D){return this.__data__.has(D)}function Yi(D,B){var te=this.__data__;if(te instanceof Bt){var Pe=te.__data__;if(!ar||Pe.length<n-1)return Pe.push([D,B]),this.size=++te.size,this;te=this.__data__=new zn(Pe)}return te.set(D,B),this.size=te.size,this}$n.prototype.clear=qs,$n.prototype.delete=Ws,$n.prototype.get=Ks,$n.prototype.has=Gi,$n.prototype.set=Yi;function Xi(D,B){var te=Xr(D),Pe=!te&&Er(D),qe=!te&&!Pe&&s(D),ft=!te&&!Pe&&!qe&&X(D),xt=te||Pe||qe||ft,tt=xt?Y(D.length,String):[],vt=tt.length;for(var pn in D)xt&&(pn=="length"||qe&&(pn=="offset"||pn=="parent")||ft&&(pn=="buffer"||pn=="byteLength"||pn=="byteOffset")||aa(pn,vt))||tt.push(pn);return tt}function Cr(D,B,te){(te!==void 0&&!fr(D[B],te)||te===void 0&&!(B in D))&&Gr(D,B,te)}function Qi(D,B,te){var Pe=D[B];(!(Re.call(D,B)&&fr(Pe,te))||te===void 0&&!(B in D))&&Gr(D,B,te)}function ur(D,B){for(var te=D.length;te--;)if(fr(D[te][0],B))return te;return-1}function Gr(D,B,te){B=="__proto__"&>?gt(D,B,{configurable:!0,enumerable:!0,value:te,writable:!0}):D[B]=te}var Js=ra();function lr(D){return D==null?D===void 0?_:b:Lt&&Lt in Object(D)?to(D):oa(D)}function Zi(D){return N(D)&&lr(D)==u}function Yr(D){if(!C(D)||io(D))return!1;var B=h(D)?le:G;return B.test(la(D))}function ea(D){return N(D)&&v(D.length)&&!!T[lr(D)]}function Gs(D){if(!C(D))return sa(D);var B=cr(D),te=[];for(var Pe in D)Pe=="constructor"&&(B||!Re.call(D,Pe))||te.push(Pe);return te}function Ne(D,B,te,Pe,qe){D!==B&&Js(B,function(ft,xt){if(qe||(qe=new $n),C(ft))kr(D,B,xt,te,Ne,Pe,qe);else{var tt=Pe?Pe(Hn(D,xt),ft,xt+"",D,B,qe):void 0;tt===void 0&&(tt=ft),Cr(D,xt,tt)}},ke)}function kr(D,B,te,Pe,qe,ft,xt){var tt=Hn(D,te),vt=Hn(B,te),pn=xt.get(vt);if(pn){Cr(D,te,pn);return}var Xt=ft?ft(tt,vt,te+"",D,B,xt):void 0,Zr=Xt===void 0;if(Zr){var oo=Xr(vt),uo=!oo&&s(vt),bc=!oo&&!uo&&X(vt);Xt=vt,oo||uo||bc?Xr(tt)?Xt=tt:so(tt)?Xt=Zs(tt):uo?(Zr=!1,Xt=Xs(vt)):bc?(Zr=!1,Xt=Qs(vt)):Xt=[]:H(vt)||Er(vt)?(Xt=tt,Er(tt)?Xt=ve(tt):(!C(tt)||h(tt))&&(Xt=ia(vt))):Zr=!1}Zr&&(xt.set(vt,Xt),qe(Xt,vt,Pe,ft,xt),xt.delete(vt)),Cr(D,te,Xt)}function an(D,B){return We(ua(D,B,ut),D+"")}var Ys=gt?function(D,B){return gt(D,"toString",{configurable:!0,enumerable:!1,value:He(B),writable:!0})}:ut;function Xs(D,B){return D.slice()}function ta(D){var B=new D.constructor(D.byteLength);return new Xe(B).set(new Xe(D)),B}function Qs(D,B){var te=ta(D.buffer);return new D.constructor(te,D.byteOffset,D.length)}function Zs(D,B){var te=-1,Pe=D.length;for(B||(B=Array(Pe));++te<Pe;)B[te]=D[te];return B}function na(D,B,te,Pe){var qe=!te;te||(te={});for(var ft=-1,xt=B.length;++ft<xt;){var tt=B[ft],vt=void 0;vt===void 0&&(vt=D[tt]),qe?Gr(te,tt,vt):Qi(te,tt,vt)}return te}function eo(D){return an(function(B,te){var Pe=-1,qe=te.length,ft=qe>1?te[qe-1]:void 0,xt=qe>2?te[2]:void 0;for(ft=D.length>3&&typeof ft=="function"?(qe--,ft):void 0,xt&&no(te[0],te[1],xt)&&(ft=qe<3?void 0:ft,qe=1),B=Object(B);++Pe<qe;){var tt=te[Pe];tt&&D(B,tt,Pe,ft)}return B})}function ra(D){return function(B,te,Pe){for(var qe=-1,ft=Object(B),xt=Pe(B),tt=xt.length;tt--;){var vt=xt[++qe];if(te(ft[vt],vt,ft)===!1)break}return B}}function zt(D,B){var te=D.__data__;return ro(B)?te[typeof B=="string"?"string":"hash"]:te.map}function At(D,B){var te=ee(D,B);return Yr(te)?te:void 0}function to(D){var B=Re.call(D,Lt),te=D[Lt];try{D[Lt]=void 0;var Pe=!0}catch{}var qe=Ge.call(D);return Pe&&(B?D[Lt]=te:delete D[Lt]),qe}function ia(D){return typeof D.constructor=="function"&&!cr(D)?jt(yt(D)):{}}function aa(D,B){var te=typeof D;return B=B??o,!!B&&(te=="number"||te!="symbol"&&ue.test(D))&&D>-1&&D%1==0&&D<B}function no(D,B,te){if(!C(te))return!1;var Pe=typeof B;return(Pe=="number"?Qr(te)&&aa(B,te.length):Pe=="string"&&B in te)?fr(te[B],D):!1}function ro(D){var B=typeof D;return B=="string"||B=="number"||B=="symbol"||B=="boolean"?D!=="__proto__":D===null}function io(D){return!!De&&De in D}function cr(D){var B=D&&D.constructor,te=typeof B=="function"&&B.prototype||Te;return D===te}function sa(D){var B=[];if(D!=null)for(var te in Object(D))B.push(te);return B}function oa(D){return Ge.call(D)}function ua(D,B,te){return B=Vt(B===void 0?D.length-1:B,0),function(){for(var Pe=arguments,qe=-1,ft=Vt(Pe.length-B,0),xt=Array(ft);++qe<ft;)xt[qe]=Pe[B+qe];qe=-1;for(var tt=Array(B+1);++qe<B;)tt[qe]=Pe[qe];return tt[B]=te(xt),K(D,this,tt)}}function Hn(D,B){if(!(B==="constructor"&&typeof D[B]=="function")&&B!="__proto__")return D[B]}var We=ao(Ys);function ao(D){var B=0,te=0;return function(){var Pe=$s(),qe=a-(Pe-te);if(te=Pe,qe>0){if(++B>=i)return arguments[0]}else B=0;return D.apply(void 0,arguments)}}function la(D){if(D!=null){try{return ye.call(D)}catch{}try{return D+""}catch{}}return""}function fr(D,B){return D===B||D!==D&&B!==B}var Er=Zi((function(){return arguments})())?Zi:function(D){return N(D)&&Re.call(D,"callee")&&!Ot.call(D,"callee")},Xr=Array.isArray;function Qr(D){return D!=null&&v(D.length)&&!h(D)}function so(D){return N(D)&&Qr(D)}var s=rn||kt;function h(D){if(!C(D))return!1;var B=lr(D);return B==g||B==x||B==c||B==E}function v(D){return typeof D=="number"&&D>-1&&D%1==0&&D<=o}function C(D){var B=typeof D;return D!=null&&(B=="object"||B=="function")}function N(D){return D!=null&&typeof D=="object"}function H(D){if(!N(D)||lr(D)!=k)return!1;var B=yt(D);if(B===null)return!0;var te=Re.call(B,"constructor")&&B.constructor;return typeof te=="function"&&te instanceof te&&ye.call(te)==ae}var X=re?q(re):ea;function ve(D){return na(D,ke(D))}function ke(D){return Qr(D)?Xi(D):Gs(D)}var je=eo(function(D,B,te,Pe){Ne(D,B,te,Pe)});function He(D){return function(){return D}}function ut(D){return D}function kt(){return!1}e.exports=je})(si,si.exports)),si.exports}var pE=hE();const gr=Li(pE);var ig=1/60*1e3,dE=typeof performance<"u"?function(){return performance.now()}:function(){return Date.now()},ag=typeof window<"u"?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout(function(){return e(dE())},ig)};function mE(e){var t=[],n=[],r=0,i=!1,a=new WeakSet,o={schedule:function(u,l,c){l===void 0&&(l=!1),c===void 0&&(c=!1);var p=c&&i,f=p?t:n;return l&&a.add(u),f.indexOf(u)===-1&&(f.push(u),p&&i&&(r=t.length)),u},cancel:function(u){var l=n.indexOf(u);l!==-1&&n.splice(l,1),a.delete(u)},process:function(u){var l;if(i=!0,l=[n,t],t=l[0],n=l[1],n.length=0,r=t.length,r)for(var c=0;c<r;c++){var p=t[c];p(u),a.has(p)&&(o.schedule(p),e())}i=!1}};return o}var gE=40,wu=!0,Si=!1,Su=!1,Vr={delta:0,timestamp:0},Di=["read","update","preRender","render","postRender"],Ps=Di.reduce(function(e,t){return e[t]=mE(function(){return Si=!0}),e},{}),Cn=Di.reduce(function(e,t){var n=Ps[t];return e[t]=function(r,i,a){return i===void 0&&(i=!1),a===void 0&&(a=!1),Si||vE(),n.schedule(r,i,a)},e},{}),ci=Di.reduce(function(e,t){return e[t]=Ps[t].cancel,e},{}),Nr=Di.reduce(function(e,t){return e[t]=function(){return Ps[t].process(Vr)},e},{}),xE=function(e){return Ps[e].process(Vr)},sg=function(e){Si=!1,Vr.delta=wu?ig:Math.max(Math.min(e-Vr.timestamp,gE),1),Vr.timestamp=e,Su=!0,Di.forEach(xE),Su=!1,Si&&(wu=!1,ag(sg))},vE=function(){Si=!0,wu=!0,Su||ag(sg)},rs=function(){return Vr},bE={};function $o(e){return typeof e=="number"}function yE(e){return Array.isArray(e)}function og(e){return typeof e=="function"}function Dr(e){var t=typeof e;return e!=null&&(t==="object"||t==="function")&&!yE(e)}function zl(e){return Object.prototype.toString.call(e)==="[object String]"}function ug(e){return/^var\(--.+\)$/.test(e)}var hn=bE.NODE_ENV!=="production";function $l(e,t){var n={};return Object.keys(e).forEach(function(r){t.includes(r)||(n[r]=e[r])}),n}function wE(e,t,n,r){var i=typeof t=="string"?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return e===void 0?n:e}var SE=function(t){var n=new WeakMap,r=function(a,o,u,l){if(typeof a>"u")return t(a,o,u);n.has(a)||n.set(a,new Map);var c=n.get(a);if(c.has(o))return c.get(o);var p=t(a,o,u,l);return c.set(o,p),p};return r},lg=SE(wE);function cg(e,t){var n={};return Object.keys(e).forEach(function(r){var i=e[r],a=t(i,r,e);a&&(n[r]=i)}),n}var fg=function(t){return cg(t,function(n){return n!=null})},hg=function(t){return Object.keys(t)};function pg(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function dg(e){var t;if(!pg(e))return!1;var n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function mg(e){var t;return pg(e)&&(t=e.ownerDocument)!=null?t:document}function CE(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var kE=CE(),Et=function(t){return t?"":void 0},rr=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.filter(Boolean).join(" ")};function EE(e){return dg(e)&&e.tagName.toLowerCase()==="input"&&"select"in e}function _E(e){var t=dg(e)?mg(e):document;return t.activeElement===e}function Kf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function IE(e,t){if(e){if(typeof e=="string")return Kf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kf(e,t)}}function TE(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=IE(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
107
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function On(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return og(e)?e.apply(void 0,n):e}function Ut(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){t.some(function(a){return a==null||a(i),i==null?void 0:i.defaultPrevented})}}function AE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){t.forEach(function(a){a==null||a(i)})}}function PE(e){var t;return function(){if(e){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];t=e.apply(this,i),e=null}return t}}var gg=PE(function(e){return function(){var t=e.condition,n=e.message;t&&hn&&console.warn(n)}});function NE(e,t){t===void 0&&(t={});var n=t,r=n.isActive,i=r===void 0?_E:r,a=n.nextTick,o=n.preventScroll,u=o===void 0?!0:o,l=n.selectTextIfInput,c=l===void 0?!0:l;if(!e||i(e))return-1;function p(){if(!e){gg({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"});return}if(RE())e.focus({preventScroll:u});else if(e.focus(),u){var f=OE(e);LE(f)}EE(e)&&c&&e.select()}return a?requestAnimationFrame(p):(p(),-1)}var Ca=null;function RE(){if(Ca==null){Ca=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Ca=!0,!0}})}catch{}}return Ca}function OE(e){for(var t,n=mg(e),r=(t=n.defaultView)!=null?t:window,i=e.parentNode,a=[],o=n.scrollingElement||n.documentElement;i instanceof r.HTMLElement&&i!==o;)(i.offsetHeight<i.scrollHeight||i.offsetWidth<i.scrollWidth)&&a.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),i=i.parentNode;return o instanceof r.HTMLElement&&a.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),a}function LE(e){for(var t=TE(e),n;!(n=t()).done;){var r=n.value,i=r.element,a=r.scrollTop,o=r.scrollLeft;i.scrollTop=a,i.scrollLeft=o}}function VE(e,t){if(e!=null){if(og(e)){e(t);return}try{e.current=t}catch{throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}}}function is(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){t.forEach(function(i){return VE(i,r)})}}function Hl(e){e===void 0&&(e={});var t=e,n=t.strict,r=n===void 0?!0:n,i=t.errorMessage,a=i===void 0?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":i,o=t.name,u=Ae.createContext(void 0);u.displayName=o;function l(){var c=Ae.useContext(u);if(!c&&r){var p=new Error(a);throw p.name="ContextError",Error.captureStackTrace==null||Error.captureStackTrace(p,l),p}return c}return[u.Provider,l,u]}var Cu=kE?Ae.useLayoutEffect:Ae.useEffect;function Ho(e,t){t===void 0&&(t=[]);var n=Ae.useRef(e);return Cu(function(){n.current=e}),Ae.useCallback(function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n.current==null?void 0:n.current.apply(n,i)},t)}function Fa(e){e===void 0&&(e=!1);var t=F.useState(e),n=t[0],r=t[1],i=F.useMemo(function(){return{on:function(){return r(!0)},off:function(){return r(!1)},toggle:function(){return r(function(o){return!o})}}},[]);return[n,i]}function DE(e,t){var n=e!==void 0,r=n&&typeof e<"u"?e:t;return[n,r]}var FE={current:1},ME=Ae.createContext(FE),jE=function(t){return t.current++};function BE(e,t){var n=Ae.useContext(ME),r=Ae.useState(n.current),i=r[0],a=r[1];return Ae.useEffect(function(){a(jE(n))},[n]),Ae.useMemo(function(){return[t,i].filter(Boolean).join("-")},[e,t,i])}var zE=function(t,n){var r=Ae.useRef(!1);return Ae.useEffect(function(){if(r.current)return t();r.current=!0},n),r.current},xg=Ae.createContext({});hn&&(xg.displayName="ColorModeContext");var $E=function(){var t=Ae.useContext(xg);if(t===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return t};function as(){return as=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},as.apply(this,arguments)}var HE=function(t,n){return function(r){var i=String(n),a=t?t+"."+i:i;return Dr(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:n}};function Ci(e){var t=e.scale,n=e.transform,r=e.compose,i=function(o,u){var l,c=HE(t,o)(u),p=(l=n==null?void 0:n(c,u))!=null?l:c;return r&&(p=r(p,u)),p};return i}function mn(e,t){return function(n){var r={property:n,scale:e};return r.transform=Ci({scale:e,transform:t}),r}}var UE=function(t){var n=t.rtl,r=t.ltr;return function(i){return i.direction==="rtl"?n:r}};function qE(e){var t=e.property,n=e.scale,r=e.transform;return{scale:n,property:UE(t),transform:n?Ci({scale:n,compose:r}):r}}var Uo,qo,vg=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function WE(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(vg).join(" ")}function KE(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(vg).join(" ")}var JE={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},GE={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function YE(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var XE={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},bg="& > :not(style) ~ :not(style)",QE=(Uo={},Uo[bg]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},Uo),ZE=(qo={},qo[bg]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},qo);function ss(e,t){return ss=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ss(e,t)}function e_(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}}),t&&ss(e,t)}function ku(){ku=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,o){var u=new RegExp(i,a);return t.set(u,o||t.get(i)),ss(u,n.prototype)}e_(n,RegExp),n.prototype.exec=function(i){var a=e.exec.call(this,i);return a&&(a.groups=r(a,this)),a},n.prototype[Symbol.replace]=function(i,a){if(typeof a=="string"){var o=t.get(this);return e[Symbol.replace].call(this,i,a.replace(/\$<([^>]+)>/g,function(l,c){return"$"+o[c]}))}else if(typeof a=="function"){var u=this;return e[Symbol.replace].call(this,i,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l),l.push(r(l,u))),a.apply(this,l)})}else return e[Symbol.replace].call(this,i,a)};function r(i,a){var o=t.get(a);return Object.keys(o).reduce(function(u,l){return u[l]=i[o[l]],u},Object.create(null))}return ku.apply(this,arguments)}var Eu={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},t_=new Set(Object.values(Eu)),yg=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),n_=function(t){return t.trim()};function r_(e,t){var n,r;if(e==null||yg.has(e))return e;var i=ku(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}),a=(n=(r=i.exec(e))==null?void 0:r.groups)!=null?n:{},o=a.type,u=a.values;if(!o||!u)return e;var l=o.includes("-gradient")?o:o+"-gradient",c=u.split(",").map(n_).filter(Boolean),p=c[0],f=c.slice(1);if((f==null?void 0:f.length)===0)return e;var d=p in Eu?Eu[p]:p;f.unshift(d);var g=f.map(function(x){if(t_.has(x))return x;var w=x.indexOf(" "),S=w!==-1?[x.substr(0,w),x.substr(w+1)]:[x],b=S[0],k=S[1],E=wg(k)?k:k&&k.split(" "),O="colors."+b,y=O in t.__cssMap?t.__cssMap[O].varRef:b;return E?[y].concat(Array.isArray(E)?E:[E]).join(" "):y});return l+"("+g.join(", ")+")"}var wg=function(t){return zl(t)&&t.includes("(")&&t.includes(")")},i_=function(t,n){return r_(t,n??{})},a_=function(t){var n=parseFloat(t.toString()),r=t.toString().replace(String(n),"");return{unitless:!r,value:n,unit:r}},yn=function(t){return function(n){return t+"("+n+")"}},st={filter:function(t){return t!=="auto"?t:JE},backdropFilter:function(t){return t!=="auto"?t:GE},ring:function(t){return YE(st.px(t))},bgClip:function(t){return t==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:t}},transform:function(t){return t==="auto"?WE():t==="auto-gpu"?KE():t},px:function(t){if(t==null)return t;var n=a_(t),r=n.unitless;return r||$o(t)?t+"px":t},fraction:function(t){return!$o(t)||t>1?t:t*100+"%"},float:function(t,n){var r={left:"right",right:"left"};return n.direction==="rtl"?r[t]:t},degree:function(t){if(ug(t)||t==null)return t;var n=zl(t)&&!t.endsWith("deg");return $o(t)||n?t+"deg":t},gradient:i_,blur:yn("blur"),opacity:yn("opacity"),brightness:yn("brightness"),contrast:yn("contrast"),dropShadow:yn("drop-shadow"),grayscale:yn("grayscale"),hueRotate:yn("hue-rotate"),invert:yn("invert"),saturate:yn("saturate"),sepia:yn("sepia"),bgImage:function(t){if(t==null)return t;var n=wg(t)||yg.has(t);return n?t:"url("+t+")"},outline:function(t){var n=String(t)==="0"||String(t)==="none";return t!==null&&n?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:t}},flexDirection:function(t){var n,r=(n=XE[t])!=null?n:{},i=r.space,a=r.divide,o={flexDirection:t};return i&&(o[i]=1),a&&(o[a]=1),o}},z={borderWidths:mn("borderWidths"),borderStyles:mn("borderStyles"),colors:mn("colors"),borders:mn("borders"),radii:mn("radii",st.px),space:mn("space",st.px),spaceT:mn("space",st.px),degreeT:function(t){return{property:t,transform:st.degree}},prop:function(t,n,r){return as({property:t,scale:n},n&&{transform:Ci({scale:n,transform:r})})},propT:function(t,n){return{property:t,transform:n}},sizes:mn("sizes",st.px),sizesT:mn("sizes",st.fraction),shadows:mn("shadows"),logical:qE,blur:mn("blur",st.blur)},Ma={background:z.colors("background"),backgroundColor:z.colors("backgroundColor"),backgroundImage:z.propT("backgroundImage",st.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:st.bgClip},bgSize:z.prop("backgroundSize"),bgPosition:z.prop("backgroundPosition"),bg:z.colors("background"),bgColor:z.colors("backgroundColor"),bgPos:z.prop("backgroundPosition"),bgRepeat:z.prop("backgroundRepeat"),bgAttachment:z.prop("backgroundAttachment"),bgGradient:z.propT("backgroundImage",st.gradient),bgClip:{transform:st.bgClip}};Object.assign(Ma,{bgImage:Ma.backgroundImage,bgImg:Ma.backgroundImage});var nt={border:z.borders("border"),borderWidth:z.borderWidths("borderWidth"),borderStyle:z.borderStyles("borderStyle"),borderColor:z.colors("borderColor"),borderRadius:z.radii("borderRadius"),borderTop:z.borders("borderTop"),borderBlockStart:z.borders("borderBlockStart"),borderTopLeftRadius:z.radii("borderTopLeftRadius"),borderStartStartRadius:z.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:z.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:z.radii("borderTopRightRadius"),borderStartEndRadius:z.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:z.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:z.borders("borderRight"),borderInlineEnd:z.borders("borderInlineEnd"),borderBottom:z.borders("borderBottom"),borderBlockEnd:z.borders("borderBlockEnd"),borderBottomLeftRadius:z.radii("borderBottomLeftRadius"),borderBottomRightRadius:z.radii("borderBottomRightRadius"),borderLeft:z.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:z.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:z.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:z.borders(["borderLeft","borderRight"]),borderInline:z.borders("borderInline"),borderY:z.borders(["borderTop","borderBottom"]),borderBlock:z.borders("borderBlock"),borderTopWidth:z.borderWidths("borderTopWidth"),borderBlockStartWidth:z.borderWidths("borderBlockStartWidth"),borderTopColor:z.colors("borderTopColor"),borderBlockStartColor:z.colors("borderBlockStartColor"),borderTopStyle:z.borderStyles("borderTopStyle"),borderBlockStartStyle:z.borderStyles("borderBlockStartStyle"),borderBottomWidth:z.borderWidths("borderBottomWidth"),borderBlockEndWidth:z.borderWidths("borderBlockEndWidth"),borderBottomColor:z.colors("borderBottomColor"),borderBlockEndColor:z.colors("borderBlockEndColor"),borderBottomStyle:z.borderStyles("borderBottomStyle"),borderBlockEndStyle:z.borderStyles("borderBlockEndStyle"),borderLeftWidth:z.borderWidths("borderLeftWidth"),borderInlineStartWidth:z.borderWidths("borderInlineStartWidth"),borderLeftColor:z.colors("borderLeftColor"),borderInlineStartColor:z.colors("borderInlineStartColor"),borderLeftStyle:z.borderStyles("borderLeftStyle"),borderInlineStartStyle:z.borderStyles("borderInlineStartStyle"),borderRightWidth:z.borderWidths("borderRightWidth"),borderInlineEndWidth:z.borderWidths("borderInlineEndWidth"),borderRightColor:z.colors("borderRightColor"),borderInlineEndColor:z.colors("borderInlineEndColor"),borderRightStyle:z.borderStyles("borderRightStyle"),borderInlineEndStyle:z.borderStyles("borderInlineEndStyle"),borderTopRadius:z.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:z.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:z.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:z.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(nt,{rounded:nt.borderRadius,roundedTop:nt.borderTopRadius,roundedTopLeft:nt.borderTopLeftRadius,roundedTopRight:nt.borderTopRightRadius,roundedTopStart:nt.borderStartStartRadius,roundedTopEnd:nt.borderStartEndRadius,roundedBottom:nt.borderBottomRadius,roundedBottomLeft:nt.borderBottomLeftRadius,roundedBottomRight:nt.borderBottomRightRadius,roundedBottomStart:nt.borderEndStartRadius,roundedBottomEnd:nt.borderEndEndRadius,roundedLeft:nt.borderLeftRadius,roundedRight:nt.borderRightRadius,roundedStart:nt.borderInlineStartRadius,roundedEnd:nt.borderInlineEndRadius,borderStart:nt.borderInlineStart,borderEnd:nt.borderInlineEnd,borderTopStartRadius:nt.borderStartStartRadius,borderTopEndRadius:nt.borderStartEndRadius,borderBottomStartRadius:nt.borderEndStartRadius,borderBottomEndRadius:nt.borderEndEndRadius,borderStartRadius:nt.borderInlineStartRadius,borderEndRadius:nt.borderInlineEndRadius,borderStartWidth:nt.borderInlineStartWidth,borderEndWidth:nt.borderInlineEndWidth,borderStartColor:nt.borderInlineStartColor,borderEndColor:nt.borderInlineEndColor,borderStartStyle:nt.borderInlineStartStyle,borderEndStyle:nt.borderInlineEndStyle});var s_={color:z.colors("color"),textColor:z.colors("color"),fill:z.colors("fill"),stroke:z.colors("stroke")},_u={boxShadow:z.shadows("boxShadow"),mixBlendMode:!0,blendMode:z.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:z.prop("backgroundBlendMode"),opacity:!0};Object.assign(_u,{shadow:_u.boxShadow});var o_={filter:{transform:st.filter},blur:z.blur("--chakra-blur"),brightness:z.propT("--chakra-brightness",st.brightness),contrast:z.propT("--chakra-contrast",st.contrast),hueRotate:z.degreeT("--chakra-hue-rotate"),invert:z.propT("--chakra-invert",st.invert),saturate:z.propT("--chakra-saturate",st.saturate),dropShadow:z.propT("--chakra-drop-shadow",st.dropShadow),backdropFilter:{transform:st.backdropFilter},backdropBlur:z.blur("--chakra-backdrop-blur"),backdropBrightness:z.propT("--chakra-backdrop-brightness",st.brightness),backdropContrast:z.propT("--chakra-backdrop-contrast",st.contrast),backdropHueRotate:z.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:z.propT("--chakra-backdrop-invert",st.invert),backdropSaturate:z.propT("--chakra-backdrop-saturate",st.saturate)},os={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:st.flexDirection},experimental_spaceX:{static:QE,transform:Ci({scale:"space",transform:function(t){return t!==null?{"--chakra-space-x":t}:null}})},experimental_spaceY:{static:ZE,transform:Ci({scale:"space",transform:function(t){return t!=null?{"--chakra-space-y":t}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:z.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:z.space("gap"),rowGap:z.space("rowGap"),columnGap:z.space("columnGap")};Object.assign(os,{flexDir:os.flexDirection});var Sg={gridGap:z.space("gridGap"),gridColumnGap:z.space("gridColumnGap"),gridRowGap:z.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},u_={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:st.outline},outlineOffset:!0,outlineColor:z.colors("outlineColor")},un={width:z.sizesT("width"),inlineSize:z.sizesT("inlineSize"),height:z.sizes("height"),blockSize:z.sizes("blockSize"),boxSize:z.sizes(["width","height"]),minWidth:z.sizes("minWidth"),minInlineSize:z.sizes("minInlineSize"),minHeight:z.sizes("minHeight"),minBlockSize:z.sizes("minBlockSize"),maxWidth:z.sizes("maxWidth"),maxInlineSize:z.sizes("maxInlineSize"),maxHeight:z.sizes("maxHeight"),maxBlockSize:z.sizes("maxBlockSize"),d:z.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:z.propT("float",st.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(un,{w:un.width,h:un.height,minW:un.minWidth,maxW:un.maxWidth,minH:un.minHeight,maxH:un.maxHeight,overscroll:un.overscrollBehavior,overscrollX:un.overscrollBehaviorX,overscrollY:un.overscrollBehaviorY});var l_={listStyleType:!0,listStylePosition:!0,listStylePos:z.prop("listStylePosition"),listStyleImage:!0,listStyleImg:z.prop("listStyleImage")},c_={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},f_={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Wo=function(t,n,r){var i={},a=lg(t,n,{});for(var o in a){var u=o in r&&r[o]!=null;u||(i[o]=a[o])}return i},h_={srOnly:{transform:function(t){return t===!0?c_:t==="focusable"?f_:{}}},layerStyle:{processResult:!0,transform:function(t,n,r){return Wo(n,"layerStyles."+t,r)}},textStyle:{processResult:!0,transform:function(t,n,r){return Wo(n,"textStyles."+t,r)}},apply:{processResult:!0,transform:function(t,n,r){return Wo(n,t,r)}}},fi={position:!0,pos:z.prop("position"),zIndex:z.prop("zIndex","zIndices"),inset:z.spaceT("inset"),insetX:z.spaceT(["left","right"]),insetInline:z.spaceT("insetInline"),insetY:z.spaceT(["top","bottom"]),insetBlock:z.spaceT("insetBlock"),top:z.spaceT("top"),insetBlockStart:z.spaceT("insetBlockStart"),bottom:z.spaceT("bottom"),insetBlockEnd:z.spaceT("insetBlockEnd"),left:z.spaceT("left"),insetInlineStart:z.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:z.spaceT("right"),insetInlineEnd:z.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(fi,{insetStart:fi.insetInlineStart,insetEnd:fi.insetInlineEnd});var p_={ring:{transform:st.ring},ringColor:z.colors("--chakra-ring-color"),ringOffset:z.prop("--chakra-ring-offset-width"),ringOffsetColor:z.colors("--chakra-ring-offset-color"),ringInset:z.prop("--chakra-ring-inset")},dt={margin:z.spaceT("margin"),marginTop:z.spaceT("marginTop"),marginBlockStart:z.spaceT("marginBlockStart"),marginRight:z.spaceT("marginRight"),marginInlineEnd:z.spaceT("marginInlineEnd"),marginBottom:z.spaceT("marginBottom"),marginBlockEnd:z.spaceT("marginBlockEnd"),marginLeft:z.spaceT("marginLeft"),marginInlineStart:z.spaceT("marginInlineStart"),marginX:z.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:z.spaceT("marginInline"),marginY:z.spaceT(["marginTop","marginBottom"]),marginBlock:z.spaceT("marginBlock"),padding:z.space("padding"),paddingTop:z.space("paddingTop"),paddingBlockStart:z.space("paddingBlockStart"),paddingRight:z.space("paddingRight"),paddingBottom:z.space("paddingBottom"),paddingBlockEnd:z.space("paddingBlockEnd"),paddingLeft:z.space("paddingLeft"),paddingInlineStart:z.space("paddingInlineStart"),paddingInlineEnd:z.space("paddingInlineEnd"),paddingX:z.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:z.space("paddingInline"),paddingY:z.space(["paddingTop","paddingBottom"]),paddingBlock:z.space("paddingBlock")};Object.assign(dt,{m:dt.margin,mt:dt.marginTop,mr:dt.marginRight,me:dt.marginInlineEnd,marginEnd:dt.marginInlineEnd,mb:dt.marginBottom,ml:dt.marginLeft,ms:dt.marginInlineStart,marginStart:dt.marginInlineStart,mx:dt.marginX,my:dt.marginY,p:dt.padding,pt:dt.paddingTop,py:dt.paddingY,px:dt.paddingX,pb:dt.paddingBottom,pl:dt.paddingLeft,ps:dt.paddingInlineStart,paddingStart:dt.paddingInlineStart,pr:dt.paddingRight,pe:dt.paddingInlineEnd,paddingEnd:dt.paddingInlineEnd});var d_={textDecorationColor:z.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:z.shadows("textShadow")},m_={clipPath:!0,transform:z.propT("transform",st.transform),transformOrigin:!0,translateX:z.spaceT("--chakra-translate-x"),translateY:z.spaceT("--chakra-translate-y"),skewX:z.degreeT("--chakra-skew-x"),skewY:z.degreeT("--chakra-skew-y"),scaleX:z.prop("--chakra-scale-x"),scaleY:z.prop("--chakra-scale-y"),scale:z.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:z.degreeT("--chakra-rotate")},g_={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:z.prop("transitionDuration","transition.duration"),transitionProperty:z.prop("transitionProperty","transition.property"),transitionTimingFunction:z.prop("transitionTimingFunction","transition.easing")},x_={fontFamily:z.prop("fontFamily","fonts"),fontSize:z.prop("fontSize","fontSizes",st.px),fontWeight:z.prop("fontWeight","fontWeights"),lineHeight:z.prop("lineHeight","lineHeights"),letterSpacing:z.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"},isTruncated:{transform:function(t){if(t===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}},v_={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:z.spaceT("scrollMargin"),scrollMarginTop:z.spaceT("scrollMarginTop"),scrollMarginBottom:z.spaceT("scrollMarginBottom"),scrollMarginLeft:z.spaceT("scrollMarginLeft"),scrollMarginRight:z.spaceT("scrollMarginRight"),scrollMarginX:z.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:z.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:z.spaceT("scrollPadding"),scrollPaddingTop:z.spaceT("scrollPaddingTop"),scrollPaddingBottom:z.spaceT("scrollPaddingBottom"),scrollPaddingLeft:z.spaceT("scrollPaddingLeft"),scrollPaddingRight:z.spaceT("scrollPaddingRight"),scrollPaddingX:z.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:z.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Jf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b_(e,t){if(e){if(typeof e=="string")return Jf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jf(e,t)}}function y_(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=b_(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
108
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var It={hover:function(t,n){return t+":hover "+n+", "+t+"[data-hover] "+n},focus:function(t,n){return t+":focus "+n+", "+t+"[data-focus] "+n},focusVisible:function(t,n){return t+":focus-visible "+n},focusWithin:function(t,n){return t+":focus-within "+n},active:function(t,n){return t+":active "+n+", "+t+"[data-active] "+n},disabled:function(t,n){return t+":disabled "+n+", "+t+"[data-disabled] "+n},invalid:function(t,n){return t+":invalid "+n+", "+t+"[data-invalid] "+n},checked:function(t,n){return t+":checked "+n+", "+t+"[data-checked] "+n},placeholderShown:function(t,n){return t+":placeholder-shown "+n}},qn=function(t){return Cg(function(n){return t(n,"&")},"[role=group]","[data-group]",".group")},Pn=function(t){return Cg(function(n){return t(n,"~ &")},"[data-peer]",".peer")},Cg=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];return r.map(t).join(", ")},Ul={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:qn(It.hover),_peerHover:Pn(It.hover),_groupFocus:qn(It.focus),_peerFocus:Pn(It.focus),_groupFocusVisible:qn(It.focusVisible),_peerFocusVisible:Pn(It.focusVisible),_groupActive:qn(It.active),_peerActive:Pn(It.active),_groupDisabled:qn(It.disabled),_peerDisabled:Pn(It.disabled),_groupInvalid:qn(It.invalid),_peerInvalid:Pn(It.invalid),_groupChecked:qn(It.checked),_peerChecked:Pn(It.checked),_groupFocusWithin:qn(It.focusWithin),_peerFocusWithin:Pn(It.focusWithin),_peerPlaceholderShown:Pn(It.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},w_=hg(Ul),ql=gr({},Ma,nt,s_,os,un,o_,p_,u_,Sg,h_,fi,_u,dt,v_,x_,d_,m_,l_,g_);Object.assign({},dt,un,os,Sg,fi);var S_=[].concat(hg(ql),w_),C_=as({},ql,Ul),k_=function(t){return t in C_},E_=function(t){return function(n){if(!n.__breakpoints)return t;var r=n.__breakpoints,i=r.isResponsive,a=r.toArrayValue,o=r.media,u={};for(var l in t){var c=On(t[l],n);if(c!=null){if(c=Dr(c)&&i(c)?a(c):c,!Array.isArray(c)){u[l]=c;continue}for(var p=c.slice(0,o.length).length,f=0;f<p;f+=1){var d=o==null?void 0:o[f];if(!d){u[l]=c[f];continue}u[d]=u[d]||{},c[f]!=null&&(u[d][l]=c[f])}}}return u}},__=function(t,n){return t.startsWith("--")&&zl(n)&&!ug(n)},I_=function(t,n){var r,i;if(n==null)return n;var a=function(f){var d,g;return(d=t.__cssMap)==null||(g=d[f])==null?void 0:g.varRef},o=function(f){var d;return(d=a(f))!=null?d:f},u=n.split(",").map(function(p){return p.trim()}),l=u[0],c=u[1];return n=(r=(i=a(l))!=null?i:o(c))!=null?r:o(n),n};function T_(e){var t=e.configs,n=t===void 0?{}:t,r=e.pseudos,i=r===void 0?{}:r,a=e.theme,o=function u(l,c){c===void 0&&(c=!1);var p=On(l,a),f=E_(p)(a),d={};for(var g in f){var x,w,S,b,k,E=f[g],O=On(E,a);g in i&&(g=i[g]),__(g,O)&&(O=I_(a,O));var y=n[g];if(y===!0&&(y={property:g}),Dr(O)){var m;d[g]=(m=d[g])!=null?m:{},d[g]=gr({},d[g],u(O,!0));continue}var _=(x=(w=y)==null||w.transform==null?void 0:w.transform(O,a,p))!=null?x:O;_=(S=y)!=null&&S.processResult?u(_,!0):_;var V=On((b=y)==null?void 0:b.property,a);if(!c&&(k=y)!=null&&k.static){var M=On(y.static,a);d=gr({},d,M)}if(V&&Array.isArray(V)){for(var P=y_(V),j;!(j=P()).done;){var W=j.value;d[W]=_}continue}if(V){V==="&"&&Dr(_)?d=gr({},d,_):d[V]=_;continue}if(Dr(_)){d=gr({},d,_);continue}d[g]=_}return d};return o}var A_=function(t){return function(n){var r=T_({theme:n,pseudos:Ul,configs:ql});return r(t)}};function kg(e){return Dr(e)&&e.reference?e.reference:String(e)}var Ns=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];return r.map(kg).join(" "+t+" ").replace(/calc/g,"")},Gf=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"calc("+Ns.apply(void 0,["+"].concat(n))+")"},Yf=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"calc("+Ns.apply(void 0,["-"].concat(n))+")"},Iu=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"calc("+Ns.apply(void 0,["*"].concat(n))+")"},Xf=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"calc("+Ns.apply(void 0,["/"].concat(n))+")"},Qf=function(t){var n=kg(t);return n!=null&&!Number.isNaN(parseFloat(n))?String(n).startsWith("-")?String(n).slice(1):"-"+n:Iu(n,-1)},ri=Object.assign(function(e){return{add:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return ri(Gf.apply(void 0,[e].concat(r)))},subtract:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return ri(Yf.apply(void 0,[e].concat(r)))},multiply:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return ri(Iu.apply(void 0,[e].concat(r)))},divide:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return ri(Xf.apply(void 0,[e].concat(r)))},negate:function(){return ri(Qf(e))},toString:function(){return e.toString()}}},{add:Gf,subtract:Yf,multiply:Iu,divide:Xf,negate:Qf}),Ko,Zf;function P_(){if(Zf)return Ko;Zf=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(a,o){if(a===o)return!0;if(a&&o&&typeof a=="object"&&typeof o=="object"){if(a.constructor!==o.constructor)return!1;var u,l,c;if(Array.isArray(a)){if(u=a.length,u!=o.length)return!1;for(l=u;l--!==0;)if(!i(a[l],o[l]))return!1;return!0}var p;if(t&&a instanceof Map&&o instanceof Map){if(a.size!==o.size)return!1;for(p=a.entries();!(l=p.next()).done;)if(!o.has(l.value[0]))return!1;for(p=a.entries();!(l=p.next()).done;)if(!i(l.value[1],o.get(l.value[0])))return!1;return!0}if(n&&a instanceof Set&&o instanceof Set){if(a.size!==o.size)return!1;for(p=a.entries();!(l=p.next()).done;)if(!o.has(l.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(o)){if(u=a.length,u!=o.length)return!1;for(l=u;l--!==0;)if(a[l]!==o[l])return!1;return!0}if(a.constructor===RegExp)return a.source===o.source&&a.flags===o.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===o.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===o.toString();if(c=Object.keys(a),u=c.length,u!==Object.keys(o).length)return!1;for(l=u;l--!==0;)if(!Object.prototype.hasOwnProperty.call(o,c[l]))return!1;if(e&&a instanceof Element)return!1;for(l=u;l--!==0;)if(!((c[l]==="_owner"||c[l]==="__v"||c[l]==="__o")&&a.$$typeof)&&!i(a[c[l]],o[c[l]]))return!1;return!0}return a!==a&&o!==o}return Ko=function(o,u){try{return i(o,u)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}},Ko}var N_=P_();const R_=Li(N_);function Tu(){return Tu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tu.apply(this,arguments)}function O_(){var e=Ae.useContext(h0.ThemeContext);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var Eg=Hl({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "}),_g=Eg[0],Wl=Eg[1];function Rs(e){return $l(e,["styleConfig","size","variant","colorScheme"])}function L_(){var e=$E(),t=O_();return Tu({},e,{theme:t})}function Kl(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var V_=new Set([].concat(S_,["textStyle","layerStyle","apply","isTruncated","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),D_=new Set(["htmlWidth","htmlHeight","htmlSize"]),F_=function(t){return D_.has(t)||!V_.has(t)},M_=["theme","css","__css","sx"],j_=["baseStyle"],B_=function(t){var n=t.baseStyle;return function(r){r.theme;var i=r.css,a=r.__css,o=r.sx,u=Kl(r,M_),l=cg(u,function(d,g){return k_(g)}),c=On(n,r),p=Object.assign({},a,c,fg(l),o),f=A_(p)(r.theme);return i?[f,i]:f}};function Jo(e,t){var n=t??{},r=n.baseStyle,i=Kl(n,j_);i.shouldForwardProp||(i.shouldForwardProp=F_);var a=B_({baseStyle:r});return p0(e,i)(a)}function ir(e){return Ae.forwardRef(e)}var z_=["styleConfig"];function Ig(e,t,n){var r;t===void 0&&(t={}),n===void 0&&(n={});var i=t,a=i.styleConfig,o=Kl(i,z_),u=L_(),l=u.theme,c=u.colorMode,p=lg(l,"components."+e),f=a||p,d=gr({theme:l,colorMode:c},(r=f==null?void 0:f.defaultProps)!=null?r:{},fg($l(o,["children"]))),g=F.useRef({});if(f){var x,w,S,b,k,E,O=On((x=f.baseStyle)!=null?x:{},d),y=On((w=(S=f.variants)==null?void 0:S[d.variant])!=null?w:{},d),m=On((b=(k=f.sizes)==null?void 0:k[d.size])!=null?b:{},d),_=gr({},O,m,y);(E=n)!=null&&E.isMultiPart&&f.parts&&f.parts.forEach(function(M){var P;_[M]=(P=_[M])!=null?P:{}});var V=R_(g.current,_);V||(g.current=_)}return g.current}function Jl(e,t){return Ig(e,t,{isMultiPart:!0})}function $_(){var e=new Map;return new Proxy(Jo,{apply:function(n,r,i){return Jo.apply(void 0,i)},get:function(n,r){return e.has(r)||e.set(r,Jo(r)),e.get(r)}})}var tn=$_();function hi(){return hi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hi.apply(this,arguments)}function H_(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var U_=["as","viewBox","color","focusable","children","className","__css"],eh={path:Ae.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},Ae.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),Ae.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),Ae.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Tg=ir(function(e,t){var n=e.as,r=e.viewBox,i=e.color,a=i===void 0?"currentColor":i,o=e.focusable,u=o===void 0?!1:o,l=e.children,c=e.className,p=e.__css,f=H_(e,U_),d=rr("chakra-icon",c),g=hi({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a},p),x={ref:t,focusable:u,className:d,__css:g},w=r??eh.viewBox;if(n&&typeof n!="string")return Ae.createElement(tn.svg,hi({as:n},x,f));var S=l??eh.path;return Ae.createElement(tn.svg,hi({verticalAlign:"middle",viewBox:w},x,f),S)});hn&&(Tg.displayName="Icon");var q_=Tg,Nn=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},Gl={measureLayout:Nn(["layout","layoutId","drag","_layoutResetTransform"]),animation:Nn(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:Nn(["exit"]),drag:Nn(["drag","dragControls"]),focus:Nn(["whileFocus"]),hover:Nn(["whileHover","onHoverStart","onHoverEnd"]),tap:Nn(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Nn(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:Nn(["layout","layoutId"])};function W_(e){for(var t in e){var n=e[t];n!==null&&(Gl[t].Component=n)}}var K_={},Os=function(){},Jt=function(){};K_.NODE_ENV!=="production"&&(Os=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Jt=function(e,t){if(!e)throw new Error(t)});var Ag=F.createContext({strict:!1}),J_={},Pg=Object.keys(Gl),G_=Pg.length;function Y_(e,t,n){var r=[],i=F.useContext(Ag);if(!t)return null;J_.NODE_ENV!=="production"&&n&&i.strict&&Jt(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var a=0;a<G_;a++){var o=Pg[a],u=Gl[o],l=u.isEnabled,c=u.Component;l(e)&&c&&r.push(Ae.createElement(c,pe({key:o},e,{visualElement:t})))}return r}var Ls=F.createContext({transformPagePoint:function(e){return e},isStatic:!1}),Vs=F.createContext({});function X_(){return F.useContext(Vs).visualElement}var Fi=F.createContext(null);function ki(e){var t=F.useRef(null);return t.current===null&&(t.current=e()),t.current}function Ng(){var e=F.useContext(Fi);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=tI();F.useEffect(function(){return r(i)},[]);var a=function(){return n==null?void 0:n(i)};return!t&&n?[!1,a]:[!0]}function Q_(e){return e===null?!0:e.isPresent}var Z_=0,eI=function(){return Z_++},tI=function(){return ki(eI)},nI=F.createContext(null),Mi=typeof window<"u",th=Mi?F.useLayoutEffect:F.useEffect;function rI(e){var t=e.layoutId,n=F.useContext(nI);return n&&t!==void 0?n+"-"+t:t}function iI(e,t,n,r){var i=F.useContext(Ls),a=F.useContext(Ag),o=X_(),u=F.useContext(Fi),l=rI(n),c=F.useRef(void 0);r||(r=a.renderer),!c.current&&r&&(c.current=r(e,{visualState:t,parent:o,props:pe(pe({},n),{layoutId:l}),presenceId:u==null?void 0:u.id,blockInitialAnimation:(u==null?void 0:u.initial)===!1}));var p=c.current;return th(function(){p&&(p.setProps(pe(pe(pe({},i),n),{layoutId:l})),p.isPresent=Q_(u),p.isPresenceRoot=!o||o.presenceId!==(u==null?void 0:u.id),p.syncRender())}),F.useEffect(function(){var f;p&&((f=p.animationState)===null||f===void 0||f.animateChanges())}),th(function(){return function(){return p==null?void 0:p.notifyUnmount()}},[]),p}function Au(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function aI(e,t,n){return F.useCallback(function(r){var i;r&&((i=e.mount)===null||i===void 0||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Au(n)&&(n.current=r))},[t])}function Rg(e){return Array.isArray(e)}function xn(e){return typeof e=="string"||Rg(e)}function sI(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function oI(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function Og(e,t,n,r,i){var a;return r===void 0&&(r={}),i===void 0&&(i={}),typeof t=="string"&&(t=(a=e.variants)===null||a===void 0?void 0:a[t]),typeof t=="function"?t(n??e.custom,r,i):t}function Ds(e,t,n){var r=e.getProps();return Og(r,t,n??r.custom,sI(e),oI(e))}function Fs(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||xn(e.initial)||xn(e.animate)||xn(e.whileHover)||xn(e.whileDrag)||xn(e.whileTap)||xn(e.whileFocus)||xn(e.exit)}function Lg(e){return!!(Fs(e)||e.variants)}function uI(e,t){if(Fs(e)){var n=e.initial,r=e.animate;return{initial:n===!1||xn(n)?n:void 0,animate:xn(r)?r:void 0}}return e.inherit!==!1?t:{}}function lI(e,t){var n=uI(e,F.useContext(Vs)),r=n.initial,i=n.animate;return F.useMemo(function(){return{initial:r,animate:i}},t?[nh(r),nh(i)]:[])}function nh(e){return Array.isArray(e)?e.join(" "):e}function cI(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.useRender,i=e.useVisualState,a=e.Component;t&&W_(t);function o(u,l){var c=F.useContext(Ls).isStatic,p=null,f=lI(u,c),d=i(u,c);return!c&&Mi&&(f.visualElement=iI(a,d,u,n),p=Y_(u,f.visualElement,t)),Ae.createElement(Ae.Fragment,null,Ae.createElement(Vs.Provider,{value:f},r(a,u,aI(d,f.visualElement,l),d,c)),p)}return F.forwardRef(o)}function fI(e){function t(r,i){return i===void 0&&(i={}),cI(e(r,i))}var n=new Map;return new Proxy(t,{get:function(r,i){return n.has(i)||n.set(i,t(i)),n.get(i)}})}var hI=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Yl(e){return typeof e!="string"||e.includes("-")?!1:!!(hI.indexOf(e)>-1||/[A-Z]/.test(e))}var pi={};function pI(e){for(var t in e)pi[t]=e[t]}var dI=["","X","Y","Z"],mI=["translate","scale","rotate","skew"],Ei=["transformPerspective","x","y","z"];mI.forEach(function(e){return dI.forEach(function(t){return Ei.push(e+t)})});function gI(e,t){return Ei.indexOf(e)-Ei.indexOf(t)}var xI=new Set(Ei);function Ms(e){return xI.has(e)}var vI=new Set(["originX","originY","originZ"]);function Vg(e){return vI.has(e)}function Dg(e,t){var n=t.layout,r=t.layoutId;return Ms(e)||Vg(e)||(n||r!==void 0)&&(!!pi[e]||e==="opacity")}var Xn=function(e){return e!==null&&typeof e=="object"&&e.getVelocity},bI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function yI(e,t,n,r){var i=e.transform,a=e.transformKeys,o=t.enableHardwareAcceleration,u=o===void 0?!0:o,l=t.allowTransformNone,c=l===void 0?!0:l,p="";a.sort(gI);for(var f=!1,d=a.length,g=0;g<d;g++){var x=a[g];p+=(bI[x]||x)+"("+i[x]+") ",x==="z"&&(f=!0)}return!f&&u?p+="translateZ(0)":p=p.trim(),r?p=r(i,n?"":p):c&&n&&(p="none"),p}function wI(e){var t=e.originX,n=t===void 0?"50%":t,r=e.originY,i=r===void 0?"50%":r,a=e.originZ,o=a===void 0?0:a;return n+" "+i+" "+o}function Fg(e){return e.startsWith("--")}var SI=function(e,t){return t&&typeof e=="number"?t.transform(e):e},Mg=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},di=function(e){return e%1?Number(e.toFixed(5)):e},_i=/(-)?([\d]*\.?[\d])+/g,Pu=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,CI=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function ji(e){return typeof e=="string"}var Sr={test:function(e){return typeof e=="number"},parse:parseFloat,transform:function(e){return e}},mi=pe(pe({},Sr),{transform:Mg(0,1)}),ka=pe(pe({},Sr),{default:1}),Bi=function(e){return{test:function(t){return ji(t)&&t.endsWith(e)&&t.split(" ").length===1},parse:parseFloat,transform:function(t){return""+t+e}}},Wn=Bi("deg"),Fr=Bi("%"),ze=Bi("px"),kI=Bi("vh"),EI=Bi("vw"),rh=pe(pe({},Fr),{parse:function(e){return Fr.parse(e)/100},transform:function(e){return Fr.transform(e*100)}}),Xl=function(e,t){return function(n){return!!(ji(n)&&CI.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},jg=function(e,t,n){return function(r){var i;if(!ji(r))return r;var a=r.match(_i),o=a[0],u=a[1],l=a[2],c=a[3];return i={},i[e]=parseFloat(o),i[t]=parseFloat(u),i[n]=parseFloat(l),i.alpha=c!==void 0?parseFloat(c):1,i}},Rr={test:Xl("hsl","hue"),parse:jg("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha,a=i===void 0?1:i;return"hsla("+Math.round(t)+", "+Fr.transform(di(n))+", "+Fr.transform(di(r))+", "+di(mi.transform(a))+")"}},_I=Mg(0,255),Go=pe(pe({},Sr),{transform:function(e){return Math.round(_I(e))}}),Or={test:Xl("rgb","red"),parse:jg("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha,a=i===void 0?1:i;return"rgba("+Go.transform(t)+", "+Go.transform(n)+", "+Go.transform(r)+", "+di(mi.transform(a))+")"}};function II(e){var t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Nu={test:Xl("#"),parse:II,transform:Or.transform},Dt={test:function(e){return Or.test(e)||Nu.test(e)||Rr.test(e)},parse:function(e){return Or.test(e)?Or.parse(e):Rr.test(e)?Rr.parse(e):Nu.parse(e)},transform:function(e){return ji(e)?e:e.hasOwnProperty("red")?Or.transform(e):Rr.transform(e)}},Bg="${c}",zg="${n}";function TI(e){var t,n,r,i;return isNaN(e)&&ji(e)&&((n=(t=e.match(_i))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(Pu))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function $g(e){var t=[],n=0,r=e.match(Pu);r&&(n=r.length,e=e.replace(Pu,Bg),t.push.apply(t,r.map(Dt.parse)));var i=e.match(_i);return i&&(e=e.replace(_i,zg),t.push.apply(t,i.map(Sr.parse))),{values:t,numColors:n,tokenised:e}}function Hg(e){return $g(e).values}function Ug(e){var t=$g(e),n=t.values,r=t.numColors,i=t.tokenised,a=n.length;return function(o){for(var u=i,l=0;l<a;l++)u=u.replace(l<r?Bg:zg,l<r?Dt.transform(o[l]):di(o[l]));return u}}var AI=function(e){return typeof e=="number"?0:e};function PI(e){var t=Hg(e),n=Ug(e);return n(t.map(AI))}var Fn={test:TI,parse:Hg,createTransformer:Ug,getAnimatableNone:PI},NI=new Set(["brightness","contrast","saturate","opacity"]);function RI(e){var t=e.slice(0,-1).split("("),n=t[0],r=t[1];if(n==="drop-shadow")return e;var i=(r.match(_i)||[])[0];if(!i)return e;var a=r.replace(i,""),o=NI.has(n)?1:0;return i!==r&&(o*=100),n+"("+o+a+")"}var OI=/([a-z-]*)\(.*?\)/g,Ru=pe(pe({},Fn),{getAnimatableNone:function(e){var t=e.match(OI);return t?t.map(RI).join(" "):e}}),ih=pe(pe({},Sr),{transform:Math.round}),qg={borderWidth:ze,borderTopWidth:ze,borderRightWidth:ze,borderBottomWidth:ze,borderLeftWidth:ze,borderRadius:ze,radius:ze,borderTopLeftRadius:ze,borderTopRightRadius:ze,borderBottomRightRadius:ze,borderBottomLeftRadius:ze,width:ze,maxWidth:ze,height:ze,maxHeight:ze,size:ze,top:ze,right:ze,bottom:ze,left:ze,padding:ze,paddingTop:ze,paddingRight:ze,paddingBottom:ze,paddingLeft:ze,margin:ze,marginTop:ze,marginRight:ze,marginBottom:ze,marginLeft:ze,rotate:Wn,rotateX:Wn,rotateY:Wn,rotateZ:Wn,scale:ka,scaleX:ka,scaleY:ka,scaleZ:ka,skew:Wn,skewX:Wn,skewY:Wn,distance:ze,translateX:ze,translateY:ze,translateZ:ze,x:ze,y:ze,z:ze,perspective:ze,transformPerspective:ze,opacity:mi,originX:rh,originY:rh,originZ:ze,zIndex:ih,fillOpacity:mi,strokeOpacity:mi,numOctaves:ih};function Ql(e,t,n,r,i,a,o,u){var l,c=e.style,p=e.vars,f=e.transform,d=e.transformKeys,g=e.transformOrigin;d.length=0;var x=!1,w=!1,S=!0;for(var b in t){var k=t[b];if(Fg(b)){p[b]=k;continue}var E=qg[b],O=SI(k,E);if(Ms(b)){if(x=!0,f[b]=O,d.push(b),!S)continue;k!==((l=E.default)!==null&&l!==void 0?l:0)&&(S=!1)}else if(Vg(b))g[b]=O,w=!0;else if(n!=null&&n.isHydrated&&(r!=null&&r.isHydrated)&&pi[b]){var y=pi[b].process(k,r,n),m=pi[b].applyTo;if(m)for(var _=m.length,V=0;V<_;V++)c[m[V]]=y;else c[b]=y}else c[b]=O}r&&n&&o&&u?(c.transform=o(r.deltaFinal,r.treeScale,x?f:void 0),a&&(c.transform=a(f,c.transform)),c.transformOrigin=u(r)):(x&&(c.transform=yI(e,i,S,a)),w&&(c.transformOrigin=wI(g)))}var Zl=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function Wg(e,t,n){for(var r in t)!Xn(t[r])&&!Dg(r,n)&&(e[r]=t[r])}function LI(e,t,n){var r=e.transformTemplate;return F.useMemo(function(){var i=Zl();Ql(i,t,void 0,void 0,{enableHardwareAcceleration:!n},r);var a=i.vars,o=i.style;return pe(pe({},a),o)},[t])}function VI(e,t,n){var r=e.style||{},i={};return Wg(i,r,e),Object.assign(i,LI(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function DI(e,t,n){var r={},i=VI(e,t,n);return e.drag&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":"pan-"+(e.drag==="x"?"y":"x")),r.style=i,r}function FI(e){var t={};return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var MI=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,jI=FI(function(e){return MI.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const BI=Object.freeze(Object.defineProperty({__proto__:null,default:jI},Symbol.toStringTag,{value:"Module"})),zI=ob(BI);var $I=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function us(e){return $I.has(e)}var Kg=function(e){return!us(e)};try{var HI=zI.default;Kg=function(e){return e.startsWith("on")?!us(e):HI(e)}}catch{}function UI(e,t,n){var r={};for(var i in e)(Kg(i)||n===!0&&us(i)||!t&&!us(i))&&(r[i]=e[i]);return r}function ah(e,t,n){return typeof e=="string"?e:ze.transform(t+n*e)}function qI(e,t,n){var r=ah(t,e.x,e.width),i=ah(n,e.y,e.height);return r+" "+i}var Yo=function(e,t){return ze.transform(e*t)},WI={offset:"strokeDashoffset",array:"strokeDasharray"};function KI(e,t,n,r,i,a){r===void 0&&(r=1),i===void 0&&(i=0);var o=WI;e[o.offset]=Yo(-i,t);var u=Yo(n,t),l=Yo(r,t);e[o.array]=u+" "+l}function ec(e,t,n,r,i,a,o,u){var l=t.attrX,c=t.attrY,p=t.originX,f=t.originY,d=t.pathLength,g=t.pathSpacing,x=g===void 0?1:g,w=t.pathOffset,S=w===void 0?0:w,b=nn(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);Ql(e,b,n,r,i,a,o,u),e.attrs=e.style,e.style={};var k=e.attrs,E=e.style,O=e.dimensions,y=e.totalPathLength;k.transform&&(O&&(E.transform=k.transform),delete k.transform),O&&(p!==void 0||f!==void 0||E.transform)&&(E.transformOrigin=qI(O,p!==void 0?p:.5,f!==void 0?f:.5)),l!==void 0&&(k.x=l),c!==void 0&&(k.y=c),y!==void 0&&d!==void 0&&KI(k,y,d,x,S)}var Jg=function(){return pe(pe({},Zl()),{attrs:{}})};function JI(e,t){var n=F.useMemo(function(){var i=Jg();return ec(i,t,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),pe(pe({},i.attrs),{style:pe({},i.style)})},[t]);if(e.style){var r={};Wg(r,e.style,e),n.style=pe(pe({},r),n.style)}return n}function GI(e){e===void 0&&(e=!1);var t=function(n,r,i,a,o){var u=a.latestValues,l=Yl(n)?JI:DI,c=l(r,u,o),p=UI(r,typeof n=="string",e),f=pe(pe(pe({},p),c),{ref:i});return F.createElement(n,f)};return t}var YI=/([a-z])([A-Z])/g,XI="$1-$2",Gg=function(e){return e.replace(YI,XI).toLowerCase()};function Yg(e,t){var n=t.style,r=t.vars;Object.assign(e.style,n);for(var i in r)e.style.setProperty(i,r[i])}var Xg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function Qg(e,t){Yg(e,t);for(var n in t.attrs)e.setAttribute(Xg.has(n)?n:Gg(n),t.attrs[n])}function tc(e){var t=e.style,n={};for(var r in t)(Xn(t[r])||Dg(r,e))&&(n[r]=t[r]);return n}function Zg(e){var t=tc(e);for(var n in e)if(Xn(e[n])){var r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function nc(e){return typeof e=="object"&&typeof e.start=="function"}var Ii=function(e){return Array.isArray(e)},QI=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},ZI=function(e){return Ii(e)?e[e.length-1]||0:e};function eT(e){var t=Xn(e)?e.get():e;return QI(t)?t.toValue():t}function sh(e,t,n,r){var i=e.scrapeMotionValuesFromProps,a=e.createRenderState,o=e.onMount,u={latestValues:tT(t,n,r,i),renderState:a()};return o&&(u.mount=function(l){return o(t,l,u)}),u}var ex=function(e){return function(t,n){var r=F.useContext(Vs),i=F.useContext(Fi);return n?sh(e,t,r,i):ki(function(){return sh(e,t,r,i)})}};function tT(e,t,n,r){var i={},a=(n==null?void 0:n.initial)===!1,o=r(e);for(var u in o)i[u]=eT(o[u]);var l=e.initial,c=e.animate,p=Fs(e),f=Lg(e);t&&f&&!p&&e.inherit!==!1&&(l??(l=t.initial),c??(c=t.animate));var d=a||l===!1?c:l;if(d&&typeof d!="boolean"&&!nc(d)){var g=Array.isArray(d)?d:[d];g.forEach(function(x){var w=Og(e,x);if(w){var S=w.transitionEnd;w.transition;var b=nn(w,["transitionEnd","transition"]);for(var k in b)i[k]=b[k];for(var k in S)i[k]=S[k]}})}return i}var nT={useVisualState:ex({scrapeMotionValuesFromProps:Zg,createRenderState:Jg,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}rT(t)&&(r.totalPathLength=t.getTotalLength()),ec(r,i,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),Qg(t,r)}})};function rT(e){return e.tagName==="path"}var iT={useVisualState:ex({scrapeMotionValuesFromProps:tc,createRenderState:Zl})};function aT(e,t,n,r){var i=t.forwardMotionProps,a=i===void 0?!1:i,o=Yl(e)?nT:iT;return pe(pe({},o),{preloadedFeatures:n,useRender:GI(a),createVisualElement:r,Component:e})}var wt;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.Exit="exit"})(wt||(wt={}));function rc(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Ou(e,t,n,r){F.useEffect(function(){var i=e.current;if(n&&i)return rc(i,t,n,r)},[e,t,n,r])}function sT(e){var t=e.whileFocus,n=e.visualElement,r=function(){var a;(a=n.animationState)===null||a===void 0||a.setActive(wt.Focus,!0)},i=function(){var a;(a=n.animationState)===null||a===void 0||a.setActive(wt.Focus,!1)};Ou(n,"focus",t?r:void 0),Ou(n,"blur",t?i:void 0)}function tx(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function nx(e){var t=!!e.touches;return t}function oT(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var uT={pageX:0,pageY:0};function lT(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||uT;return{x:r[t+"X"],y:r[t+"Y"]}}function cT(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function ic(e,t){return t===void 0&&(t="page"),{point:nx(e)?lT(e,t):cT(e,t)}}function fT(e){return ic(e,"client")}var rx=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,ic(r))};return t?oT(n):n},hT=function(){return Mi&&window.onpointerdown===null},pT=function(){return Mi&&window.ontouchstart===null},dT=function(){return Mi&&window.onmousedown===null},mT={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},gT={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function ix(e){return hT()?e:pT()?gT[e]:dT()?mT[e]:e}function Mr(e,t,n,r){return rc(e,ix(t),rx(n,t==="pointerdown"),r)}function ls(e,t,n,r){return Ou(e,ix(t),n&&rx(n,t==="pointerdown"),r)}function ax(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var oh=ax("dragHorizontal"),uh=ax("dragVertical");function sx(e){var t=!1;if(e==="y")t=uh();else if(e==="x")t=oh();else{var n=oh(),r=uh();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function ox(){var e=sx(!0);return e?(e(),!1):!0}function lh(e,t,n){return function(r,i){var a;!tx(r)||ox()||(n==null||n(r,i),(a=e.animationState)===null||a===void 0||a.setActive(wt.Hover,t))}}function xT(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;ls(i,"pointerenter",t||r?lh(i,!0,t):void 0),ls(i,"pointerleave",n||r?lh(i,!1,n):void 0)}var ux=function(e,t){return t?e===t?!0:ux(e,t.parentElement):!1};function ac(e){return F.useEffect(function(){return function(){return e()}},[])}var cs=function(e,t,n){return Math.min(Math.max(n,e),t)},Xo=.001,vT=.01,ch=10,bT=.05,yT=1;function wT(e){var t=e.duration,n=t===void 0?800:t,r=e.bounce,i=r===void 0?.25:r,a=e.velocity,o=a===void 0?0:a,u=e.mass,l=u===void 0?1:u,c,p;Os(n<=ch*1e3,"Spring duration must be 10 seconds or less");var f=1-i;f=cs(bT,yT,f),n=cs(vT,ch,n/1e3),f<1?(c=function(w){var S=w*f,b=S*n,k=S-o,E=Lu(w,f),O=Math.exp(-b);return Xo-k/E*O},p=function(w){var S=w*f,b=S*n,k=b*o+o,E=Math.pow(f,2)*Math.pow(w,2)*n,O=Math.exp(-b),y=Lu(Math.pow(w,2),f),m=-c(w)+Xo>0?-1:1;return m*((k-E)*O)/y}):(c=function(w){var S=Math.exp(-w*n),b=(w-o)*n+1;return-Xo+S*b},p=function(w){var S=Math.exp(-w*n),b=(o-w)*(n*n);return S*b});var d=5/n,g=CT(c,p,d);if(n=n*1e3,isNaN(g))return{stiffness:100,damping:10,duration:n};var x=Math.pow(g,2)*l;return{stiffness:x,damping:f*2*Math.sqrt(l*x),duration:n}}var ST=12;function CT(e,t,n){for(var r=n,i=1;i<ST;i++)r=r-e(r)/t(r);return r}function Lu(e,t){return e*Math.sqrt(1-t*t)}var kT=["duration","bounce"],ET=["stiffness","damping","mass"];function fh(e,t){return t.some(function(n){return e[n]!==void 0})}function _T(e){var t=pe({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!fh(e,ET)&&fh(e,kT)){var n=wT(e);t=pe(pe(pe({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function sc(e){var t=e.from,n=t===void 0?0:t,r=e.to,i=r===void 0?1:r,a=e.restSpeed,o=a===void 0?2:a,u=e.restDelta,l=nn(e,["from","to","restSpeed","restDelta"]),c={done:!1,value:n},p=_T(l),f=p.stiffness,d=p.damping,g=p.mass,x=p.velocity,w=p.duration,S=p.isResolvedFromDuration,b=hh,k=hh;function E(){var O=x?-(x/1e3):0,y=i-n,m=d/(2*Math.sqrt(f*g)),_=Math.sqrt(f/g)/1e3;if(u??(u=Math.abs(i-n)<=1?.01:.4),m<1){var V=Lu(_,m);b=function(P){var j=Math.exp(-m*_*P);return i-j*((O+m*_*y)/V*Math.sin(V*P)+y*Math.cos(V*P))},k=function(P){var j=Math.exp(-m*_*P);return m*_*j*(Math.sin(V*P)*(O+m*_*y)/V+y*Math.cos(V*P))-j*(Math.cos(V*P)*(O+m*_*y)-V*y*Math.sin(V*P))}}else if(m===1)b=function(P){return i-Math.exp(-_*P)*(y+(O+_*y)*P)};else{var M=_*Math.sqrt(m*m-1);b=function(P){var j=Math.exp(-m*_*P),W=Math.min(M*P,300);return i-j*((O+m*_*y)*Math.sinh(W)+M*y*Math.cosh(W))/M}}}return E(),{next:function(O){var y=b(O);if(S)c.done=O>=w;else{var m=k(O)*1e3,_=Math.abs(m)<=o,V=Math.abs(i-y)<=u;c.done=_&&V}return c.value=c.done?i:y,c},flipTarget:function(){var O;x=-x,O=[i,n],n=O[0],i=O[1],E()}}}sc.needsInterpolation=function(e,t){return typeof e=="string"||typeof t=="string"};var hh=function(e){return 0},Ti=function(e,t,n){var r=t-e;return r===0?1:(n-e)/r},Yt=function(e,t,n){return-n*e+n*t+e},IT=function(e,t,n){var r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},TT=[Nu,Or,Rr],ph=function(e){return TT.find(function(t){return t.test(e)})},dh=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},lx=function(e,t){var n=ph(e),r=ph(t);Jt(!!n,dh(e)),Jt(!!r,dh(t)),Jt(n.transform===r.transform,"Both colors must be hex/RGBA, OR both must be HSLA.");var i=n.parse(e),a=r.parse(t),o=pe({},i),u=n===Rr?Yt:IT;return function(l){for(var c in o)c!=="alpha"&&(o[c]=u(i[c],a[c],l));return o.alpha=Yt(i.alpha,a.alpha,l),n.transform(o)}},Vu=function(e){return typeof e=="number"},AT=function(e,t){return function(n){return t(e(n))}},zi=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(AT)};function cx(e,t){return Vu(e)?function(n){return Yt(e,t,n)}:Dt.test(e)?lx(e,t):hx(e,t)}var fx=function(e,t){var n=_t([],e),r=n.length,i=e.map(function(a,o){return cx(a,t[o])});return function(a){for(var o=0;o<r;o++)n[o]=i[o](a);return n}},PT=function(e,t){var n=pe(pe({},e),t),r={};for(var i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=cx(e[i],t[i]));return function(a){for(var o in r)n[o]=r[o](a);return n}};function mh(e){for(var t=Fn.parse(e),n=t.length,r=0,i=0,a=0,o=0;o<n;o++)r||typeof t[o]=="number"?r++:t[o].hue!==void 0?a++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:a}}var hx=function(e,t){var n=Fn.createTransformer(t),r=mh(e),i=mh(t);return Jt(r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers,"Complex values '"+e+"' and '"+t+"' too different to mix. Ensure all colors are of the same type."),zi(fx(r.parsed,i.parsed),n)},NT=function(e,t){return function(n){return Yt(e,t,n)}};function RT(e){if(typeof e=="number")return NT;if(typeof e=="string")return Dt.test(e)?lx:hx;if(Array.isArray(e))return fx;if(typeof e=="object")return PT}function OT(e,t,n){for(var r=[],i=n||RT(e[0]),a=e.length-1,o=0;o<a;o++){var u=i(e[o],e[o+1]);if(t){var l=Array.isArray(t)?t[o]:t;u=zi(l,u)}r.push(u)}return r}function LT(e,t){var n=e[0],r=e[1],i=t[0];return function(a){return i(Ti(n,r,a))}}function VT(e,t){var n=e.length,r=n-1;return function(i){var a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){for(var u=1;u<n&&!(e[u]>i||u===r);u++);a=u-1}var l=Ti(e[a],e[a+1],i);return t[a](l)}}function px(e,t,n){var r=n===void 0?{}:n,i=r.clamp,a=i===void 0?!0:i,o=r.ease,u=r.mixer,l=e.length;Jt(l===t.length,"Both input and output ranges must be the same length"),Jt(!o||!Array.isArray(o)||o.length===l-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[l-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var c=OT(t,o,u),p=l===2?LT(e,c):VT(e,c);return a?function(f){return p(cs(e[0],e[l-1],f))}:p}var js=function(e){return function(t){return 1-e(1-t)}},oc=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},DT=function(e){return function(t){return Math.pow(t,e)}},dx=function(e){return function(t){return t*t*((e+1)*t-e)}},FT=function(e){var t=dx(e);return function(n){return(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))}},mx=1.525,MT=4/11,jT=8/11,BT=9/10,gx=function(e){return e},uc=DT(2),zT=js(uc),xx=oc(uc),vx=function(e){return 1-Math.sin(Math.acos(e))},bx=js(vx),$T=oc(bx),lc=dx(mx),HT=js(lc),UT=oc(lc),qT=FT(mx),WT=4356/361,KT=35442/1805,JT=16061/1805,fs=function(e){if(e===1||e===0)return e;var t=e*e;return e<MT?7.5625*t:e<jT?9.075*t-9.9*e+3.4:e<BT?WT*t-KT*e+JT:10.8*e*e-20.52*e+10.72},GT=js(fs),YT=function(e){return e<.5?.5*(1-fs(1-e*2)):.5*fs(e*2-1)+.5};function XT(e,t){return e.map(function(){return t||xx}).splice(0,e.length-1)}function QT(e){var t=e.length;return e.map(function(n,r){return r!==0?r/(t-1):0})}function ZT(e,t){return e.map(function(n){return n*t})}function ja(e){var t=e.from,n=t===void 0?0:t,r=e.to,i=r===void 0?1:r,a=e.ease,o=e.offset,u=e.duration,l=u===void 0?300:u,c={done:!1,value:n},p=Array.isArray(i)?i:[n,i],f=ZT(o&&o.length===p.length?o:QT(p),l);function d(){return px(f,p,{ease:Array.isArray(a)?a:XT(p,a)})}var g=d();return{next:function(x){return c.value=g(x),c.done=x>=l,c},flipTarget:function(){p.reverse(),g=d()}}}function eA(e){var t=e.velocity,n=t===void 0?0:t,r=e.from,i=r===void 0?0:r,a=e.power,o=a===void 0?.8:a,u=e.timeConstant,l=u===void 0?350:u,c=e.restDelta,p=c===void 0?.5:c,f=e.modifyTarget,d={done:!1,value:i},g=o*n,x=i+g,w=f===void 0?x:f(x);return w!==x&&(g=w-i),{next:function(S){var b=-g*Math.exp(-S/l);return d.done=!(b>p||b<-p),d.value=d.done?w:w+b,d},flipTarget:function(){}}}var gh={keyframes:ja,spring:sc,decay:eA};function tA(e){if(Array.isArray(e.to))return ja;if(gh[e.type])return gh[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?ja:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?sc:ja}function yx(e,t,n){return n===void 0&&(n=0),e-t-n}function nA(e,t,n,r){return n===void 0&&(n=0),r===void 0&&(r=!0),r?yx(t+-e,t,n):t-(e-t)+n}function rA(e,t,n,r){return r?e>=t+n:e<=-n}var iA=function(e){var t=function(n){var r=n.delta;return e(r)};return{start:function(){return Cn.update(t,!0)},stop:function(){return ci.update(t)}}};function wx(e){var t,n,r=e.from,i=e.autoplay,a=i===void 0?!0:i,o=e.driver,u=o===void 0?iA:o,l=e.elapsed,c=l===void 0?0:l,p=e.repeat,f=p===void 0?0:p,d=e.repeatType,g=d===void 0?"loop":d,x=e.repeatDelay,w=x===void 0?0:x,S=e.onPlay,b=e.onStop,k=e.onComplete,E=e.onRepeat,O=e.onUpdate,y=nn(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),m=y.to,_,V=0,M=y.duration,P,j=!1,W=!0,$,se=tA(y);!((n=(t=se).needsInterpolation)===null||n===void 0)&&n.call(t,r,m)&&($=px([0,100],[r,m],{clamp:!1}),r=0,m=100);var Z=se(pe(pe({},y),{from:r,to:m}));function ne(){V++,g==="reverse"?(W=V%2===0,c=nA(c,M,w,W)):(c=yx(c,M,w),g==="mirror"&&Z.flipTarget()),j=!1,E&&E()}function ce(){_.stop(),k&&k()}function de(L){if(W||(L=-L),c+=L,!j){var G=Z.next(Math.max(0,c));P=G.value,$&&(P=$(P)),j=W?G.done:c<=0}O==null||O(P),j&&(V===0&&(M??(M=c)),V<f?rA(c,M,w,W)&&ne():ce())}function xe(){S==null||S(),_=u(de),_.start()}return a&&xe(),{stop:function(){b==null||b(),_.stop()}}}function Sx(e,t){return t?e*(1e3/t):0}function aA(e){var t=e.from,n=t===void 0?0:t,r=e.velocity,i=r===void 0?0:r,a=e.min,o=e.max,u=e.power,l=u===void 0?.8:u,c=e.timeConstant,p=c===void 0?750:c,f=e.bounceStiffness,d=f===void 0?500:f,g=e.bounceDamping,x=g===void 0?10:g,w=e.restDelta,S=w===void 0?1:w,b=e.modifyTarget,k=e.driver,E=e.onUpdate,O=e.onComplete,y;function m(ne){return a!==void 0&&ne<a||o!==void 0&&ne>o}function _(ne){return a===void 0?o:o===void 0||Math.abs(a-ne)<Math.abs(o-ne)?a:o}function V(ne){y==null||y.stop(),y=wx(pe(pe({},ne),{driver:k,onUpdate:function(ce){var de;E==null||E(ce),(de=ne.onUpdate)===null||de===void 0||de.call(ne,ce)},onComplete:O}))}function M(ne){V(pe({type:"spring",stiffness:d,damping:x,restDelta:S},ne))}if(m(n))M({from:n,velocity:i,to:_(n)});else{var P=l*i+n;typeof b<"u"&&(P=b(P));var j=_(P),W=j===a?-1:1,$,se,Z=function(ne){$=se,se=ne,i=Sx(ne-$,rs().delta),(W===1&&ne>j||W===-1&&ne<j)&&M({from:ne,to:j,velocity:i})};V({type:"decay",from:n,velocity:i,timeConstant:p,power:l,restDelta:S,modifyTarget:b,onUpdate:m(P)?Z:void 0})}return{stop:function(){return y==null?void 0:y.stop()}}}var Du=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},xh=function(e){return Du(e)&&e.hasOwnProperty("z")},Ea=function(e,t){return Math.abs(e-t)};function Cx(e,t){if(Vu(e)&&Vu(t))return Ea(e,t);if(Du(e)&&Du(t)){var n=Ea(e.x,t.x),r=Ea(e.y,t.y),i=xh(e)&&xh(t)?Ea(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var kx=function(e,t){return 1-3*t+3*e},Ex=function(e,t){return 3*t-6*e},_x=function(e){return 3*e},hs=function(e,t,n){return((kx(t,n)*e+Ex(t,n))*e+_x(t))*e},Ix=function(e,t,n){return 3*kx(t,n)*e*e+2*Ex(t,n)*e+_x(t)},sA=1e-7,oA=10;function uA(e,t,n,r,i){var a,o,u=0;do o=t+(n-t)/2,a=hs(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>sA&&++u<oA);return o}var lA=8,cA=.001;function fA(e,t,n,r){for(var i=0;i<lA;++i){var a=Ix(t,n,r);if(a===0)return t;var o=hs(t,n,r)-e;t-=o/a}return t}var Ba=11,_a=1/(Ba-1);function hA(e,t,n,r){if(e===t&&n===r)return gx;for(var i=new Float32Array(Ba),a=0;a<Ba;++a)i[a]=hs(a*_a,e,n);function o(u){for(var l=0,c=1,p=Ba-1;c!==p&&i[c]<=u;++c)l+=_a;--c;var f=(u-i[c])/(i[c+1]-i[c]),d=l+f*_a,g=Ix(d,e,n);return g>=cA?fA(u,d,e,n):g===0?d:uA(u,l,l+_a,e,n)}return function(u){return u===0||u===1?u:hs(o(u),t,r)}}function pA(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,a=e.visualElement,o=t||n||r||i,u=F.useRef(!1),l=F.useRef(null);function c(){var x;(x=l.current)===null||x===void 0||x.call(l),l.current=null}function p(){var x;return c(),u.current=!1,(x=a.animationState)===null||x===void 0||x.setActive(wt.Tap,!1),!ox()}function f(x,w){p()&&(ux(a.getInstance(),x.target)?t==null||t(x,w):r==null||r(x,w))}function d(x,w){p()&&(r==null||r(x,w))}function g(x,w){var S;c(),!u.current&&(u.current=!0,l.current=zi(Mr(window,"pointerup",f),Mr(window,"pointercancel",d)),n==null||n(x,w),(S=a.animationState)===null||S===void 0||S.setActive(wt.Tap,!0))}ls(a,"pointerdown",o?g:void 0),ac(c)}var xr=function(e){return function(t){return e(t),null}},dA={tap:xr(pA),focus:xr(sT),hover:xr(xT)};function Tx(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var ps=function(e){return e*1e3},vh={linear:gx,easeIn:uc,easeInOut:xx,easeOut:zT,circIn:vx,circInOut:$T,circOut:bx,backIn:lc,backInOut:UT,backOut:HT,anticipate:qT,bounceIn:GT,bounceInOut:YT,bounceOut:fs},bh=function(e){if(Array.isArray(e)){Jt(e.length===4,"Cubic bezier arrays must contain four numerical values.");var t=pt(e,4),n=t[0],r=t[1],i=t[2],a=t[3];return hA(n,r,i,a)}else if(typeof e=="string")return Jt(vh[e]!==void 0,"Invalid easing type '"+e+"'"),vh[e];return e},mA=function(e){return Array.isArray(e)&&typeof e[0]!="number"},yh=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Fn.test(t)&&!t.startsWith("url("))},dr=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},Ia=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},Qo=function(){return{type:"keyframes",ease:"linear",duration:.3}},gA=function(e){return{type:"keyframes",duration:.8,values:e}},wh={x:dr,y:dr,z:dr,rotate:dr,rotateX:dr,rotateY:dr,rotateZ:dr,scaleX:Ia,scaleY:Ia,scale:Ia,opacity:Qo,backgroundColor:Qo,color:Qo,default:Ia},xA=function(e,t){var n;return Ii(t)?n=gA:n=wh[e]||wh.default,pe({to:t},n(t))},vA=pe(pe({},qg),{color:Dt,backgroundColor:Dt,outlineColor:Dt,fill:Dt,stroke:Dt,borderColor:Dt,borderTopColor:Dt,borderRightColor:Dt,borderBottomColor:Dt,borderLeftColor:Dt,filter:Ru,WebkitFilter:Ru}),cc=function(e){return vA[e]};function fc(e,t){var n,r=cc(e);return r!==Ru&&(r=Fn),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function bA(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=nn(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}var Sh=!1;function yA(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,a=e.loop,o=nn(e,["ease","times","yoyo","flip","loop"]),u=pe({},o);return n&&(u.offset=n),o.duration&&(u.duration=ps(o.duration)),o.repeatDelay&&(u.repeatDelay=ps(o.repeatDelay)),t&&(u.ease=mA(t)?t.map(bh):bh(t)),o.type==="tween"&&(u.type="keyframes"),(r||a||i)&&(Os(!Sh,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Sh=!0,r?u.repeatType="reverse":a?u.repeatType="loop":i&&(u.repeatType="mirror"),u.repeat=a||r||i||o.repeat),o.type!=="spring"&&(u.type="keyframes"),u}function wA(e,t){var n,r=hc(e,t)||{};return(n=r.delay)!==null&&n!==void 0?n:0}function SA(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=_t([],pt(e.to)),e.to[0]=e.from),e}function CA(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),SA(t),bA(e)||(e=pe(pe({},e),xA(n,t.to))),pe(pe({},t),yA(e))}function kA(e,t,n,r,i){var a,o=hc(r,e),u=(a=o.from)!==null&&a!==void 0?a:t.get(),l=yh(e,n);u==="none"&&l&&typeof n=="string"?u=fc(e,n):Ch(u)&&typeof n=="string"?u=kh(n):!Array.isArray(n)&&Ch(n)&&typeof u=="string"&&(n=kh(u));var c=yh(e,u);Os(c===l,"You are trying to animate "+e+' from "'+u+'" to "'+n+'". '+u+" is not an animatable value - to enable this animation set "+u+" to a value animatable to "+n+" via the `style` property.");function p(){var d={from:u,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(g){return t.set(g)}};return o.type==="inertia"||o.type==="decay"?aA(pe(pe({},d),o)):wx(pe(pe({},CA(o,d,e)),{onUpdate:function(g){var x;d.onUpdate(g),(x=o.onUpdate)===null||x===void 0||x.call(o,g)},onComplete:function(){var g;d.onComplete(),(g=o.onComplete)===null||g===void 0||g.call(o)}}))}function f(){var d;return t.set(n),i(),(d=o==null?void 0:o.onComplete)===null||d===void 0||d.call(o),{stop:function(){}}}return!c||!l||o.type===!1?f:p}function Ch(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function kh(e){return typeof e=="number"?0:fc("",e)}function hc(e,t){return e[t]||e.default||e}function ds(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var a,o,u=kA(e,t,n,r,i),l=wA(r,e),c=function(){return o=u()};return l?a=setTimeout(c,ps(l)):c(),function(){clearTimeout(a),o==null||o.stop()}})}var EA=function(e){return/^\-?\d*\.?\d+$/.test(e)};function Ax(e,t){e.indexOf(t)===-1&&e.push(t)}function Px(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var za=(function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return Ax(this.subscriptions,t),function(){return Px(n.subscriptions,t)}},e.prototype.notify=function(t,n,r){var i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(var a=0;a<i;a++){var o=this.subscriptions[a];o&&o(t,n,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e})(),_A=function(e){return!isNaN(parseFloat(e))},IA=(function(){function e(t){var n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new za,this.velocityUpdateSubscribers=new za,this.renderSubscribers=new za,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var a=rs(),o=a.delta,u=a.timestamp;n.lastUpdated!==u&&(n.timeDelta=o,n.lastUpdated=u,Cn.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),i&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return Cn.postRender(n.velocityCheck)},this.velocityCheck=function(r){var i=r.timestamp;i!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=_A(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,n){n===void 0&&(n=!0),!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Sx(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var n=this;return this.stop(),new Promise(function(r){n.hasAnimated=!0,n.stopAnimation=t(r)}).then(function(){return n.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e})();function vr(e){return new IA(e)}var Nx=function(e){return function(t){return t.test(e)}},TA={test:function(e){return e==="auto"},parse:function(e){return e}},Rx=[Sr,ze,Fr,Wn,EI,kI,TA],Ta=function(e){return Rx.find(Nx(e))},AA=_t(_t([],pt(Rx)),[Dt,Fn]),PA=function(e){return AA.find(Nx(e))};function NA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vr(n))}function RA(e,t){var n=Ds(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,a=i===void 0?{}:i;r.transition;var o=nn(r,["transitionEnd","transition"]);o=pe(pe({},o),a);for(var u in o){var l=ZI(o[u]);NA(e,u,l)}}function OA(e,t,n){var r,i,a,o,u=Object.keys(t).filter(function(g){return!e.hasValue(g)}),l=u.length;if(l)for(var c=0;c<l;c++){var p=u[c],f=t[p],d=null;Array.isArray(f)&&(d=f[0]),d===null&&(d=(i=(r=n[p])!==null&&r!==void 0?r:e.readValue(p))!==null&&i!==void 0?i:t[p]),d!=null&&(typeof d=="string"&&EA(d)?d=parseFloat(d):!PA(d)&&Fn.test(f)&&(d=fc(p,f)),e.addValue(p,vr(d)),(a=(o=n)[p])!==null&&a!==void 0||(o[p]=d),e.setBaseTarget(p,d))}}function LA(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function VA(e,t,n){var r,i,a={};for(var o in e)a[o]=(r=LA(o,t))!==null&&r!==void 0?r:(i=n.getValue(o))===null||i===void 0?void 0:i.get();return a}function DA(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart();var r;if(Array.isArray(t)){var i=t.map(function(o){return Fu(e,o,n)});r=Promise.all(i)}else if(typeof t=="string")r=Fu(e,t,n);else{var a=typeof t=="function"?Ds(e,t,n.custom):t;r=Ox(e,a,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function Fu(e,t,n){var r;n===void 0&&(n={});var i=Ds(e,t,n.custom),a=(i||{}).transition,o=a===void 0?e.getDefaultTransition()||{}:a;n.transitionOverride&&(o=n.transitionOverride);var u=i?function(){return Ox(e,i,n)}:function(){return Promise.resolve()},l=!((r=e.variantChildren)===null||r===void 0)&&r.size?function(g){g===void 0&&(g=0);var x=o.delayChildren,w=x===void 0?0:x,S=o.staggerChildren,b=o.staggerDirection;return FA(e,t,w+g,S,b,n)}:function(){return Promise.resolve()},c=o.when;if(c){var p=pt(c==="beforeChildren"?[u,l]:[l,u],2),f=p[0],d=p[1];return f().then(d)}else return Promise.all([u(),l(n.delay)])}function Ox(e,t,n){var r,i=n===void 0?{}:n,a=i.delay,o=a===void 0?0:a,u=i.transitionOverride,l=i.type,c=e.makeTargetAnimatable(t),p=c.transition,f=p===void 0?e.getDefaultTransition():p,d=c.transitionEnd,g=nn(c,["transition","transitionEnd"]);u&&(f=u);var x=[],w=l&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[l]);for(var S in g){var b=e.getValue(S),k=g[S];if(!(!b||k===void 0||w&&jA(w,S))){var E=ds(S,b,k,pe({delay:o},f));x.push(E)}}return Promise.all(x).then(function(){d&&RA(e,d)})}function FA(e,t,n,r,i,a){n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1);var o=[],u=(e.variantChildren.size-1)*r,l=i===1?function(c){return c===void 0&&(c=0),c*r}:function(c){return c===void 0&&(c=0),u-c*r};return Array.from(e.variantChildren).sort(MA).forEach(function(c,p){o.push(Fu(c,t,pe(pe({},a),{delay:n+l(p)})).then(function(){return c.notifyAnimationComplete(t)}))}),Promise.all(o)}function MA(e,t){return e.sortNodePosition(t)}function jA(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var pc=[wt.Animate,wt.Hover,wt.Tap,wt.Drag,wt.Focus,wt.Exit],BA=_t([],pt(pc)).reverse(),zA=pc.length;function $A(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return DA(e,r,i)}))}}function HA(e){var t=$A(e),n=qA(),r={},i=!0,a=function(p,f){var d=Ds(e,f);if(d){d.transition;var g=d.transitionEnd,x=nn(d,["transition","transitionEnd"]);p=pe(pe(pe({},p),x),g)}return p};function o(p){return r[p]!==void 0}function u(p){t=p(e)}function l(p,f){for(var d,g=e.getProps(),x=e.getVariantContext(!0)||{},w=[],S=new Set,b={},k=1/0,E=function(_){var V=BA[_],M=n[V],P=(d=g[V])!==null&&d!==void 0?d:x[V],j=xn(P),W=V===f?M.isActive:null;W===!1&&(k=_);var $=P===x[V]&&P!==g[V]&&j;if($&&i&&e.manuallyAnimateOnMount&&($=!1),M.protectedKeys=pe({},b),!M.isActive&&W===null||!P&&!M.prevProp||nc(P)||typeof P=="boolean")return"continue";var se=UA(M.prevProp,P)||V===f&&M.isActive&&!$&&j||_>k&&j,Z=Array.isArray(P)?P:[P],ne=Z.reduce(a,{});W===!1&&(ne={});var ce=M.prevResolvedValues,de=ce===void 0?{}:ce,xe=pe(pe({},de),ne),L=function(me){se=!0,S.delete(me),M.needsAnimating[me]=!0};for(var G in xe){var ue=ne[G],T=de[G];b.hasOwnProperty(G)||(ue!==T?Ii(ue)&&Ii(T)?Tx(ue,T)?M.protectedKeys[G]=!0:L(G):ue!==void 0?L(G):S.add(G):ue!==void 0&&S.has(G)?L(G):M.protectedKeys[G]=!0)}M.prevProp=P,M.prevResolvedValues=ne,M.isActive&&(b=pe(pe({},b),ne)),i&&e.blockInitialAnimation&&(se=!1),se&&!$&&w.push.apply(w,_t([],pt(Z.map(function(me){return{animation:me,options:pe({type:V},p)}}))))},O=0;O<zA;O++)E(O);if(r=pe({},b),S.size){var y={};S.forEach(function(_){var V=e.getBaseTarget(_);V!==void 0&&(y[_]=V)}),w.push({animation:y})}var m=!!w.length;return i&&g.initial===!1&&!e.manuallyAnimateOnMount&&(m=!1),i=!1,m?t(w):Promise.resolve()}function c(p,f,d){var g;return n[p].isActive===f?Promise.resolve():((g=e.variantChildren)===null||g===void 0||g.forEach(function(x){var w;return(w=x.animationState)===null||w===void 0?void 0:w.setActive(p,f)}),n[p].isActive=f,l(d,p))}return{isAnimated:o,animateChanges:l,setActive:c,setAnimateFunction:u,getState:function(){return n}}}function UA(e,t){return typeof t=="string"?t!==e:Rg(t)?!Tx(t,e):!1}function Ir(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qA(){var e;return e={},e[wt.Animate]=Ir(!0),e[wt.Hover]=Ir(),e[wt.Tap]=Ir(),e[wt.Drag]=Ir(),e[wt.Focus]=Ir(),e[wt.Exit]=Ir(),e}var WA={animation:xr(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=HA(t)),nc(n)&&F.useEffect(function(){return n.subscribe(t)},[n])}),exit:xr(function(e){var t=e.custom,n=e.visualElement,r=pt(Ng(),2),i=r[0],a=r[1],o=F.useContext(Fi);F.useEffect(function(){var u,l,c=(u=n.animationState)===null||u===void 0?void 0:u.setActive(wt.Exit,!i,{custom:(l=o==null?void 0:o.custom)!==null&&l!==void 0?l:t});!i&&(c==null||c.then(a))},[i])})},Lx=(function(){function e(t,n,r){var i=this,a=r===void 0?{}:r,o=a.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var d=eu(i.lastMoveEventInfo,i.history),g=i.startEvent!==null,x=Cx(d.offset,{x:0,y:0})>=3;if(!(!g&&!x)){var w=d.point,S=rs().timestamp;i.history.push(pe(pe({},w),{timestamp:S}));var b=i.handlers,k=b.onStart,E=b.onMove;g||(k&&k(i.lastMoveEvent,d),i.startEvent=i.lastMoveEvent),E&&E(i.lastMoveEvent,d)}}},this.handlePointerMove=function(d,g){if(i.lastMoveEvent=d,i.lastMoveEventInfo=Zo(g,i.transformPagePoint),tx(d)&&d.buttons===0){i.handlePointerUp(d,g);return}Cn.update(i.updatePoint,!0)},this.handlePointerUp=function(d,g){i.end();var x=i.handlers,w=x.onEnd,S=x.onSessionEnd,b=eu(Zo(g,i.transformPagePoint),i.history);i.startEvent&&w&&w(d,b),S&&S(d,b)},!(nx(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=o;var u=ic(t),l=Zo(u,this.transformPagePoint),c=l.point,p=rs().timestamp;this.history=[pe(pe({},c),{timestamp:p})];var f=n.onSessionStart;f&&f(t,eu(l,this.history)),this.removeListeners=zi(Mr(window,"pointermove",this.handlePointerMove),Mr(window,"pointerup",this.handlePointerUp),Mr(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),ci.update(this.updatePoint)},e})();function Zo(e,t){return t?{point:t(e.point)}:e}function Eh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eu(e,t){var n=e.point;return{point:n,delta:Eh(n,Vx(t)),offset:Eh(n,KA(t)),velocity:JA(t,.1)}}function KA(e){return e[0]}function Vx(e){return e[e.length-1]}function JA(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=Vx(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ps(t)));)n--;if(!r)return{x:0,y:0};var a=(i.timestamp-r.timestamp)/1e3;if(a===0)return{x:0,y:0};var o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function GA(e){return e}function Dx(e){var t=e.top,n=e.left,r=e.right,i=e.bottom;return{x:{min:n,max:r},y:{min:t,max:i}}}function YA(e){var t=e.x,n=e.y;return{top:n.min,bottom:n.max,left:t.min,right:t.max}}function XA(e,t){var n=e.top,r=e.left,i=e.bottom,a=e.right;t===void 0&&(t=GA);var o=t({x:r,y:n}),u=t({x:a,y:i});return{top:o.y,left:o.x,bottom:u.y,right:u.x}}function Qn(){return{x:{min:0,max:1},y:{min:0,max:1}}}function QA(e){return{x:pe({},e.x),y:pe({},e.y)}}var _h={translate:0,scale:1,origin:0,originPoint:0};function Ih(){return{x:pe({},_h),y:pe({},_h)}}function qt(e){return[e("x"),e("y")]}function Fx(e,t,n){var r=t.min,i=t.max;return r!==void 0&&e<r?e=n?Yt(r,e,n.min):Math.max(e,r):i!==void 0&&e>i&&(e=n?Yt(i,e,n.max):Math.min(e,i)),e}function ZA(e,t,n,r,i){var a=e-t*n;return r?Fx(a,r,i):a}function Th(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function e2(e,t){var n=t.top,r=t.left,i=t.bottom,a=t.right;return{x:Th(e.x,r,a),y:Th(e.y,n,i)}}function Ah(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=pt([i,r],2),r=n[0],i=n[1]),{min:e.min+r,max:e.min+i}}function t2(e,t){return{x:Ah(e.x,t.x),y:Ah(e.y,t.y)}}function n2(e,t,n){var r=e.max-e.min,i=Yt(t.min,t.max-r,n);return{min:i,max:i+r}}function r2(e,t){var n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Mx=.35;function i2(e){return e===!1?e=0:e===!0&&(e=Mx),{x:Ph(e,"left","right"),y:Ph(e,"top","bottom")}}function Ph(e,t,n){return{min:Nh(e,t),max:Nh(e,n)}}function Nh(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}function jx(e,t){var n=e.getBoundingClientRect();return Dx(XA(n,t))}var a2=function(e){return cs(0,1,e)};function Rh(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),Cx(e,t)<n}function Ai(e){return e.max-e.min}function s2(e,t){var n=.5,r=Ai(e),i=Ai(t);return i>r?n=Ti(t.min,t.max-r,e.min):r>i&&(n=Ti(e.min,e.max-i,t.min)),a2(n)}function Oh(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=Yt(t.min,t.max,e.origin),e.scale=Ai(n)/Ai(t),Rh(e.scale,1,1e-4)&&(e.scale=1),e.translate=Yt(n.min,n.max,e.origin)-e.originPoint,Rh(e.translate)&&(e.translate=0)}function Bx(e,t,n,r){Oh(e.x,t.x,n.x,Lh(r.originX)),Oh(e.y,t.y,n.y,Lh(r.originY))}function Lh(e){return typeof e=="number"?e:.5}function Vh(e,t,n){e.min=n.min+t.min,e.max=e.min+Ai(t)}function o2(e,t){Vh(e.target.x,e.relativeTarget.x,t.target.x),Vh(e.target.y,e.relativeTarget.y,t.target.y)}var dc=function(e,t){return e.depth-t.depth};function zx(e){var t=e.projection.isEnabled;return t||e.shouldResetTransform()}function ms(e,t){t===void 0&&(t=[]);var n=e.parent;return n&&ms(n,t),zx(e)&&t.push(e),t}function u2(e){var t=[],n=function(r){zx(r)&&t.push(r),r.children.forEach(n)};return e.children.forEach(n),t.sort(dc)}function $a(e){if(!e.shouldResetTransform()){var t=e.getLayoutState();e.notifyBeforeLayoutMeasure(t.layout),t.isHydrated=!0,t.layout=e.measureViewportBox(),t.layoutCorrected=QA(t.layout),e.notifyLayoutMeasure(t.layout,e.prevViewportBox||t.layout),Cn.update(function(){return e.rebaseProjectionTarget()})}}function l2(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}function c2(e,t,n,r){e.min=Yt(t.min,n.min,r),e.max=Yt(t.max,n.max,r)}function Dh(e,t){return{min:t.min-e.min,max:t.max-e.min}}function zr(e,t){return{x:Dh(e.x,t.x),y:Dh(e.y,t.y)}}function f2(e,t){var n=e.getLayoutId(),r=t.getLayoutId();return n!==r||r===void 0&&e!==t}function $x(e){var t=e.getProps(),n=t.drag,r=t._dragX;return n&&!r}function Fh(e,t){e.min=t.min,e.max=t.max}function h2(e,t){Fh(e.x,t.x),Fh(e.y,t.y)}function gs(e,t,n){var r=e-n,i=t*r;return n+i}function Mh(e,t,n,r,i){return i!==void 0&&(e=gs(e,i,r)),gs(e,n,r)+t}function Mu(e,t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=1),e.min=Mh(e.min,t,n,r,i),e.max=Mh(e.max,t,n,r,i)}function p2(e,t){var n=t.x,r=t.y;Mu(e.x,n.translate,n.scale,n.originPoint),Mu(e.y,r.translate,r.scale,r.originPoint)}function jh(e,t,n,r){var i=pt(r,3),a=i[0],o=i[1],u=i[2];e.min=t.min,e.max=t.max;var l=n[u]!==void 0?n[u]:.5,c=Yt(t.min,t.max,l);Mu(e,n[a],n[o],c,n.scale)}var Hx=["x","scaleX","originX"],Ux=["y","scaleY","originY"];function ju(e,t,n){jh(e.x,t.x,n,Hx),jh(e.y,t.y,n,Ux)}function Bh(e,t,n,r,i){return e-=t,e=gs(e,1/n,r),i!==void 0&&(e=gs(e,1/i,r)),e}function d2(e,t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=1),r===void 0&&(r=.5);var a=Yt(e.min,e.max,r)-t;e.min=Bh(e.min,t,n,a,i),e.max=Bh(e.max,t,n,a,i)}function zh(e,t,n){var r=pt(n,3),i=r[0],a=r[1],o=r[2];d2(e,t[i],t[a],t[o],t.scale)}function qx(e,t){zh(e.x,t,Hx),zh(e.y,t,Ux)}function m2(e,t,n){var r=n.length;if(r){t.x=t.y=1;for(var i,a,o=0;o<r;o++)i=n[o],a=i.getLayoutState().delta,t.x*=a.x.scale,t.y*=a.y.scale,p2(e,a),$x(i)&&ju(e,e,i.getLatestValues())}}function g2(e,t){t===void 0&&(t=!0);var n=e.getProjectionParent();if(!n)return!1;var r;return t?(r=zr(n.projection.target,e.projection.target),qx(r,n.getLatestValues())):r=zr(n.getLayoutState().layout,e.getLayoutState().layout),qt(function(i){return e.setProjectionTargetAxis(i,r[i].min,r[i].max,!0)}),!0}var gi=new Set;function $h(e,t,n){e[n]||(e[n]=[]),e[n].push(t)}function Bu(e){return gi.add(e),function(){return gi.delete(e)}}function zu(){if(gi.size){var e=0,t=[[]],n=[],r=function(u){return $h(t,u,e)},i=function(u){$h(n,u,e),e++};gi.forEach(function(u){u(r,i),e=0}),gi.clear();for(var a=n.length,o=0;o<=a;o++)t[o]&&t[o].forEach(Hh),n[o]&&n[o].forEach(Hh)}}var Hh=function(e){return e()},x2=new WeakMap,Uh,v2=(function(){function e(t){var n=t.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic=Qn(),this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=n,this.visualElement.enableLayoutProjection(),x2.set(n,this)}return e.prototype.start=function(t,n){var r=this,i=n===void 0?{}:n,a=i.snapToCursor,o=a===void 0?!1:a,u=i.cursorProgress,l=function(g){var x;r.stopMotion();var w=fT(g).point;(x=r.cancelLayout)===null||x===void 0||x.call(r),r.cancelLayout=Bu(function(S,b){var k=ms(r.visualElement),E=u2(r.visualElement),O=_t(_t([],pt(k)),pt(E)),y=!1;r.isLayoutDrag()&&r.visualElement.lockProjectionTarget(),b(function(){O.forEach(function(m){return m.resetTransform()})}),S(function(){$a(r.visualElement),E.forEach($a)}),b(function(){O.forEach(function(m){return m.restoreTransform()}),o&&(y=r.snapToCursor(w))}),S(function(){var m=!!(r.getAxisMotionValue("x")&&!r.isExternalDrag());m||r.visualElement.rebaseProjectionTarget(!0,r.visualElement.measureViewportBox(!1)),r.visualElement.scheduleUpdateLayoutProjection();var _=r.visualElement.projection;qt(function(V){if(!y){var M=_.target[V],P=M.min,j=M.max;r.cursorProgress[V]=u?u[V]:Ti(P,j,w[V])}var W=r.getAxisMotionValue(V);W&&(r.originPoint[V]=W.get())})}),b(function(){Nr.update(),Nr.preRender(),Nr.render(),Nr.postRender()}),S(function(){return r.resolveDragConstraints()})})},c=function(g,x){var w,S,b,k=r.props,E=k.drag,O=k.dragPropagation;E&&!O&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=sx(E),!r.openGlobalLock)||(zu(),r.isDragging=!0,r.currentDirection=null,(S=(w=r.props).onDragStart)===null||S===void 0||S.call(w,g,x),(b=r.visualElement.animationState)===null||b===void 0||b.setActive(wt.Drag,!0))},p=function(g,x){var w,S,b,k,E=r.props,O=E.dragPropagation,y=E.dragDirectionLock;if(!(!O&&!r.openGlobalLock)){var m=x.offset;if(y&&r.currentDirection===null){r.currentDirection=b2(m),r.currentDirection!==null&&((S=(w=r.props).onDirectionLock)===null||S===void 0||S.call(w,r.currentDirection));return}r.updateAxis("x",x.point,m),r.updateAxis("y",x.point,m),(k=(b=r.props).onDrag)===null||k===void 0||k.call(b,g,x),Uh=g}},f=function(g,x){return r.stop(g,x)},d=this.props.transformPagePoint;this.panSession=new Lx(t,{onSessionStart:l,onStart:c,onMove:p,onSessionEnd:f},{transformPagePoint:d})},e.prototype.resolveDragConstraints=function(){var t=this,n=this.props,r=n.dragConstraints,i=n.dragElastic,a=this.visualElement.getLayoutState().layoutCorrected;r?this.constraints=Au(r)?this.resolveRefConstraints(a,r):e2(a,r):this.constraints=!1,this.elastic=i2(i),this.constraints&&!this.hasMutatedConstraints&&qt(function(o){t.getAxisMotionValue(o)&&(t.constraints[o]=r2(a[o],t.constraints[o]))})},e.prototype.resolveRefConstraints=function(t,n){var r=this.props,i=r.onMeasureDragConstraints,a=r.transformPagePoint,o=n.current;Jt(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop."),this.constraintsBox=jx(o,a);var u=t2(t,this.constraintsBox);if(i){var l=i(YA(u));this.hasMutatedConstraints=!!l,l&&(u=Dx(l))}return u},e.prototype.cancelDrag=function(){var t,n;this.visualElement.unlockProjectionTarget(),(t=this.cancelLayout)===null||t===void 0||t.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(wt.Drag,!1)},e.prototype.stop=function(t,n){var r,i,a;(r=this.panSession)===null||r===void 0||r.end(),this.panSession=null;var o=this.isDragging;if(this.cancelDrag(),!!o){var u=n.velocity;this.animateDragEnd(u),(a=(i=this.props).onDragEnd)===null||a===void 0||a.call(i,t,n)}},e.prototype.snapToCursor=function(t){var n=this;return qt(function(r){var i=n.props.drag;if(Aa(r,i,n.currentDirection)){var a=n.getAxisMotionValue(r);if(a){var o=n.visualElement.getLayoutState().layout,u=o[r].max-o[r].min,l=o[r].min+u/2,c=t[r]-l;n.originPoint[r]=t[r],a.set(c)}else return n.cursorProgress[r]=.5,!0}}).includes(!0)},e.prototype.updateAxis=function(t,n,r){var i=this.props.drag;if(Aa(t,i,this.currentDirection))return this.getAxisMotionValue(t)?this.updateAxisMotionValue(t,r):this.updateVisualElementAxis(t,n)},e.prototype.updateAxisMotionValue=function(t,n){var r=this.getAxisMotionValue(t);if(!(!n||!r)){var i=this.originPoint[t]+n[t],a=this.constraints?Fx(i,this.constraints[t],this.elastic[t]):i;r.set(a)}},e.prototype.updateVisualElementAxis=function(t,n){var r,i=this.visualElement.getLayoutState().layout[t],a=i.max-i.min,o=this.cursorProgress[t],u=ZA(n[t],a,o,(r=this.constraints)===null||r===void 0?void 0:r[t],this.elastic[t]);this.visualElement.setProjectionTargetAxis(t,u,u+a)},e.prototype.setProps=function(t){var n=t.drag,r=n===void 0?!1:n,i=t.dragDirectionLock,a=i===void 0?!1:i,o=t.dragPropagation,u=o===void 0?!1:o,l=t.dragConstraints,c=l===void 0?!1:l,p=t.dragElastic,f=p===void 0?Mx:p,d=t.dragMomentum,g=d===void 0?!0:d,x=nn(t,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=pe({drag:r,dragDirectionLock:a,dragPropagation:u,dragConstraints:c,dragElastic:f,dragMomentum:g},x)},e.prototype.getAxisMotionValue=function(t){var n=this.props,r=n.layout,i=n.layoutId,a="_drag"+t.toUpperCase();if(this.props[a])return this.props[a];if(!r&&i===void 0)return this.visualElement.getValue(t,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var t=this.props,n=t._dragX,r=t._dragY;return n||r},e.prototype.animateDragEnd=function(t){var n=this,r=this.props,i=r.drag,a=r.dragMomentum,o=r.dragElastic,u=r.dragTransition,l=g2(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),c=this.constraints||{};if(l&&Object.keys(c).length&&this.isLayoutDrag()){var p=this.visualElement.getProjectionParent();if(p){var f=zr(p.projection.targetFinal,c);qt(function(g){var x=f[g],w=x.min,S=x.max;c[g]={min:isNaN(w)?void 0:w,max:isNaN(S)?void 0:S}})}}var d=qt(function(g){var x;if(Aa(g,i,n.currentDirection)){var w=(x=c==null?void 0:c[g])!==null&&x!==void 0?x:{},S=o?200:1e6,b=o?40:1e7,k=pe(pe({type:"inertia",velocity:a?t[g]:0,bounceStiffness:S,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10},u),w);return n.getAxisMotionValue(g)?n.startAxisValueAnimation(g,k):n.visualElement.startLayoutAnimation(g,k,l)}});return Promise.all(d).then(function(){var g,x;(x=(g=n.props).onDragTransitionEnd)===null||x===void 0||x.call(g)})},e.prototype.stopMotion=function(){var t=this;qt(function(n){var r=t.getAxisMotionValue(n);r?r.stop():t.visualElement.stopLayoutAnimation()})},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);if(r){var i=r.get();return r.set(i),r.set(i),ds(t,r,0,n)}},e.prototype.scalePoint=function(){var t=this,n=this.props,r=n.drag,i=n.dragConstraints;if(!(!Au(i)||!this.constraintsBox)){this.stopMotion();var a={x:0,y:0};qt(function(o){a[o]=s2(t.visualElement.projection.target[o],t.constraintsBox[o])}),this.updateConstraints(function(){qt(function(o){if(Aa(o,r,null)){var u=n2(t.visualElement.projection.target[o],t.constraintsBox[o],a[o]),l=u.min,c=u.max;t.visualElement.setProjectionTargetAxis(o,l,c)}})}),setTimeout(zu,1)}},e.prototype.updateConstraints=function(t){var n=this;this.cancelLayout=Bu(function(r,i){var a=ms(n.visualElement);i(function(){return a.forEach(function(o){return o.resetTransform()})}),r(function(){return $a(n.visualElement)}),i(function(){return a.forEach(function(o){return o.restoreTransform()})}),r(function(){n.resolveDragConstraints()}),t&&i(t)})},e.prototype.mount=function(t){var n=this,r=t.getInstance(),i=Mr(r,"pointerdown",function(l){var c=n.props,p=c.drag,f=c.dragListener,d=f===void 0?!0:f;p&&d&&n.start(l)}),a=rc(window,"resize",function(){n.scalePoint()}),o=t.onLayoutUpdate(function(){n.isDragging&&n.resolveDragConstraints()}),u=t.prevDragCursor;return u&&this.start(Uh,{cursorProgress:u}),function(){i==null||i(),a==null||a(),o==null||o(),n.cancelDrag()}},e})();function Aa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function b2(e,t){t===void 0&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function y2(e){var t=e.dragControls,n=e.visualElement,r=F.useContext(Ls).transformPagePoint,i=ki(function(){return new v2({visualElement:n})});i.setProps(pe(pe({},e),{transformPagePoint:r})),F.useEffect(function(){return t&&t.subscribe(i)},[i]),F.useEffect(function(){return i.mount(n)},[])}function w2(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,a=e.visualElement,o=t||n||r||i,u=F.useRef(null),l=F.useContext(Ls).transformPagePoint,c={onSessionStart:i,onStart:n,onMove:t,onEnd:function(f,d){u.current=null,r&&r(f,d)}};F.useEffect(function(){u.current!==null&&u.current.updateHandlers(c)});function p(f){u.current=new Lx(f,c,{transformPagePoint:l})}ls(a,"pointerdown",o&&p),ac(function(){return u.current&&u.current.end()})}var S2={pan:xr(w2),drag:xr(y2)},Pi;(function(e){e[e.Entering=0]="Entering",e[e.Present=1]="Present",e[e.Exiting=2]="Exiting"})(Pi||(Pi={}));var $u;(function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show"})($u||($u={}));function Hu(e){return typeof e=="string"&&e.startsWith("var(--")}var Wx=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function C2(e){var t=Wx.exec(e);if(!t)return[,];var n=pt(t,3),r=n[1],i=n[2];return[r,i]}var k2=4;function Uu(e,t,n){n===void 0&&(n=1),Jt(n<=k2,'Max CSS variable fallback depth detected in property "'+e+'". This may indicate a circular fallback dependency.');var r=pt(C2(e),2),i=r[0],a=r[1];if(i){var o=window.getComputedStyle(t).getPropertyValue(i);return o?o.trim():Hu(a)?Uu(a,t,n+1):a}}function E2(e,t,n){var r,i=nn(t,[]),a=e.getInstance();if(!(a instanceof HTMLElement))return{target:i,transitionEnd:n};n&&(n=pe({},n)),e.forEachValue(function(c){var p=c.get();if(Hu(p)){var f=Uu(p,a);f&&c.set(f)}});for(var o in i){var u=i[o];if(Hu(u)){var l=Uu(u,a);l&&(i[o]=l,n&&((r=n[o])!==null&&r!==void 0||(n[o]=u)))}}return{target:i,transitionEnd:n}}function qh(e,t){return e/(t.max-t.min)*100}function _2(e,t,n){var r=n.target;if(typeof e=="string")if(ze.test(e))e=parseFloat(e);else return e;var i=qh(e,r.x),a=qh(e,r.y);return i+"% "+a+"%"}var Wh="_$css";function I2(e,t){var n=t.delta,r=t.treeScale,i=e,a=e.includes("var("),o=[];a&&(e=e.replace(Wx,function(w){return o.push(w),Wh}));var u=Fn.parse(e);if(u.length>5)return i;var l=Fn.createTransformer(e),c=typeof u[0]!="number"?1:0,p=n.x.scale*r.x,f=n.y.scale*r.y;u[0+c]/=p,u[1+c]/=f;var d=Yt(p,f,.5);typeof u[2+c]=="number"&&(u[2+c]/=d),typeof u[3+c]=="number"&&(u[3+c]/=d);var g=l(u);if(a){var x=0;g=g.replace(Wh,function(){var w=o[x];return x++,w})}return g}var ii={process:_2},T2={borderRadius:pe(pe({},ii),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ii,borderTopRightRadius:ii,borderBottomLeftRadius:ii,borderBottomRightRadius:ii,boxShadow:{process:I2}},Kh=1e3,A2=(function(e){br(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.frameTarget=Qn(),n.currentAnimationTarget=Qn(),n.isAnimating={x:!1,y:!1},n.stopAxisAnimation={x:void 0,y:void 0},n.isAnimatingTree=!1,n.animate=function(r,i,a){a===void 0&&(a={});var o=a.originBox,u=a.targetBox,l=a.visibilityAction,c=a.shouldStackAnimate,p=a.onComplete,f=a.prevParent,d=nn(a,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),g=n.props,x=g.visualElement,w=g.layout;if(c===!1)return n.isAnimatingTree=!1,n.safeToRemove();if(!(n.isAnimatingTree&&c!==!0)){c&&(n.isAnimatingTree=!0),i=o||i,r=u||r;var S=!1,b=x.getProjectionParent();if(b){var k=b.prevViewportBox,E=b.getLayoutState().layout;f&&(u&&(E=f.getLayoutState().layout),o&&!f2(f,b)&&f.prevViewportBox&&(k=f.prevViewportBox)),k&&O2(f,o,u)&&(S=!0,i=zr(k,i),r=zr(E,r))}var O=N2(i,r),y=qt(function(m){var _,V;if(w==="position"){var M=r[m].max-r[m].min;i[m].max=i[m].min+M}if(!x.projection.isTargetLocked)if(l!==void 0)x.setVisibility(l===$u.Show);else return O?n.animateAxis(m,r[m],i[m],pe(pe({},d),{isRelative:S})):((V=(_=n.stopAxisAnimation)[m])===null||V===void 0||V.call(_),x.setProjectionTargetAxis(m,r[m].min,r[m].max,S))});return x.syncRender(),Promise.all(y).then(function(){n.isAnimatingTree=!1,p&&p(),x.notifyLayoutAnimationComplete()})}},n}return t.prototype.componentDidMount=function(){var n=this,r=this.props.visualElement;r.animateMotionValue=ds,r.enableLayoutProjection(),this.unsubLayoutReady=r.onLayoutUpdate(this.animate),r.layoutSafeToRemove=function(){return n.safeToRemove()},pI(T2)},t.prototype.componentWillUnmount=function(){var n=this;this.unsubLayoutReady(),qt(function(r){var i,a;return(a=(i=n.stopAxisAnimation)[r])===null||a===void 0?void 0:a.call(i)})},t.prototype.animateAxis=function(n,r,i,a){var o=this,u,l,c=a===void 0?{}:a,p=c.transition,f=c.isRelative;if(!(this.isAnimating[n]&&Ni(r,this.currentAnimationTarget[n]))){(l=(u=this.stopAxisAnimation)[n])===null||l===void 0||l.call(u),this.isAnimating[n]=!0;var d=this.props.visualElement,g=this.frameTarget[n],x=d.getProjectionAnimationProgress()[n];x.clearListeners(),x.set(0),x.set(0);var w=function(){var E=x.get()/Kh;c2(g,i,r,E),d.setProjectionTargetAxis(n,g.min,g.max,f)};w();var S=x.onChange(w);this.stopAxisAnimation[n]=function(){o.isAnimating[n]=!1,x.stop(),S()},this.currentAnimationTarget[n]=r;var b=p||d.getDefaultTransition()||R2,k=ds(n==="x"?"layoutX":"layoutY",x,Kh,b&&hc(b,"layout")).then(this.stopAxisAnimation[n]);return k}},t.prototype.safeToRemove=function(){var n,r;(r=(n=this.props).safeToRemove)===null||r===void 0||r.call(n)},t.prototype.render=function(){return null},t})(Ae.Component);function P2(e){var t=pt(Ng(),2),n=t[1];return Ae.createElement(A2,pe({},e,{safeToRemove:n}))}function N2(e,t){return!Gh(e)&&!Gh(t)&&(!Ni(e.x,t.x)||!Ni(e.y,t.y))}var Jh={min:0,max:0};function Gh(e){return Ni(e.x,Jh)&&Ni(e.y,Jh)}function Ni(e,t){return e.min===t.min&&e.max===t.max}var R2={duration:.45,ease:[.4,0,.1,1]};function O2(e,t,n){return e||!e&&!(t||n)}var L2={layoutReady:function(e){return e.notifyLayoutReady()}};function Kx(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var n=t===void 0?L2:t,r=n.layoutReady,i=n.parent;Bu(function(a,o){var u=Array.from(e).sort(dc),l=i?ms(i):[];o(function(){var c=_t(_t([],pt(l)),pt(u));c.forEach(function(p){return p.resetTransform()})}),a(function(){u.forEach($a)}),o(function(){l.forEach(function(c){return c.restoreTransform()}),u.forEach(r)}),a(function(){u.forEach(function(c){c.isPresent&&(c.presence=Pi.Present)})}),o(function(){Nr.preRender(),Nr.render()}),a(function(){Cn.postRender(function(){return u.forEach(V2)}),e.clear()})}),zu()}}}function V2(e){e.prevViewportBox=e.projection.target}var Jx=F.createContext(Kx()),D2=F.createContext(Kx());function mr(e){return!!e.forceUpdate}var F2=(function(e){br(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var n=this.props,r=n.syncLayout,i=n.framerSyncLayout,a=n.visualElement;mr(r)&&r.register(a),mr(i)&&i.register(a),a.onUnmount(function(){mr(r)&&r.remove(a),mr(i)&&i.remove(a)})},t.prototype.getSnapshotBeforeUpdate=function(){var n=this.props,r=n.syncLayout,i=n.visualElement;return mr(r)?r.syncUpdate():(l2(i),r.add(i)),null},t.prototype.componentDidUpdate=function(){var n=this.props.syncLayout;mr(n)||n.flush()},t.prototype.render=function(){return null},t})(F.Component);function M2(e){var t=F.useContext(Jx),n=F.useContext(D2);return F.createElement(F2,pe({},e,{syncLayout:t,framerSyncLayout:n}))}var j2={measureLayout:M2,layoutAnimation:P2},B2=function(){return{isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:Qn(),targetFinal:Qn()}};function Gx(){return{isHydrated:!1,layout:Qn(),layoutCorrected:Qn(),treeScale:{x:1,y:1},delta:Ih(),deltaFinal:Ih(),deltaTransform:""}}var Yh=Gx();function Bs(e,t,n){var r=e.x,i=e.y,a=r.translate/t.x,o=i.translate/t.y,u="translate3d("+a+"px, "+o+"px, 0) ";if(n){var l=n.rotate,c=n.rotateX,p=n.rotateY;l&&(u+="rotate("+l+") "),c&&(u+="rotateX("+c+") "),p&&(u+="rotateY("+p+") ")}return u+="scale("+r.scale+", "+i.scale+")",!n&&u===z2?"":u}function Yx(e){var t=e.deltaFinal;return t.x.origin*100+"% "+t.y.origin*100+"% 0"}var z2=Bs(Yh.delta,Yh.treeScale,{}),Pa=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function $2(){var e=Pa.map(function(){return new za}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){return Pa.forEach(function(i){var a;(a=t[i])===null||a===void 0||a.call(t);var o="on"+i,u=r[o];u&&(t[i]=n[o](u))})}};return e.forEach(function(r,i){n["on"+Pa[i]]=function(a){return r.add(a)},n["notify"+Pa[i]]=function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return r.notify.apply(r,_t([],pt(a)))}}),n}function H2(e,t,n){var r;for(var i in t){var a=t[i],o=n[i];if(Xn(a))e.addValue(i,a);else if(Xn(o))e.addValue(i,vr(a));else if(o!==a)if(e.hasValue(i)){var u=e.getValue(i);!u.hasAnimated&&u.set(a)}else e.addValue(i,vr((r=e.getStaticValue(i))!==null&&r!==void 0?r:a))}for(var i in n)t[i]===void 0&&e.removeValue(i);return t}function U2(e,t,n,r){var i=e.delta,a=e.layout,o=e.layoutCorrected,u=e.treeScale,l=t.target;h2(o,a),m2(o,u,n),Bx(i,o,l,r)}var q2=(function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){Ax(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){Px(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(dc),this.isDirty=!1,this.children.forEach(t)},e})();function W2(e){var t=e.getProjectionParent();if(!t){e.rebaseProjectionTarget();return}var n=zr(t.getLayoutState().layout,e.getLayoutState().layout);qt(function(r){e.setProjectionTargetAxis(r,n[r].min,n[r].max,!0)})}var Xx=function(e){var t=e.treeType,n=t===void 0?"":t,r=e.build,i=e.getBaseTarget,a=e.makeTargetAnimatable,o=e.measureViewportBox,u=e.render,l=e.readValueFromInstance,c=e.resetTransform,p=e.restoreTransform,f=e.removeValueFromRenderState,d=e.sortNodePosition,g=e.scrapeMotionValuesFromProps;return function(x,w){var S=x.parent,b=x.props,k=x.presenceId,E=x.blockInitialAnimation,O=x.visualState;w===void 0&&(w={});var y=O.latestValues,m=O.renderState,_,V=$2(),M=B2(),P,j=M,W=y,$,se=Gx(),Z,ne=!1,ce=new Map,de=new Map,xe={},L,G=pe({},y),ue;function T(){_&&(Y.isProjectionReady()&&(ju(j.targetFinal,j.target,W),Bx(se.deltaFinal,se.layoutCorrected,j.targetFinal,y)),me(),u(_,m))}function me(){var q=y;if(Z&&Z.isActive()){var ee=Z.getCrossfadeState(Y);ee&&(q=ee)}r(Y,m,q,j,se,w,b)}function be(){V.notifyUpdate(y)}function Se(){if(Y.isProjectionReady()){var q=se.delta,ee=se.treeScale,he=ee.x,Ce=ee.y,Ee=se.deltaTransform;U2(se,j,Y.path,y),ne&&Y.notifyViewportBoxUpdate(j.target,q),ne=!1;var Te=Bs(q,ee);(Te!==Ee||he!==ee.x||Ce!==ee.y)&&Y.scheduleRender(),se.deltaTransform=Te}}function J(){Y.layoutTree.forEach(J2)}function U(q,ee){var he=ee.onChange(function(Ee){y[q]=Ee,b.onUpdate&&Cn.update(be,!1,!0)}),Ce=ee.onRenderRequest(Y.scheduleRender);de.set(q,function(){he(),Ce()})}var Q=g(b);for(var ie in Q){var oe=Q[ie];y[ie]!==void 0&&Xn(oe)&&oe.set(y[ie],!1)}var re=Fs(b),K=Lg(b),Y=pe(pe({treeType:n,current:null,depth:S?S.depth+1:0,parent:S,children:new Set,path:S?_t(_t([],pt(S.path)),[S]):[],layoutTree:S?S.layoutTree:new q2,presenceId:k,projection:M,variantChildren:K?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(S!=null&&S.isMounted()),blockInitialAnimation:E,isMounted:function(){return!!_},mount:function(q){_=Y.current=q,Y.pointTo(Y),K&&S&&!re&&(ue=S==null?void 0:S.addVariantChild(Y)),S==null||S.children.add(Y)},unmount:function(){ci.update(be),ci.render(T),ci.preRender(Y.updateLayoutProjection),de.forEach(function(q){return q()}),Y.stopLayoutAnimation(),Y.layoutTree.remove(Y),ue==null||ue(),S==null||S.children.delete(Y),$==null||$(),V.clearAllListeners()},addVariantChild:function(q){var ee,he=Y.getClosestVariantNode();if(he)return(ee=he.variantChildren)===null||ee===void 0||ee.add(q),function(){return he.variantChildren.delete(q)}},sortNodePosition:function(q){return!d||n!==q.treeType?0:d(Y.getInstance(),q.getInstance())},getClosestVariantNode:function(){return K?Y:S==null?void 0:S.getClosestVariantNode()},scheduleUpdateLayoutProjection:S?S.scheduleUpdateLayoutProjection:function(){return Cn.preRender(Y.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return b.layoutId},getInstance:function(){return _},getStaticValue:function(q){return y[q]},setStaticValue:function(q,ee){return y[q]=ee},getLatestValues:function(){return y},setVisibility:function(q){Y.isVisible!==q&&(Y.isVisible=q,Y.scheduleRender())},makeTargetAnimatable:function(q,ee){return ee===void 0&&(ee=!0),a(Y,q,b,ee)},addValue:function(q,ee){Y.hasValue(q)&&Y.removeValue(q),ce.set(q,ee),y[q]=ee.get(),U(q,ee)},removeValue:function(q){var ee;ce.delete(q),(ee=de.get(q))===null||ee===void 0||ee(),de.delete(q),delete y[q],f(q,m)},hasValue:function(q){return ce.has(q)},getValue:function(q,ee){var he=ce.get(q);return he===void 0&&ee!==void 0&&(he=vr(ee),Y.addValue(q,he)),he},forEachValue:function(q){return ce.forEach(q)},readValue:function(q){var ee;return(ee=y[q])!==null&&ee!==void 0?ee:l(_,q,w)},setBaseTarget:function(q,ee){G[q]=ee},getBaseTarget:function(q){if(i){var ee=i(b,q);if(ee!==void 0&&!Xn(ee))return ee}return G[q]}},V),{build:function(){return me(),m},scheduleRender:function(){Cn.render(T,!1,!0)},syncRender:T,setProps:function(q){b=q,V.updatePropListeners(q),xe=H2(Y,g(b),xe)},getProps:function(){return b},getVariant:function(q){var ee;return(ee=b.variants)===null||ee===void 0?void 0:ee[q]},getDefaultTransition:function(){return b.transition},getVariantContext:function(q){if(q===void 0&&(q=!1),q)return S==null?void 0:S.getVariantContext();if(!re){var ee=(S==null?void 0:S.getVariantContext())||{};return b.initial!==void 0&&(ee.initial=b.initial),ee}for(var he={},Ce=0;Ce<G2;Ce++){var Ee=Qx[Ce],Te=b[Ee];(xn(Te)||Te===!1)&&(he[Ee]=Te)}return he},enableLayoutProjection:function(){M.isEnabled=!0,Y.layoutTree.add(Y)},lockProjectionTarget:function(){M.isTargetLocked=!0},unlockProjectionTarget:function(){Y.stopLayoutAnimation(),M.isTargetLocked=!1},getLayoutState:function(){return se},setCrossfader:function(q){Z=q},isProjectionReady:function(){return M.isEnabled&&M.isHydrated&&se.isHydrated},startLayoutAnimation:function(q,ee,he){he===void 0&&(he=!1);var Ce=Y.getProjectionAnimationProgress()[q],Ee=he?M.relativeTarget[q]:M.target[q],Te=Ee.min,Fe=Ee.max,ye=Fe-Te;return Ce.clearListeners(),Ce.set(Te),Ce.set(Te),Ce.onChange(function(Re){Y.setProjectionTargetAxis(q,Re,Re+ye,he)}),Y.animateMotionValue(q,Ce,0,ee)},stopLayoutAnimation:function(){qt(function(q){return Y.getProjectionAnimationProgress()[q].stop()})},measureViewportBox:function(q){q===void 0&&(q=!0);var ee=o(_,w);return q||qx(ee,y),ee},getProjectionAnimationProgress:function(){return L||(L={x:vr(0),y:vr(0)}),L},setProjectionTargetAxis:function(q,ee,he,Ce){Ce===void 0&&(Ce=!1);var Ee;Ce?(M.relativeTarget||(M.relativeTarget=Qn()),Ee=M.relativeTarget[q]):(M.relativeTarget=void 0,Ee=M.target[q]),M.isHydrated=!0,Ee.min=ee,Ee.max=he,ne=!0,V.notifySetAxisTarget()},rebaseProjectionTarget:function(q,ee){ee===void 0&&(ee=se.layout);var he=Y.getProjectionAnimationProgress(),Ce=he.x,Ee=he.y,Te=!M.relativeTarget&&!M.isTargetLocked&&!Ce.isAnimating()&&!Ee.isAnimating();(q||Te)&&qt(function(Fe){var ye=ee[Fe],Re=ye.min,De=ye.max;Y.setProjectionTargetAxis(Fe,Re,De)})},notifyLayoutReady:function(q){W2(Y),Y.notifyLayoutUpdate(se.layout,Y.prevViewportBox||se.layout,q)},resetTransform:function(){return c(Y,_,b)},restoreTransform:function(){return p(_,m)},updateLayoutProjection:Se,updateTreeLayoutProjection:function(){Y.layoutTree.forEach(K2),Cn.preRender(J,!1,!0)},getProjectionParent:function(){if(P===void 0){for(var q=!1,ee=Y.path.length-1;ee>=0;ee--){var he=Y.path[ee];if(he.projection.isEnabled){q=he;break}}P=q}return P},resolveRelativeTargetBox:function(){var q=Y.getProjectionParent();if(!(!M.relativeTarget||!q)&&(o2(M,q.projection),$x(q))){var ee=M.target;ju(ee,ee,q.getLatestValues())}},shouldResetTransform:function(){return!!b._layoutResetTransform},pointTo:function(q){j=q.projection,W=q.getLatestValues(),$==null||$(),$=zi(q.onSetAxisTarget(Y.scheduleUpdateLayoutProjection),q.onLayoutAnimationComplete(function(){var ee;Y.isPresent?Y.presence=Pi.Present:(ee=Y.layoutSafeToRemove)===null||ee===void 0||ee.call(Y)}))},isPresent:!0,presence:Pi.Entering});return Y}};function K2(e){e.resolveRelativeTargetBox()}function J2(e){e.updateLayoutProjection()}var Qx=_t(["initial"],pt(pc)),G2=Qx.length,Y2=new Set(["width","height","top","left","right","bottom","x","y"]),Zx=function(e){return Y2.has(e)},X2=function(e){return Object.keys(e).some(Zx)},e0=function(e,t){e.set(t,!1),e.set(t)},Na=function(e){return e===Sr||e===ze},Xh;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(Xh||(Xh={}));var Qh=function(e,t){return parseFloat(e.split(", ")[t])},Zh=function(e,t){return function(n,r){var i=r.transform;if(i==="none"||!i)return 0;var a=i.match(/^matrix3d\((.+)\)$/);if(a)return Qh(a[1],t);var o=i.match(/^matrix\((.+)\)$/);return o?Qh(o[1],e):0}},Q2=new Set(["x","y","z"]),Z2=Ei.filter(function(e){return!Q2.has(e)});function eP(e){var t=[];return Z2.forEach(function(n){var r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var ep={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:Zh(4,13),y:Zh(5,14)},tP=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),a=getComputedStyle(i),o=a.display,u=a.top,l=a.left,c=a.bottom,p=a.right,f=a.transform,d={top:u,left:l,bottom:c,right:p,transform:f};o==="none"&&t.setStaticValue("display",e.display||"block"),t.syncRender();var g=t.measureViewportBox();return n.forEach(function(x){var w=t.getValue(x);e0(w,ep[x](r,d)),e[x]=ep[x](g,a)}),e},nP=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=pe({},t),r=pe({},r);var i=Object.keys(t).filter(Zx),a=[],o=!1,u=[];if(i.forEach(function(c){var p=e.getValue(c);if(e.hasValue(c)){var f=n[c],d=t[c],g=Ta(f),x;if(Ii(d))for(var w=d.length,S=d[0]===null?1:0;S<w;S++)x?Jt(Ta(d[S])===x,"All keyframes must be of the same type"):(x=Ta(d[S]),Jt(x===g||Na(g)&&Na(x),"Keyframes must be of the same dimension as the current value"));else x=Ta(d);if(g!==x)if(Na(g)&&Na(x)){var b=p.get();typeof b=="string"&&p.set(parseFloat(b)),typeof d=="string"?t[c]=parseFloat(d):Array.isArray(d)&&x===ze&&(t[c]=d.map(parseFloat))}else g!=null&&g.transform&&(x!=null&&x.transform)&&(f===0||d===0)?f===0?p.set(x.transform(f)):t[c]=g.transform(d):(o||(a=eP(e),o=!0),u.push(c),r[c]=r[c]!==void 0?r[c]:t[c],e0(p,d))}}),u.length){var l=tP(t,e,u);return a.length&&a.forEach(function(c){var p=pt(c,2),f=p[0],d=p[1];e.getValue(f).set(d)}),e.syncRender(),{target:l,transitionEnd:r}}else return{target:t,transitionEnd:r}};function rP(e,t,n,r){return X2(t)?nP(e,t,n,r):{target:t,transitionEnd:r}}var iP=function(e,t,n,r){var i=E2(e,t,r);return t=i.target,r=i.transitionEnd,rP(e,t,n,r)};function aP(e){return window.getComputedStyle(e)}var t0={treeType:"dom",readValueFromInstance:function(e,t){if(Ms(t)){var n=cc(t);return n&&n.default||0}else{var r=aP(e);return(Fg(t)?r.getPropertyValue(t):r[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox:function(e,t){var n=t.transformPagePoint;return jx(e,n)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;r===void 0&&(r=!0);var a=t.transition,o=t.transitionEnd,u=nn(t,["transition","transitionEnd"]),l=VA(u,a||{},e);if(i&&(o&&(o=i(o)),u&&(u=i(u)),l&&(l=i(l))),r){OA(e,u,l);var c=iP(e,u,l,o);o=c.transitionEnd,u=c.target}return pe({transition:a,transitionEnd:o},u)},scrapeMotionValuesFromProps:tc,build:function(e,t,n,r,i,a,o){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden");var u=r.isEnabled&&i.isHydrated;Ql(t,n,r,i,a,o.transformTemplate,u?Bs:void 0,u?Yx:void 0)},render:Yg},sP=Xx(t0),oP=Xx(pe(pe({},t0),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Ms(t)?((n=cc(t))===null||n===void 0?void 0:n.default)||0:(t=Xg.has(t)?t:Gg(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Zg,build:function(e,t,n,r,i,a,o){var u=r.isEnabled&&i.isHydrated;ec(t,n,r,i,a,o.transformTemplate,u?Bs:void 0,u?Yx:void 0)},render:Qg})),uP=function(e,t){return Yl(e)?oP(t,{enableHardwareAcceleration:!1}):sP(t,{enableHardwareAcceleration:!0})},lP=pe(pe(pe(pe({},WA),dA),S2),j2),n0=fI(function(e,t){return aT(e,t,lP,uP)});function cP(){var e=F.useRef(!1),t=pt(F.useState(0),2),n=t[0],r=t[1];return ac(function(){return e.current=!0}),F.useCallback(function(){!e.current&&r(n+1)},[n])}var tp=0;function fP(){var e=tp;return tp++,e}var tu=function(e){var t=e.children,n=e.initial,r=e.isPresent,i=e.onExitComplete,a=e.custom,o=e.presenceAffectsLayout,u=ki(hP),l=ki(fP),c=F.useMemo(function(){return{id:l,initial:n,isPresent:r,custom:a,onExitComplete:function(p){u.set(p,!0);var f=!0;u.forEach(function(d){d||(f=!1)}),f&&(i==null||i())},register:function(p){return u.set(p,!1),function(){return u.delete(p)}}}},o?void 0:[r]);return F.useMemo(function(){u.forEach(function(p,f){return u.set(f,!1)})},[r]),Ae.useEffect(function(){!r&&!u.size&&(i==null||i())},[r]),Ae.createElement(Fi.Provider,{value:c},t)};function hP(){return new Map}var qu={};function Ar(e){return e.key||""}function pP(e,t){var n=qu.NODE_ENV!=="production"?new Set:null;e.forEach(function(r){var i=Ar(r);qu.NODE_ENV!=="production"&&n&&(n.has(i)&&console.warn('Children of AnimatePresence require unique keys. "'+i+'" is a duplicate.'),n.add(i)),t.set(i,r)})}function dP(e){var t=[];return F.Children.forEach(e,function(n){F.isValidElement(n)&&t.push(n)}),t}var mP=function(e){var t=e.children,n=e.custom,r=e.initial,i=r===void 0?!0:r,a=e.onExitComplete,o=e.exitBeforeEnter,u=e.presenceAffectsLayout,l=u===void 0?!0:u,c=cP(),p=F.useContext(Jx);mr(p)&&(c=p.forceUpdate);var f=F.useRef(!0),d=dP(t),g=F.useRef(d),x=F.useRef(new Map).current,w=F.useRef(new Set).current;if(pP(d,x),f.current)return f.current=!1,Ae.createElement(Ae.Fragment,null,d.map(function(m){return Ae.createElement(tu,{key:Ar(m),isPresent:!0,initial:i?void 0:!1,presenceAffectsLayout:l},m)}));for(var S=_t([],pt(d)),b=g.current.map(Ar),k=d.map(Ar),E=b.length,O=0;O<E;O++){var y=b[O];k.indexOf(y)===-1?w.add(y):w.delete(y)}return o&&w.size&&(S=[]),w.forEach(function(m){if(k.indexOf(m)===-1){var _=x.get(m);if(_){var V=b.indexOf(m),M=function(){x.delete(m),w.delete(m);var P=g.current.findIndex(function(j){return j.key===m});g.current.splice(P,1),w.size||(g.current=d,c(),a&&a())};S.splice(V,0,Ae.createElement(tu,{key:Ar(_),isPresent:!1,onExitComplete:M,custom:n,presenceAffectsLayout:l},_))}}}),S=S.map(function(m){var _=m.key;return w.has(_)?m:Ae.createElement(tu,{key:Ar(m),isPresent:!0,presenceAffectsLayout:l},m)}),g.current=S,qu.NODE_ENV!=="production"&&o&&S.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),Ae.createElement(Ae.Fragment,null,w.size?S:S.map(function(m){return F.cloneElement(m)}))},mc={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},gP=tn("span",{baseStyle:mc});hn&&(gP.displayName="VisuallyHidden");var xP=tn("input",{baseStyle:mc});hn&&(xP.displayName="VisuallyHiddenInput");function Tt(){return Tt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tt.apply(this,arguments)}function zs(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var vP=["id","isRequired","isInvalid","isDisabled","isReadOnly"],bP=["getRootProps","htmlProps"],r0=Hl({strict:!1,name:"FormControlContext"}),yP=r0[0],Kr=r0[1];function wP(e){var t=e.id,n=e.isRequired,r=e.isInvalid,i=e.isDisabled,a=e.isReadOnly,o=zs(e,vP),u=BE(),l=t||"field-"+u,c=l+"-label",p=l+"-feedback",f=l+"-helptext",d=Ae.useState(!1),g=d[0],x=d[1],w=Ae.useState(!1),S=w[0],b=w[1],k=Fa(),E=k[0],O=k[1],y=Ae.useCallback(function(P,j){return P===void 0&&(P={}),j===void 0&&(j=null),Tt({id:f},P,{ref:is(j,function(W){W&&b(!0)})})},[f]),m=Ae.useCallback(function(P,j){var W,$;return P===void 0&&(P={}),j===void 0&&(j=null),Tt({},P,{ref:j,"data-focus":Et(E),"data-disabled":Et(i),"data-invalid":Et(r),"data-readonly":Et(a),id:(W=P.id)!=null?W:c,htmlFor:($=P.htmlFor)!=null?$:l})},[l,i,E,r,a,c]),_=Ae.useCallback(function(P,j){return P===void 0&&(P={}),j===void 0&&(j=null),Tt({id:p},P,{ref:is(j,function(W){W&&x(!0)}),"aria-live":"polite"})},[p]),V=Ae.useCallback(function(P,j){return P===void 0&&(P={}),j===void 0&&(j=null),Tt({},P,o,{ref:j,role:"group"})},[o]),M=Ae.useCallback(function(P,j){return P===void 0&&(P={}),j===void 0&&(j=null),Tt({},P,{ref:j,role:"presentation","aria-hidden":!0,children:P.children||"*"})},[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!i,isFocused:!!E,onFocus:O.on,onBlur:O.off,hasFeedbackText:g,setHasFeedbackText:x,hasHelpText:S,setHasHelpText:b,id:l,labelId:c,feedbackId:p,helpTextId:f,htmlProps:o,getHelpTextProps:y,getErrorMessageProps:_,getRootProps:V,getLabelProps:m,getRequiredIndicatorProps:M}}var SP=ir(function(e,t){var n=Jl("Form",e),r=Rs(e),i=wP(r),a=i.getRootProps;i.htmlProps;var o=zs(i,bP),u=rr("chakra-form-control",e.className);return Ae.createElement(yP,{value:o},Ae.createElement(_g,{value:n},Ae.createElement(tn.div,Tt({},a({},t),{className:u,__css:n.container}))))});hn&&(SP.displayName="FormControl");var CP=ir(function(e,t){var n=Kr(),r=Wl(),i=rr("chakra-form__helper-text",e.className);return Ae.createElement(tn.div,Tt({},n==null?void 0:n.getHelpTextProps(e,t),{__css:r.helperText,className:i}))});hn&&(CP.displayName="FormHelperText");var kP=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function EP(e){var t,n,r,i=Kr(),a=e.id,o=e.disabled,u=e.readOnly,l=e.required,c=e.isRequired,p=e.isInvalid,f=e.isReadOnly,d=e.isDisabled,g=e.onFocus,x=e.onBlur,w=zs(e,kP),S=e["aria-describedby"]?[e["aria-describedby"]]:[];return i!=null&&i.hasFeedbackText&&i!=null&&i.isInvalid&&S.push(i.feedbackId),i!=null&&i.hasHelpText&&S.push(i.helpTextId),Tt({},w,{"aria-describedby":S.join(" ")||void 0,id:a??(i==null?void 0:i.id),isDisabled:(t=o??d)!=null?t:i==null?void 0:i.isDisabled,isReadOnly:(n=u??f)!=null?n:i==null?void 0:i.isReadOnly,isRequired:(r=l??c)!=null?r:i==null?void 0:i.isRequired,isInvalid:p??(i==null?void 0:i.isInvalid),onFocus:Ut(i==null?void 0:i.onFocus,g),onBlur:Ut(i==null?void 0:i.onBlur,x)})}var _P=ir(function(e,t){var n=Jl("FormError",e),r=Rs(e),i=Kr();return i!=null&&i.isInvalid?Ae.createElement(_g,{value:n},Ae.createElement(tn.div,Tt({},i==null?void 0:i.getErrorMessageProps(r,t),{className:rr("chakra-form__error-message",e.className),__css:Tt({display:"flex",alignItems:"center"},n.text)}))):null});hn&&(_P.displayName="FormErrorMessage");var IP=ir(function(e,t){var n=Wl(),r=Kr();if(!(r!=null&&r.isInvalid))return null;var i=rr("chakra-form__error-icon",e.className);return Ae.createElement(q_,Tt({ref:t,"aria-hidden":!0},e,{__css:n.icon,className:i}),Ae.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))});hn&&(IP.displayName="FormErrorIcon");var TP=["className","children","requiredIndicator","optionalIndicator"],AP=ir(function(e,t){var n,r=Ig("FormLabel",e),i=Rs(e);i.className;var a=i.children,o=i.requiredIndicator,u=o===void 0?Ae.createElement(i0,null):o,l=i.optionalIndicator,c=l===void 0?null:l,p=zs(i,TP),f=Kr(),d=(n=f==null?void 0:f.getLabelProps(p,t))!=null?n:Tt({ref:t},p);return Ae.createElement(tn.label,Tt({},d,{className:rr("chakra-form__label",i.className),__css:Tt({display:"block",textAlign:"start"},r)}),a,f!=null&&f.isRequired?u:c)});hn&&(AP.displayName="FormLabel");var i0=ir(function(e,t){var n=Kr(),r=Wl();if(!(n!=null&&n.isRequired))return null;var i=rr("chakra-form__required-indicator",e.className);return Ae.createElement(tn.span,Tt({},n==null?void 0:n.getRequiredIndicatorProps(e,t),{__css:r.requiredIndicator,className:i}))});hn&&(i0.displayName="RequiredIndicator");function Pt(){return Pt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pt.apply(this,arguments)}var PP=Hl({name:"CheckboxGroupContext",strict:!1}),NP=PP[1];function gc(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var RP=["isIndeterminate","isChecked"];function OP(e){var t=n0;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}var a0=OP(tn.svg),LP=function(t){return Ae.createElement(a0,Pt({width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16}},t),Ae.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))},VP=function(t){return Ae.createElement(a0,Pt({width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4}},t),Ae.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))},DP=function(t){var n=t.open,r=t.children;return Ae.createElement(mP,{initial:!1},n&&Ae.createElement(n0.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},r))},FP=function(t){var n=t.isIndeterminate,r=t.isChecked,i=gc(t,RP),a=n?VP:LP;return Ae.createElement(DP,{open:r||n},Ae.createElement(a,i))},MP=["defaultIsChecked","defaultChecked","isChecked","isFocusable","onChange","isIndeterminate","name","value","tabIndex","aria-label","aria-labelledby","aria-invalid"];function jP(e){e===void 0&&(e={});var t=EP(e),n=t.isDisabled,r=t.isReadOnly,i=t.isRequired,a=t.isInvalid,o=t.id,u=t.onBlur,l=t.onFocus,c=t["aria-describedby"],p=e,f=p.defaultIsChecked,d=p.defaultChecked,g=d===void 0?f:d,x=p.isChecked,w=p.isFocusable,S=p.onChange,b=p.isIndeterminate,k=p.name,E=p.value,O=p.tabIndex,y=O===void 0?void 0:O,m=p["aria-label"],_=p["aria-labelledby"],V=p["aria-invalid"],M=gc(p,MP),P=$l(M,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),j=Ho(S),W=Ho(u),$=Ho(l),se=Fa(),Z=se[0],ne=se[1],ce=Fa(),de=ce[0],xe=ce[1],L=Fa(),G=L[0],ue=L[1],T=F.useRef(null),me=F.useState(!0),be=me[0],Se=me[1],J=F.useState(!!g),U=J[0],Q=J[1],ie=DE(x,U),oe=ie[0],re=ie[1];gg({condition:!!f,message:'The "defaultIsChecked" prop has been deprecated and will be removed in a future version. Please use the "defaultChecked" prop instead, which mirrors default React checkbox behavior.'});var K=F.useCallback(function(ye){if(r||n){ye.preventDefault();return}oe||Q(re?ye.target.checked:b?!0:ye.target.checked),j==null||j(ye)},[r,n,re,oe,b,j]);Cu(function(){T.current&&(T.current.indeterminate=!!b)},[b]),zE(function(){n&&ne.off()},[n,ne]);var Y=n&&!w,q=F.useCallback(function(ye){ye.key===" "&&ue.on()},[ue]),ee=F.useCallback(function(ye){ye.key===" "&&ue.off()},[ue]);Cu(function(){if(T.current){var ye=T.current.checked!==re;ye&&Q(T.current.checked)}},[T.current]);var he=F.useCallback(function(ye,Re){ye===void 0&&(ye={}),Re===void 0&&(Re=null);var De=function(ae){ae.preventDefault(),ue.on()};return Pt({},ye,{ref:Re,"data-active":Et(G),"data-hover":Et(de),"data-checked":Et(re),"data-focus":Et(Z),"data-indeterminate":Et(b),"data-disabled":Et(n),"data-invalid":Et(a),"data-readonly":Et(r),"aria-hidden":!0,onMouseDown:Ut(ye.onMouseDown,De),onMouseUp:Ut(ye.onMouseUp,ue.off),onMouseEnter:Ut(ye.onMouseEnter,xe.on),onMouseLeave:Ut(ye.onMouseLeave,xe.off)})},[G,re,n,Z,de,b,a,r,ue,xe.off,xe.on]),Ce=F.useCallback(function(ye,Re){return ye===void 0&&(ye={}),Re===void 0&&(Re=null),Pt({},P,ye,{ref:is(Re,function(De){De&&Se(De.tagName==="LABEL")}),onClick:Ut(ye.onClick,function(){if(!be){var De;(De=T.current)==null||De.click(),NE(T.current,{nextTick:!0})}}),"data-disabled":Et(n),"data-checked":Et(re),"data-invalid":Et(a)})},[P,n,re,a,be]),Ee=F.useCallback(function(ye,Re){return ye===void 0&&(ye={}),Re===void 0&&(Re=null),Pt({},ye,{ref:is(T,Re),type:"checkbox",name:k,value:E,id:o,tabIndex:y,onChange:Ut(ye.onChange,K),onBlur:Ut(ye.onBlur,W,ne.off),onFocus:Ut(ye.onFocus,$,ne.on),onKeyDown:Ut(ye.onKeyDown,q),onKeyUp:Ut(ye.onKeyUp,ee),required:i,checked:re,disabled:Y,readOnly:r,"aria-label":m,"aria-labelledby":_,"aria-invalid":V?!!V:a,"aria-describedby":c,"aria-disabled":n,style:mc})},[k,E,o,K,ne.off,ne.on,W,$,q,ee,i,re,Y,r,m,_,V,a,c,n,y]),Te=F.useCallback(function(ye,Re){return ye===void 0&&(ye={}),Re===void 0&&(Re=null),Pt({},ye,{ref:Re,onMouseDown:Ut(ye.onMouseDown,np),onTouchStart:Ut(ye.onTouchStart,np),"data-disabled":Et(n),"data-checked":Et(re),"data-invalid":Et(a)})},[re,n,a]),Fe={isInvalid:a,isFocused:Z,isChecked:re,isActive:G,isHovered:de,isIndeterminate:b,isDisabled:n,isReadOnly:r,isRequired:i};return{state:Fe,getRootProps:Ce,getCheckboxProps:he,getInputProps:Ee,getLabelProps:Te,htmlProps:P}}function np(e){e.preventDefault(),e.stopPropagation()}var BP=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],zP=tn("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),$P=tn("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),s0=ir(function(e,t){var n=NP(),r=Pt({},n,e),i=Jl("Checkbox",r),a=Rs(e),o=a.spacing,u=o===void 0?"0.5rem":o,l=a.className,c=a.children,p=a.iconColor,f=a.iconSize,d=a.icon,g=d===void 0?Ae.createElement(FP,null):d,x=a.isChecked,w=a.isDisabled,S=w===void 0?n==null?void 0:n.isDisabled:w,b=a.onChange,k=a.inputProps,E=gc(a,BP),O=x;n!=null&&n.value&&a.value&&(O=n.value.includes(a.value));var y=b;n!=null&&n.onChange&&a.value&&(y=AE(n.onChange,b));var m=jP(Pt({},E,{isDisabled:S,isChecked:O,onChange:y})),_=m.state,V=m.getInputProps,M=m.getCheckboxProps,P=m.getLabelProps,j=m.getRootProps,W=Ae.useMemo(function(){return Pt({opacity:_.isChecked||_.isIndeterminate?1:0,transform:_.isChecked||_.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:f,color:p},i.icon)},[p,f,_.isChecked,_.isIndeterminate,i.icon]),$=Ae.cloneElement(g,{__css:W,isIndeterminate:_.isIndeterminate,isChecked:_.isChecked});return Ae.createElement($P,Pt({__css:i.container,className:rr("chakra-checkbox",l)},j()),Ae.createElement("input",Pt({className:"chakra-checkbox__input"},V(k,t))),Ae.createElement(zP,Pt({__css:i.control,className:"chakra-checkbox__control"},M()),$),c&&Ae.createElement(tn.span,Pt({className:"chakra-checkbox__label"},P(),{__css:Pt({marginStart:u},i.label)}),c))});hn&&(s0.displayName="Checkbox");const HP=({label:e,isocode:t,isChecked:n,onToggle:r})=>R.jsxs("label",{className:"flex cursor-pointer items-center gap-2 rounded py-0.5 text-xs text-grey-50 hover:bg-grey-700 hover:text-white",children:[R.jsx(s0,{className:"h-4",colorScheme:"primary",isChecked:n,onChange:r}),R.jsx("span",{className:"truncate",title:t,children:e})]}),UP=({detectedLanguageDetails:e,selectedIsocodes:t,onToggleIsocode:n})=>R.jsxs("div",{className:"mt-2 w-full rounded border border-grey-50 bg-grey-800 px-2 py-1.5",children:[R.jsx("p",{className:"mb-1.5 text-xs font-medium text-grey-100",children:"Detected locales"}),R.jsx("div",{className:"flex flex-col gap-1 overflow-y-auto",style:{maxHeight:"5rem"},children:e.map(r=>R.jsx(HP,{label:`${r.native} - ${r.isocode??""}`,isocode:r.isocode,isChecked:t.includes(r.isocode),onToggle:()=>n(r.isocode)},r.isocode))})]}),qP="Drop or Add a File !",WP=({getRootProps:e,getInputProps:t,isDragActive:n,file:r,error:i,onResetFile:a,detectedLanguageDetails:o,selectedIsocodes:u,onToggleIsocode:l,onClose:c,onImport:p,setError:f,hasNoSelection:d})=>R.jsxs(R.Fragment,{children:[R.jsxs("div",{className:"mt-4 space-y-2",children:[R.jsxs("div",{...e(),children:[R.jsx("input",{...t()}),R.jsx("div",{className:ht("min-h-[100px] rounded border border-dashed text-center text-sm",{"border-purple-500":n,"flex items-center justify-center":r}),children:r?R.jsxs("div",{className:"flex items-center justify-center gap-1 px-2",children:[R.jsx("p",{className:"min-w-0 flex-1 truncate",children:r.name}),R.jsx(we.Tooltip,{label:"Remove file",children:R.jsx("button",{type:"button",onClick:g=>{g.stopPropagation(),a()},className:"flex shrink-0 rounded p-1 text-grey-100 hover:bg-grey-700 hover:text-white","aria-label":"Remove file",children:R.jsx(ot.FdClose,{className:"h-4 w-4"})})})]}):R.jsxs("div",{className:"flex min-h-[100px] w-full flex-col items-center justify-center text-grey-100",children:[R.jsx("p",{className:"max-w-md px-2 text-center text-xs ",children:'Drag and drop the file with ".json" or ".csv" extension here or click to select it from your computer.'}),R.jsx(ot.FdDownload,{className:"mt-2 h-6 w-6 text-grey-200"})]})}),i&&R.jsx("div",{className:"flex items-center justify-center p-2",children:R.jsx("p",{className:"text-xs text-red-400",children:i})})]}),r&&o.length>0&&R.jsx(UP,{detectedLanguageDetails:o,selectedIsocodes:u,onToggleIsocode:l})]}),R.jsxs("div",{className:"mt-4 flex items-center justify-between gap-4",children:[R.jsxs("div",{className:"flex flex-row space-x-1 justify-center items-center text-purple-600 hover:underline cursor-pointer",onClick:()=>{window.open("https://developer.4d.com/qodly/4DQodlyPro/localization#exporting-and-importing-translations","_blank")},children:[R.jsx("p",{className:"text-xs",children:"How to Import an i18n File"}),R.jsx(ot.FdOutload,{className:"ml-1 h-4 w-4 text-grey-50"})]}),R.jsxs("div",{className:"flex items-center space-x-2",children:[R.jsx("button",{onClick:c,className:"rounded border w-16 border-white px-2 py-1 text-xs font-medium text-grey-50 hover:bg-white hover:border-white hover:font-bold hover:text-primary-dark",children:"Cancel"}),R.jsx("button",{disabled:d,onClick:()=>{!i&&r?p():r||f(qP)},className:ht("rounded w-16 px-2 py-1 text-xs font-medium text-grey-50 bg-primary-dark",d&&"cursor-not-allowed opacity-50",!d&&"hover:border-white hover:border hover:bg-primary-hover hover:text-white hover:font-bold"),children:"Import"})]})]})]}),KP=({summary:e,onClose:t})=>R.jsxs(R.Fragment,{children:[R.jsxs("div",{className:"mt-4 space-y-4",children:[R.jsx("p",{className:"text-sm text-grey-100",children:"Summary"}),R.jsxs("div",{className:"rounded border border-grey-50 bg-grey-800 px-3 py-3 space-y-2",children:[R.jsxs("div",{className:"flex items-center justify-between text-xs",children:[R.jsx("span",{className:"text-grey-200",children:"Keys Imported"}),R.jsx("span",{className:"font-medium text-white",children:e.importedKeys})]}),R.jsxs("div",{className:"flex items-center justify-between text-xs",children:[R.jsx("span",{className:"text-grey-200",children:"Keys Merged"}),R.jsx("span",{className:"font-medium text-white",children:e.mergedKeys})]}),R.jsxs("div",{className:"flex items-center justify-between text-xs",children:[R.jsx("span",{className:"text-grey-200",children:"Keys Unchanged"}),R.jsx("span",{className:"font-medium text-white",children:e.unchangedKeys})]})]})]}),R.jsx("div",{className:"mt-4 flex justify-end",children:R.jsx("button",{onClick:t,className:"rounded border border-white px-4 py-1.5 text-xs font-medium text-grey-50 hover:bg-white hover:border-white hover:font-bold hover:text-primary-dark",children:"Close"})})]}),o0=({disable:e,enable:t,RenderTrigger:n})=>{const r=yr(),{state:{file:i,isOpen:a,supprtedExtension:o,error:u,content:l,detectedLanguages:c,selectedIsocodes:p,showSummaryView:f,summary:d},actions:g}=we.useStateObject({file:null,error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],content:{},detectedLanguages:[],selectedIsocodes:[],showSummaryView:!1,summary:{importedKeys:0,mergedKeys:0,unchangedKeys:0}}),[x,w]=F.useState(!1),S=r.getWebformTabs(),{i18n:{keys:b}}=Zn(),{allSupportedLanguages:k,userLanguages:{supported:E,primary:O},setUserLangSettings:y}=er(),m=F.useMemo(()=>k.filter(J=>c.includes(J.isocode)),[k,c]),_=J=>{const U=new Set(E.map(oe=>oe.isocode)),Q=J.filter(oe=>!U.has(oe));if(Q.length===0)return;const ie=Q.map(oe=>Lr(oe,k)).filter(oe=>oe!=null).map(oe=>({isocode:oe.isocode}));ie.length!==0&&y({primary:E.length===0?ie[0].isocode:O,supported:E.concat(ie)})},{getRootProps:V,getInputProps:M,isDragActive:P}=c0.useDropzone({async onDropAccepted([J]){if(o.find(U=>J.name.endsWith(U))){g.setError(""),g.setFile(J);const U=await $(J),Q=J.name.split(".").pop()||"";try{if(Q==="csv"){const ie=nE(U);if(!ie.valid){g.setError(ie.message);return}const oe=ue(U,Q);g.setContent(oe||{});const re=tE(U);g.setDetectedLanguages(re),g.setSelectedIsocodes(re)}else{const ie=JSON.parse(U),oe=rE(ie,fE);if(!oe.valid){g.setError(oe.message);return}const re=ue(U,Q);g.setContent(re||{});const K=Zk(ie);g.setDetectedLanguages(K),g.setSelectedIsocodes(K)}}catch(ie){g.setError(ie.message||"Invalid file");return}}else g.setError(Gk.DROP_EVENT_ERROR)},accept:{"application/*":o},multiple:!1}),j=()=>{g.setFileType(""),g.setError(""),g.setFile(null),g.setContent({}),g.setDetectedLanguages([]),g.setSelectedIsocodes([])},W=()=>{g.setIsOpen(!1),g.setShowSummaryView(!1),g.setSummary({importedKeys:0,mergedKeys:0,unchangedKeys:0}),j()},$=J=>new Promise(U=>{const Q=new FileReader;Q.onload=()=>U(Q.result),Q.readAsText(J)}),se=async(J,U,Q)=>{if(Q){const ie=`WebForms/${U}.WebForm`;await r.actions.setTabContent({path:ie,content:J.content}),we.webformSubject.next({path:ie,action:we.WebformActions.RECOMPUTE,payload:J.content.components})}else{const ie={...J};await we.saveContent({verb:we.DesignerRequestVerb.SAVE_CONTENT,content:ie.content,path:`WebForms/${U}.WebForm`})}},Z=(J,U)=>{const{content:{components:Q}}=ge.cloneDeep(J);if(!Q)return J;const ie=(K,Y,q,ee)=>{if(Array.isArray(K))K.forEach((he,Ce)=>{let Ee="";q==="Text"?Ee=Array.isArray(he)?`${Y}.[${Ce}].children`:`${Y}.[${Ce}]`:Ee=`${Y}.[${Ce}]`,ie(he,Ee,q,ee)});else if(ge.isObject(K))if(Object.keys(K).length>1){const Ce=Object.keys(K),Ee={};Ce.forEach(Fe=>{const ye=ge.get(K,Fe);if(Fe==="__t")ge.set(ee,`props.${Y}`,ye);else if(ye&&Fe.startsWith("states:")){const Re=Fe.split(":"),De=Re.map((Ge,ae)=>ae+1===Re.length?`i18n:${Ge}`:Ge).join(":");if(!ee.custom)return;ge.set(Ee,`${De}.${Y}`,ye)}else if(ye){const Re=`i18n:${Fe}`;if(!ee.custom)return;ge.set(Ee,`${Re}.${Y}`,ye)}});const[Te]=Y.split(".");Object.entries(Ee).forEach(([Fe,ye])=>{const Re=ge.get(ee,`props.${Te}`,{}),De=ge.get(ee,`custom.${Fe}.${Te}`);let Ge="";typeof De=="string"||typeof Re=="string"?Ge=ge.get(ye,Te):Ge=ge.merge(De||ge.cloneDeep(Re),ge.get(ye,Te)),ge.set(ee,`custom.${Fe}.${Te}`,Ge)})}else{const Ce=Object.entries(K)[0],Ee=Ce[0],Te=Ce[1];Y=`${Y}.${Ee}`,ie(Te,Y,q,ee)}},oe=Object.entries(U);for(let K=0;K<oe.length;K++){const[Y,q]=oe[K],{resolverName:ee,...he}=q,Ce=ge.get(Q,Y);if(Ce)if(ee==="Text"){const{custom:Ee,props:Te}=he;ge.set(Q,Y,{...Ce,props:{...Ce.props,...Te},custom:{...Ce.custom,...Ee}})}else Object.entries(he).forEach(([Ee,Te])=>{const Fe=ge.get(Q,Y);if(!Fe)return;const ye=ge.cloneDeep(Fe);ie(Te,Ee,ee,ye),ge.set(Q,Y,ye)})}const re=ge.cloneDeep(J);return ge.set(re,"content.components",Q),re},ne=J=>J==null||typeof J=="string"&&J.trim()==="",ce=(J,U)=>{const Q=J&&ge.isObject(J)?J:{},ie=U&&ge.isObject(U)?U:{};if(ne(ie))return ge.cloneDeep(Q);const oe=ge.cloneDeep(Q);for(const re of Object.keys(ie)){const K=ie[re];if(!K||!ge.isObject(K))continue;const Y=oe[re],q=new Set([...Object.keys(K),...Y&&ge.isObject(Y)?Object.keys(Y):[]]),ee={};for(const he of q){const Ce=ge.get(K,he),Ee=Y&&ge.isObject(Y)?ge.get(Y,he):void 0;ne(Ce)?ne(Ee)||(ee[he]=Ee):ee[he]=Ce}for(const he of Yk){const Ce=ge.get(ee,he),Ee=Y&&ge.isObject(Y)?ge.get(Y,he):void 0;!ne(Ee)&&ne(Ce)&&ge.set(ee,he,Ee)}oe[re]=ee}return oe},de=(J,U)=>{const Q={importedKeys:0,mergedKeys:0,unchangedKeys:0},ie=new Set(Object.keys(U||{}));for(const oe of ie){const re=U[oe],K=J[oe];if(!K||!ge.isObject(K)){Q.importedKeys+=1;continue}const Y=Object.keys(re);let q=!1;for(const ee of Y){const he=re[ee],Ce=ge.get(K,ee),Ee=ne(he)&&!ne(Ce),Te=String(he??"")===String(Ce??"");if(!Ee&&!Te){q=!0;break}}Y.length>0&&!q?Q.unchangedKeys+=1:q&&(Q.mergedKeys+=1)}for(const oe of Object.keys(J))ie.has(oe)||(Q.unchangedKeys+=1);return Q},xe=async(J,U,Q)=>{const{webforms:ie,i18n:oe}=J,re=ce(b,oe),K=de(b,oe);we.i18nSubject.next({action:"set_content",payload:re});const Y=q=>{const ee=q+1===U.length?U.length:q,he=Math.ceil(ee/U.length*100);we.tasksManagerSubject.next({id:Q,action:"update",type:"i18n",payload:{progress:he,status:he>=100?"finished":"ongoing"}})};if(ne(ie))return K;for(let q=0;q<U.length;q++){const ee=U[q],he=S.find(ye=>ye.name===ee.name&&ye.type==="webform"),Ce=!!he,Ee=Ce?he:await we.getNodeInfo({verb:we.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${ee.name}.${ee.ext}`,as:"json"}),{name:Te}=Ee;if(!ie[Te]){Y(q);continue}const Fe=Z(Ee,ie[Te]);await se(Fe,Te,Ce),Y(q)}return K},L=J=>{const U=rm(J),{data:Q}=Ku.parse(U),ie={};let oe=[];return Q.forEach((re,K)=>{if(K===0){oe=re;return}let Y="",q="";re.forEach((ee,he)=>{if(he===0)Y=ee;else if(he===1)q=ee;else if(Y.startsWith("i18n")){if(ge.has(ie,Y)&&ge.get(ie,Y))return;ge.set(ie,Y,ee)}else if(ee){const{webformName:Ce,componentId:Ee,propName:Te}=sk(Y);if(ge.set(ie,`webforms.${Ce}.${Ee}.resolverName`,q),q==="Text"){const Fe=Lo(ee),ye=oe[he];ye==="__t"?ge.set(ie,`webforms.${Ce}.${Ee}.props.${Te}`,Fe):ge.set(ie,`webforms.${Ce}.${Ee}.custom.i18n:${ye}.${Te}`,Fe)}else{const Fe=oe[he];let ye=Fe==="i18nkey_default"?"default":Fe;if(ye.includes(":")){const Re=ye.split(":");ye=Re.map((De,Ge)=>Ge===0?`states:${De}`:Ge===Re.length-1?`i18n:${De}`:De).join(":")}ge.set(ie,`${Y}.${ye}`,ee)}}})}),ie},G=J=>{const U=JSON.parse(J),Q={},{webforms:ie,i18n:oe}=U;return ie&&Object.keys(ie).forEach(K=>{const Y=ge.get(ie,K);Object.keys(Y).forEach(ee=>{const he=ge.get(Y,ee),{props:Ce,resolverName:Ee}=he;ge.set(Q,`webforms.${K}.${ee}.resolverName`,Ee),Array.isArray(Ce)&&Ce.forEach(({__dataPath:Te,__default:Fe,...ye})=>{if(Ee==="Text"){const Re=Lo(Fe);ge.set(Q,`webforms.${K}.${ee}.props.doc`,Re),Object.keys(ye).forEach(De=>{const Ge=Lo(ye[De]);ge.set(Q,`webforms.${K}.${ee}.custom.i18n:${De}.doc`,Ge)})}else ge.set(Q,`webforms.${K}.${ee}.${Te}.__t`,Fe),Object.keys(ye).forEach(Re=>{let De=Re;if(De.includes(":")){const Ge=De.split(":");De=Ge.map((ae,le)=>le===0?`states:${ae}`:le===Ge.length-1?`i18n:${ae}`:ae).join(":")}ge.set(Q,`webforms.${K}.${ee}.${Te}.${De}`,ye[Re])})})})}),oe&&Object.keys(oe).forEach(K=>{const Y=ge.get(oe,K);Y&&Object.keys(Y).forEach(ee=>{const he=ge.get(Y,ee);ge.set(Q,`i18n.${K}.${ee}`,he)})}),Q},ue=(J,U)=>{switch(U){case"csv":return L(J);case"json":return G(J)}},T=async()=>{if(i){const J=Wu.generate().toString();try{we.tasksManagerSubject.next({id:J,action:"add",type:"i18n",payload:{date:new Date().toISOString(),progress:0,name:"Import i18n",status:"ongoing"}});const U=await nm(),Q=eE(l,p),ie=await xe(Q,U,J);g.setSummary(ie),g.setShowSummaryView(!0),_(p)}catch(U){we.tasksManagerSubject.next({id:J,type:"i18n",action:"update",payload:{status:"canceled"}}),we.tasksManagerSubject.next({id:J,type:"i18n",action:"error",payload:{errorMessage:U.message||"Import file error"}})}}};if(!t)return R.jsx(R.Fragment,{});const me=()=>{g.setIsOpen(!0),w(!1),j()},be=J=>{g.setSelectedIsocodes(p.includes(J)?p.filter(U=>U!==J):[...p,J])},Se=n?R.jsx(n,{onClick:me,disabled:!!e}):R.jsx(we.Tooltip,{label:"Import",isOpen:x,children:R.jsx("button",{disabled:e,className:ht("flex h-full flex-row items-center rounded p-1 disabled:opacity-50",{"cursor-not-allowed":e},{"hover:bg-primary-hover":!e}),onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),onClick:me,children:R.jsx(ot.FdDownload,{className:"h-4 w-4"})})});return R.jsxs(R.Fragment,{children:[Se,R.jsx(im,{isOpen:a,onClose:W,title:f?"Import summary":"Import",children:f?R.jsx(KP,{summary:d,onClose:W}):R.jsx(WP,{getRootProps:V,getInputProps:M,isDragActive:P,file:i,error:u,onResetFile:j,detectedLanguages:c,detectedLanguageDetails:m,selectedIsocodes:p,onToggleIsocode:be,onClose:W,onImport:T,setError:g.setError,hasNoSelection:p.length===0})})]})},JP=({onClick:e})=>R.jsx(we.Tooltip,{label:"Edit",children:R.jsx("button",{"data-cy":"locales-list-item-edit-button",onClick:t=>{t.stopPropagation(),e()},className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",children:R.jsx(ot.FdPen,{className:"h-4 w-4"})})}),GP=({onClick:e,disable:t})=>t?R.jsx(R.Fragment,{}):R.jsx(we.Tooltip,{label:"Remove",children:R.jsx("button",{"data-cy":"locales-list-item-remove-button",disabled:t,onClick:n=>{n.stopPropagation(),e()},className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",children:R.jsx(ot.FdTrash,{className:"h-4 w-4"})})}),YP=({collapse:e,onClick:t})=>R.jsx(we.Tooltip,{label:"Collapse",children:R.jsx("button",{onClick:n=>{n.stopPropagation(),t()},className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",children:R.jsx(ot.FdDown,{className:ht("h-4 w-4 ",{"-rotate-90":e})})})}),XP=({lang:e,onCancel:t,onConfirm:n})=>{var k,E,O;const{allSupportedLanguages:r}=er(),{i18n:i}=Zn(),a=F.useMemo(()=>{var m,_;const y=new Set;return(m=i==null?void 0:i.userLang)!=null&&m.primary&&y.add(i.userLang.primary),(_=i==null?void 0:i.userLang)!=null&&_.supported&&i.userLang.supported.forEach(V=>{y.add(V.isocode)}),r.filter(V=>!y.has(V.isocode))},[r,(k=i==null?void 0:i.userLang)==null?void 0:k.primary,(E=i==null?void 0:i.userLang)==null?void 0:E.supported]),{state:{supported:o,selectedLanguage:u,highlightedLanguageIndex:l},actions:c}=we.useStateObject({supported:a,editing:!1,selectedLanguage:null,highlightedLanguageIndex:-1}),{isOpen:p,getToggleButtonProps:f,getMenuProps:d,getItemProps:g,getInputProps:x}=Bl({onSelectedItemChange:({selectedItem:y})=>{y&&(c.setSelectedLanguage({isocode:y.isocode}),c.setSupported(a))},onInputValueChange:({inputValue:y})=>{if(!y){c.setSupported(a);return}const m=new RegExp(ge.escapeRegExp(y),"gi"),_=a.filter(V=>!y||V.native.match(m)||V.isocode.match(m)||V.locale.match(m));c.setSupported(_)},items:o,itemToString:y=>{if(!y)return"";const m=Lr(y.isocode,r);return m?`${m.locale} - ${m.native}`:y.isocode},onHighlightedIndexChange:({highlightedIndex:y})=>{c.setHighlightedLanguageIndex(y)}}),w=we.useOutsideClick(()=>{u&&n(u)}),S=()=>{t()},b=()=>{u?n(u):t()};return R.jsxs("div",{className:"flex flex-row justify-between items-center border-1 mb-2 bg-grey-300 rounded border px-2 py-2 hover:cursor-pointer",ref:w,children:[R.jsxs("div",{children:[R.jsx("div",{className:ht("flex flex-col gap-1 border w-48",{"border-primary-dark rounded-t":p||u,rounded:!p}),children:R.jsxs("div",{className:"flex h-7 rounded bg-grey-300 w-full",children:[R.jsx("input",{"data-cy":"locales-new-language-input",placeholder:((O=Lr(e==null?void 0:e.isocode,r))==null?void 0:O.locale)||"Select a language",className:"w-full cursor-pointer placeholder:text-grey-50 text-xs rounded text-grey-50 caret-grey-50 bg-grey-300 p-1.5 placeholder:text-xs focus:outline-none",...x({onKeyUp:y=>{y.key==="Enter"&&b()}}),autoFocus:!0}),R.jsx("button",{"aria-label":"toggle menu",className:"cursor-pointer rounded px-2",type:"button",...f({onClick:()=>{c.setSupported(a)}}),children:R.jsx(ot.FdDown,{className:"w-4 h-4 text-green-50"})})]})}),R.jsx("ul",{className:`absolute z-10 w-48 max-h-80 overflow-scroll bg-grey-900 py-1 space-y-1 border-b border-x border-1 rounded-b border-primary-dark ${!(p&&o.length)&&"hidden"}`,...d(),children:p&&o.map((y,m)=>{const _=Lr(y.isocode,r);return R.jsx("li",{className:ht("cursor-pointer text-grey-50 h-5 p-1","flex flex-col justify-center items-start",{"bg-primary-hover":m===l}),...g({item:y,index:m}),children:R.jsx("span",{className:"truncate text-xs text-justify flex justify-center items-center",children:`${_==null?void 0:_.native} - ${_==null?void 0:_.isocode}`})},y.isocode)})})]}),R.jsxs("div",{className:"flex space-x-1",children:[R.jsx(we.Tooltip,{label:"Cancel",children:R.jsx("button",{"data-cy":"locales-new-language-cancel-button",className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:S,children:R.jsx(ot.FdClose,{className:"h-4 w-4 text-gray-50"})})}),R.jsx(we.Tooltip,{label:"Confirm",children:R.jsx("button",{"data-cy":"locales-new-language-confirm-button",className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:b,children:R.jsx(ot.FdCheckCircle,{className:"h-4 w-4 text-gray-50"})})})]})]})},u0=({activate:e,...t})=>e?R.jsx(XP,{...t}):R.jsx(R.Fragment,{}),QP=({primary:e,selected:t,selectMode:n,lang:r,onSelect:i,onRemove:a,onEdit:o,"data-cy":u})=>{const{state:{hover:l,selected:c,collapse:p,editing:f},actions:{setHover:d,setSelected:g,setCollapse:x,setEditing:w}}=we.useStateObject({hover:!1,selected:!1,collapse:!0,editing:!1}),{selectedLanguage:S,setSelectedLanguage:b}=er(),{isocode:k,locale:E,native:O}=r||{isocode:"",locale:"",native:""},y=e===k,m=()=>{d(!0)},_=()=>{d(!1)},V=()=>{g(!c),i(k,!c)},M=()=>{w(!0)},P=()=>{a(k)},j=()=>{b(r)},W=se=>{w(!1),o(r,se)},$=()=>{w(!1)};return F.useEffect(()=>{g(t)},[t]),F.useEffect(()=>{y&&b(r)},[]),f?R.jsx(u0,{lang:r,activate:f,onCancel:$,onConfirm:W}):R.jsxs("div",{"data-cy":u,className:ht("border-[1px] mb-2 bg-grey-300 flex flex-col space-y-2 rounded px-2 py-2 hover:cursor-pointer",{"border-primary-dark":(S==null?void 0:S.isocode)===(r==null?void 0:r.isocode)}),onMouseEnter:m,onMouseLeave:_,onClick:j,children:[R.jsxs("div",{className:"flex flex-row justify-between items-center",children:[R.jsxs("div",{className:"flex flex-row space-x-1 text-gray-50",children:[l||n?R.jsx(we.Checkbox,{className:ht("h-4 w-4 rounded"),isChecked:c,onChange:V}):R.jsx(R.Fragment,{}),R.jsx(ot.FdLocalization,{className:ht("w-4 h-4",{hidden:n||l})}),R.jsx("span",{className:ht("text-xs",{"italic font-bold":y}),children:O})]}),R.jsxs("div",{className:"text-grey-50 flex flex-row items-center space-x-1",children:[y&&R.jsx("div",{className:"bg-primary-dark rounded p-0.5 text-xs text-center shrink-0 h-5 w-12",children:"Primary"}),R.jsx(JP,{onClick:M}),R.jsx(GP,{disable:y,onClick:P}),R.jsx(YP,{collapse:p,onClick:()=>x(!p)})]})]}),R.jsxs("div",{className:ht("ml-6 flex justify-between p-1 text-xs",{hidden:p}),children:[R.jsx("span",{className:"text-grey-50",children:"English name"}),R.jsx("span",{className:"text-grey-100",children:E})]}),R.jsxs("div",{className:ht("text-grey-50 ml-6 flex justify-between p-1 text-xs",{hidden:p}),children:[R.jsx("span",{className:"text-grey-50",children:"Iso Code"}),R.jsx("span",{className:"text-grey-100",children:k})]})]})},ZP=()=>{const{state:{selectedLanguages:e,shouldAddNewLocal:t,selectAll:n},actions:r}=we.useStateObject({selectAll:!1,selectedLanguages:[],shouldAddNewLocal:!1,allSupportedLanguages:[]}),{userLanguages:{supported:i=[],primary:a},addFirstLanguage:o,setAddFirstLanguage:u,setUserLangSettings:l,setSelectedLanguage:c,allSupportedLanguages:p}=er(),{editLanguageKeys:f,deleteLanguageKeys:d}=Zn(),g=g0(e),x=x0(e),w=yr(),S=w.getI18nCurrent(),b=w.getTabs(),k=(se,Z)=>{const ne=Z?e.concat(se):e.filter(ce=>ce!==se);r.setSelectedLanguages(ne),n&&r.setSelectAll(!1)},E=se=>{r.setShouldAddNewLocal(se)},O=()=>{r.setSelectAll(!n),n?r.setSelectedLanguages([]):r.setSelectedLanguages(i.map(se=>se.isocode))},y=se=>{const Z={primary:i.length===0?se.isocode:a,supported:i.concat(se)};l(Z),r.setShouldAddNewLocal(!1)};F.useEffect(()=>{o&&r.setShouldAddNewLocal(!0)},[o]);const m=(se,Z)=>{const ne=`i18n:${Z}`,ce=`:i18n:${Z}`,de=xe=>{xe.custom&&Object.keys(xe.custom).forEach(L=>{(L.includes(ne)||L.endsWith(ce))&&delete xe.custom[L]})};return Object.values(se).forEach(xe=>de(xe)),se},_=(se,Z)=>se.map(ne=>{var de;const ce=ge.cloneDeep(ne);return(de=ce.content)!=null&&de.components&&(ce.content={...ce.content,components:m({...ce.content.components},Z)}),ce}),V=(se,Z,ne)=>{const ce=`i18n:${Z}`,de=`:i18n:${Z}`,xe=L=>{L.custom&&Object.keys(L.custom).forEach(G=>{if(G===ce){const ue=L.custom[G];delete L.custom[G],L.custom[`i18n:${ne}`]=ue}else if(G.endsWith(de)){const ue=L.custom[G];delete L.custom[G];const T=G.replace(`:i18n:${Z}`,`:i18n:${ne}`);L.custom[T]=ue}})};return Object.values(se).forEach(L=>xe(L)),se},M=(se,Z,ne)=>se.map(ce=>{var xe;const de=ge.cloneDeep(ce);return(xe=de.content)!=null&&xe.components&&(de.content={...de.content,components:V({...de.content.components},Z,ne)}),de}),P=async se=>{const{confirmed:Z}=await w.actions.openModal({title:"Delete Language",message:"Your translations will be lost , want to proceed ?",type:we.ModalType.CONFIRM,color:we.ModalColor.WARNING,icon:"FdWarningDanger"});if(!Z)return;d({isocode:se});const ne=_(b,se);w.actions.setTabs(ne);const ce={primary:a,supported:i.filter(de=>de.isocode!==se)};l(ce),e.includes(se)&&r.setSelectedLanguages(e.filter(de=>de!==se)),ce.supported.length===0&&u(!1),se===S&&w.actions.setI18nCurrent("")},j=(se,Z)=>{const ne={primary:a===se.isocode?Z.isocode:a,supported:i.map(de=>de.isocode===se.isocode?Z:de)},ce=M(b,se.isocode,Z.isocode);w.actions.setTabs(ce),S===se.isocode&&w.actions.setI18nCurrent(Z.isocode),f(se,Z),l(ne),c(Z)},W=()=>{E(!1),i.length===0&&u(!1)},$=()=>{t?we.toastSubject.next({kind:"warning",message:"To add a new locale, please confirm your selection by clicking 'Confirm'"}):E(!0)};return R.jsxs("div",{className:"flex w-72 flex-col space-y-2 px-2 py-3 shrink-0",children:[R.jsxs("div",{className:"text-grey-50 flex flex-row justify-between",children:[R.jsxs("div",{className:"flex flex-row items-center justify-center space-x-2 text-sm",children:[R.jsx(ot.FdLocalization,{className:"h-4 w-4"}),R.jsx("span",{className:"text-sm text-gray-50",children:"Locales "})]}),R.jsxs("div",{className:"space-x-2",children:[R.jsx(we.Tip,{tipKey:"editors:i18n:locals",alwaysOn:!0}),R.jsx(we.Tooltip,{label:"Add new language",children:R.jsx("button",{"data-cy":"locales-header-add-button",onClick:$,className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",children:R.jsx(ot.FdPlus,{className:"h-4 w-4 text-gray-50"})})})]})]}),R.jsxs("div",{className:"flex px-[5px] justify-between text-gray-50",children:[R.jsxs("div",{"data-cy":"locales-select-all-checkbox",className:ht("text-grey-50 flex items-center justify-center space-x-1",{visible:g,invisible:!g}),children:[R.jsx(we.Checkbox,{isChecked:n,onChange:O}),R.jsx("span",{className:"text-xs",children:"Select all"})]}),R.jsxs("div",{className:"flex flex-row items-center justify-center space-x-1",children:[R.jsx(Jk,{"data-cy":"localization-export-button",enable:!0,disable:!1,toExport:e}),R.jsx(o0,{"data-cy":"localization-import-button",enable:!0,disable:!1})]})]}),R.jsx(u0,{activate:t,onConfirm:y,onCancel:W}),R.jsx("div",{style:{height:t?"calc(100vh - 14.75rem)":"calc(100vh - 11.75rem)"},children:R.jsx(l0,{"data-cy":"locales-list",style:{height:"100%",width:"100%"},children:[...i].sort(se=>se.isocode===a?-1:1).map((se,Z)=>{const ne=Lr(se.isocode,p);return R.jsx(QP,{"data-cy":`locales-list-item-${ne==null?void 0:ne.isocode}`,primary:a,selected:n||e.includes(ne==null?void 0:ne.isocode),lang:ne,onSelect:k,selectMode:x,onRemove:P,onEdit:j},Z)})})})]})},eN=({onAddLocal:e})=>R.jsxs("div",{"data-cy":"localization-empty-view",className:"flex flex-col justify-center items-center space-y-3 pb-[30%] w-full h-full bg-grey-800",children:[R.jsx(ot.FdInfoBold,{className:"h-8 w-8 text-grey-200"}),R.jsx("span",{className:"text-grey-200 text-sm text-center",children:"No locale is available yet. Add a new one or import a locale."}),R.jsxs("div",{className:"flex flex-row items-center justify-center space-x-2",children:[R.jsxs("div",{"data-cy":"localization-empty-add-button",className:"flex flex-row items-center justify-center px-2 py-1 space-x-1 bg-primary-dark rounded cursor-pointer",onClick:e,children:[R.jsx(ot.FdPlus,{className:"h-4 w-4 text-grey-50"}),R.jsx("span",{className:"text-grey-50 text-sm",children:"Add new Locale"})]}),R.jsx(o0,{enable:!0,RenderTrigger:({onClick:t})=>R.jsxs("div",{className:"flex flex-row items-center justify-center px-2 py-1 space-x-1 bg-primary-dark rounded text-grey-50 text-sm disabled:opacity-50 cursor-pointer",onClick:t,children:[R.jsx(ot.FdDownload,{className:"h-4 w-4 text-grey-50"}),R.jsx("span",{className:"text-grey-50 text-sm",children:"Import Locale"})]})})]})]}),tN=()=>{var o;const{userLanguages:e,addFirstLanguage:t,setAddFirstLanguage:n}=er(),i=(((o=e.supported)==null?void 0:o.length)??0)===0&&!t,a=()=>{n(!0)};return i?R.jsx(eN,{onAddLocal:a}):R.jsxs("div",{className:ht("flex flex-row w-full h-full bg-grey-800",{"justify-center items-center":i}),children:[R.jsx(ZP,{}),R.jsx(H0,{})]})},xc=()=>R.jsx(xp,{children:R.jsx(tN,{})}),vc=()=>document.querySelector(`.${Ju.LOCALIZATION_EDITOR_SCOPE_CLASS}`)||document.body,nN=({container:e,...t})=>R.jsx(we.Portal,{...t,container:e||vc()}),rN=()=>{const{modals:e,closeModal:t,editModal:n}=Ep();return R.jsx(R.Fragment,{children:e.map((r,i)=>R.jsx(we.Modal,{hasOverlay:i===0,...r,onClose:t,onEdit:n,container:vc()},r.id))})},iN=({onTabsChange:e,onI18nCurrentChange:t})=>{const n=yr(),r=n.getTabs(),i=n.getI18nCurrent();return we.useDidMountEffect(()=>{e&&e(r)},[e,r]),we.useDidMountEffect(()=>{t&&t(i)},[t,i]),R.jsxs(R.Fragment,{children:[R.jsx("div",{className:`relative h-screen z-10 overflow-hidden ${Ju.LOCALIZATION_EDITOR_SCOPE_CLASS}`,children:R.jsx(xc,{})}),R.jsx(rN,{})]})},aN=({children:e})=>{const t=yr();return R.jsx(dp,{getSupportedLanguages:n=>t.getSupportedLanguages(n),i18nCurrent:t.getI18nCurrent(),activeTabPath:t.getActiveTabPath(),flagsForActiveTab:t.getFlagsByPath(t.getActiveTabPath()),children:e})},sN=({userComponents:e,buildResolver:t,supportedLanguages:n,...r})=>{const i=kp(e,t,n);return R.jsx(bp,{adapter:i,children:R.jsx(fp,{isI18nEnabled:!0,onI18nChange:()=>{},children:R.jsx(aN,{children:R.jsx(we.TipsProvider,{children:R.jsx(iN,{...r})})})})})},oN=({tabs:e=[],i18nCurrent:t="",...n})=>R.jsx(Cp,{tabs:e,i18nCurrent:t,children:R.jsx(sN,{...n})});exports.LOCALIZATION_EDITOR_SCOPE_CLASS=Ju.LOCALIZATION_EDITOR_SCOPE_CLASS;exports.EditorStateAdapterProvider=bp;exports.EditorStateContext=vs;exports.I18N_ACTIONS=V0;exports.I18N_CONSTANT=cp;exports.I18nProvider=fp;exports.LocalizationEditor=xc;exports.LocalizationEditorProvider=xp;exports.LocalizationProvider=dp;exports.Portal=nN;exports.ReducerAdapterProvider=Cp;exports.Standalone=oN;exports.default=xc;exports.getDefaultContainer=vc;exports.getDefaultInitialState=Sp;exports.getLanguageDetails=Lr;exports.localizationReducer=wp;exports.useEditorStateAdapter=yr;exports.useI18n=Zn;exports.useLocalization=mp;exports.useLocalizationEditor=er;exports.useModals=Ep;exports.useReducerAdapter=kp;exports.useReduxAdapter=j0;
|
|
52
|
+
*/var Vu;function zb(){return Vu||(Vu=1,he.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),_=!1,x=!1,E=!1,C=!1,S=!1,k;k=Symbol.for("react.module.reference");function A(re){return!!(typeof re=="string"||typeof re=="function"||re===n||re===r||S||re===i||re===c||re===p||C||re===g||_||x||E||typeof re=="object"&&re!==null&&(re.$$typeof===m||re.$$typeof===d||re.$$typeof===a||re.$$typeof===o||re.$$typeof===u||re.$$typeof===k||re.getModuleId!==void 0))}function b(re){if(typeof re=="object"&&re!==null){var we=re.$$typeof;switch(we){case e:var xe=re.type;switch(xe){case n:case r:case i:case c:case p:return xe;default:var be=xe&&xe.$$typeof;switch(be){case l:case o:case u:case m:case d:case a:return be;default:return we}}case t:return we}}}var f=o,T=a,L=e,V=u,D=n,B=m,j=d,$=t,K=r,W=i,ne=c,te=p,J=!1,ue=!1;function y(re){return J||(J=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function X(re){return ue||(ue=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ie(re){return b(re)===o}function P(re){return b(re)===a}function G(re){return typeof re=="object"&&re!==null&&re.$$typeof===e}function q(re){return b(re)===u}function F(re){return b(re)===n}function z(re){return b(re)===m}function Y(re){return b(re)===d}function ee(re){return b(re)===t}function se(re){return b(re)===r}function le(re){return b(re)===i}function H(re){return b(re)===c}function pe(re){return b(re)===p}rt.ContextConsumer=f,rt.ContextProvider=T,rt.Element=L,rt.ForwardRef=V,rt.Fragment=D,rt.Lazy=B,rt.Memo=j,rt.Portal=$,rt.Profiler=K,rt.StrictMode=W,rt.Suspense=ne,rt.SuspenseList=te,rt.isAsyncMode=y,rt.isConcurrentMode=X,rt.isContextConsumer=ie,rt.isContextProvider=P,rt.isElement=G,rt.isForwardRef=q,rt.isFragment=F,rt.isLazy=z,rt.isMemo=Y,rt.isPortal=ee,rt.isProfiler=se,rt.isStrictMode=le,rt.isSuspense=H,rt.isSuspenseList=pe,rt.isValidElementType=A,rt.typeOf=b})()),rt}var zu;function Bb(){return zu||(zu=1,he.NODE_ENV==="production"?es.exports=Vb():es.exports=zb()),es.exports}var Bu=Bb();const Hu=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Ku=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Ir=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Ku(n.overflowY,t)||Ku(n.overflowX,t)||(i=>{const r=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!r&&(r.clientHeight<i.scrollHeight||r.clientWidth<i.scrollWidth)})(e)}return!1},_r=(e,t,n,i,r,a,o,l)=>a<e&&o>t||a>e&&o<t?0:a<=e&&l<=n||o>=t&&l>=n?a-e-i:o>t&&l<n||a<e&&l>n?o-t+r:0,Hb=e=>e.parentElement??(e.getRootNode().host||null),Kb=(e,t)=>{var n,i,r,a;if(typeof document>"u")return[];const{inline:o,boundary:l,skipOverflowHiddenElements:u}=t,c=typeof l=="function"?l:$=>$!==l;if(!Hu(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,d=[];let m=e;for(;Hu(m)&&c(m);){if(m=Hb(m),m===p){d.push(m);break}m!=null&&m===document.body&&Ir(m)&&!Ir(document.documentElement)||m!=null&&Ir(m,u)&&d.push(m)}const g=(i=(n=window.visualViewport)==null?void 0:n.width)!=null?i:innerWidth,_=(a=(r=window.visualViewport)==null?void 0:r.height)!=null?a:innerHeight,{scrollX:x,scrollY:E}=window,{height:C,width:S,top:k,right:A,bottom:b,left:f}=e.getBoundingClientRect(),{top:T,right:L,left:V}=($=>{const K=window.getComputedStyle($);return{top:parseFloat(K.scrollMarginTop)||0,right:parseFloat(K.scrollMarginRight)||0,bottom:parseFloat(K.scrollMarginBottom)||0,left:parseFloat(K.scrollMarginLeft)||0}})(e);let D=k-T,B=o==="center"?f+S/2-V+L:o==="end"?A+L:f-V;const j=[];for(let $=0;$<d.length;$++){const K=d[$],{height:W,width:ne,top:te,right:J,bottom:ue,left:y}=K.getBoundingClientRect();if(k>=0&&f>=0&&b<=_&&A<=g&&(K===p&&!Ir(K)||k>=te&&b<=ue&&f>=y&&A<=J))return j;const X=getComputedStyle(K),ie=parseInt(X.borderLeftWidth,10),P=parseInt(X.borderTopWidth,10),G=parseInt(X.borderRightWidth,10),q=parseInt(X.borderBottomWidth,10);let F=0,z=0;const Y="offsetWidth"in K?K.offsetWidth-K.clientWidth-ie-G:0,ee="offsetHeight"in K?K.offsetHeight-K.clientHeight-P-q:0,se="offsetWidth"in K?K.offsetWidth===0?0:ne/K.offsetWidth:0,le="offsetHeight"in K?K.offsetHeight===0?0:W/K.offsetHeight:0;if(p===K)F=_r(E,E+_,_,P,q,E+D,E+D+C,C),z=o==="start"?B:o==="center"?B-g/2:o==="end"?B-g:_r(x,x+g,g,ie,G,x+B,x+B+S,S),F=Math.max(0,F+E),z=Math.max(0,z+x);else{F=_r(te,ue,W,P,q+ee,D,D+C,C),z=o==="start"?B-y-ie:o==="center"?B-(y+ne/2)+Y/2:o==="end"?B-J+G+Y:_r(y,J,ne,ie,G+Y,B,B+S,S);const{scrollLeft:H,scrollTop:pe}=K;F=le===0?0:Math.max(0,Math.min(pe+F/le,K.scrollHeight-W/le+ee)),z=se===0?0:Math.max(0,Math.min(H+z/se,K.scrollWidth-ne/se+Y)),D+=pe-F,B+=H-z}j.push({el:K,top:F,left:z})}return j};var xi=function(){return xi=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},xi.apply(this,arguments)},Ub=0;function Uu(e){return typeof e=="function"?e:It}function It(){}function Cd(e,t){if(e){var n=Kb(e,{boundary:t});n.forEach(function(i){var r=i.el,a=i.top,o=i.left;r.scrollTop=a,r.scrollLeft=o})}}function Wu(e,t,n){var i=e===t||t instanceof n.Node&&e.contains&&e.contains(t);return i}function Sa(e,t){var n;function i(){n&&clearTimeout(n)}function r(){for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];i(),n=setTimeout(function(){n=null,e.apply(void 0,o)},t)}return r.cancel=i,r}function Ze(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];return t.some(function(l){return l&&l.apply(void 0,[i].concat(a)),i.preventDownshiftDefault||i.hasOwnProperty("nativeEvent")&&i.nativeEvent.preventDownshiftDefault})}}function Qt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){t.forEach(function(r){typeof r=="function"?r(i):r&&(r.current=i)})}}function Id(){return String(Ub++)}function Wb(e){var t=e.isOpen,n=e.resultCount,i=e.previousResultCount;return t?n?n!==i?n+" result"+(n===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function qu(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function _d(e){return typeof e.type=="string"}function Ad(e){return e.props}function qb(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var Gb=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function Ar(e){e===void 0&&(e={});var t={};return Gb.forEach(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function Gi(e,t){return!e||!t?e:Object.keys(e).reduce(function(n,i){return n[i]=ea(t,i)?t[i]:e[i],n},{})}function ea(e,t){return e[t]!==void 0}function bi(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function $b(e){return Object.prototype.toString.call(e)==="[object Object]"}function en(e,t,n,i,r){r===void 0&&(r=!1);var a=n.length;if(a===0)return-1;var o=a-1;(typeof e!="number"||e<0||e>o)&&(e=t>0?-1:o+1);var l=e+t;l<0?l=r?o:0:l>o&&(l=r?0:o);var u=Mn(l,t<0,n,i,r);return u===-1?e>=a?-1:e:u}function Mn(e,t,n,i,r){r===void 0&&(r=!1);var a=n.length;if(t){for(var o=e;o>=0;o--)if(!i(n[o],o))return o}else for(var l=e;l<a;l++)if(!i(n[l],l))return l;return r?Mn(t?a-1:0,t,n,i):-1}function ta(e,t,n,i){return i===void 0&&(i=!0),n&&t.some(function(r){return r&&(Wu(r,e,n)||i&&Wu(r,n.document.activeElement,n))})}var yo=It;he.NODE_ENV!=="production"&&(yo=function(e,t,n){var i="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach(function(r){t[r]!==void 0&&n[r]===void 0?console.error('downshift: A component has changed the controlled prop "'+r+'" to be uncontrolled. '+i):t[r]===void 0&&n[r]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+r+'" to be controlled. '+i)})});var Jb=Sa(function(e){Nd(e).textContent=""},500);function Nd(e){var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function Td(e,t){if(!(!e||!t)){var n=Nd(t);n.textContent=e,Jb(t)}}function Yb(e){var t=e==null?void 0:e.getElementById("a11y-status-message");t&&t.remove()}var Pd=he.NODE_ENV!=="production"?"__autocomplete_unknown__":0,Od=he.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,Ld=he.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,Br=he.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,Hr=he.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,Rd=he.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Dd=he.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,Md=he.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,Fd=he.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,jd=he.NODE_ENV!=="production"?"__autocomplete_click_item__":9,Vd=he.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,zd=he.NODE_ENV!=="production"?"__autocomplete_change_input__":11,Bd=he.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,Ks=he.NODE_ENV!=="production"?"__autocomplete_click_button__":13,Hd=he.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,Kd=he.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,Ud=he.NODE_ENV!=="production"?"__autocomplete_touchend__":16,Xb=Object.freeze({__proto__:null,blurButton:Hd,blurInput:Vd,changeInput:zd,clickButton:Ks,clickItem:jd,controlledPropUpdatedSelectedItem:Kd,itemMouseEnter:Ld,keyDownArrowDown:Hr,keyDownArrowUp:Br,keyDownEnd:Fd,keyDownEnter:Dd,keyDownEscape:Rd,keyDownHome:Md,keyDownSpaceButton:Bd,mouseUp:Od,touchEnd:Ud,unknown:Pd}),Zb=["refKey","ref"],Qb=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],e0=["onKeyDown","onBlur","onChange","onInput","onChangeText"],t0=["refKey","ref"],n0=["onMouseMove","onMouseDown","onClick","onPress","index","item"],i0=(function(){var e=(function(t){function n(r){var a;a=t.call(this,r)||this,a.id=a.props.id||"downshift-"+Id(),a.menuId=a.props.menuId||a.id+"-menu",a.labelId=a.props.labelId||a.id+"-label",a.inputId=a.props.inputId||a.id+"-input",a.getItemId=a.props.getItemId||function(S){return a.id+"-item-"+S},a.items=[],a.itemCount=null,a.previousResultCount=0,a.timeoutIds=[],a.internalSetTimeout=function(S,k){var A=setTimeout(function(){a.timeoutIds=a.timeoutIds.filter(function(b){return b!==A}),S()},k);a.timeoutIds.push(A)},a.setItemCount=function(S){a.itemCount=S},a.unsetItemCount=function(){a.itemCount=null},a.isItemDisabled=function(S,k){var A=a.getItemNodeFromIndex(k);return A&&A.hasAttribute("disabled")},a.setHighlightedIndex=function(S,k){S===void 0&&(S=a.props.defaultHighlightedIndex),k===void 0&&(k={}),k=Ar(k),a.internalSetState(Le({highlightedIndex:S},k))},a.clearSelection=function(S){a.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:a.props.defaultHighlightedIndex,isOpen:a.props.defaultIsOpen},S)},a.selectItem=function(S,k,A){k=Ar(k),a.internalSetState(Le({isOpen:a.props.defaultIsOpen,highlightedIndex:a.props.defaultHighlightedIndex,selectedItem:S,inputValue:a.props.itemToString(S)},k),A)},a.selectItemAtIndex=function(S,k,A){var b=a.items[S];b!=null&&a.selectItem(b,k,A)},a.selectHighlightedItem=function(S,k){return a.selectItemAtIndex(a.getState().highlightedIndex,S,k)},a.internalSetState=function(S,k){var A,b,f={},T=typeof S=="function";return!T&&S.hasOwnProperty("inputValue")&&a.props.onInputValueChange(S.inputValue,Le({},a.getStateAndHelpers(),S)),a.setState(function(L){var V;L=a.getState(L);var D=T?S(L):S;D=a.props.stateReducer(L,D),A=D.hasOwnProperty("selectedItem");var B={};return A&&D.selectedItem!==L.selectedItem&&(b=D.selectedItem),(V=D).type||(V.type=Pd),Object.keys(D).forEach(function(j){L[j]!==D[j]&&(f[j]=D[j]),j!=="type"&&(D[j],ea(a.props,j)||(B[j]=D[j]))}),T&&D.hasOwnProperty("inputValue")&&a.props.onInputValueChange(D.inputValue,Le({},a.getStateAndHelpers(),D)),B},function(){Uu(k)();var L=Object.keys(f).length>1;L&&a.props.onStateChange(f,a.getStateAndHelpers()),A&&a.props.onSelect(S.selectedItem,a.getStateAndHelpers()),b!==void 0&&a.props.onChange(b,a.getStateAndHelpers()),a.props.onUserAction(f,a.getStateAndHelpers())})},a.rootRef=function(S){return a._rootNode=S},a.getRootProps=function(S,k){var A,b=S===void 0?{}:S,f=b.refKey,T=f===void 0?"ref":f,L=b.ref,V=_t(b,Zb),D=k===void 0?{}:k,B=D.suppressRefError,j=B===void 0?!1:B;a.getRootProps.called=!0,a.getRootProps.refKey=T,a.getRootProps.suppressRefError=j;var $=a.getState(),K=$.isOpen;return Le((A={},A[T]=Qt(L,a.rootRef),A.role="combobox",A["aria-expanded"]=K,A["aria-haspopup"]="listbox",A["aria-owns"]=K?a.menuId:void 0,A["aria-labelledby"]=a.labelId,A),V)},a.keyDownHandlers={ArrowDown:function(S){var k=this;if(S.preventDefault(),this.getState().isOpen){var A=S.shiftKey?5:1;this.moveHighlightedIndex(A,{type:Hr})}else this.internalSetState({isOpen:!0,type:Hr},function(){var b=k.getItemCount();if(b>0){var f=k.getState(),T=f.highlightedIndex,L=en(T,1,{length:b},k.isItemDisabled,!0);k.setHighlightedIndex(L,{type:Hr})}})},ArrowUp:function(S){var k=this;if(S.preventDefault(),this.getState().isOpen){var A=S.shiftKey?-5:-1;this.moveHighlightedIndex(A,{type:Br})}else this.internalSetState({isOpen:!0,type:Br},function(){var b=k.getItemCount();if(b>0){var f=k.getState(),T=f.highlightedIndex,L=en(T,-1,{length:b},k.isItemDisabled,!0);k.setHighlightedIndex(L,{type:Br})}})},Enter:function(S){if(S.which!==229){var k=this.getState(),A=k.isOpen,b=k.highlightedIndex;if(A&&b!=null){S.preventDefault();var f=this.items[b],T=this.getItemNodeFromIndex(b);if(f==null||T&&T.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Dd})}}},Escape:function(S){S.preventDefault(),this.reset(Le({type:Rd},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},a.buttonKeyDownHandlers=Le({},a.keyDownHandlers,{" ":function(S){S.preventDefault(),this.toggleMenu({type:Bd})}}),a.inputKeyDownHandlers=Le({},a.keyDownHandlers,{Home:function(S){var k=this.getState(),A=k.isOpen;if(A){S.preventDefault();var b=this.getItemCount();if(!(b<=0||!A)){var f=Mn(0,!1,{length:b},this.isItemDisabled);this.setHighlightedIndex(f,{type:Md})}}},End:function(S){var k=this.getState(),A=k.isOpen;if(A){S.preventDefault();var b=this.getItemCount();if(!(b<=0||!A)){var f=Mn(b-1,!0,{length:b},this.isItemDisabled);this.setHighlightedIndex(f,{type:Fd})}}}}),a.getToggleButtonProps=function(S){var k=S===void 0?{}:S,A=k.onClick;k.onPress;var b=k.onKeyDown,f=k.onKeyUp,T=k.onBlur,L=_t(k,Qb),V=a.getState(),D=V.isOpen,B={onClick:Ze(A,a.buttonHandleClick),onKeyDown:Ze(b,a.buttonHandleKeyDown),onKeyUp:Ze(f,a.buttonHandleKeyUp),onBlur:Ze(T,a.buttonHandleBlur)},j=L.disabled?{}:B;return Le({type:"button",role:"button","aria-label":D?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},j,L)},a.buttonHandleKeyUp=function(S){S.preventDefault()},a.buttonHandleKeyDown=function(S){var k=bi(S);a.buttonKeyDownHandlers[k]&&a.buttonKeyDownHandlers[k].call(a,S)},a.buttonHandleClick=function(S){if(S.preventDefault(),a.props.environment){var k=a.props.environment.document,A=k.body,b=k.activeElement;A&&A===b&&S.target.focus()}he.NODE_ENV==="test"?a.toggleMenu({type:Ks}):a.internalSetTimeout(function(){return a.toggleMenu({type:Ks})})},a.buttonHandleBlur=function(S){var k=S.target;a.internalSetTimeout(function(){if(!(a.isMouseDown||!a.props.environment)){var A=a.props.environment.document.activeElement;(A==null||A.id!==a.inputId)&&A!==k&&a.reset({type:Hd})}})},a.getLabelProps=function(S){return Le({htmlFor:a.inputId,id:a.labelId},S)},a.getInputProps=function(S){var k=S===void 0?{}:S,A=k.onKeyDown,b=k.onBlur,f=k.onChange,T=k.onInput;k.onChangeText;var L=_t(k,e0),V,D={};V="onChange";var B=a.getState(),j=B.inputValue,$=B.isOpen,K=B.highlightedIndex;if(!L.disabled){var W;D=(W={},W[V]=Ze(f,T,a.inputHandleChange),W.onKeyDown=Ze(A,a.inputHandleKeyDown),W.onBlur=Ze(b,a.inputHandleBlur),W)}return Le({"aria-autocomplete":"list","aria-activedescendant":$&&typeof K=="number"&&K>=0?a.getItemId(K):void 0,"aria-controls":$?a.menuId:void 0,"aria-labelledby":L&&L["aria-label"]?void 0:a.labelId,autoComplete:"off",value:j,id:a.inputId},D,L)},a.inputHandleKeyDown=function(S){var k=bi(S);k&&a.inputKeyDownHandlers[k]&&a.inputKeyDownHandlers[k].call(a,S)},a.inputHandleChange=function(S){a.internalSetState({type:zd,isOpen:!0,inputValue:S.target.value,highlightedIndex:a.props.defaultHighlightedIndex})},a.inputHandleBlur=function(){a.internalSetTimeout(function(){var S;if(!(a.isMouseDown||!a.props.environment)){var k=a.props.environment.document.activeElement,A=(k==null||(S=k.dataset)==null?void 0:S.toggle)&&a._rootNode&&a._rootNode.contains(k);A||a.reset({type:Vd})}})},a.menuRef=function(S){a._menuNode=S},a.getMenuProps=function(S,k){var A,b=S===void 0?{}:S,f=b.refKey,T=f===void 0?"ref":f,L=b.ref,V=_t(b,t0),D=k===void 0?{}:k,B=D.suppressRefError,j=B===void 0?!1:B;return a.getMenuProps.called=!0,a.getMenuProps.refKey=T,a.getMenuProps.suppressRefError=j,Le((A={},A[T]=Qt(L,a.menuRef),A.role="listbox",A["aria-labelledby"]=V&&V["aria-label"]?void 0:a.labelId,A.id=a.menuId,A),V)},a.getItemProps=function(S){var k,A=S===void 0?{}:S,b=A.onMouseMove,f=A.onMouseDown,T=A.onClick;A.onPress;var L=A.index,V=A.item,D=V===void 0?he.NODE_ENV==="production"?void 0:qb("getItemProps","item"):V,B=_t(A,n0);L===void 0?(a.items.push(D),L=a.items.indexOf(D)):a.items[L]=D;var j="onClick",$=T,K=(k={onMouseMove:Ze(b,function(){L!==a.getState().highlightedIndex&&(a.setHighlightedIndex(L,{type:Ld}),a.avoidScrolling=!0,a.internalSetTimeout(function(){return a.avoidScrolling=!1},250))}),onMouseDown:Ze(f,function(ne){ne.preventDefault()})},k[j]=Ze($,function(){a.selectItemAtIndex(L,{type:jd})}),k),W=B.disabled?{onMouseDown:K.onMouseDown}:K;return Le({id:a.getItemId(L),role:"option","aria-selected":a.getState().highlightedIndex===L},W,B)},a.clearItems=function(){a.items=[]},a.reset=function(S,k){S===void 0&&(S={}),S=Ar(S),a.internalSetState(function(A){var b=A.selectedItem;return Le({isOpen:a.props.defaultIsOpen,highlightedIndex:a.props.defaultHighlightedIndex,inputValue:a.props.itemToString(b)},S)},k)},a.toggleMenu=function(S,k){S===void 0&&(S={}),S=Ar(S),a.internalSetState(function(A){var b=A.isOpen;return Le({isOpen:!b},b&&{highlightedIndex:a.props.defaultHighlightedIndex},S)},function(){var A=a.getState(),b=A.isOpen,f=A.highlightedIndex;b&&a.getItemCount()>0&&typeof f=="number"&&a.setHighlightedIndex(f,S),Uu(k)()})},a.openMenu=function(S){a.internalSetState({isOpen:!0},S)},a.closeMenu=function(S){a.internalSetState({isOpen:!1},S)},a.updateStatus=Sa(function(){var S;if((S=a.props)!=null&&(S=S.environment)!=null&&S.document){var k=a.getState(),A=a.items[k.highlightedIndex],b=a.getItemCount(),f=a.props.getA11yStatusMessage(Le({itemToString:a.props.itemToString,previousResultCount:a.previousResultCount,resultCount:b,highlightedItem:A},k));a.previousResultCount=b,Td(f,a.props.environment.document)}},200);var o=a.props,l=o.defaultHighlightedIndex,u=o.initialHighlightedIndex,c=u===void 0?l:u,p=o.defaultIsOpen,d=o.initialIsOpen,m=d===void 0?p:d,g=o.initialInputValue,_=g===void 0?"":g,x=o.initialSelectedItem,E=x===void 0?null:x,C=a.getState({highlightedIndex:c,isOpen:m,inputValue:_,selectedItem:E});return C.selectedItem!=null&&a.props.initialInputValue===void 0&&(C.inputValue=a.props.itemToString(C.selectedItem)),a.state=C,a}Tb(n,t);var i=n.prototype;return i.internalClearTimeouts=function(){this.timeoutIds.forEach(function(r){clearTimeout(r)}),this.timeoutIds=[]},i.getState=function(r){return r===void 0&&(r=this.state),Gi(r,this.props)},i.getItemCount=function(){var r=this.items.length;return this.itemCount!=null?r=this.itemCount:this.props.itemCount!==void 0&&(r=this.props.itemCount),r},i.getItemNodeFromIndex=function(r){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(r)):null},i.scrollHighlightedItemIntoView=function(){{var r=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(r,this._menuNode)}},i.moveHighlightedIndex=function(r,a){var o=this.getItemCount(),l=this.getState(),u=l.highlightedIndex;if(o>0){var c=en(u,r,{length:o},this.isItemDisabled,!0);this.setHighlightedIndex(c,a)}},i.getStateAndHelpers=function(){var r=this.getState(),a=r.highlightedIndex,o=r.inputValue,l=r.selectedItem,u=r.isOpen,c=this.props.itemToString,p=this.id,d=this.getRootProps,m=this.getToggleButtonProps,g=this.getLabelProps,_=this.getMenuProps,x=this.getInputProps,E=this.getItemProps,C=this.openMenu,S=this.closeMenu,k=this.toggleMenu,A=this.selectItem,b=this.selectItemAtIndex,f=this.selectHighlightedItem,T=this.setHighlightedIndex,L=this.clearSelection,V=this.clearItems,D=this.reset,B=this.setItemCount,j=this.unsetItemCount,$=this.internalSetState;return{getRootProps:d,getToggleButtonProps:m,getLabelProps:g,getMenuProps:_,getInputProps:x,getItemProps:E,reset:D,openMenu:C,closeMenu:S,toggleMenu:k,selectItem:A,selectItemAtIndex:b,selectHighlightedItem:f,setHighlightedIndex:T,clearSelection:L,clearItems:V,setItemCount:B,unsetItemCount:j,setState:$,itemToString:c,id:p,highlightedIndex:a,inputValue:o,isOpen:u,selectedItem:l}},i.componentDidMount=function(){var r=this;if(he.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&Gu(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){r.internalClearTimeouts()};else{var a=function(){r.isMouseDown=!0},o=function(d){r.isMouseDown=!1;var m=ta(d.target,[r._rootNode,r._menuNode],r.props.environment);!m&&r.getState().isOpen&&r.reset({type:Od},function(){return r.props.onOuterClick(r.getStateAndHelpers())})},l=function(){r.isTouchMove=!1},u=function(){r.isTouchMove=!0},c=function(d){var m=ta(d.target,[r._rootNode,r._menuNode],r.props.environment,!1);!r.isTouchMove&&!m&&r.getState().isOpen&&r.reset({type:Ud},function(){return r.props.onOuterClick(r.getStateAndHelpers())})},p=this.props.environment;p.addEventListener("mousedown",a),p.addEventListener("mouseup",o),p.addEventListener("touchstart",l),p.addEventListener("touchmove",u),p.addEventListener("touchend",c),this.cleanup=function(){r.internalClearTimeouts(),r.updateStatus.cancel(),p.removeEventListener("mousedown",a),p.removeEventListener("mouseup",o),p.removeEventListener("touchstart",l),p.removeEventListener("touchmove",u),p.removeEventListener("touchend",c)}}},i.shouldScroll=function(r,a){var o=this.props.highlightedIndex===void 0?this.getState():this.props,l=o.highlightedIndex,u=a.highlightedIndex===void 0?r:a,c=u.highlightedIndex,p=l&&this.getState().isOpen&&!r.isOpen,d=l!==c;return p||d},i.componentDidUpdate=function(r,a){he.NODE_ENV!=="production"&&(yo(this.state,r,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&Gu(this._menuNode,this.getMenuProps)),ea(this.props,"selectedItem")&&this.props.selectedItemChanged(r.selectedItem,this.props.selectedItem)&&this.internalSetState({type:Kd,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(a,r)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},i.componentWillUnmount=function(){this.cleanup()},i.render=function(){var r=qu(this.props.children,It);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var a=qu(r(this.getStateAndHelpers()));if(!a)return null;if(this.getRootProps.called||this.props.suppressRefError)return he.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&r0(a,this.getRootProps),a;if(_d(a))return M.cloneElement(a,this.getRootProps(Ad(a)));if(he.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},n})(M.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:Wb,itemToString:function(t){return t==null?"":(he.NODE_ENV!=="production"&&$b(t)&&!t.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",t),String(t))},onStateChange:It,onInputValueChange:It,onUserAction:It,onChange:It,onSelect:It,onOuterClick:It,selectedItemChanged:function(t,n){return t!==n},environment:typeof window>"u"?void 0:window,stateReducer:function(t,n){return n},suppressRefError:!1,scrollIntoView:Cd},e.stateChangeTypes=Xb,e})();he.NODE_ENV!=="production"&&(i0.propTypes={children:ge.func,defaultHighlightedIndex:ge.number,defaultIsOpen:ge.bool,initialHighlightedIndex:ge.number,initialSelectedItem:ge.any,initialInputValue:ge.string,initialIsOpen:ge.bool,getA11yStatusMessage:ge.func,itemToString:ge.func,onChange:ge.func,onSelect:ge.func,onStateChange:ge.func,onInputValueChange:ge.func,onUserAction:ge.func,onOuterClick:ge.func,selectedItemChanged:ge.func,stateReducer:ge.func,itemCount:ge.number,id:ge.string,environment:ge.shape({addEventListener:ge.func.isRequired,removeEventListener:ge.func.isRequired,document:ge.shape({createElement:ge.func.isRequired,getElementById:ge.func.isRequired,activeElement:ge.any.isRequired,body:ge.any.isRequired}).isRequired,Node:ge.func.isRequired}),suppressRefError:ge.bool,scrollIntoView:ge.func,selectedItem:ge.any,isOpen:ge.bool,inputValue:ge.string,highlightedIndex:ge.number,labelId:ge.string,inputId:ge.string,menuId:ge.string,getItemId:ge.func});function Gu(e,t){var n=t.refKey;e||console.error('downshift: The ref prop "'+n+'" from getMenuProps was not applied correctly on your menu element.')}function r0(e,t){var n=t.refKey,i=n!=="ref",r=!_d(e);r&&!i&&!Bu.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!r&&i&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+n+'"'),!Bu.isForwardRef(e)&&!Ad(e)[n]&&console.error('downshift: You must apply the ref prop "'+n+'" from getRootProps onto your root element.')}var Wd={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function a0(e,t,n){var i=e.props,r=e.type,a={};Object.keys(t).forEach(function(o){s0(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),i.onStateChange&&Object.keys(a).length&&i.onStateChange(Le({type:r},a))}function s0(e,t,n,i){var r=t.props,a=t.type,o="on"+ko(e)+"Change";r[o]&&i[e]!==void 0&&i[e]!==n[e]&&r[o](Le({type:a},i))}function o0(e,t){return t.changes}var $u=Sa(function(e,t){Td(e,t)},200),l0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?M.useLayoutEffect:M.useEffect,qd="useId"in M?function(e){var t=e.id,n=e.labelId,i=e.menuId,r=e.getItemId,a=e.toggleButtonId,o=e.inputId,l="downshift-"+M.useId();t||(t=l);var u=M.useMemo(function(){return{labelId:n||t+"-label",menuId:i||t+"-menu",getItemId:r||function(c){return t+"-item-"+c},toggleButtonId:a||t+"-toggle-button",inputId:o||t+"-input"}},[r,t,o,n,i,a]);return u}:function(e){var t=e.id,n=t===void 0?"downshift-"+Id():t,i=e.labelId,r=e.menuId,a=e.getItemId,o=e.toggleButtonId,l=e.inputId,u=M.useMemo(function(){return{labelId:i||n+"-label",menuId:r||n+"-menu",getItemId:a||function(c){return n+"-item-"+c},toggleButtonId:o||n+"-toggle-button",inputId:l||n+"-input"}},[a,n,l,i,r,o]);return u};function wo(e,t,n,i){var r,a;if(e===void 0){if(t===void 0)throw new Error(i);r=n[t],a=t}else a=t===void 0?n.indexOf(e):t,r=e;return[r,a]}function u0(e){return/^\S{1}$/.test(e)}function ko(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Ea(e){var t=M.useRef(e);return t.current=e,t}function Gd(e,t,n,i){var r=M.useRef(),a=M.useRef(),o=M.useCallback(function(g,_){a.current=_,g=Gi(g,_.props);var x=e(g,_),E=_.props.stateReducer(g,Le({},_,{changes:x}));return E},[e]),l=M.useReducer(o,t,n),u=l[0],c=l[1],p=Ea(t),d=M.useCallback(function(g){return c(Le({props:p.current},g))},[p]),m=a.current;return M.useEffect(function(){var g=Gi(r.current,m==null?void 0:m.props),_=m&&r.current&&!i(g,u);_&&a0(m,g,u),r.current=u},[u,m,i]),[u,d]}function $d(e,t,n,i){var r=Gd(e,t,n,i),a=r[0],o=r[1];return[Gi(a,t),o]}var Bi={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:o0,scrollIntoView:Cd,environment:typeof window>"u"?void 0:window};function cn(e,t,n){n===void 0&&(n=Wd);var i=e["default"+ko(t)];return i!==void 0?i:n[t]}function Yn(e,t,n){n===void 0&&(n=Wd);var i=e[t];if(i!==void 0)return i;var r=e["initial"+ko(t)];return r!==void 0?r:cn(e,t,n)}function Jd(e){var t=Yn(e,"selectedItem"),n=Yn(e,"isOpen"),i=c0(e),r=Yn(e,"inputValue");return{highlightedIndex:i<0&&t&&n?e.items.findIndex(function(a){return e.itemToKey(a)===e.itemToKey(t)}):i,isOpen:n,selectedItem:t,inputValue:r}}function Xn(e,t,n){var i=e.items,r=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=e.isItemDisabled,l=e.itemToKey,u=t.selectedItem,c=t.highlightedIndex;return i.length===0?-1:r!==void 0&&c===r&&!o(i[r],r)?r:a!==void 0&&!o(i[a],a)?a:u?i.findIndex(function(p){return l(u)===l(p)}):n<0&&!o(i[i.length-1],i.length-1)?i.length-1:n>0&&!o(i[0],0)?0:-1}function Yd(e,t,n){var i=M.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1}),r=M.useCallback(function(){return n.map(function(a){return a.current})},[n]);return M.useEffect(function(){if(!e)return It;function a(){i.current.isTouchEnd=!1,i.current.isMouseDown=!0}function o(p){i.current.isMouseDown=!1,ta(p.target,r(),e)||t()}function l(){i.current.isTouchEnd=!1,i.current.isTouchMove=!1}function u(){i.current.isTouchMove=!0}function c(p){i.current.isTouchEnd=!0,!i.current.isTouchMove&&!ta(p.target,r(),e,!1)&&t()}return e.addEventListener("mousedown",a),e.addEventListener("mouseup",o),e.addEventListener("touchstart",l),e.addEventListener("touchmove",u),e.addEventListener("touchend",c),function(){e.removeEventListener("mousedown",a),e.removeEventListener("mouseup",o),e.removeEventListener("touchstart",l),e.removeEventListener("touchmove",u),e.removeEventListener("touchend",c)}},[e,r,t]),i.current}var Ca=function(){return It};he.NODE_ENV!=="production"&&(Ca=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=M.useRef(t.reduce(function(a,o){return a[o]={},a},{}));M.useEffect(function(){Object.keys(i.current).forEach(function(a){var o=i.current[a];if(!Object.keys(o).length){console.error("downshift: You forgot to call the "+a+" getter function on your component / element.");return}var l=o.suppressRefError,u=o.refKey,c=o.elementRef;l||c!=null&&c.current||console.error('downshift: The ref prop "'+u+'" from '+a+" was not applied correctly on your element.")})},[]);var r=M.useCallback(function(a,o,l,u){i.current[a]={suppressRefError:o,refKey:l,elementRef:u}},[]);return r});function So(e,t,n,i){i===void 0&&(i={});var r=i.document,a=ar();M.useEffect(function(){if(!(!e||a||!r)){var o=e(t);$u(o,r)}},n),M.useEffect(function(){return function(){$u.cancel(),Yb(r)}},[r])}function Xd(e){var t=e.highlightedIndex,n=e.isOpen,i=e.itemRefs,r=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,l=M.useRef(!0);return l0(function(){t<0||!n||!Object.keys(i.current).length||(l.current===!1?l.current=!0:o(r(t),a))},[t]),l}var Ia=It;he.NODE_ENV!=="production"&&(Ia=function(e){var t=e.props,n=e.state,i=M.useRef(t),r=ar();M.useEffect(function(){r||(yo(n,i.current,t),i.current=t)},[n,t,r])});function na(e,t,n){var i;n===void 0&&(n=!0);var r=((i=e.items)==null?void 0:i.length)&&t>=0;return Le({isOpen:!1,highlightedIndex:-1},r&&Le({selectedItem:e.items[t],isOpen:cn(e,"isOpen"),highlightedIndex:cn(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function Zd(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function ar(){var e=M.useRef(!0);return M.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}function ia(e){var t=cn(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}function c0(e){var t=Yn(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var Kr={environment:ge.shape({addEventListener:ge.func.isRequired,removeEventListener:ge.func.isRequired,document:ge.shape({createElement:ge.func.isRequired,getElementById:ge.func.isRequired,activeElement:ge.any.isRequired,body:ge.any.isRequired}).isRequired,Node:ge.func.isRequired}),itemToString:ge.func,itemToKey:ge.func,stateReducer:ge.func},Qd=Le({},Kr,{getA11yStatusMessage:ge.func,highlightedIndex:ge.number,defaultHighlightedIndex:ge.number,initialHighlightedIndex:ge.number,isOpen:ge.bool,defaultIsOpen:ge.bool,initialIsOpen:ge.bool,selectedItem:ge.any,initialSelectedItem:ge.any,defaultSelectedItem:ge.any,id:ge.string,labelId:ge.string,menuId:ge.string,getItemId:ge.func,toggleButtonId:ge.string,onSelectedItemChange:ge.func,onHighlightedIndexChange:ge.func,onStateChange:ge.func,onIsOpenChange:ge.func,scrollIntoView:ge.func});function ep(e,t,n){var i=t.type,r=t.props,a;switch(i){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Xn(r,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Xn(r,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:r.isItemDisabled(r.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:ia(r),isOpen:cn(r,"isOpen"),selectedItem:cn(r,"selectedItem"),inputValue:cn(r,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Le({},e,a)}function h0(e){for(var t=e.keysSoFar,n=e.highlightedIndex,i=e.items,r=e.itemToString,a=e.isItemDisabled,o=t.toLowerCase(),l=0;l<i.length;l++){var u=(l+n+(t.length<2?1:0))%i.length,c=i[u];if(c!==void 0&&r(c).toLowerCase().startsWith(o)&&!a(c,u))return u}return n}var d0=xi(xi({},Qd),{items:ge.array.isRequired,isItemDisabled:ge.func}),p0=xi(xi({},Bi),{isItemDisabled:function(){return!1}}),tp=It;he.NODE_ENV!=="production"&&(tp=function(e,t){ge.checkPropTypes(d0,e,"prop",t.name)});var Ur=he.NODE_ENV!=="production"?"__togglebutton_click__":0,Eo=he.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_down__":1,Co=he.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_up__":2,ra=he.NODE_ENV!=="production"?"__togglebutton_keydown_character__":3,Io=he.NODE_ENV!=="production"?"__togglebutton_keydown_escape__":4,_o=he.NODE_ENV!=="production"?"__togglebutton_keydown_home__":5,Ao=he.NODE_ENV!=="production"?"__togglebutton_keydown_end__":6,No=he.NODE_ENV!=="production"?"__togglebutton_keydown_enter__":7,To=he.NODE_ENV!=="production"?"__togglebutton_keydown_space_button__":8,Po=he.NODE_ENV!=="production"?"__togglebutton_keydown_page_up__":9,Oo=he.NODE_ENV!=="production"?"__togglebutton_keydown_page_down__":10,aa=he.NODE_ENV!=="production"?"__togglebutton_blur__":11,np=he.NODE_ENV!=="production"?"__menu_mouse_leave__":12,ip=he.NODE_ENV!=="production"?"__item_mouse_move__":13,Lo=he.NODE_ENV!=="production"?"__item_click__":14,rp=he.NODE_ENV!=="production"?"__function_toggle_menu__":15,ap=he.NODE_ENV!=="production"?"__function_open_menu__":16,sp=he.NODE_ENV!=="production"?"__function_close_menu__":17,op=he.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,Ro=he.NODE_ENV!=="production"?"__function_select_item__":19,Us=he.NODE_ENV!=="production"?"__function_set_input_value__":20,lp=he.NODE_ENV!=="production"?"__function_reset__":21,up=Object.freeze({__proto__:null,FunctionCloseMenu:sp,FunctionOpenMenu:ap,FunctionReset:lp,FunctionSelectItem:Ro,FunctionSetHighlightedIndex:op,FunctionSetInputValue:Us,FunctionToggleMenu:rp,ItemClick:Lo,ItemMouseMove:ip,MenuMouseLeave:np,ToggleButtonBlur:aa,ToggleButtonClick:Ur,ToggleButtonKeyDownArrowDown:Eo,ToggleButtonKeyDownArrowUp:Co,ToggleButtonKeyDownCharacter:ra,ToggleButtonKeyDownEnd:Ao,ToggleButtonKeyDownEnter:No,ToggleButtonKeyDownEscape:Io,ToggleButtonKeyDownHome:_o,ToggleButtonKeyDownPageDown:Oo,ToggleButtonKeyDownPageUp:Po,ToggleButtonKeyDownSpaceButton:To});function f0(e,t){var n,i=t.type,r=t.props,a=t.altKey,o;switch(i){case Lo:o={isOpen:cn(r,"isOpen"),highlightedIndex:ia(r),selectedItem:r.items[t.index]};break;case ra:{var l=t.key,u=""+e.inputValue+l,c=!e.isOpen&&e.selectedItem?r.items.findIndex(function(g){return r.itemToKey(g)===r.itemToKey(e.selectedItem)}):e.highlightedIndex,p=h0({keysSoFar:u,highlightedIndex:c,items:r.items,itemToString:r.itemToString,isItemDisabled:r.isItemDisabled});o={inputValue:u,highlightedIndex:p,isOpen:!0}}break;case Eo:{var d=e.isOpen?en(e.highlightedIndex,1,r.items,r.isItemDisabled):a&&e.selectedItem==null?-1:Xn(r,e,1);o={highlightedIndex:d,isOpen:!0}}break;case Co:if(e.isOpen&&a)o=na(r,e.highlightedIndex,!1);else{var m=e.isOpen?en(e.highlightedIndex,-1,r.items,r.isItemDisabled):Xn(r,e,-1);o={highlightedIndex:m,isOpen:!0}}break;case No:case To:o=na(r,e.highlightedIndex,!1);break;case _o:o={highlightedIndex:Mn(0,!1,r.items,r.isItemDisabled),isOpen:!0};break;case Ao:o={highlightedIndex:Mn(r.items.length-1,!0,r.items,r.isItemDisabled),isOpen:!0};break;case Po:o={highlightedIndex:en(e.highlightedIndex,-10,r.items,r.isItemDisabled)};break;case Oo:o={highlightedIndex:en(e.highlightedIndex,10,r.items,r.isItemDisabled)};break;case Io:o={isOpen:!1,highlightedIndex:-1};break;case aa:o=Le({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=r.items)==null?void 0:n.length)&&{selectedItem:r.items[e.highlightedIndex]});break;case Ro:o={selectedItem:t.selectedItem};break;default:return ep(e,t,up)}return Le({},e,o)}var g0=["onClick"],m0=["onMouseLeave","refKey","ref"],v0=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],x0=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];gi.stateChangeTypes=up;function gi(e){e===void 0&&(e={}),tp(e,gi);var t=Le({},p0,e),n=t.scrollIntoView,i=t.environment,r=t.getA11yStatusMessage,a=$d(f0,t,Jd,Zd),o=a[0],l=a[1],u=o.isOpen,c=o.highlightedIndex,p=o.selectedItem,d=o.inputValue,m=M.useRef(null),g=M.useRef(null),_=M.useRef({}),x=M.useRef(null),E=qd(t),C=Ea({state:o,props:t}),S=M.useCallback(function(y){return _.current[E.getItemId(y)]},[E]);So(r,o,[u,c,p,d],i);var k=Xd({menuElement:g.current,highlightedIndex:c,isOpen:u,itemRefs:_,scrollIntoView:n,getItemNodeFromIndex:S});M.useEffect(function(){return x.current=Sa(function(y){y({type:Us,inputValue:""})},500),function(){x.current.cancel()}},[]),M.useEffect(function(){d&&x.current(l)},[l,d]),Ia({props:t,state:o}),M.useEffect(function(){var y=Yn(t,"isOpen");y&&m.current&&m.current.focus()},[]);var A=M.useCallback(function(){C.current.state.isOpen&&l({type:aa})},[l,C]),b=M.useMemo(function(){return[g,m]},[]),f=Yd(i,A,b),T=Ca("getMenuProps","getToggleButtonProps");M.useEffect(function(){u||(_.current={})},[u]);var L=M.useMemo(function(){return{ArrowDown:function(y){y.preventDefault(),l({type:Eo,altKey:y.altKey})},ArrowUp:function(y){y.preventDefault(),l({type:Co,altKey:y.altKey})},Home:function(y){y.preventDefault(),l({type:_o})},End:function(y){y.preventDefault(),l({type:Ao})},Escape:function(){C.current.state.isOpen&&l({type:Io})},Enter:function(y){y.preventDefault(),l({type:C.current.state.isOpen?No:Ur})},PageUp:function(y){C.current.state.isOpen&&(y.preventDefault(),l({type:Po}))},PageDown:function(y){C.current.state.isOpen&&(y.preventDefault(),l({type:Oo}))}," ":function(y){y.preventDefault();var X=C.current.state;if(!X.isOpen){l({type:Ur});return}X.inputValue?l({type:ra,key:" "}):l({type:To})}}},[l,C]),V=M.useCallback(function(){l({type:rp})},[l]),D=M.useCallback(function(){l({type:sp})},[l]),B=M.useCallback(function(){l({type:ap})},[l]),j=M.useCallback(function(y){l({type:op,highlightedIndex:y})},[l]),$=M.useCallback(function(y){l({type:Ro,selectedItem:y})},[l]),K=M.useCallback(function(){l({type:lp})},[l]),W=M.useCallback(function(y){l({type:Us,inputValue:y})},[l]),ne=M.useCallback(function(y){var X=y===void 0?{}:y,ie=X.onClick,P=_t(X,g0),G=function(){var q;(q=m.current)==null||q.focus()};return Le({id:E.labelId,htmlFor:E.toggleButtonId,onClick:Ze(ie,G)},P)},[E]),te=M.useCallback(function(y,X){var ie,P=y===void 0?{}:y,G=P.onMouseLeave,q=P.refKey,F=q===void 0?"ref":q,z=P.ref,Y=_t(P,m0),ee=X===void 0?{}:X,se=ee.suppressRefError,le=se===void 0?!1:se,H=function(){l({type:np})};return T("getMenuProps",le,F,g),Le((ie={},ie[F]=Qt(z,function(pe){g.current=pe}),ie.id=E.menuId,ie.role="listbox",ie["aria-labelledby"]=Y&&Y["aria-label"]?void 0:""+E.labelId,ie.onMouseLeave=Ze(G,H),ie),Y)},[l,T,E]),J=M.useCallback(function(y,X){var ie,P=y===void 0?{}:y,G=P.onBlur,q=P.onClick;P.onPress;var F=P.onKeyDown,z=P.refKey,Y=z===void 0?"ref":z,ee=P.ref,se=_t(P,v0),le=X===void 0?{}:X,H=le.suppressRefError,pe=H===void 0?!1:H,re=C.current.state,we=function(){l({type:Ur})},xe=function(){re.isOpen&&!f.isMouseDown&&l({type:aa})},be=function(Te){var Pe=bi(Te);Pe&&L[Pe]?L[Pe](Te):u0(Pe)&&l({type:ra,key:Pe})},Ne=Le((ie={},ie[Y]=Qt(ee,function(Te){m.current=Te}),ie["aria-activedescendant"]=re.isOpen&&re.highlightedIndex>-1?E.getItemId(re.highlightedIndex):"",ie["aria-controls"]=E.menuId,ie["aria-expanded"]=C.current.state.isOpen,ie["aria-haspopup"]="listbox",ie["aria-labelledby"]=se&&se["aria-label"]?void 0:""+E.labelId,ie.id=E.toggleButtonId,ie.role="combobox",ie.tabIndex=0,ie.onBlur=Ze(G,xe),ie),se);return se.disabled||(Ne.onClick=Ze(q,we),Ne.onKeyDown=Ze(F,be)),T("getToggleButtonProps",pe,Y,m),Ne},[l,E,C,f,T,L]),ue=M.useCallback(function(y){var X,ie=y===void 0?{}:y,P=ie.item,G=ie.index,q=ie.onMouseMove,F=ie.onClick,z=ie.onMouseDown;ie.onPress;var Y=ie.refKey,ee=Y===void 0?"ref":Y,se=ie.disabled,le=ie.ref,H=_t(ie,x0);se!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var pe=C.current,re=pe.state,we=pe.props,xe=wo(P,G,we.items,"Pass either item or index to getItemProps!"),be=xe[0],Ne=xe[1],Te=we.isItemDisabled(be,Ne),Pe=function(){f.isTouchEnd||Ne===re.highlightedIndex||(k.current=!1,l({type:ip,index:Ne,disabled:Te}))},qe=function(){l({type:Lo,index:Ne})},Ye=function(Fe){return Fe.preventDefault()},Re=Le((X={},X[ee]=Qt(le,function(Fe){Fe&&(_.current[E.getItemId(Ne)]=Fe)}),X["aria-disabled"]=Te,X["aria-selected"]=be===re.selectedItem,X.id=E.getItemId(Ne),X.role="option",X),H);return Te||(Re.onClick=Ze(F,qe)),Re.onMouseMove=Ze(q,Pe),Re.onMouseDown=Ze(z,Ye),Re},[C,E,f,k,l]);return{getToggleButtonProps:J,getLabelProps:ne,getMenuProps:te,getItemProps:ue,toggleMenu:V,openMenu:B,closeMenu:D,setHighlightedIndex:j,selectItem:$,reset:K,setInputValue:W,highlightedIndex:c,isOpen:u,selectedItem:p,inputValue:d}}var Do=he.NODE_ENV!=="production"?"__input_keydown_arrow_down__":0,Mo=he.NODE_ENV!=="production"?"__input_keydown_arrow_up__":1,Fo=he.NODE_ENV!=="production"?"__input_keydown_escape__":2,jo=he.NODE_ENV!=="production"?"__input_keydown_home__":3,Vo=he.NODE_ENV!=="production"?"__input_keydown_end__":4,zo=he.NODE_ENV!=="production"?"__input_keydown_page_up__":5,Bo=he.NODE_ENV!=="production"?"__input_keydown_page_down__":6,Ho=he.NODE_ENV!=="production"?"__input_keydown_enter__":7,Ko=he.NODE_ENV!=="production"?"__input_change__":8,sa=he.NODE_ENV!=="production"?"__input_blur__":9,Uo=he.NODE_ENV!=="production"?"__input_click__":10,cp=he.NODE_ENV!=="production"?"__menu_mouse_leave__":11,hp=he.NODE_ENV!=="production"?"__item_mouse_move__":12,Wo=he.NODE_ENV!=="production"?"__item_click__":13,dp=he.NODE_ENV!=="production"?"__togglebutton_click__":14,pp=he.NODE_ENV!=="production"?"__function_toggle_menu__":15,fp=he.NODE_ENV!=="production"?"__function_open_menu__":16,gp=he.NODE_ENV!=="production"?"__function_close_menu__":17,mp=he.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,qo=he.NODE_ENV!=="production"?"__function_select_item__":19,vp=he.NODE_ENV!=="production"?"__function_set_input_value__":20,xp=he.NODE_ENV!=="production"?"__function_reset__":21,Go=he.NODE_ENV!=="production"?"__controlled_prop_updated_selected_item__":22,bp=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:Go,FunctionCloseMenu:gp,FunctionOpenMenu:fp,FunctionReset:xp,FunctionSelectItem:qo,FunctionSetHighlightedIndex:mp,FunctionSetInputValue:vp,FunctionToggleMenu:pp,InputBlur:sa,InputChange:Ko,InputClick:Uo,InputKeyDownArrowDown:Do,InputKeyDownArrowUp:Mo,InputKeyDownEnd:Vo,InputKeyDownEnter:Ho,InputKeyDownEscape:Fo,InputKeyDownHome:jo,InputKeyDownPageDown:Bo,InputKeyDownPageUp:zo,ItemClick:Wo,ItemMouseMove:hp,MenuMouseLeave:cp,ToggleButtonClick:dp});function b0(e){var t=Jd(e),n=t.selectedItem,i=t.inputValue;return i===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(i=e.itemToString(n)),Le({},t,{inputValue:i})}var y0=Le({},Qd,{items:ge.array.isRequired,isItemDisabled:ge.func,inputValue:ge.string,defaultInputValue:ge.string,initialInputValue:ge.string,inputId:ge.string,onInputValueChange:ge.func});function w0(e,t,n,i){var r=M.useRef(),a=Gd(e,t,n,i),o=a[0],l=a[1],u=ar();return M.useEffect(function(){if(ea(t,"selectedItem")){if(!u){var c=t.itemToKey(t.selectedItem)!==t.itemToKey(r.current);c&&l({type:Go,inputValue:t.itemToString(t.selectedItem)})}r.current=o.selectedItem===r.current?t.selectedItem:o.selectedItem}},[o.selectedItem,t.selectedItem]),[Gi(o,t),l]}var yp=It;he.NODE_ENV!=="production"&&(yp=function(e,t){ge.checkPropTypes(y0,e,"prop",t.name)});var k0=Le({},Bi,{isItemDisabled:function(){return!1}});function S0(e,t){var n,i=t.type,r=t.props,a=t.altKey,o;switch(i){case Wo:o={isOpen:cn(r,"isOpen"),highlightedIndex:ia(r),selectedItem:r.items[t.index],inputValue:r.itemToString(r.items[t.index])};break;case Do:e.isOpen?o={highlightedIndex:en(e.highlightedIndex,1,r.items,r.isItemDisabled,!0)}:o={highlightedIndex:a&&e.selectedItem==null?-1:Xn(r,e,1),isOpen:r.items.length>=0};break;case Mo:e.isOpen?a?o=na(r,e.highlightedIndex):o={highlightedIndex:en(e.highlightedIndex,-1,r.items,r.isItemDisabled,!0)}:o={highlightedIndex:Xn(r,e,-1),isOpen:r.items.length>=0};break;case Ho:o=na(r,e.highlightedIndex);break;case Fo:o=Le({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case zo:o={highlightedIndex:en(e.highlightedIndex,-10,r.items,r.isItemDisabled,!0)};break;case Bo:o={highlightedIndex:en(e.highlightedIndex,10,r.items,r.isItemDisabled,!0)};break;case jo:o={highlightedIndex:Mn(0,!1,r.items,r.isItemDisabled)};break;case Vo:o={highlightedIndex:Mn(r.items.length-1,!0,r.items,r.isItemDisabled)};break;case sa:o=Le({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=r.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:r.items[e.highlightedIndex],inputValue:r.itemToString(r.items[e.highlightedIndex])});break;case Ko:o={isOpen:!0,highlightedIndex:ia(r),inputValue:t.inputValue};break;case Uo:o={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Xn(r,e,0)};break;case qo:o={selectedItem:t.selectedItem,inputValue:r.itemToString(t.selectedItem)};break;case Go:o={inputValue:t.inputValue};break;default:return ep(e,t,bp)}return Le({},e,o)}var E0=["onMouseLeave","refKey","ref"],C0=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],I0=["onClick","onPress","refKey","ref"],_0=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];bn.stateChangeTypes=bp;function bn(e){e===void 0&&(e={}),yp(e,bn);var t=Le({},k0,e),n=t.items,i=t.scrollIntoView,r=t.environment,a=t.getA11yStatusMessage,o=w0(S0,t,b0,Zd),l=o[0],u=o[1],c=l.isOpen,p=l.highlightedIndex,d=l.selectedItem,m=l.inputValue,g=M.useRef(null),_=M.useRef({}),x=M.useRef(null),E=M.useRef(null),C=ar(),S=qd(t),k=M.useRef(),A=Ea({state:l,props:t}),b=M.useCallback(function(G){return _.current[S.getItemId(G)]},[S]);So(a,l,[c,p,d,m],r);var f=Xd({menuElement:g.current,highlightedIndex:p,isOpen:c,itemRefs:_,scrollIntoView:i,getItemNodeFromIndex:b});Ia({props:t,state:l}),M.useEffect(function(){var G=Yn(t,"isOpen");G&&x.current&&x.current.focus()},[]),M.useEffect(function(){C||(k.current=n.length)});var T=M.useCallback(function(){A.current.state.isOpen&&u({type:sa})},[u,A]),L=M.useMemo(function(){return[g,E,x]},[]),V=Yd(r,T,L),D=Ca("getInputProps","getMenuProps");M.useEffect(function(){c||(_.current={})},[c]),M.useEffect(function(){var G;!c||!(r!=null&&r.document)||!(x!=null&&(G=x.current)!=null&&G.focus)||r.document.activeElement!==x.current&&x.current.focus()},[c,r]);var B=M.useMemo(function(){return{ArrowDown:function(G){G.preventDefault(),u({type:Do,altKey:G.altKey})},ArrowUp:function(G){G.preventDefault(),u({type:Mo,altKey:G.altKey})},Home:function(G){A.current.state.isOpen&&(G.preventDefault(),u({type:jo}))},End:function(G){A.current.state.isOpen&&(G.preventDefault(),u({type:Vo}))},Escape:function(G){var q=A.current.state;(q.isOpen||q.inputValue||q.selectedItem||q.highlightedIndex>-1)&&(G.preventDefault(),u({type:Fo}))},Enter:function(G){var q=A.current.state;!q.isOpen||G.which===229||(G.preventDefault(),u({type:Ho}))},PageUp:function(G){A.current.state.isOpen&&(G.preventDefault(),u({type:zo}))},PageDown:function(G){A.current.state.isOpen&&(G.preventDefault(),u({type:Bo}))}}},[u,A]),j=M.useCallback(function(G){return Le({id:S.labelId,htmlFor:S.inputId},G)},[S]),$=M.useCallback(function(G,q){var F,z=G===void 0?{}:G,Y=z.onMouseLeave,ee=z.refKey,se=ee===void 0?"ref":ee,le=z.ref,H=_t(z,E0),pe=q===void 0?{}:q,re=pe.suppressRefError,we=re===void 0?!1:re;return D("getMenuProps",we,se,g),Le((F={},F[se]=Qt(le,function(xe){g.current=xe}),F.id=S.menuId,F.role="listbox",F["aria-labelledby"]=H&&H["aria-label"]?void 0:""+S.labelId,F.onMouseLeave=Ze(Y,function(){u({type:cp})}),F),H)},[u,D,S]),K=M.useCallback(function(G){var q,F,z=G===void 0?{}:G,Y=z.item,ee=z.index,se=z.refKey,le=se===void 0?"ref":se,H=z.ref,pe=z.onMouseMove,re=z.onMouseDown,we=z.onClick;z.onPress;var xe=z.disabled,be=_t(z,C0);xe!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var Ne=A.current,Te=Ne.props,Pe=Ne.state,qe=wo(Y,ee,Te.items,"Pass either item or index to getItemProps!"),Ye=qe[0],Re=qe[1],Fe=Te.isItemDisabled(Ye,Re),xt="onClick",oe=we,ae=function(){V.isTouchEnd||Re===Pe.highlightedIndex||(f.current=!1,u({type:hp,index:Re,disabled:Fe}))},O=function(){u({type:Wo,index:Re})},ke=function(Be){return Be.preventDefault()};return Le((q={},q[le]=Qt(H,function(Be){Be&&(_.current[S.getItemId(Re)]=Be)}),q["aria-disabled"]=Fe,q["aria-selected"]=Re===Pe.highlightedIndex,q.id=S.getItemId(Re),q.role="option",q),!Fe&&(F={},F[xt]=Ze(oe,O),F),{onMouseMove:Ze(pe,ae),onMouseDown:Ze(re,ke)},be)},[u,S,A,V,f]),W=M.useCallback(function(G){var q,F=G===void 0?{}:G,z=F.onClick;F.onPress;var Y=F.refKey,ee=Y===void 0?"ref":Y,se=F.ref,le=_t(F,I0),H=A.current.state,pe=function(){u({type:dp})};return Le((q={},q[ee]=Qt(se,function(re){E.current=re}),q["aria-controls"]=S.menuId,q["aria-expanded"]=H.isOpen,q.id=S.toggleButtonId,q.tabIndex=-1,q),!le.disabled&&Le({},{onClick:Ze(z,pe)}),le)},[u,A,S]),ne=M.useCallback(function(G,q){var F,z=G===void 0?{}:G,Y=z.onKeyDown,ee=z.onChange,se=z.onInput,le=z.onBlur;z.onChangeText;var H=z.onClick,pe=z.refKey,re=pe===void 0?"ref":pe,we=z.ref,xe=_t(z,_0),be=q===void 0?{}:q,Ne=be.suppressRefError,Te=Ne===void 0?!1:Ne;D("getInputProps",Te,re,x);var Pe=A.current.state,qe=function(O){var ke=bi(O);ke&&B[ke]&&B[ke](O)},Ye=function(O){u({type:Ko,inputValue:O.target.value})},Re=function(O){if(r!=null&&r.document&&Pe.isOpen&&!V.isMouseDown){var ke=O.relatedTarget===null&&r.document.activeElement!==r.document.body;u({type:sa,selectItem:!ke})}},Fe=function(){u({type:Uo})},xt="onChange",oe={};if(!xe.disabled){var ae;oe=(ae={},ae[xt]=Ze(ee,se,Ye),ae.onKeyDown=Ze(Y,qe),ae.onBlur=Ze(le,Re),ae.onClick=Ze(H,Fe),ae)}return Le((F={},F[re]=Qt(we,function(O){x.current=O}),F["aria-activedescendant"]=Pe.isOpen&&Pe.highlightedIndex>-1?S.getItemId(Pe.highlightedIndex):"",F["aria-autocomplete"]="list",F["aria-controls"]=S.menuId,F["aria-expanded"]=Pe.isOpen,F["aria-labelledby"]=xe&&xe["aria-label"]?void 0:S.labelId,F.autoComplete="off",F.id=S.inputId,F.role="combobox",F.value=Pe.inputValue,F),oe,xe)},[u,S,r,B,A,V,D]),te=M.useCallback(function(){u({type:pp})},[u]),J=M.useCallback(function(){u({type:gp})},[u]),ue=M.useCallback(function(){u({type:fp})},[u]),y=M.useCallback(function(G){u({type:mp,highlightedIndex:G})},[u]),X=M.useCallback(function(G){u({type:qo,selectedItem:G})},[u]),ie=M.useCallback(function(G){u({type:vp,inputValue:G})},[u]),P=M.useCallback(function(){u({type:xp})},[u]);return{getItemProps:K,getLabelProps:j,getMenuProps:$,getInputProps:ne,getToggleButtonProps:W,toggleMenu:te,openMenu:ue,closeMenu:J,setHighlightedIndex:y,setInputValue:ie,selectItem:X,reset:P,highlightedIndex:p,isOpen:c,selectedItem:d,inputValue:m}}var wp={activeIndex:-1,selectedItems:[]};function Ju(e,t){return Yn(e,t,wp)}function Yu(e,t){return cn(e,t,wp)}function A0(e){var t=Ju(e,"activeIndex"),n=Ju(e,"selectedItems");return{activeIndex:t,selectedItems:n}}function Xu(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement&&t.value!==""&&(t.selectionStart!==0||t.selectionEnd!==0))}function N0(e,t){return e.selectedItems===t.selectedItems&&e.activeIndex===t.activeIndex}var T0={stateReducer:Kr.stateReducer,itemToKey:Kr.itemToKey,environment:Kr.environment,selectedItems:ge.array,initialSelectedItems:ge.array,defaultSelectedItems:ge.array,getA11yStatusMessage:ge.func,activeIndex:ge.number,initialActiveIndex:ge.number,defaultActiveIndex:ge.number,onActiveIndexChange:ge.func,onSelectedItemsChange:ge.func,keyNavigationNext:ge.string,keyNavigationPrevious:ge.string},P0={itemToKey:Bi.itemToKey,stateReducer:Bi.stateReducer,environment:Bi.environment,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},kp=It;he.NODE_ENV!=="production"&&(kp=function(e,t){ge.checkPropTypes(T0,e,"prop",t.name)});var $o=he.NODE_ENV!=="production"?"__selected_item_click__":0,Jo=he.NODE_ENV!=="production"?"__selected_item_keydown_delete__":1,Yo=he.NODE_ENV!=="production"?"__selected_item_keydown_backspace__":2,Xo=he.NODE_ENV!=="production"?"__selected_item_keydown_navigation_next__":3,Zo=he.NODE_ENV!=="production"?"__selected_item_keydown_navigation_previous__":4,Qo=he.NODE_ENV!=="production"?"__dropdown_keydown_navigation_previous__":5,el=he.NODE_ENV!=="production"?"__dropdown_keydown_backspace__":6,tl=he.NODE_ENV!=="production"?"__dropdown_click__":7,nl=he.NODE_ENV!=="production"?"__function_add_selected_item__":8,il=he.NODE_ENV!=="production"?"__function_remove_selected_item__":9,rl=he.NODE_ENV!=="production"?"__function_set_selected_items__":10,al=he.NODE_ENV!=="production"?"__function_set_active_index__":11,sl=he.NODE_ENV!=="production"?"__function_reset__":12,O0=Object.freeze({__proto__:null,DropdownClick:tl,DropdownKeyDownBackspace:el,DropdownKeyDownNavigationPrevious:Qo,FunctionAddSelectedItem:nl,FunctionRemoveSelectedItem:il,FunctionReset:sl,FunctionSetActiveIndex:al,FunctionSetSelectedItems:rl,SelectedItemClick:$o,SelectedItemKeyDownBackspace:Yo,SelectedItemKeyDownDelete:Jo,SelectedItemKeyDownNavigationNext:Xo,SelectedItemKeyDownNavigationPrevious:Zo});function L0(e,t){var n=t.type,i=t.index,r=t.props,a=t.selectedItem,o=e.activeIndex,l=e.selectedItems,u;switch(n){case $o:u={activeIndex:i};break;case Zo:u={activeIndex:o-1<0?0:o-1};break;case Xo:u={activeIndex:o+1>=l.length?-1:o+1};break;case Yo:case Jo:{if(o<0)break;var c=o;l.length===1?c=-1:o===l.length-1&&(c=l.length-2),u=Le({selectedItems:[].concat(l.slice(0,o),l.slice(o+1))},{activeIndex:c});break}case Qo:u={activeIndex:l.length-1};break;case el:u={selectedItems:l.slice(0,l.length-1)};break;case nl:u={selectedItems:[].concat(l,[a])};break;case tl:u={activeIndex:-1};break;case il:{var p=o,d=l.findIndex(function(_){return r.itemToKey(_)===r.itemToKey(a)});if(d<0)break;l.length===1?p=-1:d===l.length-1&&(p=l.length-2),u={selectedItems:[].concat(l.slice(0,d),l.slice(d+1)),activeIndex:p};break}case rl:{var m=t.selectedItems;u={selectedItems:m};break}case al:{var g=t.activeIndex;u={activeIndex:g};break}case sl:u={activeIndex:Yu(r,"activeIndex"),selectedItems:Yu(r,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return Le({},e,u)}var R0=["refKey","ref","onClick","onKeyDown","selectedItem","index"],D0=["refKey","ref","onKeyDown","onClick","preventKeyAction"];ol.stateChangeTypes=O0;function ol(e){e===void 0&&(e={}),kp(e,ol);var t=Le({},P0,e),n=t.getA11yStatusMessage,i=t.environment,r=t.keyNavigationNext,a=t.keyNavigationPrevious,o=$d(L0,t,A0,N0),l=o[0],u=o[1],c=l.activeIndex,p=l.selectedItems,d=ar(),m=M.useRef(null),g=M.useRef();g.current=[];var _=Ea({state:l,props:t});So(n,l,[c,p],i),M.useEffect(function(){d||(c===-1&&m.current?m.current.focus():g.current[c]&&g.current[c].focus())},[c]),Ia({props:t,state:l});var x=Ca("getDropdownProps"),E=M.useMemo(function(){var V;return V={},V[a]=function(){u({type:Zo})},V[r]=function(){u({type:Xo})},V.Delete=function(){u({type:Jo})},V.Backspace=function(){u({type:Yo})},V},[u,r,a]),C=M.useMemo(function(){var V;return V={},V[a]=function(D){Xu(D)&&u({type:Qo})},V.Backspace=function(D){Xu(D)&&u({type:el})},V},[u,a]),S=M.useCallback(function(V){var D,B=V===void 0?{}:V,j=B.refKey,$=j===void 0?"ref":j,K=B.ref,W=B.onClick,ne=B.onKeyDown,te=B.selectedItem,J=B.index,ue=_t(B,R0),y=_.current.state,X=wo(te,J,y.selectedItems,"Pass either item or index to getSelectedItemProps!"),ie=X[1],P=ie>-1&&ie===y.activeIndex,G=function(){u({type:$o,index:ie})},q=function(F){var z=bi(F);z&&E[z]&&E[z](F)};return Le((D={},D[$]=Qt(K,function(F){F&&g.current.push(F)}),D.tabIndex=P?0:-1,D.onClick=Ze(W,G),D.onKeyDown=Ze(ne,q),D),ue)},[u,_,E]),k=M.useCallback(function(V,D){var B,j=V===void 0?{}:V,$=j.refKey,K=$===void 0?"ref":$,W=j.ref,ne=j.onKeyDown,te=j.onClick,J=j.preventKeyAction,ue=J===void 0?!1:J,y=_t(j,D0),X=D===void 0?{}:D,ie=X.suppressRefError,P=ie===void 0?!1:ie;x("getDropdownProps",P,K,m);var G=function(F){var z=bi(F);z&&C[z]&&C[z](F)},q=function(){u({type:tl})};return Le((B={},B[K]=Qt(W,function(F){F&&(m.current=F)}),B),!ue&&{onKeyDown:Ze(ne,G),onClick:Ze(te,q)},y)},[u,C,x]),A=M.useCallback(function(V){u({type:nl,selectedItem:V})},[u]),b=M.useCallback(function(V){u({type:il,selectedItem:V})},[u]),f=M.useCallback(function(V){u({type:rl,selectedItems:V})},[u]),T=M.useCallback(function(V){u({type:al,activeIndex:V})},[u]),L=M.useCallback(function(){u({type:sl})},[u]);return{getSelectedItemProps:S,getDropdownProps:k,addSelectedItem:A,removeSelectedItem:b,setSelectedItems:f,setActiveIndex:T,reset:L,selectedItems:p,activeIndex:c}}const M0=e=>{const{items:t=[],isMulti:n=!1,isSearchable:i=!1,value:r,defaultValue:a,inputValue:o,onChange:l,onInputChange:u,getOptionLabel:c=F=>(F==null?void 0:F.label)||"",getOptionValue:p=F=>(F==null?void 0:F.value)||"",isOpen:d,onOpenChange:m,customOptionGenerator:g,disableInternalFiltering:_=!1,stateReducer:x,isDisabled:E=!1}=e,C=M.useCallback(F=>{const z=c(F);if(typeof z=="string")return z;if(typeof z=="number")return String(z);const Y=F;if(typeof Y=="object"&&Y!==null){if(typeof Y.label=="string")return Y.label;if(typeof Y.name=="string")return Y.name}return String(p(F))},[c,p]),S=F=>F?Array.isArray(F)?F:[F]:[],k=a!==void 0?a:r!==void 0?r:null,[A,b]=M.useState(()=>S(k)),[f,T]=M.useState(o||""),[L,V]=M.useState(()=>d!==void 0?d:!1),D=r!==void 0?S(r):A,B=o!==void 0?o:f,j=d!==void 0?d:L,$=M.useCallback(F=>{d===void 0&&V(F),m==null||m(F)},[d,m]),K=M.useCallback(F=>{r===void 0&&b(F);const z=n?F:F[0]||null;l==null||l(z)},[r,n,l]),W=M.useCallback(F=>{o===void 0&&T(F),u==null||u(F)},[o,u]),ne=M.useMemo(()=>g?g(B,t):_||!i||!B?t:t.filter(F=>C(F).toLowerCase().includes(B.toLowerCase())),[t,B,g,_,i,C]),te=ol({selectedItems:D,onSelectedItemsChange:F=>{const z=F.selectedItems||[];K(z)}}),J={items:ne,itemToString:F=>F?C(F):"",isOpen:j,onIsOpenChange:({isOpen:F})=>{F!==void 0&&$(F)},selectedItem:n?null:D[0]||null,onSelectedItemChange:F=>{!n&&F.selectedItem&&K([F.selectedItem])}},ue=F=>(z,Y)=>{const ee=(()=>{const{changes:se,type:le}=Y;return n&&se.selectedItem&&(F===bn?[bn.stateChangeTypes.InputKeyDownEnter,bn.stateChangeTypes.ItemClick]:[gi.stateChangeTypes.ToggleButtonKeyDownEnter,gi.stateChangeTypes.ItemClick]).includes(le)?(!D.some(H=>p(H)===p(se.selectedItem))&&se.selectedItem&&te.addSelectedItem(se.selectedItem),{...se,isOpen:!0,highlightedIndex:z.highlightedIndex,...i&&{inputValue:""}}):le===bn.stateChangeTypes.InputBlur&&!n&&D.length>0?{...se,inputValue:C(D[0])}:se})();return x?x(z,{...Y,changes:ee}):ee},y=i?bn({...J,inputValue:B,onInputValueChange:({inputValue:F,type:z})=>{!F&&z===bn.stateChangeTypes.InputChange&&K([]),W(F||"")},stateReducer:ue(bn),initialIsOpen:d!==void 0?d:!1,defaultIsOpen:!1}):gi({...J,stateReducer:ue(gi),initialIsOpen:d!==void 0?d:!1,defaultIsOpen:!1}),X=()=>{E||($(!j),"toggleMenu"in y&&y.toggleMenu())},ie=M.useCallback(()=>{E||($(!0),"openMenu"in y&&y.openMenu())},[$,y,E]),P=M.useCallback(()=>{$(!1),"closeMenu"in y&&y.closeMenu()},[$,y]),G=M.useCallback(()=>{K([]),W(""),n&&te.reset()},[K,W,n,te]),q=M.useCallback(F=>{n&&te.removeSelectedItem(F)},[n,te]);return{isOpen:y.isOpen,selectedItem:y.selectedItem,highlightedIndex:y.highlightedIndex,inputValue:B,getToggleButtonProps:y.getToggleButtonProps,getMenuProps:y.getMenuProps,getItemProps:y.getItemProps,getInputProps:"getInputProps"in y?y.getInputProps:void 0,selectedItems:D,filteredItems:ne,setInputValue:W,setIsOpen:$,toggleMenu:X,openMenu:ie,closeMenu:P,clearSelection:G,removeItem:q,multipleSelection:te,isMulti:n,isSearchable:i}},Sp=({size:e="md",color:t="primary",isInvalid:n=!1,isDisabled:i=!1,className:r,children:a,options:o=[],value:l,defaultValue:u,onChange:c,isMulti:p,inputValue:d,onInputChange:m,isSearchable:g,isOpen:_,onOpenChange:x,customOptionGenerator:E,disableInternalFiltering:C,getOptionLabel:S=L=>typeof L=="string"||typeof L=="number"?String(L):(L==null?void 0:L.label)||(L==null?void 0:L.name)||String(L),getOptionValue:k=L=>typeof L=="string"||typeof L=="number"?String(L):(L==null?void 0:L.value)||(L==null?void 0:L.id)||(L==null?void 0:L.name)||String(L),isOptionDisabled:A=L=>(L==null?void 0:L.isDisabled)||!1,formatOptionLabel:b,stateReducer:f,...T})=>{const[L,V]=M.useState(!1),D=M.useMemo(()=>Nb(o),[o]),B=M0({items:D,value:l,defaultValue:u,onChange:c,isMulti:p,inputValue:d,onInputChange:m,isSearchable:g,isOpen:_,onOpenChange:x,getOptionLabel:S,getOptionValue:k,customOptionGenerator:E,disableInternalFiltering:C,stateReducer:f,isDisabled:i}),j={size:e,color:n?"negative":t,isInvalid:n,isDisabled:i,hasMessage:L,setHasMessage:V,downshift:B,options:o,getOptionLabel:S,getOptionValue:k,isOptionDisabled:A,formatOptionLabel:b};return w.jsx(yd.Provider,{value:j,children:w.jsx("div",{"data-qui":"Select",className:de(db(),r),...T,children:a})})},F0=M.forwardRef(({className:e,children:t,isFocused:n,isDisabled:i,...r},a)=>{const{size:o,color:l,isDisabled:u,hasMessage:c,downshift:p,isInvalid:d}=At(),m=i??u,g=n??p.isOpen;return w.jsx("div",{ref:a,className:de(pb({size:o,color:l,isDisabled:m,isFocused:!!g,isInvalid:d&&!p.isOpen,hasMessage:c}),e),"aria-disabled":m,"aria-invalid":d,role:"combobox",tabIndex:m?-1:0,...r,children:t})}),j0=({className:e,children:t,isMulti:n})=>w.jsx("div",{className:de(fb({isMulti:n}),e),children:t}),Wr=M.forwardRef(({isHidden:e,inputClassName:t,...n},i)=>{const{size:r,color:a}=At();return e?w.jsx("input",{ref:i,type:"text",style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...n}):w.jsx("input",{ref:i,type:"text",className:de(gb({size:r,color:a}),t),...n})}),V0=({className:e,children:t})=>{const{size:n,color:i}=At();return w.jsx("div",{className:de(mb({size:n,color:i}),e),children:t})},z0=({className:e,children:t,data:n,isDisabled:i})=>{const{size:r,color:a,getOptionLabel:o,formatOptionLabel:l}=At();return w.jsx("div",{className:de(vb({size:r,color:a,isDisabled:i}),e),children:t||(l?l(n):o(n))})},Ep=({className:e,children:t,data:n,isDisabled:i,isFocused:r,onRemove:a})=>{const{size:o,color:l,downshift:u,getOptionLabel:c,formatOptionLabel:p}=At(),d=()=>{a?a(n):u.removeItem(n)};return w.jsxs("div",{className:de(xb({size:o,color:l,isDisabled:i,isFocused:r}),e),children:[w.jsx("div",{className:bb({size:o}),children:t||(p?p(n):c(n))}),!i&&w.jsx("div",{className:yb({size:o,color:l,isDisabled:!1}),onClick:d,children:w.jsx(ya,{className:"w-3 h-3"})})]})},Cp=({color:e,className:t,children:n,onClick:i,isDisabled:r,...a})=>{const{size:o,color:l,isDisabled:u,downshift:c}=At(),p=r??u,d=c.selectedItems.length>0;if(p||!d)return null;const m=g=>{g.stopPropagation(),i?i(g):c.clearSelection()};return w.jsx("div",{className:de(wd({size:o,color:e||l,isDisabled:p}),t),onClick:m,role:"button",tabIndex:0,"aria-label":"Clear selection",...a,children:n||w.jsx(Hm,{})})},B0=({className:e,children:t,onClick:n,isDisabled:i,...r})=>{const{size:a,color:o,isDisabled:l,downshift:u}=At(),c=i??l,p=u.inputValue.length>0&&u.isSearchable;if(c||!p)return null;const d=m=>{m.stopPropagation(),n?n(m):u.setInputValue("")};return w.jsx("div",{className:de(wd({size:a,color:o,isDisabled:c}),e),onClick:d,role:"button",tabIndex:0,"aria-label":"Clear selection",...r,children:t||w.jsx(ya,{})})},Ip=({color:e,className:t,children:n,onClick:i,isDisabled:r,...a})=>{const{size:o,color:l,isDisabled:u,downshift:c}=At(),p=r??u,d=c.isOpen,m=g=>{g.stopPropagation(),p||(i?i(g):c.toggleMenu())};return w.jsx("div",{className:de(wb({size:o,color:e||l,isDisabled:p}),"cursor-pointer",t),onClick:m,role:"button",tabIndex:p?-1:0,"aria-label":d?"Close menu":"Open menu","aria-expanded":d,"aria-disabled":p,onMouseDown:g=>{g.preventDefault()},...a,children:n||w.jsx(Km,{className:de("transition-transform duration-200",{"rotate-180":d})})})},H0=M.forwardRef(({className:e,children:t,placement:n,...i},r)=>{const{size:a,hasMessage:o,color:l}=At();return w.jsx("div",{"data-qui":"SelectMenu",ref:r,className:de(kb({size:a,placement:n,hasMessage:o,color:l}),e),...i,children:t})}),K0=M.forwardRef(({className:e,children:t,maxHeight:n=300,...i},r)=>{const{size:a}=At();return w.jsx(fo,{scrollableNodeProps:{ref:r},className:de(Sb({size:a}),e),style:{maxHeight:n},...i,children:t})}),Ws=({className:e,children:t,data:n,isDisabled:i,isFocused:r,isSelected:a,innerProps:o,...l})=>{const{size:u,color:c,getOptionLabel:p,formatOptionLabel:d}=At();return w.jsx("div",{"data-qui":"SelectOption",className:de(Eb({size:u,color:c,isDisabled:i,isFocused:r,isSelected:a}),e),...o,...l,children:t||(d?d(n):p(n))})},U0=({className:e,children:t,data:n,label:i})=>{const{size:r}=At();return w.jsxs("div",{"data-qui":"SelectGroup",className:de(Cb({size:r}),e),children:[w.jsx(W0,{children:i||n.label}),t]})},W0=({className:e,children:t})=>{const{size:n,color:i}=At();return w.jsx("div",{className:de(Ib({size:n,color:i}),e),children:t})},ts=({className:e,children:t,inputValue:n})=>{const{size:i}=At();return w.jsx("div",{className:de(Ab({size:i}),e),children:t||`No options found${n?` for "${n}"`:""}`})},q0=({isOpen:e,usePortal:t,controlRef:n,children:i})=>{const[r,a]=M.useState(null);return M.useLayoutEffect(()=>{if(t&&e&&n.current){const o=()=>{var l;const u=(l=n.current)==null?void 0:l.getBoundingClientRect();u&&a({top:u.top+window.scrollY,left:u.left+window.scrollX,width:u.width,height:u.height})};return o(),window.addEventListener("resize",o),window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("resize",o),window.removeEventListener("scroll",o,!0)}}},[e,t,n]),e?t&&r?er.createPortal(w.jsx("div",{className:"absolute z-50",style:{top:r.top,left:r.left,width:r.width,height:r.height,pointerEvents:"none"},children:w.jsx("div",{className:"relative w-full h-full",children:w.jsx("div",{style:{pointerEvents:"auto"},children:i})})}),document.body):w.jsx(w.Fragment,{children:i}):null},ns=e=>t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&"current"in n&&(n.current=t)})},_p=M.forwardRef(({placeholder:e,noOptionsMessage:t="",hideNoOptions:n=!1,loadingMessage:i="Loading...",isClearable:r=!1,isSearchClearable:a=!1,isLoading:o=!1,isRequired:l=!1,hideIndicators:u=!1,hideDropdownIndicator:c=!1,searchPlacement:p="trigger",hideSelectedOptions:d=!1,onFocus:m,onBlur:g,renderMenuHeader:_,formatOptionLabel:x,displayFormattedOption:E=!1,renderMultiValue:C,renderOption:S,inputRef:k,controlShouldRenderValue:A=!0,name:b,id:f,onSelectionComplete:T,"aria-label":L,"aria-labelledby":V,"aria-describedby":D,children:B,usePortal:j=!1,...$},K)=>{const{size:W,isInvalid:ne,isDisabled:te,downshift:J,options:ue=[],getOptionLabel:y,getOptionValue:X,isOptionDisabled:ie}=At(),P=M.useRef(null),G=k||P,q=M.useRef(null),{isOpen:F,openMenu:z,selectedItem:Y,inputValue:ee,highlightedIndex:se,getToggleButtonProps:le,getMenuProps:H,getInputProps:pe,getItemProps:re,isMulti:we,isSearchable:xe,multipleSelection:be}=J,{getDropdownProps:Ne}=be,Te=we?J.selectedItems??[]:Y?[Y]:[],Pe=Te.length>0,qe=a&&!te&&!u,Ye=r&&Pe&&!te&&!u,Re=!c&&!u,Fe=!Pe&&(!xe||!ee)||!A,xt={},oe={};Object.entries($).forEach(([Ge,$e])=>{Ge.startsWith("data-")||Ge.startsWith("aria-")||Ge==="role"?xt[Ge]=$e:oe[Ge]=$e});const ae=M.useMemo(()=>ns([q,K]),[K]),O=H({},{suppressRefError:!0}),ke=Ne({preventKeyAction:F}),Be=(pe==null?void 0:pe({ref:G,disabled:te,required:l,name:b,id:f,"aria-label":L,"aria-labelledby":V,"aria-describedby":D,"aria-invalid":ne,onFocus:m,onBlur:g,...oe,...ke}))??{},{ref:ct,...ve}=Be,bt=M.useMemo(()=>ns([ct,ke.ref]),[ct,ke.ref]),gn=Ge=>Te.some($e=>X($e)===X(Ge)),rn=Ge=>d?Ge.filter($e=>!gn($e)):Ge,ht=Ge=>d?Ge.map($e=>({...$e,options:rn($e.options)})).filter($e=>$e.options.length>0):Ge,Mt=Ge=>{T==null||T(X(Ge),Ge)},Tt=xe?{}:le({disabled:te,...ke,ref:ns([ae,ke.ref])});return w.jsxs("div",{className:"relative",children:[w.jsxs(F0,{...xe?{ref:ae}:Tt,...xt,isFocused:F,isDisabled:te,onClick:Ge=>{Ge.stopPropagation(),xe?z():xe||J.toggleMenu()},children:[B||w.jsxs(j0,{isMulti:we,children:[we&&A&&Te.map((Ge,$e)=>C?C({data:Ge,index:$e,isDisabled:te,onRemove:at=>J.removeItem(at)}):w.jsx(Ep,{data:Ge,index:$e,isDisabled:te},X(Ge))),!we&&Pe&&A&&!xe&&w.jsx("div",{className:"flex items-center gap-2",children:w.jsx(z0,{data:Te[0],isDisabled:te,children:x&&E?x(Te[0]):y(Te[0])})}),xe&&p==="trigger"?w.jsx(Wr,{ref:bt,...ve,placeholder:e}):w.jsxs(w.Fragment,{children:[w.jsx(Wr,{ref:bt,...ve,isHidden:!0,value:Te.map(Ge=>X(Ge)).join(",")}),Fe&&w.jsx(V0,{children:e})]})]}),w.jsxs("div",{className:de("flex items-center size-fit gap-1",{hidden:!Ye&&!Re}),children:[qe&&w.jsx(B0,{}),Ye&&w.jsx(Cp,{}),Re&&w.jsx(Ip,{...xe?le({disabled:te,"aria-label":F?"Close menu":"Open menu"}):{}})]})]}),w.jsx(q0,{isOpen:F,usePortal:j,controlRef:q,children:n&&J.filteredItems.length===0?w.jsx("div",{...O,style:{display:"none"},"aria-hidden":"true"}):w.jsxs(H0,{...O,children:[_&&_(J),xe&&p==="menu"&&w.jsx("div",{className:"p-2",children:w.jsx(Wr,{ref:bt,...ve,autoFocus:!0,placeholder:e,onClick:Ge=>Ge.stopPropagation()})}),w.jsx(K0,{children:o?w.jsx("div",{className:_b({size:W}),children:i}):J.filteredItems.length===0?w.jsx(ts,{inputValue:ee,children:typeof t=="function"?t(ee):t}):kd(ue)?(()=>{const Ge=ht(ue);return Ge.length===0?w.jsx(ts,{inputValue:ee,children:typeof t=="function"?t(ee):t}):Ge.map($e=>w.jsx(U0,{data:$e,label:$e.label,options:$e.options,children:$e.options.map(at=>{const gt=X(at),et=Te.some(Ni=>X(Ni)===gt),Bt=J.filteredItems.findIndex(Ni=>X(Ni)===gt),Oe=se===Bt,Wn=ie(at),mn=re({item:at,index:Bt,onClick:()=>Mt(at)});return w.jsx(Ws,{...mn,data:at,isDisabled:Wn,isFocused:Oe,isSelected:et,children:x?x(at):y(at)},gt)})},$e.label))})():(()=>{const Ge=rn(J.filteredItems);return Ge.length===0?w.jsx(ts,{inputValue:ee,children:typeof t=="function"?t(ee):t}):Ge.map($e=>{const at=X($e),gt=Te.some(mn=>X(mn)===at),et=J.filteredItems.findIndex(mn=>X(mn)===at),Bt=se===et,Oe=ie($e),Wn=re({item:$e,index:et,onClick:()=>Mt($e)});return S?w.jsx(M.Fragment,{children:S({...Wn,data:$e,isDisabled:Oe,isFocused:Bt,isSelected:gt})},at):w.jsx(Ws,{...Wn,data:$e,isDisabled:Oe,isFocused:Bt,isSelected:gt,children:x?x($e):y($e)},at)})})()})]})})]})});Sp.displayName="Select.Root";Wr.displayName="Select.Input";Ep.displayName="Select.MultiValue";Cp.displayName="Select.ClearIndicator";Ip.displayName="Select.DropdownIndicator";Ws.displayName="Select.Option";const G0=_p;G0.displayName="Select.Field";const oa={Root:Sp,Field:_p};M.createContext(void 0);const $0=({active:e,disabled:t,error:n,isOpen:i,className:r})=>de("flex w-full items-center justify-between text-left leading-5 transition-colors duration-200",{"cursor-pointer":!t,"text-inactive-text":t,"bg-primary hover:bg-primary-hover text-body":e&&!t,"text-negative":n&&!e&&!t,"bg-primary text-grey-50":i&&!e&&!t,"text-muted":!e&&!t&&!n,"hover:bg-primary-hover hover:text-tab-active-fg":!t&&!e},r),J0=M.forwardRef(({active:e,disabled:t,error:n,isOpen:i,className:r,children:a,as:o="div",...l},u)=>{const c=$0({active:e,disabled:t,error:n,isOpen:i,className:r});return w.jsx(o,{"data-qui":"ListItem",ref:u,className:c,"aria-disabled":t,"aria-selected":e,"aria-invalid":n,"aria-expanded":i,role:l.onClick?"button":"listitem",...l,children:a})});J0.displayName="ListItem";const ft=()=>document.querySelector(`.${lo.LOCALIZATION_EDITOR_SCOPE_CLASS}`)||document.body,Y0=({container:e,...t})=>w.jsx(ye.Portal,{...t,container:e||ft()}),X0=({keyName:e,value:t,isDefault:n})=>{const{state:{newValue:i,onEditValue:r},actions:a}=ye.useStateObject({newValue:t,onEditValue:!1}),{setLanguageKeyValue:o,removeKey:l}=Bn(),u=Vn(),[c,p]=M.useState(null),d=()=>{r&&(o(e,i),a.setOnEditValue(!1),p(null))},m=()=>{r&&(a.setNewValue(t),a.setOnEditValue(!1),p(null))},g=async()=>{const{confirmed:_}=await u.actions.openModal({title:"Delete Key",type:ye.ModalType.CONFIRM,color:ye.ModalColor.DANGER,message:"Deleting this key will remove all translations associated with it across all locales. Are you sure you want to delete it ?",icon:"FdWarningDanger"});_&&l(e)};return M.useEffect(()=>{a.setNewValue(t)},[t]),w.jsxs("tr",{"data-cy":`shared-labels-row-${e}`,className:"odd:bg-white/5",children:[w.jsx("td",{className:"px-2 text-xs font-normal h-10",children:e}),w.jsx("td",{className:"p-2 whitespace-nowrap text-xs font-normal h-10",children:r?w.jsxs(Zt.Root,{isInvalid:!!c,children:[w.jsx(Zt.Group,{children:w.jsx(Zt.Area,{"data-cy":`shared-labels-row-${e}-input`,value:i,onChange:_=>{a.setNewValue(_.target.value),p(null)},onKeyDown:_=>{_.key==="Enter"&&!_.shiftKey&&(_.preventDefault(),d())}})}),c&&w.jsx(Zt.Message,{children:c==null?void 0:c.message})]}):w.jsx("span",{className:Vt("text-wrap",{"italic text-inactive-text":n}),onDoubleClick:()=>{a.setOnEditValue(!0)},children:t})}),w.jsx("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:r?w.jsxs(w.Fragment,{children:[w.jsx(yt,{label:"Confirm",container:ft(),children:w.jsx(ut,{"data-cy":`shared-labels-row-${e}-confirm-button`,color:"white",variant:"ghost",onClick:d,children:w.jsx(st.FdCheckCircle,{})})}),w.jsx(yt,{label:"Cancel",container:ft(),children:w.jsx(ut,{"data-cy":`shared-labels-row-${e}-cancel-button`,color:"white",variant:"ghost",onClick:m,children:w.jsx(st.FdClose,{})})})]}):w.jsxs(w.Fragment,{children:[w.jsx(yt,{label:"Edit",container:ft(),children:w.jsx(ut,{"data-cy":`shared-labels-row-${e}-edit-button`,color:"white",variant:"ghost",onClick:()=>{a.setOnEditValue(!0)},children:w.jsx(st.FdPen,{})})}),w.jsx(yt,{label:"Delete",container:ft(),children:w.jsx(ut,{"data-cy":`shared-labels-row-${e}-delete-button`,color:"white",variant:"ghost",onClick:g,children:w.jsx(st.FdTrash,{})})})]})})]})},Z0=({onCancel:e,onConfirm:t,error:n,setError:i})=>{const{state:r,actions:a}=ye.useStateObject({key:"",value:""}),o=()=>{t(r.key,r.value)},l=()=>{i(null),e()};return w.jsxs("tr",{className:"odd:bg-grey-700 even:bg-grey-600",children:[w.jsx("td",{className:"px-2 text-xs font-normal h-10 min-h-4",children:w.jsxs(Zt.Root,{color:n?"negative":"primary",children:[w.jsx(Zt.Group,{children:w.jsx(Zt.Field,{type:"text",value:r.key,onChange:u=>{i(null),a.setKey(u.target.value)},autoFocus:!0,onKeyUp:u=>{u.key==="Escape"&&(i(null),l())}})}),n&&w.jsx(Zt.Message,{children:n==null?void 0:n.message})]})}),w.jsx("td",{className:"px-2 whitespace-nowrap text-xs font-normal h-10",children:w.jsx(Zt.Root,{color:n?"negative":"primary",children:w.jsx(Zt.Group,{children:w.jsx(Zt.Field,{type:"text",value:r.value,onChange:u=>a.setValue(u.target.value),onKeyUp:u=>{u.key==="Enter"?o():u.key==="Escape"&&l()}})})})}),w.jsxs("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:[w.jsx(yt,{label:"Confirm",container:ft(),children:w.jsx(ut,{color:"white",variant:"ghost",onClick:o,children:w.jsx(st.FdCheckCircle,{})})}),w.jsx(yt,{label:"Cancel",container:ft(),children:w.jsx(ut,{color:"white",variant:"ghost",onClick:l,children:w.jsx(st.FdClose,{})})})]})]})},Q0=()=>{const{languageKeys:e,isPrimary:t,selectedLanguage:n,userLanguages:{supported:i},addNewKey:r,setUserLangSettings:a}=Bn(),{state:o,actions:l}=ye.useStateObject({search:"",switch:t,keys:[],addNewKey:!1}),[u,c]=M.useState(null),p=gm(e),d=!!n&&!p,m=!!n,g=e.filter(k=>k.key.match(new RegExp(ce.escapeRegExp(o.search),"gi"))),_=g.length===0,x=()=>{if(n){const{isocode:k}=n;a({primary:k,supported:i})}},E=()=>{l.setAddNewKey(!0)},C=(k,A)=>{const b=g.find(f=>f.key===k);if(n){const{isocode:f}=n;if(k){if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(k)||!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(k)){c({message:"Invalid key name"});return}else if(b){c({message:"Key name already exists"});return}r(k,[{lang:f,value:A}],A)}l.setAddNewKey(!1)}},S=()=>{l.setAddNewKey(!1)};return M.useEffect(()=>{l.setSwitch(t)},[t]),w.jsx(Hn,{depth:1,className:Vt("flex w-full border-l",{"justify-center items-center":!1}),children:w.jsxs("div",{className:"flex flex-col w-full py-3 px-3 min-h-0",children:[w.jsxs("div",{className:"flex flex-col space-y-3 justify-between w-full",children:[w.jsxs("div",{className:Vt("flex items-center w-full justify-between",{hidden:!m}),children:[w.jsxs("div",{className:"flex space-x-2 items-center justify-center",children:[w.jsx("span",{className:"text-[12px]",children:"Shared Labels"}),w.jsx(ye.Tip,{tipKey:"editors:i18n:label",alwaysOn:!0})]}),w.jsxs("div",{className:"flex space-x-2 justify-center items-center",children:[w.jsx(gd,{onChange:k=>{t||(l.setSwitch(k),x())},checked:o.switch}),w.jsx("span",{className:"text-xs",children:"Primary Locale"})]})]}),w.jsx("div",{className:Vt("w-60",{invisible:!d}),children:w.jsx(ye.SearchInput,{containerClassName:"",value:o.search,onChange:k=>l.setSearch(k),delay:300})})]}),p?w.jsx(xm,{}):w.jsxs("div",{className:"w-full flex-1 min-h-0 overflow-y-auto",children:[w.jsxs("table",{"data-cy":"shared-labels-table",className:"w-full text-sm text-left rtl:text-right table-fixed",children:[w.jsx("thead",{className:"text-xs",children:w.jsxs("tr",{children:[w.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal",children:"Key"}),w.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal",children:"Value"}),w.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal float-right",children:w.jsx(yt,{label:"Add a key",container:ft(),children:w.jsx(ut,{color:"white",variant:"ghost",onClick:E,children:w.jsx(st.FdPlus,{})})})})]})}),w.jsxs("tbody",{className:"border-t-[1px] border-border-subtle",children:[g.map((k,A)=>w.jsx(X0,{keyName:k.key,value:k.value,isDefault:k.isDefault},`${n==null?void 0:n.isocode}/${A}`)),o.addNewKey&&w.jsx(Z0,{onConfirm:C,onCancel:S,setError:c,error:u}),_&&w.jsx("span",{})]})]}),_&&w.jsxs("div",{className:"flex flex-col justify-center items-center mt-16 ml-2 text-xs space-y-3 text-inactive-text",children:[w.jsx(st.FdInfoBold,{className:"h-9 w-9"}),w.jsx("div",{className:"text-xs",children:"This key doesn't exist."})]})]})]})})},$i=(e,t)=>t.find(n=>n.isocode===e);function ey(){return{enter:{mdxFlowExpression:ny,mdxTextExpression:iy},exit:{mdxFlowExpression:Zu,mdxFlowExpressionChunk:Qu,mdxTextExpression:Zu,mdxTextExpressionChunk:Qu}}}function ty(){return{handlers:{mdxFlowExpression:ec,mdxTextExpression:ec},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]}}function ny(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function iy(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function Zu(e){const t=this.resume(),n=e.estree,i=this.stack[this.stack.length-1];i.type==="mdxFlowExpression"||i.type,this.exit(e),i.value=t,n&&(i.data={estree:n})}function Qu(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function ec(e,t,n){const i=e.value||"";return"{"+n.indentLines(i,function(a,o,l){return(o===0||l?"":" ")+a})+"}"}function la(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,r=n.indexOf(t);for(;r!==-1;)i++,r=n.indexOf(t,r+t.length);return i}const ry=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],tc={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Ap(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function ay(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function sy(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function nc(e){return sy(e)||Ap(e)}const ic=document.createElement("i");function Ji(e){const t="&"+e+";";ic.innerHTML=t;const n=ic.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const oy=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function ly(e,t){const n=t||{},i=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,r=[];let a=0,o=-1,l="",u,c;n.position&&("start"in n.position||"indent"in n.position?(c=n.position.indent,u=n.position.start):u=n.position);let p=(u?u.line:0)||1,d=(u?u.column:0)||1,m=_(),g;for(a--;++a<=e.length;)if(g===10&&(d=(c?c[o]:0)||1),g=e.charCodeAt(a),g===38){const C=e.charCodeAt(a+1);if(C===9||C===10||C===12||C===32||C===38||C===60||Number.isNaN(C)||i&&C===i){l+=String.fromCharCode(g),d++;continue}const S=a+1;let k=S,A=S,b;if(C===35){A=++k;const $=e.charCodeAt(A);$===88||$===120?(b="hexadecimal",A=++k):b="decimal"}else b="named";let f="",T="",L="";const V=b==="named"?nc:b==="decimal"?Ap:ay;for(A--;++A<=e.length;){const $=e.charCodeAt(A);if(!V($))break;L+=String.fromCharCode($),b==="named"&&ry.includes(L)&&(f=L,T=Ji(L))}let D=e.charCodeAt(A)===59;if(D){A++;const $=b==="named"?Ji(L):!1;$&&(f=L,T=$)}let B=1+A-S,j="";if(!(!D&&n.nonTerminated===!1))if(!L)b!=="named"&&x(4,B);else if(b==="named"){if(D&&!T)x(5,1);else if(f!==L&&(A=k+f.length,B=1+A-k,D=!1),!D){const $=f?1:3;if(n.attribute){const K=e.charCodeAt(A);K===61?(x($,B),T=""):nc(K)?T="":x($,B)}else x($,B)}j=T}else{D||x(2,B);let $=Number.parseInt(L,b==="hexadecimal"?16:10);if(uy($))x(7,B),j="�";else if($ in tc)x(6,B),j=tc[$];else{let K="";cy($)&&x(6,B),$>65535&&($-=65536,K+=String.fromCharCode($>>>10|55296),$=56320|$&1023),j=K+String.fromCharCode($)}}if(j){E(),m=_(),a=A-1,d+=A-S+1,r.push(j);const $=_();$.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,j,{start:m,end:$},e.slice(S-1,A)),m=$}else L=e.slice(S-1,A),l+=L,d+=L.length,a=A-1}else g===10&&(p++,o++,d=0),Number.isNaN(g)?E():(l+=String.fromCharCode(g),d++);return r.join("");function _(){return{line:p,column:d,offset:a+((u?u.offset:0)||0)}}function x(C,S){let k;n.warning&&(k=_(),k.column+=S,k.offset+=S,n.warning.call(n.warningContext||void 0,oy[C],k,C))}function E(){l&&(r.push(l),n.text&&n.text.call(n.textContext||void 0,l,{start:m,end:_()}),l="")}}function uy(e){return e>=55296&&e<=57343||e>1114111}function cy(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const hy=/["&'<>`]/g,dy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,py=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,fy=/[|\\{}()[\]^$+*?.]/g,rc=new WeakMap;function gy(e,t){if(e=e.replace(t.subset?my(t.subset):hy,i),t.subset||t.escapeOnly)return e;return e.replace(dy,n).replace(py,i);function n(r,a,o){return t.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,o.charCodeAt(a+2),t)}function i(r,a,o){return t.format(r.charCodeAt(0),o.charCodeAt(a+1),t)}}function my(e){let t=rc.get(e);return t||(t=vy(e),rc.set(e,t)),t}function vy(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(fy,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function xy(e){return"&#x"+e.toString(16).toUpperCase()+";"}function by(e,t){return gy(e,Object.assign({format:xy},t))}function yn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ac(e.position):"start"in e||"end"in e?ac(e):"line"in e||"column"in e?qs(e):""}function qs(e){return sc(e&&e.line)+":"+sc(e&&e.column)}function ac(e){return qs(e&&e.start)+"-"+qs(e&&e.end)}function sc(e){return e&&typeof e=="number"?e:1}class Qe extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?r=t:!a.cause&&t&&(o=!0,r=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof i=="string"){const u=i.indexOf(":");u===-1?a.ruleId=i:(a.source=i.slice(0,u),a.ruleId=i.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=yn(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Qe.prototype.file="";Qe.prototype.name="";Qe.prototype.reason="";Qe.prototype.message="";Qe.prototype.stack="";Qe.prototype.column=void 0;Qe.prototype.line=void 0;Qe.prototype.ancestors=void 0;Qe.prototype.cause=void 0;Qe.prototype.fatal=void 0;Qe.prototype.place=void 0;Qe.prototype.ruleId=void 0;Qe.prototype.source=void 0;const Np=" ";function yy(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:i,mdxJsxFlowTagClosingMarker:r,mdxJsxFlowTagAttribute:d,mdxJsxFlowTagExpressionAttribute:m,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:i,mdxJsxTextTagClosingMarker:r,mdxJsxTextTagAttribute:d,mdxJsxTextTagExpressionAttribute:m,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:l,mdxJsxFlowTagNamePrimary:u,mdxJsxFlowTagNameMember:c,mdxJsxFlowTagNameLocal:p,mdxJsxFlowTagExpressionAttribute:g,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:_,mdxJsxFlowTagAttributeNameLocal:x,mdxJsxFlowTagAttributeValueLiteral:E,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:C,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:S,mdxJsxFlowTag:k,mdxJsxTextTagClosingMarker:l,mdxJsxTextTagNamePrimary:u,mdxJsxTextTagNameMember:c,mdxJsxTextTagNameLocal:p,mdxJsxTextTagExpressionAttribute:g,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:_,mdxJsxTextTagAttributeNameLocal:x,mdxJsxTextTagAttributeValueLiteral:E,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:C,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:S,mdxJsxTextTag:k}};function e(){this.buffer()}function t(T){return{line:T.line,column:T.column,offset:T.offset}}function n(T){this.config.enter.data.call(this,T),this.config.exit.data.call(this,T)}function i(T){const L={name:void 0,attributes:[],close:!1,selfClosing:!1,start:T.start,end:T.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=L,this.buffer()}function r(T){if(this.data.mdxJsxTagStack.length===0)throw new Qe("Unexpected closing slash `/` in tag, expected an open tag first",{start:T.start,end:T.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function a(T){if(this.data.mdxJsxTag.close)throw new Qe("Unexpected attribute in closing tag, expected the end of the tag",{start:T.start,end:T.end},"mdast-util-mdx-jsx:unexpected-attribute")}function o(T){if(this.data.mdxJsxTag.close)throw new Qe("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:T.start,end:T.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function l(){const T=this.data.mdxJsxTag;T.close=!0}function u(T){const L=this.data.mdxJsxTag;L.name=this.sliceSerialize(T)}function c(T){const L=this.data.mdxJsxTag;L.name+="."+this.sliceSerialize(T)}function p(T){const L=this.data.mdxJsxTag;L.name+=":"+this.sliceSerialize(T)}function d(T){const L=this.data.mdxJsxTag;a.call(this,T),L.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(T.start),end:void 0}})}function m(T){const L=this.data.mdxJsxTag;a.call(this,T),L.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(T.start),end:void 0}}),this.buffer()}function g(T){const L=this.data.mdxJsxTag,V=L.attributes[L.attributes.length-1];V.type;const D=T.estree;V.value=this.resume(),V.position,V.position.end=t(T.end),D&&(V.data={estree:D})}function _(T){const L=this.data.mdxJsxTag,V=L.attributes[L.attributes.length-1];V.type,V.name=this.sliceSerialize(T),V.position,V.position.end=t(T.end)}function x(T){const L=this.data.mdxJsxTag,V=L.attributes[L.attributes.length-1];V.type,V.name+=":"+this.sliceSerialize(T),V.position,V.position.end=t(T.end)}function E(T){const L=this.data.mdxJsxTag,V=L.attributes[L.attributes.length-1];V.value=ly(this.resume(),{nonTerminated:!1}),V.position,V.position.end=t(T.end)}function C(T){const L=this.data.mdxJsxTag,V=L.attributes[L.attributes.length-1];V.type;const D={type:"mdxJsxAttributeValueExpression",value:this.resume()},B=T.estree;B&&(D.data={estree:B}),V.value=D,V.position,V.position.end=t(T.end)}function S(){const T=this.data.mdxJsxTag;T.selfClosing=!0}function k(T){const L=this.data.mdxJsxTag,V=this.data.mdxJsxTagStack,D=V[V.length-1];if(L.close&&D.name!==L.name)throw new Qe("Unexpected closing tag `"+f(L)+"`, expected corresponding closing tag for `"+f(D)+"` ("+yn(D)+")",{start:T.start,end:T.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),L.close?V.pop():this.enter({type:T.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:L.name||null,attributes:L.attributes,children:[]},T,A),L.selfClosing||L.close?this.exit(T,b):V.push(L)}function A(T,L){const V=this.data.mdxJsxTagStack,D=V[V.length-1],B=T?" before the end of `"+T.type+"`":"",j=T?{start:T.start,end:T.end}:void 0;throw new Qe("Expected a closing tag for `"+f(D)+"` ("+yn({start:L.start,end:L.end})+")"+B,j,"mdast-util-mdx-jsx:end-tag-mismatch")}function b(T,L){const V=this.data.mdxJsxTag;throw new Qe("Expected the closing tag `"+f(V)+"` either after the end of `"+L.type+"` ("+yn(L.end)+") or another opening tag after the start of `"+L.type+"` ("+yn(L.start)+")",{start:T.start,end:T.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function f(T){return"<"+(T.close?"/":"")+(T.name||"")+">"}}function wy(e){const t=e||{},n=t.quote||'"',i=t.quoteSmart||!1,r=t.tightSelfClosing||!1,a=t.printWidth||Number.POSITIVE_INFINITY,o=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return l.peek=Sy,{handlers:{mdxJsxFlowElement:l,mdxJsxTextElement:l},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function l(u,c,p,d){const m=u.type==="mdxJsxFlowElement",g=u.name?!u.children||u.children.length===0:!1,_=Tp(p),x=Pp(_),E=p.createTracker(d),C=p.createTracker(d),S=[],k=(m?x:"")+"<"+(u.name||""),A=p.enter(u.type);if(E.move(k),C.move(k),u.attributes&&u.attributes.length>0){if(!u.name)throw new Error("Cannot serialize fragment w/ attributes");let V=-1;for(;++V<u.attributes.length;){const D=u.attributes[V];let B;if(D.type==="mdxJsxExpressionAttribute")B="{"+(D.value||"")+"}";else{if(!D.name)throw new Error("Cannot serialize attribute w/o name");const j=D.value,$=D.name;let K="";if(j!=null)if(typeof j=="object")K="{"+(j.value||"")+"}";else{const W=i&&la(j,n)>la(j,o)?o:n;K=W+by(j,{subset:[W]})+W}B=$+(K?"=":"")+K}S.push(B)}}let b=!1;const f=S.join(" ");m&&(/\r?\n|\r/.test(f)||E.current().now.column+f.length+(g?r?2:3:1)>a)&&(b=!0);let T=E,L=k;if(b){T=C;let V=-1;for(;++V<S.length;)S[V]=x+Np+S[V];L+=T.move(`
|
|
53
|
+
`+S.join(`
|
|
54
|
+
`)+`
|
|
55
|
+
`+x)}else f&&(L+=T.move(" "+f));return g&&(L+=T.move((r||b?"":" ")+"/")),L+=T.move(">"),u.children&&u.children.length>0&&(u.type==="mdxJsxTextElement"?L+=T.move(p.containerPhrasing(u,{...T.current(),before:">",after:"<"})):(T.shift(2),L+=T.move(`
|
|
56
|
+
`),L+=T.move(ky(u,p,T.current())),L+=T.move(`
|
|
57
|
+
`))),g||(L+=T.move((m?x:"")+"</"+(u.name||"")+">")),A(),L}}function ky(e,t,n){const i=t.indexStack,r=e.children,a=t.createTracker(n),o=Pp(Tp(t)),l=[];let u=-1;for(i.push(-1);++u<r.length;){const c=r[u];i[i.length-1]=u;const p={before:`
|
|
58
|
+
`,after:`
|
|
59
|
+
`,...a.current()},d=t.handle(c,e,t,p),m=c.type==="mdxJsxFlowElement"?d:t.indentLines(d,function(g,_,x){return(x?"":o)+g});l.push(a.move(m)),c.type!=="list"&&(t.bulletLastUsed=void 0),u<r.length-1&&l.push(a.move(`
|
|
60
|
+
|
|
61
|
+
`))}return i.pop(),l.join("")}function Tp(e){let t=0,n=e.stack.length;for(;--n>-1;){const i=e.stack[n];if(i==="blockquote"||i==="listItem")break;i==="mdxJsxFlowElement"&&t++}return t}function Pp(e){return Np.repeat(e)}function Sy(){return"<"}function Ey(){return{enter:{mdxjsEsm:Iy},exit:{mdxjsEsm:_y,mdxjsEsmData:Ay}}}function Cy(){return{handlers:{mdxjsEsm:Ny}}}function Iy(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function _y(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e);const i=e.estree;n.value=t,i&&(n.data={estree:i})}function Ay(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Ny(e){return e.value||""}function Ty(){return[ey(),yy(),Ey()]}function Py(e){return{extensions:[ty(),wy(e),Cy()]}}var Oy=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],Op=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Ly="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",Lp="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",is={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},rs="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Ry={5:rs,"5module":rs+" export import",6:rs+" const class extends export import super"},Dy=/^in(stanceof)?$/,My=new RegExp("["+Lp+"]"),Fy=new RegExp("["+Lp+Ly+"]");function Gs(e,t){for(var n=65536,i=0;i<t.length;i+=2){if(n+=t[i],n>e)return!1;if(n+=t[i+1],n>=e)return!0}return!1}function hn(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&My.test(String.fromCharCode(e)):t===!1?!1:Gs(e,Op)}function Fn(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Fy.test(String.fromCharCode(e)):t===!1?!1:Gs(e,Op)||Gs(e,Oy)}var Xe=function(t,n){n===void 0&&(n={}),this.label=t,this.keyword=n.keyword,this.beforeExpr=!!n.beforeExpr,this.startsExpr=!!n.startsExpr,this.isLoop=!!n.isLoop,this.isAssign=!!n.isAssign,this.prefix=!!n.prefix,this.postfix=!!n.postfix,this.binop=n.binop||null,this.updateContext=null};function Kt(e,t){return new Xe(e,{beforeExpr:!0,binop:t})}var Ut={beforeExpr:!0},Ot={startsExpr:!0},ll={};function We(e,t){return t===void 0&&(t={}),t.keyword=e,ll[e]=new Xe(e,t)}var N={num:new Xe("num",Ot),regexp:new Xe("regexp",Ot),string:new Xe("string",Ot),name:new Xe("name",Ot),privateId:new Xe("privateId",Ot),eof:new Xe("eof"),bracketL:new Xe("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Xe("]"),braceL:new Xe("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Xe("}"),parenL:new Xe("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Xe(")"),comma:new Xe(",",Ut),semi:new Xe(";",Ut),colon:new Xe(":",Ut),dot:new Xe("."),question:new Xe("?",Ut),questionDot:new Xe("?."),arrow:new Xe("=>",Ut),template:new Xe("template"),invalidTemplate:new Xe("invalidTemplate"),ellipsis:new Xe("...",Ut),backQuote:new Xe("`",Ot),dollarBraceL:new Xe("${",{beforeExpr:!0,startsExpr:!0}),eq:new Xe("=",{beforeExpr:!0,isAssign:!0}),assign:new Xe("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Xe("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Xe("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Kt("||",1),logicalAND:Kt("&&",2),bitwiseOR:Kt("|",3),bitwiseXOR:Kt("^",4),bitwiseAND:Kt("&",5),equality:Kt("==/!=/===/!==",6),relational:Kt("</>/<=/>=",7),bitShift:Kt("<</>>/>>>",8),plusMin:new Xe("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Kt("%",10),star:Kt("*",10),slash:Kt("/",10),starstar:new Xe("**",{beforeExpr:!0}),coalesce:Kt("??",1),_break:We("break"),_case:We("case",Ut),_catch:We("catch"),_continue:We("continue"),_debugger:We("debugger"),_default:We("default",Ut),_do:We("do",{isLoop:!0,beforeExpr:!0}),_else:We("else",Ut),_finally:We("finally"),_for:We("for",{isLoop:!0}),_function:We("function",Ot),_if:We("if"),_return:We("return",Ut),_switch:We("switch"),_throw:We("throw",Ut),_try:We("try"),_var:We("var"),_const:We("const"),_while:We("while",{isLoop:!0}),_with:We("with"),_new:We("new",{beforeExpr:!0,startsExpr:!0}),_this:We("this",Ot),_super:We("super",Ot),_class:We("class",Ot),_extends:We("extends",Ut),_export:We("export"),_import:We("import",Ot),_null:We("null",Ot),_true:We("true",Ot),_false:We("false",Ot),_in:We("in",{beforeExpr:!0,binop:7}),_instanceof:We("instanceof",{beforeExpr:!0,binop:7}),_typeof:We("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:We("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:We("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Dt=/\r\n?|\n|\u2028|\u2029/,jy=new RegExp(Dt.source,"g");function Ei(e){return e===10||e===13||e===8232||e===8233}function Rp(e,t,n){n===void 0&&(n=e.length);for(var i=t;i<n;i++){var r=e.charCodeAt(i);if(Ei(r))return i<n-1&&r===13&&e.charCodeAt(i+1)===10?i+2:i+1}return-1}var Dp=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,kt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Mp=Object.prototype,Vy=Mp.hasOwnProperty,zy=Mp.toString,Ci=Object.hasOwn||(function(e,t){return Vy.call(e,t)}),oc=Array.isArray||(function(e){return zy.call(e)==="[object Array]"}),lc=Object.create(null);function Rn(e){return lc[e]||(lc[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function kn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var By=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Yi=function(t,n){this.line=t,this.column=n};Yi.prototype.offset=function(t){return new Yi(this.line,this.column+t)};var _a=function(t,n,i){this.start=n,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};function Fp(e,t){for(var n=1,i=0;;){var r=Rp(e,i,t);if(r<0)return new Yi(n,t-i);++n,i=r}}var $s={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},uc=!1;function Hy(e){var t={};for(var n in $s)t[n]=e&&Ci(e,n)?e[n]:$s[n];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!uc&&typeof console=="object"&&console.warn&&(uc=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
62
|
+
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),oc(t.onToken)){var i=t.onToken;t.onToken=function(r){return i.push(r)}}return oc(t.onComment)&&(t.onComment=Ky(t,t.onComment)),t}function Ky(e,t){return function(n,i,r,a,o,l){var u={type:n?"Block":"Line",value:i,start:r,end:a};e.locations&&(u.loc=new _a(this,o,l)),e.ranges&&(u.range=[r,a]),t.push(u)}}var Xi=1,Ii=2,ul=4,jp=8,cl=16,Vp=32,Aa=64,zp=128,Qn=256,sr=512,Na=Xi|Ii|Qn;function hl(e,t){return Ii|(e?ul:0)|(t?jp:0)}var ua=0,dl=1,En=2,Bp=3,Hp=4,Kp=5,vt=function(t,n,i){this.options=t=Hy(t),this.sourceFile=t.sourceFile,this.keywords=Rn(Ry[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var r="";t.allowReserved!==!0&&(r=is[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(r+=" await")),this.reservedWords=Rn(r);var a=(r?r+" ":"")+is.strict;this.reservedWordsStrict=Rn(a),this.reservedWordsStrictBind=Rn(a+" "+is.strictBind),this.input=String(n),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
|
|
63
|
+
`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Dt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=N.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Xi),this.regexpState=null,this.privateNameStack=[]},dn={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};vt.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};dn.inFunction.get=function(){return(this.currentVarScope().flags&Ii)>0};dn.inGenerator.get=function(){return(this.currentVarScope().flags&jp)>0};dn.inAsync.get=function(){return(this.currentVarScope().flags&ul)>0};dn.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(Qn|sr))return!1;if(n&Ii)return(n&ul)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};dn.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Aa)>0||this.options.allowSuperOutsideMethod};dn.allowDirectSuper.get=function(){return(this.currentThisScope().flags&zp)>0};dn.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};dn.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(Qn|sr)||n&Ii&&!(n&cl))return!0}return!1};dn.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Qn)>0};vt.extend=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];for(var i=this,r=0;r<t.length;r++)i=t[r](i);return i};vt.parse=function(t,n){return new this(n,t).parse()};vt.parseExpressionAt=function(t,n,i){var r=new this(i,t,n);return r.nextToken(),r.parseExpression()};vt.tokenizer=function(t,n){return new this(n,t)};Object.defineProperties(vt.prototype,dn);var Nt=vt.prototype,Uy=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Nt.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){kt.lastIndex=e,e+=kt.exec(this.input)[0].length;var t=Uy.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){kt.lastIndex=e+t[0].length;var n=kt.exec(this.input),i=n.index+n[0].length,r=this.input.charAt(i);return r===";"||r==="}"||Dt.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||r==="!"&&this.input.charAt(i+1)==="=")}e+=t[0].length,kt.lastIndex=e,e+=kt.exec(this.input)[0].length,this.input[e]===";"&&e++}};Nt.eat=function(e){return this.type===e?(this.next(),!0):!1};Nt.isContextual=function(e){return this.type===N.name&&this.value===e&&!this.containsEsc};Nt.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Nt.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Nt.canInsertSemicolon=function(){return this.type===N.eof||this.type===N.braceR||Dt.test(this.input.slice(this.lastTokEnd,this.start))};Nt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Nt.semicolon=function(){!this.eat(N.semi)&&!this.insertSemicolon()&&this.unexpected()};Nt.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Nt.expect=function(e){this.eat(e)||this.unexpected()};Nt.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Ta=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Nt.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}};Nt.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,i=e.doubleProto;if(!t)return n>=0||i>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")};Nt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};Nt.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var _e=vt.prototype;_e.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==N.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var i=0,r=Object.keys(this.undefinedExports);i<r.length;i+=1){var a=r[i];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var pl={kind:"loop"},Wy={kind:"switch"};_e.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;kt.lastIndex=this.pos;var t=kt.exec(this.input),n=this.pos+t[0].length,i=this.input.charCodeAt(n);if(i===91||i===92)return!0;if(e)return!1;if(i===123||i>55295&&i<56320)return!0;if(hn(i,!0)){for(var r=n+1;Fn(i=this.input.charCodeAt(r),!0);)++r;if(i===92||i>55295&&i<56320)return!0;var a=this.input.slice(n,r);if(!Dy.test(a))return!0}return!1};_e.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;kt.lastIndex=this.pos;var e=kt.exec(this.input),t=this.pos+e[0].length,n;return!Dt.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(Fn(n=this.input.charCodeAt(t+8))||n>55295&&n<56320))};_e.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;kt.lastIndex=this.pos;var n=kt.exec(this.input),i=this.pos+n[0].length;if(Dt.test(this.input.slice(this.pos,i)))return!1;if(e){var r=i+5,a;if(this.input.slice(i,r)!=="using"||r===this.input.length||Fn(a=this.input.charCodeAt(r))||a>55295&&a<56320)return!1;kt.lastIndex=r;var o=kt.exec(this.input);if(o&&Dt.test(this.input.slice(r,r+o[0].length)))return!1}if(t){var l=i+2,u;if(this.input.slice(i,l)==="of"&&(l===this.input.length||!Fn(u=this.input.charCodeAt(l))&&!(u>55295&&u<56320)))return!1}var c=this.input.charCodeAt(i);return hn(c,!0)||c===92};_e.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};_e.isUsing=function(e){return this.isUsingKeyword(!1,e)};_e.parseStatement=function(e,t,n){var i=this.type,r=this.startNode(),a;switch(this.isLet(e)&&(i=N._var,a="let"),i){case N._break:case N._continue:return this.parseBreakContinueStatement(r,i.keyword);case N._debugger:return this.parseDebuggerStatement(r);case N._do:return this.parseDoStatement(r);case N._for:return this.parseForStatement(r);case N._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!e);case N._class:return e&&this.unexpected(),this.parseClass(r,!0);case N._if:return this.parseIfStatement(r);case N._return:return this.parseReturnStatement(r);case N._switch:return this.parseSwitchStatement(r);case N._throw:return this.parseThrowStatement(r);case N._try:return this.parseTryStatement(r);case N._const:case N._var:return a=a||this.value,e&&a!=="var"&&this.unexpected(),this.parseVarStatement(r,a);case N._while:return this.parseWhileStatement(r);case N._with:return this.parseWithStatement(r);case N.braceL:return this.parseBlock(!0,r);case N.semi:return this.parseEmptyStatement(r);case N._export:case N._import:if(this.options.ecmaVersion>10&&i===N._import){kt.lastIndex=this.pos;var o=kt.exec(this.input),l=this.pos+o[0].length,u=this.input.charCodeAt(l);if(u===40||u===46)return this.parseExpressionStatement(r,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===N._import?this.parseImport(r):this.parseExport(r,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!e);var c=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(c)return t&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),c==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(r,!1,c),this.semicolon(),this.finishNode(r,"VariableDeclaration");var p=this.value,d=this.parseExpression();return i===N.name&&d.type==="Identifier"&&this.eat(N.colon)?this.parseLabeledStatement(r,p,d,e):this.parseExpressionStatement(r,d)}};_e.parseBreakContinueStatement=function(e,t){var n=t==="break";this.next(),this.eat(N.semi)||this.insertSemicolon()?e.label=null:this.type!==N.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var r=this.labels[i];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(n||r.kind==="loop")||e.label&&n))break}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")};_e.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};_e.parseDoStatement=function(e){return this.next(),this.labels.push(pl),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(N._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(N.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};_e.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(pl),this.enterScope(0),this.expect(N.parenL),this.type===N.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===N._var||this.type===N._const||n){var i=this.startNode(),r=n?"let":this.value;return this.next(),this.parseVar(i,!0,r),this.finishNode(i,"VariableDeclaration"),this.parseForAfterInit(e,i,t)}var a=this.isContextual("let"),o=!1,l=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(l){var u=this.startNode();return this.next(),l==="await using"&&this.next(),this.parseVar(u,!0,l),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(e,u,t)}var c=this.containsEsc,p=new Ta,d=this.start,m=t>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);return this.type===N._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===N._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(m.start===d&&!c&&m.type==="Identifier"&&m.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),a&&o&&this.raise(m.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(m,!1,p),this.checkLValPattern(m),this.parseForIn(e,m)):(this.checkExpressionErrors(p,!0),t>-1&&this.unexpected(t),this.parseFor(e,m))};_e.parseForAfterInit=function(e,t,n){return(this.type===N._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===N._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))};_e.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Hi|(n?0:Js),!1,t)};_e.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(N._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};_e.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(N.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};_e.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(N.braceL),this.labels.push(Wy),this.enterScope(0);for(var t,n=!1;this.type!==N.braceR;)if(this.type===N._case||this.type===N._default){var i=this.type===N._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(N.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};_e.parseThrowStatement=function(e){return this.next(),Dt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var qy=[];_e.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?Vp:0),this.checkLValPattern(e,t?Hp:En),this.expect(N.parenR),e};_e.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===N._catch){var t=this.startNode();this.next(),this.eat(N.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(N._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};_e.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")};_e.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(pl),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};_e.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};_e.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};_e.parseLabeledStatement=function(e,t,n,i){for(var r=0,a=this.labels;r<a.length;r+=1){var o=a[r];o.name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var l=this.type.isLoop?"loop":this.type===N._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var c=this.labels[u];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=l;else break}return this.labels.push({name:t,kind:l,statementStart:this.start}),e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")};_e.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};_e.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(N.braceL),e&&this.enterScope(0);this.type!==N.braceR;){var i=this.parseStatement(null);t.body.push(i)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};_e.parseFor=function(e,t){return e.init=t,this.expect(N.semi),e.test=this.type===N.semi?null:this.parseExpression(),this.expect(N.semi),e.update=this.type===N.parenR?null:this.parseExpression(),this.expect(N.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};_e.parseForIn=function(e,t){var n=this.type===N._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(N.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")};_e.parseVar=function(e,t,n,i){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(N.eq)?r.init=this.parseMaybeAssign(t):!i&&n==="const"&&!(this.type===N._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!i&&(n==="using"||n==="await using")&&this.options.ecmaVersion>=17&&this.type!==N._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):!i&&r.id.type!=="Identifier"&&!(t&&(this.type===N._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):r.init=null,e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(N.comma))break}return e};_e.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?dl:En,!1)};var Hi=1,Js=2,Up=4;_e.parseFunction=function(e,t,n,i,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===N.star&&t&Js&&this.unexpected(),e.generator=this.eat(N.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&Hi&&(e.id=t&Up&&this.type!==N.name?null:this.parseIdent(),e.id&&!(t&Js)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?dl:En:Bp));var a=this.yieldPos,o=this.awaitPos,l=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(hl(e.async,e.generator)),t&Hi||(e.id=this.type===N.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,r),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=l,this.finishNode(e,t&Hi?"FunctionDeclaration":"FunctionExpression")};_e.parseFunctionParams=function(e){this.expect(N.parenL),e.params=this.parseBindingList(N.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};_e.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.enterClassBody(),r=this.startNode(),a=!1;for(r.body=[],this.expect(N.braceL);this.type!==N.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(r.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(a&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),a=!0):o.key&&o.key.type==="PrivateIdentifier"&&Gy(i,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};_e.parseClassElement=function(e){if(this.eat(N.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),i="",r=!1,a=!1,o="method",l=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(N.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===N.star?l=!0:i="static"}if(n.static=l,!i&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===N.star)&&!this.canInsertSemicolon()?a=!0:i="async"),!i&&(t>=9||!a)&&this.eat(N.star)&&(r=!0),!i&&!a&&!r){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=u:i=u)}if(i?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=i,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===N.parenL||o!=="method"||r||a){var c=!n.static&&ca(n,"constructor"),p=c&&e;c&&o!=="method"&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=c?"constructor":o,this.parseClassMethod(n,r,a,p)}else this.parseClassField(n);return n};_e.isClassElementNameStart=function(){return this.type===N.name||this.type===N.privateId||this.type===N.num||this.type===N.string||this.type===N.bracketL||this.type.keyword};_e.parseClassElementName=function(e){this.type===N.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};_e.parseClassMethod=function(e,t,n,i){var r=e.key;e.kind==="constructor"?(t&&this.raise(r.start,"Constructor can't be a generator"),n&&this.raise(r.start,"Constructor can't be an async method")):e.static&&ca(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,n,i);return e.kind==="get"&&a.params.length!==0&&this.raiseRecoverable(a.start,"getter should have no params"),e.kind==="set"&&a.params.length!==1&&this.raiseRecoverable(a.start,"setter should have exactly one param"),e.kind==="set"&&a.params[0].type==="RestElement"&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};_e.parseClassField=function(e){return ca(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&ca(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(N.eq)?(this.enterScope(sr|Aa),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};_e.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Qn|Aa);this.type!==N.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};_e.parseClassId=function(e,t){this.type===N.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,En,!1)):(t===!0&&this.unexpected(),e.id=null)};_e.parseClassSuper=function(e){e.superClass=this.eat(N._extends)?this.parseExprSubscripts(null,!1):null};_e.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};_e.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var i=this.privateNameStack.length,r=i===0?null:this.privateNameStack[i-1],a=0;a<n.length;++a){var o=n[a];Ci(t,o.name)||(r?r.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}};function Gy(e,t){var n=t.key.name,i=e[n],r="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(r=(t.static?"s":"i")+t.kind),i==="iget"&&r==="iset"||i==="iset"&&r==="iget"||i==="sget"&&r==="sset"||i==="sset"&&r==="sget"?(e[n]="true",!1):i?!0:(e[n]=r,!1)}function ca(e,t){var n=e.computed,i=e.key;return!n&&(i.type==="Identifier"&&i.name===t||i.type==="Literal"&&i.value===t)}_e.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==N.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};_e.parseExport=function(e,t){if(this.next(),this.eat(N.star))return this.parseExportAllDeclaration(e,t);if(this.eat(N._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==N.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,i=e.specifiers;n<i.length;n+=1){var r=i[n];this.checkUnreserved(r.local),this.checkLocalExport(r.local),r.local.type==="Literal"&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};_e.parseExportDeclaration=function(e){return this.parseStatement(null)};_e.parseExportDefaultDeclaration=function(){var e;if(this.type===N._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,Hi|Up,!1,e)}else if(this.type===N._class){var n=this.startNode();return this.parseClass(n,"nullableID")}else{var i=this.parseMaybeAssign();return this.semicolon(),i}};_e.checkExport=function(e,t,n){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Ci(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)};_e.checkPatternExport=function(e,t){var n=t.type;if(n==="Identifier")this.checkExport(e,t,t.start);else if(n==="ObjectPattern")for(var i=0,r=t.properties;i<r.length;i+=1){var a=r[i];this.checkPatternExport(e,a)}else if(n==="ArrayPattern")for(var o=0,l=t.elements;o<l.length;o+=1){var u=l[o];u&&this.checkPatternExport(e,u)}else n==="Property"?this.checkPatternExport(e,t.value):n==="AssignmentPattern"?this.checkPatternExport(e,t.left):n==="RestElement"&&this.checkPatternExport(e,t.argument)};_e.checkVariableExport=function(e,t){if(e)for(var n=0,i=t;n<i.length;n+=1){var r=i[n];this.checkPatternExport(e,r.id)}};_e.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};_e.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};_e.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(N.braceL);!this.eat(N.braceR);){if(n)n=!1;else if(this.expect(N.comma),this.afterTrailingComma(N.braceR))break;t.push(this.parseExportSpecifier(e))}return t};_e.parseImport=function(e){return this.next(),this.type===N.string?(e.specifiers=qy,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===N.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};_e.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,En),this.finishNode(e,"ImportSpecifier")};_e.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,En),this.finishNode(e,"ImportDefaultSpecifier")};_e.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,En),this.finishNode(e,"ImportNamespaceSpecifier")};_e.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===N.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(N.comma)))return e;if(this.type===N.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(N.braceL);!this.eat(N.braceR);){if(t)t=!1;else if(this.expect(N.comma),this.afterTrailingComma(N.braceR))break;e.push(this.parseImportSpecifier())}return e};_e.parseWithClause=function(){var e=[];if(!this.eat(N._with))return e;this.expect(N.braceL);for(var t={},n=!0;!this.eat(N.braceR);){if(n)n=!1;else if(this.expect(N.comma),this.afterTrailingComma(N.braceR))break;var i=this.parseImportAttribute(),r=i.key.type==="Identifier"?i.key.name:i.key.value;Ci(t,r)&&this.raiseRecoverable(i.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(i)}return e};_e.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===N.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(N.colon),this.type!==N.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};_e.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===N.string){var e=this.parseLiteral(this.value);return By.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};_e.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};_e.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var Jt=vt.prototype;Jt.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var i=0,r=e.properties;i<r.length;i+=1){var a=r[i];this.toAssignable(a,t),a.type==="RestElement"&&(a.argument.type==="ArrayPattern"||a.argument.type==="ObjectPattern")&&this.raise(a.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e};Jt.toAssignableList=function(e,t){for(var n=e.length,i=0;i<n;i++){var r=e[i];r&&this.toAssignable(r,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type==="RestElement"&&a.argument.type!=="Identifier"&&this.unexpected(a.argument.start)}return e};Jt.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};Jt.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==N.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};Jt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case N.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(N.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case N.braceL:return this.parseObj(!0)}return this.parseIdent()};Jt.parseBindingList=function(e,t,n,i){for(var r=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(N.comma),t&&this.type===N.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===N.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),r.push(o),this.type===N.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else r.push(this.parseAssignableListItem(i))}return r};Jt.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};Jt.parseBindingListItem=function(e){return e};Jt.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(N.eq))return n;var i=this.startNodeAt(e,t);return i.left=n,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")};Jt.checkLValSimple=function(e,t,n){t===void 0&&(t=ua);var i=t!==ua;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(i?"Binding ":"Assigning to ")+e.name+" in strict mode"),i&&(t===En&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(Ci(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),t!==Kp&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":i&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return i&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(i?"Binding":"Assigning to")+" rvalue")}};Jt.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=ua),e.type){case"ObjectPattern":for(var i=0,r=e.properties;i<r.length;i+=1){var a=r[i];this.checkLValInnerPattern(a,t,n)}break;case"ArrayPattern":for(var o=0,l=e.elements;o<l.length;o+=1){var u=l[o];u&&this.checkLValInnerPattern(u,t,n)}break;default:this.checkLValSimple(e,t,n)}};Jt.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=ua),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Xt=function(t,n,i,r,a){this.token=t,this.isExpr=!!n,this.preserveSpace=!!i,this.override=r,this.generator=!!a},lt={b_stat:new Xt("{",!1),b_expr:new Xt("{",!0),b_tmpl:new Xt("${",!1),p_stat:new Xt("(",!1),p_expr:new Xt("(",!0),q_tmpl:new Xt("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Xt("function",!1),f_expr:new Xt("function",!0),f_expr_gen:new Xt("function",!0,!1,null,!0),f_gen:new Xt("function",!1,!1,null,!0)},_i=vt.prototype;_i.initialContext=function(){return[lt.b_stat]};_i.curContext=function(){return this.context[this.context.length-1]};_i.braceIsBlock=function(e){var t=this.curContext();return t===lt.f_expr||t===lt.f_stat?!0:e===N.colon&&(t===lt.b_stat||t===lt.b_expr)?!t.isExpr:e===N._return||e===N.name&&this.exprAllowed?Dt.test(this.input.slice(this.lastTokEnd,this.start)):e===N._else||e===N.semi||e===N.eof||e===N.parenR||e===N.arrow?!0:e===N.braceL?t===lt.b_stat:e===N._var||e===N._const||e===N.name?!1:!this.exprAllowed};_i.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};_i.updateContext=function(e){var t,n=this.type;n.keyword&&e===N.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr};_i.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};N.parenR.updateContext=N.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===lt.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};N.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?lt.b_stat:lt.b_expr),this.exprAllowed=!0};N.dollarBraceL.updateContext=function(){this.context.push(lt.b_tmpl),this.exprAllowed=!0};N.parenL.updateContext=function(e){var t=e===N._if||e===N._for||e===N._with||e===N._while;this.context.push(t?lt.p_stat:lt.p_expr),this.exprAllowed=!0};N.incDec.updateContext=function(){};N._function.updateContext=N._class.updateContext=function(e){e.beforeExpr&&e!==N._else&&!(e===N.semi&&this.curContext()!==lt.p_stat)&&!(e===N._return&&Dt.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===N.colon||e===N.braceL)&&this.curContext()===lt.b_stat)?this.context.push(lt.f_expr):this.context.push(lt.f_stat),this.exprAllowed=!1};N.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};N.backQuote.updateContext=function(){this.curContext()===lt.q_tmpl?this.context.pop():this.context.push(lt.q_tmpl),this.exprAllowed=!1};N.star.updateContext=function(e){if(e===N._function){var t=this.context.length-1;this.context[t]===lt.f_expr?this.context[t]=lt.f_expr_gen:this.context[t]=lt.f_gen}this.exprAllowed=!0};N.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==N.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Me=vt.prototype;Me.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var i=e.key,r;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){r==="__proto__"&&a==="init"&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}r="$"+r;var o=t[r];if(o){var l;a==="init"?l=this.strict&&o.init||o.get||o.set:l=o.init||o[a],l&&this.raiseRecoverable(i.start,"Redefinition of property")}else o=t[r]={init:!1,get:!1,set:!1};o[a]=!0}};Me.parseExpression=function(e,t){var n=this.start,i=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===N.comma){var a=this.startNodeAt(n,i);for(a.expressions=[r];this.eat(N.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return r};Me.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var i=!1,r=-1,a=-1,o=-1;t?(r=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Ta,i=!0);var l=this.start,u=this.startLoc;(this.type===N.parenL||this.type===N.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var c=this.parseMaybeConditional(e,t);if(n&&(c=n.call(this,c,l,u)),this.type.isAssign){var p=this.startNodeAt(l,u);return p.operator=this.value,this.type===N.eq&&(c=this.toAssignable(c,!1,t)),i||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===N.eq?this.checkLValPattern(c):this.checkLValSimple(c),p.left=c,this.next(),p.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(p,"AssignmentExpression")}else i&&this.checkExpressionErrors(t,!0);return r>-1&&(t.parenthesizedAssign=r),a>-1&&(t.trailingComma=a),c};Me.parseMaybeConditional=function(e,t){var n=this.start,i=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(this.eat(N.question)){var a=this.startNodeAt(n,i);return a.test=r,a.consequent=this.parseMaybeAssign(),this.expect(N.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return r};Me.parseExprOps=function(e,t){var n=this.start,i=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||r.start===n&&r.type==="ArrowFunctionExpression"?r:this.parseExprOp(r,n,i,-1,e)};Me.parseExprOp=function(e,t,n,i,r){var a=this.type.binop;if(a!=null&&(!r||this.type!==N._in)&&a>i){var o=this.type===N.logicalOR||this.type===N.logicalAND,l=this.type===N.coalesce;l&&(a=N.logicalAND.binop);var u=this.value;this.next();var c=this.start,p=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),c,p,a,r),m=this.buildBinary(t,n,e,d,u,o||l);return(o&&this.type===N.coalesce||l&&(this.type===N.logicalOR||this.type===N.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(m,t,n,i,r)}return e};Me.buildBinary=function(e,t,n,i,r,a){i.type==="PrivateIdentifier"&&this.raise(i.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=n,o.operator=r,o.right=i,this.finishNode(o,a?"LogicalExpression":"BinaryExpression")};Me.parseMaybeUnary=function(e,t,n,i){var r=this.start,a=this.startLoc,o;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(i),t=!0;else if(this.type.prefix){var l=this.startNode(),u=this.type===N.incDec;l.operator=this.value,l.prefix=!0,this.next(),l.argument=this.parseMaybeUnary(null,!0,u,i),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(l.argument):this.strict&&l.operator==="delete"&&Wp(l.argument)?this.raiseRecoverable(l.start,"Deleting local variable in strict mode"):l.operator==="delete"&&Ys(l.argument)?this.raiseRecoverable(l.start,"Private fields can not be deleted"):t=!0,o=this.finishNode(l,u?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===N.privateId)(i||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==N._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,i),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(r,a);c.operator=this.value,c.prefix=!1,c.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(c,"UpdateExpression")}}if(!n&&this.eat(N.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(r,a,o,this.parseMaybeUnary(null,!1,!1,i),"**",!1);else return o};function Wp(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Wp(e.expression)}function Ys(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&Ys(e.expression)||e.type==="ParenthesizedExpression"&&Ys(e.expression)}Me.parseExprSubscripts=function(e,t){var n=this.start,i=this.startLoc,r=this.parseExprAtom(e,t);if(r.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return r;var a=this.parseSubscripts(r,n,i,!1,t);return e&&a.type==="MemberExpression"&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a};Me.parseSubscripts=function(e,t,n,i,r){for(var a=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var l=this.parseSubscript(e,t,n,i,a,o,r);if(l.optional&&(o=!0),l===e||l.type==="ArrowFunctionExpression"){if(o){var u=this.startNodeAt(t,n);u.expression=l,l=this.finishNode(u,"ChainExpression")}return l}e=l}};Me.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(N.arrow)};Me.parseSubscriptAsyncArrow=function(e,t,n,i){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,i)};Me.parseSubscript=function(e,t,n,i,r,a,o){var l=this.options.ecmaVersion>=11,u=l&&this.eat(N.questionDot);i&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(N.bracketL);if(c||u&&this.type!==N.parenL&&this.type!==N.backQuote||this.eat(N.dot)){var p=this.startNodeAt(t,n);p.object=e,c?(p.property=this.parseExpression(),this.expect(N.bracketR)):this.type===N.privateId&&e.type!=="Super"?p.property=this.parsePrivateIdent():p.property=this.parseIdent(this.options.allowReserved!=="never"),p.computed=!!c,l&&(p.optional=u),e=this.finishNode(p,"MemberExpression")}else if(!i&&this.eat(N.parenL)){var d=new Ta,m=this.yieldPos,g=this.awaitPos,_=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var x=this.parseExprList(N.parenR,this.options.ecmaVersion>=8,!1,d);if(r&&!u&&this.shouldParseAsyncArrow())return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=m,this.awaitPos=g,this.awaitIdentPos=_,this.parseSubscriptAsyncArrow(t,n,x,o);this.checkExpressionErrors(d,!0),this.yieldPos=m||this.yieldPos,this.awaitPos=g||this.awaitPos,this.awaitIdentPos=_||this.awaitIdentPos;var E=this.startNodeAt(t,n);E.callee=e,E.arguments=x,l&&(E.optional=u),e=this.finishNode(E,"CallExpression")}else if(this.type===N.backQuote){(u||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var C=this.startNodeAt(t,n);C.tag=e,C.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(C,"TaggedTemplateExpression")}return e};Me.parseExprAtom=function(e,t,n){this.type===N.slash&&this.readRegexp();var i,r=this.potentialArrowAt===this.start;switch(this.type){case N._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type===N.parenL&&!this.allowDirectSuper&&this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==N.dot&&this.type!==N.bracketL&&this.type!==N.parenL&&this.unexpected(),this.finishNode(i,"Super");case N._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case N.name:var a=this.start,o=this.startLoc,l=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!l&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(N._function))return this.overrideContext(lt.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(N.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[u],!1,t);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===N.name&&!l&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(N.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[u],!0,t)}return u;case N.regexp:var c=this.value;return i=this.parseLiteral(c.value),i.regex={pattern:c.pattern,flags:c.flags},i;case N.num:case N.string:return this.parseLiteral(this.value);case N._null:case N._true:case N._false:return i=this.startNode(),i.value=this.type===N._null?null:this.type===N._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case N.parenL:var p=this.start,d=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),d;case N.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(N.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case N.braceL:return this.overrideContext(lt.b_expr),this.parseObj(!1,e);case N._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case N._class:return this.parseClass(this.startNode(),!1);case N._new:return this.parseNew();case N.backQuote:return this.parseTemplate();case N._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}};Me.parseExprAtomDefault=function(){this.unexpected()};Me.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===N.parenL&&!e)return this.parseDynamicImport(t);if(this.type===N.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};Me.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(N.parenR)?e.options=null:(this.expect(N.comma),this.afterTrailingComma(N.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(N.parenR)||(this.expect(N.comma),this.afterTrailingComma(N.parenR)||this.unexpected())));else if(!this.eat(N.parenR)){var t=this.start;this.eat(N.comma)&&this.eat(N.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};Me.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};Me.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};Me.parseParenExpression=function(){this.expect(N.parenL);var e=this.parseExpression();return this.expect(N.parenR),e};Me.shouldParseArrow=function(e){return!this.canInsertSemicolon()};Me.parseParenAndDistinguishExpression=function(e,t){var n=this.start,i=this.startLoc,r,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,l=this.startLoc,u=[],c=!0,p=!1,d=new Ta,m=this.yieldPos,g=this.awaitPos,_;for(this.yieldPos=0,this.awaitPos=0;this.type!==N.parenR;)if(c?c=!1:this.expect(N.comma),a&&this.afterTrailingComma(N.parenR,!0)){p=!0;break}else if(this.type===N.ellipsis){_=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===N.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else u.push(this.parseMaybeAssign(!1,d,this.parseParenItem));var x=this.lastTokEnd,E=this.lastTokEndLoc;if(this.expect(N.parenR),e&&this.shouldParseArrow(u)&&this.eat(N.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=m,this.awaitPos=g,this.parseParenArrowList(n,i,u,t);(!u.length||p)&&this.unexpected(this.lastTokStart),_&&this.unexpected(_),this.checkExpressionErrors(d,!0),this.yieldPos=m||this.yieldPos,this.awaitPos=g||this.awaitPos,u.length>1?(r=this.startNodeAt(o,l),r.expressions=u,this.finishNodeAt(r,"SequenceExpression",x,E)):r=u[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var C=this.startNodeAt(n,i);return C.expression=r,this.finishNode(C,"ParenthesizedExpression")}else return r};Me.parseParenItem=function(e){return e};Me.parseParenArrowList=function(e,t,n,i){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,i)};var $y=[];Me.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===N.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var i=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),i,r,!0,!1),this.eat(N.parenL)?e.arguments=this.parseExprList(N.parenR,this.options.ecmaVersion>=8,!1):e.arguments=$y,this.finishNode(e,"NewExpression")};Me.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===N.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,`
|
|
64
|
+
`),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
65
|
+
`),cooked:this.value},this.next(),n.tail=this.type===N.backQuote,this.finishNode(n,"TemplateElement")};Me.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(n.quasis=[i];!i.tail;)this.type===N.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(N.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(N.braceR),n.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")};Me.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===N.name||this.type===N.num||this.type===N.string||this.type===N.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===N.star)&&!Dt.test(this.input.slice(this.lastTokEnd,this.start))};Me.parseObj=function(e,t){var n=this.startNode(),i=!0,r={};for(n.properties=[],this.next();!this.eat(N.braceR);){if(i)i=!1;else if(this.expect(N.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(N.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,r,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")};Me.parseProperty=function(e,t){var n=this.startNode(),i,r,a,o;if(this.options.ecmaVersion>=9&&this.eat(N.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===N.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(n,"RestElement")):(n.argument=this.parseMaybeAssign(!1,t),this.type===N.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,"SpreadElement"));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(i=this.eat(N.star)));var l=this.containsEsc;return this.parsePropertyName(n),!e&&!l&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(n)?(r=!0,i=this.options.ecmaVersion>=9&&this.eat(N.star),this.parsePropertyName(n)):r=!1,this.parsePropertyValue(n,e,i,r,a,o,t,l),this.finishNode(n,"Property")};Me.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=e.kind==="get"?0:1;if(e.value.params.length!==n){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};Me.parsePropertyValue=function(e,t,n,i,r,a,o,l){(n||i)&&this.type===N.colon&&this.unexpected(),this.eat(N.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===N.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,i),e.kind="init"):!t&&!l&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==N.comma&&this.type!==N.braceR&&this.type!==N.eq?((n||i)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((n||i)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r),t?e.value=this.parseMaybeDefault(r,a,this.copyNode(e.key)):this.type===N.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};Me.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(N.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(N.bracketR),e.key;e.computed=!1}return e.key=this.type===N.num||this.type===N.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};Me.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};Me.parseMethod=function(e,t,n){var i=this.startNode(),r=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(hl(t,i.generator)|Aa|(n?zp:0)),this.expect(N.parenL),i.params=this.parseBindingList(N.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(i,"FunctionExpression")};Me.parseArrowExpression=function(e,t,n,i){var r=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(hl(n,!1)|cl),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,i),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};Me.parseFunctionBody=function(e,t,n,i){var r=t&&this.type!==N.braceL,a=this.strict,o=!1;if(r)e.body=this.parseMaybeAssign(i),e.expression=!0,this.checkParams(e,!1);else{var l=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||l)&&(o=this.strictDirective(this.end),o&&l&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var u=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Kp),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()};Me.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){var i=n[t];if(i.type!=="Identifier")return!1}return!0};Me.checkParams=function(e,t){for(var n=Object.create(null),i=0,r=e.params;i<r.length;i+=1){var a=r[i];this.checkLValInnerPattern(a,dl,t?null:n)}};Me.parseExprList=function(e,t,n,i){for(var r=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(N.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===N.comma?o=null:this.type===N.ellipsis?(o=this.parseSpread(i),i&&this.type===N.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):o=this.parseMaybeAssign(!1,i),r.push(o)}return r};Me.checkUnreserved=function(e){var t=e.start,n=e.end,i=e.name;if(this.inGenerator&&i==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Na)&&i==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(i==="arguments"||i==="await")&&this.raise(t,"Cannot use "+i+" in class static initialization block"),this.keywords.test(i)&&this.raise(t,"Unexpected keyword '"+i+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf("\\")!==-1)){var r=this.strict?this.reservedWordsStrict:this.reservedWords;r.test(i)&&(!this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+i+"' is reserved"))}};Me.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};Me.parseIdentNode=function(){var e=this.startNode();return this.type===N.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=N.name):this.unexpected(),e};Me.parsePrivateIdent=function(){var e=this.startNode();return this.type===N.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};Me.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===N.semi||this.canInsertSemicolon()||this.type!==N.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(N.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};Me.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var ha=vt.prototype;ha.raise=function(e,t){var n=Fp(this.input,e);t+=" ("+n.line+":"+n.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var i=new SyntaxError(t);throw i.pos=e,i.loc=n,i.raisedAt=this.pos,i};ha.raiseRecoverable=ha.raise;ha.curPosition=function(){if(this.options.locations)return new Yi(this.curLine,this.pos-this.lineStart)};var Kn=vt.prototype,Jy=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Kn.enterScope=function(e){this.scopeStack.push(new Jy(e))};Kn.exitScope=function(){this.scopeStack.pop()};Kn.treatFunctionsAsVarInScope=function(e){return e.flags&Ii||!this.inModule&&e.flags&Xi};Kn.declareName=function(e,t,n){var i=!1;if(t===En){var r=this.currentScope();i=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&r.flags&Xi&&delete this.undefinedExports[e]}else if(t===Hp){var a=this.currentScope();a.lexical.push(e)}else if(t===Bp){var o=this.currentScope();this.treatFunctionsAsVar?i=o.lexical.indexOf(e)>-1:i=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var l=this.scopeStack.length-1;l>=0;--l){var u=this.scopeStack[l];if(u.lexical.indexOf(e)>-1&&!(u.flags&Vp&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){i=!0;break}if(u.var.push(e),this.inModule&&u.flags&Xi&&delete this.undefinedExports[e],u.flags&Na)break}i&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")};Kn.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};Kn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Kn.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Na|sr|Qn))return t}};Kn.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Na|sr|Qn)&&!(t.flags&cl))return t}};var Pa=function(t,n,i){this.type="",this.start=n,this.end=0,t.options.locations&&(this.loc=new _a(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[n,0])},or=vt.prototype;or.startNode=function(){return new Pa(this,this.start,this.startLoc)};or.startNodeAt=function(e,t){return new Pa(this,e,t)};function qp(e,t,n,i){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=n),e}or.finishNode=function(e,t){return qp.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};or.finishNodeAt=function(e,t,n,i){return qp.call(this,e,t,n,i)};or.copyNode=function(e){var t=new Pa(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Yy="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",Gp="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",$p=Gp+" Extended_Pictographic",Jp=$p,Yp=Jp+" EBase EComp EMod EPres ExtPict",Xp=Yp,Xy=Xp,Zy={9:Gp,10:$p,11:Jp,12:Yp,13:Xp,14:Xy},Qy="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",ew={9:"",10:"",11:"",12:"",13:"",14:Qy},cc="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Zp="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Qp=Zp+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ef=Qp+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",tf=ef+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",nf=tf+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",tw=nf+" "+Yy,nw={9:Zp,10:Qp,11:ef,12:tf,13:nf,14:tw},rf={};function iw(e){var t=rf[e]={binary:Rn(Zy[e]+" "+cc),binaryOfStrings:Rn(ew[e]),nonBinary:{General_Category:Rn(cc),Script:Rn(nw[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var as=0,hc=[9,10,11,12,13,14];as<hc.length;as+=1){var rw=hc[as];iw(rw)}var Ie=vt.prototype,da=function(t,n){this.parent=t,this.base=n||this};da.prototype.separatedFrom=function(t){for(var n=this;n;n=n.parent)for(var i=t;i;i=i.parent)if(n.base===i.base&&n!==i)return!0;return!1};da.prototype.sibling=function(){return new da(this.parent,this.base)};var pn=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=rf[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};pn.prototype.reset=function(t,n,i){var r=i.indexOf("v")!==-1,a=i.indexOf("u")!==-1;this.start=t|0,this.source=n+"",this.flags=i,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=a&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=a&&this.parser.options.ecmaVersion>=9)};pn.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};pn.prototype.at=function(t,n){n===void 0&&(n=!1);var i=this.source,r=i.length;if(t>=r)return-1;var a=i.charCodeAt(t);if(!(n||this.switchU)||a<=55295||a>=57344||t+1>=r)return a;var o=i.charCodeAt(t+1);return o>=56320&&o<=57343?(a<<10)+o-56613888:a};pn.prototype.nextIndex=function(t,n){n===void 0&&(n=!1);var i=this.source,r=i.length;if(t>=r)return r;var a=i.charCodeAt(t),o;return!(n||this.switchU)||a<=55295||a>=57344||t+1>=r||(o=i.charCodeAt(t+1))<56320||o>57343?t+1:t+2};pn.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};pn.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};pn.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};pn.prototype.eat=function(t,n){return n===void 0&&(n=!1),this.current(n)===t?(this.advance(n),!0):!1};pn.prototype.eatChars=function(t,n){n===void 0&&(n=!1);for(var i=this.pos,r=0,a=t;r<a.length;r+=1){var o=a[r],l=this.at(i,n);if(l===-1||l!==o)return!1;i=this.nextIndex(i,n)}return this.pos=i,!0};Ie.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,i=!1,r=!1,a=0;a<n.length;a++){var o=n.charAt(a);t.indexOf(o)===-1&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(o,a+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),o==="u"&&(i=!0),o==="v"&&(r=!0)}this.options.ecmaVersion>=15&&i&&r&&this.raise(e.start,"Invalid regular expression flag")};function aw(e){for(var t in e)return!0;return!1}Ie.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&aw(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};Ie.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var i=n[t];e.groupNames[i]||e.raise("Invalid named capture referenced")}};Ie.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new da(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};Ie.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};Ie.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};Ie.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1};Ie.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};Ie.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};Ie.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var i=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return r!==-1&&r<i&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1};Ie.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};Ie.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};Ie.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),i=e.eat(45);if(n||i){for(var r=0;r<n.length;r++){var a=n.charAt(r);n.indexOf(a,r+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(i){var o=this.regexp_eatModifiers(e);!n&&!o&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var l=0;l<o.length;l++){var u=o.charAt(l);(o.indexOf(u,l+1)>-1||n.indexOf(u)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};Ie.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};Ie.regexp_eatModifiers=function(e){for(var t="",n=0;(n=e.current())!==-1&&sw(n);)t+=kn(n),e.advance();return t};function sw(e){return e===105||e===109||e===115}Ie.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};Ie.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};Ie.regexp_eatSyntaxCharacter=function(e){var t=e.current();return af(t)?(e.lastIntValue=t,e.advance(),!0):!1};function af(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}Ie.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!af(n);)e.advance();return e.pos!==t};Ie.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};Ie.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n)if(t)for(var i=0,r=n;i<r.length;i+=1){var a=r[i];a.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};Ie.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};Ie.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=kn(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=kn(e.lastIntValue);return!0}return!1};Ie.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return e.advance(n),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),ow(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function ow(e){return hn(e,!0)||e===36||e===95}Ie.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return e.advance(n),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),lw(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function lw(e){return Fn(e,!0)||e===36||e===95||e===8204||e===8205}Ie.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};Ie.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1};Ie.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};Ie.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};Ie.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};Ie.regexp_eatZero=function(e){return e.current()===48&&!Oa(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};Ie.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};Ie.regexp_eatControlLetter=function(e){var t=e.current();return sf(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function sf(e){return e>=65&&e<=90||e>=97&&e<=122}Ie.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(i&&r>=55296&&r<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(r-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=r}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&uw(e.lastIntValue))return!0;i&&e.raise("Invalid unicode escape"),e.pos=n}return!1};function uw(e){return e>=0&&e<=1114111}Ie.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};Ie.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var of=0,Sn=1,$t=2;Ie.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(cw(t))return e.lastIntValue=-1,e.advance(),Sn;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var i;if(e.eat(123)&&(i=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&i===$t&&e.raise("Invalid property name"),i;e.raise("Invalid property name")}return of};function cw(e){return e===100||e===68||e===115||e===83||e===119||e===87}Ie.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,i),Sn}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return of};Ie.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){Ci(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")};Ie.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Sn;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return $t;e.raise("Invalid property name")};Ie.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";lf(t=e.current());)e.lastStringValue+=kn(t),e.advance();return e.lastStringValue!==""};function lf(e){return sf(e)||e===95}Ie.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";hw(t=e.current());)e.lastStringValue+=kn(t),e.advance();return e.lastStringValue!==""};function hw(e){return lf(e)||Oa(e)}Ie.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};Ie.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&n===$t&&e.raise("Negated character class may contain strings"),!0}return!1};Ie.regexp_classContents=function(e){return e.current()===93?Sn:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Sn)};Ie.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise("Invalid character class"),t!==-1&&n!==-1&&t>n&&e.raise("Range out of order in character class")}}};Ie.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||hf(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return i!==93?(e.lastIntValue=i,e.advance(),!0):!1};Ie.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};Ie.regexp_classSetExpression=function(e){var t=Sn,n;if(!this.regexp_eatClassSetRange(e))if(n=this.regexp_eatClassSetOperand(e)){n===$t&&(t=$t);for(var i=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))){n!==$t&&(t=Sn);continue}e.raise("Invalid character in character class")}if(i!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(i!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e),!n)return t;n===$t&&(t=$t)}};Ie.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;return n!==-1&&i!==-1&&n>i&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};Ie.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Sn:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};Ie.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),i=this.regexp_classContents(e);if(e.eat(93))return n&&i===$t&&e.raise("Negated character class may contain strings"),i;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null};Ie.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null};Ie.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===$t&&(t=$t);return t};Ie.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Sn:$t};Ie.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var n=e.current();return n<0||n===e.lookahead()&&dw(n)||pw(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function dw(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function pw(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}Ie.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return fw(t)?(e.lastIntValue=t,e.advance(),!0):!1};function fw(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}Ie.regexp_eatClassControlLetter=function(e){var t=e.current();return Oa(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};Ie.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};Ie.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Oa(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function Oa(e){return e>=48&&e<=57}Ie.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;uf(n=e.current());)e.lastIntValue=16*e.lastIntValue+cf(n),e.advance();return e.pos!==t};function uf(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function cf(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}Ie.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+n*8+e.lastIntValue:e.lastIntValue=t*8+n}else e.lastIntValue=t;return!0}return!1};Ie.regexp_eatOctalDigit=function(e){var t=e.current();return hf(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function hf(e){return e>=48&&e<=55}Ie.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var i=0;i<t;++i){var r=e.current();if(!uf(r))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+cf(r),e.advance()}return!0};var fl=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new _a(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Ue=vt.prototype;Ue.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new fl(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};Ue.getToken=function(){return this.next(),new fl(this)};typeof Symbol<"u"&&(Ue[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===N.eof,value:t}}}});Ue.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(N.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};Ue.readToken=function(e){return hn(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};Ue.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888};Ue.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(n===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var i=void 0,r=t;(i=Rp(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=i;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())};Ue.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Ei(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())};Ue.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Dp.test(String.fromCharCode(e)))++this.pos;else break e}}};Ue.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)};Ue.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(N.ellipsis)):(++this.pos,this.finishToken(N.dot))};Ue.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(N.assign,2):this.finishOp(N.slash,1)};Ue.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,i=e===42?N.star:N.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,i=N.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(N.assign,n+1):this.finishOp(i,n)};Ue.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(N.assign,3)}return this.finishOp(e===124?N.logicalOR:N.logicalAND,2)}return t===61?this.finishOp(N.assign,2):this.finishOp(e===124?N.bitwiseOR:N.bitwiseAND,1)};Ue.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(N.assign,2):this.finishOp(N.bitwiseXOR,1)};Ue.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Dt.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(N.incDec,2):t===61?this.finishOp(N.assign,2):this.finishOp(N.plusMin,1)};Ue.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(N.assign,n+1):this.finishOp(N.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(N.relational,n))};Ue.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(N.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(N.arrow)):this.finishOp(e===61?N.eq:N.prefix,1)};Ue.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(N.questionDot,2)}if(t===63){if(e>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(N.assign,3)}return this.finishOp(N.coalesce,2)}}return this.finishOp(N.question,1)};Ue.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),hn(t,!0)||t===92))return this.finishToken(N.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+kn(t)+"'")};Ue.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(N.parenL);case 41:return++this.pos,this.finishToken(N.parenR);case 59:return++this.pos,this.finishToken(N.semi);case 44:return++this.pos,this.finishToken(N.comma);case 91:return++this.pos,this.finishToken(N.bracketL);case 93:return++this.pos,this.finishToken(N.bracketR);case 123:return++this.pos,this.finishToken(N.braceL);case 125:return++this.pos,this.finishToken(N.braceR);case 58:return++this.pos,this.finishToken(N.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(N.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(N.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+kn(e)+"'")};Ue.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)};Ue.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(Dt.test(i)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if(i==="[")t=!0;else if(i==="]"&&t)t=!1;else if(i==="/"&&!t)break;e=i==="\\"}++this.pos}var r=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var l=this.regexpState||(this.regexpState=new pn(this));l.reset(n,r,o),this.validateRegExpFlags(l),this.validateRegExpPattern(l);var u=null;try{u=new RegExp(r,o)}catch{}return this.finishToken(N.regexp,{pattern:r,flags:o,value:u})};Ue.readInt=function(e,t,n){for(var i=this.options.ecmaVersion>=12&&t===void 0,r=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,l=0,u=0,c=t??1/0;u<c;++u,++this.pos){var p=this.input.charCodeAt(this.pos),d=void 0;if(i&&p===95){r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),l===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),u===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),l=p;continue}if(p>=97?d=p-97+10:p>=65?d=p-65+10:p>=48&&p<=57?d=p-48:d=1/0,d>=e)break;l=p,o=o*e+d}return i&&l===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||t!=null&&this.pos-a!==t?null:o};function gw(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function df(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}Ue.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=df(this.input.slice(t,this.pos)),++this.pos):hn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(N.num,n)};Ue.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&i===110){var r=df(this.input.slice(t,this.pos));return++this.pos,hn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(N.num,r)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),i===46&&!n&&(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),(i===69||i===101)&&!n&&(i=this.input.charCodeAt(++this.pos),(i===43||i===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),hn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=gw(this.input.slice(t,this.pos),n);return this.finishToken(N.num,a)};Ue.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,"Code point out of bounds")}else t=this.readHexChar(4);return t};Ue.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;i===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):i===8232||i===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Ei(i)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(N.string,t)};var pf={};Ue.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===pf)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};Ue.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw pf;this.raise(e,t)};Ue.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===N.template||this.type===N.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(N.dollarBraceL)):(++this.pos,this.finishToken(N.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(N.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Ei(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
66
|
+
`;break;default:e+=String.fromCharCode(n);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};Ue.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(N.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
67
|
+
`&&++this.pos;case`
|
|
68
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};Ue.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
69
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return kn(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(i,8);return r>255&&(i=i.slice(0,-1),r=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),(i!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return Ei(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};Ue.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,"Bad character escape sequence"),n};Ue.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(Fn(r,i))this.pos+=r<=65535?1:2;else if(r===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?hn:Fn)(o,i)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=kn(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)};Ue.readWord=function(){var e=this.readWord1(),t=N.name;return this.keywords.test(e)&&(t=ll[e]),this.finishToken(t,e)};var mw="8.15.0";vt.acorn={Parser:vt,version:mw,defaultOptions:$s,Position:Yi,SourceLocation:_a,getLineInfo:Fp,Node:Pa,TokenType:Xe,tokTypes:N,keywordTypes:ll,TokContext:Xt,tokContexts:lt,isIdentifierChar:Fn,isIdentifierStart:hn,Token:fl,isNewLine:Ei,lineBreak:Dt,lineBreakG:jy,nonASCIIwhitespace:Dp};function ff(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ss={exports:{}},os,dc;function vw(){return dc||(dc=1,os={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),os}var Vi={exports:{}},xw=Vi.exports,pc;function fc(){return pc||(pc=1,(function(e,t){(function(n,i){i(t)})(xw,(function(n){var i=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],r=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],a="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",o="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",l={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},u="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",c={5:u,"5module":u+" export import",6:u+" const class extends export import super"},p=/^in(stanceof)?$/,d=new RegExp("["+o+"]"),m=new RegExp("["+o+a+"]");function g(s,h){for(var v=65536,I=0;I<h.length;I+=2){if(v+=h[I],v>s)return!1;if(v+=h[I+1],v>=s)return!0}return!1}function _(s,h){return s<65?s===36:s<91?!0:s<97?s===95:s<123?!0:s<=65535?s>=170&&d.test(String.fromCharCode(s)):h===!1?!1:g(s,r)}function x(s,h){return s<48?s===36:s<58?!0:s<65?!1:s<91?!0:s<97?s===95:s<123?!0:s<=65535?s>=170&&m.test(String.fromCharCode(s)):h===!1?!1:g(s,r)||g(s,i)}var E=function(h,v){v===void 0&&(v={}),this.label=h,this.keyword=v.keyword,this.beforeExpr=!!v.beforeExpr,this.startsExpr=!!v.startsExpr,this.isLoop=!!v.isLoop,this.isAssign=!!v.isAssign,this.prefix=!!v.prefix,this.postfix=!!v.postfix,this.binop=v.binop||null,this.updateContext=null};function C(s,h){return new E(s,{beforeExpr:!0,binop:h})}var S={beforeExpr:!0},k={startsExpr:!0},A={};function b(s,h){return h===void 0&&(h={}),h.keyword=s,A[s]=new E(s,h)}var f={num:new E("num",k),regexp:new E("regexp",k),string:new E("string",k),name:new E("name",k),privateId:new E("privateId",k),eof:new E("eof"),bracketL:new E("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new E("]"),braceL:new E("{",{beforeExpr:!0,startsExpr:!0}),braceR:new E("}"),parenL:new E("(",{beforeExpr:!0,startsExpr:!0}),parenR:new E(")"),comma:new E(",",S),semi:new E(";",S),colon:new E(":",S),dot:new E("."),question:new E("?",S),questionDot:new E("?."),arrow:new E("=>",S),template:new E("template"),invalidTemplate:new E("invalidTemplate"),ellipsis:new E("...",S),backQuote:new E("`",k),dollarBraceL:new E("${",{beforeExpr:!0,startsExpr:!0}),eq:new E("=",{beforeExpr:!0,isAssign:!0}),assign:new E("_=",{beforeExpr:!0,isAssign:!0}),incDec:new E("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new E("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:C("||",1),logicalAND:C("&&",2),bitwiseOR:C("|",3),bitwiseXOR:C("^",4),bitwiseAND:C("&",5),equality:C("==/!=/===/!==",6),relational:C("</>/<=/>=",7),bitShift:C("<</>>/>>>",8),plusMin:new E("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:C("%",10),star:C("*",10),slash:C("/",10),starstar:new E("**",{beforeExpr:!0}),coalesce:C("??",1),_break:b("break"),_case:b("case",S),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",S),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",S),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",k),_if:b("if"),_return:b("return",S),_switch:b("switch"),_throw:b("throw",S),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",k),_super:b("super",k),_class:b("class",k),_extends:b("extends",S),_export:b("export"),_import:b("import",k),_null:b("null",k),_true:b("true",k),_false:b("false",k),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},T=/\r\n?|\n|\u2028|\u2029/,L=new RegExp(T.source,"g");function V(s){return s===10||s===13||s===8232||s===8233}function D(s,h,v){v===void 0&&(v=s.length);for(var I=h;I<v;I++){var R=s.charCodeAt(I);if(V(R))return I<v-1&&R===13&&s.charCodeAt(I+1)===10?I+2:I+1}return-1}var B=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,j=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,$=Object.prototype,K=$.hasOwnProperty,W=$.toString,ne=Object.hasOwn||(function(s,h){return K.call(s,h)}),te=Array.isArray||(function(s){return W.call(s)==="[object Array]"}),J=Object.create(null);function ue(s){return J[s]||(J[s]=new RegExp("^(?:"+s.replace(/ /g,"|")+")$"))}function y(s){return s<=65535?String.fromCharCode(s):(s-=65536,String.fromCharCode((s>>10)+55296,(s&1023)+56320))}var X=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ie=function(h,v){this.line=h,this.column=v};ie.prototype.offset=function(h){return new ie(this.line,this.column+h)};var P=function(h,v,I){this.start=v,this.end=I,h.sourceFile!==null&&(this.source=h.sourceFile)};function G(s,h){for(var v=1,I=0;;){var R=D(s,I,h);if(R<0)return new ie(v,h-I);++v,I=R}}var q={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},F=!1;function z(s){var h={};for(var v in q)h[v]=s&&ne(s,v)?s[v]:q[v];if(h.ecmaVersion==="latest"?h.ecmaVersion=1e8:h.ecmaVersion==null?(!F&&typeof console=="object"&&console.warn&&(F=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
70
|
+
Defaulting to 2020, but this will stop working in the future.`)),h.ecmaVersion=11):h.ecmaVersion>=2015&&(h.ecmaVersion-=2009),h.allowReserved==null&&(h.allowReserved=h.ecmaVersion<5),(!s||s.allowHashBang==null)&&(h.allowHashBang=h.ecmaVersion>=14),te(h.onToken)){var I=h.onToken;h.onToken=function(R){return I.push(R)}}return te(h.onComment)&&(h.onComment=Y(h,h.onComment)),h}function Y(s,h){return function(v,I,R,U,Z,fe){var me={type:v?"Block":"Line",value:I,start:R,end:U};s.locations&&(me.loc=new P(this,Z,fe)),s.ranges&&(me.range=[R,U]),h.push(me)}}var ee=1,se=2,le=4,H=8,pe=16,re=32,we=64,xe=128,be=256,Ne=512,Te=ee|se|be;function Pe(s,h){return se|(s?le:0)|(h?H:0)}var qe=0,Ye=1,Re=2,Fe=3,xt=4,oe=5,ae=function(h,v,I){this.options=h=z(h),this.sourceFile=h.sourceFile,this.keywords=ue(c[h.ecmaVersion>=6?6:h.sourceType==="module"?"5module":5]);var R="";h.allowReserved!==!0&&(R=l[h.ecmaVersion>=6?6:h.ecmaVersion===5?5:3],h.sourceType==="module"&&(R+=" await")),this.reservedWords=ue(R);var U=(R?R+" ":"")+l.strict;this.reservedWordsStrict=ue(U),this.reservedWordsStrictBind=ue(U+" "+l.strictBind),this.input=String(v),this.containsEsc=!1,I?(this.pos=I,this.lineStart=this.input.lastIndexOf(`
|
|
71
|
+
`,I-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(T).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=f.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=h.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&h.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ee),this.regexpState=null,this.privateNameStack=[]},O={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};ae.prototype.parse=function(){var h=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(h)},O.inFunction.get=function(){return(this.currentVarScope().flags&se)>0},O.inGenerator.get=function(){return(this.currentVarScope().flags&H)>0},O.inAsync.get=function(){return(this.currentVarScope().flags&le)>0},O.canAwait.get=function(){for(var s=this.scopeStack.length-1;s>=0;s--){var h=this.scopeStack[s],v=h.flags;if(v&(be|Ne))return!1;if(v&se)return(v&le)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},O.allowSuper.get=function(){var s=this.currentThisScope(),h=s.flags;return(h&we)>0||this.options.allowSuperOutsideMethod},O.allowDirectSuper.get=function(){return(this.currentThisScope().flags&xe)>0},O.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},O.allowNewDotTarget.get=function(){for(var s=this.scopeStack.length-1;s>=0;s--){var h=this.scopeStack[s],v=h.flags;if(v&(be|Ne)||v&se&&!(v&pe))return!0}return!1},O.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&be)>0},ae.extend=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];for(var I=this,R=0;R<h.length;R++)I=h[R](I);return I},ae.parse=function(h,v){return new this(v,h).parse()},ae.parseExpressionAt=function(h,v,I){var R=new this(I,h,v);return R.nextToken(),R.parseExpression()},ae.tokenizer=function(h,v){return new this(v,h)},Object.defineProperties(ae.prototype,O);var ke=ae.prototype,Be=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ke.strictDirective=function(s){if(this.options.ecmaVersion<5)return!1;for(;;){j.lastIndex=s,s+=j.exec(this.input)[0].length;var h=Be.exec(this.input.slice(s));if(!h)return!1;if((h[1]||h[2])==="use strict"){j.lastIndex=s+h[0].length;var v=j.exec(this.input),I=v.index+v[0].length,R=this.input.charAt(I);return R===";"||R==="}"||T.test(v[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(R)||R==="!"&&this.input.charAt(I+1)==="=")}s+=h[0].length,j.lastIndex=s,s+=j.exec(this.input)[0].length,this.input[s]===";"&&s++}},ke.eat=function(s){return this.type===s?(this.next(),!0):!1},ke.isContextual=function(s){return this.type===f.name&&this.value===s&&!this.containsEsc},ke.eatContextual=function(s){return this.isContextual(s)?(this.next(),!0):!1},ke.expectContextual=function(s){this.eatContextual(s)||this.unexpected()},ke.canInsertSemicolon=function(){return this.type===f.eof||this.type===f.braceR||T.test(this.input.slice(this.lastTokEnd,this.start))},ke.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ke.semicolon=function(){!this.eat(f.semi)&&!this.insertSemicolon()&&this.unexpected()},ke.afterTrailingComma=function(s,h){if(this.type===s)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),h||this.next(),!0},ke.expect=function(s){this.eat(s)||this.unexpected()},ke.unexpected=function(s){this.raise(s??this.start,"Unexpected token")};var ct=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ke.checkPatternErrors=function(s,h){if(s){s.trailingComma>-1&&this.raiseRecoverable(s.trailingComma,"Comma is not permitted after the rest element");var v=h?s.parenthesizedAssign:s.parenthesizedBind;v>-1&&this.raiseRecoverable(v,h?"Assigning to rvalue":"Parenthesized pattern")}},ke.checkExpressionErrors=function(s,h){if(!s)return!1;var v=s.shorthandAssign,I=s.doubleProto;if(!h)return v>=0||I>=0;v>=0&&this.raise(v,"Shorthand property assignments are valid only in destructuring patterns"),I>=0&&this.raiseRecoverable(I,"Redefinition of __proto__ property")},ke.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},ke.isSimpleAssignTarget=function(s){return s.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(s.expression):s.type==="Identifier"||s.type==="MemberExpression"};var ve=ae.prototype;ve.parseTopLevel=function(s){var h=Object.create(null);for(s.body||(s.body=[]);this.type!==f.eof;){var v=this.parseStatement(null,!0,h);s.body.push(v)}if(this.inModule)for(var I=0,R=Object.keys(this.undefinedExports);I<R.length;I+=1){var U=R[I];this.raiseRecoverable(this.undefinedExports[U].start,"Export '"+U+"' is not defined")}return this.adaptDirectivePrologue(s.body),this.next(),s.sourceType=this.options.sourceType,this.finishNode(s,"Program")};var bt={kind:"loop"},gn={kind:"switch"};ve.isLet=function(s){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;j.lastIndex=this.pos;var h=j.exec(this.input),v=this.pos+h[0].length,I=this.input.charCodeAt(v);if(I===91||I===92)return!0;if(s)return!1;if(I===123||I>55295&&I<56320)return!0;if(_(I,!0)){for(var R=v+1;x(I=this.input.charCodeAt(R),!0);)++R;if(I===92||I>55295&&I<56320)return!0;var U=this.input.slice(v,R);if(!p.test(U))return!0}return!1},ve.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;j.lastIndex=this.pos;var s=j.exec(this.input),h=this.pos+s[0].length,v;return!T.test(this.input.slice(this.pos,h))&&this.input.slice(h,h+8)==="function"&&(h+8===this.input.length||!(x(v=this.input.charCodeAt(h+8))||v>55295&&v<56320))},ve.isUsingKeyword=function(s,h){if(this.options.ecmaVersion<17||!this.isContextual(s?"await":"using"))return!1;j.lastIndex=this.pos;var v=j.exec(this.input),I=this.pos+v[0].length;if(T.test(this.input.slice(this.pos,I)))return!1;if(s){var R=I+5,U;if(this.input.slice(I,R)!=="using"||R===this.input.length||x(U=this.input.charCodeAt(R))||U>55295&&U<56320)return!1;j.lastIndex=R;var Z=j.exec(this.input);if(Z&&T.test(this.input.slice(R,R+Z[0].length)))return!1}if(h){var fe=I+2,me;if(this.input.slice(I,fe)==="of"&&(fe===this.input.length||!x(me=this.input.charCodeAt(fe))&&!(me>55295&&me<56320)))return!1}var De=this.input.charCodeAt(I);return _(De,!0)||De===92},ve.isAwaitUsing=function(s){return this.isUsingKeyword(!0,s)},ve.isUsing=function(s){return this.isUsingKeyword(!1,s)},ve.parseStatement=function(s,h,v){var I=this.type,R=this.startNode(),U;switch(this.isLet(s)&&(I=f._var,U="let"),I){case f._break:case f._continue:return this.parseBreakContinueStatement(R,I.keyword);case f._debugger:return this.parseDebuggerStatement(R);case f._do:return this.parseDoStatement(R);case f._for:return this.parseForStatement(R);case f._function:return s&&(this.strict||s!=="if"&&s!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(R,!1,!s);case f._class:return s&&this.unexpected(),this.parseClass(R,!0);case f._if:return this.parseIfStatement(R);case f._return:return this.parseReturnStatement(R);case f._switch:return this.parseSwitchStatement(R);case f._throw:return this.parseThrowStatement(R);case f._try:return this.parseTryStatement(R);case f._const:case f._var:return U=U||this.value,s&&U!=="var"&&this.unexpected(),this.parseVarStatement(R,U);case f._while:return this.parseWhileStatement(R);case f._with:return this.parseWithStatement(R);case f.braceL:return this.parseBlock(!0,R);case f.semi:return this.parseEmptyStatement(R);case f._export:case f._import:if(this.options.ecmaVersion>10&&I===f._import){j.lastIndex=this.pos;var Z=j.exec(this.input),fe=this.pos+Z[0].length,me=this.input.charCodeAt(fe);if(me===40||me===46)return this.parseExpressionStatement(R,this.parseExpression())}return this.options.allowImportExportEverywhere||(h||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),I===f._import?this.parseImport(R):this.parseExport(R,v);default:if(this.isAsyncFunction())return s&&this.unexpected(),this.next(),this.parseFunctionStatement(R,!0,!s);var De=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(De)return h&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),De==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(R,!1,De),this.semicolon(),this.finishNode(R,"VariableDeclaration");var Ve=this.value,ot=this.parseExpression();return I===f.name&&ot.type==="Identifier"&&this.eat(f.colon)?this.parseLabeledStatement(R,Ve,ot,s):this.parseExpressionStatement(R,ot)}},ve.parseBreakContinueStatement=function(s,h){var v=h==="break";this.next(),this.eat(f.semi)||this.insertSemicolon()?s.label=null:this.type!==f.name?this.unexpected():(s.label=this.parseIdent(),this.semicolon());for(var I=0;I<this.labels.length;++I){var R=this.labels[I];if((s.label==null||R.name===s.label.name)&&(R.kind!=null&&(v||R.kind==="loop")||s.label&&v))break}return I===this.labels.length&&this.raise(s.start,"Unsyntactic "+h),this.finishNode(s,v?"BreakStatement":"ContinueStatement")},ve.parseDebuggerStatement=function(s){return this.next(),this.semicolon(),this.finishNode(s,"DebuggerStatement")},ve.parseDoStatement=function(s){return this.next(),this.labels.push(bt),s.body=this.parseStatement("do"),this.labels.pop(),this.expect(f._while),s.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(f.semi):this.semicolon(),this.finishNode(s,"DoWhileStatement")},ve.parseForStatement=function(s){this.next();var h=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(bt),this.enterScope(0),this.expect(f.parenL),this.type===f.semi)return h>-1&&this.unexpected(h),this.parseFor(s,null);var v=this.isLet();if(this.type===f._var||this.type===f._const||v){var I=this.startNode(),R=v?"let":this.value;return this.next(),this.parseVar(I,!0,R),this.finishNode(I,"VariableDeclaration"),this.parseForAfterInit(s,I,h)}var U=this.isContextual("let"),Z=!1,fe=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(fe){var me=this.startNode();return this.next(),fe==="await using"&&this.next(),this.parseVar(me,!0,fe),this.finishNode(me,"VariableDeclaration"),this.parseForAfterInit(s,me,h)}var De=this.containsEsc,Ve=new ct,ot=this.start,wt=h>-1?this.parseExprSubscripts(Ve,"await"):this.parseExpression(!0,Ve);return this.type===f._in||(Z=this.options.ecmaVersion>=6&&this.isContextual("of"))?(h>-1?(this.type===f._in&&this.unexpected(h),s.await=!0):Z&&this.options.ecmaVersion>=8&&(wt.start===ot&&!De&&wt.type==="Identifier"&&wt.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(s.await=!1)),U&&Z&&this.raise(wt.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(wt,!1,Ve),this.checkLValPattern(wt),this.parseForIn(s,wt)):(this.checkExpressionErrors(Ve,!0),h>-1&&this.unexpected(h),this.parseFor(s,wt))},ve.parseForAfterInit=function(s,h,v){return(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&h.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===f._in?v>-1&&this.unexpected(v):s.await=v>-1),this.parseForIn(s,h)):(v>-1&&this.unexpected(v),this.parseFor(s,h))},ve.parseFunctionStatement=function(s,h,v){return this.next(),this.parseFunction(s,ht|(v?0:Mt),!1,h)},ve.parseIfStatement=function(s){return this.next(),s.test=this.parseParenExpression(),s.consequent=this.parseStatement("if"),s.alternate=this.eat(f._else)?this.parseStatement("if"):null,this.finishNode(s,"IfStatement")},ve.parseReturnStatement=function(s){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(f.semi)||this.insertSemicolon()?s.argument=null:(s.argument=this.parseExpression(),this.semicolon()),this.finishNode(s,"ReturnStatement")},ve.parseSwitchStatement=function(s){this.next(),s.discriminant=this.parseParenExpression(),s.cases=[],this.expect(f.braceL),this.labels.push(gn),this.enterScope(0);for(var h,v=!1;this.type!==f.braceR;)if(this.type===f._case||this.type===f._default){var I=this.type===f._case;h&&this.finishNode(h,"SwitchCase"),s.cases.push(h=this.startNode()),h.consequent=[],this.next(),I?h.test=this.parseExpression():(v&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),v=!0,h.test=null),this.expect(f.colon)}else h||this.unexpected(),h.consequent.push(this.parseStatement(null));return this.exitScope(),h&&this.finishNode(h,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(s,"SwitchStatement")},ve.parseThrowStatement=function(s){return this.next(),T.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),s.argument=this.parseExpression(),this.semicolon(),this.finishNode(s,"ThrowStatement")};var rn=[];ve.parseCatchClauseParam=function(){var s=this.parseBindingAtom(),h=s.type==="Identifier";return this.enterScope(h?re:0),this.checkLValPattern(s,h?xt:Re),this.expect(f.parenR),s},ve.parseTryStatement=function(s){if(this.next(),s.block=this.parseBlock(),s.handler=null,this.type===f._catch){var h=this.startNode();this.next(),this.eat(f.parenL)?h.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),h.param=null,this.enterScope(0)),h.body=this.parseBlock(!1),this.exitScope(),s.handler=this.finishNode(h,"CatchClause")}return s.finalizer=this.eat(f._finally)?this.parseBlock():null,!s.handler&&!s.finalizer&&this.raise(s.start,"Missing catch or finally clause"),this.finishNode(s,"TryStatement")},ve.parseVarStatement=function(s,h,v){return this.next(),this.parseVar(s,!1,h,v),this.semicolon(),this.finishNode(s,"VariableDeclaration")},ve.parseWhileStatement=function(s){return this.next(),s.test=this.parseParenExpression(),this.labels.push(bt),s.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(s,"WhileStatement")},ve.parseWithStatement=function(s){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),s.object=this.parseParenExpression(),s.body=this.parseStatement("with"),this.finishNode(s,"WithStatement")},ve.parseEmptyStatement=function(s){return this.next(),this.finishNode(s,"EmptyStatement")},ve.parseLabeledStatement=function(s,h,v,I){for(var R=0,U=this.labels;R<U.length;R+=1){var Z=U[R];Z.name===h&&this.raise(v.start,"Label '"+h+"' is already declared")}for(var fe=this.type.isLoop?"loop":this.type===f._switch?"switch":null,me=this.labels.length-1;me>=0;me--){var De=this.labels[me];if(De.statementStart===s.start)De.statementStart=this.start,De.kind=fe;else break}return this.labels.push({name:h,kind:fe,statementStart:this.start}),s.body=this.parseStatement(I?I.indexOf("label")===-1?I+"label":I:"label"),this.labels.pop(),s.label=v,this.finishNode(s,"LabeledStatement")},ve.parseExpressionStatement=function(s,h){return s.expression=h,this.semicolon(),this.finishNode(s,"ExpressionStatement")},ve.parseBlock=function(s,h,v){for(s===void 0&&(s=!0),h===void 0&&(h=this.startNode()),h.body=[],this.expect(f.braceL),s&&this.enterScope(0);this.type!==f.braceR;){var I=this.parseStatement(null);h.body.push(I)}return v&&(this.strict=!1),this.next(),s&&this.exitScope(),this.finishNode(h,"BlockStatement")},ve.parseFor=function(s,h){return s.init=h,this.expect(f.semi),s.test=this.type===f.semi?null:this.parseExpression(),this.expect(f.semi),s.update=this.type===f.parenR?null:this.parseExpression(),this.expect(f.parenR),s.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(s,"ForStatement")},ve.parseForIn=function(s,h){var v=this.type===f._in;return this.next(),h.type==="VariableDeclaration"&&h.declarations[0].init!=null&&(!v||this.options.ecmaVersion<8||this.strict||h.kind!=="var"||h.declarations[0].id.type!=="Identifier")&&this.raise(h.start,(v?"for-in":"for-of")+" loop variable declaration may not have an initializer"),s.left=h,s.right=v?this.parseExpression():this.parseMaybeAssign(),this.expect(f.parenR),s.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(s,v?"ForInStatement":"ForOfStatement")},ve.parseVar=function(s,h,v,I){for(s.declarations=[],s.kind=v;;){var R=this.startNode();if(this.parseVarId(R,v),this.eat(f.eq)?R.init=this.parseMaybeAssign(h):!I&&v==="const"&&!(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!I&&(v==="using"||v==="await using")&&this.options.ecmaVersion>=17&&this.type!==f._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+v+" declaration"):!I&&R.id.type!=="Identifier"&&!(h&&(this.type===f._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):R.init=null,s.declarations.push(this.finishNode(R,"VariableDeclarator")),!this.eat(f.comma))break}return s},ve.parseVarId=function(s,h){s.id=h==="using"||h==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(s.id,h==="var"?Ye:Re,!1)};var ht=1,Mt=2,Tt=4;ve.parseFunction=function(s,h,v,I,R){this.initFunction(s),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!I)&&(this.type===f.star&&h&Mt&&this.unexpected(),s.generator=this.eat(f.star)),this.options.ecmaVersion>=8&&(s.async=!!I),h&ht&&(s.id=h&Tt&&this.type!==f.name?null:this.parseIdent(),s.id&&!(h&Mt)&&this.checkLValSimple(s.id,this.strict||s.generator||s.async?this.treatFunctionsAsVar?Ye:Re:Fe));var U=this.yieldPos,Z=this.awaitPos,fe=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Pe(s.async,s.generator)),h&ht||(s.id=this.type===f.name?this.parseIdent():null),this.parseFunctionParams(s),this.parseFunctionBody(s,v,!1,R),this.yieldPos=U,this.awaitPos=Z,this.awaitIdentPos=fe,this.finishNode(s,h&ht?"FunctionDeclaration":"FunctionExpression")},ve.parseFunctionParams=function(s){this.expect(f.parenL),s.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ve.parseClass=function(s,h){this.next();var v=this.strict;this.strict=!0,this.parseClassId(s,h),this.parseClassSuper(s);var I=this.enterClassBody(),R=this.startNode(),U=!1;for(R.body=[],this.expect(f.braceL);this.type!==f.braceR;){var Z=this.parseClassElement(s.superClass!==null);Z&&(R.body.push(Z),Z.type==="MethodDefinition"&&Z.kind==="constructor"?(U&&this.raiseRecoverable(Z.start,"Duplicate constructor in the same class"),U=!0):Z.key&&Z.key.type==="PrivateIdentifier"&&Ge(I,Z)&&this.raiseRecoverable(Z.key.start,"Identifier '#"+Z.key.name+"' has already been declared"))}return this.strict=v,this.next(),s.body=this.finishNode(R,"ClassBody"),this.exitClassBody(),this.finishNode(s,h?"ClassDeclaration":"ClassExpression")},ve.parseClassElement=function(s){if(this.eat(f.semi))return null;var h=this.options.ecmaVersion,v=this.startNode(),I="",R=!1,U=!1,Z="method",fe=!1;if(this.eatContextual("static")){if(h>=13&&this.eat(f.braceL))return this.parseClassStaticBlock(v),v;this.isClassElementNameStart()||this.type===f.star?fe=!0:I="static"}if(v.static=fe,!I&&h>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===f.star)&&!this.canInsertSemicolon()?U=!0:I="async"),!I&&(h>=9||!U)&&this.eat(f.star)&&(R=!0),!I&&!U&&!R){var me=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?Z=me:I=me)}if(I?(v.computed=!1,v.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),v.key.name=I,this.finishNode(v.key,"Identifier")):this.parseClassElementName(v),h<13||this.type===f.parenL||Z!=="method"||R||U){var De=!v.static&&$e(v,"constructor"),Ve=De&&s;De&&Z!=="method"&&this.raise(v.key.start,"Constructor can't have get/set modifier"),v.kind=De?"constructor":Z,this.parseClassMethod(v,R,U,Ve)}else this.parseClassField(v);return v},ve.isClassElementNameStart=function(){return this.type===f.name||this.type===f.privateId||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword},ve.parseClassElementName=function(s){this.type===f.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),s.computed=!1,s.key=this.parsePrivateIdent()):this.parsePropertyName(s)},ve.parseClassMethod=function(s,h,v,I){var R=s.key;s.kind==="constructor"?(h&&this.raise(R.start,"Constructor can't be a generator"),v&&this.raise(R.start,"Constructor can't be an async method")):s.static&&$e(s,"prototype")&&this.raise(R.start,"Classes may not have a static property named prototype");var U=s.value=this.parseMethod(h,v,I);return s.kind==="get"&&U.params.length!==0&&this.raiseRecoverable(U.start,"getter should have no params"),s.kind==="set"&&U.params.length!==1&&this.raiseRecoverable(U.start,"setter should have exactly one param"),s.kind==="set"&&U.params[0].type==="RestElement"&&this.raiseRecoverable(U.params[0].start,"Setter cannot use rest params"),this.finishNode(s,"MethodDefinition")},ve.parseClassField=function(s){return $e(s,"constructor")?this.raise(s.key.start,"Classes can't have a field named 'constructor'"):s.static&&$e(s,"prototype")&&this.raise(s.key.start,"Classes can't have a static field named 'prototype'"),this.eat(f.eq)?(this.enterScope(Ne|we),s.value=this.parseMaybeAssign(),this.exitScope()):s.value=null,this.semicolon(),this.finishNode(s,"PropertyDefinition")},ve.parseClassStaticBlock=function(s){s.body=[];var h=this.labels;for(this.labels=[],this.enterScope(be|we);this.type!==f.braceR;){var v=this.parseStatement(null);s.body.push(v)}return this.next(),this.exitScope(),this.labels=h,this.finishNode(s,"StaticBlock")},ve.parseClassId=function(s,h){this.type===f.name?(s.id=this.parseIdent(),h&&this.checkLValSimple(s.id,Re,!1)):(h===!0&&this.unexpected(),s.id=null)},ve.parseClassSuper=function(s){s.superClass=this.eat(f._extends)?this.parseExprSubscripts(null,!1):null},ve.enterClassBody=function(){var s={declared:Object.create(null),used:[]};return this.privateNameStack.push(s),s.declared},ve.exitClassBody=function(){var s=this.privateNameStack.pop(),h=s.declared,v=s.used;if(this.options.checkPrivateFields)for(var I=this.privateNameStack.length,R=I===0?null:this.privateNameStack[I-1],U=0;U<v.length;++U){var Z=v[U];ne(h,Z.name)||(R?R.used.push(Z):this.raiseRecoverable(Z.start,"Private field '#"+Z.name+"' must be declared in an enclosing class"))}};function Ge(s,h){var v=h.key.name,I=s[v],R="true";return h.type==="MethodDefinition"&&(h.kind==="get"||h.kind==="set")&&(R=(h.static?"s":"i")+h.kind),I==="iget"&&R==="iset"||I==="iset"&&R==="iget"||I==="sget"&&R==="sset"||I==="sset"&&R==="sget"?(s[v]="true",!1):I?!0:(s[v]=R,!1)}function $e(s,h){var v=s.computed,I=s.key;return!v&&(I.type==="Identifier"&&I.name===h||I.type==="Literal"&&I.value===h)}ve.parseExportAllDeclaration=function(s,h){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(s.exported=this.parseModuleExportName(),this.checkExport(h,s.exported,this.lastTokStart)):s.exported=null),this.expectContextual("from"),this.type!==f.string&&this.unexpected(),s.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(s.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(s,"ExportAllDeclaration")},ve.parseExport=function(s,h){if(this.next(),this.eat(f.star))return this.parseExportAllDeclaration(s,h);if(this.eat(f._default))return this.checkExport(h,"default",this.lastTokStart),s.declaration=this.parseExportDefaultDeclaration(),this.finishNode(s,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())s.declaration=this.parseExportDeclaration(s),s.declaration.type==="VariableDeclaration"?this.checkVariableExport(h,s.declaration.declarations):this.checkExport(h,s.declaration.id,s.declaration.id.start),s.specifiers=[],s.source=null,this.options.ecmaVersion>=16&&(s.attributes=[]);else{if(s.declaration=null,s.specifiers=this.parseExportSpecifiers(h),this.eatContextual("from"))this.type!==f.string&&this.unexpected(),s.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(s.attributes=this.parseWithClause());else{for(var v=0,I=s.specifiers;v<I.length;v+=1){var R=I[v];this.checkUnreserved(R.local),this.checkLocalExport(R.local),R.local.type==="Literal"&&this.raise(R.local.start,"A string literal cannot be used as an exported binding without `from`.")}s.source=null,this.options.ecmaVersion>=16&&(s.attributes=[])}this.semicolon()}return this.finishNode(s,"ExportNamedDeclaration")},ve.parseExportDeclaration=function(s){return this.parseStatement(null)},ve.parseExportDefaultDeclaration=function(){var s;if(this.type===f._function||(s=this.isAsyncFunction())){var h=this.startNode();return this.next(),s&&this.next(),this.parseFunction(h,ht|Tt,!1,s)}else if(this.type===f._class){var v=this.startNode();return this.parseClass(v,"nullableID")}else{var I=this.parseMaybeAssign();return this.semicolon(),I}},ve.checkExport=function(s,h,v){s&&(typeof h!="string"&&(h=h.type==="Identifier"?h.name:h.value),ne(s,h)&&this.raiseRecoverable(v,"Duplicate export '"+h+"'"),s[h]=!0)},ve.checkPatternExport=function(s,h){var v=h.type;if(v==="Identifier")this.checkExport(s,h,h.start);else if(v==="ObjectPattern")for(var I=0,R=h.properties;I<R.length;I+=1){var U=R[I];this.checkPatternExport(s,U)}else if(v==="ArrayPattern")for(var Z=0,fe=h.elements;Z<fe.length;Z+=1){var me=fe[Z];me&&this.checkPatternExport(s,me)}else v==="Property"?this.checkPatternExport(s,h.value):v==="AssignmentPattern"?this.checkPatternExport(s,h.left):v==="RestElement"&&this.checkPatternExport(s,h.argument)},ve.checkVariableExport=function(s,h){if(s)for(var v=0,I=h;v<I.length;v+=1){var R=I[v];this.checkPatternExport(s,R.id)}},ve.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},ve.parseExportSpecifier=function(s){var h=this.startNode();return h.local=this.parseModuleExportName(),h.exported=this.eatContextual("as")?this.parseModuleExportName():h.local,this.checkExport(s,h.exported,h.exported.start),this.finishNode(h,"ExportSpecifier")},ve.parseExportSpecifiers=function(s){var h=[],v=!0;for(this.expect(f.braceL);!this.eat(f.braceR);){if(v)v=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;h.push(this.parseExportSpecifier(s))}return h},ve.parseImport=function(s){return this.next(),this.type===f.string?(s.specifiers=rn,s.source=this.parseExprAtom()):(s.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),s.source=this.type===f.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(s.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(s,"ImportDeclaration")},ve.parseImportSpecifier=function(){var s=this.startNode();return s.imported=this.parseModuleExportName(),this.eatContextual("as")?s.local=this.parseIdent():(this.checkUnreserved(s.imported),s.local=s.imported),this.checkLValSimple(s.local,Re),this.finishNode(s,"ImportSpecifier")},ve.parseImportDefaultSpecifier=function(){var s=this.startNode();return s.local=this.parseIdent(),this.checkLValSimple(s.local,Re),this.finishNode(s,"ImportDefaultSpecifier")},ve.parseImportNamespaceSpecifier=function(){var s=this.startNode();return this.next(),this.expectContextual("as"),s.local=this.parseIdent(),this.checkLValSimple(s.local,Re),this.finishNode(s,"ImportNamespaceSpecifier")},ve.parseImportSpecifiers=function(){var s=[],h=!0;if(this.type===f.name&&(s.push(this.parseImportDefaultSpecifier()),!this.eat(f.comma)))return s;if(this.type===f.star)return s.push(this.parseImportNamespaceSpecifier()),s;for(this.expect(f.braceL);!this.eat(f.braceR);){if(h)h=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;s.push(this.parseImportSpecifier())}return s},ve.parseWithClause=function(){var s=[];if(!this.eat(f._with))return s;this.expect(f.braceL);for(var h={},v=!0;!this.eat(f.braceR);){if(v)v=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;var I=this.parseImportAttribute(),R=I.key.type==="Identifier"?I.key.name:I.key.value;ne(h,R)&&this.raiseRecoverable(I.key.start,"Duplicate attribute key '"+R+"'"),h[R]=!0,s.push(I)}return s},ve.parseImportAttribute=function(){var s=this.startNode();return s.key=this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(f.colon),this.type!==f.string&&this.unexpected(),s.value=this.parseExprAtom(),this.finishNode(s,"ImportAttribute")},ve.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===f.string){var s=this.parseLiteral(this.value);return X.test(s.value)&&this.raise(s.start,"An export name cannot include a lone surrogate."),s}return this.parseIdent(!0)},ve.adaptDirectivePrologue=function(s){for(var h=0;h<s.length&&this.isDirectiveCandidate(s[h]);++h)s[h].directive=s[h].expression.raw.slice(1,-1)},ve.isDirectiveCandidate=function(s){return this.options.ecmaVersion>=5&&s.type==="ExpressionStatement"&&s.expression.type==="Literal"&&typeof s.expression.value=="string"&&(this.input[s.start]==='"'||this.input[s.start]==="'")};var at=ae.prototype;at.toAssignable=function(s,h,v){if(this.options.ecmaVersion>=6&&s)switch(s.type){case"Identifier":this.inAsync&&s.name==="await"&&this.raise(s.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":s.type="ObjectPattern",v&&this.checkPatternErrors(v,!0);for(var I=0,R=s.properties;I<R.length;I+=1){var U=R[I];this.toAssignable(U,h),U.type==="RestElement"&&(U.argument.type==="ArrayPattern"||U.argument.type==="ObjectPattern")&&this.raise(U.argument.start,"Unexpected token")}break;case"Property":s.kind!=="init"&&this.raise(s.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(s.value,h);break;case"ArrayExpression":s.type="ArrayPattern",v&&this.checkPatternErrors(v,!0),this.toAssignableList(s.elements,h);break;case"SpreadElement":s.type="RestElement",this.toAssignable(s.argument,h),s.argument.type==="AssignmentPattern"&&this.raise(s.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":s.operator!=="="&&this.raise(s.left.end,"Only '=' operator can be used for specifying default value."),s.type="AssignmentPattern",delete s.operator,this.toAssignable(s.left,h);break;case"ParenthesizedExpression":this.toAssignable(s.expression,h,v);break;case"ChainExpression":this.raiseRecoverable(s.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!h)break;default:this.raise(s.start,"Assigning to rvalue")}else v&&this.checkPatternErrors(v,!0);return s},at.toAssignableList=function(s,h){for(var v=s.length,I=0;I<v;I++){var R=s[I];R&&this.toAssignable(R,h)}if(v){var U=s[v-1];this.options.ecmaVersion===6&&h&&U&&U.type==="RestElement"&&U.argument.type!=="Identifier"&&this.unexpected(U.argument.start)}return s},at.parseSpread=function(s){var h=this.startNode();return this.next(),h.argument=this.parseMaybeAssign(!1,s),this.finishNode(h,"SpreadElement")},at.parseRestBinding=function(){var s=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==f.name&&this.unexpected(),s.argument=this.parseBindingAtom(),this.finishNode(s,"RestElement")},at.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case f.bracketL:var s=this.startNode();return this.next(),s.elements=this.parseBindingList(f.bracketR,!0,!0),this.finishNode(s,"ArrayPattern");case f.braceL:return this.parseObj(!0)}return this.parseIdent()},at.parseBindingList=function(s,h,v,I){for(var R=[],U=!0;!this.eat(s);)if(U?U=!1:this.expect(f.comma),h&&this.type===f.comma)R.push(null);else{if(v&&this.afterTrailingComma(s))break;if(this.type===f.ellipsis){var Z=this.parseRestBinding();this.parseBindingListItem(Z),R.push(Z),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(s);break}else R.push(this.parseAssignableListItem(I))}return R},at.parseAssignableListItem=function(s){var h=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(h),h},at.parseBindingListItem=function(s){return s},at.parseMaybeDefault=function(s,h,v){if(v=v||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(f.eq))return v;var I=this.startNodeAt(s,h);return I.left=v,I.right=this.parseMaybeAssign(),this.finishNode(I,"AssignmentPattern")},at.checkLValSimple=function(s,h,v){h===void 0&&(h=qe);var I=h!==qe;switch(s.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(s.name)&&this.raiseRecoverable(s.start,(I?"Binding ":"Assigning to ")+s.name+" in strict mode"),I&&(h===Re&&s.name==="let"&&this.raiseRecoverable(s.start,"let is disallowed as a lexically bound name"),v&&(ne(v,s.name)&&this.raiseRecoverable(s.start,"Argument name clash"),v[s.name]=!0),h!==oe&&this.declareName(s.name,h,s.start));break;case"ChainExpression":this.raiseRecoverable(s.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":I&&this.raiseRecoverable(s.start,"Binding member expression");break;case"ParenthesizedExpression":return I&&this.raiseRecoverable(s.start,"Binding parenthesized expression"),this.checkLValSimple(s.expression,h,v);default:this.raise(s.start,(I?"Binding":"Assigning to")+" rvalue")}},at.checkLValPattern=function(s,h,v){switch(h===void 0&&(h=qe),s.type){case"ObjectPattern":for(var I=0,R=s.properties;I<R.length;I+=1){var U=R[I];this.checkLValInnerPattern(U,h,v)}break;case"ArrayPattern":for(var Z=0,fe=s.elements;Z<fe.length;Z+=1){var me=fe[Z];me&&this.checkLValInnerPattern(me,h,v)}break;default:this.checkLValSimple(s,h,v)}},at.checkLValInnerPattern=function(s,h,v){switch(h===void 0&&(h=qe),s.type){case"Property":this.checkLValInnerPattern(s.value,h,v);break;case"AssignmentPattern":this.checkLValPattern(s.left,h,v);break;case"RestElement":this.checkLValPattern(s.argument,h,v);break;default:this.checkLValPattern(s,h,v)}};var gt=function(h,v,I,R,U){this.token=h,this.isExpr=!!v,this.preserveSpace=!!I,this.override=R,this.generator=!!U},et={b_stat:new gt("{",!1),b_expr:new gt("{",!0),b_tmpl:new gt("${",!1),p_stat:new gt("(",!1),p_expr:new gt("(",!0),q_tmpl:new gt("`",!0,!0,function(s){return s.tryReadTemplateToken()}),f_stat:new gt("function",!1),f_expr:new gt("function",!0),f_expr_gen:new gt("function",!0,!1,null,!0),f_gen:new gt("function",!1,!1,null,!0)},Bt=ae.prototype;Bt.initialContext=function(){return[et.b_stat]},Bt.curContext=function(){return this.context[this.context.length-1]},Bt.braceIsBlock=function(s){var h=this.curContext();return h===et.f_expr||h===et.f_stat?!0:s===f.colon&&(h===et.b_stat||h===et.b_expr)?!h.isExpr:s===f._return||s===f.name&&this.exprAllowed?T.test(this.input.slice(this.lastTokEnd,this.start)):s===f._else||s===f.semi||s===f.eof||s===f.parenR||s===f.arrow?!0:s===f.braceL?h===et.b_stat:s===f._var||s===f._const||s===f.name?!1:!this.exprAllowed},Bt.inGeneratorContext=function(){for(var s=this.context.length-1;s>=1;s--){var h=this.context[s];if(h.token==="function")return h.generator}return!1},Bt.updateContext=function(s){var h,v=this.type;v.keyword&&s===f.dot?this.exprAllowed=!1:(h=v.updateContext)?h.call(this,s):this.exprAllowed=v.beforeExpr},Bt.overrideContext=function(s){this.curContext()!==s&&(this.context[this.context.length-1]=s)},f.parenR.updateContext=f.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var s=this.context.pop();s===et.b_stat&&this.curContext().token==="function"&&(s=this.context.pop()),this.exprAllowed=!s.isExpr},f.braceL.updateContext=function(s){this.context.push(this.braceIsBlock(s)?et.b_stat:et.b_expr),this.exprAllowed=!0},f.dollarBraceL.updateContext=function(){this.context.push(et.b_tmpl),this.exprAllowed=!0},f.parenL.updateContext=function(s){var h=s===f._if||s===f._for||s===f._with||s===f._while;this.context.push(h?et.p_stat:et.p_expr),this.exprAllowed=!0},f.incDec.updateContext=function(){},f._function.updateContext=f._class.updateContext=function(s){s.beforeExpr&&s!==f._else&&!(s===f.semi&&this.curContext()!==et.p_stat)&&!(s===f._return&&T.test(this.input.slice(this.lastTokEnd,this.start)))&&!((s===f.colon||s===f.braceL)&&this.curContext()===et.b_stat)?this.context.push(et.f_expr):this.context.push(et.f_stat),this.exprAllowed=!1},f.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},f.backQuote.updateContext=function(){this.curContext()===et.q_tmpl?this.context.pop():this.context.push(et.q_tmpl),this.exprAllowed=!1},f.star.updateContext=function(s){if(s===f._function){var h=this.context.length-1;this.context[h]===et.f_expr?this.context[h]=et.f_expr_gen:this.context[h]=et.f_gen}this.exprAllowed=!0},f.name.updateContext=function(s){var h=!1;this.options.ecmaVersion>=6&&s!==f.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(h=!0),this.exprAllowed=h};var Oe=ae.prototype;Oe.checkPropClash=function(s,h,v){if(!(this.options.ecmaVersion>=9&&s.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(s.computed||s.method||s.shorthand))){var I=s.key,R;switch(I.type){case"Identifier":R=I.name;break;case"Literal":R=String(I.value);break;default:return}var U=s.kind;if(this.options.ecmaVersion>=6){R==="__proto__"&&U==="init"&&(h.proto&&(v?v.doubleProto<0&&(v.doubleProto=I.start):this.raiseRecoverable(I.start,"Redefinition of __proto__ property")),h.proto=!0);return}R="$"+R;var Z=h[R];if(Z){var fe;U==="init"?fe=this.strict&&Z.init||Z.get||Z.set:fe=Z.init||Z[U],fe&&this.raiseRecoverable(I.start,"Redefinition of property")}else Z=h[R]={init:!1,get:!1,set:!1};Z[U]=!0}},Oe.parseExpression=function(s,h){var v=this.start,I=this.startLoc,R=this.parseMaybeAssign(s,h);if(this.type===f.comma){var U=this.startNodeAt(v,I);for(U.expressions=[R];this.eat(f.comma);)U.expressions.push(this.parseMaybeAssign(s,h));return this.finishNode(U,"SequenceExpression")}return R},Oe.parseMaybeAssign=function(s,h,v){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(s);this.exprAllowed=!1}var I=!1,R=-1,U=-1,Z=-1;h?(R=h.parenthesizedAssign,U=h.trailingComma,Z=h.doubleProto,h.parenthesizedAssign=h.trailingComma=-1):(h=new ct,I=!0);var fe=this.start,me=this.startLoc;(this.type===f.parenL||this.type===f.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=s==="await");var De=this.parseMaybeConditional(s,h);if(v&&(De=v.call(this,De,fe,me)),this.type.isAssign){var Ve=this.startNodeAt(fe,me);return Ve.operator=this.value,this.type===f.eq&&(De=this.toAssignable(De,!1,h)),I||(h.parenthesizedAssign=h.trailingComma=h.doubleProto=-1),h.shorthandAssign>=De.start&&(h.shorthandAssign=-1),this.type===f.eq?this.checkLValPattern(De):this.checkLValSimple(De),Ve.left=De,this.next(),Ve.right=this.parseMaybeAssign(s),Z>-1&&(h.doubleProto=Z),this.finishNode(Ve,"AssignmentExpression")}else I&&this.checkExpressionErrors(h,!0);return R>-1&&(h.parenthesizedAssign=R),U>-1&&(h.trailingComma=U),De},Oe.parseMaybeConditional=function(s,h){var v=this.start,I=this.startLoc,R=this.parseExprOps(s,h);if(this.checkExpressionErrors(h))return R;if(this.eat(f.question)){var U=this.startNodeAt(v,I);return U.test=R,U.consequent=this.parseMaybeAssign(),this.expect(f.colon),U.alternate=this.parseMaybeAssign(s),this.finishNode(U,"ConditionalExpression")}return R},Oe.parseExprOps=function(s,h){var v=this.start,I=this.startLoc,R=this.parseMaybeUnary(h,!1,!1,s);return this.checkExpressionErrors(h)||R.start===v&&R.type==="ArrowFunctionExpression"?R:this.parseExprOp(R,v,I,-1,s)},Oe.parseExprOp=function(s,h,v,I,R){var U=this.type.binop;if(U!=null&&(!R||this.type!==f._in)&&U>I){var Z=this.type===f.logicalOR||this.type===f.logicalAND,fe=this.type===f.coalesce;fe&&(U=f.logicalAND.binop);var me=this.value;this.next();var De=this.start,Ve=this.startLoc,ot=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,R),De,Ve,U,R),wt=this.buildBinary(h,v,s,ot,me,Z||fe);return(Z&&this.type===f.coalesce||fe&&(this.type===f.logicalOR||this.type===f.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(wt,h,v,I,R)}return s},Oe.buildBinary=function(s,h,v,I,R,U){I.type==="PrivateIdentifier"&&this.raise(I.start,"Private identifier can only be left side of binary expression");var Z=this.startNodeAt(s,h);return Z.left=v,Z.operator=R,Z.right=I,this.finishNode(Z,U?"LogicalExpression":"BinaryExpression")},Oe.parseMaybeUnary=function(s,h,v,I){var R=this.start,U=this.startLoc,Z;if(this.isContextual("await")&&this.canAwait)Z=this.parseAwait(I),h=!0;else if(this.type.prefix){var fe=this.startNode(),me=this.type===f.incDec;fe.operator=this.value,fe.prefix=!0,this.next(),fe.argument=this.parseMaybeUnary(null,!0,me,I),this.checkExpressionErrors(s,!0),me?this.checkLValSimple(fe.argument):this.strict&&fe.operator==="delete"&&Wn(fe.argument)?this.raiseRecoverable(fe.start,"Deleting local variable in strict mode"):fe.operator==="delete"&&mn(fe.argument)?this.raiseRecoverable(fe.start,"Private fields can not be deleted"):h=!0,Z=this.finishNode(fe,me?"UpdateExpression":"UnaryExpression")}else if(!h&&this.type===f.privateId)(I||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),Z=this.parsePrivateIdent(),this.type!==f._in&&this.unexpected();else{if(Z=this.parseExprSubscripts(s,I),this.checkExpressionErrors(s))return Z;for(;this.type.postfix&&!this.canInsertSemicolon();){var De=this.startNodeAt(R,U);De.operator=this.value,De.prefix=!1,De.argument=Z,this.checkLValSimple(Z),this.next(),Z=this.finishNode(De,"UpdateExpression")}}if(!v&&this.eat(f.starstar))if(h)this.unexpected(this.lastTokStart);else return this.buildBinary(R,U,Z,this.parseMaybeUnary(null,!1,!1,I),"**",!1);else return Z};function Wn(s){return s.type==="Identifier"||s.type==="ParenthesizedExpression"&&Wn(s.expression)}function mn(s){return s.type==="MemberExpression"&&s.property.type==="PrivateIdentifier"||s.type==="ChainExpression"&&mn(s.expression)||s.type==="ParenthesizedExpression"&&mn(s.expression)}Oe.parseExprSubscripts=function(s,h){var v=this.start,I=this.startLoc,R=this.parseExprAtom(s,h);if(R.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return R;var U=this.parseSubscripts(R,v,I,!1,h);return s&&U.type==="MemberExpression"&&(s.parenthesizedAssign>=U.start&&(s.parenthesizedAssign=-1),s.parenthesizedBind>=U.start&&(s.parenthesizedBind=-1),s.trailingComma>=U.start&&(s.trailingComma=-1)),U},Oe.parseSubscripts=function(s,h,v,I,R){for(var U=this.options.ecmaVersion>=8&&s.type==="Identifier"&&s.name==="async"&&this.lastTokEnd===s.end&&!this.canInsertSemicolon()&&s.end-s.start===5&&this.potentialArrowAt===s.start,Z=!1;;){var fe=this.parseSubscript(s,h,v,I,U,Z,R);if(fe.optional&&(Z=!0),fe===s||fe.type==="ArrowFunctionExpression"){if(Z){var me=this.startNodeAt(h,v);me.expression=fe,fe=this.finishNode(me,"ChainExpression")}return fe}s=fe}},Oe.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(f.arrow)},Oe.parseSubscriptAsyncArrow=function(s,h,v,I){return this.parseArrowExpression(this.startNodeAt(s,h),v,!0,I)},Oe.parseSubscript=function(s,h,v,I,R,U,Z){var fe=this.options.ecmaVersion>=11,me=fe&&this.eat(f.questionDot);I&&me&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var De=this.eat(f.bracketL);if(De||me&&this.type!==f.parenL&&this.type!==f.backQuote||this.eat(f.dot)){var Ve=this.startNodeAt(h,v);Ve.object=s,De?(Ve.property=this.parseExpression(),this.expect(f.bracketR)):this.type===f.privateId&&s.type!=="Super"?Ve.property=this.parsePrivateIdent():Ve.property=this.parseIdent(this.options.allowReserved!=="never"),Ve.computed=!!De,fe&&(Ve.optional=me),s=this.finishNode(Ve,"MemberExpression")}else if(!I&&this.eat(f.parenL)){var ot=new ct,wt=this.yieldPos,Oi=this.awaitPos,ti=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var pr=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1,ot);if(R&&!me&&this.shouldParseAsyncArrow())return this.checkPatternErrors(ot,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=wt,this.awaitPos=Oi,this.awaitIdentPos=ti,this.parseSubscriptAsyncArrow(h,v,pr,Z);this.checkExpressionErrors(ot,!0),this.yieldPos=wt||this.yieldPos,this.awaitPos=Oi||this.awaitPos,this.awaitIdentPos=ti||this.awaitIdentPos;var ni=this.startNodeAt(h,v);ni.callee=s,ni.arguments=pr,fe&&(ni.optional=me),s=this.finishNode(ni,"CallExpression")}else if(this.type===f.backQuote){(me||U)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var ii=this.startNodeAt(h,v);ii.tag=s,ii.quasi=this.parseTemplate({isTagged:!0}),s=this.finishNode(ii,"TaggedTemplateExpression")}return s},Oe.parseExprAtom=function(s,h,v){this.type===f.slash&&this.readRegexp();var I,R=this.potentialArrowAt===this.start;switch(this.type){case f._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),I=this.startNode(),this.next(),this.type===f.parenL&&!this.allowDirectSuper&&this.raise(I.start,"super() call outside constructor of a subclass"),this.type!==f.dot&&this.type!==f.bracketL&&this.type!==f.parenL&&this.unexpected(),this.finishNode(I,"Super");case f._this:return I=this.startNode(),this.next(),this.finishNode(I,"ThisExpression");case f.name:var U=this.start,Z=this.startLoc,fe=this.containsEsc,me=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!fe&&me.name==="async"&&!this.canInsertSemicolon()&&this.eat(f._function))return this.overrideContext(et.f_expr),this.parseFunction(this.startNodeAt(U,Z),0,!1,!0,h);if(R&&!this.canInsertSemicolon()){if(this.eat(f.arrow))return this.parseArrowExpression(this.startNodeAt(U,Z),[me],!1,h);if(this.options.ecmaVersion>=8&&me.name==="async"&&this.type===f.name&&!fe&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return me=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(f.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(U,Z),[me],!0,h)}return me;case f.regexp:var De=this.value;return I=this.parseLiteral(De.value),I.regex={pattern:De.pattern,flags:De.flags},I;case f.num:case f.string:return this.parseLiteral(this.value);case f._null:case f._true:case f._false:return I=this.startNode(),I.value=this.type===f._null?null:this.type===f._true,I.raw=this.type.keyword,this.next(),this.finishNode(I,"Literal");case f.parenL:var Ve=this.start,ot=this.parseParenAndDistinguishExpression(R,h);return s&&(s.parenthesizedAssign<0&&!this.isSimpleAssignTarget(ot)&&(s.parenthesizedAssign=Ve),s.parenthesizedBind<0&&(s.parenthesizedBind=Ve)),ot;case f.bracketL:return I=this.startNode(),this.next(),I.elements=this.parseExprList(f.bracketR,!0,!0,s),this.finishNode(I,"ArrayExpression");case f.braceL:return this.overrideContext(et.b_expr),this.parseObj(!1,s);case f._function:return I=this.startNode(),this.next(),this.parseFunction(I,0);case f._class:return this.parseClass(this.startNode(),!1);case f._new:return this.parseNew();case f.backQuote:return this.parseTemplate();case f._import:return this.options.ecmaVersion>=11?this.parseExprImport(v):this.unexpected();default:return this.parseExprAtomDefault()}},Oe.parseExprAtomDefault=function(){this.unexpected()},Oe.parseExprImport=function(s){var h=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===f.parenL&&!s)return this.parseDynamicImport(h);if(this.type===f.dot){var v=this.startNodeAt(h.start,h.loc&&h.loc.start);return v.name="import",h.meta=this.finishNode(v,"Identifier"),this.parseImportMeta(h)}else this.unexpected()},Oe.parseDynamicImport=function(s){if(this.next(),s.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(f.parenR)?s.options=null:(this.expect(f.comma),this.afterTrailingComma(f.parenR)?s.options=null:(s.options=this.parseMaybeAssign(),this.eat(f.parenR)||(this.expect(f.comma),this.afterTrailingComma(f.parenR)||this.unexpected())));else if(!this.eat(f.parenR)){var h=this.start;this.eat(f.comma)&&this.eat(f.parenR)?this.raiseRecoverable(h,"Trailing comma is not allowed in import()"):this.unexpected(h)}return this.finishNode(s,"ImportExpression")},Oe.parseImportMeta=function(s){this.next();var h=this.containsEsc;return s.property=this.parseIdent(!0),s.property.name!=="meta"&&this.raiseRecoverable(s.property.start,"The only valid meta property for import is 'import.meta'"),h&&this.raiseRecoverable(s.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(s.start,"Cannot use 'import.meta' outside a module"),this.finishNode(s,"MetaProperty")},Oe.parseLiteral=function(s){var h=this.startNode();return h.value=s,h.raw=this.input.slice(this.start,this.end),h.raw.charCodeAt(h.raw.length-1)===110&&(h.bigint=h.value!=null?h.value.toString():h.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(h,"Literal")},Oe.parseParenExpression=function(){this.expect(f.parenL);var s=this.parseExpression();return this.expect(f.parenR),s},Oe.shouldParseArrow=function(s){return!this.canInsertSemicolon()},Oe.parseParenAndDistinguishExpression=function(s,h){var v=this.start,I=this.startLoc,R,U=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var Z=this.start,fe=this.startLoc,me=[],De=!0,Ve=!1,ot=new ct,wt=this.yieldPos,Oi=this.awaitPos,ti;for(this.yieldPos=0,this.awaitPos=0;this.type!==f.parenR;)if(De?De=!1:this.expect(f.comma),U&&this.afterTrailingComma(f.parenR,!0)){Ve=!0;break}else if(this.type===f.ellipsis){ti=this.start,me.push(this.parseParenItem(this.parseRestBinding())),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else me.push(this.parseMaybeAssign(!1,ot,this.parseParenItem));var pr=this.lastTokEnd,ni=this.lastTokEndLoc;if(this.expect(f.parenR),s&&this.shouldParseArrow(me)&&this.eat(f.arrow))return this.checkPatternErrors(ot,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=wt,this.awaitPos=Oi,this.parseParenArrowList(v,I,me,h);(!me.length||Ve)&&this.unexpected(this.lastTokStart),ti&&this.unexpected(ti),this.checkExpressionErrors(ot,!0),this.yieldPos=wt||this.yieldPos,this.awaitPos=Oi||this.awaitPos,me.length>1?(R=this.startNodeAt(Z,fe),R.expressions=me,this.finishNodeAt(R,"SequenceExpression",pr,ni)):R=me[0]}else R=this.parseParenExpression();if(this.options.preserveParens){var ii=this.startNodeAt(v,I);return ii.expression=R,this.finishNode(ii,"ParenthesizedExpression")}else return R},Oe.parseParenItem=function(s){return s},Oe.parseParenArrowList=function(s,h,v,I){return this.parseArrowExpression(this.startNodeAt(s,h),v,!1,I)};var Ni=[];Oe.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var s=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===f.dot){var h=this.startNodeAt(s.start,s.loc&&s.loc.start);h.name="new",s.meta=this.finishNode(h,"Identifier"),this.next();var v=this.containsEsc;return s.property=this.parseIdent(!0),s.property.name!=="target"&&this.raiseRecoverable(s.property.start,"The only valid meta property for new is 'new.target'"),v&&this.raiseRecoverable(s.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(s.start,"'new.target' can only be used in functions and class static block"),this.finishNode(s,"MetaProperty")}var I=this.start,R=this.startLoc;return s.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),I,R,!0,!1),this.eat(f.parenL)?s.arguments=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1):s.arguments=Ni,this.finishNode(s,"NewExpression")},Oe.parseTemplateElement=function(s){var h=s.isTagged,v=this.startNode();return this.type===f.invalidTemplate?(h||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),v.value={raw:this.value.replace(/\r\n?/g,`
|
|
72
|
+
`),cooked:null}):v.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
73
|
+
`),cooked:this.value},this.next(),v.tail=this.type===f.backQuote,this.finishNode(v,"TemplateElement")},Oe.parseTemplate=function(s){s===void 0&&(s={});var h=s.isTagged;h===void 0&&(h=!1);var v=this.startNode();this.next(),v.expressions=[];var I=this.parseTemplateElement({isTagged:h});for(v.quasis=[I];!I.tail;)this.type===f.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(f.dollarBraceL),v.expressions.push(this.parseExpression()),this.expect(f.braceR),v.quasis.push(I=this.parseTemplateElement({isTagged:h}));return this.next(),this.finishNode(v,"TemplateLiteral")},Oe.isAsyncProp=function(s){return!s.computed&&s.key.type==="Identifier"&&s.key.name==="async"&&(this.type===f.name||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===f.star)&&!T.test(this.input.slice(this.lastTokEnd,this.start))},Oe.parseObj=function(s,h){var v=this.startNode(),I=!0,R={};for(v.properties=[],this.next();!this.eat(f.braceR);){if(I)I=!1;else if(this.expect(f.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(f.braceR))break;var U=this.parseProperty(s,h);s||this.checkPropClash(U,R,h),v.properties.push(U)}return this.finishNode(v,s?"ObjectPattern":"ObjectExpression")},Oe.parseProperty=function(s,h){var v=this.startNode(),I,R,U,Z;if(this.options.ecmaVersion>=9&&this.eat(f.ellipsis))return s?(v.argument=this.parseIdent(!1),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(v,"RestElement")):(v.argument=this.parseMaybeAssign(!1,h),this.type===f.comma&&h&&h.trailingComma<0&&(h.trailingComma=this.start),this.finishNode(v,"SpreadElement"));this.options.ecmaVersion>=6&&(v.method=!1,v.shorthand=!1,(s||h)&&(U=this.start,Z=this.startLoc),s||(I=this.eat(f.star)));var fe=this.containsEsc;return this.parsePropertyName(v),!s&&!fe&&this.options.ecmaVersion>=8&&!I&&this.isAsyncProp(v)?(R=!0,I=this.options.ecmaVersion>=9&&this.eat(f.star),this.parsePropertyName(v)):R=!1,this.parsePropertyValue(v,s,I,R,U,Z,h,fe),this.finishNode(v,"Property")},Oe.parseGetterSetter=function(s){var h=s.key.name;this.parsePropertyName(s),s.value=this.parseMethod(!1),s.kind=h;var v=s.kind==="get"?0:1;if(s.value.params.length!==v){var I=s.value.start;s.kind==="get"?this.raiseRecoverable(I,"getter should have no params"):this.raiseRecoverable(I,"setter should have exactly one param")}else s.kind==="set"&&s.value.params[0].type==="RestElement"&&this.raiseRecoverable(s.value.params[0].start,"Setter cannot use rest params")},Oe.parsePropertyValue=function(s,h,v,I,R,U,Z,fe){(v||I)&&this.type===f.colon&&this.unexpected(),this.eat(f.colon)?(s.value=h?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,Z),s.kind="init"):this.options.ecmaVersion>=6&&this.type===f.parenL?(h&&this.unexpected(),s.method=!0,s.value=this.parseMethod(v,I),s.kind="init"):!h&&!fe&&this.options.ecmaVersion>=5&&!s.computed&&s.key.type==="Identifier"&&(s.key.name==="get"||s.key.name==="set")&&this.type!==f.comma&&this.type!==f.braceR&&this.type!==f.eq?((v||I)&&this.unexpected(),this.parseGetterSetter(s)):this.options.ecmaVersion>=6&&!s.computed&&s.key.type==="Identifier"?((v||I)&&this.unexpected(),this.checkUnreserved(s.key),s.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=R),h?s.value=this.parseMaybeDefault(R,U,this.copyNode(s.key)):this.type===f.eq&&Z?(Z.shorthandAssign<0&&(Z.shorthandAssign=this.start),s.value=this.parseMaybeDefault(R,U,this.copyNode(s.key))):s.value=this.copyNode(s.key),s.kind="init",s.shorthand=!0):this.unexpected()},Oe.parsePropertyName=function(s){if(this.options.ecmaVersion>=6){if(this.eat(f.bracketL))return s.computed=!0,s.key=this.parseMaybeAssign(),this.expect(f.bracketR),s.key;s.computed=!1}return s.key=this.type===f.num||this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},Oe.initFunction=function(s){s.id=null,this.options.ecmaVersion>=6&&(s.generator=s.expression=!1),this.options.ecmaVersion>=8&&(s.async=!1)},Oe.parseMethod=function(s,h,v){var I=this.startNode(),R=this.yieldPos,U=this.awaitPos,Z=this.awaitIdentPos;return this.initFunction(I),this.options.ecmaVersion>=6&&(I.generator=s),this.options.ecmaVersion>=8&&(I.async=!!h),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Pe(h,I.generator)|we|(v?xe:0)),this.expect(f.parenL),I.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(I,!1,!0,!1),this.yieldPos=R,this.awaitPos=U,this.awaitIdentPos=Z,this.finishNode(I,"FunctionExpression")},Oe.parseArrowExpression=function(s,h,v,I){var R=this.yieldPos,U=this.awaitPos,Z=this.awaitIdentPos;return this.enterScope(Pe(v,!1)|pe),this.initFunction(s),this.options.ecmaVersion>=8&&(s.async=!!v),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,s.params=this.toAssignableList(h,!0),this.parseFunctionBody(s,!0,!1,I),this.yieldPos=R,this.awaitPos=U,this.awaitIdentPos=Z,this.finishNode(s,"ArrowFunctionExpression")},Oe.parseFunctionBody=function(s,h,v,I){var R=h&&this.type!==f.braceL,U=this.strict,Z=!1;if(R)s.body=this.parseMaybeAssign(I),s.expression=!0,this.checkParams(s,!1);else{var fe=this.options.ecmaVersion>=7&&!this.isSimpleParamList(s.params);(!U||fe)&&(Z=this.strictDirective(this.end),Z&&fe&&this.raiseRecoverable(s.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var me=this.labels;this.labels=[],Z&&(this.strict=!0),this.checkParams(s,!U&&!Z&&!h&&!v&&this.isSimpleParamList(s.params)),this.strict&&s.id&&this.checkLValSimple(s.id,oe),s.body=this.parseBlock(!1,void 0,Z&&!U),s.expression=!1,this.adaptDirectivePrologue(s.body.body),this.labels=me}this.exitScope()},Oe.isSimpleParamList=function(s){for(var h=0,v=s;h<v.length;h+=1){var I=v[h];if(I.type!=="Identifier")return!1}return!0},Oe.checkParams=function(s,h){for(var v=Object.create(null),I=0,R=s.params;I<R.length;I+=1){var U=R[I];this.checkLValInnerPattern(U,Ye,h?null:v)}},Oe.parseExprList=function(s,h,v,I){for(var R=[],U=!0;!this.eat(s);){if(U)U=!1;else if(this.expect(f.comma),h&&this.afterTrailingComma(s))break;var Z=void 0;v&&this.type===f.comma?Z=null:this.type===f.ellipsis?(Z=this.parseSpread(I),I&&this.type===f.comma&&I.trailingComma<0&&(I.trailingComma=this.start)):Z=this.parseMaybeAssign(!1,I),R.push(Z)}return R},Oe.checkUnreserved=function(s){var h=s.start,v=s.end,I=s.name;if(this.inGenerator&&I==="yield"&&this.raiseRecoverable(h,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&I==="await"&&this.raiseRecoverable(h,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Te)&&I==="arguments"&&this.raiseRecoverable(h,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(I==="arguments"||I==="await")&&this.raise(h,"Cannot use "+I+" in class static initialization block"),this.keywords.test(I)&&this.raise(h,"Unexpected keyword '"+I+"'"),!(this.options.ecmaVersion<6&&this.input.slice(h,v).indexOf("\\")!==-1)){var R=this.strict?this.reservedWordsStrict:this.reservedWords;R.test(I)&&(!this.inAsync&&I==="await"&&this.raiseRecoverable(h,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(h,"The keyword '"+I+"' is reserved"))}},Oe.parseIdent=function(s){var h=this.parseIdentNode();return this.next(!!s),this.finishNode(h,"Identifier"),s||(this.checkUnreserved(h),h.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=h.start)),h},Oe.parseIdentNode=function(){var s=this.startNode();return this.type===f.name?s.name=this.value:this.type.keyword?(s.name=this.type.keyword,(s.name==="class"||s.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=f.name):this.unexpected(),s},Oe.parsePrivateIdent=function(){var s=this.startNode();return this.type===f.privateId?s.name=this.value:this.unexpected(),this.next(),this.finishNode(s,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(s.start,"Private field '#"+s.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(s)),s},Oe.parseYield=function(s){this.yieldPos||(this.yieldPos=this.start);var h=this.startNode();return this.next(),this.type===f.semi||this.canInsertSemicolon()||this.type!==f.star&&!this.type.startsExpr?(h.delegate=!1,h.argument=null):(h.delegate=this.eat(f.star),h.argument=this.parseMaybeAssign(s)),this.finishNode(h,"YieldExpression")},Oe.parseAwait=function(s){this.awaitPos||(this.awaitPos=this.start);var h=this.startNode();return this.next(),h.argument=this.parseMaybeUnary(null,!0,!1,s),this.finishNode(h,"AwaitExpression")};var ur=ae.prototype;ur.raise=function(s,h){var v=G(this.input,s);h+=" ("+v.line+":"+v.column+")",this.sourceFile&&(h+=" in "+this.sourceFile);var I=new SyntaxError(h);throw I.pos=s,I.loc=v,I.raisedAt=this.pos,I},ur.raiseRecoverable=ur.raise,ur.curPosition=function(){if(this.options.locations)return new ie(this.curLine,this.pos-this.lineStart)};var _n=ae.prototype,Bg=function(h){this.flags=h,this.var=[],this.lexical=[],this.functions=[]};_n.enterScope=function(s){this.scopeStack.push(new Bg(s))},_n.exitScope=function(){this.scopeStack.pop()},_n.treatFunctionsAsVarInScope=function(s){return s.flags&se||!this.inModule&&s.flags&ee},_n.declareName=function(s,h,v){var I=!1;if(h===Re){var R=this.currentScope();I=R.lexical.indexOf(s)>-1||R.functions.indexOf(s)>-1||R.var.indexOf(s)>-1,R.lexical.push(s),this.inModule&&R.flags&ee&&delete this.undefinedExports[s]}else if(h===xt){var U=this.currentScope();U.lexical.push(s)}else if(h===Fe){var Z=this.currentScope();this.treatFunctionsAsVar?I=Z.lexical.indexOf(s)>-1:I=Z.lexical.indexOf(s)>-1||Z.var.indexOf(s)>-1,Z.functions.push(s)}else for(var fe=this.scopeStack.length-1;fe>=0;--fe){var me=this.scopeStack[fe];if(me.lexical.indexOf(s)>-1&&!(me.flags&re&&me.lexical[0]===s)||!this.treatFunctionsAsVarInScope(me)&&me.functions.indexOf(s)>-1){I=!0;break}if(me.var.push(s),this.inModule&&me.flags&ee&&delete this.undefinedExports[s],me.flags&Te)break}I&&this.raiseRecoverable(v,"Identifier '"+s+"' has already been declared")},_n.checkLocalExport=function(s){this.scopeStack[0].lexical.indexOf(s.name)===-1&&this.scopeStack[0].var.indexOf(s.name)===-1&&(this.undefinedExports[s.name]=s)},_n.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},_n.currentVarScope=function(){for(var s=this.scopeStack.length-1;;s--){var h=this.scopeStack[s];if(h.flags&(Te|Ne|be))return h}},_n.currentThisScope=function(){for(var s=this.scopeStack.length-1;;s--){var h=this.scopeStack[s];if(h.flags&(Te|Ne|be)&&!(h.flags&pe))return h}};var Ti=function(h,v,I){this.type="",this.start=v,this.end=0,h.options.locations&&(this.loc=new P(h,I)),h.options.directSourceFile&&(this.sourceFile=h.options.directSourceFile),h.options.ranges&&(this.range=[v,0])},Pi=ae.prototype;Pi.startNode=function(){return new Ti(this,this.start,this.startLoc)},Pi.startNodeAt=function(s,h){return new Ti(this,s,h)};function Cl(s,h,v,I){return s.type=h,s.end=v,this.options.locations&&(s.loc.end=I),this.options.ranges&&(s.range[1]=v),s}Pi.finishNode=function(s,h){return Cl.call(this,s,h,this.lastTokEnd,this.lastTokEndLoc)},Pi.finishNodeAt=function(s,h,v,I){return Cl.call(this,s,h,v,I)},Pi.copyNode=function(s){var h=new Ti(this,s.start,this.startLoc);for(var v in s)h[v]=s[v];return h};var Hg="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",Il="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",_l=Il+" Extended_Pictographic",Al=_l,Nl=Al+" EBase EComp EMod EPres ExtPict",Tl=Nl,Kg=Tl,Ug={9:Il,10:_l,11:Al,12:Nl,13:Tl,14:Kg},Wg="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",qg={9:"",10:"",11:"",12:"",13:"",14:Wg},Pl="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Ol="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Ll=Ol+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Rl=Ll+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Dl=Rl+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Ml=Dl+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Gg=Ml+" "+Hg,$g={9:Ol,10:Ll,11:Rl,12:Dl,13:Ml,14:Gg},Fl={};function Jg(s){var h=Fl[s]={binary:ue(Ug[s]+" "+Pl),binaryOfStrings:ue(qg[s]),nonBinary:{General_Category:ue(Pl),Script:ue($g[s])}};h.nonBinary.Script_Extensions=h.nonBinary.Script,h.nonBinary.gc=h.nonBinary.General_Category,h.nonBinary.sc=h.nonBinary.Script,h.nonBinary.scx=h.nonBinary.Script_Extensions}for(var za=0,jl=[9,10,11,12,13,14];za<jl.length;za+=1){var Yg=jl[za];Jg(Yg)}var Se=ae.prototype,cr=function(h,v){this.parent=h,this.base=v||this};cr.prototype.separatedFrom=function(h){for(var v=this;v;v=v.parent)for(var I=h;I;I=I.parent)if(v.base===I.base&&v!==I)return!0;return!1},cr.prototype.sibling=function(){return new cr(this.parent,this.base)};var an=function(h){this.parser=h,this.validFlags="gim"+(h.options.ecmaVersion>=6?"uy":"")+(h.options.ecmaVersion>=9?"s":"")+(h.options.ecmaVersion>=13?"d":"")+(h.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Fl[h.options.ecmaVersion>=14?14:h.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};an.prototype.reset=function(h,v,I){var R=I.indexOf("v")!==-1,U=I.indexOf("u")!==-1;this.start=h|0,this.source=v+"",this.flags=I,R&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=U&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=U&&this.parser.options.ecmaVersion>=9)},an.prototype.raise=function(h){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+h)},an.prototype.at=function(h,v){v===void 0&&(v=!1);var I=this.source,R=I.length;if(h>=R)return-1;var U=I.charCodeAt(h);if(!(v||this.switchU)||U<=55295||U>=57344||h+1>=R)return U;var Z=I.charCodeAt(h+1);return Z>=56320&&Z<=57343?(U<<10)+Z-56613888:U},an.prototype.nextIndex=function(h,v){v===void 0&&(v=!1);var I=this.source,R=I.length;if(h>=R)return R;var U=I.charCodeAt(h),Z;return!(v||this.switchU)||U<=55295||U>=57344||h+1>=R||(Z=I.charCodeAt(h+1))<56320||Z>57343?h+1:h+2},an.prototype.current=function(h){return h===void 0&&(h=!1),this.at(this.pos,h)},an.prototype.lookahead=function(h){return h===void 0&&(h=!1),this.at(this.nextIndex(this.pos,h),h)},an.prototype.advance=function(h){h===void 0&&(h=!1),this.pos=this.nextIndex(this.pos,h)},an.prototype.eat=function(h,v){return v===void 0&&(v=!1),this.current(v)===h?(this.advance(v),!0):!1},an.prototype.eatChars=function(h,v){v===void 0&&(v=!1);for(var I=this.pos,R=0,U=h;R<U.length;R+=1){var Z=U[R],fe=this.at(I,v);if(fe===-1||fe!==Z)return!1;I=this.nextIndex(I,v)}return this.pos=I,!0},Se.validateRegExpFlags=function(s){for(var h=s.validFlags,v=s.flags,I=!1,R=!1,U=0;U<v.length;U++){var Z=v.charAt(U);h.indexOf(Z)===-1&&this.raise(s.start,"Invalid regular expression flag"),v.indexOf(Z,U+1)>-1&&this.raise(s.start,"Duplicate regular expression flag"),Z==="u"&&(I=!0),Z==="v"&&(R=!0)}this.options.ecmaVersion>=15&&I&&R&&this.raise(s.start,"Invalid regular expression flag")};function Xg(s){for(var h in s)return!0;return!1}Se.validateRegExpPattern=function(s){this.regexp_pattern(s),!s.switchN&&this.options.ecmaVersion>=9&&Xg(s.groupNames)&&(s.switchN=!0,this.regexp_pattern(s))},Se.regexp_pattern=function(s){s.pos=0,s.lastIntValue=0,s.lastStringValue="",s.lastAssertionIsQuantifiable=!1,s.numCapturingParens=0,s.maxBackReference=0,s.groupNames=Object.create(null),s.backReferenceNames.length=0,s.branchID=null,this.regexp_disjunction(s),s.pos!==s.source.length&&(s.eat(41)&&s.raise("Unmatched ')'"),(s.eat(93)||s.eat(125))&&s.raise("Lone quantifier brackets")),s.maxBackReference>s.numCapturingParens&&s.raise("Invalid escape");for(var h=0,v=s.backReferenceNames;h<v.length;h+=1){var I=v[h];s.groupNames[I]||s.raise("Invalid named capture referenced")}},Se.regexp_disjunction=function(s){var h=this.options.ecmaVersion>=16;for(h&&(s.branchID=new cr(s.branchID,null)),this.regexp_alternative(s);s.eat(124);)h&&(s.branchID=s.branchID.sibling()),this.regexp_alternative(s);h&&(s.branchID=s.branchID.parent),this.regexp_eatQuantifier(s,!0)&&s.raise("Nothing to repeat"),s.eat(123)&&s.raise("Lone quantifier brackets")},Se.regexp_alternative=function(s){for(;s.pos<s.source.length&&this.regexp_eatTerm(s););},Se.regexp_eatTerm=function(s){return this.regexp_eatAssertion(s)?(s.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(s)&&s.switchU&&s.raise("Invalid quantifier"),!0):(s.switchU?this.regexp_eatAtom(s):this.regexp_eatExtendedAtom(s))?(this.regexp_eatQuantifier(s),!0):!1},Se.regexp_eatAssertion=function(s){var h=s.pos;if(s.lastAssertionIsQuantifiable=!1,s.eat(94)||s.eat(36))return!0;if(s.eat(92)){if(s.eat(66)||s.eat(98))return!0;s.pos=h}if(s.eat(40)&&s.eat(63)){var v=!1;if(this.options.ecmaVersion>=9&&(v=s.eat(60)),s.eat(61)||s.eat(33))return this.regexp_disjunction(s),s.eat(41)||s.raise("Unterminated group"),s.lastAssertionIsQuantifiable=!v,!0}return s.pos=h,!1},Se.regexp_eatQuantifier=function(s,h){return h===void 0&&(h=!1),this.regexp_eatQuantifierPrefix(s,h)?(s.eat(63),!0):!1},Se.regexp_eatQuantifierPrefix=function(s,h){return s.eat(42)||s.eat(43)||s.eat(63)||this.regexp_eatBracedQuantifier(s,h)},Se.regexp_eatBracedQuantifier=function(s,h){var v=s.pos;if(s.eat(123)){var I=0,R=-1;if(this.regexp_eatDecimalDigits(s)&&(I=s.lastIntValue,s.eat(44)&&this.regexp_eatDecimalDigits(s)&&(R=s.lastIntValue),s.eat(125)))return R!==-1&&R<I&&!h&&s.raise("numbers out of order in {} quantifier"),!0;s.switchU&&!h&&s.raise("Incomplete quantifier"),s.pos=v}return!1},Se.regexp_eatAtom=function(s){return this.regexp_eatPatternCharacters(s)||s.eat(46)||this.regexp_eatReverseSolidusAtomEscape(s)||this.regexp_eatCharacterClass(s)||this.regexp_eatUncapturingGroup(s)||this.regexp_eatCapturingGroup(s)},Se.regexp_eatReverseSolidusAtomEscape=function(s){var h=s.pos;if(s.eat(92)){if(this.regexp_eatAtomEscape(s))return!0;s.pos=h}return!1},Se.regexp_eatUncapturingGroup=function(s){var h=s.pos;if(s.eat(40)){if(s.eat(63)){if(this.options.ecmaVersion>=16){var v=this.regexp_eatModifiers(s),I=s.eat(45);if(v||I){for(var R=0;R<v.length;R++){var U=v.charAt(R);v.indexOf(U,R+1)>-1&&s.raise("Duplicate regular expression modifiers")}if(I){var Z=this.regexp_eatModifiers(s);!v&&!Z&&s.current()===58&&s.raise("Invalid regular expression modifiers");for(var fe=0;fe<Z.length;fe++){var me=Z.charAt(fe);(Z.indexOf(me,fe+1)>-1||v.indexOf(me)>-1)&&s.raise("Duplicate regular expression modifiers")}}}}if(s.eat(58)){if(this.regexp_disjunction(s),s.eat(41))return!0;s.raise("Unterminated group")}}s.pos=h}return!1},Se.regexp_eatCapturingGroup=function(s){if(s.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(s):s.current()===63&&s.raise("Invalid group"),this.regexp_disjunction(s),s.eat(41))return s.numCapturingParens+=1,!0;s.raise("Unterminated group")}return!1},Se.regexp_eatModifiers=function(s){for(var h="",v=0;(v=s.current())!==-1&&Zg(v);)h+=y(v),s.advance();return h};function Zg(s){return s===105||s===109||s===115}Se.regexp_eatExtendedAtom=function(s){return s.eat(46)||this.regexp_eatReverseSolidusAtomEscape(s)||this.regexp_eatCharacterClass(s)||this.regexp_eatUncapturingGroup(s)||this.regexp_eatCapturingGroup(s)||this.regexp_eatInvalidBracedQuantifier(s)||this.regexp_eatExtendedPatternCharacter(s)},Se.regexp_eatInvalidBracedQuantifier=function(s){return this.regexp_eatBracedQuantifier(s,!0)&&s.raise("Nothing to repeat"),!1},Se.regexp_eatSyntaxCharacter=function(s){var h=s.current();return Vl(h)?(s.lastIntValue=h,s.advance(),!0):!1};function Vl(s){return s===36||s>=40&&s<=43||s===46||s===63||s>=91&&s<=94||s>=123&&s<=125}Se.regexp_eatPatternCharacters=function(s){for(var h=s.pos,v=0;(v=s.current())!==-1&&!Vl(v);)s.advance();return s.pos!==h},Se.regexp_eatExtendedPatternCharacter=function(s){var h=s.current();return h!==-1&&h!==36&&!(h>=40&&h<=43)&&h!==46&&h!==63&&h!==91&&h!==94&&h!==124?(s.advance(),!0):!1},Se.regexp_groupSpecifier=function(s){if(s.eat(63)){this.regexp_eatGroupName(s)||s.raise("Invalid group");var h=this.options.ecmaVersion>=16,v=s.groupNames[s.lastStringValue];if(v)if(h)for(var I=0,R=v;I<R.length;I+=1){var U=R[I];U.separatedFrom(s.branchID)||s.raise("Duplicate capture group name")}else s.raise("Duplicate capture group name");h?(v||(s.groupNames[s.lastStringValue]=[])).push(s.branchID):s.groupNames[s.lastStringValue]=!0}},Se.regexp_eatGroupName=function(s){if(s.lastStringValue="",s.eat(60)){if(this.regexp_eatRegExpIdentifierName(s)&&s.eat(62))return!0;s.raise("Invalid capture group name")}return!1},Se.regexp_eatRegExpIdentifierName=function(s){if(s.lastStringValue="",this.regexp_eatRegExpIdentifierStart(s)){for(s.lastStringValue+=y(s.lastIntValue);this.regexp_eatRegExpIdentifierPart(s);)s.lastStringValue+=y(s.lastIntValue);return!0}return!1},Se.regexp_eatRegExpIdentifierStart=function(s){var h=s.pos,v=this.options.ecmaVersion>=11,I=s.current(v);return s.advance(v),I===92&&this.regexp_eatRegExpUnicodeEscapeSequence(s,v)&&(I=s.lastIntValue),Qg(I)?(s.lastIntValue=I,!0):(s.pos=h,!1)};function Qg(s){return _(s,!0)||s===36||s===95}Se.regexp_eatRegExpIdentifierPart=function(s){var h=s.pos,v=this.options.ecmaVersion>=11,I=s.current(v);return s.advance(v),I===92&&this.regexp_eatRegExpUnicodeEscapeSequence(s,v)&&(I=s.lastIntValue),em(I)?(s.lastIntValue=I,!0):(s.pos=h,!1)};function em(s){return x(s,!0)||s===36||s===95||s===8204||s===8205}Se.regexp_eatAtomEscape=function(s){return this.regexp_eatBackReference(s)||this.regexp_eatCharacterClassEscape(s)||this.regexp_eatCharacterEscape(s)||s.switchN&&this.regexp_eatKGroupName(s)?!0:(s.switchU&&(s.current()===99&&s.raise("Invalid unicode escape"),s.raise("Invalid escape")),!1)},Se.regexp_eatBackReference=function(s){var h=s.pos;if(this.regexp_eatDecimalEscape(s)){var v=s.lastIntValue;if(s.switchU)return v>s.maxBackReference&&(s.maxBackReference=v),!0;if(v<=s.numCapturingParens)return!0;s.pos=h}return!1},Se.regexp_eatKGroupName=function(s){if(s.eat(107)){if(this.regexp_eatGroupName(s))return s.backReferenceNames.push(s.lastStringValue),!0;s.raise("Invalid named reference")}return!1},Se.regexp_eatCharacterEscape=function(s){return this.regexp_eatControlEscape(s)||this.regexp_eatCControlLetter(s)||this.regexp_eatZero(s)||this.regexp_eatHexEscapeSequence(s)||this.regexp_eatRegExpUnicodeEscapeSequence(s,!1)||!s.switchU&&this.regexp_eatLegacyOctalEscapeSequence(s)||this.regexp_eatIdentityEscape(s)},Se.regexp_eatCControlLetter=function(s){var h=s.pos;if(s.eat(99)){if(this.regexp_eatControlLetter(s))return!0;s.pos=h}return!1},Se.regexp_eatZero=function(s){return s.current()===48&&!hr(s.lookahead())?(s.lastIntValue=0,s.advance(),!0):!1},Se.regexp_eatControlEscape=function(s){var h=s.current();return h===116?(s.lastIntValue=9,s.advance(),!0):h===110?(s.lastIntValue=10,s.advance(),!0):h===118?(s.lastIntValue=11,s.advance(),!0):h===102?(s.lastIntValue=12,s.advance(),!0):h===114?(s.lastIntValue=13,s.advance(),!0):!1},Se.regexp_eatControlLetter=function(s){var h=s.current();return zl(h)?(s.lastIntValue=h%32,s.advance(),!0):!1};function zl(s){return s>=65&&s<=90||s>=97&&s<=122}Se.regexp_eatRegExpUnicodeEscapeSequence=function(s,h){h===void 0&&(h=!1);var v=s.pos,I=h||s.switchU;if(s.eat(117)){if(this.regexp_eatFixedHexDigits(s,4)){var R=s.lastIntValue;if(I&&R>=55296&&R<=56319){var U=s.pos;if(s.eat(92)&&s.eat(117)&&this.regexp_eatFixedHexDigits(s,4)){var Z=s.lastIntValue;if(Z>=56320&&Z<=57343)return s.lastIntValue=(R-55296)*1024+(Z-56320)+65536,!0}s.pos=U,s.lastIntValue=R}return!0}if(I&&s.eat(123)&&this.regexp_eatHexDigits(s)&&s.eat(125)&&tm(s.lastIntValue))return!0;I&&s.raise("Invalid unicode escape"),s.pos=v}return!1};function tm(s){return s>=0&&s<=1114111}Se.regexp_eatIdentityEscape=function(s){if(s.switchU)return this.regexp_eatSyntaxCharacter(s)?!0:s.eat(47)?(s.lastIntValue=47,!0):!1;var h=s.current();return h!==99&&(!s.switchN||h!==107)?(s.lastIntValue=h,s.advance(),!0):!1},Se.regexp_eatDecimalEscape=function(s){s.lastIntValue=0;var h=s.current();if(h>=49&&h<=57){do s.lastIntValue=10*s.lastIntValue+(h-48),s.advance();while((h=s.current())>=48&&h<=57);return!0}return!1};var Bl=0,vn=1,Ht=2;Se.regexp_eatCharacterClassEscape=function(s){var h=s.current();if(nm(h))return s.lastIntValue=-1,s.advance(),vn;var v=!1;if(s.switchU&&this.options.ecmaVersion>=9&&((v=h===80)||h===112)){s.lastIntValue=-1,s.advance();var I;if(s.eat(123)&&(I=this.regexp_eatUnicodePropertyValueExpression(s))&&s.eat(125))return v&&I===Ht&&s.raise("Invalid property name"),I;s.raise("Invalid property name")}return Bl};function nm(s){return s===100||s===68||s===115||s===83||s===119||s===87}Se.regexp_eatUnicodePropertyValueExpression=function(s){var h=s.pos;if(this.regexp_eatUnicodePropertyName(s)&&s.eat(61)){var v=s.lastStringValue;if(this.regexp_eatUnicodePropertyValue(s)){var I=s.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(s,v,I),vn}}if(s.pos=h,this.regexp_eatLoneUnicodePropertyNameOrValue(s)){var R=s.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(s,R)}return Bl},Se.regexp_validateUnicodePropertyNameAndValue=function(s,h,v){ne(s.unicodeProperties.nonBinary,h)||s.raise("Invalid property name"),s.unicodeProperties.nonBinary[h].test(v)||s.raise("Invalid property value")},Se.regexp_validateUnicodePropertyNameOrValue=function(s,h){if(s.unicodeProperties.binary.test(h))return vn;if(s.switchV&&s.unicodeProperties.binaryOfStrings.test(h))return Ht;s.raise("Invalid property name")},Se.regexp_eatUnicodePropertyName=function(s){var h=0;for(s.lastStringValue="";Hl(h=s.current());)s.lastStringValue+=y(h),s.advance();return s.lastStringValue!==""};function Hl(s){return zl(s)||s===95}Se.regexp_eatUnicodePropertyValue=function(s){var h=0;for(s.lastStringValue="";im(h=s.current());)s.lastStringValue+=y(h),s.advance();return s.lastStringValue!==""};function im(s){return Hl(s)||hr(s)}Se.regexp_eatLoneUnicodePropertyNameOrValue=function(s){return this.regexp_eatUnicodePropertyValue(s)},Se.regexp_eatCharacterClass=function(s){if(s.eat(91)){var h=s.eat(94),v=this.regexp_classContents(s);return s.eat(93)||s.raise("Unterminated character class"),h&&v===Ht&&s.raise("Negated character class may contain strings"),!0}return!1},Se.regexp_classContents=function(s){return s.current()===93?vn:s.switchV?this.regexp_classSetExpression(s):(this.regexp_nonEmptyClassRanges(s),vn)},Se.regexp_nonEmptyClassRanges=function(s){for(;this.regexp_eatClassAtom(s);){var h=s.lastIntValue;if(s.eat(45)&&this.regexp_eatClassAtom(s)){var v=s.lastIntValue;s.switchU&&(h===-1||v===-1)&&s.raise("Invalid character class"),h!==-1&&v!==-1&&h>v&&s.raise("Range out of order in character class")}}},Se.regexp_eatClassAtom=function(s){var h=s.pos;if(s.eat(92)){if(this.regexp_eatClassEscape(s))return!0;if(s.switchU){var v=s.current();(v===99||Wl(v))&&s.raise("Invalid class escape"),s.raise("Invalid escape")}s.pos=h}var I=s.current();return I!==93?(s.lastIntValue=I,s.advance(),!0):!1},Se.regexp_eatClassEscape=function(s){var h=s.pos;if(s.eat(98))return s.lastIntValue=8,!0;if(s.switchU&&s.eat(45))return s.lastIntValue=45,!0;if(!s.switchU&&s.eat(99)){if(this.regexp_eatClassControlLetter(s))return!0;s.pos=h}return this.regexp_eatCharacterClassEscape(s)||this.regexp_eatCharacterEscape(s)},Se.regexp_classSetExpression=function(s){var h=vn,v;if(!this.regexp_eatClassSetRange(s))if(v=this.regexp_eatClassSetOperand(s)){v===Ht&&(h=Ht);for(var I=s.pos;s.eatChars([38,38]);){if(s.current()!==38&&(v=this.regexp_eatClassSetOperand(s))){v!==Ht&&(h=vn);continue}s.raise("Invalid character in character class")}if(I!==s.pos)return h;for(;s.eatChars([45,45]);)this.regexp_eatClassSetOperand(s)||s.raise("Invalid character in character class");if(I!==s.pos)return h}else s.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(s)){if(v=this.regexp_eatClassSetOperand(s),!v)return h;v===Ht&&(h=Ht)}},Se.regexp_eatClassSetRange=function(s){var h=s.pos;if(this.regexp_eatClassSetCharacter(s)){var v=s.lastIntValue;if(s.eat(45)&&this.regexp_eatClassSetCharacter(s)){var I=s.lastIntValue;return v!==-1&&I!==-1&&v>I&&s.raise("Range out of order in character class"),!0}s.pos=h}return!1},Se.regexp_eatClassSetOperand=function(s){return this.regexp_eatClassSetCharacter(s)?vn:this.regexp_eatClassStringDisjunction(s)||this.regexp_eatNestedClass(s)},Se.regexp_eatNestedClass=function(s){var h=s.pos;if(s.eat(91)){var v=s.eat(94),I=this.regexp_classContents(s);if(s.eat(93))return v&&I===Ht&&s.raise("Negated character class may contain strings"),I;s.pos=h}if(s.eat(92)){var R=this.regexp_eatCharacterClassEscape(s);if(R)return R;s.pos=h}return null},Se.regexp_eatClassStringDisjunction=function(s){var h=s.pos;if(s.eatChars([92,113])){if(s.eat(123)){var v=this.regexp_classStringDisjunctionContents(s);if(s.eat(125))return v}else s.raise("Invalid escape");s.pos=h}return null},Se.regexp_classStringDisjunctionContents=function(s){for(var h=this.regexp_classString(s);s.eat(124);)this.regexp_classString(s)===Ht&&(h=Ht);return h},Se.regexp_classString=function(s){for(var h=0;this.regexp_eatClassSetCharacter(s);)h++;return h===1?vn:Ht},Se.regexp_eatClassSetCharacter=function(s){var h=s.pos;if(s.eat(92))return this.regexp_eatCharacterEscape(s)||this.regexp_eatClassSetReservedPunctuator(s)?!0:s.eat(98)?(s.lastIntValue=8,!0):(s.pos=h,!1);var v=s.current();return v<0||v===s.lookahead()&&rm(v)||am(v)?!1:(s.advance(),s.lastIntValue=v,!0)};function rm(s){return s===33||s>=35&&s<=38||s>=42&&s<=44||s===46||s>=58&&s<=64||s===94||s===96||s===126}function am(s){return s===40||s===41||s===45||s===47||s>=91&&s<=93||s>=123&&s<=125}Se.regexp_eatClassSetReservedPunctuator=function(s){var h=s.current();return sm(h)?(s.lastIntValue=h,s.advance(),!0):!1};function sm(s){return s===33||s===35||s===37||s===38||s===44||s===45||s>=58&&s<=62||s===64||s===96||s===126}Se.regexp_eatClassControlLetter=function(s){var h=s.current();return hr(h)||h===95?(s.lastIntValue=h%32,s.advance(),!0):!1},Se.regexp_eatHexEscapeSequence=function(s){var h=s.pos;if(s.eat(120)){if(this.regexp_eatFixedHexDigits(s,2))return!0;s.switchU&&s.raise("Invalid escape"),s.pos=h}return!1},Se.regexp_eatDecimalDigits=function(s){var h=s.pos,v=0;for(s.lastIntValue=0;hr(v=s.current());)s.lastIntValue=10*s.lastIntValue+(v-48),s.advance();return s.pos!==h};function hr(s){return s>=48&&s<=57}Se.regexp_eatHexDigits=function(s){var h=s.pos,v=0;for(s.lastIntValue=0;Kl(v=s.current());)s.lastIntValue=16*s.lastIntValue+Ul(v),s.advance();return s.pos!==h};function Kl(s){return s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102}function Ul(s){return s>=65&&s<=70?10+(s-65):s>=97&&s<=102?10+(s-97):s-48}Se.regexp_eatLegacyOctalEscapeSequence=function(s){if(this.regexp_eatOctalDigit(s)){var h=s.lastIntValue;if(this.regexp_eatOctalDigit(s)){var v=s.lastIntValue;h<=3&&this.regexp_eatOctalDigit(s)?s.lastIntValue=h*64+v*8+s.lastIntValue:s.lastIntValue=h*8+v}else s.lastIntValue=h;return!0}return!1},Se.regexp_eatOctalDigit=function(s){var h=s.current();return Wl(h)?(s.lastIntValue=h-48,s.advance(),!0):(s.lastIntValue=0,!1)};function Wl(s){return s>=48&&s<=55}Se.regexp_eatFixedHexDigits=function(s,h){var v=s.pos;s.lastIntValue=0;for(var I=0;I<h;++I){var R=s.current();if(!Kl(R))return s.pos=v,!1;s.lastIntValue=16*s.lastIntValue+Ul(R),s.advance()}return!0};var dr=function(h){this.type=h.type,this.value=h.value,this.start=h.start,this.end=h.end,h.options.locations&&(this.loc=new P(h,h.startLoc,h.endLoc)),h.options.ranges&&(this.range=[h.start,h.end])},Ke=ae.prototype;Ke.next=function(s){!s&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new dr(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Ke.getToken=function(){return this.next(),new dr(this)},typeof Symbol<"u"&&(Ke[Symbol.iterator]=function(){var s=this;return{next:function(){var h=s.getToken();return{done:h.type===f.eof,value:h}}}}),Ke.nextToken=function(){var s=this.curContext();if((!s||!s.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(f.eof);if(s.override)return s.override(this);this.readToken(this.fullCharCodeAtPos())},Ke.readToken=function(s){return _(s,this.options.ecmaVersion>=6)||s===92?this.readWord():this.getTokenFromCode(s)},Ke.fullCharCodeAtPos=function(){var s=this.input.charCodeAt(this.pos);if(s<=55295||s>=56320)return s;var h=this.input.charCodeAt(this.pos+1);return h<=56319||h>=57344?s:(s<<10)+h-56613888},Ke.skipBlockComment=function(){var s=this.options.onComment&&this.curPosition(),h=this.pos,v=this.input.indexOf("*/",this.pos+=2);if(v===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=v+2,this.options.locations)for(var I=void 0,R=h;(I=D(this.input,R,this.pos))>-1;)++this.curLine,R=this.lineStart=I;this.options.onComment&&this.options.onComment(!0,this.input.slice(h+2,v),h,this.pos,s,this.curPosition())},Ke.skipLineComment=function(s){for(var h=this.pos,v=this.options.onComment&&this.curPosition(),I=this.input.charCodeAt(this.pos+=s);this.pos<this.input.length&&!V(I);)I=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(h+s,this.pos),h,this.pos,v,this.curPosition())},Ke.skipSpace=function(){e:for(;this.pos<this.input.length;){var s=this.input.charCodeAt(this.pos);switch(s){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(s>8&&s<14||s>=5760&&B.test(String.fromCharCode(s)))++this.pos;else break e}}},Ke.finishToken=function(s,h){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var v=this.type;this.type=s,this.value=h,this.updateContext(v)},Ke.readToken_dot=function(){var s=this.input.charCodeAt(this.pos+1);if(s>=48&&s<=57)return this.readNumber(!0);var h=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&s===46&&h===46?(this.pos+=3,this.finishToken(f.ellipsis)):(++this.pos,this.finishToken(f.dot))},Ke.readToken_slash=function(){var s=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):s===61?this.finishOp(f.assign,2):this.finishOp(f.slash,1)},Ke.readToken_mult_modulo_exp=function(s){var h=this.input.charCodeAt(this.pos+1),v=1,I=s===42?f.star:f.modulo;return this.options.ecmaVersion>=7&&s===42&&h===42&&(++v,I=f.starstar,h=this.input.charCodeAt(this.pos+2)),h===61?this.finishOp(f.assign,v+1):this.finishOp(I,v)},Ke.readToken_pipe_amp=function(s){var h=this.input.charCodeAt(this.pos+1);if(h===s){if(this.options.ecmaVersion>=12){var v=this.input.charCodeAt(this.pos+2);if(v===61)return this.finishOp(f.assign,3)}return this.finishOp(s===124?f.logicalOR:f.logicalAND,2)}return h===61?this.finishOp(f.assign,2):this.finishOp(s===124?f.bitwiseOR:f.bitwiseAND,1)},Ke.readToken_caret=function(){var s=this.input.charCodeAt(this.pos+1);return s===61?this.finishOp(f.assign,2):this.finishOp(f.bitwiseXOR,1)},Ke.readToken_plus_min=function(s){var h=this.input.charCodeAt(this.pos+1);return h===s?h===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||T.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(f.incDec,2):h===61?this.finishOp(f.assign,2):this.finishOp(f.plusMin,1)},Ke.readToken_lt_gt=function(s){var h=this.input.charCodeAt(this.pos+1),v=1;return h===s?(v=s===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+v)===61?this.finishOp(f.assign,v+1):this.finishOp(f.bitShift,v)):h===33&&s===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(h===61&&(v=2),this.finishOp(f.relational,v))},Ke.readToken_eq_excl=function(s){var h=this.input.charCodeAt(this.pos+1);return h===61?this.finishOp(f.equality,this.input.charCodeAt(this.pos+2)===61?3:2):s===61&&h===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(f.arrow)):this.finishOp(s===61?f.eq:f.prefix,1)},Ke.readToken_question=function(){var s=this.options.ecmaVersion;if(s>=11){var h=this.input.charCodeAt(this.pos+1);if(h===46){var v=this.input.charCodeAt(this.pos+2);if(v<48||v>57)return this.finishOp(f.questionDot,2)}if(h===63){if(s>=12){var I=this.input.charCodeAt(this.pos+2);if(I===61)return this.finishOp(f.assign,3)}return this.finishOp(f.coalesce,2)}}return this.finishOp(f.question,1)},Ke.readToken_numberSign=function(){var s=this.options.ecmaVersion,h=35;if(s>=13&&(++this.pos,h=this.fullCharCodeAtPos(),_(h,!0)||h===92))return this.finishToken(f.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+y(h)+"'")},Ke.getTokenFromCode=function(s){switch(s){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(f.parenL);case 41:return++this.pos,this.finishToken(f.parenR);case 59:return++this.pos,this.finishToken(f.semi);case 44:return++this.pos,this.finishToken(f.comma);case 91:return++this.pos,this.finishToken(f.bracketL);case 93:return++this.pos,this.finishToken(f.bracketR);case 123:return++this.pos,this.finishToken(f.braceL);case 125:return++this.pos,this.finishToken(f.braceR);case 58:return++this.pos,this.finishToken(f.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(f.backQuote);case 48:var h=this.input.charCodeAt(this.pos+1);if(h===120||h===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(h===111||h===79)return this.readRadixNumber(8);if(h===98||h===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(s);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(s);case 124:case 38:return this.readToken_pipe_amp(s);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(s);case 60:case 62:return this.readToken_lt_gt(s);case 61:case 33:return this.readToken_eq_excl(s);case 63:return this.readToken_question();case 126:return this.finishOp(f.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+y(s)+"'")},Ke.finishOp=function(s,h){var v=this.input.slice(this.pos,this.pos+h);return this.pos+=h,this.finishToken(s,v)},Ke.readRegexp=function(){for(var s,h,v=this.pos;;){this.pos>=this.input.length&&this.raise(v,"Unterminated regular expression");var I=this.input.charAt(this.pos);if(T.test(I)&&this.raise(v,"Unterminated regular expression"),s)s=!1;else{if(I==="[")h=!0;else if(I==="]"&&h)h=!1;else if(I==="/"&&!h)break;s=I==="\\"}++this.pos}var R=this.input.slice(v,this.pos);++this.pos;var U=this.pos,Z=this.readWord1();this.containsEsc&&this.unexpected(U);var fe=this.regexpState||(this.regexpState=new an(this));fe.reset(v,R,Z),this.validateRegExpFlags(fe),this.validateRegExpPattern(fe);var me=null;try{me=new RegExp(R,Z)}catch{}return this.finishToken(f.regexp,{pattern:R,flags:Z,value:me})},Ke.readInt=function(s,h,v){for(var I=this.options.ecmaVersion>=12&&h===void 0,R=v&&this.input.charCodeAt(this.pos)===48,U=this.pos,Z=0,fe=0,me=0,De=h??1/0;me<De;++me,++this.pos){var Ve=this.input.charCodeAt(this.pos),ot=void 0;if(I&&Ve===95){R&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),fe===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),me===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),fe=Ve;continue}if(Ve>=97?ot=Ve-97+10:Ve>=65?ot=Ve-65+10:Ve>=48&&Ve<=57?ot=Ve-48:ot=1/0,ot>=s)break;fe=Ve,Z=Z*s+ot}return I&&fe===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===U||h!=null&&this.pos-U!==h?null:Z};function om(s,h){return h?parseInt(s,8):parseFloat(s.replace(/_/g,""))}function ql(s){return typeof BigInt!="function"?null:BigInt(s.replace(/_/g,""))}Ke.readRadixNumber=function(s){var h=this.pos;this.pos+=2;var v=this.readInt(s);return v==null&&this.raise(this.start+2,"Expected number in radix "+s),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(v=ql(this.input.slice(h,this.pos)),++this.pos):_(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,v)},Ke.readNumber=function(s){var h=this.pos;!s&&this.readInt(10,void 0,!0)===null&&this.raise(h,"Invalid number");var v=this.pos-h>=2&&this.input.charCodeAt(h)===48;v&&this.strict&&this.raise(h,"Invalid number");var I=this.input.charCodeAt(this.pos);if(!v&&!s&&this.options.ecmaVersion>=11&&I===110){var R=ql(this.input.slice(h,this.pos));return++this.pos,_(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,R)}v&&/[89]/.test(this.input.slice(h,this.pos))&&(v=!1),I===46&&!v&&(++this.pos,this.readInt(10),I=this.input.charCodeAt(this.pos)),(I===69||I===101)&&!v&&(I=this.input.charCodeAt(++this.pos),(I===43||I===45)&&++this.pos,this.readInt(10)===null&&this.raise(h,"Invalid number")),_(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var U=om(this.input.slice(h,this.pos),v);return this.finishToken(f.num,U)},Ke.readCodePoint=function(){var s=this.input.charCodeAt(this.pos),h;if(s===123){this.options.ecmaVersion<6&&this.unexpected();var v=++this.pos;h=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,h>1114111&&this.invalidStringToken(v,"Code point out of bounds")}else h=this.readHexChar(4);return h},Ke.readString=function(s){for(var h="",v=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var I=this.input.charCodeAt(this.pos);if(I===s)break;I===92?(h+=this.input.slice(v,this.pos),h+=this.readEscapedChar(!1),v=this.pos):I===8232||I===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(V(I)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return h+=this.input.slice(v,this.pos++),this.finishToken(f.string,h)};var Gl={};Ke.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(s){if(s===Gl)this.readInvalidTemplateToken();else throw s}this.inTemplateElement=!1},Ke.invalidStringToken=function(s,h){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Gl;this.raise(s,h)},Ke.readTmplToken=function(){for(var s="",h=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var v=this.input.charCodeAt(this.pos);if(v===96||v===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===f.template||this.type===f.invalidTemplate)?v===36?(this.pos+=2,this.finishToken(f.dollarBraceL)):(++this.pos,this.finishToken(f.backQuote)):(s+=this.input.slice(h,this.pos),this.finishToken(f.template,s));if(v===92)s+=this.input.slice(h,this.pos),s+=this.readEscapedChar(!0),h=this.pos;else if(V(v)){switch(s+=this.input.slice(h,this.pos),++this.pos,v){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:s+=`
|
|
74
|
+
`;break;default:s+=String.fromCharCode(v);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),h=this.pos}else++this.pos}},Ke.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(f.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
75
|
+
`&&++this.pos;case`
|
|
76
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},Ke.readEscapedChar=function(s){var h=this.input.charCodeAt(++this.pos);switch(++this.pos,h){case 110:return`
|
|
77
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return y(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),s){var v=this.pos-1;this.invalidStringToken(v,"Invalid escape sequence in template string")}default:if(h>=48&&h<=55){var I=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],R=parseInt(I,8);return R>255&&(I=I.slice(0,-1),R=parseInt(I,8)),this.pos+=I.length-1,h=this.input.charCodeAt(this.pos),(I!=="0"||h===56||h===57)&&(this.strict||s)&&this.invalidStringToken(this.pos-1-I.length,s?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(R)}return V(h)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(h)}},Ke.readHexChar=function(s){var h=this.pos,v=this.readInt(16,s);return v===null&&this.invalidStringToken(h,"Bad character escape sequence"),v},Ke.readWord1=function(){this.containsEsc=!1;for(var s="",h=!0,v=this.pos,I=this.options.ecmaVersion>=6;this.pos<this.input.length;){var R=this.fullCharCodeAtPos();if(x(R,I))this.pos+=R<=65535?1:2;else if(R===92){this.containsEsc=!0,s+=this.input.slice(v,this.pos);var U=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var Z=this.readCodePoint();(h?_:x)(Z,I)||this.invalidStringToken(U,"Invalid Unicode escape"),s+=y(Z),v=this.pos}else break;h=!1}return s+this.input.slice(v,this.pos)},Ke.readWord=function(){var s=this.readWord1(),h=f.name;return this.keywords.test(s)&&(h=A[s]),this.finishToken(h,s)};var $l="8.15.0";ae.acorn={Parser:ae,version:$l,defaultOptions:q,Position:ie,SourceLocation:P,getLineInfo:G,Node:Ti,TokenType:E,tokTypes:f,keywordTypes:A,TokContext:gt,tokContexts:et,isIdentifierChar:x,isIdentifierStart:_,Token:dr,isNewLine:V,lineBreak:T,lineBreakG:L,nonASCIIwhitespace:B};function lm(s,h){return ae.parse(s,h)}function um(s,h,v){return ae.parseExpressionAt(s,h,v)}function cm(s,h){return ae.tokenizer(s,h)}n.Node=Ti,n.Parser=ae,n.Position=ie,n.SourceLocation=P,n.TokContext=gt,n.Token=dr,n.TokenType=E,n.defaultOptions=q,n.getLineInfo=G,n.isIdentifierChar=x,n.isIdentifierStart=_,n.isNewLine=V,n.keywordTypes=A,n.lineBreak=T,n.lineBreakG=L,n.nonASCIIwhitespace=B,n.parse=lm,n.parseExpressionAt=um,n.tokContexts=et,n.tokTypes=f,n.tokenizer=cm,n.version=$l}))})(Vi,Vi.exports)),Vi.exports}var gc;function bw(){return gc||(gc=1,(function(e){const t=vw(),n=/^[\da-fA-F]+$/,i=/^\d+$/,r=new WeakMap;function a(u){u=u.Parser.acorn||u;let c=r.get(u);if(!c){const p=u.tokTypes,d=u.TokContext,m=u.TokenType,g=new d("<tag",!1),_=new d("</tag",!1),x=new d("<tag>...</tag>",!0,!0),E={tc_oTag:g,tc_cTag:_,tc_expr:x},C={jsxName:new m("jsxName"),jsxText:new m("jsxText",{beforeExpr:!0}),jsxTagStart:new m("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new m("jsxTagEnd")};C.jsxTagStart.updateContext=function(){this.context.push(x),this.context.push(g),this.exprAllowed=!1},C.jsxTagEnd.updateContext=function(S){let k=this.context.pop();k===g&&S===p.slash||k===_?(this.context.pop(),this.exprAllowed=this.curContext()===x):this.exprAllowed=!0},c={tokContexts:E,tokTypes:C},r.set(u,c)}return c}function o(u){if(!u)return u;if(u.type==="JSXIdentifier")return u.name;if(u.type==="JSXNamespacedName")return u.namespace.name+":"+u.name.name;if(u.type==="JSXMemberExpression")return o(u.object)+"."+o(u.property)}e.exports=function(u){return u=u||{},function(c){return l({allowNamespaces:u.allowNamespaces!==!1,allowNamespacedObjects:!!u.allowNamespacedObjects},c)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return a(fc()).tokTypes},configurable:!0,enumerable:!0});function l(u,c){const p=c.acorn||fc(),d=a(p),m=p.tokTypes,g=d.tokTypes,_=p.tokContexts,x=d.tokContexts.tc_oTag,E=d.tokContexts.tc_cTag,C=d.tokContexts.tc_expr,S=p.isNewLine,k=p.isIdentifierStart,A=p.isIdentifierChar;return class extends c{static get acornJsx(){return d}jsx_readToken(){let b="",f=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let T=this.input.charCodeAt(this.pos);switch(T){case 60:case 123:return this.pos===this.start?T===60&&this.exprAllowed?(++this.pos,this.finishToken(g.jsxTagStart)):this.getTokenFromCode(T):(b+=this.input.slice(f,this.pos),this.finishToken(g.jsxText,b));case 38:b+=this.input.slice(f,this.pos),b+=this.jsx_readEntity(),f=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(T===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:S(T)?(b+=this.input.slice(f,this.pos),b+=this.jsx_readNewLine(!0),f=this.pos):++this.pos}}}jsx_readNewLine(b){let f=this.input.charCodeAt(this.pos),T;return++this.pos,f===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,T=b?`
|
|
78
|
+
`:`\r
|
|
79
|
+
`):T=String.fromCharCode(f),this.options.locations&&(++this.curLine,this.lineStart=this.pos),T}jsx_readString(b){let f="",T=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let L=this.input.charCodeAt(this.pos);if(L===b)break;L===38?(f+=this.input.slice(T,this.pos),f+=this.jsx_readEntity(),T=this.pos):S(L)?(f+=this.input.slice(T,this.pos),f+=this.jsx_readNewLine(!1),T=this.pos):++this.pos}return f+=this.input.slice(T,this.pos++),this.finishToken(m.string,f)}jsx_readEntity(){let b="",f=0,T,L=this.input[this.pos];L!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let V=++this.pos;for(;this.pos<this.input.length&&f++<10;){if(L=this.input[this.pos++],L===";"){b[0]==="#"?b[1]==="x"?(b=b.substr(2),n.test(b)&&(T=String.fromCharCode(parseInt(b,16)))):(b=b.substr(1),i.test(b)&&(T=String.fromCharCode(parseInt(b,10)))):T=t[b];break}b+=L}return T||(this.pos=V,"&")}jsx_readWord(){let b,f=this.pos;do b=this.input.charCodeAt(++this.pos);while(A(b)||b===45);return this.finishToken(g.jsxName,this.input.slice(f,this.pos))}jsx_parseIdentifier(){let b=this.startNode();return this.type===g.jsxName?b.name=this.value:this.type.keyword?b.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(b,"JSXIdentifier")}jsx_parseNamespacedName(){let b=this.start,f=this.startLoc,T=this.jsx_parseIdentifier();if(!u.allowNamespaces||!this.eat(m.colon))return T;var L=this.startNodeAt(b,f);return L.namespace=T,L.name=this.jsx_parseIdentifier(),this.finishNode(L,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===g.jsxTagEnd)return"";let b=this.start,f=this.startLoc,T=this.jsx_parseNamespacedName();for(this.type===m.dot&&T.type==="JSXNamespacedName"&&!u.allowNamespacedObjects&&this.unexpected();this.eat(m.dot);){let L=this.startNodeAt(b,f);L.object=T,L.property=this.jsx_parseIdentifier(),T=this.finishNode(L,"JSXMemberExpression")}return T}jsx_parseAttributeValue(){switch(this.type){case m.braceL:let b=this.jsx_parseExpressionContainer();return b.expression.type==="JSXEmptyExpression"&&this.raise(b.start,"JSX attributes must only be assigned a non-empty expression"),b;case g.jsxTagStart:case m.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let b=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(b,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let b=this.startNode();return this.next(),b.expression=this.type===m.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(m.braceR),this.finishNode(b,"JSXExpressionContainer")}jsx_parseAttribute(){let b=this.startNode();return this.eat(m.braceL)?(this.expect(m.ellipsis),b.argument=this.parseMaybeAssign(),this.expect(m.braceR),this.finishNode(b,"JSXSpreadAttribute")):(b.name=this.jsx_parseNamespacedName(),b.value=this.eat(m.eq)?this.jsx_parseAttributeValue():null,this.finishNode(b,"JSXAttribute"))}jsx_parseOpeningElementAt(b,f){let T=this.startNodeAt(b,f);T.attributes=[];let L=this.jsx_parseElementName();for(L&&(T.name=L);this.type!==m.slash&&this.type!==g.jsxTagEnd;)T.attributes.push(this.jsx_parseAttribute());return T.selfClosing=this.eat(m.slash),this.expect(g.jsxTagEnd),this.finishNode(T,L?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(b,f){let T=this.startNodeAt(b,f),L=this.jsx_parseElementName();return L&&(T.name=L),this.expect(g.jsxTagEnd),this.finishNode(T,L?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(b,f){let T=this.startNodeAt(b,f),L=[],V=this.jsx_parseOpeningElementAt(b,f),D=null;if(!V.selfClosing){e:for(;;)switch(this.type){case g.jsxTagStart:if(b=this.start,f=this.startLoc,this.next(),this.eat(m.slash)){D=this.jsx_parseClosingElementAt(b,f);break e}L.push(this.jsx_parseElementAt(b,f));break;case g.jsxText:L.push(this.parseExprAtom());break;case m.braceL:L.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}o(D.name)!==o(V.name)&&this.raise(D.start,"Expected corresponding JSX closing tag for <"+o(V.name)+">")}let B=V.name?"Element":"Fragment";return T["opening"+B]=V,T["closing"+B]=D,T.children=L,this.type===m.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(T,"JSX"+B)}jsx_parseText(){let b=this.parseLiteral(this.value);return b.type="JSXText",b}jsx_parseElement(){let b=this.start,f=this.startLoc;return this.next(),this.jsx_parseElementAt(b,f)}parseExprAtom(b){return this.type===g.jsxText?this.jsx_parseText():this.type===g.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(b)}readToken(b){let f=this.curContext();if(f===C)return this.jsx_readToken();if(f===x||f===E){if(k(b))return this.jsx_readWord();if(b==62)return++this.pos,this.finishToken(g.jsxTagEnd);if((b===34||b===39)&&f==x)return this.jsx_readString(b)}return b===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(g.jsxTagStart)):super.readToken(b)}updateContext(b){if(this.type==m.braceL){var f=this.curContext();f==x?this.context.push(_.b_expr):f==C?this.context.push(_.b_tmpl):super.updateContext(b),this.exprAllowed=!0}else if(this.type===m.slash&&b===g.jsxTagStart)this.context.length-=2,this.context.push(E),this.exprAllowed=!1;else return super.updateContext(b)}}}})(ss)),ss.exports}var yw=bw();const ww=ff(yw),St=Un(/[A-Za-z]/),Rt=Un(/[\dA-Za-z]/),kw=Un(/[#-'*+\--9=?A-Z^-~]/);function pa(e){return e!==null&&(e<32||e===127)}const Xs=Un(/\d/),Sw=Un(/[\dA-Fa-f]/),Ew=Un(/[!-/:-@[-`{-~]/);function Ae(e){return e!==null&&e<-2}function Je(e){return e!==null&&(e<0||e===32)}function je(e){return e===-2||e===-1||e===32}const La=Un(new RegExp("\\p{P}|\\p{S}","u")),Ct=Un(/\s/);function Un(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function He(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(u){return je(u)?(e.enter(n),l(u)):t(u)}function l(u){return je(u)&&a++<r?(e.consume(u),l):(e.exit(n),t(u))}}const Cw={}.hasOwnProperty,Iw=Symbol("continue"),ls=Symbol("exit"),_w=Symbol("skip");function Aw(e,t){let n,i;typeof t=="function"?n=t:t&&typeof t=="object"&&(t.enter&&(n=t.enter),t.leave&&(i=t.leave)),r(e,void 0,void 0,[])();function r(a,o,l,u){return us(a)&&(c.displayName="node ("+a.type+")"),c;function c(){const p=n?mc(n(a,o,l,u)):[];if(p[0]===ls)return p;if(p[0]!==_w){let d;for(d in a)if(Cw.call(a,d)&&a[d]&&typeof a[d]=="object"&&d!=="data"&&d!=="position"){const m=u.concat(a),g=a[d];if(Array.isArray(g)){const _=g;let x=0;for(;x>-1&&x<_.length;){const E=_[x];if(us(E)){const C=r(E,d,x,m)();if(C[0]===ls)return C;x=typeof C[1]=="number"?C[1]:x+1}else x++}}else if(us(g)){const _=r(g,d,void 0,m)();if(_[0]===ls)return _}}}return i?mc(i(a,o,l,u)):p}}}function mc(e){return Array.isArray(e)?e:typeof e=="number"?[Iw,e]:[e]}function us(e){return!!(e&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.length>0)}function gf(e,t){const n=t.prefix||"",i=t.suffix||"",r=Object.assign({},t.acornOptions),a=[],o=[],l=r.onComment,u=r.onToken;let c=!1,p,d;const m=Object.assign({},r,{onComment:a,preserveParens:!0});u&&(m.onToken=o);const g=Nw(e,t.tokenTypes),_=g.value,x=n+_+i,E=t.expression&&vc(_);if(E&&!t.allowEmpty)throw new Qe("Unexpected empty expression",{place:S(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{p=t.expression&&!E?t.acorn.parseExpressionAt(x,0,m):t.acorn.parse(x,m)}catch(k){const A=k,b=S(A.pos);A.message=String(A.message).replace(/ \(\d+:\d+\)$/,""),A.pos=b.offset,A.loc={line:b.line,column:b.column-1},d=A,c=A.raisedAt>=n.length+_.length||A.message==="Unterminated comment"}if(p&&t.expression&&!E)if(vc(x.slice(p.end,x.length-i.length)))p={type:"Program",start:0,end:n.length+_.length,body:[{type:"ExpressionStatement",expression:p,start:0,end:n.length+_.length}],sourceType:"module",comments:[]};else{const k=S(p.end),A=new Error("Unexpected content after expression");A.pos=k.offset,A.loc={line:k.line,column:k.column-1},d=A,p=void 0}if(p){if(p.comments=a,Aw(p,function(k,A,b,f){let T=f[f.length-1],L=A;k.type==="ParenthesizedExpression"&&T&&L&&(typeof b=="number"&&(T=T[L],L=b),T[L]=k.expression),C(k)}),Array.isArray(l))l.push(...a);else if(typeof l=="function")for(const k of a)l(k.type==="Block",k.value,k.start,k.end,k.loc.start,k.loc.end);for(const k of o)k.end<=n.length||k.start-n.length>=_.length||(C(k),Array.isArray(u)?u.push(k):u(k))}return{estree:p,error:d,swallow:c};function C(k){const A=S(k.start),b=S(k.end);k.start=A.offset,k.end=b.offset,k.loc={start:{line:A.line,column:A.column-1,offset:A.offset},end:{line:b.line,column:b.column-1,offset:b.offset}},k.range=[k.start,k.end]}function S(k){let A=k-n.length;A<0?A=0:A>_.length&&(A=_.length);let b=Tw(g.stops,A);return b||(b={line:t.start.line,column:t.start.column,offset:t.start.offset}),b}}function vc(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function Nw(e,t){const n={value:"",stops:[]};let i=-1;for(;++i<e.length;){const r=e[i];if(r[0]==="enter"){const a=r[1].type;if(a==="lineEnding"||t.includes(a)){const o=r[2].sliceStream(r[1]);for(;o.length>0&&o[0]===-1;)o.shift();const l=Pw(o);n.stops.push([n.value.length,r[1].start]),n.value+=l,n.stops.push([n.value.length,r[1].end])}}}return n}function Tw(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(n===0)return;const[i,r]=e[n-1],a=t-i;return{line:r.line,column:r.column+a,offset:r.offset+a}}function Pw(e){let t=-1;const n=[];let i;for(;++t<e.length;){const r=e[t];let a;if(typeof r=="string")a=r;else switch(r){case-5:{a="\r";break}case-4:{a=`
|
|
80
|
+
`;break}case-3:{a=`\r
|
|
81
|
+
`;break}case-2:{a=" ";break}case-1:{if(i)continue;a=" ";break}default:a=String.fromCharCode(r)}i=r===-2,n.push(a)}return n.join("")}function qr(e){const t=e||{},n=t.loc||{},i=t.range||[void 0,void 0],r=xc(n.start,i[0]||t.start),a=xc(n.end,i[1]||t.end);if(r&&a)return{start:r,end:a}}function xc(e,t){if(e&&typeof e=="object"){const n="line"in e?cs(e.line):void 0,i="column"in e?cs(e.column):void 0;if(n&&i!==void 0)return{line:n,column:i+1,offset:cs(t)}}}function cs(e){return typeof e=="number"&&e>-1?e:void 0}const Ow=2,mi="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",Lw="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",Rw="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",bc="#unexpected-type-in-code-expected-an-object-spread-spread",Dw="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",Mw="#could-not-parse-expression-with-acorn";function fa(e,t,n,i,r,a,o,l,u,c,p){const d=this,m=this.events.length+3;let g=0,_,x;return E;function E(A){return e.enter(n),e.enter(i),e.consume(A),e.exit(i),_=d.now(),C}function C(A){if(A===null){if(x)throw x;const b=new Qe("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:d.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw b.url=mi+Lw,b}if(Ae(A))return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),k;if(A===125&&g===0){const b=a?Fw.call(d,a,o,r,m,_,c||!1,u||!1):{type:"ok",estree:void 0};if(b.type==="ok"){e.enter(i),e.consume(A),e.exit(i);const f=e.exit(n);return l&&b.estree&&Object.assign(f,{estree:b.estree}),t}return x=b.message,e.enter(r),e.consume(A),S}return e.enter(r),S(A)}function S(A){return A===125&&g===0||A===null||Ae(A)?(e.exit(r),C(A)):(A===123&&!a?g+=1:A===125&&(g-=1),e.consume(A),S)}function k(A){const b=d.now();if(b.line!==_.line&&!p&&d.parser.lazy[b.line]){const f=new Qe("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:d.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw f.url=mi+Rw,f}return je(A)?He(e,C,"linePrefix",Ow+1)(A):C(A)}}function Fw(e,t,n,i,r,a,o){const l=gf(this.events.slice(i),{acorn:e,tokenTypes:[n],acornOptions:t,start:r,expression:!0,allowEmpty:a,prefix:o?"({":"",suffix:o?"})":""}),u=l.estree;if(o&&u){const c=u.body[0];if(c.type!=="ExpressionStatement"||c.expression.type!=="ObjectExpression"){const p=qr(c),d=new Qe("Unexpected `"+c.type+"` in code: expected an object spread (`{...spread}`)",{place:p.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw d.url=mi+bc,d}if(c.expression.properties[1]){const p=qr(c.expression.properties[1]),d=new Qe("Unexpected extra content in spread: only a single spread is supported",{place:p.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw d.url=mi+Dw,d}if(c.expression.properties[0]&&c.expression.properties[0].type!=="SpreadElement"){const p=qr(c.expression.properties[0]),d=new Qe("Unexpected `"+c.expression.properties[0].type+"` in code: only spread elements are supported",{place:p.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw d.url=mi+bc,d}}if(l.error){const c=new Qe("Could not parse expression with acorn",{cause:l.error,place:{line:l.error.loc.line,column:l.error.loc.column+1,offset:l.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return c.url=mi+Mw,{type:"nok",message:c}}return{type:"ok",estree:u}}function jw(e){const t=e||{},n=t.addResult,i=t.acorn,r=t.spread;let a=t.allowEmpty,o;if(a==null&&(a=!0),i){if(!i.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");o=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions)}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{123:{name:"mdxFlowExpression",tokenize:l,concrete:!0}},text:{123:{name:"mdxTextExpression",tokenize:u}}};function l(c,p,d){const m=this;return g;function g(C){return _(C)}function _(C){return fa.call(m,c,x,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",i,o,n,r,a)(C)}function x(C){return je(C)?He(c,E,"whitespace")(C):E(C)}function E(C){const S=m.parser.constructs.flow[60],A=(Array.isArray(S)?S:S?[S]:[]).find(function(b){return b.name==="mdxJsxFlowTag"});return C===60&&A?c.attempt(A,E,d)(C):C===null||Ae(C)?p(C):d(C)}}function u(c,p){const d=this;return m;function m(g){return fa.call(d,c,p,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",i,o,n,r,a,!0)(g)}}}const Vw=/[$_\p{ID_Start}]/u,zw=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Bw=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Hw={};function Yt(e){return e?Vw.test(String.fromCodePoint(e)):!1}function Mi(e,t){const i=(t||Hw).jsx?Bw:zw;return e?i.test(String.fromCodePoint(e)):!1}const yc="https://github.com/micromark/micromark-extension-mdx-jsx";function mf(e,t,n,i,r,a,o,l,u,c,p,d,m,g,_,x,E,C,S,k,A,b,f,T,L,V,D,B,j,$,K,W){const ne=this;let te,J;return ue;function ue(O){return e.enter(l),e.enter(u),e.consume(O),e.exit(u),y}function y(O){return Je(O)?n(O):(te=X,Fe(O))}function X(O){if(O===47)return e.enter(c),e.consume(O),e.exit(c),te=ie,Fe;if(O===62)return Re(O);if(O!==null&&O>=0&&Yt(O))return e.enter(d),e.enter(m),e.consume(O),P;ae(O,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(O===33?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function ie(O){if(O===62)return Re(O);if(O!==null&&O>=0&&Yt(O))return e.enter(d),e.enter(m),e.consume(O),P;ae(O,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(O===42||O===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function P(O){if(O!==null&&O>=0&&Mi(O,{jsx:!0}))return e.consume(O),P;if(O===46||O===47||O===58||O===62||O===123||Je(O)||Ct(O))return e.exit(m),te=G,Fe(O);ae(O,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(O===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function G(O){if(O===46)return e.enter(g),e.consume(O),e.exit(g),te=q,Fe;if(O===58)return e.enter(x),e.consume(O),e.exit(x),te=Y,Fe;if(O===47||O===62||O===123||O!==null&&O>=0&&Yt(O))return e.exit(d),le(O);ae(O,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function q(O){if(O!==null&&O>=0&&Yt(O))return e.enter(_),e.consume(O),F;ae(O,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function F(O){if(O!==null&&O>=0&&Mi(O,{jsx:!0}))return e.consume(O),F;if(O===46||O===47||O===62||O===123||Je(O)||Ct(O))return e.exit(_),te=z,Fe(O);ae(O,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(O===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function z(O){if(O===46)return e.enter(g),e.consume(O),e.exit(g),te=q,Fe;if(O===47||O===62||O===123||O!==null&&O>=0&&Yt(O))return e.exit(d),le(O);ae(O,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function Y(O){if(O!==null&&O>=0&&Yt(O))return e.enter(E),e.consume(O),ee;ae(O,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(O===43||O!==null&&O>46&&O<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function ee(O){if(O!==null&&O>=0&&Mi(O,{jsx:!0}))return e.consume(O),ee;if(O===47||O===62||O===123||Je(O)||Ct(O))return e.exit(E),te=se,Fe(O);ae(O,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function se(O){if(O===47||O===62||O===123||O!==null&&O>=0&&Yt(O))return e.exit(d),le(O);ae(O,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function le(O){if(O===47)return e.enter(p),e.consume(O),e.exit(p),te=Ye,Fe;if(O===62)return Re(O);if(O===123)return fa.call(ne,e,H,C,S,k,i,r,a,!0,!1,o)(O);if(O!==null&&O>=0&&Yt(O))return e.enter(A),e.enter(b),e.enter(f),e.consume(O),pe;ae(O,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function H(O){return te=le,Fe(O)}function pe(O){if(O!==null&&O>=0&&Mi(O,{jsx:!0}))return e.consume(O),pe;if(O===47||O===58||O===61||O===62||O===123||Je(O)||Ct(O))return e.exit(f),te=re,Fe(O);ae(O,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function re(O){if(O===58)return e.enter(T),e.consume(O),e.exit(T),te=we,Fe;if(O===61)return e.exit(b),e.enter(V),e.consume(O),e.exit(V),te=Ne,Fe;if(O===47||O===62||O===123||Je(O)||Ct(O)||O!==null&&O>=0&&Yt(O))return e.exit(b),e.exit(A),te=le,Fe(O);ae(O,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function we(O){if(O!==null&&O>=0&&Yt(O))return e.enter(L),e.consume(O),xe;ae(O,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function xe(O){if(O!==null&&O>=0&&Mi(O,{jsx:!0}))return e.consume(O),xe;if(O===47||O===61||O===62||O===123||Je(O)||Ct(O))return e.exit(L),e.exit(b),te=be,Fe(O);ae(O,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function be(O){if(O===61)return e.enter(V),e.consume(O),e.exit(V),te=Ne,Fe;if(O===47||O===62||O===123||O!==null&&O>=0&&Yt(O))return e.exit(A),le(O);ae(O,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Ne(O){if(O===34||O===39)return e.enter(D),e.enter(B),e.consume(O),e.exit(B),J=O,Pe;if(O===123)return fa.call(ne,e,Te,$,K,W,i,r,a,!1,!1,o)(O);ae(O,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(O===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function Te(O){return e.exit(A),te=le,Fe(O)}function Pe(O){return O===null&&ae(O,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(J)+"`"),O===J?(e.enter(B),e.consume(O),e.exit(B),e.exit(D),e.exit(A),J=void 0,te=le,Fe):Ae(O)?(te=Pe,Fe(O)):(e.enter(j),qe(O))}function qe(O){return O===null||O===J||Ae(O)?(e.exit(j),Pe(O)):(e.consume(O),qe)}function Ye(O){if(O===62)return Re(O);ae(O,"after self-closing slash","`>` to end the tag"+(O===42||O===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function Re(O){return e.enter(u),e.consume(O),e.exit(u),e.exit(l),t}function Fe(O){return Ae(O)?(e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),oe):je(O)||Ct(O)?(e.enter("esWhitespace"),xt(O)):te(O)}function xt(O){return Ae(O)?(e.exit("esWhitespace"),Fe(O)):je(O)||Ct(O)?(e.consume(O),xt):(e.exit("esWhitespace"),te(O))}function oe(O){if(!o&&ne.parser.lazy[ne.now().line]){const ke=new Qe("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",ne.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw ke.url=yc+"#unexpected-lazy-line-in-container-expected-line-to-be",ke}return Fe(O)}function ae(O,ke,Be){const ct=new Qe("Unexpected "+(O===null?"end of file":"character `"+(O===96?"` ` `":String.fromCodePoint(O))+"` ("+Kw(O)+")")+" "+ke+", expected "+Be,ne.now(),"micromark-extension-mdx-jsx:unexpected-"+(O===null?"eof":"character"));throw ct.url=yc+(O===null?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),ct}}function Kw(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function Uw(e,t){return{name:"mdxJsxTextTag",tokenize:n};function n(i,r,a){return mf.call(this,i,r,a,e,t.acornOptions,t.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}function Ww(e,t){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:n};function n(i,r,a){const o=this;return l;function l(d){return u(d)}function u(d){return mf.call(o,i,c,a,e,t.acornOptions,t.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(d)}function c(d){return je(d)?He(i,p,"whitespace")(d):p(d)}function p(d){const m=o.parser.constructs.flow[123],g=Array.isArray(m)?m:m?[m]:[];let _;for(const x of g)if(x.name==="mdxFlowExpression"){_=x;break}return d===60?l(d):d===123&&_?i.attempt(_,p,a)(d):d===null||Ae(d)?r(d):a(d)}}}function qw(e){const t=e||{},n=t.acorn;let i;if(n){if(!n.parse||!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");i=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:Ww(n||void 0,{acornOptions:i,addResult:t.addResult||void 0})},text:{60:Uw(n||void 0,{acornOptions:i,addResult:t.addResult||void 0})}}}function Gw(){return{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}}function zt(e,t,n,i){const r=e.length;let a=0,o;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)o=Array.from(i),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<i.length;)o=i.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Gt(e,t){return e.length>0?(zt(e,e.length,0,t),e):t}function yi(e){if(e===null||Je(e)||Ct(e))return 1;if(La(e))return 2}function Ra(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const a=e[r].resolveAll;a&&!i.includes(a)&&(t=a(t,n),i.push(a))}return t}const Zs={name:"attention",resolveAll:$w,tokenize:Jw};function $w(e,t){let n=-1,i,r,a,o,l,u,c,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[i][1].end},m={...e[n][1].start};wc(d,-u),wc(m,u),o={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},a={type:u>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:u>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[i][1].end={...o.start},e[n][1].start={...l.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=Gt(c,[["enter",e[i][1],t],["exit",e[i][1],t]])),c=Gt(c,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=Gt(c,Ra(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),c=Gt(c,[["exit",a,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,c=Gt(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,zt(e,i-1,n-i+3,c),n=i+c.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Jw(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=yi(i);let a;return o;function o(u){return a=u,e.enter("attentionSequence"),l(u)}function l(u){if(u===a)return e.consume(u),l;const c=e.exit("attentionSequence"),p=yi(u),d=!p||p===2&&r||n.includes(u),m=!r||r===2&&p||n.includes(i);return c._open=!!(a===42?d:d&&(r||!m)),c._close=!!(a===42?m:m&&(p||!d)),t(u)}}function wc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Yw={name:"autolink",tokenize:Xw};function Xw(e,t,n){let i=0;return r;function r(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(g){return St(g)?(e.consume(g),o):g===64?n(g):c(g)}function o(g){return g===43||g===45||g===46||Rt(g)?(i=1,l(g)):c(g)}function l(g){return g===58?(e.consume(g),i=0,u):(g===43||g===45||g===46||Rt(g))&&i++<32?(e.consume(g),l):(i=0,c(g))}function u(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||pa(g)?n(g):(e.consume(g),u)}function c(g){return g===64?(e.consume(g),p):kw(g)?(e.consume(g),c):n(g)}function p(g){return Rt(g)?d(g):n(g)}function d(g){return g===46?(e.consume(g),i=0,p):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):m(g)}function m(g){if((g===45||Rt(g))&&i++<63){const _=g===45?m:d;return e.consume(g),_}return n(g)}}const Ai={partial:!0,tokenize:Zw};function Zw(e,t,n){return i;function i(a){return je(a)?He(e,r,"linePrefix")(a):r(a)}function r(a){return a===null||Ae(a)?t(a):n(a)}}const vf={continuation:{tokenize:e1},exit:t1,name:"blockQuote",tokenize:Qw};function Qw(e,t,n){const i=this;return r;function r(o){if(o===62){const l=i.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return n(o)}function a(o){return je(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function e1(e,t,n){const i=this;return r;function r(o){return je(o)?He(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(vf,t,n)(o)}}function t1(e){e.exit("blockQuote")}const xf={name:"characterEscape",tokenize:n1};function n1(e,t,n){return i;function i(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),r}function r(a){return Ew(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const bf={name:"characterReference",tokenize:i1};function i1(e,t,n){const i=this;let r=0,a,o;return l;function l(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"),c):(e.enter("characterReferenceValue"),a=31,o=Rt,p(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=Sw,p):(e.enter("characterReferenceValue"),a=7,o=Xs,p(d))}function p(d){if(d===59&&r){const m=e.exit("characterReferenceValue");return o===Rt&&!Ji(i.sliceSerialize(m))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(d)&&r++<a?(e.consume(d),p):n(d)}}const kc={partial:!0,tokenize:a1},Sc={concrete:!0,name:"codeFenced",tokenize:r1};function r1(e,t,n){const i=this,r={partial:!0,tokenize:b};let a=0,o=0,l;return u;function u(f){return c(f)}function c(f){const T=i.events[i.events.length-1];return a=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,l=f,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(f)}function p(f){return f===l?(o++,e.consume(f),p):o<3?n(f):(e.exit("codeFencedFenceSequence"),je(f)?He(e,d,"whitespace")(f):d(f))}function d(f){return f===null||Ae(f)?(e.exit("codeFencedFence"),i.interrupt?t(f):e.check(kc,x,A)(f)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(f))}function m(f){return f===null||Ae(f)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(f)):je(f)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),He(e,g,"whitespace")(f)):f===96&&f===l?n(f):(e.consume(f),m)}function g(f){return f===null||Ae(f)?d(f):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),_(f))}function _(f){return f===null||Ae(f)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(f)):f===96&&f===l?n(f):(e.consume(f),_)}function x(f){return e.attempt(r,A,E)(f)}function E(f){return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),C}function C(f){return a>0&&je(f)?He(e,S,"linePrefix",a+1)(f):S(f)}function S(f){return f===null||Ae(f)?e.check(kc,x,A)(f):(e.enter("codeFlowValue"),k(f))}function k(f){return f===null||Ae(f)?(e.exit("codeFlowValue"),S(f)):(e.consume(f),k)}function A(f){return e.exit("codeFenced"),t(f)}function b(f,T,L){let V=0;return D;function D(W){return f.enter("lineEnding"),f.consume(W),f.exit("lineEnding"),B}function B(W){return f.enter("codeFencedFence"),je(W)?He(f,j,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):j(W)}function j(W){return W===l?(f.enter("codeFencedFenceSequence"),$(W)):L(W)}function $(W){return W===l?(V++,f.consume(W),$):V>=o?(f.exit("codeFencedFenceSequence"),je(W)?He(f,K,"whitespace")(W):K(W)):L(W)}function K(W){return W===null||Ae(W)?(f.exit("codeFencedFence"),T(W)):L(W)}}}function a1(e,t,n){const i=this;return r;function r(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return i.parser.lazy[i.now().line]?n(o):t(o)}}const hs={name:"codeIndented",tokenize:o1},s1={partial:!0,tokenize:l1};function o1(e,t,n){const i=this;return r;function r(c){return e.enter("codeIndented"),He(e,a,"linePrefix",5)(c)}function a(c){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?u(c):Ae(c)?e.attempt(s1,o,u)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||Ae(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),l)}function u(c){return e.exit("codeIndented"),t(c)}}function l1(e,t,n){const i=this;return r;function r(o){return i.parser.lazy[i.now().line]?n(o):Ae(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r):He(e,a,"linePrefix",5)(o)}function a(o){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):Ae(o)?r(o):n(o)}}const u1={name:"codeText",previous:h1,resolve:c1,tokenize:d1};function c1(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function h1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function d1(e,t,n){let i=0,r,a;return o;function o(d){return e.enter("codeText"),e.enter("codeTextSequence"),l(d)}function l(d){return d===96?(e.consume(d),i++,l):(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?(a=e.enter("codeTextSequence"),r=0,p(d)):Ae(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||Ae(d)?(e.exit("codeTextData"),u(d)):(e.consume(d),c)}function p(d){return d===96?(e.consume(d),r++,p):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(a.type="codeTextData",c(d))}}class p1{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 i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const r=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&Fi(this.left,i),a.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),Fi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Fi(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);Fi(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Fi(this.left,n.reverse())}}}function Fi(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 yf(e){const t={};let n=-1,i,r,a,o,l,u,c;const p=new p1(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(i=p.get(n),n&&i[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(u=i[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,f1(p,n)),n=t[n],c=!0);else if(i[1]._container){for(a=n,r=void 0;a--;)if(o=p.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(r&&(p.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;r&&(i[1].end={...p.get(r)[1].start},l=p.slice(r,n),l.unshift(i),p.splice(r,n-r+1,l))}}return zt(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!c}function f1(e,t){const n=e.get(t)[1],i=e.get(t)[2];let r=t-1;const a=[];let o=n._tokenizer;o||(o=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,u=[],c={};let p,d,m=-1,g=n,_=0,x=0;const E=[x];for(;g;){for(;e.get(++r)[1]!==g;);a.push(r),g._tokenizer||(p=i.sliceStream(g),g.next||p.push(null),d&&o.defineSkip(g.start),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(p),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=g,g=g.next}for(g=n;++m<l.length;)l[m][0]==="exit"&&l[m-1][0]==="enter"&&l[m][1].type===l[m-1][1].type&&l[m][1].start.line!==l[m][1].end.line&&(x=m+1,E.push(x),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(o.events=[],g?(g._tokenizer=void 0,g.previous=void 0):E.pop(),m=E.length;m--;){const C=l.slice(E[m],E[m+1]),S=a.pop();u.push([S,S+C.length-1]),e.splice(S,2,C)}for(u.reverse(),m=-1;++m<u.length;)c[_+u[m][0]]=_+u[m][1],_+=u[m][1]-u[m][0]-1;return c}const g1={resolve:v1,tokenize:x1},m1={partial:!0,tokenize:b1};function v1(e){return yf(e),e}function x1(e,t){let n;return i;function i(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(l)}function r(l){return l===null?a(l):Ae(l)?e.check(m1,o,a)(l):(e.consume(l),r)}function a(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function o(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function b1(e,t,n){const i=this;return r;function r(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),He(e,a,"linePrefix")}function a(o){if(o===null||Ae(o))return n(o);const l=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):e.interrupt(i.parser.constructs.flow,n,t)(o)}}function wf(e,t,n,i,r,a,o,l,u){const c=u||Number.POSITIVE_INFINITY;let p=0;return d;function d(C){return C===60?(e.enter(i),e.enter(r),e.enter(a),e.consume(C),e.exit(a),m):C===null||C===32||C===41||pa(C)?n(C):(e.enter(i),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),x(C))}function m(C){return C===62?(e.enter(a),e.consume(C),e.exit(a),e.exit(r),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),g(C))}function g(C){return C===62?(e.exit("chunkString"),e.exit(l),m(C)):C===null||C===60||Ae(C)?n(C):(e.consume(C),C===92?_:g)}function _(C){return C===60||C===62||C===92?(e.consume(C),g):g(C)}function x(C){return!p&&(C===null||C===41||Je(C))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(i),t(C)):p<c&&C===40?(e.consume(C),p++,x):C===41?(e.consume(C),p--,x):C===null||C===32||C===40||pa(C)?n(C):(e.consume(C),C===92?E:x)}function E(C){return C===40||C===41||C===92?(e.consume(C),x):x(C)}}function kf(e,t,n,i,r,a){const o=this;let l=0,u;return c;function c(g){return e.enter(i),e.enter(r),e.consume(g),e.exit(r),e.enter(a),p}function p(g){return l>999||g===null||g===91||g===93&&!u||g===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(g):g===93?(e.exit(a),e.enter(r),e.consume(g),e.exit(r),e.exit(i),t):Ae(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===null||g===91||g===93||Ae(g)||l++>999?(e.exit("chunkString"),p(g)):(e.consume(g),u||(u=!je(g)),g===92?m:d)}function m(g){return g===91||g===92||g===93?(e.consume(g),l++,d):d(g)}}function Sf(e,t,n,i,r,a){let o;return l;function l(m){return m===34||m===39||m===40?(e.enter(i),e.enter(r),e.consume(m),e.exit(r),o=m===40?41:m,u):n(m)}function u(m){return m===o?(e.enter(r),e.consume(m),e.exit(r),e.exit(i),t):(e.enter(a),c(m))}function c(m){return m===o?(e.exit(a),u(o)):m===null?n(m):Ae(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),He(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===o||m===null||Ae(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?d:p)}function d(m){return m===o||m===92?(e.consume(m),p):p(m)}}function Ki(e,t){let n;return i;function i(r){return Ae(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):je(r)?He(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}function tn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const y1={name:"definition",tokenize:k1},w1={partial:!0,tokenize:S1};function k1(e,t,n){const i=this;let r;return a;function a(g){return e.enter("definition"),o(g)}function o(g){return kf.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function l(g){return r=tn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):n(g)}function u(g){return Je(g)?Ki(e,c)(g):c(g)}function c(g){return wf(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function p(g){return e.attempt(w1,d,d)(g)}function d(g){return je(g)?He(e,m,"whitespace")(g):m(g)}function m(g){return g===null||Ae(g)?(e.exit("definition"),i.parser.defined.push(r),t(g)):n(g)}}function S1(e,t,n){return i;function i(l){return Je(l)?Ki(e,r)(l):n(l)}function r(l){return Sf(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return je(l)?He(e,o,"whitespace")(l):o(l)}function o(l){return l===null||Ae(l)?t(l):n(l)}}const E1={name:"hardBreakEscape",tokenize:C1};function C1(e,t,n){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),r}function r(a){return Ae(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const I1={name:"headingAtx",resolve:_1,tokenize:A1};function _1(e,t){let n=e.length-2,i=3,r,a;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},a={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},zt(e,i,n-i+1,[["enter",r,t],["enter",a,t],["exit",a,t],["exit",r,t]])),e}function A1(e,t,n){let i=0;return r;function r(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&i++<6?(e.consume(p),o):p===null||Je(p)?(e.exit("atxHeadingSequence"),l(p)):n(p)}function l(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||Ae(p)?(e.exit("atxHeading"),t(p)):je(p)?He(e,l,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),l(p))}function c(p){return p===null||p===35||Je(p)?(e.exit("atxHeadingText"),l(p)):(e.consume(p),c)}}const N1=["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"],Ec=["pre","script","style","textarea"],T1={concrete:!0,name:"htmlFlow",resolveTo:L1,tokenize:R1},P1={partial:!0,tokenize:M1},O1={partial:!0,tokenize:D1};function L1(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 R1(e,t,n){const i=this;let r,a,o,l,u;return c;function c(P){return p(P)}function p(P){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(P),d}function d(P){return P===33?(e.consume(P),m):P===47?(e.consume(P),a=!0,x):P===63?(e.consume(P),r=3,i.interrupt?t:y):St(P)?(e.consume(P),o=String.fromCharCode(P),E):n(P)}function m(P){return P===45?(e.consume(P),r=2,g):P===91?(e.consume(P),r=5,l=0,_):St(P)?(e.consume(P),r=4,i.interrupt?t:y):n(P)}function g(P){return P===45?(e.consume(P),i.interrupt?t:y):n(P)}function _(P){const G="CDATA[";return P===G.charCodeAt(l++)?(e.consume(P),l===G.length?i.interrupt?t:j:_):n(P)}function x(P){return St(P)?(e.consume(P),o=String.fromCharCode(P),E):n(P)}function E(P){if(P===null||P===47||P===62||Je(P)){const G=P===47,q=o.toLowerCase();return!G&&!a&&Ec.includes(q)?(r=1,i.interrupt?t(P):j(P)):N1.includes(o.toLowerCase())?(r=6,G?(e.consume(P),C):i.interrupt?t(P):j(P)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(P):a?S(P):k(P))}return P===45||Rt(P)?(e.consume(P),o+=String.fromCharCode(P),E):n(P)}function C(P){return P===62?(e.consume(P),i.interrupt?t:j):n(P)}function S(P){return je(P)?(e.consume(P),S):D(P)}function k(P){return P===47?(e.consume(P),D):P===58||P===95||St(P)?(e.consume(P),A):je(P)?(e.consume(P),k):D(P)}function A(P){return P===45||P===46||P===58||P===95||Rt(P)?(e.consume(P),A):b(P)}function b(P){return P===61?(e.consume(P),f):je(P)?(e.consume(P),b):k(P)}function f(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),u=P,T):je(P)?(e.consume(P),f):L(P)}function T(P){return P===u?(e.consume(P),u=null,V):P===null||Ae(P)?n(P):(e.consume(P),T)}function L(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||Je(P)?b(P):(e.consume(P),L)}function V(P){return P===47||P===62||je(P)?k(P):n(P)}function D(P){return P===62?(e.consume(P),B):n(P)}function B(P){return P===null||Ae(P)?j(P):je(P)?(e.consume(P),B):n(P)}function j(P){return P===45&&r===2?(e.consume(P),ne):P===60&&r===1?(e.consume(P),te):P===62&&r===4?(e.consume(P),X):P===63&&r===3?(e.consume(P),y):P===93&&r===5?(e.consume(P),ue):Ae(P)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(P1,ie,$)(P)):P===null||Ae(P)?(e.exit("htmlFlowData"),$(P)):(e.consume(P),j)}function $(P){return e.check(O1,K,ie)(P)}function K(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),W}function W(P){return P===null||Ae(P)?$(P):(e.enter("htmlFlowData"),j(P))}function ne(P){return P===45?(e.consume(P),y):j(P)}function te(P){return P===47?(e.consume(P),o="",J):j(P)}function J(P){if(P===62){const G=o.toLowerCase();return Ec.includes(G)?(e.consume(P),X):j(P)}return St(P)&&o.length<8?(e.consume(P),o+=String.fromCharCode(P),J):j(P)}function ue(P){return P===93?(e.consume(P),y):j(P)}function y(P){return P===62?(e.consume(P),X):P===45&&r===2?(e.consume(P),y):j(P)}function X(P){return P===null||Ae(P)?(e.exit("htmlFlowData"),ie(P)):(e.consume(P),X)}function ie(P){return e.exit("htmlFlow"),t(P)}}function D1(e,t,n){const i=this;return r;function r(o){return Ae(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return i.parser.lazy[i.now().line]?n(o):t(o)}}function M1(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Ai,t,n)}}const F1={name:"htmlText",tokenize:j1};function j1(e,t,n){const i=this;let r,a,o;return l;function l(y){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(y),u}function u(y){return y===33?(e.consume(y),c):y===47?(e.consume(y),b):y===63?(e.consume(y),k):St(y)?(e.consume(y),L):n(y)}function c(y){return y===45?(e.consume(y),p):y===91?(e.consume(y),a=0,_):St(y)?(e.consume(y),S):n(y)}function p(y){return y===45?(e.consume(y),g):n(y)}function d(y){return y===null?n(y):y===45?(e.consume(y),m):Ae(y)?(o=d,te(y)):(e.consume(y),d)}function m(y){return y===45?(e.consume(y),g):d(y)}function g(y){return y===62?ne(y):y===45?m(y):d(y)}function _(y){const X="CDATA[";return y===X.charCodeAt(a++)?(e.consume(y),a===X.length?x:_):n(y)}function x(y){return y===null?n(y):y===93?(e.consume(y),E):Ae(y)?(o=x,te(y)):(e.consume(y),x)}function E(y){return y===93?(e.consume(y),C):x(y)}function C(y){return y===62?ne(y):y===93?(e.consume(y),C):x(y)}function S(y){return y===null||y===62?ne(y):Ae(y)?(o=S,te(y)):(e.consume(y),S)}function k(y){return y===null?n(y):y===63?(e.consume(y),A):Ae(y)?(o=k,te(y)):(e.consume(y),k)}function A(y){return y===62?ne(y):k(y)}function b(y){return St(y)?(e.consume(y),f):n(y)}function f(y){return y===45||Rt(y)?(e.consume(y),f):T(y)}function T(y){return Ae(y)?(o=T,te(y)):je(y)?(e.consume(y),T):ne(y)}function L(y){return y===45||Rt(y)?(e.consume(y),L):y===47||y===62||Je(y)?V(y):n(y)}function V(y){return y===47?(e.consume(y),ne):y===58||y===95||St(y)?(e.consume(y),D):Ae(y)?(o=V,te(y)):je(y)?(e.consume(y),V):ne(y)}function D(y){return y===45||y===46||y===58||y===95||Rt(y)?(e.consume(y),D):B(y)}function B(y){return y===61?(e.consume(y),j):Ae(y)?(o=B,te(y)):je(y)?(e.consume(y),B):V(y)}function j(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),r=y,$):Ae(y)?(o=j,te(y)):je(y)?(e.consume(y),j):(e.consume(y),K)}function $(y){return y===r?(e.consume(y),r=void 0,W):y===null?n(y):Ae(y)?(o=$,te(y)):(e.consume(y),$)}function K(y){return y===null||y===34||y===39||y===60||y===61||y===96?n(y):y===47||y===62||Je(y)?V(y):(e.consume(y),K)}function W(y){return y===47||y===62||Je(y)?V(y):n(y)}function ne(y){return y===62?(e.consume(y),e.exit("htmlTextData"),e.exit("htmlText"),t):n(y)}function te(y){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),J}function J(y){return je(y)?He(e,ue,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):ue(y)}function ue(y){return e.enter("htmlTextData"),o(y)}}const gl={name:"labelEnd",resolveAll:H1,resolveTo:K1,tokenize:U1},V1={tokenize:W1},z1={tokenize:q1},B1={tokenize:G1};function H1(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&zt(e,0,e.length,n),e}function K1(e,t){let n=e.length,i=0,r,a,o,l;for(;n--;)if(r=e[n][1],a){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(a=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(o=n);const u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},p={type:"labelText",start:{...e[a+i+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",u,t],["enter",c,t]],l=Gt(l,e.slice(a+1,a+i+3)),l=Gt(l,[["enter",p,t]]),l=Gt(l,Ra(t.parser.constructs.insideSpan.null,e.slice(a+i+4,o-3),t)),l=Gt(l,[["exit",p,t],e[o-2],e[o-1],["exit",c,t]]),l=Gt(l,e.slice(o+1)),l=Gt(l,[["exit",u,t]]),zt(e,a,e.length,l),e}function U1(e,t,n){const i=this;let r=i.events.length,a,o;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){a=i.events[r][1];break}return l;function l(m){return a?a._inactive?d(m):(o=i.parser.defined.includes(tn(i.sliceSerialize({start:a.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),u):n(m)}function u(m){return m===40?e.attempt(V1,p,o?p:d)(m):m===91?e.attempt(z1,p,o?c:d)(m):o?p(m):d(m)}function c(m){return e.attempt(B1,p,d)(m)}function p(m){return t(m)}function d(m){return a._balanced=!0,n(m)}}function W1(e,t,n){return i;function i(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),r}function r(d){return Je(d)?Ki(e,a)(d):a(d)}function a(d){return d===41?p(d):wf(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function o(d){return Je(d)?Ki(e,u)(d):p(d)}function l(d){return n(d)}function u(d){return d===34||d===39||d===40?Sf(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):p(d)}function c(d){return Je(d)?Ki(e,p)(d):p(d)}function p(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function q1(e,t,n){const i=this;return r;function r(l){return kf.call(i,e,a,o,"reference","referenceMarker","referenceString")(l)}function a(l){return i.parser.defined.includes(tn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function o(l){return n(l)}}function G1(e,t,n){return i;function i(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),r}function r(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const $1={name:"labelStartImage",resolveAll:gl.resolveAll,tokenize:J1};function J1(e,t,n){const i=this;return r;function r(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),a}function a(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):n(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(l):t(l)}}const Y1={name:"labelStartLink",resolveAll:gl.resolveAll,tokenize:X1};function X1(e,t,n){const i=this;return r;function r(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(o):t(o)}}const ds={name:"lineEnding",tokenize:Z1};function Z1(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),He(e,t,"linePrefix")}}const Gr={name:"thematicBreak",tokenize:Q1};function Q1(e,t,n){let i=0,r;return a;function a(c){return e.enter("thematicBreak"),o(c)}function o(c){return r=c,l(c)}function l(c){return c===r?(e.enter("thematicBreakSequence"),u(c)):i>=3&&(c===null||Ae(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===r?(e.consume(c),i++,u):(e.exit("thematicBreakSequence"),je(c)?He(e,l,"whitespace")(c):l(c))}}const Lt={continuation:{tokenize:ik},exit:ak,name:"list",tokenize:nk},ek={partial:!0,tokenize:sk},tk={partial:!0,tokenize:rk};function nk(e,t,n){const i=this,r=i.events[i.events.length-1];let a=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,o=0;return l;function l(g){const _=i.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!i.containerState.marker||g===i.containerState.marker:Xs(g)){if(i.containerState.type||(i.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(Gr,n,c)(g):c(g);if(!i.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return n(g)}function u(g){return Xs(g)&&++o<10?(e.consume(g),u):(!i.interrupt||o<2)&&(i.containerState.marker?g===i.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),c(g)):n(g)}function c(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||g,e.check(Ai,i.interrupt?n:p,e.attempt(ek,m,d))}function p(g){return i.containerState.initialBlankLine=!0,a++,m(g)}function d(g){return je(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),m):n(g)}function m(g){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function ik(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Ai,r,a);function r(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,He(e,t,"listItemIndent",i.containerState.size+1)(l)}function a(l){return i.containerState.furtherBlankLines||!je(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(tk,t,o)(l))}function o(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,He(e,e.attempt(Lt,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function rk(e,t,n){const i=this;return He(e,r,"listItemIndent",i.containerState.size+1);function r(a){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?t(a):n(a)}}function ak(e){e.exit(this.containerState.type)}function sk(e,t,n){const i=this;return He(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(a){const o=i.events[i.events.length-1];return!je(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Cc={name:"setextUnderline",resolveTo:ok,tokenize:lk};function ok(e,t){let n=e.length,i,r,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",o,t]),e.splice(a+1,0,["exit",e[i][1],t]),e[i][1].end={...e[a][1].end}):e[i][1]=o,e.push(["exit",o,t]),e}function lk(e,t,n){const i=this;let r;return a;function a(c){let p=i.events.length,d;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){d=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),r=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===r?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),je(c)?He(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||Ae(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const uk={tokenize:dk,partial:!0},Ic="https://github.com/micromark/micromark-extension-mdxjs-esm",ck=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function hk(e){const t={tokenize:r,concrete:!0};if(!e||!e.acorn||!e.acorn.parse)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");const n=e.acorn,i=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}};function r(a,o,l){const u=this,c=u.parser.definedModuleSpecifiers||(u.parser.definedModuleSpecifiers=[]),p=this.events.length+1;let d="";return u.interrupt?l:m;function m(S){return u.now().column>1?l(S):(a.enter("mdxjsEsm"),a.enter("mdxjsEsmData"),a.consume(S),d+=String.fromCharCode(S),g)}function g(S){return St(S)?(a.consume(S),d+=String.fromCharCode(S),g):(d==="import"||d==="export")&&S===32?(a.consume(S),_):l(S)}function _(S){return S===null||Ae(S)?(a.exit("mdxjsEsmData"),x(S)):(a.consume(S),_)}function x(S){return S===null?C(S):Ae(S)?a.check(uk,C,E)(S):(a.enter("mdxjsEsmData"),_(S))}function E(S){return a.enter("lineEnding"),a.consume(S),a.exit("lineEnding"),x}function C(S){const k=gf(u.events.slice(p),{acorn:n,acornOptions:i,tokenTypes:["mdxjsEsmData"],prefix:c.length>0?"var "+c.join(",")+`
|
|
82
|
+
`:""});if(k.error){if(S!==null&&k.swallow)return E(S);const b=new Qe("Could not parse import/exports with acorn",{cause:k.error,place:{line:k.error.loc.line,column:k.error.loc.column+1,offset:k.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw b.url=Ic+"#could-not-parse-importexports-with-acorn",b}c.length>0&&k.estree.body.shift();let A=-1;for(;++A<k.estree.body.length;){const b=k.estree.body[A];if(!ck.has(b.type)){const f=new Qe("Unexpected `"+b.type+"` in code: only import/exports are supported",{place:qr(b),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw f.url=Ic+"#unexpected-type-in-code-only-importexports-are-supported",f}if(b.type==="ImportDeclaration"&&!u.interrupt){let f=-1;for(;++f<b.specifiers.length;){const T=b.specifiers[f];c.push(T.local.name)}}}return Object.assign(a.exit("mdxjsEsm"),e.addResult?{estree:k.estree}:void 0),o(S)}}}function dk(e,t,n){return i;function i(r){return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(Ai,t,n)}}const _c={}.hasOwnProperty;function ml(e){const t={};let n=-1;for(;++n<e.length;)pk(t,e[n]);return t}function pk(e,t){let n;for(n in t){const r=(_c.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){_c.call(r,o)||(r[o]=[]);const l=a[o];fk(r[o],Array.isArray(l)?l:l?[l]:[])}}}function fk(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);zt(e,0,0,i)}function gk(e){const t=Object.assign({acorn:vt.extend(ww()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},e);return ml([hk(t),jw(t),qw(t),Gw()])}const mk={};function vk(e){const t=this,n=e||mk,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(gk(n)),a.push(Ty()),o.push(Py(n))}const xk={};function bk(e,t){const n=xk,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ef(e,i,r)}function Ef(e,t,n){if(yk(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 Ac(e.children,t,n)}return Array.isArray(e)?Ac(e,t,n):""}function Ac(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=Ef(e[r],t,n);return i.join("")}function yk(e){return!!(e&&typeof e=="object")}function Cf(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)}const wk={tokenize:kk};function kk(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),He(e,t,"linePrefix")}function r(l){return e.enter("paragraph"),a(l)}function a(l){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,o(l)}function o(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return Ae(l)?(e.consume(l),e.exit("chunkText"),a):(e.consume(l),o)}}const Sk={tokenize:Ek},Nc={tokenize:Ck};function Ek(e){const t=this,n=[];let i=0,r,a,o;return l;function l(k){if(i<n.length){const A=n[i];return t.containerState=A[1],e.attempt(A[0].continuation,u,c)(k)}return c(k)}function u(k){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&S();const A=t.events.length;let b=A,f;for(;b--;)if(t.events[b][0]==="exit"&&t.events[b][1].type==="chunkFlow"){f=t.events[b][1].end;break}C(i);let T=A;for(;T<t.events.length;)t.events[T][1].end={...f},T++;return zt(t.events,b+1,0,t.events.slice(A)),t.events.length=T,c(k)}return l(k)}function c(k){if(i===n.length){if(!r)return m(k);if(r.currentConstruct&&r.currentConstruct.concrete)return _(k);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Nc,p,d)(k)}function p(k){return r&&S(),C(i),m(k)}function d(k){return t.parser.lazy[t.now().line]=i!==n.length,o=t.now().offset,_(k)}function m(k){return t.containerState={},e.attempt(Nc,g,_)(k)}function g(k){return i++,n.push([t.currentConstruct,t.containerState]),m(k)}function _(k){if(k===null){r&&S(),C(0),e.consume(k);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:a}),x(k)}function x(k){if(k===null){E(e.exit("chunkFlow"),!0),C(0),e.consume(k);return}return Ae(k)?(e.consume(k),E(e.exit("chunkFlow")),i=0,t.interrupt=void 0,l):(e.consume(k),x)}function E(k,A){const b=t.sliceStream(k);if(A&&b.push(null),k.previous=a,a&&(a.next=k),a=k,r.defineSkip(k.start),r.write(b),t.parser.lazy[k.start.line]){let f=r.events.length;for(;f--;)if(r.events[f][1].start.offset<o&&(!r.events[f][1].end||r.events[f][1].end.offset>o))return;const T=t.events.length;let L=T,V,D;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(V){D=t.events[L][1].end;break}V=!0}for(C(i),f=T;f<t.events.length;)t.events[f][1].end={...D},f++;zt(t.events,L+1,0,t.events.slice(T)),t.events.length=f}}function C(k){let A=n.length;for(;A-- >k;){const b=n[A];t.containerState=b[1],b[0].exit.call(t,e)}n.length=k}function S(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}function Ck(e,t,n){return He(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Ik={tokenize:_k};function _k(e){const t=this,n=e.attempt(Ai,i,e.attempt(this.parser.constructs.flowInitial,r,He(e,e.attempt(this.parser.constructs.flow,r,e.attempt(g1,r)),"linePrefix")));return n;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Ak={resolveAll:_f()},Nk=If("string"),Tk=If("text");function If(e){return{resolveAll:_f(e==="text"?Pk:void 0),tokenize:t};function t(n){const i=this,r=this.parser.constructs[e],a=n.attempt(r,o,l);return o;function o(p){return c(p)?a(p):l(p)}function l(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return c(p)?(n.exit("data"),a(p)):(n.consume(p),u)}function c(p){if(p===null)return!0;const d=r[p];let m=-1;if(d)for(;++m<d.length;){const g=d[m];if(!g.previous||g.previous.call(i,i.previous))return!0}return!1}}}function _f(e){return t;function t(n,i){let r=-1,a;for(;++r<=n.length;)a===void 0?n[r]&&n[r][1].type==="data"&&(a=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==a+2&&(n[a][1].end=n[r-1][1].end,n.splice(a+2,r-a-2),r=a+2),a=void 0);return e?e(n,i):n}}function Pk(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 i=e[n-1][1],r=t.sliceStream(i);let a=r.length,o=-1,l=0,u;for(;a--;){const c=r[a];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(c===-2)u=!0,l++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const c={type:n===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:i.start._bufferIndex+o,_index:i.start._index+a,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const Ok={42:Lt,43:Lt,45:Lt,48:Lt,49:Lt,50:Lt,51:Lt,52:Lt,53:Lt,54:Lt,55:Lt,56:Lt,57:Lt,62:vf},Lk={91:y1},Rk={[-2]:hs,[-1]:hs,32:hs},Dk={35:I1,42:Gr,45:[Cc,Gr],60:T1,61:Cc,95:Gr,96:Sc,126:Sc},Mk={38:bf,92:xf},Fk={[-5]:ds,[-4]:ds,[-3]:ds,33:$1,38:bf,42:Zs,60:[Yw,F1],91:Y1,92:[E1,xf],93:gl,95:Zs,96:u1},jk={null:[Zs,Ak]},Vk={null:[42,95]},zk={null:[]},Bk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Vk,contentInitial:Lk,disable:zk,document:Ok,flow:Dk,flowInitial:Rk,insideSpan:jk,string:Mk,text:Fk},Symbol.toStringTag,{value:"Module"}));function Hk(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},a=[];let o=[],l=[];const u={attempt:T(b),check:T(f),consume:S,enter:k,exit:A,interrupt:T(f,{interrupt:!0})},c={code:null,containerState:{},defineSkip:x,events:[],now:_,parser:e,previous:null,sliceSerialize:m,sliceStream:g,write:d};let p=t.tokenize.call(c,u);return t.resolveAll&&a.push(t),c;function d(B){return o=Gt(o,B),E(),o[o.length-1]!==null?[]:(L(t,0),c.events=Ra(a,c.events,c),c.events)}function m(B,j){return Uk(g(B),j)}function g(B){return Kk(o,B)}function _(){const{_bufferIndex:B,_index:j,line:$,column:K,offset:W}=i;return{_bufferIndex:B,_index:j,line:$,column:K,offset:W}}function x(B){r[B.line]=B.column,D()}function E(){let B;for(;i._index<o.length;){const j=o[i._index];if(typeof j=="string")for(B=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===B&&i._bufferIndex<j.length;)C(j.charCodeAt(i._bufferIndex));else C(j)}}function C(B){p=p(B)}function S(B){Ae(B)?(i.line++,i.column=1,i.offset+=B===-3?2:1,D()):B!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===o[i._index].length&&(i._bufferIndex=-1,i._index++)),c.previous=B}function k(B,j){const $=j||{};return $.type=B,$.start=_(),c.events.push(["enter",$,c]),l.push($),$}function A(B){const j=l.pop();return j.end=_(),c.events.push(["exit",j,c]),j}function b(B,j){L(B,j.from)}function f(B,j){j.restore()}function T(B,j){return $;function $(K,W,ne){let te,J,ue,y;return Array.isArray(K)?ie(K):"tokenize"in K?ie([K]):X(K);function X(F){return z;function z(Y){const ee=Y!==null&&F[Y],se=Y!==null&&F.null,le=[...Array.isArray(ee)?ee:ee?[ee]:[],...Array.isArray(se)?se:se?[se]:[]];return ie(le)(Y)}}function ie(F){return te=F,J=0,F.length===0?ne:P(F[J])}function P(F){return z;function z(Y){return y=V(),ue=F,F.partial||(c.currentConstruct=F),F.name&&c.parser.constructs.disable.null.includes(F.name)?q():F.tokenize.call(j?Object.assign(Object.create(c),j):c,u,G,q)(Y)}}function G(F){return B(ue,y),W}function q(F){return y.restore(),++J<te.length?P(te[J]):ne}}}function L(B,j){B.resolveAll&&!a.includes(B)&&a.push(B),B.resolve&&zt(c.events,j,c.events.length-j,B.resolve(c.events.slice(j),c)),B.resolveTo&&(c.events=B.resolveTo(c.events,c))}function V(){const B=_(),j=c.previous,$=c.currentConstruct,K=c.events.length,W=Array.from(l);return{from:K,restore:ne};function ne(){i=B,c.previous=j,c.currentConstruct=$,c.events.length=K,l=W,D()}}function D(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function Kk(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,a=t.end._bufferIndex;let o;if(n===r)o=[e[n].slice(i,a)];else{if(o=e.slice(n,r),i>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(i):o.shift()}a>0&&o.push(e[r].slice(0,a))}return o}function Uk(e,t){let n=-1;const i=[];let r;for(;++n<e.length;){const a=e[n];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
|
|
83
|
+
`;break}case-3:{o=`\r
|
|
84
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&r)continue;o=" ";break}default:o=String.fromCharCode(a)}r=a===-2,i.push(o)}return i.join("")}function Wk(e){const i={constructs:ml([Bk,...(e||{}).extensions||[]]),content:r(wk),defined:[],document:r(Sk),flow:r(Ik),lazy:{},string:r(Nk),text:r(Tk)};return i;function r(a){return o;function o(l){return Hk(i,a,l)}}}function qk(e){for(;!yf(e););return e}const Tc=/[\0\t\n\r]/g;function Gk(){let e=1,t="",n=!0,i;return r;function r(a,o,l){const u=[];let c,p,d,m,g;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),d=0,t="",n&&(a.charCodeAt(0)===65279&&d++,n=void 0);d<a.length;){if(Tc.lastIndex=d,c=Tc.exec(a),m=c&&c.index!==void 0?c.index:a.length,g=a.charCodeAt(m),!c){t=a.slice(d);break}if(g===10&&d===m&&i)u.push(-3),i=void 0;else switch(i&&(u.push(-5),i=void 0),d<m&&(u.push(a.slice(d,m)),e+=m-d),g){case 0:{u.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,u.push(-2);e++<p;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:i=!0,e=1}d=m+1}return l&&(i&&u.push(-5),t&&u.push(t),u.push(null)),u}}const $k=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Af(e){return e.replace($k,Jk)}function Jk(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),a=r===120||r===88;return Cf(n.slice(a?2:1),a?16:10)}return Ji(n)||e}const Nf={}.hasOwnProperty;function Yk(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Xk(n)(qk(Wk(n).document().write(Gk()(e,t,!0))))}function Xk(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Te),autolinkProtocol:V,autolinkEmail:V,atxHeading:a(we),blockQuote:a(se),characterEscape:V,characterReference:V,codeFenced:a(le),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(le,o),codeText:a(H,o),codeTextData:V,data:V,codeFlowValue:V,definition:a(pe),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(re),hardBreakEscape:a(xe),hardBreakTrailing:a(xe),htmlFlow:a(be,o),htmlFlowData:V,htmlText:a(be,o),htmlTextData:V,image:a(Ne),label:o,link:a(Te),listItem:a(qe),listItemValue:m,listOrdered:a(Pe,d),listUnordered:a(Pe),paragraph:a(Ye),reference:P,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(we),strong:a(Re),thematicBreak:a(xt)},exit:{atxHeading:u(),atxHeadingSequence:b,autolink:u(),autolinkEmail:ee,autolinkProtocol:Y,blockQuote:u(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:q,characterReferenceMarkerNumeric:q,characterReferenceValue:F,characterReference:z,codeFenced:u(E),codeFencedFence:x,codeFencedFenceInfo:g,codeFencedFenceMeta:_,codeFlowValue:D,codeIndented:u(C),codeText:u(W),codeTextData:D,data:D,definition:u(),definitionDestinationString:A,definitionLabelString:S,definitionTitleString:k,emphasis:u(),hardBreakEscape:u(j),hardBreakTrailing:u(j),htmlFlow:u($),htmlFlowData:D,htmlText:u(K),htmlTextData:D,image:u(te),label:ue,labelText:J,lineEnding:B,link:u(ne),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:G,resourceDestinationString:y,resourceTitleString:X,resource:ie,setextHeading:u(L),setextHeadingLineSequence:T,setextHeadingText:f,strong:u(),thematicBreak:u()}};Tf(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(oe){let ae={type:"root",children:[]};const O={stack:[ae],tokenStack:[],config:t,enter:l,exit:c,buffer:o,resume:p,data:n},ke=[];let Be=-1;for(;++Be<oe.length;)if(oe[Be][1].type==="listOrdered"||oe[Be][1].type==="listUnordered")if(oe[Be][0]==="enter")ke.push(Be);else{const ct=ke.pop();Be=r(oe,ct,Be)}for(Be=-1;++Be<oe.length;){const ct=t[oe[Be][0]];Nf.call(ct,oe[Be][1].type)&&ct[oe[Be][1].type].call(Object.assign({sliceSerialize:oe[Be][2].sliceSerialize},O),oe[Be][1])}if(O.tokenStack.length>0){const ct=O.tokenStack[O.tokenStack.length-1];(ct[1]||Pc).call(O,void 0,ct[0])}for(ae.position={start:On(oe.length>0?oe[0][1].start:{line:1,column:1,offset:0}),end:On(oe.length>0?oe[oe.length-2][1].end:{line:1,column:1,offset:0})},Be=-1;++Be<t.transforms.length;)ae=t.transforms[Be](ae)||ae;return ae}function r(oe,ae,O){let ke=ae-1,Be=-1,ct=!1,ve,bt,gn,rn;for(;++ke<=O;){const ht=oe[ke];switch(ht[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ht[0]==="enter"?Be++:Be--,rn=void 0;break}case"lineEndingBlank":{ht[0]==="enter"&&(ve&&!rn&&!Be&&!gn&&(gn=ke),rn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:rn=void 0}if(!Be&&ht[0]==="enter"&&ht[1].type==="listItemPrefix"||Be===-1&&ht[0]==="exit"&&(ht[1].type==="listUnordered"||ht[1].type==="listOrdered")){if(ve){let Mt=ke;for(bt=void 0;Mt--;){const Tt=oe[Mt];if(Tt[1].type==="lineEnding"||Tt[1].type==="lineEndingBlank"){if(Tt[0]==="exit")continue;bt&&(oe[bt][1].type="lineEndingBlank",ct=!0),Tt[1].type="lineEnding",bt=Mt}else if(!(Tt[1].type==="linePrefix"||Tt[1].type==="blockQuotePrefix"||Tt[1].type==="blockQuotePrefixWhitespace"||Tt[1].type==="blockQuoteMarker"||Tt[1].type==="listItemIndent"))break}gn&&(!bt||gn<bt)&&(ve._spread=!0),ve.end=Object.assign({},bt?oe[bt][1].start:ht[1].end),oe.splice(bt||ke,0,["exit",ve,ht[2]]),ke++,O++}if(ht[1].type==="listItemPrefix"){const Mt={type:"listItem",_spread:!1,start:Object.assign({},ht[1].start),end:void 0};ve=Mt,oe.splice(ke,0,["enter",Mt,ht[2]]),ke++,O++,gn=void 0,rn=!0}}}return oe[ae][1]._spread=ct,O}function a(oe,ae){return O;function O(ke){l.call(this,oe(ke),ke),ae&&ae.call(this,ke)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(oe,ae,O){this.stack[this.stack.length-1].children.push(oe),this.stack.push(oe),this.tokenStack.push([ae,O||void 0]),oe.position={start:On(ae.start),end:void 0}}function u(oe){return ae;function ae(O){oe&&oe.call(this,O),c.call(this,O)}}function c(oe,ae){const O=this.stack.pop(),ke=this.tokenStack.pop();if(ke)ke[0].type!==oe.type&&(ae?ae.call(this,oe,ke[0]):(ke[1]||Pc).call(this,oe,ke[0]));else throw new Error("Cannot close `"+oe.type+"` ("+yn({start:oe.start,end:oe.end})+"): it’s not open");O.position.end=On(oe.end)}function p(){return bk(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function m(oe){if(this.data.expectingFirstListItemValue){const ae=this.stack[this.stack.length-2];ae.start=Number.parseInt(this.sliceSerialize(oe),10),this.data.expectingFirstListItemValue=void 0}}function g(){const oe=this.resume(),ae=this.stack[this.stack.length-1];ae.lang=oe}function _(){const oe=this.resume(),ae=this.stack[this.stack.length-1];ae.meta=oe}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const oe=this.resume(),ae=this.stack[this.stack.length-1];ae.value=oe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function C(){const oe=this.resume(),ae=this.stack[this.stack.length-1];ae.value=oe.replace(/(\r?\n|\r)$/g,"")}function S(oe){const ae=this.resume(),O=this.stack[this.stack.length-1];O.label=ae,O.identifier=tn(this.sliceSerialize(oe)).toLowerCase()}function k(){const oe=this.resume(),ae=this.stack[this.stack.length-1];ae.title=oe}function A(){const oe=this.resume(),ae=this.stack[this.stack.length-1];ae.url=oe}function b(oe){const ae=this.stack[this.stack.length-1];if(!ae.depth){const O=this.sliceSerialize(oe).length;ae.depth=O}}function f(){this.data.setextHeadingSlurpLineEnding=!0}function T(oe){const ae=this.stack[this.stack.length-1];ae.depth=this.sliceSerialize(oe).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function V(oe){const O=this.stack[this.stack.length-1].children;let ke=O[O.length-1];(!ke||ke.type!=="text")&&(ke=Fe(),ke.position={start:On(oe.start),end:void 0},O.push(ke)),this.stack.push(ke)}function D(oe){const ae=this.stack.pop();ae.value+=this.sliceSerialize(oe),ae.position.end=On(oe.end)}function B(oe){const ae=this.stack[this.stack.length-1];if(this.data.atHardBreak){const O=ae.children[ae.children.length-1];O.position.end=On(oe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ae.type)&&(V.call(this,oe),D.call(this,oe))}function j(){this.data.atHardBreak=!0}function $(){const oe=this.resume(),ae=this.stack[this.stack.length-1];ae.value=oe}function K(){const oe=this.resume(),ae=this.stack[this.stack.length-1];ae.value=oe}function W(){const oe=this.resume(),ae=this.stack[this.stack.length-1];ae.value=oe}function ne(){const oe=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";oe.type+="Reference",oe.referenceType=ae,delete oe.url,delete oe.title}else delete oe.identifier,delete oe.label;this.data.referenceType=void 0}function te(){const oe=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";oe.type+="Reference",oe.referenceType=ae,delete oe.url,delete oe.title}else delete oe.identifier,delete oe.label;this.data.referenceType=void 0}function J(oe){const ae=this.sliceSerialize(oe),O=this.stack[this.stack.length-2];O.label=Af(ae),O.identifier=tn(ae).toLowerCase()}function ue(){const oe=this.stack[this.stack.length-1],ae=this.resume(),O=this.stack[this.stack.length-1];if(this.data.inReference=!0,O.type==="link"){const ke=oe.children;O.children=ke}else O.alt=ae}function y(){const oe=this.resume(),ae=this.stack[this.stack.length-1];ae.url=oe}function X(){const oe=this.resume(),ae=this.stack[this.stack.length-1];ae.title=oe}function ie(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function G(oe){const ae=this.resume(),O=this.stack[this.stack.length-1];O.label=ae,O.identifier=tn(this.sliceSerialize(oe)).toLowerCase(),this.data.referenceType="full"}function q(oe){this.data.characterReferenceType=oe.type}function F(oe){const ae=this.sliceSerialize(oe),O=this.data.characterReferenceType;let ke;O?(ke=Cf(ae,O==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ke=Ji(ae);const Be=this.stack[this.stack.length-1];Be.value+=ke}function z(oe){const ae=this.stack.pop();ae.position.end=On(oe.end)}function Y(oe){D.call(this,oe);const ae=this.stack[this.stack.length-1];ae.url=this.sliceSerialize(oe)}function ee(oe){D.call(this,oe);const ae=this.stack[this.stack.length-1];ae.url="mailto:"+this.sliceSerialize(oe)}function se(){return{type:"blockquote",children:[]}}function le(){return{type:"code",lang:null,meta:null,value:""}}function H(){return{type:"inlineCode",value:""}}function pe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function re(){return{type:"emphasis",children:[]}}function we(){return{type:"heading",depth:0,children:[]}}function xe(){return{type:"break"}}function be(){return{type:"html",value:""}}function Ne(){return{type:"image",title:null,url:"",alt:null}}function Te(){return{type:"link",title:null,url:"",children:[]}}function Pe(oe){return{type:"list",ordered:oe.type==="listOrdered",start:null,spread:oe._spread,children:[]}}function qe(oe){return{type:"listItem",spread:oe._spread,checked:null,children:[]}}function Ye(){return{type:"paragraph",children:[]}}function Re(){return{type:"strong",children:[]}}function Fe(){return{type:"text",value:""}}function xt(){return{type:"thematicBreak"}}}function On(e){return{line:e.line,column:e.column,offset:e.offset}}function Tf(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?Tf(e,i):Zk(e,i)}}function Zk(e,t){let n;for(n in t)if(Nf.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function Pc(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+yn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+yn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+yn({start:t.start,end:t.end})+") is still open")}function Qk(e){const t=this;t.parser=n;function n(i){return Yk(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const Oc={}.hasOwnProperty;function eS(e,t){const n=t||{};function i(r,...a){let o=i.invalid;const l=i.handlers;if(r&&Oc.call(r,e)){const u=String(r[e]);o=Oc.call(l,u)?l[u]:i.unknown}if(o)return o.call(this,r,...a)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}const tS={}.hasOwnProperty;function Pf(e,t){let n=-1,i;if(t.extensions)for(;++n<t.extensions.length;)Pf(e,t.extensions[n]);for(i in t)if(tS.call(t,i))switch(i){case"extensions":break;case"unsafe":{Lc(e[i],t[i]);break}case"join":{Lc(e[i],t[i]);break}case"handlers":{nS(e[i],t[i]);break}default:e.options[i]=t[i]}return e}function Lc(e,t){t&&e.push(...t)}function nS(e,t){t&&Object.assign(e,t)}function iS(e,t,n,i){const r=n.enter("blockquote"),a=n.createTracker(i);a.move("> "),a.shift(2);const o=n.indentLines(n.containerFlow(e,a.current()),rS);return r(),o}function rS(e,t,n){return">"+(n?"":" ")+e}function Of(e,t){return Rc(e,t.inConstruct,!0)&&!Rc(e,t.notInConstruct,!1)}function Rc(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function Dc(e,t,n,i){let r=-1;for(;++r<n.unsafe.length;)if(n.unsafe[r].character===`
|
|
85
|
+
`&&Of(n.stack,n.unsafe[r]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
86
|
+
`}function aS(e,t){const n=String(e);let i=n.indexOf(t),r=i,a=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===r?++a>o&&(o=a):a=1,r=i+t.length,i=n.indexOf(t,r);return o}function Qs(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function sS(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function oS(e,t,n,i){const r=sS(n),a=e.value||"",o=r==="`"?"GraveAccent":"Tilde";if(Qs(e,n)){const d=n.enter("codeIndented"),m=n.indentLines(a,lS);return d(),m}const l=n.createTracker(i),u=r.repeat(Math.max(aS(a,r)+1,3)),c=n.enter("codeFenced");let p=l.move(u);if(e.lang){const d=n.enter(`codeFencedLang${o}`);p+=l.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...l.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${o}`);p+=l.move(" "),p+=l.move(n.safe(e.meta,{before:p,after:`
|
|
87
|
+
`,encode:["`"],...l.current()})),d()}return p+=l.move(`
|
|
88
|
+
`),a&&(p+=l.move(a+`
|
|
89
|
+
`)),p+=l.move(u),c(),p}function lS(e,t,n){return(n?"":" ")+e}function vl(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function uS(e,t,n,i){const r=vl(n),a=r==='"'?"Quote":"Apostrophe",o=n.enter("definition");let l=n.enter("label");const u=n.createTracker(i);let c=u.move("[");return c+=u.move(n.safe(n.associationId(e),{before:c,after:"]",...u.current()})),c+=u.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":`
|
|
90
|
+
`,...u.current()}))),l(),e.title&&(l=n.enter(`title${a}`),c+=u.move(" "+r),c+=u.move(n.safe(e.title,{before:c,after:r,...u.current()})),c+=u.move(r),l()),o(),c}function cS(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function jn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ga(e,t,n){const i=yi(e),r=yi(t);return i===void 0?r===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Lf.peek=hS;function Lf(e,t,n,i){const r=cS(n),a=n.enter("emphasis"),o=n.createTracker(i),l=o.move(r);let u=o.move(n.containerPhrasing(e,{after:r,before:l,...o.current()}));const c=u.charCodeAt(0),p=ga(i.before.charCodeAt(i.before.length-1),c,r);p.inside&&(u=jn(c)+u.slice(1));const d=u.charCodeAt(u.length-1),m=ga(i.after.charCodeAt(0),d,r);m.inside&&(u=u.slice(0,-1)+jn(d));const g=o.move(r);return a(),n.attentionEncodeSurroundingInfo={after:m.outside,before:p.outside},l+u+g}function hS(e,t,n){return n.options.emphasis||"*"}const Da=(function(e){if(e==null)return gS;if(typeof e=="function")return Ma(e);if(typeof e=="object")return Array.isArray(e)?dS(e):pS(e);if(typeof e=="string")return fS(e);throw new Error("Expected function, string, or object as test")});function dS(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Da(e[n]);return Ma(i);function i(...r){let a=-1;for(;++a<t.length;)if(t[a].apply(this,r))return!0;return!1}}function pS(e){const t=e;return Ma(n);function n(i){const r=i;let a;for(a in e)if(r[a]!==t[a])return!1;return!0}}function fS(e){return Ma(t);function t(n){return n&&n.type===e}}function Ma(e){return t;function t(n,i,r){return!!(mS(n)&&e.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function gS(){return!0}function mS(e){return e!==null&&typeof e=="object"&&"type"in e}const Rf=[],vS=!0,eo=!1,xS="skip";function Df(e,t,n,i){let r;typeof t=="function"&&typeof n!="function"?(i=n,n=t):r=t;const a=Da(r),o=i?-1:1;l(e,void 0,[])();function l(u,c,p){const d=u&&typeof u=="object"?u:{};if(typeof d.type=="string"){const g=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(u.type+(g?"<"+g+">":""))+")"})}return m;function m(){let g=Rf,_,x,E;if((!t||a(u,c,p[p.length-1]||void 0))&&(g=bS(n(u,p)),g[0]===eo))return g;if("children"in u&&u.children){const C=u;if(C.children&&g[0]!==xS)for(x=(i?C.children.length:-1)+o,E=p.concat(C);x>-1&&x<C.children.length;){const S=C.children[x];if(_=l(S,x,E)(),_[0]===eo)return _;x=typeof _[1]=="number"?_[1]:x+o}}return g}}}function bS(e){return Array.isArray(e)?e:typeof e=="number"?[vS,e]:e==null?Rf:[e]}function yS(e,t,n,i){let r,a,o;typeof t=="function"&&typeof n!="function"?(a=void 0,o=t,r=n):(a=t,o=n,r=i),Df(e,a,l,r);function l(u,c){const p=c[c.length-1],d=p?p.children.indexOf(u):void 0;return o(u,d,p)}}const wS={};function Mf(e,t){const n=wS,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ff(e,i,r)}function Ff(e,t,n){if(kS(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 Mc(e.children,t,n)}return Array.isArray(e)?Mc(e,t,n):""}function Mc(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=Ff(e[r],t,n);return i.join("")}function kS(e){return!!(e&&typeof e=="object")}function jf(e,t){let n=!1;return yS(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,eo}),!!((!e.depth||e.depth<3)&&Mf(e)&&(t.options.setext||n))}function SS(e,t,n,i){const r=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(i);if(jf(e,n)){const p=n.enter("headingSetext"),d=n.enter("phrasing"),m=n.containerPhrasing(e,{...a.current(),before:`
|
|
91
|
+
`,after:`
|
|
92
|
+
`});return d(),p(),m+`
|
|
93
|
+
`+(r===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
|
|
94
|
+
`))+1))}const o="#".repeat(r),l=n.enter("headingAtx"),u=n.enter("phrasing");a.move(o+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
|
|
95
|
+
`,...a.current()});return/^[\t ]/.test(c)&&(c=jn(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),u(),l(),c}Vf.peek=ES;function Vf(e){return e.value||""}function ES(){return"<"}zf.peek=CS;function zf(e,t,n,i){const r=vl(n),a=r==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const u=n.createTracker(i);let c=u.move("![");return c+=u.move(n.safe(e.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=n.enter(`title${a}`),c+=u.move(" "+r),c+=u.move(n.safe(e.title,{before:c,after:r,...u.current()})),c+=u.move(r),l()),c+=u.move(")"),o(),c}function CS(){return"!"}Bf.peek=IS;function Bf(e,t,n,i){const r=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(i);let u=l.move("![");const c=n.safe(e.alt,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),o();const p=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return o(),n.stack=p,a(),r==="full"||!c||c!==d?u+=l.move(d+"]"):r==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function IS(){return"!"}Hf.peek=_S;function Hf(e,t,n){let i=e.value||"",r="`",a=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(i);)r+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++a<n.unsafe.length;){const o=n.unsafe[a],l=n.compilePattern(o);let u;if(o.atBreak)for(;u=l.exec(i);){let c=u.index;i.charCodeAt(c)===10&&i.charCodeAt(c-1)===13&&c--,i=i.slice(0,c)+" "+i.slice(u.index+1)}}return r+i+r}function _S(){return"`"}function Kf(e,t){const n=Mf(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Uf.peek=AS;function Uf(e,t,n,i){const r=vl(n),a=r==='"'?"Quote":"Apostrophe",o=n.createTracker(i);let l,u;if(Kf(e,n)){const p=n.stack;n.stack=[],l=n.enter("autolink");let d=o.move("<");return d+=o.move(n.containerPhrasing(e,{before:d,after:">",...o.current()})),d+=o.move(">"),l(),n.stack=p,d}l=n.enter("link"),u=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(u=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=n.enter(`title${a}`),c+=o.move(" "+r),c+=o.move(n.safe(e.title,{before:c,after:r,...o.current()})),c+=o.move(r),u()),c+=o.move(")"),l(),c}function AS(e,t,n){return Kf(e,n)?"<":"["}Wf.peek=NS;function Wf(e,t,n,i){const r=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(i);let u=l.move("[");const c=n.containerPhrasing(e,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),o();const p=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return o(),n.stack=p,a(),r==="full"||!c||c!==d?u+=l.move(d+"]"):r==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function NS(){return"["}function xl(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function TS(e){const t=xl(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function PS(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function qf(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function OS(e,t,n,i){const r=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?PS(n):xl(n);const l=e.ordered?o==="."?")":".":TS(n);let u=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),qf(n)===o&&p){let d=-1;for(;++d<e.children.length;){const m=e.children[d];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(o=l),n.bulletCurrent=o;const c=n.containerFlow(e,i);return n.bulletLastUsed=o,n.bulletCurrent=a,r(),c}function LS(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function RS(e,t,n,i){const r=LS(n);let a=n.bulletCurrent||xl(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=n.createTracker(i);l.move(a+" ".repeat(o-a.length)),l.shift(o);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),p);return u(),c;function p(d,m,g){return m?(g?"":" ".repeat(o))+d:(g?a:a+" ".repeat(o-a.length))+d}}function DS(e,t,n,i){const r=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,i);return a(),r(),o}const MS=Da(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function FS(e,t,n,i){return(e.children.some(function(o){return MS(o)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function jS(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Gf.peek=VS;function Gf(e,t,n,i){const r=jS(n),a=n.enter("strong"),o=n.createTracker(i),l=o.move(r+r);let u=o.move(n.containerPhrasing(e,{after:r,before:l,...o.current()}));const c=u.charCodeAt(0),p=ga(i.before.charCodeAt(i.before.length-1),c,r);p.inside&&(u=jn(c)+u.slice(1));const d=u.charCodeAt(u.length-1),m=ga(i.after.charCodeAt(0),d,r);m.inside&&(u=u.slice(0,-1)+jn(d));const g=o.move(r+r);return a(),n.attentionEncodeSurroundingInfo={after:m.outside,before:p.outside},l+u+g}function VS(e,t,n){return n.options.strong||"*"}function zS(e,t,n,i){return n.safe(e.value,i)}function BS(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function HS(e,t,n){const i=(qf(n)+(n.options.ruleSpaces?" ":"")).repeat(BS(n));return n.options.ruleSpaces?i.slice(0,-1):i}const bl={blockquote:iS,break:Dc,code:oS,definition:uS,emphasis:Lf,hardBreak:Dc,heading:SS,html:Vf,image:zf,imageReference:Bf,inlineCode:Hf,link:Uf,linkReference:Wf,list:OS,listItem:RS,paragraph:DS,root:FS,strong:Gf,text:zS,thematicBreak:HS},KS=[US];function US(e,t,n,i){if(t.type==="code"&&Qs(t,i)&&(e.type==="list"||e.type===t.type&&Qs(e,i)))return!1;if("spread"in n&&typeof n.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&jf(t,i))?void 0:n.spread?1:0}const Gn=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],WS=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
|
|
96
|
+
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Gn},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
|
|
97
|
+
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Gn},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
|
|
98
|
+
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:Gn},{atBreak:!0,character:"+",after:`(?:[ \r
|
|
99
|
+
])`},{atBreak:!0,character:"-",after:`(?:[ \r
|
|
100
|
+
-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
|
|
101
|
+
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Gn},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Gn},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Gn},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Gn},{atBreak:!0,character:"~"}];function qS(e){return e.label||!e.identifier?e.label||"":Af(e.identifier)}function GS(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function $S(e,t,n){const i=t.indexStack,r=e.children||[],a=[];let o=-1,l=n.before,u;i.push(-1);let c=t.createTracker(n);for(;++o<r.length;){const p=r[o];let d;if(i[i.length-1]=o,o+1<r.length){let _=t.handle.handlers[r[o+1].type];_&&_.peek&&(_=_.peek),d=_?_(r[o+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else d=n.after;a.length>0&&(l==="\r"||l===`
|
|
102
|
+
`)&&p.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),l=" ",c=t.createTracker(n),c.move(a.join("")));let m=t.handle(p,e,t,{...c.current(),after:d,before:l});u&&u===m.slice(0,1)&&(m=jn(u.charCodeAt(0))+m.slice(1));const g=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,u=void 0,g&&(a.length>0&&g.before&&l===a[a.length-1].slice(-1)&&(a[a.length-1]=a[a.length-1].slice(0,-1)+jn(l.charCodeAt(0))),g.after&&(u=d)),c.move(m),a.push(m),l=m.slice(-1)}return i.pop(),a.join("")}function JS(e,t,n){const i=t.indexStack,r=e.children||[],a=t.createTracker(n),o=[];let l=-1;for(i.push(-1);++l<r.length;){const u=r[l];i[i.length-1]=l,o.push(a.move(t.handle(u,e,t,{before:`
|
|
103
|
+
`,after:`
|
|
104
|
+
`,...a.current()}))),u.type!=="list"&&(t.bulletLastUsed=void 0),l<r.length-1&&o.push(a.move(YS(u,r[l+1],e,t)))}return i.pop(),o.join("")}function YS(e,t,n,i){let r=i.join.length;for(;r--;){const a=i.join[r](e,t,n,i);if(a===!0||a===1)break;if(typeof a=="number")return`
|
|
105
|
+
`.repeat(1+a);if(a===!1)return`
|
|
106
|
+
|
|
107
|
+
<!---->
|
|
108
|
+
|
|
109
|
+
`}return`
|
|
110
|
+
|
|
111
|
+
`}const XS=/\r?\n|\r/g;function ZS(e,t){const n=[];let i=0,r=0,a;for(;a=XS.exec(e);)o(e.slice(i,a.index)),n.push(a[0]),i=a.index+a[0].length,r++;return o(e.slice(i)),n.join("");function o(l){n.push(t(l,r,!l))}}function QS(e,t,n){const i=(n.before||"")+(t||"")+(n.after||""),r=[],a=[],o={};let l=-1;for(;++l<e.unsafe.length;){const p=e.unsafe[l];if(!Of(e.stack,p))continue;const d=e.compilePattern(p);let m;for(;m=d.exec(i);){const g="before"in p||!!p.atBreak,_="after"in p,x=m.index+(g?m[1].length:0);r.includes(x)?(o[x].before&&!g&&(o[x].before=!1),o[x].after&&!_&&(o[x].after=!1)):(r.push(x),o[x]={before:g,after:_})}}r.sort(eE);let u=n.before?n.before.length:0;const c=i.length-(n.after?n.after.length:0);for(l=-1;++l<r.length;){const p=r[l];p<u||p>=c||p+1<c&&r[l+1]===p+1&&o[p].after&&!o[p+1].before&&!o[p+1].after||r[l-1]===p-1&&o[p].before&&!o[p-1].before&&!o[p-1].after||(u!==p&&a.push(Fc(i.slice(u,p),"\\")),u=p,/[!-/:-@[-`{-~]/.test(i.charAt(p))&&(!n.encode||!n.encode.includes(i.charAt(p)))?a.push("\\"):(a.push(jn(i.charCodeAt(p))),u++))}return a.push(Fc(i.slice(u,c),n.after)),a.join("")}function eE(e,t){return e-t}function Fc(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,i=[],r=[],a=e+t;let o=-1,l=0,u;for(;u=n.exec(a);)i.push(u.index);for(;++o<i.length;)l!==i[o]&&r.push(e.slice(l,i[o])),r.push("\\"),l=i[o];return r.push(e.slice(l)),r.join("")}function tE(e){const t=e||{},n=t.now||{};let i=t.lineShift||0,r=n.line||1,a=n.column||1;return{move:u,current:o,shift:l};function o(){return{now:{line:r,column:a},lineShift:i}}function l(c){i+=c}function u(c){const p=c||"",d=p.split(/\r?\n|\r/g),m=d[d.length-1];return r+=d.length-1,a=d.length===1?a+m.length:1+m.length+i,p}}function nE(e,t){const n=t||{},i={associationId:qS,containerPhrasing:sE,containerFlow:oE,createTracker:tE,compilePattern:GS,enter:a,handlers:{...bl},handle:void 0,indentLines:ZS,indexStack:[],join:[...KS],options:{},safe:lE,stack:[],unsafe:[...WS]};Pf(i,n),i.options.tightDefinitions&&i.join.push(aE),i.handle=eS("type",{invalid:iE,unknown:rE,handlers:i.handlers});let r=i.handle(e,void 0,i,{before:`
|
|
112
|
+
`,after:`
|
|
113
|
+
`,now:{line:1,column:1},lineShift:0});return r&&r.charCodeAt(r.length-1)!==10&&r.charCodeAt(r.length-1)!==13&&(r+=`
|
|
114
|
+
`),r;function a(o){return i.stack.push(o),l;function l(){i.stack.pop()}}}function iE(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function rE(e){const t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function aE(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function sE(e,t){return $S(e,this,t)}function oE(e,t){return JS(e,this,t)}function lE(e,t){return QS(this,e,t)}function uE(e){const t=this;t.compiler=n;function n(i){return nE(i,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function jc(e){if(e)throw e}var ps,Vc;function cE(){if(Vc)return ps;Vc=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},a=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var p=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!p&&!d)return!1;var m;for(m in c);return typeof m>"u"||e.call(c,m)},o=function(c,p){n&&p.name==="__proto__"?n(c,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):c[p.name]=p.newValue},l=function(c,p){if(p==="__proto__")if(e.call(c,p)){if(i)return i(c,p).value}else return;return c[p]};return ps=function u(){var c,p,d,m,g,_,x=arguments[0],E=1,C=arguments.length,S=!1;for(typeof x=="boolean"&&(S=x,x=arguments[1]||{},E=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});E<C;++E)if(c=arguments[E],c!=null)for(p in c)d=l(x,p),m=l(c,p),x!==m&&(S&&m&&(a(m)||(g=r(m)))?(g?(g=!1,_=d&&r(d)?d:[]):_=d&&a(d)?d:{},o(x,{name:p,newValue:u(S,_,m)})):typeof m<"u"&&o(x,{name:p,newValue:m}));return x},ps}var hE=cE();const fs=ff(hE);function to(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 dE(){const e=[],t={run:n,use:i};return t;function n(...r){let a=-1;const o=r.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...r);function l(u,...c){const p=e[++a];let d=-1;if(u){o(u);return}for(;++d<r.length;)(c[d]===null||c[d]===void 0)&&(c[d]=r[d]);r=c,p?pE(p,l)(...c):o(null,...c)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function pE(e,t){let n;return i;function i(...o){const l=e.length>o.length;let u;l&&o.push(r);try{u=e.apply(this,o)}catch(c){const p=c;if(l&&n)throw p;return r(p)}l||(u&&u.then&&typeof u.then=="function"?u.then(a,r):u instanceof Error?r(u):a(u))}function r(o,...l){n||(n=!0,t(o,...l))}function a(o){r(null,o)}}const on={basename:fE,dirname:gE,extname:mE,join:vE,sep:"/"};function fE(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');lr(e);let n=0,i=-1,r=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(a){n=r+1;break}}else i<0&&(a=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let o=-1,l=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(a){n=r+1;break}}else o<0&&(a=!0,o=r+1),l>-1&&(e.codePointAt(r)===t.codePointAt(l--)?l<0&&(i=r):(l=-1,i=o));return n===i?i=o:i<0&&(i=e.length),e.slice(n,i)}function gE(e){if(lr(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function mE(e){lr(e);let t=e.length,n=-1,i=0,r=-1,a=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){i=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?r<0?r=t:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||n<0||a===0||a===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function vE(...e){let t=-1,n;for(;++t<e.length;)lr(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":xE(n)}function xE(e){lr(e);const t=e.codePointAt(0)===47;let n=bE(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function bE(e,t){let n="",i=0,r=-1,a=0,o=-1,l,u;for(;++o<=e.length;){if(o<e.length)l=e.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(r===o-1||a===1))if(r!==o-1&&a===2){if(n.length<2||i!==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="",i=0):(n=n.slice(0,u),i=n.length-1-n.lastIndexOf("/")),r=o,a=0;continue}}else if(n.length>0){n="",i=0,r=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,o):n=e.slice(r+1,o),i=o-r-1;r=o,a=0}else l===46&&a>-1?a++:a=-1}return n}function lr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const yE={cwd:wE};function wE(){return"/"}function no(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kE(e){if(typeof e=="string")e=new URL(e);else if(!no(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 SE(e)}function SE(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const gs=["history","path","basename","stem","extname","dirname"];class EE{constructor(t){let n;t?no(t)?n={path:t}:typeof t=="string"||CE(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":yE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<gs.length;){const a=gs[i];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let r;for(r in n)gs.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?on.basename(this.path):void 0}set basename(t){vs(t,"basename"),ms(t,"basename"),this.path=on.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?on.dirname(this.path):void 0}set dirname(t){zc(this.basename,"dirname"),this.path=on.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?on.extname(this.path):void 0}set extname(t){if(ms(t,"extname"),zc(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=on.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){no(t)&&(t=kE(t)),vs(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?on.basename(this.path,this.extname):void 0}set stem(t){vs(t,"stem"),ms(t,"stem"),this.path=on.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){const r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){const r=new Qe(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ms(e,t){if(e&&e.includes(on.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+on.sep+"`")}function vs(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function zc(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function CE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const IE=(function(e){const i=this.constructor.prototype,r=i[e],a=function(){return r.apply(a,arguments)};return Object.setPrototypeOf(a,i),a}),_E={}.hasOwnProperty;class yl extends IE{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=dE()}copy(){const t=new yl;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(fs(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(ys("data",this.frozen),this.namespace[t]=n,this):_E.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ys("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,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Nr(t),i=this.parser||this.Parser;return xs("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),xs("process",this.parser||this.Parser),bs("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(a,o){const l=Nr(t),u=i.parse(l);i.run(u,l,function(p,d,m){if(p||!d||!m)return c(p);const g=d,_=i.stringify(g,m);TE(_)?m.value=_:m.result=_,c(p,m)});function c(p,d){p||!d?o(p):a?a(d):n(void 0,d)}}}processSync(t){let n=!1,i;return this.freeze(),xs("processSync",this.parser||this.Parser),bs("processSync",this.compiler||this.Compiler),this.process(t,r),Hc("processSync","process",n),i;function r(a,o){n=!0,jc(a),i=o}}run(t,n,i){Bc(t),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?a(void 0,i):new Promise(a);function a(o,l){const u=Nr(n);r.run(t,u,c);function c(p,d,m){const g=d||t;p?l(p):o?o(g):i(void 0,g,m)}}}runSync(t,n){let i=!1,r;return this.run(t,n,a),Hc("runSync","run",i),r;function a(o,l){jc(o),r=l,i=!0}}stringify(t,n){this.freeze();const i=Nr(n),r=this.compiler||this.Compiler;return bs("stringify",r),Bc(t),r(t,i)}use(t,...n){const i=this.attachers,r=this.namespace;if(ys("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[p,...d]=c;u(p,d)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(c.plugins),c.settings&&(r.settings=fs(!0,r.settings,c.settings))}function l(c){let p=-1;if(c!=null)if(Array.isArray(c))for(;++p<c.length;){const d=c[p];a(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,p){let d=-1,m=-1;for(;++d<i.length;)if(i[d][0]===c){m=d;break}if(m===-1)i.push([c,...p]);else if(p.length>0){let[g,..._]=p;const x=i[m][1];to(x)&&to(g)&&(g=fs(!0,x,g)),i[m]=[c,g,..._]}}}}const AE=new yl().freeze();function xs(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function bs(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ys(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 Bc(e){if(!to(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Hc(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Nr(e){return NE(e)?e:new EE(e)}function NE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function TE(e){return typeof e=="string"||PE(e)}function PE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const OE=AE().use(Qk).use(uE).freeze();function LE(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function RE(e,t,n){const r=Da((n||{}).ignore||[]),a=DE(t);let o=-1;for(;++o<a.length;)Df(e,"text",l);function l(c,p){let d=-1,m;for(;++d<p.length;){const g=p[d],_=m?m.children:void 0;if(r(g,_?_.indexOf(g):void 0,m))return;m=g}if(m)return u(c,p)}function u(c,p){const d=p[p.length-1],m=a[o][0],g=a[o][1];let _=0;const E=d.children.indexOf(c);let C=!1,S=[];m.lastIndex=0;let k=m.exec(c.value);for(;k;){const A=k.index,b={index:k.index,input:k.input,stack:[...p,c]};let f=g(...k,b);if(typeof f=="string"&&(f=f.length>0?{type:"text",value:f}:void 0),f===!1?m.lastIndex=A+1:(_!==A&&S.push({type:"text",value:c.value.slice(_,A)}),Array.isArray(f)?S.push(...f):f&&S.push(f),_=A+k[0].length,C=!0),!m.global)break;k=m.exec(c.value)}return C?(_<c.value.length&&S.push({type:"text",value:c.value.slice(_)}),d.children.splice(E,1,...S)):S=[c],E+S.length}}function DE(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const r=n[i];t.push([ME(r[0]),FE(r[1])])}return t}function ME(e){return typeof e=="string"?new RegExp(LE(e),"g"):e}function FE(e){return typeof e=="function"?e:function(){return e}}const ws="phrasing",ks=["autolink","link","image","label"];function jE(){return{transforms:[WE],enter:{literalAutolink:zE,literalAutolinkEmail:Ss,literalAutolinkHttp:Ss,literalAutolinkWww:Ss},exit:{literalAutolink:UE,literalAutolinkEmail:KE,literalAutolinkHttp:BE,literalAutolinkWww:HE}}}function VE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ws,notInConstruct:ks},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ws,notInConstruct:ks},{character:":",before:"[ps]",after:"\\/",inConstruct:ws,notInConstruct:ks}]}}function zE(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ss(e){this.config.enter.autolinkProtocol.call(this,e)}function BE(e){this.config.exit.autolinkProtocol.call(this,e)}function HE(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function KE(e){this.config.exit.autolinkEmail.call(this,e)}function UE(e){this.exit(e)}function WE(e){RE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,qE],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),GE]],{ignore:["link","linkReference"]})}function qE(e,t,n,i,r){let a="";if(!$f(r)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!$E(n)))return!1;const o=JE(n+i);if(!o[0])return!1;const l={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function GE(e,t,n,i){return!$f(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function $E(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function JE(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const r=la(e,"(");let a=la(e,")");for(;i!==-1&&r>a;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),a++;return[e,n]}function $f(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ct(n)||La(n))&&(!t||n!==47)}Jf.peek=rC;function YE(){this.buffer()}function XE(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ZE(){this.buffer()}function QE(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function eC(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=tn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function tC(e){this.exit(e)}function nC(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=tn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function iC(e){this.exit(e)}function rC(){return"["}function Jf(e,t,n,i){const r=n.createTracker(i);let a=r.move("[^");const o=n.enter("footnoteReference"),l=n.enter("reference");return a+=r.move(n.safe(n.associationId(e),{after:"]",before:a})),l(),o(),a+=r.move("]"),a}function aC(){return{enter:{gfmFootnoteCallString:YE,gfmFootnoteCall:XE,gfmFootnoteDefinitionLabelString:ZE,gfmFootnoteDefinition:QE},exit:{gfmFootnoteCallString:eC,gfmFootnoteCall:tC,gfmFootnoteDefinitionLabelString:nC,gfmFootnoteDefinition:iC}}}function sC(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Jf},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,r,a,o){const l=a.createTracker(o);let u=l.move("[^");const c=a.enter("footnoteDefinition"),p=a.enter("label");return u+=l.move(a.safe(a.associationId(i),{before:u,after:"]"})),p(),u+=l.move("]:"),i.children&&i.children.length>0&&(l.shift(4),u+=l.move((t?`
|
|
115
|
+
`:" ")+a.indentLines(a.containerFlow(i,l.current()),t?Yf:oC))),c(),u}}function oC(e,t,n){return t===0?e:Yf(e,t,n)}function Yf(e,t,n){return(n?"":" ")+e}const lC=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Xf.peek=pC;function uC(){return{canContainEols:["delete"],enter:{strikethrough:hC},exit:{strikethrough:dC}}}function cC(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:lC}],handlers:{delete:Xf}}}function hC(e){this.enter({type:"delete",children:[]},e)}function dC(e){this.exit(e)}function Xf(e,t,n,i){const r=n.createTracker(i),a=n.enter("strikethrough");let o=r.move("~~");return o+=n.containerPhrasing(e,{...r.current(),before:o,after:"~"}),o+=r.move("~~"),a(),o}function pC(){return"~"}function fC(e){return e.length}function gC(e,t){const n=t||{},i=(n.align||[]).concat(),r=n.stringLength||fC,a=[],o=[],l=[],u=[];let c=0,p=-1;for(;++p<e.length;){const x=[],E=[];let C=-1;for(e[p].length>c&&(c=e[p].length);++C<e[p].length;){const S=mC(e[p][C]);if(n.alignDelimiters!==!1){const k=r(S);E[C]=k,(u[C]===void 0||k>u[C])&&(u[C]=k)}x.push(S)}o[p]=x,l[p]=E}let d=-1;if(typeof i=="object"&&"length"in i)for(;++d<c;)a[d]=Kc(i[d]);else{const x=Kc(i);for(;++d<c;)a[d]=x}d=-1;const m=[],g=[];for(;++d<c;){const x=a[d];let E="",C="";x===99?(E=":",C=":"):x===108?E=":":x===114&&(C=":");let S=n.alignDelimiters===!1?1:Math.max(1,u[d]-E.length-C.length);const k=E+"-".repeat(S)+C;n.alignDelimiters!==!1&&(S=E.length+S+C.length,S>u[d]&&(u[d]=S),g[d]=S),m[d]=k}o.splice(1,0,m),l.splice(1,0,g),p=-1;const _=[];for(;++p<o.length;){const x=o[p],E=l[p];d=-1;const C=[];for(;++d<c;){const S=x[d]||"";let k="",A="";if(n.alignDelimiters!==!1){const b=u[d]-(E[d]||0),f=a[d];f===114?k=" ".repeat(b):f===99?b%2?(k=" ".repeat(b/2+.5),A=" ".repeat(b/2-.5)):(k=" ".repeat(b/2),A=k):A=" ".repeat(b)}n.delimiterStart!==!1&&!d&&C.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&S==="")&&(n.delimiterStart!==!1||d)&&C.push(" "),n.alignDelimiters!==!1&&C.push(k),C.push(S),n.alignDelimiters!==!1&&C.push(A),n.padding!==!1&&C.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&C.push("|")}_.push(n.delimiterEnd===!1?C.join("").replace(/ +$/,""):C.join(""))}return _.join(`
|
|
116
|
+
`)}function mC(e){return e==null?"":String(e)}function Kc(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function vC(){return{enter:{table:xC,tableData:Uc,tableHeader:Uc,tableRow:yC},exit:{codeText:wC,table:bC,tableData:Es,tableHeader:Es,tableRow:Es}}}function xC(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function bC(e){this.exit(e),this.data.inTable=void 0}function yC(e){this.enter({type:"tableRow",children:[]},e)}function Es(e){this.exit(e)}function Uc(e){this.enter({type:"tableCell",children:[]},e)}function wC(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,kC));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function kC(e,t){return t==="|"?t:e}function SC(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,r=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
117
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:o,tableCell:u,tableRow:l}};function o(g,_,x,E){return c(p(g,x,E),g.align)}function l(g,_,x,E){const C=d(g,x,E),S=c([C]);return S.slice(0,S.indexOf(`
|
|
118
|
+
`))}function u(g,_,x,E){const C=x.enter("tableCell"),S=x.enter("phrasing"),k=x.containerPhrasing(g,{...E,before:a,after:a});return S(),C(),k}function c(g,_){return gC(g,{align:_,alignDelimiters:i,padding:n,stringLength:r})}function p(g,_,x){const E=g.children;let C=-1;const S=[],k=_.enter("table");for(;++C<E.length;)S[C]=d(E[C],_,x);return k(),S}function d(g,_,x){const E=g.children;let C=-1;const S=[],k=_.enter("tableRow");for(;++C<E.length;)S[C]=u(E[C],g,_,x);return k(),S}function m(g,_,x){let E=bl.inlineCode(g,_,x);return x.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function EC(){return{exit:{taskListCheckValueChecked:Wc,taskListCheckValueUnchecked:Wc,paragraph:IC}}}function CC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:_C}}}function Wc(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function IC(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const r=t.children;let a=-1,o;for(;++a<r.length;){const l=r[a];if(l.type==="paragraph"){o=l;break}}o===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function _C(e,t,n,i){const r=e.children[0],a=typeof e.checked=="boolean"&&r&&r.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=n.createTracker(i);a&&l.move(o);let u=bl.listItem(e,t,n,{...i,...l.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(p){return p+o}}function AC(){return[jE(),aC(),uC(),vC(),EC()]}function NC(e){return{extensions:[VE(),sC(e),cC(),SC(e),CC()]}}const TC={tokenize:MC,partial:!0},Zf={tokenize:FC,partial:!0},Qf={tokenize:jC,partial:!0},eg={tokenize:VC,partial:!0},PC={tokenize:zC,partial:!0},tg={name:"wwwAutolink",tokenize:RC,previous:ig},ng={name:"protocolAutolink",tokenize:DC,previous:rg},Cn={name:"emailAutolink",tokenize:LC,previous:ag},fn={};function OC(){return{text:fn}}let $n=48;for(;$n<123;)fn[$n]=Cn,$n++,$n===58?$n=65:$n===91&&($n=97);fn[43]=Cn;fn[45]=Cn;fn[46]=Cn;fn[95]=Cn;fn[72]=[Cn,ng];fn[104]=[Cn,ng];fn[87]=[Cn,tg];fn[119]=[Cn,tg];function LC(e,t,n){const i=this;let r,a;return o;function o(d){return!io(d)||!ag.call(i,i.previous)||wl(i.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(d))}function l(d){return io(d)?(e.consume(d),l):d===64?(e.consume(d),u):n(d)}function u(d){return d===46?e.check(PC,p,c)(d):d===45||d===95||Rt(d)?(a=!0,e.consume(d),u):p(d)}function c(d){return e.consume(d),r=!0,u}function p(d){return a&&r&&St(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function RC(e,t,n){const i=this;return r;function r(o){return o!==87&&o!==119||!ig.call(i,i.previous)||wl(i.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(TC,e.attempt(Zf,e.attempt(Qf,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function DC(e,t,n){const i=this;let r="",a=!1;return o;function o(d){return(d===72||d===104)&&rg.call(i,i.previous)&&!wl(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(d),e.consume(d),l):n(d)}function l(d){if(St(d)&&r.length<5)return r+=String.fromCodePoint(d),e.consume(d),l;if(d===58){const m=r.toLowerCase();if(m==="http"||m==="https")return e.consume(d),u}return n(d)}function u(d){return d===47?(e.consume(d),a?c:(a=!0,u)):n(d)}function c(d){return d===null||pa(d)||Je(d)||Ct(d)||La(d)?n(d):e.attempt(Zf,e.attempt(Qf,p),n)(d)}function p(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function MC(e,t,n){let i=0;return r;function r(o){return(o===87||o===119)&&i<3?(i++,e.consume(o),r):o===46&&i===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function FC(e,t,n){let i,r,a;return o;function o(c){return c===46||c===95?e.check(eg,u,l)(c):c===null||Je(c)||Ct(c)||c!==45&&La(c)?u(c):(a=!0,e.consume(c),o)}function l(c){return c===95?i=!0:(r=i,i=void 0),e.consume(c),o}function u(c){return r||i||!a?n(c):t(c)}}function jC(e,t){let n=0,i=0;return r;function r(o){return o===40?(n++,e.consume(o),r):o===41&&i<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(eg,t,a)(o):o===null||Je(o)||Ct(o)?t(o):(e.consume(o),r)}function a(o){return o===41&&i++,e.consume(o),r}}function VC(e,t,n){return i;function i(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),i):l===38?(e.consume(l),a):l===93?(e.consume(l),r):l===60||l===null||Je(l)||Ct(l)?t(l):n(l)}function r(l){return l===null||l===40||l===91||Je(l)||Ct(l)?t(l):i(l)}function a(l){return St(l)?o(l):n(l)}function o(l){return l===59?(e.consume(l),i):St(l)?(e.consume(l),o):n(l)}}function zC(e,t,n){return i;function i(a){return e.consume(a),r}function r(a){return Rt(a)?n(a):t(a)}}function ig(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Je(e)}function rg(e){return!St(e)}function ag(e){return!(e===47||io(e))}function io(e){return e===43||e===45||e===46||e===95||Rt(e)}function wl(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const BC={tokenize:JC,partial:!0};function HC(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:qC,continuation:{tokenize:GC},exit:$C}},text:{91:{name:"gfmFootnoteCall",tokenize:WC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:KC,resolveTo:UC}}}}function KC(e,t,n){const i=this;let r=i.events.length;const a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;r--;){const u=i.events[r][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!o||!o._balanced)return n(u);const c=tn(i.sliceSerialize({start:o.end,end:i.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function UC(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function WC(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a=0,o;return l;function l(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),u}function u(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(a>999||d===93&&!o||d===null||d===91||Je(d))return n(d);if(d===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return r.includes(tn(i.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Je(d)||(o=!0),a++,e.consume(d),d===92?p:c}function p(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function qC(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a,o=0,l;return u;function u(_){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(_){return _===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(_)}function p(_){if(o>999||_===93&&!l||_===null||_===91||Je(_))return n(_);if(_===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return a=tn(i.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return Je(_)||(l=!0),o++,e.consume(_),_===92?d:p}function d(_){return _===91||_===92||_===93?(e.consume(_),o++,p):p(_)}function m(_){return _===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),r.includes(a)||r.push(a),He(e,g,"gfmFootnoteDefinitionWhitespace")):n(_)}function g(_){return t(_)}}function GC(e,t,n){return e.check(Ai,t,e.attempt(BC,t,n))}function $C(e){e.exit("gfmFootnoteDefinition")}function JC(e,t,n){const i=this;return He(e,r,"gfmFootnoteDefinitionIndent",5);function r(a){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function YC(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:a,resolveAll:r};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(o,l){let u=-1;for(;++u<o.length;)if(o[u][0]==="enter"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._close){let c=u;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[u][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[u][1].end)},d={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[u][1].start)},m=[["enter",p,l],["enter",o[c][1],l],["exit",o[c][1],l],["enter",d,l]],g=l.parser.constructs.insideSpan.null;g&&zt(m,m.length,0,Ra(g,o.slice(c+1,u),l)),zt(m,m.length,0,[["exit",d,l],["enter",o[u][1],l],["exit",o[u][1],l],["exit",p,l]]),zt(o,c-1,u-c+3,m),u=c+m.length-2;break}}for(u=-1;++u<o.length;)o[u][1].type==="strikethroughSequenceTemporary"&&(o[u][1].type="data");return o}function a(o,l,u){const c=this.previous,p=this.events;let d=0;return m;function m(_){return c===126&&p[p.length-1][1].type!=="characterEscape"?u(_):(o.enter("strikethroughSequenceTemporary"),g(_))}function g(_){const x=yi(c);if(_===126)return d>1?u(_):(o.consume(_),d++,g);if(d<2&&!n)return u(_);const E=o.exit("strikethroughSequenceTemporary"),C=yi(_);return E._open=!C||C===2&&!!x,E._close=!x||x===2&&!!C,l(_)}}}class XC{constructor(){this.map=[]}add(t,n,i){ZC(this,t,n,i)}consume(t){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let r=i.pop();for(;r;){for(const a of r)t.push(a);r=i.pop()}this.map.length=0}}function ZC(e,t,n,i){let r=0;if(!(n===0&&i.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...i);return}r+=1}e.map.push([t,n,i])}}function QC(e,t){let n=!1;const i=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=i.length-1;i[a]=i[a]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function eI(){return{flow:{null:{name:"table",tokenize:tI,resolveAll:nI}}}}function tI(e,t,n){const i=this;let r=0,a=0,o;return l;function l(D){let B=i.events.length-1;for(;B>-1;){const K=i.events[B][1].type;if(K==="lineEnding"||K==="linePrefix")B--;else break}const j=B>-1?i.events[B][1].type:null,$=j==="tableHead"||j==="tableRow"?f:u;return $===f&&i.parser.lazy[i.now().line]?n(D):$(D)}function u(D){return e.enter("tableHead"),e.enter("tableRow"),c(D)}function c(D){return D===124||(o=!0,a+=1),p(D)}function p(D){return D===null?n(D):Ae(D)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),g):n(D):je(D)?He(e,p,"whitespace")(D):(a+=1,o&&(o=!1,r+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),d(D)))}function d(D){return D===null||D===124||Je(D)?(e.exit("data"),p(D)):(e.consume(D),D===92?m:d)}function m(D){return D===92||D===124?(e.consume(D),d):d(D)}function g(D){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(D):(e.enter("tableDelimiterRow"),o=!1,je(D)?He(e,_,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):_(D))}function _(D){return D===45||D===58?E(D):D===124?(o=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),x):b(D)}function x(D){return je(D)?He(e,E,"whitespace")(D):E(D)}function E(D){return D===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),C):D===45?(a+=1,C(D)):D===null||Ae(D)?A(D):b(D)}function C(D){return D===45?(e.enter("tableDelimiterFiller"),S(D)):b(D)}function S(D){return D===45?(e.consume(D),S):D===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(D))}function k(D){return je(D)?He(e,A,"whitespace")(D):A(D)}function A(D){return D===124?_(D):D===null||Ae(D)?!o||r!==a?b(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(D)):b(D)}function b(D){return n(D)}function f(D){return e.enter("tableRow"),T(D)}function T(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),T):D===null||Ae(D)?(e.exit("tableRow"),t(D)):je(D)?He(e,T,"whitespace")(D):(e.enter("data"),L(D))}function L(D){return D===null||D===124||Je(D)?(e.exit("data"),T(D)):(e.consume(D),D===92?V:L)}function V(D){return D===92||D===124?(e.consume(D),L):L(D)}}function nI(e,t){let n=-1,i=!0,r=0,a=[0,0,0,0],o=[0,0,0,0],l=!1,u=0,c,p,d;const m=new XC;for(;++n<e.length;){const g=e[n],_=g[1];g[0]==="enter"?_.type==="tableHead"?(l=!1,u!==0&&(qc(m,t,u,c,p),p=void 0,u=0),c={type:"table",start:Object.assign({},_.start),end:Object.assign({},_.end)},m.add(n,0,[["enter",c,t]])):_.type==="tableRow"||_.type==="tableDelimiterRow"?(i=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,p={type:"tableBody",start:Object.assign({},_.start),end:Object.assign({},_.end)},m.add(n,0,[["enter",p,t]])),r=_.type==="tableDelimiterRow"?2:p?3:1):r&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")?(i=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=Tr(m,t,a,r,void 0,d),a=[0,0,0,0]),o[2]=n)):_.type==="tableCellDivider"&&(i?i=!1:(a[1]!==0&&(o[0]=o[1],d=Tr(m,t,a,r,void 0,d)),a=o,o=[a[1],n,0,0])):_.type==="tableHead"?(l=!0,u=n):_.type==="tableRow"||_.type==="tableDelimiterRow"?(u=n,a[1]!==0?(o[0]=o[1],d=Tr(m,t,a,r,n,d)):o[1]!==0&&(d=Tr(m,t,o,r,n,d)),r=0):r&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")&&(o[3]=n)}for(u!==0&&qc(m,t,u,c,p),m.consume(t.events),n=-1;++n<t.events.length;){const g=t.events[n];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=QC(t.events,n))}return e}function Tr(e,t,n,i,r,a){const o=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(a.end=Object.assign({},di(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const u=di(t.events,n[1]);if(a={type:o,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const c=di(t.events,n[2]),p=di(t.events,n[3]),d={type:l,start:Object.assign({},c),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",d,t]]),i!==2){const m=t.events[n[2]],g=t.events[n[3]];if(m[1].end=Object.assign({},g[1].end),m[1].type="chunkText",m[1].contentType="text",n[3]>n[2]+1){const _=n[2]+1,x=n[3]-n[2]-1;e.add(_,x,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return r!==void 0&&(a.end=Object.assign({},di(t.events,r)),e.add(r,0,[["exit",a,t]]),a=void 0),a}function qc(e,t,n,i,r){const a=[],o=di(t.events,n);r&&(r.end=Object.assign({},o),a.push(["exit",r,t])),i.end=Object.assign({},o),a.push(["exit",i,t]),e.add(n+1,0,a)}function di(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const iI={name:"tasklistCheck",tokenize:aI};function rI(){return{text:{91:iI}}}function aI(e,t,n){const i=this;return r;function r(u){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return Je(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(u)}function l(u){return Ae(u)?t(u):je(u)?e.check({tokenize:sI},t,n)(u):n(u)}}function sI(e,t,n){return He(e,i,"whitespace");function i(r){return r===null?n(r):t(r)}}function oI(e){return ml([OC(),HC(),YC(e),eI(),rI()])}const lI={};function uI(e){const t=this,n=e||lI,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(oI(n)),a.push(AC()),o.push(NC(n))}const sg=async()=>(await ye.getNodeInfo({verb:ye.DesignerRequestVerb.GET_INFO,path:"WebForms"})).filter(t=>t.ext==="WebForm"),ro=(e,t,n)=>{let i=[];return Array.isArray(e)?e.forEach((r,a)=>{i=i.concat(ro(r,`${t}.[${a}]`,n))}):ce.isObject(e)?ce.has(e,n)?i.push(`${t}.${n}`):Object.entries(e).forEach(([a,o])=>{i=i.concat(ro(o,`${t}.${a}`,n))}):t===n&&i.push(n),i},cI=()=>new Date().toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit"}),Gc=e=>{const t=/[",\n\r]/.test(e);let n=e.replace(/"/g,'""');return t&&(n=`"${n}"`),n},hI=(e,t,n)=>{let i="";const r=[...t],a=()=>r.map(p=>""),o=(p,d,m)=>{const g=r.findIndex(_=>_===d);g<0?(p.push(m),r.push(d)):p[g]=m},l=p=>p.join(n)+`
|
|
119
|
+
`,{webforms:u,i18n:c}=e;return u&&Object.keys(u).forEach(d=>{const m=ce.get(u,`${d}`);Object.keys(m).forEach(_=>{const{props:x,resolverName:E}=ce.get(m,_);Array.isArray(x)&&x.forEach(({__dataPath:C,__default:S,...k})=>{const A=a();o(A,"keys",`webforms.${d}.${_}.${C}`),o(A,"__t",Gc(S)),o(A,"resolverName",E),Object.keys(k).forEach(b=>{let f=b;b.startsWith("states:")&&(f=b.replace("states:",""),f=f.replace("i18n:","")),o(A,f,Gc(k[b]))}),i+=l(A)})})}),c&&Object.keys(c).forEach(d=>{const m=ce.get(c,d);m&&Object.keys(m).forEach(_=>{const x=ce.get(m,_),E=a();o(E,"keys",`i18n.${d}.${_}`),o(E,_==="default"?"i18nkey_default":_,x),i+=l(E)})}),l(r)+i},Pr=(e,t)=>{let n=e;return t.bold&&(n=`**${n}**`),t.italic&&(n=`*${n}*`),t.underlined&&(n=`<u>${n}</u>`),t.strikethrough&&(n=`~~${n}~~`),n},Or={datasource:e=>{const{datasource:t,dsType:n,format:i,children:r}=e;let a,o="";return r&&r[0]&&(a=r[0],o=`<ds datasource='${t}' dsType='${n}' format='${i}'>${Pr(a.text,a)}</ds>`),o},link:e=>{const{url:t,target:n,datasource:i,isDatasource:r,children:a}=e;let o="";if(a&&a[0]){const{text:l,...u}=a[0];o=`<link datasource='${i}' isDatasource='${r}' url='${t}' target='${n}'>${Pr(l,u)}</link>`}return o},i18n:e=>{const{children:t,__i18n:n}=e;let i="";if(t&&t[0]){const{text:r,...a}=t[0];i=`<i18n __i18n='${n}'>${Pr(r,a)}</i18n>`}return i},defaultElement:e=>{const{text:t}=e;return Pr(t,e)}},dI=e=>{const{type:t,text:n}=e;if(!t&&!n)return"<e/>";switch(t){case"datasource":return Or.datasource(e);case"link":return Or.link(e);case"i18n":return Or.i18n(e);default:return Or.defaultElement(e)}},pI=e=>e.map(t=>{const{children:n}=t;return n?n.map(i=>dI(i)).join(""):""}).filter(Boolean).join(`
|
|
120
|
+
|
|
121
|
+
`),fI=e=>{const t=/<\/?[a-zA-Z][^>]*>/g;let n="",i=0;for(const a of e.matchAll(t)){const o=a.index,l=o+a[0].length,u=e.slice(i,o).replace(/</g,"<").replace(/>/g,">");n+=u+a[0],i=l}const r=e.slice(i).replace(/</g,"<").replace(/>/g,">");return n+=r,n=n.replace(/\[object Object\]/g,""),n},og=e=>{let t="",n=!1;for(let i=0;i<e.length;i++){const r=e[i];if(r==='"')if(n)if(i+1<e.length&&e[i+1]==='"')t+='""',i++;else{let a=i+1;for(;a<e.length&&(e[a]===" "||e[a]===" ");)a++;a>=e.length||e[a]===","||e[a]===`
|
|
122
|
+
`||e[a]==="\r"?(n=!1,t+='"'):t+='""'}else n=!0,t+='"';else t+=r}return t},Cs=e=>{const t=fI(e),n=OE().use(uI,{singleTilde:!0}).use(vk).parse(t),i=(a,o,l)=>{var d;const{type:u,value:c}=a;let p={};if(u==="root"){const{children:m}=a;return m.map(g=>i(g,o)).flat()}if(o){if(u==="list"){const{children:m}=a;return m.map(g=>i(g,p,l)).flat()}else if(u==="listItem"){const{children:m}=a;return m.map(g=>{const _=l!=null&&l.prefix?l.prefix:g.type==="list"?" - ":"* ",x=i(g,p,{prefix:_});return x.type==="paragraph"&&x.children&&(x.children.length>1?x.children=[{text:_},...x.children]:x.children=x.children.map(E=>(E.text&&(E.text=`${_}${E.text}`),E))),x}).flat()}else if(u==="paragraph"){p={type:"paragraph",children:[]};const{children:m}=a,g=m.map(_=>i(_,p));p.children=g}else if(u==="mdxJsxTextElement"){const{name:m}=a;if(m==="ds"){p={type:"datasource",children:[]};const{children:g,attributes:_}=a;if(g){const x=i(g[0],p);p.children=[x]}if(_){const x=_.reduce((E,C)=>({...E,[C.name]:C.value}),{});p={...p,...x}}}else if(m==="i18n"){p={type:"i18n",children:""};const{children:g,attributes:_}=a;if(g){const x=i(g[0],p);p.children=[x]}if(_){const x=_.reduce((E,C)=>({...E,[C.name]:C.value}),{});p={...p,...x}}}else if(m==="u"){p={underlined:!0};const{children:g}=a;if(g){const _=i(g[0],p);p={...p,..._}}}else if(m==="link"){p={type:"link",children:[]};const{children:g,attributes:_}=a;if(g){const x=i(g[0],p);p.children=[x]}if(_){const x=_.reduce((E,C)=>({...E,[C.name]:C.value}),{});p={...p,...x}}}else m==="e"&&(p={text:""})}else if(u==="text")p={text:c};else if(u==="strong"){p={bold:!0};const{children:m}=a;if(m){const g=i(m[0],p);p={...p,...g}}}else if(u==="emphasis"){p={italic:!0};const{children:m}=a;if(m){const g=i(m[0],p);p={...p,...g}}}else if(u==="delete"){p={strikethrough:!0};const{children:m}=a;if(m){const g=i(m[0],p);p={...p,...g}}}else if(u==="link"){const{children:m}=a;p={text:((d=m[0])==null?void 0:d.value)||""}}}else return;return p};return i(n,[])},gI=e=>{const[,t,n,i,...r]=e.split(".");return{webformName:t,componentId:n,propName:i,restOfPropPath:r.join(".")}};function Dn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function $c(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lg(...e){return t=>{let n=!1;const i=e.map(r=>{const a=$c(r,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let r=0;r<i.length;r++){const a=i[r];typeof a=="function"?a():$c(e[r],null)}}}}function ei(...e){return Q.useCallback(lg(...e),e)}function mI(e,t){const n=Q.createContext(t),i=a=>{const{children:o,...l}=a,u=Q.useMemo(()=>l,Object.values(l));return w.jsx(n.Provider,{value:u,children:o})};i.displayName=e+"Provider";function r(a){const o=Q.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[i,r]}function vI(e,t=[]){let n=[];function i(a,o){const l=Q.createContext(o),u=n.length;n=[...n,o];const c=d=>{var C;const{scope:m,children:g,..._}=d,x=((C=m==null?void 0:m[e])==null?void 0:C[u])||l,E=Q.useMemo(()=>_,Object.values(_));return w.jsx(x.Provider,{value:E,children:g})};c.displayName=a+"Provider";function p(d,m){var x;const g=((x=m==null?void 0:m[e])==null?void 0:x[u])||l,_=Q.useContext(g);if(_)return _;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[c,p]}const r=()=>{const a=n.map(o=>Q.createContext(o));return function(l){const u=(l==null?void 0:l[e])||a;return Q.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return r.scopeName=e,[i,xI(r,...t)]}function xI(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(a){const o=i.reduce((l,{useScope:u,scopeName:c})=>{const d=u(a)[`__scope${c}`];return{...l,...d}},{});return Q.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var Zi=globalThis!=null&&globalThis.document?Q.useLayoutEffect:()=>{},bI=Q[" useId ".trim().toString()]||(()=>{}),yI=0;function Is(e){const[t,n]=Q.useState(bI());return Zi(()=>{n(i=>i??String(yI++))},[e]),e||(t?`radix-${t}`:"")}var wI=Q[" useInsertionEffect ".trim().toString()]||Zi;function kI({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[r,a,o]=SI({defaultProp:t,onChange:n}),l=e!==void 0,u=l?e:r;{const p=Q.useRef(e!==void 0);Q.useEffect(()=>{const d=p.current;d!==l&&console.warn(`${i} is changing from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,i])}const c=Q.useCallback(p=>{var d;if(l){const m=EI(p)?p(e):p;m!==e&&((d=o.current)==null||d.call(o,m))}else a(p)},[l,e,a,o]);return[u,c]}function SI({defaultProp:e,onChange:t}){const[n,i]=Q.useState(e),r=Q.useRef(n),a=Q.useRef(t);return wI(()=>{a.current=t},[t]),Q.useEffect(()=>{var o;r.current!==n&&((o=a.current)==null||o.call(a,n),r.current=n)},[n,r]),[n,i,a]}function EI(e){return typeof e=="function"}function ug(e){const t=CI(e),n=Q.forwardRef((i,r)=>{const{children:a,...o}=i,l=Q.Children.toArray(a),u=l.find(_I);if(u){const c=u.props.children,p=l.map(d=>d===u?Q.Children.count(c)>1?Q.Children.only(null):Q.isValidElement(c)?c.props.children:null:d);return w.jsx(t,{...o,ref:r,children:Q.isValidElement(c)?Q.cloneElement(c,void 0,p):null})}return w.jsx(t,{...o,ref:r,children:a})});return n.displayName=`${e}.Slot`,n}function CI(e){const t=Q.forwardRef((n,i)=>{const{children:r,...a}=n;if(Q.isValidElement(r)){const o=NI(r),l=AI(a,r.props);return r.type!==Q.Fragment&&(l.ref=i?lg(i,o):o),Q.cloneElement(r,l)}return Q.Children.count(r)>1?Q.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var II=Symbol("radix.slottable");function _I(e){return Q.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===II}function AI(e,t){const n={...t};for(const i in t){const r=e[i],a=t[i];/^on[A-Z]/.test(i)?r&&a?n[i]=(...l)=>{const u=a(...l);return r(...l),u}:r&&(n[i]=r):i==="style"?n[i]={...r,...a}:i==="className"&&(n[i]=[r,a].filter(Boolean).join(" "))}return{...e,...n}}function NI(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var TI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],In=TI.reduce((e,t)=>{const n=ug(`Primitive.${t}`),i=Q.forwardRef((r,a)=>{const{asChild:o,...l}=r,u=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(u,{...l,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function PI(e,t){e&&fm.flushSync(()=>e.dispatchEvent(t))}function Qi(e){const t=Q.useRef(e);return Q.useEffect(()=>{t.current=e}),Q.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function OI(e,t=globalThis==null?void 0:globalThis.document){const n=Qi(e);Q.useEffect(()=>{const i=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var LI="DismissableLayer",ao="dismissableLayer.update",RI="dismissableLayer.pointerDownOutside",DI="dismissableLayer.focusOutside",Jc,cg=Q.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hg=Q.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:o,onDismiss:l,...u}=e,c=Q.useContext(cg),[p,d]=Q.useState(null),m=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=Q.useState({}),_=ei(t,T=>d(T)),x=Array.from(c.layers),[E]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),C=x.indexOf(E),S=p?x.indexOf(p):-1,k=c.layersWithOutsidePointerEventsDisabled.size>0,A=S>=C,b=jI(T=>{const L=T.target,V=[...c.branches].some(D=>D.contains(L));!A||V||(r==null||r(T),o==null||o(T),T.defaultPrevented||l==null||l())},m),f=VI(T=>{const L=T.target;[...c.branches].some(D=>D.contains(L))||(a==null||a(T),o==null||o(T),T.defaultPrevented||l==null||l())},m);return OI(T=>{S===c.layers.size-1&&(i==null||i(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},m),Q.useEffect(()=>{if(p)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Jc=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),Yc(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Jc)}},[p,m,n,c]),Q.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),Yc())},[p,c]),Q.useEffect(()=>{const T=()=>g({});return document.addEventListener(ao,T),()=>document.removeEventListener(ao,T)},[]),w.jsx(In.div,{...u,ref:_,style:{pointerEvents:k?A?"auto":"none":void 0,...e.style},onFocusCapture:Dn(e.onFocusCapture,f.onFocusCapture),onBlurCapture:Dn(e.onBlurCapture,f.onBlurCapture),onPointerDownCapture:Dn(e.onPointerDownCapture,b.onPointerDownCapture)})});hg.displayName=LI;var MI="DismissableLayerBranch",FI=Q.forwardRef((e,t)=>{const n=Q.useContext(cg),i=Q.useRef(null),r=ei(t,i);return Q.useEffect(()=>{const a=i.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),w.jsx(In.div,{...e,ref:r})});FI.displayName=MI;function jI(e,t=globalThis==null?void 0:globalThis.document){const n=Qi(e),i=Q.useRef(!1),r=Q.useRef(()=>{});return Q.useEffect(()=>{const a=l=>{if(l.target&&!i.current){let u=function(){dg(RI,n,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);i.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function VI(e,t=globalThis==null?void 0:globalThis.document){const n=Qi(e),i=Q.useRef(!1);return Q.useEffect(()=>{const r=a=>{a.target&&!i.current&&dg(DI,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Yc(){const e=new CustomEvent(ao);document.dispatchEvent(e)}function dg(e,t,n,{discrete:i}){const r=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),i?PI(r,a):r.dispatchEvent(a)}var _s="focusScope.autoFocusOnMount",As="focusScope.autoFocusOnUnmount",Xc={bubbles:!1,cancelable:!0},zI="FocusScope",pg=Q.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:a,...o}=e,[l,u]=Q.useState(null),c=Qi(r),p=Qi(a),d=Q.useRef(null),m=ei(t,x=>u(x)),g=Q.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Q.useEffect(()=>{if(i){let x=function(k){if(g.paused||!l)return;const A=k.target;l.contains(A)?d.current=A:Ln(d.current,{select:!0})},E=function(k){if(g.paused||!l)return;const A=k.relatedTarget;A!==null&&(l.contains(A)||Ln(d.current,{select:!0}))},C=function(k){if(document.activeElement===document.body)for(const b of k)b.removedNodes.length>0&&Ln(l)};document.addEventListener("focusin",x),document.addEventListener("focusout",E);const S=new MutationObserver(C);return l&&S.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",E),S.disconnect()}}},[i,l,g.paused]),Q.useEffect(()=>{if(l){Qc.add(g);const x=document.activeElement;if(!l.contains(x)){const C=new CustomEvent(_s,Xc);l.addEventListener(_s,c),l.dispatchEvent(C),C.defaultPrevented||(BI(qI(fg(l)),{select:!0}),document.activeElement===x&&Ln(l))}return()=>{l.removeEventListener(_s,c),setTimeout(()=>{const C=new CustomEvent(As,Xc);l.addEventListener(As,p),l.dispatchEvent(C),C.defaultPrevented||Ln(x??document.body,{select:!0}),l.removeEventListener(As,p),Qc.remove(g)},0)}}},[l,c,p,g]);const _=Q.useCallback(x=>{if(!n&&!i||g.paused)return;const E=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,C=document.activeElement;if(E&&C){const S=x.currentTarget,[k,A]=HI(S);k&&A?!x.shiftKey&&C===A?(x.preventDefault(),n&&Ln(k,{select:!0})):x.shiftKey&&C===k&&(x.preventDefault(),n&&Ln(A,{select:!0})):C===S&&x.preventDefault()}},[n,i,g.paused]);return w.jsx(In.div,{tabIndex:-1,...o,ref:m,onKeyDown:_})});pg.displayName=zI;function BI(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Ln(i,{select:t}),document.activeElement!==n)return}function HI(e){const t=fg(e),n=Zc(t,e),i=Zc(t.reverse(),e);return[n,i]}function fg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const r=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||r?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zc(e,t){for(const n of e)if(!KI(n,{upTo:t}))return n}function KI(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function UI(e){return e instanceof HTMLInputElement&&"select"in e}function Ln(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&UI(e)&&t&&e.select()}}var Qc=WI();function WI(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=eh(e,t),e.unshift(t)},remove(t){var n;e=eh(e,t),(n=e[0])==null||n.resume()}}}function eh(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function qI(e){return e.filter(t=>t.tagName!=="A")}var GI="Portal",gg=Q.forwardRef((e,t)=>{var l;const{container:n,...i}=e,[r,a]=Q.useState(!1);Zi(()=>a(!0),[]);const o=n||r&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?er.createPortal(w.jsx(In.div,{...i,ref:t}),o):null});gg.displayName=GI;function $I(e,t){return Q.useReducer((n,i)=>t[n][i]??n,e)}var Fa=e=>{const{present:t,children:n}=e,i=JI(t),r=typeof n=="function"?n({present:i.isPresent}):Q.Children.only(n),a=ei(i.ref,YI(r));return typeof n=="function"||i.isPresent?Q.cloneElement(r,{ref:a}):null};Fa.displayName="Presence";function JI(e){const[t,n]=Q.useState(),i=Q.useRef(null),r=Q.useRef(e),a=Q.useRef("none"),o=e?"mounted":"unmounted",[l,u]=$I(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Q.useEffect(()=>{const c=Lr(i.current);a.current=l==="mounted"?c:"none"},[l]),Zi(()=>{const c=i.current,p=r.current;if(p!==e){const m=a.current,g=Lr(c);e?u("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(p&&m!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),Zi(()=>{if(t){let c;const p=t.ownerDocument.defaultView??window,d=g=>{const x=Lr(i.current).includes(CSS.escape(g.animationName));if(g.target===t&&x&&(u("ANIMATION_END"),!r.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",c=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},m=g=>{g.target===t&&(a.current=Lr(i.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{p.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:Q.useCallback(c=>{i.current=c?getComputedStyle(c):null,n(c)},[])}}function Lr(e){return(e==null?void 0:e.animationName)||"none"}function YI(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ns=0;function XI(){Q.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??th()),document.body.insertAdjacentElement("beforeend",e[1]??th()),Ns++,()=>{Ns===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ns--}},[])}function th(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var $r="right-scroll-bar-position",Jr="width-before-scroll-bar",ZI="with-scroll-bars-hidden",QI="--removed-body-scroll-bar-size";function Ts(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function e_(e,t){var n=M.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var r=n.value;r!==i&&(n.value=i,n.callback(i,r))}}}})[0];return n.callback=t,n.facade}var t_=typeof window<"u"?Q.useLayoutEffect:Q.useEffect,nh=new WeakMap;function n_(e,t){var n=e_(null,function(i){return e.forEach(function(r){return Ts(r,i)})});return t_(function(){var i=nh.get(n);if(i){var r=new Set(i),a=new Set(e),o=n.current;r.forEach(function(l){a.has(l)||Ts(l,null)}),a.forEach(function(l){r.has(l)||Ts(l,o)})}nh.set(n,e)},[e]),n}function i_(e){return e}function r_(e,t){t===void 0&&(t=i_);var n=[],i=!1,r={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var o=t(a,i);return n.push(o),function(){n=n.filter(function(l){return l!==o})}},assignSyncMedium:function(a){for(i=!0;n.length;){var o=n;n=[],o.forEach(a)}n={push:function(l){return a(l)},filter:function(){return n}}},assignMedium:function(a){i=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(a),o=n}var u=function(){var p=o;o=[],p.forEach(a)},c=function(){return Promise.resolve().then(u)};c(),n={push:function(p){o.push(p),c()},filter:function(p){return o=o.filter(p),n}}}};return r}function a_(e){e===void 0&&(e={});var t=r_(null);return t.options=ln({async:!0,ssr:!1},e),t}var mg=function(e){var t=e.sideCar,n=dh(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return Q.createElement(i,ln({},n))};mg.isSideCarExport=!0;function s_(e,t){return e.useMedium(t),mg}var vg=a_(),Ps=function(){},ja=Q.forwardRef(function(e,t){var n=Q.useRef(null),i=Q.useState({onScrollCapture:Ps,onWheelCapture:Ps,onTouchMoveCapture:Ps}),r=i[0],a=i[1],o=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,p=e.enabled,d=e.shards,m=e.sideCar,g=e.noRelative,_=e.noIsolation,x=e.inert,E=e.allowPinchZoom,C=e.as,S=C===void 0?"div":C,k=e.gapMode,A=dh(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=m,f=n_([n,t]),T=ln(ln({},A),r);return Q.createElement(Q.Fragment,null,p&&Q.createElement(b,{sideCar:vg,removeScrollBar:c,shards:d,noRelative:g,noIsolation:_,inert:x,setCallbacks:a,allowPinchZoom:!!E,lockRef:n,gapMode:k}),o?Q.cloneElement(Q.Children.only(l),ln(ln({},T),{ref:f})):Q.createElement(S,ln({},T,{className:u,ref:f}),l))});ja.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ja.classNames={fullWidth:Jr,zeroRight:$r};var o_=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function l_(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o_();return t&&e.setAttribute("nonce",t),e}function u_(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function c_(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var h_=function(){var e=0,t=null;return{add:function(n){e==0&&(t=l_())&&(u_(t,n),c_(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},d_=function(){var e=h_();return function(t,n){Q.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},xg=function(){var e=d_(),t=function(n){var i=n.styles,r=n.dynamic;return e(i,r),null};return t},p_={left:0,top:0,right:0,gap:0},Os=function(e){return parseInt(e||"",10)||0},f_=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Os(n),Os(i),Os(r)]},g_=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return p_;var t=f_(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},m_=xg(),vi="data-scroll-locked",v_=function(e,t,n,i){var r=e.left,a=e.top,o=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
123
|
+
.`.concat(ZI,` {
|
|
124
|
+
overflow: hidden `).concat(i,`;
|
|
125
|
+
padding-right: `).concat(l,"px ").concat(i,`;
|
|
126
|
+
}
|
|
127
|
+
body[`).concat(vi,`] {
|
|
128
|
+
overflow: hidden `).concat(i,`;
|
|
129
|
+
overscroll-behavior: contain;
|
|
130
|
+
`).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
|
|
131
|
+
padding-left: `.concat(r,`px;
|
|
132
|
+
padding-top: `).concat(a,`px;
|
|
133
|
+
padding-right: `).concat(o,`px;
|
|
134
|
+
margin-left:0;
|
|
135
|
+
margin-top:0;
|
|
136
|
+
margin-right: `).concat(l,"px ").concat(i,`;
|
|
137
|
+
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.`).concat($r,` {
|
|
141
|
+
right: `).concat(l,"px ").concat(i,`;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.`).concat(Jr,` {
|
|
145
|
+
margin-right: `).concat(l,"px ").concat(i,`;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.`).concat($r," .").concat($r,` {
|
|
149
|
+
right: 0 `).concat(i,`;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.`).concat(Jr," .").concat(Jr,` {
|
|
153
|
+
margin-right: 0 `).concat(i,`;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
body[`).concat(vi,`] {
|
|
157
|
+
`).concat(QI,": ").concat(l,`px;
|
|
158
|
+
}
|
|
159
|
+
`)},ih=function(){var e=parseInt(document.body.getAttribute(vi)||"0",10);return isFinite(e)?e:0},x_=function(){Q.useEffect(function(){return document.body.setAttribute(vi,(ih()+1).toString()),function(){var e=ih()-1;e<=0?document.body.removeAttribute(vi):document.body.setAttribute(vi,e.toString())}},[])},b_=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,r=i===void 0?"margin":i;x_();var a=Q.useMemo(function(){return g_(r)},[r]);return Q.createElement(m_,{styles:v_(a,!t,r,n?"":"!important")})},so=!1;if(typeof window<"u")try{var Rr=Object.defineProperty({},"passive",{get:function(){return so=!0,!0}});window.addEventListener("test",Rr,Rr),window.removeEventListener("test",Rr,Rr)}catch{so=!1}var oi=so?{passive:!1}:!1,y_=function(e){return e.tagName==="TEXTAREA"},bg=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!y_(e)&&n[t]==="visible")},w_=function(e){return bg(e,"overflowY")},k_=function(e){return bg(e,"overflowX")},rh=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var r=yg(e,i);if(r){var a=wg(e,i),o=a[1],l=a[2];if(o>l)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},S_=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},E_=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},yg=function(e,t){return e==="v"?w_(t):k_(t)},wg=function(e,t){return e==="v"?S_(t):E_(t)},C_=function(e,t){return e==="h"&&t==="rtl"?-1:1},I_=function(e,t,n,i,r){var a=C_(e,window.getComputedStyle(t).direction),o=a*i,l=n.target,u=t.contains(l),c=!1,p=o>0,d=0,m=0;do{if(!l)break;var g=wg(e,l),_=g[0],x=g[1],E=g[2],C=x-E-a*_;(_||C)&&yg(e,l)&&(d+=C,m+=_);var S=l.parentNode;l=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(p&&Math.abs(d)<1||!p&&Math.abs(m)<1)&&(c=!0),c},Dr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ah=function(e){return[e.deltaX,e.deltaY]},sh=function(e){return e&&"current"in e?e.current:e},__=function(e,t){return e[0]===t[0]&&e[1]===t[1]},A_=function(e){return`
|
|
160
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
161
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
162
|
+
`)},N_=0,li=[];function T_(e){var t=Q.useRef([]),n=Q.useRef([0,0]),i=Q.useRef(),r=Q.useState(N_++)[0],a=Q.useState(xg)[0],o=Q.useRef(e);Q.useEffect(function(){o.current=e},[e]),Q.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var x=Yr([e.lockRef.current],(e.shards||[]).map(sh),!0).filter(Boolean);return x.forEach(function(E){return E.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),x.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=Q.useCallback(function(x,E){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!o.current.allowPinchZoom;var C=Dr(x),S=n.current,k="deltaX"in x?x.deltaX:S[0]-C[0],A="deltaY"in x?x.deltaY:S[1]-C[1],b,f=x.target,T=Math.abs(k)>Math.abs(A)?"h":"v";if("touches"in x&&T==="h"&&f.type==="range")return!1;var L=window.getSelection(),V=L&&L.anchorNode,D=V?V===f||V.contains(f):!1;if(D)return!1;var B=rh(T,f);if(!B)return!0;if(B?b=T:(b=T==="v"?"h":"v",B=rh(T,f)),!B)return!1;if(!i.current&&"changedTouches"in x&&(k||A)&&(i.current=b),!b)return!0;var j=i.current||b;return I_(j,E,x,j==="h"?k:A)},[]),u=Q.useCallback(function(x){var E=x;if(!(!li.length||li[li.length-1]!==a)){var C="deltaY"in E?ah(E):Dr(E),S=t.current.filter(function(b){return b.name===E.type&&(b.target===E.target||E.target===b.shadowParent)&&__(b.delta,C)})[0];if(S&&S.should){E.cancelable&&E.preventDefault();return}if(!S){var k=(o.current.shards||[]).map(sh).filter(Boolean).filter(function(b){return b.contains(E.target)}),A=k.length>0?l(E,k[0]):!o.current.noIsolation;A&&E.cancelable&&E.preventDefault()}}},[]),c=Q.useCallback(function(x,E,C,S){var k={name:x,delta:E,target:C,should:S,shadowParent:P_(C)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(A){return A!==k})},1)},[]),p=Q.useCallback(function(x){n.current=Dr(x),i.current=void 0},[]),d=Q.useCallback(function(x){c(x.type,ah(x),x.target,l(x,e.lockRef.current))},[]),m=Q.useCallback(function(x){c(x.type,Dr(x),x.target,l(x,e.lockRef.current))},[]);Q.useEffect(function(){return li.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",u,oi),document.addEventListener("touchmove",u,oi),document.addEventListener("touchstart",p,oi),function(){li=li.filter(function(x){return x!==a}),document.removeEventListener("wheel",u,oi),document.removeEventListener("touchmove",u,oi),document.removeEventListener("touchstart",p,oi)}},[]);var g=e.removeScrollBar,_=e.inert;return Q.createElement(Q.Fragment,null,_?Q.createElement(a,{styles:A_(r)}):null,g?Q.createElement(b_,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function P_(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const O_=s_(vg,T_);var kg=Q.forwardRef(function(e,t){return Q.createElement(ja,ln({},e,{ref:t,sideCar:O_}))});kg.classNames=ja.classNames;var L_=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ui=new WeakMap,Mr=new WeakMap,Fr={},Ls=0,Sg=function(e){return e&&(e.host||Sg(e.parentNode))},R_=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=Sg(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},D_=function(e,t,n,i){var r=R_(t,Array.isArray(e)?e:[e]);Fr[n]||(Fr[n]=new WeakMap);var a=Fr[n],o=[],l=new Set,u=new Set(r),c=function(d){!d||l.has(d)||(l.add(d),c(d.parentNode))};r.forEach(c);var p=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(m){if(l.has(m))p(m);else try{var g=m.getAttribute(i),_=g!==null&&g!=="false",x=(ui.get(m)||0)+1,E=(a.get(m)||0)+1;ui.set(m,x),a.set(m,E),o.push(m),x===1&&_&&Mr.set(m,!0),E===1&&m.setAttribute(n,"true"),_||m.setAttribute(i,"true")}catch(C){console.error("aria-hidden: cannot operate on ",m,C)}})};return p(t),l.clear(),Ls++,function(){o.forEach(function(d){var m=ui.get(d)-1,g=a.get(d)-1;ui.set(d,m),a.set(d,g),m||(Mr.has(d)||d.removeAttribute(i),Mr.delete(d)),g||d.removeAttribute(n)}),Ls--,Ls||(ui=new WeakMap,ui=new WeakMap,Mr=new WeakMap,Fr={})}},M_=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),r=L_(e);return r?(i.push.apply(i,Array.from(r.querySelectorAll("[aria-live], script"))),D_(i,r,n,"aria-hidden")):function(){return null}},Va="Dialog",[Eg]=vI(Va),[F_,nn]=Eg(Va),Cg=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:r,onOpenChange:a,modal:o=!0}=e,l=Q.useRef(null),u=Q.useRef(null),[c,p]=kI({prop:i,defaultProp:r??!1,onChange:a,caller:Va});return w.jsx(F_,{scope:t,triggerRef:l,contentRef:u,contentId:Is(),titleId:Is(),descriptionId:Is(),open:c,onOpenChange:p,onOpenToggle:Q.useCallback(()=>p(d=>!d),[p]),modal:o,children:n})};Cg.displayName=Va;var Ig="DialogTrigger",j_=Q.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=nn(Ig,n),a=ei(t,r.triggerRef);return w.jsx(In.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":El(r.open),...i,ref:a,onClick:Dn(e.onClick,r.onOpenToggle)})});j_.displayName=Ig;var kl="DialogPortal",[V_,_g]=Eg(kl,{forceMount:void 0}),Ag=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:r}=e,a=nn(kl,t);return w.jsx(V_,{scope:t,forceMount:n,children:Q.Children.map(i,o=>w.jsx(Fa,{present:n||a.open,children:w.jsx(gg,{asChild:!0,container:r,children:o})}))})};Ag.displayName=kl;var ma="DialogOverlay",Ng=Q.forwardRef((e,t)=>{const n=_g(ma,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,a=nn(ma,e.__scopeDialog);return a.modal?w.jsx(Fa,{present:i||a.open,children:w.jsx(B_,{...r,ref:t})}):null});Ng.displayName=ma;var z_=ug("DialogOverlay.RemoveScroll"),B_=Q.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=nn(ma,n);return w.jsx(kg,{as:z_,allowPinchZoom:!0,shards:[r.contentRef],children:w.jsx(In.div,{"data-state":El(r.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),Zn="DialogContent",Tg=Q.forwardRef((e,t)=>{const n=_g(Zn,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,a=nn(Zn,e.__scopeDialog);return w.jsx(Fa,{present:i||a.open,children:a.modal?w.jsx(H_,{...r,ref:t}):w.jsx(K_,{...r,ref:t})})});Tg.displayName=Zn;var H_=Q.forwardRef((e,t)=>{const n=nn(Zn,e.__scopeDialog),i=Q.useRef(null),r=ei(t,n.contentRef,i);return Q.useEffect(()=>{const a=i.current;if(a)return M_(a)},[]),w.jsx(Pg,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Dn(e.onCloseAutoFocus,a=>{var o;a.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Dn(e.onPointerDownOutside,a=>{const o=a.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&a.preventDefault()}),onFocusOutside:Dn(e.onFocusOutside,a=>a.preventDefault())})}),K_=Q.forwardRef((e,t)=>{const n=nn(Zn,e.__scopeDialog),i=Q.useRef(!1),r=Q.useRef(!1);return w.jsx(Pg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,a),a.defaultPrevented||(i.current||(l=n.triggerRef.current)==null||l.focus(),a.preventDefault()),i.current=!1,r.current=!1},onInteractOutside:a=>{var u,c;(u=e.onInteractOutside)==null||u.call(e,a),a.defaultPrevented||(i.current=!0,a.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=a.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&r.current&&a.preventDefault()}})}),Pg=Q.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:a,...o}=e,l=nn(Zn,n),u=Q.useRef(null),c=ei(t,u);return XI(),w.jsxs(w.Fragment,{children:[w.jsx(pg,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:r,onUnmountAutoFocus:a,children:w.jsx(hg,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":El(l.open),...o,ref:c,onDismiss:()=>l.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(q_,{titleId:l.titleId}),w.jsx($_,{contentRef:u,descriptionId:l.descriptionId})]})]})}),Sl="DialogTitle",Og=Q.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=nn(Sl,n);return w.jsx(In.h2,{id:r.titleId,...i,ref:t})});Og.displayName=Sl;var Lg="DialogDescription",U_=Q.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=nn(Lg,n);return w.jsx(In.p,{id:r.descriptionId,...i,ref:t})});U_.displayName=Lg;var Rg="DialogClose",W_=Q.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=nn(Rg,n);return w.jsx(In.button,{type:"button",...i,ref:t,onClick:Dn(e.onClick,()=>r.onOpenChange(!1))})});W_.displayName=Rg;function El(e){return e?"open":"closed"}var Dg="DialogTitleWarning",[K2,Mg]=mI(Dg,{contentName:Zn,titleName:Sl,docsSlug:"dialog"}),q_=({titleId:e})=>{const t=Mg(Dg),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
163
|
+
|
|
164
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
165
|
+
|
|
166
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return Q.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},G_="DialogDescriptionWarning",$_=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Mg(G_).contentName}}.`;return Q.useEffect(()=>{var a;const r=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},J_=Cg,Y_=Ag,X_=Ng,Z_=Tg,Q_=Og;const Fg=({children:e,isOpen:t,onClose:n,title:i})=>w.jsx(J_,{open:t,onOpenChange:r=>!r&&n(),children:w.jsxs(Y_,{container:ft(),children:[w.jsx(X_,{className:`fixed inset-0 z-[1000] bg-black bg-opacity-75 \r
|
|
167
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0 \r
|
|
168
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0`}),w.jsx("div",{className:"fixed inset-0 z-[1001] overflow-y-auto",children:w.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:w.jsxs(Z_,{onPointerDownOutside:r=>r.preventDefault(),"aria-describedby":void 0,className:`w-full space-y-2 max-w-md transform overflow-hidden rounded border border-grey-50 bg-grey-900 px-5 py-4 text-left align-middle text-white shadow-xl\r
|
|
169
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:scale-95 data-[state=open]:duration-300\r
|
|
170
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:scale-95 data-[state=closed]:duration-200`,children:[w.jsxs("div",{className:"flex flex-col items-center justify-center space-y-2",children:[w.jsx(st.FdDownload,{className:"h-6 w-6"}),w.jsx(Q_,{className:"mt-4 text-sm font-bold",children:i})]}),w.jsx("div",{className:"space-y-2",children:e})]})})})]})}),e2=[{label:"json",value:"json"},{label:"csv",value:"csv"}],t2=({onSelect:e})=>{const[t,n]=M.useState(null);return w.jsx("div",{className:"w-full",children:w.jsx(oa.Root,{"data-cy":"localization-export-file-type-select",value:t,options:e2,isMulti:!1,onChange:i=>{i&&(n(i),e(i.value))},getOptionLabel:i=>i.label,children:w.jsx(oa.Field,{placeholder:"Select a file format"})})})},n2=({enable:e,onSelect:t})=>{const{state:n,actions:i}=ye.useStateObject({delimiters:[{label:"Comma",value:","},{label:"Semicolon",value:";"}],selected:","});return M.useEffect(()=>{t(n.selected)},[n.selected]),e?w.jsxs("div",{className:"flex flex-row items-center justify-between",children:[w.jsx("span",{className:"text-sm text-grey-50",children:" Select a Delimiter "}),w.jsx(uu.Group,{className:"flex flex-row items-center space-x-2",value:n.selected,onChange:r=>i.setSelected(r),children:n.delimiters.map(({label:r,value:a})=>w.jsx(uu.Item,{value:a,label:`${r} (${a})`}))})]}):w.jsx(w.Fragment,{})},i2={SELECT_FILE_TYPE:"Please Select a File Format !"},r2=({toExport:e})=>{var K;const[t,n]=M.useState(),i=Vn(),r=i.getWebformTabs(),a=M.useRef(null),o=M.useRef([]),l=M.useRef([]),{i18n:u}=zn(),c=((K=i.getUserComponents)==null?void 0:K.call(i))??{},p=i.buildResolver??{},[d]=M.useState(!0),{state:{isOpen:m,fileType:g,error:_,csvDelimier:x},actions:E}=ye.useStateObject({error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],csvDelimier:","}),C=e.length===0;M.useEffect(()=>{ye.tasksManagerSubject.subscribe({next:W=>{if(W.type==="i18n"&&W.action==="cancel"){const{id:ne}=W;l.current.push(ne)}}}),n({...p,...c})},[]);const S=()=>{E.setFileType(""),E.setError(""),E.setIsOpen(!1)},k=()=>{S()},A=()=>k(),b=()=>{const W={};t&&(Object.entries(t).forEach(([ne,te])=>{const{info:{settings:J}}=te;if(J)if(ne==="Text")W.Text=[{keyPropName:"doc",keyDefaultName:"text"}];else{const ue=f(J,"");W[ne]=ue}}),a.current=W)},f=(W,ne)=>{let te=[];if(Array.isArray(W))W.forEach(J=>te=te.concat(f(J,ne)));else if(ce.isObject(W)){const{key:J,type:ue}=W;if(ue===ye.ESetting.GROUP){const{components:y}=W;y==null||y.forEach(X=>te=te.concat(f(X,ne)))}else ue===ye.ESetting.I18NFIELD?te.push({keyPropName:ne||J,keyDefaultName:J}):Object.entries(W).forEach(([,y])=>{ce.isObject(y)&&(te=te.concat(f(y,ne||J)))})}return te},T=(W,ne)=>{const{content:te}=W,{components:J}=te,ue={};if(!J)return W;const y=(ie,P,G,q)=>{const F=[];if(ce.has(ie,G)){const ee=ce.get(ie,G);F.push(...ro(ee,G,q))}const Y=[];return F.forEach(ee=>{const se=ce.get(ie,ee),le={__dataPath:ee,__default:se};e.forEach(H=>{const pe=`i18n:${H}`,re=Object.keys(P),we=re.find(be=>be.startsWith(pe)),xe=re.reduce((be,Ne)=>(Ne!==pe&&Ne.endsWith(pe)&&be.push(Ne),be),[]);if(we){const be=ce.get(P,`${we}.${ee}`);ce.set(le,H,be)}if(xe.length&&xe.forEach(be=>{const Ne=ce.get(P,`${be}.${ee}`);let Te=be;Te=be.replace("states:",""),Te=Te.replace("i18n:",""),Ne&&ce.set(le,Te,Ne)}),!we){const be=ce.get(ie,`${ee}`);ce.set(le,H,be)}}),Y.push(le)}),Y},X=(ie,P,G)=>{const q=[],F=ce.get(ie,G);return F?(q.push({key:"__default",props:F}),e.forEach(Y=>{const ee=`i18n:${Y}`,se=Object.keys(P),le=se.find(pe=>pe.startsWith(ee)),H=se.reduce((pe,re)=>(re!==ee&&re.endsWith(ee)&&pe.push(re),pe),[]);if(le){const pe=ce.get(P,`${le}.${G}`);pe&&q.push({key:Y,props:pe})}H.length&&H.forEach(pe=>{const re=ce.get(P,`${pe}.${G}`);q.push({key:pe,props:re||""})}),!le&&!H.length&&q.push({key:Y,props:F})}),q.reduce((Y,ee)=>{const{key:se,props:le}=ee,H=pI(le);return{...Y,[se]:H}},{__dataPath:G})):ie};return Object.entries(J).forEach(([ie,P])=>{const{props:G,custom:q={},type:F}=P,z=F.resolvedName,Y=ne[z];if(!Y||Y.length===0)return;const ee=Y.map(({keyPropName:se,keyDefaultName:le})=>z==="Text"?X(G,q,se):y(G,q,se,le));ce.set(ue,ie,{resolverName:z,props:[...ee.flat()]})}),ue},L=async(W,ne)=>{const te={},J=ue=>{const y=ue+1===W.length?W.length:ue,X=Math.ceil(y/W.length*100);ye.tasksManagerSubject.next({id:ne,action:"update",type:"i18n",payload:{progress:X,status:X>=100?"finished":"ongoing"}})};for(let ue=0;ue<W.length;ue++){const y=W[ue],X=r.find(G=>G.name===y.name&&G.type==="webform");if(!a.current){J(ue);continue}const ie=X||await ye.getNodeInfo({verb:ye.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${y.name}.${y.ext}`,as:"json"}),P=T(ie,a.current);if(ce.isEmpty(P)||ce.set(te,y.name,P),l.current.find(G=>G===ne))return{};J(ue)}return te},V=(W,ne,te)=>{const J="data:text/json;charset=utf-8,"+encodeURIComponent(W),ue=document.createElement("a");ue.setAttribute("href",J),ue.setAttribute("download",ne+`.${te}`),document.body.appendChild(ue),ue.click(),ue.remove()},D=W=>{switch(g){case"csv":{const ne=["keys","resolverName","__t"].concat(e.concat(["i18nkey_default"]));return hI(W,ne,x)}case"json":return JSON.stringify(W,null," ");default:return JSON.stringify(W,null," ")}},B=(W,ne)=>{Object.entries(ne.keys).forEach(([J,ue])=>{Object.keys(ue).forEach(y=>{o.current.push(`i18n.${J}.${y}`)})});const te={};return Object.entries(ne.keys).forEach(([J,ue])=>{te[J]={default:ue.default},e.forEach(y=>{te[J][y]=Object.hasOwn(ue,y)?ue[y]:d?ue.default:void 0})}),{webforms:{...W},i18n:te}},j=W=>E.setCsvDelimier(W),$=async()=>{const W=oo.generate().toString();try{ye.tasksManagerSubject.next({id:W,action:"add",type:"i18n",payload:{progress:0,name:"Export i18n",status:"ongoing",date:new Date().toISOString(),time:cI()}}),b();const ne=await sg(),te=await L(ne,W),J=B(te,u),ue=D(J);ce.isEmpty(ue)||V(ue,"export-i18n",g),S()}catch(ne){ye.tasksManagerSubject.next({id:W,type:"i18n",action:"update",payload:{status:"canceled"}}),ye.tasksManagerSubject.next({id:W,type:"i18n",action:"error",payload:{errorMessage:ne.message||"Export file error"}})}S()};return w.jsxs(w.Fragment,{children:[w.jsx(yt,{label:"Export",container:ft(),children:w.jsx(ut,{disabled:C,color:"white",variant:"ghost",onClick:()=>{E.setIsOpen(!0)},children:w.jsx(st.FdUpload,{className:"h-4 w-4"})})}),w.jsxs(Fg,{isOpen:m,onClose:k,title:"Export","data-cy":"localization-export-dialog",children:[w.jsx("div",{className:"mt-4",children:w.jsx(t2,{onSelect:W=>E.setFileType(W)})}),w.jsx(n2,{enable:g==="csv",onSelect:j}),w.jsxs("div",{className:"mt-3 flex items-center justify-between gap-4",children:[w.jsxs("div",{className:"flex flex-row space-x-1 justify-center items-center text-primary hover:underline cursor-pointer",onClick:()=>{window.open("https://developer.4d.com/qodly/4DQodlyPro/localization#exporting-and-importing-translations","_blank")},children:[w.jsx("p",{className:"text-xs",children:"How to Export an i18n File"}),w.jsx(st.FdOutload,{className:"ml-1 h-4 w-4"})]}),w.jsxs("div",{className:"flex items-center space-x-2",children:[w.jsx(ut,{color:"white",variant:"ghost",onClick:A,children:"Cancel"}),w.jsx(ut,{onClick:()=>{g?(E.setIsOpen(!1),$()):E.setError(i2.SELECT_FILE_TYPE)},children:"Export"})]})]}),_&&w.jsx("div",{className:"flex items-center justify-center p-2",children:w.jsx("span",{className:"text-sm text-negative-text",children:_})})]})]})},a2={DROP_EVENT_ERROR:"Not Suported File type! Only .json and .csv are Supported."},s2=["default"],o2={MISSING_WEBFORMS_OR_I18N:"The file must contain 'webforms' or 'i18n' (or both). The file is empty or missing these keys."},jg=["__dataPath","__default","default","__t","i18nkey_default"],l2=["i18n:","state:"],va=e=>jg.includes(e)||l2.some(t=>e.startsWith(t)),u2=e=>{const t=new Set;return e.webforms&&Object.values(e.webforms).forEach(n=>{Object.values(n).forEach(i=>{(i.props||[]).forEach(r=>{Object.keys(r).forEach(a=>{va(a)||t.add(a)})})})}),e.i18n&&Object.values(e.i18n).forEach(n=>{Object.keys(n||{}).forEach(i=>{va(i)||t.add(i)})}),Array.from(t).sort()},oh=e=>{if(jg.includes(e))return null;if(e.startsWith("state:")){const t=e.lastIndexOf("i18n:");return t!==-1&&e.slice(t+5)||null}return e},c2=(e,t)=>{const n=new Set(t),i={};return e.webforms&&(i.webforms={},Object.entries(e.webforms).forEach(([r,a])=>{if(!a||typeof a!="object")return;const o={};Object.entries(a).forEach(([l,u])=>{if(!u||typeof u!="object")return;const c={resolverName:u.resolverName};u.resolverName==="Text"?(u.props&&(c.props=u.props),u.custom&&(c.custom={},Object.entries(u.custom).forEach(([d,m])=>{const g=d.startsWith("state:")||d.startsWith("states:")?oh(d):d.startsWith("i18n:")?d.slice(5):d;g&&n.has(g)&&(c.custom[d]=m)}))):Object.entries(u).forEach(([d,m])=>{if(d!=="resolverName")if(m&&ce.isObject(m)&&!Array.isArray(m)){const g={};Object.entries(m).forEach(([_,x])=>{const E=oh(_);(E===null||n.has(E))&&(g[_]=x)}),Object.keys(g).length>0&&(c[d]=g)}else c[d]=m}),o[l]=c}),i.webforms[r]=o})),e.i18n&&(i.i18n={},Object.entries(e.i18n).forEach(([r,a])=>{if(!a||typeof a!="object")return;const o={};Object.entries(a).forEach(([l,u])=>{(l==="default"||!va(l)&&n.has(l))&&(o[l]=u)}),Object.keys(o).length>0&&(i.i18n[r]=o)})),i},h2=e=>{const{data:t}=uo.parse(e),n=t[0];if(!n||!Array.isArray(n))return[];const i=n.slice(2).filter(r=>r&&!va(r.trim()));return[...new Set(i)].sort()},ci={EMPTY_OR_INVALID:"The CSV file is empty or could not be parsed.",HEADER_REQUIRED:"The first row must be a header with at least columns: 'keys', 'resolverName', and one locale (e.g. __t, fr, en).",KEY_FORMAT:"Each data row's first column (keys) must be non-empty and start with 'webforms.' or 'i18n.'.",ROW_COLUMNS:"Every row must have the same number of columns as the header."},d2=e=>{const t=og(e),{data:n}=uo.parse(t),i=n;if(!(i!=null&&i.length))return{valid:!1,message:ci.EMPTY_OR_INVALID};const r=i[0];if(!r||r.length<3)return{valid:!1,message:ci.HEADER_REQUIRED};const a=(r[0]??"").trim().toLowerCase(),o=(r[1]??"").trim().toLowerCase();if(a!=="keys"||o!=="resolvername")return{valid:!1,message:ci.HEADER_REQUIRED};const l=r.length;for(let u=1;u<i.length;u++){if(i[u].length<=1)continue;const c=i[u];if(!c||c.length!==l)return{valid:!1,message:ci.ROW_COLUMNS};const p=(c[0]??"").trim();if(!p)return{valid:!1,message:ci.KEY_FORMAT};if(!p.startsWith("webforms.")&&!p.startsWith("i18n."))return{valid:!1,message:ci.KEY_FORMAT}}return{valid:!0}},p2=(e,t)=>{const i=new pm.Validator().validate(e,t);if(i.valid)return{valid:!0};const r=i.errors[0],a=r?`${r.property||"root"} ${r.message}`.trim():"Invalid file format";return{valid:!1,message:ce.isObject(e)&&!ce.has(e,"webforms")&&!ce.has(e,"i18n")&&(a.includes("subschema")||a.includes("any of"))?o2.MISSING_WEBFORMS_OR_I18N:a}},f2="Export i18n",g2="Schema for i18n export format. Must have webforms, i18n, or both.",m2="object",v2=!1,x2={webforms:{type:"object",description:"Webform names to their component localizations",additionalProperties:{$ref:"#/definitions/webformComponents"}},i18n:{type:"object",description:"Shared i18n keys and their localized values",additionalProperties:{$ref:"#/definitions/i18nKeys"}}},b2=[{required:["webforms"]},{required:["i18n"]}],y2={webformComponents:{type:"object",description:"Component ID to component localization entry",additionalProperties:{$ref:"#/definitions/componentEntry"}},componentEntry:{type:"object",required:["resolverName","props"],additionalProperties:!1,properties:{resolverName:{type:"string",description:"Name of the component resolver (e.g. Button)"},props:{type:"array",description:"Localized prop entries",items:{$ref:"#/definitions/propLocalization"}}}},propLocalization:{type:"object",required:["__dataPath","__default"],properties:{__dataPath:{type:"string",description:"Path to the prop (e.g. text)"},__default:{type:"string",description:"Default value for the prop"}},additionalProperties:{type:"string",description:"Locale code to localized string (e.g. fr, en)"}},i18nKeys:{type:"object",required:["default"],properties:{default:{type:"string",description:"Default value"}},additionalProperties:{type:"string",description:"Locale code to localized string (e.g. fr, en)"}}},w2={title:f2,description:g2,type:m2,additionalProperties:v2,properties:x2,anyOf:b2,definitions:y2},k2=({label:e,isocode:t,isChecked:n,onToggle:i})=>w.jsx(wa,{size:"sm",value:n,label:e,onChange:i,title:t}),S2=({detectedLanguageDetails:e,selectedIsocodes:t,onToggleIsocode:n})=>w.jsxs(Hn,{depth:1,borderType:"light",className:"mt-2 w-full rounded border px-2 py-1.5",children:[w.jsx("p",{className:"mb-1.5 text-xs font-medium text-muted",children:"Detected locales"}),w.jsx("div",{className:"flex flex-col gap-1 overflow-y-auto",style:{maxHeight:"5rem"},children:e.map(i=>w.jsx(k2,{label:`${i.native} - ${i.isocode??""}`,isocode:i.isocode,isChecked:t.includes(i.isocode),onToggle:()=>n(i.isocode)},i.isocode))})]}),E2="Drop or Add a File !",C2=({getRootProps:e,getInputProps:t,isDragActive:n,file:i,error:r,onResetFile:a,detectedLanguageDetails:o,selectedIsocodes:l,onToggleIsocode:u,onClose:c,onImport:p,setError:d,hasNoSelection:m})=>w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"mt-4 space-y-2",children:[w.jsxs("div",{...e(),children:[w.jsx("input",{...t()}),w.jsx("div",{className:Vt("min-h-[100px] rounded border border-dashed text-center text-sm",{"border-primary":n,"flex items-center justify-center":i}),children:i?w.jsxs("div",{className:"flex items-center justify-center gap-1 px-2",children:[w.jsx("p",{className:"min-w-0 flex-1 truncate",children:i.name}),w.jsx(yt,{label:"Remove file",container:ft(),children:w.jsx(ut,{color:"white",variant:"ghost",onClick:g=>{g.stopPropagation(),a()},"aria-label":"Remove file",children:w.jsx(st.FdClose,{className:"h-4 w-4"})})})]}):w.jsxs("div",{className:"flex min-h-[100px] w-full flex-col items-center justify-center text-muted",children:[w.jsx("p",{className:"max-w-md px-2 text-center text-xs ",children:'Drag and drop the file with ".json" or ".csv" extension here or click to select it from your computer.'}),w.jsx(st.FdDownload,{className:"mt-2 h-6 w-6 text-inactive-text"})]})}),r&&w.jsx("div",{className:"flex items-center justify-center p-2",children:w.jsx("p",{className:"text-xs text-negative-text",children:r})})]}),i&&o.length>0&&w.jsx(S2,{detectedLanguageDetails:o,selectedIsocodes:l,onToggleIsocode:u})]}),w.jsxs("div",{className:"mt-4 flex items-center justify-between gap-4",children:[w.jsxs("div",{className:"flex flex-row space-x-1 justify-center items-center text-primary hover:underline cursor-pointer",onClick:()=>{window.open("https://developer.4d.com/qodly/4DQodlyPro/localization#exporting-and-importing-translations","_blank")},children:[w.jsx("p",{className:"text-xs",children:"How to Import an i18n File"}),w.jsx(st.FdOutload,{className:"ml-1 h-4 w-4"})]}),w.jsxs("div",{className:"flex items-center space-x-2",children:[w.jsx(ut,{color:"white",variant:"ghost",onClick:c,children:"Cancel"}),w.jsx(ut,{disabled:m,onClick:()=>{!r&&i?p():i||d(E2)},children:"Import"})]})]})]}),I2=({summary:e,onClose:t})=>w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"mt-4 space-y-4",children:[w.jsx("p",{className:"text-sm text-muted",children:"Summary"}),w.jsxs(Hn,{depth:1,borderType:"light",className:"rounded border px-3 py-3 space-y-2",children:[w.jsxs("div",{className:"flex items-center justify-between text-xs",children:[w.jsx("span",{className:"text-inactive-text",children:"Keys Imported"}),w.jsx("span",{className:"font-medium",children:e.importedKeys})]}),w.jsxs("div",{className:"flex items-center justify-between text-xs",children:[w.jsx("span",{className:"text-inactive-text",children:"Keys Merged"}),w.jsx("span",{className:"font-medium",children:e.mergedKeys})]}),w.jsxs("div",{className:"flex items-center justify-between text-xs",children:[w.jsx("span",{className:"text-inactive-text",children:"Keys Unchanged"}),w.jsx("span",{className:"font-medium",children:e.unchangedKeys})]})]})]}),w.jsx("div",{className:"mt-4 flex justify-end",children:w.jsx(ut,{color:"white",variant:"outline",onClick:t,children:"Close"})})]}),_2=({disable:e,enable:t,RenderTrigger:n})=>{const i=Vn(),{state:{file:r,isOpen:a,supprtedExtension:o,error:l,content:u,detectedLanguages:c,selectedIsocodes:p,showSummaryView:d,summary:m},actions:g}=ye.useStateObject({file:null,error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],content:{},detectedLanguages:[],selectedIsocodes:[],showSummaryView:!1,summary:{importedKeys:0,mergedKeys:0,unchangedKeys:0}}),_=i.getWebformTabs(),{i18n:{keys:x}}=zn(),{allSupportedLanguages:E,userLanguages:{supported:C,primary:S},setUserLangSettings:k}=Bn(),A=M.useMemo(()=>E.filter(q=>c.includes(q.isocode)),[E,c]),b=q=>{const F=new Set(C.map(ee=>ee.isocode)),z=q.filter(ee=>!F.has(ee));if(z.length===0)return;const Y=z.map(ee=>$i(ee,E)).filter(ee=>ee!=null).map(ee=>({isocode:ee.isocode}));Y.length!==0&&k({primary:C.length===0?Y[0].isocode:S,supported:C.concat(Y)})},{getRootProps:f,getInputProps:T,isDragActive:L}=dm.useDropzone({async onDropAccepted([q]){if(o.find(F=>q.name.endsWith(F))){g.setError(""),g.setFile(q);const F=await B(q),z=q.name.split(".").pop()||"";try{if(z==="csv"){const Y=d2(F);if(!Y.valid){g.setError(Y.message);return}const ee=y(F,z);g.setContent(ee||{});const se=h2(F);g.setDetectedLanguages(se),g.setSelectedIsocodes(se)}else{const Y=JSON.parse(F),ee=p2(Y,w2);if(!ee.valid){g.setError(ee.message);return}const se=y(F,z);g.setContent(se||{});const le=u2(Y);g.setDetectedLanguages(le),g.setSelectedIsocodes(le)}}catch(Y){g.setError(Y.message||"Invalid file");return}}else g.setError(a2.DROP_EVENT_ERROR)},accept:{"application/*":o},multiple:!1}),V=()=>{g.setFileType(""),g.setError(""),g.setFile(null),g.setContent({}),g.setDetectedLanguages([]),g.setSelectedIsocodes([])},D=()=>{g.setIsOpen(!1),g.setShowSummaryView(!1),g.setSummary({importedKeys:0,mergedKeys:0,unchangedKeys:0}),V()},B=q=>new Promise(F=>{const z=new FileReader;z.onload=()=>F(z.result),z.readAsText(q)}),j=async(q,F,z)=>{if(z){const Y=`WebForms/${F}.WebForm`;await i.actions.setTabContent({path:Y,content:q.content}),ye.webformSubject.next({path:Y,action:ye.WebformActions.RECOMPUTE,payload:q.content.components})}else{const Y={...q};await ye.saveContent({verb:ye.DesignerRequestVerb.SAVE_CONTENT,content:Y.content,path:`WebForms/${F}.WebForm`})}},$=(q,F)=>{const{content:{components:z}}=ce.cloneDeep(q);if(!z)return q;const Y=(le,H,pe,re)=>{if(Array.isArray(le))le.forEach((we,xe)=>{let be="";pe==="Text"?be=Array.isArray(we)?`${H}.[${xe}].children`:`${H}.[${xe}]`:be=`${H}.[${xe}]`,Y(we,be,pe,re)});else if(ce.isObject(le))if(Object.keys(le).length>1){const xe=Object.keys(le),be={};xe.forEach(Te=>{const Pe=ce.get(le,Te);if(Te==="__t")ce.set(re,`props.${H}`,Pe);else if(Pe&&Te.startsWith("states:")){const qe=Te.split(":"),Ye=qe.map((Re,Fe)=>Fe+1===qe.length?`i18n:${Re}`:Re).join(":");if(!re.custom)return;ce.set(be,`${Ye}.${H}`,Pe)}else if(Pe){const qe=`i18n:${Te}`;if(!re.custom)return;ce.set(be,`${qe}.${H}`,Pe)}});const[Ne]=H.split(".");Object.entries(be).forEach(([Te,Pe])=>{const qe=ce.get(re,`props.${Ne}`,{}),Ye=ce.get(re,`custom.${Te}.${Ne}`);let Re="";typeof Ye=="string"||typeof qe=="string"?Re=ce.get(Pe,Ne):Re=ce.merge(Ye||ce.cloneDeep(qe),ce.get(Pe,Ne)),ce.set(re,`custom.${Te}.${Ne}`,Re)})}else{const xe=Object.entries(le)[0],be=xe[0],Ne=xe[1];H=`${H}.${be}`,Y(Ne,H,pe,re)}},ee=Object.entries(F);for(let le=0;le<ee.length;le++){const[H,pe]=ee[le],{resolverName:re,...we}=pe,xe=ce.get(z,H);if(xe)if(re==="Text"){const{custom:be,props:Ne}=we;ce.set(z,H,{...xe,props:{...xe.props,...Ne},custom:{...xe.custom,...be}})}else Object.entries(we).forEach(([be,Ne])=>{const Te=ce.get(z,H);if(!Te)return;const Pe=ce.cloneDeep(Te);Y(Ne,be,re,Pe),ce.set(z,H,Pe)})}const se=ce.cloneDeep(q);return ce.set(se,"content.components",z),se},K=q=>q==null||typeof q=="string"&&q.trim()==="",W=(q,F)=>{const z=q&&ce.isObject(q)?q:{},Y=F&&ce.isObject(F)?F:{};if(K(Y))return ce.cloneDeep(z);const ee=ce.cloneDeep(z);for(const se of Object.keys(Y)){const le=Y[se];if(!le||!ce.isObject(le))continue;const H=ee[se],pe=new Set([...Object.keys(le),...H&&ce.isObject(H)?Object.keys(H):[]]),re={};for(const we of pe){const xe=ce.get(le,we),be=H&&ce.isObject(H)?ce.get(H,we):void 0;K(xe)?K(be)||(re[we]=be):re[we]=xe}for(const we of s2){const xe=ce.get(re,we),be=H&&ce.isObject(H)?ce.get(H,we):void 0;!K(be)&&K(xe)&&ce.set(re,we,be)}ee[se]=re}return ee},ne=(q,F)=>{const z={importedKeys:0,mergedKeys:0,unchangedKeys:0},Y=new Set(Object.keys(F||{}));for(const ee of Y){const se=F[ee],le=q[ee];if(!le||!ce.isObject(le)){z.importedKeys+=1;continue}const H=Object.keys(se);let pe=!1;for(const re of H){const we=se[re],xe=ce.get(le,re),be=K(we)&&!K(xe),Ne=String(we??"")===String(xe??"");if(!be&&!Ne){pe=!0;break}}H.length>0&&!pe?z.unchangedKeys+=1:pe&&(z.mergedKeys+=1)}for(const ee of Object.keys(q))Y.has(ee)||(z.unchangedKeys+=1);return z},te=async(q,F,z)=>{const{webforms:Y,i18n:ee}=q,se=W(x,ee),le=ne(x,ee);ye.i18nSubject.next({action:"set_content",payload:se});const H=pe=>{const re=pe+1===F.length?F.length:pe,we=Math.ceil(re/F.length*100);ye.tasksManagerSubject.next({id:z,action:"update",type:"i18n",payload:{progress:we,status:we>=100?"finished":"ongoing"}})};if(K(Y))return le;for(let pe=0;pe<F.length;pe++){const re=F[pe],we=_.find(Pe=>Pe.name===re.name&&Pe.type==="webform"),xe=!!we,be=xe?we:await ye.getNodeInfo({verb:ye.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${re.name}.${re.ext}`,as:"json"}),{name:Ne}=be;if(!Y[Ne]){H(pe);continue}const Te=$(be,Y[Ne]);await j(Te,Ne,xe),H(pe)}return le},J=q=>{const F=og(q),{data:z}=uo.parse(F),Y={};let ee=[];return z.forEach((se,le)=>{if(le===0){ee=se;return}let H="",pe="";se.forEach((re,we)=>{if(we===0)H=re;else if(we===1)pe=re;else if(H.startsWith("i18n")){if(ce.has(Y,H)&&ce.get(Y,H))return;ce.set(Y,H,re)}else if(re){const{webformName:xe,componentId:be,propName:Ne}=gI(H);if(ce.set(Y,`webforms.${xe}.${be}.resolverName`,pe),pe==="Text"){const Te=Cs(re),Pe=ee[we];Pe==="__t"?ce.set(Y,`webforms.${xe}.${be}.props.${Ne}`,Te):ce.set(Y,`webforms.${xe}.${be}.custom.i18n:${Pe}.${Ne}`,Te)}else{const Te=ee[we];let Pe=Te==="i18nkey_default"?"default":Te;if(Pe.includes(":")){const qe=Pe.split(":");Pe=qe.map((Ye,Re)=>Re===0?`states:${Ye}`:Re===qe.length-1?`i18n:${Ye}`:Ye).join(":")}ce.set(Y,`${H}.${Pe}`,re)}}})}),Y},ue=q=>{const F=JSON.parse(q),z={},{webforms:Y,i18n:ee}=F;return Y&&Object.keys(Y).forEach(le=>{const H=ce.get(Y,le);Object.keys(H).forEach(re=>{const we=ce.get(H,re),{props:xe,resolverName:be}=we;ce.set(z,`webforms.${le}.${re}.resolverName`,be),Array.isArray(xe)&&xe.forEach(({__dataPath:Ne,__default:Te,...Pe})=>{if(be==="Text"){const qe=Cs(Te);ce.set(z,`webforms.${le}.${re}.props.doc`,qe),Object.keys(Pe).forEach(Ye=>{const Re=Cs(Pe[Ye]);ce.set(z,`webforms.${le}.${re}.custom.i18n:${Ye}.doc`,Re)})}else ce.set(z,`webforms.${le}.${re}.${Ne}.__t`,Te),Object.keys(Pe).forEach(qe=>{let Ye=qe;if(Ye.includes(":")){const Re=Ye.split(":");Ye=Re.map((Fe,xt)=>xt===0?`states:${Fe}`:xt===Re.length-1?`i18n:${Fe}`:Fe).join(":")}ce.set(z,`webforms.${le}.${re}.${Ne}.${Ye}`,Pe[qe])})})})}),ee&&Object.keys(ee).forEach(le=>{const H=ce.get(ee,le);H&&Object.keys(H).forEach(re=>{const we=ce.get(H,re);ce.set(z,`i18n.${le}.${re}`,we)})}),z},y=(q,F)=>{switch(F){case"csv":return J(q);case"json":return ue(q)}},X=async()=>{if(r){const q=oo.generate().toString();try{ye.tasksManagerSubject.next({id:q,action:"add",type:"i18n",payload:{date:new Date().toISOString(),progress:0,name:"Import i18n",status:"ongoing"}});const F=await sg(),z=c2(u,p),Y=await te(z,F,q);g.setSummary(Y),g.setShowSummaryView(!0),b(p)}catch(F){ye.tasksManagerSubject.next({id:q,type:"i18n",action:"update",payload:{status:"canceled"}}),ye.tasksManagerSubject.next({id:q,type:"i18n",action:"error",payload:{errorMessage:F.message||"Import file error"}})}}};if(!t)return w.jsx(w.Fragment,{});const ie=()=>{g.setIsOpen(!0),V()},P=q=>{g.setSelectedIsocodes(p.includes(q)?p.filter(F=>F!==q):[...p,q])},G=n?w.jsx(n,{onClick:ie,disabled:!!e}):w.jsx(yt,{label:"Import",container:ft(),children:w.jsx(ut,{disabled:e,color:"white",variant:"ghost",onClick:()=>{g.setIsOpen(!0),V()},children:w.jsx(st.FdDownload,{className:"h-4 w-4"})})});return w.jsxs(w.Fragment,{children:[G,w.jsx(Fg,{isOpen:a,onClose:D,title:d?"Import summary":"Import",children:d?w.jsx(I2,{summary:m,onClose:D}):w.jsx(C2,{getRootProps:f,getInputProps:T,isDragActive:L,file:r,error:l,onResetFile:V,detectedLanguages:c,detectedLanguageDetails:A,selectedIsocodes:p,onToggleIsocode:P,onClose:D,onImport:X,setError:g.setError,hasNoSelection:p.length===0})})]})},A2=({onClick:e})=>w.jsx(yt,{label:"Edit",container:ft(),children:w.jsx(ut,{color:"white",variant:"ghost","data-cy":"locales-list-item-edit-button",onClick:t=>{t.stopPropagation(),e()},children:w.jsx(st.FdPen,{})})}),N2=({onClick:e,disable:t})=>t?w.jsx(w.Fragment,{}):w.jsx(yt,{label:"Remove",container:ft(),children:w.jsx(ut,{color:"white",variant:"ghost","data-cy":"locales-list-item-remove-button",disabled:t,onClick:n=>{n.stopPropagation(),e()},children:w.jsx(st.FdTrash,{})})}),T2=({collapse:e,onClick:t})=>w.jsx(yt,{label:"Collapse",container:ft(),children:w.jsx(ut,{color:"white",variant:"ghost",onClick:n=>{n.stopPropagation(),t()},children:w.jsx(st.FdDown,{className:Vt({"-rotate-90":e})})})}),P2=({lang:e,onCancel:t,onConfirm:n})=>{var g,_,x;const{allSupportedLanguages:i}=Bn(),{i18n:r}=zn(),a=M.useMemo(()=>{var C,S;const E=new Set;return(C=r==null?void 0:r.userLang)!=null&&C.primary&&E.add(r.userLang.primary),(S=r==null?void 0:r.userLang)!=null&&S.supported&&r.userLang.supported.forEach(k=>{E.add(k.isocode)}),i},[i,(g=r==null?void 0:r.userLang)==null?void 0:g.primary,(_=r==null?void 0:r.userLang)==null?void 0:_.supported]),{state:{isOpen:o,supported:l,selectedLanguage:u},actions:c}=ye.useStateObject({isOpen:!0,supported:a,editing:!1,selectedLanguage:null,highlightedLanguageIndex:-1}),p=ye.useOutsideClick(()=>{u&&n(u)}),d=()=>{t()},m=()=>{u?n(u):t()};return w.jsxs(Hn,{depth:4,borderType:"light",className:"flex flex-row justify-between items-center border-1 mb-2 rounded border px-2 py-2 hover:cursor-pointer",ref:p,children:[w.jsx(oa.Root,{className:"w-48",value:u,options:a,isOpen:o,onOpenChange:c.setIsOpen,isSearchable:!0,getOptionLabel:E=>{const C=$i(E.isocode,i);return`${C==null?void 0:C.native} - ${C==null?void 0:C.isocode}`},getOptionValue:E=>E.isocode,onChange:E=>{E&&(c.setSelectedLanguage({isocode:E.isocode}),c.setSupported(a))},children:w.jsx(oa.Field,{"data-cy":"locales-new-language-input",autoFocus:!0,hideSelectedOptions:!0,placeholder:((x=$i(e==null?void 0:e.isocode,i))==null?void 0:x.locale)||"Select a language",onKeyUp:E=>{E.key==="Enter"&&m()},onClick:()=>c.setIsOpen(!0)})}),w.jsxs("div",{className:"flex space-x-1",children:[w.jsx(yt,{label:"Cancel",container:ft(),children:w.jsx(ut,{"data-cy":"locales-new-language-cancel-button",onClick:d,color:"white",variant:"ghost",children:w.jsx(st.FdClose,{})})}),w.jsx(yt,{label:"Confirm",container:ft(),children:w.jsx(ut,{"data-cy":"locales-new-language-confirm-button",onClick:m,color:"white",variant:"ghost",children:w.jsx(st.FdCheckCircle,{})})})]})]})},Vg=({activate:e,...t})=>e?w.jsx(P2,{...t}):w.jsx(w.Fragment,{}),O2=({primary:e,selected:t,selectMode:n,lang:i,onSelect:r,onRemove:a,onEdit:o,"data-cy":l})=>{const{state:{hover:u,selected:c,collapse:p,editing:d},actions:{setHover:m,setSelected:g,setCollapse:_,setEditing:x}}=ye.useStateObject({hover:!1,selected:!1,collapse:!0,editing:!1}),{selectedLanguage:E,setSelectedLanguage:C}=Bn(),{isocode:S,locale:k,native:A}=i||{isocode:"",locale:"",native:""},b=e===S,f=()=>{m(!0)},T=()=>{m(!1)},L=()=>{g(!c),r(S,!c)},V=()=>{x(!0)},D=()=>{a(S)},B=()=>{C(i)},j=K=>{x(!1),o(i,K)},$=()=>{x(!1)};return M.useEffect(()=>{g(t)},[t]),M.useEffect(()=>{b&&C(i)},[]),d?w.jsx(Vg,{lang:i,activate:d,onCancel:$,onConfirm:j}):w.jsxs(Hn,{depth:4,borderType:(E==null?void 0:E.isocode)===(i==null?void 0:i.isocode)?"primary":"light","data-cy":l,className:Vt("border-[1px] mb-2 flex flex-col space-y-2 rounded px-2 py-2 hover:cursor-pointer"),onMouseEnter:f,onMouseLeave:T,onClick:B,children:[w.jsxs("div",{className:"flex flex-row justify-between items-center",children:[w.jsxs("div",{className:"flex flex-row space-x-1",children:[u||n?w.jsx(wa,{value:c,onChange:L,size:"sm"}):w.jsx(w.Fragment,{}),w.jsx(st.FdLocalization,{className:Vt("w-4 h-4",{hidden:n||u})}),w.jsx("span",{className:Vt("text-xs",{"italic font-bold":b}),children:A})]}),w.jsxs("div",{className:"flex flex-row items-center space-x-1",children:[b&&w.jsx(hb,{label:"Primary"}),w.jsx(A2,{onClick:V}),w.jsx(N2,{disable:b,onClick:D}),w.jsx(T2,{collapse:p,onClick:()=>_(!p)})]})]}),w.jsxs("div",{className:Vt("ml-6 flex justify-between p-1 text-xs",{hidden:p}),children:[w.jsx("span",{children:"English name"}),w.jsx("span",{className:"text-muted",children:k})]}),w.jsxs("div",{className:Vt("ml-6 flex justify-between p-1 text-xs",{hidden:p}),children:[w.jsx("span",{children:"Iso Code"}),w.jsx("span",{className:"text-muted",children:S})]})]})},L2=()=>{const{state:{selectedLanguages:e,shouldAddNewLocal:t,selectAll:n},actions:i}=ye.useStateObject({selectAll:!1,selectedLanguages:[],shouldAddNewLocal:!1,allSupportedLanguages:[]}),{userLanguages:{supported:r=[],primary:a},addFirstLanguage:o,setAddFirstLanguage:l,setUserLangSettings:u,setSelectedLanguage:c,allSupportedLanguages:p}=Bn(),{editLanguageKeys:d,deleteLanguageKeys:m}=zn(),g=mm(e),_=vm(e),x=Vn(),E=x.getI18nCurrent(),C=x.getTabs(),S=(K,W)=>{const ne=W?e.concat(K):e.filter(te=>te!==K);i.setSelectedLanguages(ne),n&&i.setSelectAll(!1)},k=K=>{i.setShouldAddNewLocal(K)},A=()=>{i.setSelectAll(!n),n?i.setSelectedLanguages([]):i.setSelectedLanguages(r.map(K=>K.isocode))},b=K=>{const W={primary:r.length===0?K.isocode:a,supported:r.concat(K)};u(W),i.setShouldAddNewLocal(!1)};M.useEffect(()=>{o&&i.setShouldAddNewLocal(!0)},[o]);const f=(K,W)=>{const ne=`i18n:${W}`,te=`:i18n:${W}`,J=ue=>{ue.custom&&Object.keys(ue.custom).forEach(y=>{(y.includes(ne)||y.endsWith(te))&&delete ue.custom[y]})};return Object.values(K).forEach(ue=>J(ue)),K},T=(K,W)=>K.map(ne=>{var J;const te=ce.cloneDeep(ne);return(J=te.content)!=null&&J.components&&(te.content={...te.content,components:f({...te.content.components},W)}),te}),L=(K,W,ne)=>{const te=`i18n:${W}`,J=`:i18n:${W}`,ue=y=>{y.custom&&Object.keys(y.custom).forEach(X=>{if(X===te){const ie=y.custom[X];delete y.custom[X],y.custom[`i18n:${ne}`]=ie}else if(X.endsWith(J)){const ie=y.custom[X];delete y.custom[X];const P=X.replace(`:i18n:${W}`,`:i18n:${ne}`);y.custom[P]=ie}})};return Object.values(K).forEach(y=>ue(y)),K},V=(K,W,ne)=>K.map(te=>{var ue;const J=ce.cloneDeep(te);return(ue=J.content)!=null&&ue.components&&(J.content={...J.content,components:L({...J.content.components},W,ne)}),J}),D=async K=>{const{confirmed:W}=await x.actions.openModal({title:"Delete Language",message:"Your translations will be lost , want to proceed ?",type:ye.ModalType.CONFIRM,color:ye.ModalColor.WARNING,icon:"FdWarningDanger"});if(!W)return;m({isocode:K});const ne=T(C,K);x.actions.setTabs(ne);const te={primary:a,supported:r.filter(J=>J.isocode!==K)};u(te),e.includes(K)&&i.setSelectedLanguages(e.filter(J=>J!==K)),te.supported.length===0&&l(!1),K===E&&x.actions.setI18nCurrent("")},B=(K,W)=>{const ne={primary:a===K.isocode?W.isocode:a,supported:r.map(J=>J.isocode===K.isocode?W:J)},te=V(C,K.isocode,W.isocode);x.actions.setTabs(te),E===K.isocode&&x.actions.setI18nCurrent(W.isocode),d(K,W),u(ne),c(W)},j=()=>{k(!1),r.length===0&&l(!1)},$=()=>{t?ye.toastSubject.next({kind:"warning",message:"To add a new locale, please confirm your selection by clicking 'Confirm'"}):k(!0)};return w.jsxs("div",{className:"flex w-72 flex-col space-y-2 px-2 py-3 shrink-0",children:[w.jsxs("div",{className:"flex flex-row justify-between",children:[w.jsxs("div",{className:"flex flex-row items-center justify-center space-x-2 text-sm",children:[w.jsx(st.FdLocalization,{className:"h-4 w-4"}),w.jsx("span",{className:"text-sm",children:"Locales "})]}),w.jsxs("div",{className:"space-x-2",children:[w.jsx(ye.Tip,{tipKey:"editors:i18n:locals",alwaysOn:!0}),w.jsx(yt,{label:"Add new language",container:ft(),children:w.jsx(ut,{"data-cy":"locales-header-add-button",color:"white",variant:"ghost",onClick:$,children:w.jsx(st.FdPlus,{})})})]})]}),w.jsxs("div",{className:"flex px-[5px] justify-between",children:[w.jsxs("div",{"data-cy":"locales-select-all-checkbox",className:Vt("flex items-center justify-center space-x-1",{visible:g,invisible:!g}),children:[w.jsx(wa,{value:n,onChange:A,size:"sm"}),w.jsx("span",{className:"text-xs",children:"Select all"})]}),w.jsxs("div",{className:"flex flex-row items-center justify-center space-x-1",children:[w.jsx(r2,{"data-cy":"localization-export-button",enable:!0,disable:!1,toExport:e}),w.jsx(_2,{"data-cy":"localization-import-button",enable:!0,disable:!1})]})]}),w.jsx(Vg,{activate:t,onConfirm:b,onCancel:j}),w.jsx("div",{style:{height:t?"calc(100vh - 14.75rem)":"calc(100vh - 11.75rem)"},children:w.jsx(hm,{"data-cy":"locales-list",style:{height:"100%",width:"100%"},children:[...r].sort(K=>K.isocode===a?-1:1).map((K,W)=>{const ne=$i(K.isocode,p);return w.jsx(O2,{"data-cy":`locales-list-item-${ne==null?void 0:ne.isocode}`,primary:a,selected:n||e.includes(ne==null?void 0:ne.isocode),lang:ne,onSelect:S,selectMode:_,onRemove:D,onEdit:B},W)})})})]})},R2=({onAddLocal:e})=>w.jsxs(Hn,{depth:1,className:"flex flex-col justify-center items-center space-y-3 pb-[30%] w-full h-full text-inactive-text",children:[w.jsx(st.FdInfoBold,{className:"h-8 w-8"}),w.jsx("span",{className:"text-sm text-center",children:"No locale is available yet. Click on + to add new one."}),w.jsxs(ut,{onClick:e,size:"lg",children:[w.jsx(st.FdPlus,{}),w.jsx("span",{children:"Add new Locale"})]})]}),D2=()=>{var o;const{userLanguages:e,addFirstLanguage:t,setAddFirstLanguage:n}=Bn(),r=(((o=e.supported)==null?void 0:o.length)??0)===0&&!t,a=()=>{n(!0)};return r?w.jsx(R2,{onAddLocal:a}):w.jsxs(Hn,{depth:1,className:Vt("flex flex-row w-full h-full",{"justify-center items-center":r}),children:[w.jsx(L2,{}),w.jsx(Q0,{})]})},zg=()=>w.jsx(Lh,{children:w.jsx(D2,{})}),M2=()=>{const{modals:e,closeModal:t,editModal:n}=Eh();return w.jsx(w.Fragment,{children:e.map((i,r)=>w.jsx(ye.Modal,{hasOverlay:r===0,...i,onClose:t,onEdit:n,container:ft()},i.id))})},zi={keys:{},userLang:{primary:"",supported:[]}},F2=e=>{if(!e)return zi;try{const t=JSON.parse(e);return{keys:(t==null?void 0:t.keys)??zi.keys,userLang:(t==null?void 0:t.userLang)??zi.userLang}}catch{return zi}},j2=({onTabsChange:e,onI18nCurrentChange:t})=>{const n=Vn(),i=(n==null?void 0:n.getTabs())||[],r=n==null?void 0:n.getI18nCurrent();return ye.useDidMountEffect(()=>{e&&e(i)},[e,i]),ye.useDidMountEffect(()=>{t&&r&&t(r)},[t,r]),w.jsxs(w.Fragment,{children:[w.jsx("div",{className:`relative h-screen z-10 overflow-hidden ${lo.LOCALIZATION_EDITOR_SCOPE_CLASS}`,children:w.jsx(zg,{})}),w.jsx(M2,{})]})},V2=({children:e})=>{const t=Vn();return w.jsx(Th,{getSupportedLanguages:n=>(t==null?void 0:t.getSupportedLanguages(n))||Promise.resolve([]),i18nCurrent:t==null?void 0:t.getI18nCurrent(),activeTabPath:t==null?void 0:t.getActiveTabPath(),flagsForActiveTab:t==null?void 0:t.getFlagsByPath(t==null?void 0:t.getActiveTabPath()),children:e})},z2=({userComponents:e,buildResolver:t,supportedLanguages:n,initialValue:i,onChange:r,...a})=>{const o=Sh(e,t,n),[l,u]=M.useState({}),c=M.useRef(zi),p=M.useMemo(()=>F2(i),[i]);return M.useEffect(()=>{c.current=p},[p]),ye.useDidMountEffect(()=>{if(!(!r||ce.isEqual(l,c.current)))try{r==null||r(JSON.stringify(l)),c.current=l}catch{}},[l,r]),w.jsx(ch,{adapter:o,children:w.jsx(_h,{isI18nEnabled:!0,onI18nChange:u,children:w.jsx(V2,{children:w.jsx(ye.TipsProvider,{children:w.jsx(j2,{...a})})})})})},B2=({tabs:e=[],i18nCurrent:t="",initialValue:n,...i})=>w.jsx(kh,{tabs:e,i18nCurrent:t,initialI18nFile:n,children:w.jsx(z2,{initialValue:n,...i})}),H2={supported:[{isocode:"af",locale:"Afrikaans",native:"Afrikaans",flag:"🇿🇦"},{isocode:"af-NA",locale:"Afrikaans (Namibie)",native:"Afrikaans (Namibië)",flag:"🇳🇦"},{isocode:"af-ZA",locale:"Afrikaans (South Africa)",native:"Afrikaans (Suid-Afrika)",flag:"🇿🇦"},{isocode:"agq",locale:"Aghem",native:"Aghem",flag:"🇨🇲"},{isocode:"agq-CM",locale:"Aghem (Cameroun)",native:"Aghem (Kàmàlûŋ)",flag:"🇨🇲"},{isocode:"ak",locale:"Akan",native:"Akan",flag:"🇬🇭"},{isocode:"ak-GH",locale:"Akan (Ghana)",native:"Akan (Gaana)",flag:"🇬🇭"},{isocode:"am",locale:"Amharique",native:"አማርኛ",flag:"🇪🇹"},{isocode:"am-ET",locale:"Amharique (Éthiopie)",native:"አማርኛ (ኢትዮጵያ)",flag:"🇪🇹"},{isocode:"ar",locale:"Arabic",native:"العربية",flag:"🇸🇦"},{isocode:"ar-001",locale:"Arabic (World)",native:"العربية (العالم)",flag:"🌍"},{isocode:"ar-AE",locale:"Arabic (Émirats arabes unis)",native:"العربية (الإمارات العربية المتحدة)",flag:"🇦🇪"},{isocode:"ar-BH",locale:"Arabic (Bahreïn)",native:"العربية (البحرين)",flag:"🇧🇭"},{isocode:"ar-DJ",locale:"Arabic (Djibouti)",native:"العربية (جيبوتي)",flag:"🇩🇯"},{isocode:"ar-DZ",locale:"Arabic (Algérie)",native:"العربية (الجزائر)",flag:"🇩🇿"},{isocode:"ar-EG",locale:"Arabic (Égypte)",native:"العربية (مصر)",flag:"🇪🇬"},{isocode:"ar-EH",locale:"Arabic (Sahara occidental)",native:"العربية (الصحراء الغربية)",flag:"🇪🇭"},{isocode:"ar-ER",locale:"Arabic (Érythrée)",native:"العربية (إريتريا)",flag:"🇪🇷"},{isocode:"ar-IL",locale:"Arabic (Israël)",native:"العربية (إسرائيل)",flag:"🇮🇱"},{isocode:"ar-IQ",locale:"Arabic (Irak)",native:"العربية (العراق)",flag:"🇮🇶"},{isocode:"ar-JO",locale:"Arabic (Jordanie)",native:"العربية (الأردن)",flag:"🇯🇴"},{isocode:"ar-KM",locale:"Arabic (Comores)",native:"العربية (جزر القمر)",flag:"🇰🇲"},{isocode:"ar-KW",locale:"Arabic (Koweït)",native:"العربية (الكويت)",flag:"🇰🇼"},{isocode:"ar-LB",locale:"Arabic (Liban)",native:"العربية (لبنان)",flag:"🇱🇧"},{isocode:"ar-LY",locale:"Arabic (Libye)",native:"العربية (ليبيا)",flag:"🇱🇾"},{isocode:"ar-MA",locale:"Arabic (Maroc)",native:"العربية (المغرب)",flag:"🇲🇦"},{isocode:"ar-MR",locale:"Arabic (Mauritanie)",native:"العربية (موريتانيا)",flag:"🇲🇷"},{isocode:"ar-OM",locale:"Arabic (Oman)",native:"العربية (عُمان)",flag:"🇴🇲"},{isocode:"ar-PS",locale:"Arabic (Territoires palestiniens)",native:"العربية (الأراضي الفلسطينية)",flag:"🇵🇸"},{isocode:"ar-QA",locale:"Arabic (Qatar)",native:"العربية (قطر)",flag:"🇶🇦"},{isocode:"ar-SA",locale:"Arabic (Arabie saoudite)",native:"العربية (المملكة العربية السعودية)",flag:"🇸🇦"},{isocode:"ar-SD",locale:"Arabic (Soudan)",native:"العربية (السودان)",flag:"🇸🇩"},{isocode:"ar-SO",locale:"Arabic (Somalie)",native:"العربية (الصومال)",flag:"🇸🇴"},{isocode:"ar-SS",locale:"Arabic (Soudan du Sud)",native:"العربية (جنوب السودان)",flag:"🇸🇸"},{isocode:"ar-SY",locale:"Arabic (Syrie)",native:"العربية (سوريا)",flag:"🇸🇾"},{isocode:"ar-TD",locale:"Arabic (Tchad)",native:"العربية (تشاد)",flag:"🇹🇩"},{isocode:"ar-TN",locale:"Arabic (Tunisie)",native:"العربية (تونس)",flag:"🇹🇳"},{isocode:"ar-YE",locale:"Arabic (Yémen)",native:"العربية (اليمن)",flag:"🇾🇪"},{isocode:"as",locale:"Assamais",native:"অসমীয়া",flag:"🇮🇳"},{isocode:"as-IN",locale:"Assamais (India)",native:"অসমীয়া (ভারত)",flag:"🇮🇳"},{isocode:"asa",locale:"Assou",native:"Kipare",flag:"🇹🇿"},{isocode:"asa-TZ",locale:"Assou (Tanzanie)",native:"Kipare (Tadhania)",flag:"🇹🇿"},{isocode:"ast",locale:"Asturien",native:"Asturianu",flag:"🇪🇸"},{isocode:"ast-ES",locale:"Asturien (Spain)",native:"Asturianu (España)",flag:"🇪🇸"},{isocode:"az",locale:"Azéri",native:"Azərbaycan",flag:"🇦🇿"},{isocode:"az-Cyrl",locale:"Azéri (cyrillique)",native:"азәрбајҹан (Кирил)",flag:"🇦🇿"},{isocode:"az-Cyrl-AZ",locale:"Azéri (cyrillique, Azerbaïdjan)",native:"азәрбајҹан (Кирил, Азәрбајҹан)",flag:"🇦🇿"},{isocode:"az-Latn",locale:"Azéri (latin)",native:"Azərbaycan (latın)",flag:"🇦🇿"},{isocode:"az-Latn-AZ",locale:"Azéri (latin, Azerbaïdjan)",native:"Azərbaycan (latın, Azərbaycan)",flag:"🇦🇿"},{isocode:"bas",locale:"Bassa",native:"Ɓàsàa",flag:"🇨🇲"},{isocode:"bas-CM",locale:"Bassa (Cameroun)",native:"Ɓàsàa (Kàmɛ̀rûn)",flag:"🇨🇲"},{isocode:"be",locale:"Biélorusse",native:"беларуская",flag:"🇧🇾"},{isocode:"be-BY",locale:"Biélorusse (Biélorussie)",native:"беларуская (Беларусь)",flag:"🇧🇾"},{isocode:"bem",locale:"Bemba",native:"Ichibemba",flag:"🇿🇲"},{isocode:"bem-ZM",locale:"Bemba (Zambie)",native:"Ichibemba (Zambia)",flag:"🇿🇲"},{isocode:"bez",locale:"Béna",native:"Hibena",flag:"🇹🇿"},{isocode:"bez-TZ",locale:"Béna (Tanzanie)",native:"Hibena (Hutanzania)",flag:"🇹🇿"},{isocode:"bg",locale:"Bulgare",native:"български",flag:"🇧🇬"},{isocode:"bg-BG",locale:"Bulgare (Bulgarie)",native:"български (България)",flag:"🇧🇬"},{isocode:"bm",locale:"Bambara",native:"Bamanakan",flag:"🇲🇱"},{isocode:"bm-ML",locale:"Bambara (Mali)",native:"Bamanakan (Mali)",flag:"🇲🇱"},{isocode:"bn",locale:"Bengali",native:"বাংলা",flag:"🇧🇩"},{isocode:"bn-BD",locale:"Bengali (Bangladesh)",native:"বাংলা (বাংলাদেশ)",flag:"🇧🇩"},{isocode:"bn-IN",locale:"Bengali (India)",native:"বাংলা (ভারত)",flag:"🇮🇳"},{isocode:"bo",locale:"Tibétain",native:"བོད་སྐད་",flag:"🇨🇳"},{isocode:"bo-CN",locale:"Tibétain (Chine)",native:"བོད་སྐད་ (རྒྱ་ནག)",flag:"🇨🇳"},{isocode:"bo-IN",locale:"Tibétain (India)",native:"བོད་སྐད་ (རྒྱ་གར་)",flag:"🇮🇳"},{isocode:"br",locale:"Breton",native:"Brezhoneg",flag:"🇫🇷"},{isocode:"br-FR",locale:"Breton (France)",native:"Brezhoneg (Frañs)",flag:"🇫🇷"},{isocode:"brx",locale:"Bodo",native:"बड़ो",flag:"🇮🇳"},{isocode:"brx-IN",locale:"Bodo (India)",native:"बड़ो (भारत)",flag:"🇮🇳"},{isocode:"bs",locale:"Bosniaque",native:"Bosanski",flag:"🇧🇦"},{isocode:"bs-Cyrl",locale:"Bosniaque (cyrillique)",native:"босански (ћирилица)",flag:"🇧🇦"},{isocode:"bs-Cyrl-BA",locale:"Bosniaque (cyrillique, Bosnie-Herzégovine)",native:"босански (ћирилица, Босна и Херцеговина)",flag:"🇧🇦"},{isocode:"bs-Latn",locale:"Bosniaque (latin)",native:"Bosanski (latinica)",flag:"🇧🇦"},{isocode:"bs-Latn-BA",locale:"Bosniaque (latin, Bosnie-Herzégovine)",native:"Bosanski (latinica, Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"ca",locale:"Catalan",native:"Català",flag:"🇪🇸"},{isocode:"ca-AD",locale:"Catalan (Andorre)",native:"Català (Andorra)",flag:"🇦🇩"},{isocode:"ca-ES",locale:"Catalan (Spain)",native:"Català (Espanya)",flag:"🇪🇸"},{isocode:"ca-FR",locale:"Catalan (France)",native:"Català (França)",flag:"🇫🇷"},{isocode:"ca-IT",locale:"Catalan (Italie)",native:"Català (Itàlia)",flag:"🇮🇹"},{isocode:"ccp",locale:"Ccp",native:"𑄌𑄋𑄴𑄟𑄳𑄦",flag:"🇧🇩"},{isocode:"ccp-BD",locale:"Ccp (Bangladesh)",native:"𑄌𑄋𑄴𑄟𑄳𑄦 (𑄝𑄁𑄣𑄘𑄬𑄌𑄴)",flag:"🇧🇩"},{isocode:"ccp-IN",locale:"Ccp (India)",native:"𑄌𑄋𑄴𑄟𑄳𑄦 (𑄞𑄢𑄧𑄖𑄴)",flag:"🇮🇳"},{isocode:"ce",locale:"Tchétchène",native:"нохчийн",flag:"🇷🇺"},{isocode:"ce-RU",locale:"Tchétchène (Russie)",native:"нохчийн (Росси)",flag:"🇷🇺"},{isocode:"cgg",locale:"Kiga",native:"Rukiga",flag:"🇺🇬"},{isocode:"cgg-UG",locale:"Kiga (Ouganda)",native:"Rukiga (Uganda)",flag:"🇺🇬"},{isocode:"chr",locale:"Cherokee",native:"ᏣᎳᎩ",flag:"🇺🇸"},{isocode:"chr-US",locale:"Cherokee (United States)",native:"ᏣᎳᎩ (ᏌᏊ ᎢᏳᎾᎵᏍᏔᏅ ᏍᎦᏚᎩ)",flag:"🇺🇸"},{isocode:"ckb",locale:"Sorani",native:"کوردیی ناوەندی",flag:"🇮🇶"},{isocode:"ckb-IQ",locale:"Sorani (Irak)",native:"کوردیی ناوەندی (عێراق)",flag:"🇮🇶"},{isocode:"ckb-IR",locale:"Sorani (Iran)",native:"کوردیی ناوەندی (ئێران)",flag:"🇮🇷"},{isocode:"cs",locale:"Tchèque",native:"čeština",flag:"🇨🇿"},{isocode:"cs-CZ",locale:"Tchèque (Tchéquie)",native:"čeština (Česko)",flag:"🇨🇿"},{isocode:"cy",locale:"Gallois",native:"Cymraeg",flag:"🏴"},{isocode:"cy-GB",locale:"Gallois (United Kingdom)",native:"Cymraeg (Y Deyrnas Unedig)",flag:"🇬🇧"},{isocode:"da",locale:"Danois",native:"Dansk",flag:"🇩🇰"},{isocode:"da-DK",locale:"Danois (Danemark)",native:"Dansk (Danmark)",flag:"🇩🇰"},{isocode:"da-GL",locale:"Danois (Groenland)",native:"Dansk (Grønland)",flag:"🇬🇱"},{isocode:"dav",locale:"Taita",native:"Kitaita",flag:"🇰🇪"},{isocode:"dav-KE",locale:"Taita (Kenya)",native:"Kitaita (Kenya)",flag:"🇰🇪"},{isocode:"de",locale:"German",native:"Deutsch",flag:"🇩🇪"},{isocode:"de-AT",locale:"German (Autriche)",native:"Deutsch (Österreich)",flag:"🇦🇹"},{isocode:"de-BE",locale:"German (Belgium)",native:"Deutsch (Belgien)",flag:"🇧🇪"},{isocode:"de-CH",locale:"German (Switzerland)",native:"Deutsch (Schweiz)",flag:"🇨🇭"},{isocode:"de-DE",locale:"German (Germany)",native:"Deutsch (Deutschland)",flag:"🇩🇪"},{isocode:"de-IT",locale:"German (Italie)",native:"Deutsch (Italien)",flag:"🇮🇹"},{isocode:"de-LI",locale:"German (Liechtenstein)",native:"Deutsch (Liechtenstein)",flag:"🇱🇮"},{isocode:"de-LU",locale:"German (Luxembourg)",native:"Deutsch (Luxemburg)",flag:"🇱🇺"},{isocode:"dje",locale:"Zarma",native:"Zarmaciine",flag:"🇳🇪"},{isocode:"dje-NE",locale:"Zarma (Niger)",native:"Zarmaciine (Nižer)",flag:"🇳🇪"},{isocode:"dsb",locale:"Bas-sorabe",native:"Dolnoserbšćina",flag:"🇩🇪"},{isocode:"dsb-DE",locale:"Bas-sorabe (Germany)",native:"Dolnoserbšćina (Nimska)",flag:"🇩🇪"},{isocode:"dua",locale:"Douala",native:"Duálá",flag:"🇨🇲"},{isocode:"dua-CM",locale:"Douala (Cameroun)",native:"Duálá (Cameroun)",flag:"🇨🇲"},{isocode:"dyo",locale:"Diola-fogny",native:"Joola",flag:"🇸🇳"},{isocode:"dyo-SN",locale:"Diola-fogny (Sénégal)",native:"Joola (Senegal)",flag:"🇸🇳"},{isocode:"dz",locale:"Dzongkha",native:"རྫོང་ཁ",flag:"🇧🇹"},{isocode:"dz-BT",locale:"Dzongkha (Bhoutan)",native:"རྫོང་ཁ། (འབྲུག།)",flag:"🇧🇹"},{isocode:"ebu",locale:"Embou",native:"Kĩembu",flag:"🇰🇪"},{isocode:"ebu-KE",locale:"Embou (Kenya)",native:"Kĩembu (Kenya)",flag:"🇰🇪"},{isocode:"ee",locale:"Éwé",native:"Eʋegbe",flag:"🇬🇭"},{isocode:"ee-GH",locale:"Éwé (Ghana)",native:"Eʋegbe (Ghana nutome)",flag:"🇬🇭"},{isocode:"ee-TG",locale:"Éwé (Togo)",native:"Eʋegbe (Togo nutome)",flag:"🇹🇬"},{isocode:"el",locale:"Grec",native:"Ελληνικά",flag:"🇬🇷"},{isocode:"el-CY",locale:"Grec (Chypre)",native:"Ελληνικά (Κύπρος)",flag:"🇨🇾"},{isocode:"el-GR",locale:"Grec (Grèce)",native:"Ελληνικά (Ελλάδα)",flag:"🇬🇷"},{isocode:"en",locale:"English",native:"English",flag:"🇬🇧"},{isocode:"en-001",locale:"English (World)",native:"English (World)",flag:"🌍"},{isocode:"en-150",locale:"English (Europe)",native:"English (Europe)",flag:"🇪🇺"},{isocode:"en-AG",locale:"English (Antigua-et-Barbuda)",native:"English (Antigua & Barbuda)",flag:"🇦🇬"},{isocode:"en-AI",locale:"English (Anguilla)",native:"English (Anguilla)",flag:"🇦🇮"},{isocode:"en-AS",locale:"English (Samoa américaines)",native:"English (American Samoa)",flag:"🇦🇸"},{isocode:"en-AT",locale:"English (Autriche)",native:"English (Austria)",flag:"🇦🇹"},{isocode:"en-AU",locale:"English (Australia)",native:"English (Australia)",flag:"🇦🇺"},{isocode:"en-BB",locale:"English (Barbade)",native:"English (Barbados)",flag:"🇧🇧"},{isocode:"en-BE",locale:"English (Belgium)",native:"English (Belgium)",flag:"🇧🇪"},{isocode:"en-BI",locale:"English (Burundi)",native:"English (Burundi)",flag:"🇧🇮"},{isocode:"en-BM",locale:"English (Bermudes)",native:"English (Bermuda)",flag:"🇧🇲"},{isocode:"en-BS",locale:"English (Bahamas)",native:"English (Bahamas)",flag:"🇧🇸"},{isocode:"en-BW",locale:"English (Botswana)",native:"English (Botswana)",flag:"🇧🇼"},{isocode:"en-BZ",locale:"English (Belize)",native:"English (Belize)",flag:"🇧🇿"},{isocode:"en-CA",locale:"English (Canada)",native:"English (Canada)",flag:"🇨🇦"},{isocode:"en-CC",locale:"English (Îles Cocos)",native:"English (Cocos [Keeling] Islands)",flag:"🇨🇨"},{isocode:"en-CH",locale:"English (Switzerland)",native:"English (Switzerland)",flag:"🇨🇭"},{isocode:"en-CK",locale:"English (Îles Cook)",native:"English (Cook Islands)",flag:"🇨🇰"},{isocode:"en-CM",locale:"English (Cameroun)",native:"English (Cameroon)",flag:"🇨🇲"},{isocode:"en-CX",locale:"English (Île Christmas)",native:"English (Christmas Island)",flag:"🇨🇽"},{isocode:"en-CY",locale:"English (Chypre)",native:"English (Cyprus)",flag:"🇨🇾"},{isocode:"en-DE",locale:"English (Germany)",native:"English (Germany)",flag:"🇩🇪"},{isocode:"en-DG",locale:"English (Diego Garcia)",native:"English (Diego Garcia)",flag:"🇩🇬"},{isocode:"en-DK",locale:"English (Danemark)",native:"English (Denmark)",flag:"🇩🇰"},{isocode:"en-DM",locale:"English (Dominique)",native:"English (Dominica)",flag:"🇩🇲"},{isocode:"en-ER",locale:"English (Érythrée)",native:"English (Eritrea)",flag:"🇪🇷"},{isocode:"en-FI",locale:"English (Finlande)",native:"English (Finland)",flag:"🇫🇮"},{isocode:"en-FJ",locale:"English (Fidji)",native:"English (Fiji)",flag:"🇫🇯"},{isocode:"en-FK",locale:"English (Îles Malouines)",native:"English (Falkland Islands)",flag:"🇫🇰"},{isocode:"en-FM",locale:"English (États fédérés de Micronésie)",native:"English (Micronesia)",flag:"🇫🇲"},{isocode:"en-GB",locale:"English (United Kingdom)",native:"English (United Kingdom)",flag:"🇬🇧"},{isocode:"en-GD",locale:"English (Grenade)",native:"English (Grenada)",flag:"🇬🇩"},{isocode:"en-GG",locale:"English (Guernesey)",native:"English (Guernsey)",flag:"🇬🇬"},{isocode:"en-GH",locale:"English (Ghana)",native:"English (Ghana)",flag:"🇬🇭"},{isocode:"en-GI",locale:"English (Gibraltar)",native:"English (Gibraltar)",flag:"🇬🇮"},{isocode:"en-GM",locale:"English (Gambie)",native:"English (Gambia)",flag:"🇬🇲"},{isocode:"en-GU",locale:"English (Guam)",native:"English (Guam)",flag:"🇬🇺"},{isocode:"en-GY",locale:"English (Guyana)",native:"English (Guyana)",flag:"🇬🇾"},{isocode:"en-HK",locale:"English (R.A.S. chinoise de Hong Kong)",native:"English (Hong Kong SAR China)",flag:"🇭🇰"},{isocode:"en-IE",locale:"English (Irlande)",native:"English (Ireland)",flag:"🇮🇪"},{isocode:"en-IL",locale:"English (Israël)",native:"English (Israel)",flag:"🇮🇱"},{isocode:"en-IM",locale:"English (Île de Man)",native:"English (Isle of Man)",flag:"🇮🇲"},{isocode:"en-IN",locale:"English (India)",native:"English (India)",flag:"🇮🇳"},{isocode:"en-IO",locale:"English (Territoire britannique de l'océan Indien)",native:"English (British Indian Ocean Territory)",flag:"🇮🇴"},{isocode:"en-JE",locale:"English (Jersey)",native:"English (Jersey)",flag:"🇯🇪"},{isocode:"en-JM",locale:"English (Jamaïque)",native:"English (Jamaica)",flag:"🇯🇲"},{isocode:"en-KE",locale:"English (Kenya)",native:"English (Kenya)",flag:"🇰🇪"},{isocode:"en-KI",locale:"English (Kiribati)",native:"English (Kiribati)",flag:"🇰🇮"},{isocode:"en-KN",locale:"English (Saint-Christophe-et-Niévès)",native:"English (St. Kitts & Nevis)",flag:"🇰🇳"},{isocode:"en-KY",locale:"English (Îles Caïmans)",native:"English (Cayman Islands)",flag:"🇰🇾"},{isocode:"en-LC",locale:"English (Sainte-Lucie)",native:"English (St. Lucia)",flag:"🇱🇨"},{isocode:"en-LR",locale:"English (Libéria)",native:"English (Liberia)",flag:"🇱🇷"},{isocode:"en-LS",locale:"English (Lesotho)",native:"English (Lesotho)",flag:"🇱🇸"},{isocode:"en-MG",locale:"English (Madagascar)",native:"English (Madagascar)",flag:"🇲🇬"},{isocode:"en-MH",locale:"English (Îles Marshall)",native:"English (Marshall Islands)",flag:"🇲🇭"},{isocode:"en-MO",locale:"English (R.A.S. chinoise de Macao)",native:"English (Macau SAR China)",flag:"🇲🇴"},{isocode:"en-MP",locale:"English (Îles Mariannes du Nord)",native:"English (Northern Mariana Islands)",flag:"🇲🇵"},{isocode:"en-MS",locale:"English (Montserrat)",native:"English (Montserrat)",flag:"🇲🇸"},{isocode:"en-MT",locale:"English (Malte)",native:"English (Malta)",flag:"🇲🇹"},{isocode:"en-MU",locale:"English (Maurice)",native:"English (Mauritius)",flag:"🇲🇺"},{isocode:"en-MW",locale:"English (Malawi)",native:"English (Malawi)",flag:"🇲🇼"},{isocode:"en-MY",locale:"English (Malaisie)",native:"English (Malaysia)",flag:"🇲🇾"},{isocode:"en-NA",locale:"English (Namibie)",native:"English (Namibia)",flag:"🇳🇦"},{isocode:"en-NF",locale:"English (Île Norfolk)",native:"English (Norfolk Island)",flag:"🇳🇫"},{isocode:"en-NG",locale:"English (Nigéria)",native:"English (Nigeria)",flag:"🇳🇬"},{isocode:"en-NL",locale:"English (Pays-Bas)",native:"English (Netherlands)",flag:"🇳🇱"},{isocode:"en-NR",locale:"English (Nauru)",native:"English (Nauru)",flag:"🇳🇷"},{isocode:"en-NU",locale:"English (Niue)",native:"English (Niue)",flag:"🇳🇺"},{isocode:"en-NZ",locale:"English (New Zealand)",native:"English (New Zealand)",flag:"🇳🇿"},{isocode:"en-PG",locale:"English (Papouasie-Nouvelle-Guinée)",native:"English (Papua New Guinea)",flag:"🇵🇬"},{isocode:"en-PH",locale:"English (Philippines)",native:"English (Philippines)",flag:"🇵🇭"},{isocode:"en-PK",locale:"English (Pakistan)",native:"English (Pakistan)",flag:"🇵🇰"},{isocode:"en-PN",locale:"English (Îles Pitcairn)",native:"English (Pitcairn Islands)",flag:"🇵🇳"},{isocode:"en-PR",locale:"English (Porto Rico)",native:"English (Puerto Rico)",flag:"🇵🇷"},{isocode:"en-PW",locale:"English (Palaos)",native:"English (Palau)",flag:"🇵🇼"},{isocode:"en-RW",locale:"English (Rwanda)",native:"English (Rwanda)",flag:"🇷🇼"},{isocode:"en-SB",locale:"English (Îles Salomon)",native:"English (Solomon Islands)",flag:"🇸🇧"},{isocode:"en-SC",locale:"English (Seychelles)",native:"English (Seychelles)",flag:"🇸🇨"},{isocode:"en-SD",locale:"English (Soudan)",native:"English (Sudan)",flag:"🇸🇩"},{isocode:"en-SE",locale:"English (Suède)",native:"English (Sweden)",flag:"🇸🇪"},{isocode:"en-SG",locale:"English (Singapour)",native:"English (Singapore)",flag:"🇸🇬"},{isocode:"en-SH",locale:"English (Sainte-Hélène)",native:"English (St. Helena)",flag:"🇸🇭"},{isocode:"en-SI",locale:"English (Slovénie)",native:"English (Slovenia)",flag:"🇸🇮"},{isocode:"en-SL",locale:"English (Sierra Leone)",native:"English (Sierra Leone)",flag:"🇸🇱"},{isocode:"en-SS",locale:"English (Soudan du Sud)",native:"English (South Sudan)",flag:"🇸🇸"},{isocode:"en-SX",locale:"English (Saint-Martin [partie néerlandaise])",native:"English (Sint Maarten)",flag:"🇸🇽"},{isocode:"en-SZ",locale:"English (Swaziland)",native:"English (Swaziland)",flag:"🇸🇿"},{isocode:"en-TC",locale:"English (Îles Turques-et-Caïques)",native:"English (Turks & Caicos Islands)",flag:"🇹🇨"},{isocode:"en-TK",locale:"English (Tokélaou)",native:"English (Tokelau)",flag:"🇹🇰"},{isocode:"en-TO",locale:"English (Tonga)",native:"English (Tonga)",flag:"🇹🇴"},{isocode:"en-TT",locale:"English (Trinité-et-Tobago)",native:"English (Trinidad & Tobago)",flag:"🇹🇹"},{isocode:"en-TV",locale:"English (Tuvalu)",native:"English (Tuvalu)",flag:"🇹🇻"},{isocode:"en-TZ",locale:"English (Tanzanie)",native:"English (Tanzania)",flag:"🇹🇿"},{isocode:"en-UG",locale:"English (Ouganda)",native:"English (Uganda)",flag:"🇺🇬"},{isocode:"en-UM",locale:"English (Îles mineures éloignées des United States)",native:"English (U.S. Outlying Islands)",flag:"🇺🇲"},{isocode:"en-US",locale:"English (United States)",native:"English (United States)",flag:"🇺🇸"},{isocode:"en-US-POSIX",locale:"English (United States, Computer)",native:"English (United States, Computer)",flag:"💻"},{isocode:"en-VC",locale:"English (Saint-Vincent-et-les-Grenadines)",native:"English (St. Vincent & Grenadines)",flag:"🇻🇨"},{isocode:"en-VG",locale:"English (Îles Vierges britanniques)",native:"English (British Virgin Islands)",flag:"🇻🇬"},{isocode:"en-VI",locale:"English (Îles Vierges des United States)",native:"English (U.S. Virgin Islands)",flag:"🇻🇮"},{isocode:"en-VU",locale:"English (Vanuatu)",native:"English (Vanuatu)",flag:"🇻🇺"},{isocode:"en-WS",locale:"English (Samoa)",native:"English (Samoa)",flag:"🇼🇸"},{isocode:"en-ZA",locale:"English (South Africa)",native:"English (South Africa)",flag:"🇿🇦"},{isocode:"en-ZM",locale:"English (Zambie)",native:"English (Zambia)",flag:"🇿🇲"},{isocode:"en-ZW",locale:"English (Zimbabwe)",native:"English (Zimbabwe)",flag:"🇿🇼"},{isocode:"eo",locale:"Espéranto",native:"Esperanto",flag:"🌍"},{isocode:"es",locale:"Espagnol",native:"Español",flag:"🇪🇸"},{isocode:"es-419",locale:"Espagnol (Latin America)",native:"Español (Latinoamérica)",flag:"🌎"},{isocode:"es-AR",locale:"Espagnol (Argentine)",native:"Español (Argentina)",flag:"🇦🇷"},{isocode:"es-BO",locale:"Espagnol (Bolivie)",native:"Español (Bolivia)",flag:"🇧🇴"},{isocode:"es-BR",locale:"Espagnol (Brazil)",native:"Español (Brasil)",flag:"🇧🇷"},{isocode:"es-BZ",locale:"Espagnol (Belize)",native:"Español (Belice)",flag:"🇧🇿"},{isocode:"es-CL",locale:"Espagnol (Chili)",native:"Español (Chile)",flag:"🇨🇱"},{isocode:"es-CO",locale:"Espagnol (Colombie)",native:"Español (Colombia)",flag:"🇨🇴"},{isocode:"es-CR",locale:"Espagnol (Costa Rica)",native:"Español (Costa Rica)",flag:"🇨🇷"},{isocode:"es-CU",locale:"Espagnol (Cuba)",native:"Español (Cuba)",flag:"🇨🇺"},{isocode:"es-DO",locale:"Espagnol (République dominicaine)",native:"Español (República Dominicana)",flag:"🇩🇴"},{isocode:"es-EA",locale:"Espagnol (Ceuta et Melilla)",native:"Español (Ceuta y Melilla)",flag:"🇪🇦"},{isocode:"es-EC",locale:"Espagnol (Équateur)",native:"Español (Ecuador)",flag:"🇪🇨"},{isocode:"es-ES",locale:"Espagnol (Spain)",native:"Español (España)",flag:"🇪🇸"},{isocode:"es-GQ",locale:"Espagnol (Guinée équatoriale)",native:"Español (Guinea Ecuatorial)",flag:"🇬🇶"},{isocode:"es-GT",locale:"Espagnol (Guatemala)",native:"Español (Guatemala)",flag:"🇬🇹"},{isocode:"es-HN",locale:"Espagnol (Honduras)",native:"Español (Honduras)",flag:"🇭🇳"},{isocode:"es-IC",locale:"Espagnol (Îles Canaries)",native:"Español (Canarias)",flag:"🇮🇨"},{isocode:"es-MX",locale:"Espagnol (Mexico)",native:"Español (México)",flag:"🇲🇽"},{isocode:"es-NI",locale:"Espagnol (Nicaragua)",native:"Español (Nicaragua)",flag:"🇳🇮"},{isocode:"es-PA",locale:"Espagnol (Panama)",native:"Español (Panamá)",flag:"🇵🇦"},{isocode:"es-PE",locale:"Espagnol (Pérou)",native:"Español (Perú)",flag:"🇵🇪"},{isocode:"es-PH",locale:"Espagnol (Philippines)",native:"Español (Filipinas)",flag:"🇵🇭"},{isocode:"es-PR",locale:"Espagnol (Porto Rico)",native:"Español (Puerto Rico)",flag:"🇵🇷"},{isocode:"es-PY",locale:"Espagnol (Paraguay)",native:"Español (Paraguay)",flag:"🇵🇾"},{isocode:"es-SV",locale:"Espagnol (Salvador)",native:"Español (El Salvador)",flag:"🇸🇻"},{isocode:"es-US",locale:"Espagnol (United States)",native:"Español (Estados Unidos)",flag:"🇺🇸"},{isocode:"es-UY",locale:"Espagnol (Uruguay)",native:"Español (Uruguay)",flag:"🇺🇾"},{isocode:"es-VE",locale:"Espagnol (Venezuela)",native:"Español (Venezuela)",flag:"🇻🇪"},{isocode:"et",locale:"Estonien",native:"Eesti",flag:"🇪🇪"},{isocode:"et-EE",locale:"Estonien (Estonie)",native:"Eesti (Eesti)",flag:"🇪🇪"},{isocode:"eu",locale:"Basque",native:"Euskara",flag:"🇪🇸"},{isocode:"eu-ES",locale:"Basque (Spain)",native:"Euskara (Espainia)",flag:"🇪🇸"},{isocode:"ewo",locale:"Éwondo",native:"Ewondo",flag:"🇨🇲"},{isocode:"ewo-CM",locale:"Éwondo (Cameroun)",native:"Ewondo (Kamərún)",flag:"🇨🇲"},{isocode:"fa",locale:"Persan",native:"فارسی",flag:"🇮🇷"},{isocode:"fa-AF",locale:"Persan (Afghanistan)",native:"فارسی (افغانستان)",flag:"🇦🇫"},{isocode:"fa-IR",locale:"Persan (Iran)",native:"فارسی (ایران)",flag:"🇮🇷"},{isocode:"ff",locale:"Peul",native:"Pulaar",flag:"🇸🇳"},{isocode:"ff-CM",locale:"Peul (Cameroun)",native:"Pulaar (Kameruun)",flag:"🇨🇲"},{isocode:"ff-GN",locale:"Peul (Guinée)",native:"Pulaar (Gine)",flag:"🇬🇳"},{isocode:"ff-MR",locale:"Peul (Mauritanie)",native:"Pulaar (Muritani)",flag:"🇲🇷"},{isocode:"ff-SN",locale:"Peul (Sénégal)",native:"Pulaar (Senegaal)",flag:"🇸🇳"},{isocode:"fi",locale:"Finnois",native:"Suomi",flag:"🇫🇮"},{isocode:"fi-FI",locale:"Finnois (Finlande)",native:"Suomi (Suomi)",flag:"🇫🇮"},{isocode:"fil",locale:"Filipino",native:"Filipino",flag:"🇵🇭"},{isocode:"fil-PH",locale:"Filipino (Philippines)",native:"Filipino (Pilipinas)",flag:"🇵🇭"},{isocode:"fo",locale:"Féroïen",native:"Føroyskt",flag:"🇫🇴"},{isocode:"fo-DK",locale:"Féroïen (Danemark)",native:"Føroyskt (Danmark)",flag:"🇩🇰"},{isocode:"fo-FO",locale:"Féroïen (Îles Féroé)",native:"Føroyskt (Føroyar)",flag:"🇫🇴"},{isocode:"fr",locale:"French",native:"Français",flag:"🇫🇷"},{isocode:"fr-BE",locale:"French (Belgium)",native:"Français (Belgique)",flag:"🇧🇪"},{isocode:"fr-BF",locale:"French (Burkina Faso)",native:"Français (Burkina Faso)",flag:"🇧🇫"},{isocode:"fr-BI",locale:"French (Burundi)",native:"Français (Burundi)",flag:"🇧🇮"},{isocode:"fr-BJ",locale:"French (Bénin)",native:"Français (Bénin)",flag:"🇧🇯"},{isocode:"fr-BL",locale:"French (Saint-Barthélemy)",native:"Français (Saint-Barthélemy)",flag:"🇧🇱"},{isocode:"fr-CA",locale:"French (Canada)",native:"Français (Canada)",flag:"🇨🇦"},{isocode:"fr-CD",locale:"French (Congo-Kinshasa)",native:"Français (Congo-Kinshasa)",flag:"🇨🇩"},{isocode:"fr-CF",locale:"French (République centrafricaine)",native:"Français (République centrafricaine)",flag:"🇨🇫"},{isocode:"fr-CG",locale:"French (Congo-Brazzaville)",native:"Français (Congo-Brazzaville)",flag:"🇨🇬"},{isocode:"fr-CH",locale:"French (Switzerland)",native:"Français (Suisse)",flag:"🇨🇭"},{isocode:"fr-CI",locale:"French (Côte d'Ivoire)",native:"Français (Côte d'Ivoire)",flag:"🇨🇮"},{isocode:"fr-CM",locale:"French (Cameroun)",native:"Français (Cameroun)",flag:"🇨🇲"},{isocode:"fr-DJ",locale:"French (Djibouti)",native:"Français (Djibouti)",flag:"🇩🇯"},{isocode:"fr-DZ",locale:"French (Algérie)",native:"Français (Algérie)",flag:"🇩🇿"},{isocode:"fr-FR",locale:"French (France)",native:"Français (France)",flag:"🇫🇷"},{isocode:"fr-GA",locale:"French (Gabon)",native:"Français (Gabon)",flag:"🇬🇦"},{isocode:"fr-GF",locale:"French (Guyane française)",native:"Français (Guyane française)",flag:"🇬🇫"},{isocode:"fr-GN",locale:"French (Guinée)",native:"Français (Guinée)",flag:"🇬🇳"},{isocode:"fr-GP",locale:"French (Guadeloupe)",native:"Français (Guadeloupe)",flag:"🇬🇵"},{isocode:"fr-GQ",locale:"French (Guinée équatoriale)",native:"Français (Guinée équatoriale)",flag:"🇬🇶"},{isocode:"fr-HT",locale:"French (Haïti)",native:"Français (Haïti)",flag:"🇭🇹"},{isocode:"fr-KM",locale:"French (Comores)",native:"Français (Comores)",flag:"🇰🇲"},{isocode:"fr-LU",locale:"French (Luxembourg)",native:"Français (Luxembourg)",flag:"🇱🇺"},{isocode:"fr-MA",locale:"French (Maroc)",native:"Français (Maroc)",flag:"🇲🇦"},{isocode:"fr-MC",locale:"French (Monaco)",native:"Français (Monaco)",flag:"🇲🇨"},{isocode:"fr-MF",locale:"French (Saint-Martin)",native:"Français (Saint-Martin)",flag:"🇲🇫"},{isocode:"fr-MG",locale:"French (Madagascar)",native:"Français (Madagascar)",flag:"🇲🇬"},{isocode:"fr-ML",locale:"French (Mali)",native:"Français (Mali)",flag:"🇲🇱"},{isocode:"fr-MQ",locale:"French (Martinique)",native:"Français (Martinique)",flag:"🇲🇶"},{isocode:"fr-MR",locale:"French (Mauritanie)",native:"Français (Mauritanie)",flag:"🇲🇷"},{isocode:"fr-MU",locale:"French (Maurice)",native:"Français (Maurice)",flag:"🇲🇺"},{isocode:"fr-NC",locale:"French (Nouvelle-Calédonie)",native:"Français (Nouvelle-Calédonie)",flag:"🇳🇨"},{isocode:"fr-NE",locale:"French (Niger)",native:"Français (Niger)",flag:"🇳🇪"},{isocode:"fr-PF",locale:"French (Polynésie française)",native:"Français (Polynésie française)",flag:"🇵🇫"},{isocode:"fr-PM",locale:"French (Saint-Pierre-et-Miquelon)",native:"Français (Saint-Pierre-et-Miquelon)",flag:"🇵🇲"},{isocode:"fr-RE",locale:"French (La Réunion)",native:"Français (La Réunion)",flag:"🇷🇪"},{isocode:"fr-RW",locale:"French (Rwanda)",native:"Français (Rwanda)",flag:"🇷🇼"},{isocode:"fr-SC",locale:"French (Seychelles)",native:"Français (Seychelles)",flag:"🇸🇨"},{isocode:"fr-SN",locale:"French (Sénégal)",native:"Français (Sénégal)",flag:"🇸🇳"},{isocode:"fr-SY",locale:"French (Syrie)",native:"Français (Syrie)",flag:"🇸🇾"},{isocode:"fr-TD",locale:"French (Tchad)",native:"Français (Tchad)",flag:"🇹🇩"},{isocode:"fr-TG",locale:"French (Togo)",native:"Français (Togo)",flag:"🇹🇬"},{isocode:"fr-TN",locale:"French (Tunisie)",native:"Français (Tunisie)",flag:"🇹🇳"},{isocode:"fr-VU",locale:"French (Vanuatu)",native:"Français (Vanuatu)",flag:"🇻🇺"},{isocode:"fr-WF",locale:"French (Wallis-et-Futuna)",native:"Français (Wallis-et-Futuna)",flag:"🇼🇫"},{isocode:"fr-YT",locale:"French (Mayotte)",native:"Français (Mayotte)",flag:"🇾🇹"},{isocode:"fur",locale:"Frioulan",native:"Furlan",flag:"🇮🇹"},{isocode:"fur-IT",locale:"Frioulan (Italie)",native:"Furlan (Italie)",flag:"🇮🇹"},{isocode:"fy",locale:"Frison occidental",native:"Frysk",flag:"🇳🇱"},{isocode:"fy-NL",locale:"Frison occidental (Pays-Bas)",native:"Frysk (Nederlân)",flag:"🇳🇱"},{isocode:"ga",locale:"Irlandais",native:"Gaeilge",flag:"🇮🇪"},{isocode:"ga-IE",locale:"Irlandais (Irlande)",native:"Gaeilge (Éire)",flag:"🇮🇪"},{isocode:"gd",locale:"Gaélique écossais",native:"Gàidhlig",flag:"🏴"},{isocode:"gd-GB",locale:"Gaélique écossais (United Kingdom)",native:"Gàidhlig (An Rìoghachd Aonaichte)",flag:"🇬🇧"},{isocode:"gl",locale:"Galicien",native:"Galego",flag:"🇪🇸"},{isocode:"gl-ES",locale:"Galicien (Spain)",native:"Galego (España)",flag:"🇪🇸"},{isocode:"gsw",locale:"Switzerland German",native:"Schwiizertüütsch",flag:"🇨🇭"},{isocode:"gsw-CH",locale:"Switzerland German (Switzerland)",native:"Schwiizertüütsch (Schwiiz)",flag:"🇨🇭"},{isocode:"gsw-FR",locale:"Switzerland German (France)",native:"Schwiizertüütsch (Frankriich)",flag:"🇫🇷"},{isocode:"gsw-LI",locale:"Switzerland German (Liechtenstein)",native:"Schwiizertüütsch (Liächteschtäi)",flag:"🇱🇮"},{isocode:"gu",locale:"Goudjerati",native:"ગુજરાતી",flag:"🇮🇳"},{isocode:"gu-IN",locale:"Goudjerati (India)",native:"ગુજરાતી (ભારત)",flag:"🇮🇳"},{isocode:"guz",locale:"Gusii",native:"Ekegusii",flag:"🇰🇪"},{isocode:"guz-KE",locale:"Gusii (Kenya)",native:"Ekegusii (Kenya)",flag:"🇰🇪"},{isocode:"gv",locale:"Mannois",native:"Gaelg",flag:"🇮🇲"},{isocode:"gv-IM",locale:"Mannois (Île de Man)",native:"Gaelg (Ellan Vannin)",flag:"🇮🇲"},{isocode:"ha",locale:"Haoussa",native:"Hausa",flag:"🇳🇬"},{isocode:"ha-GH",locale:"Haoussa (Ghana)",native:"Hausa (Gana)",flag:"🇬🇭"},{isocode:"ha-NE",locale:"Haoussa (Niger)",native:"Hausa (Nijar)",flag:"🇳🇪"},{isocode:"ha-NG",locale:"Haoussa (Nigéria)",native:"Hausa (Najeriya)",flag:"🇳🇬"},{isocode:"haw",locale:"Hawaïen",native:"ʻŌlelo Hawaiʻi",flag:"🇺🇸"},{isocode:"haw-US",locale:"Hawaïen (United States)",native:"ʻŌlelo Hawaiʻi (ʻAmelika Hui Pū ʻIa)",flag:"🇺🇸"},{isocode:"he",locale:"Hébreu",native:"עברית",flag:"🇮🇱"},{isocode:"he-IL",locale:"Hébreu (Israël)",native:"עברית (ישראל)",flag:"🇮🇱"},{isocode:"hi",locale:"Hindi",native:"हिन्दी",flag:"🇮🇳"},{isocode:"hi-IN",locale:"Hindi (India)",native:"हिन्दी (भारत)",flag:"🇮🇳"},{isocode:"hr",locale:"Croate",native:"Hrvatski",flag:"🇭🇷"},{isocode:"hr-BA",locale:"Croate (Bosnie-Herzégovine)",native:"Hrvatski (Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"hr-HR",locale:"Croate (Croatie)",native:"Hrvatski (Hrvatska)",flag:"🇭🇷"},{isocode:"hsb",locale:"Haut-sorabe",native:"Hornjoserbšćina",flag:"🇩🇪"},{isocode:"hsb-DE",locale:"Haut-sorabe (Germany)",native:"Hornjoserbšćina (Němska)",flag:"🇩🇪"},{isocode:"hu",locale:"Hongrois",native:"Magyar",flag:"🇭🇺"},{isocode:"hu-HU",locale:"Hongrois (Hongrie)",native:"Magyar (Magyarország)",flag:"🇭🇺"},{isocode:"hy",locale:"Arménien",native:"հայերեն",flag:"🇦🇲"},{isocode:"hy-AM",locale:"Arménien (Arménie)",native:"հայերեն (Հայաստան)",flag:"🇦🇲"},{isocode:"id",locale:"Indonésien",native:"Indonesia",flag:"🇮🇩"},{isocode:"id-ID",locale:"Indonésien (Indonésie)",native:"Indonesia (Indonesia)",flag:"🇮🇩"},{isocode:"ig",locale:"Igbo",native:"Igbo",flag:"🇳🇬"},{isocode:"ig-NG",locale:"Igbo (Nigéria)",native:"Igbo (Naịjịrịa)",flag:"🇳🇬"},{isocode:"ii",locale:"Yi du Sichuan",native:"ꆈꌠꉙ",flag:"🇨🇳"},{isocode:"ii-CN",locale:"Yi du Sichuan (Chine)",native:"ꆈꌠꉙ (ꍏꇩ)",flag:"🇨🇳"},{isocode:"is",locale:"Islandais",native:"íslenska",flag:"🇮🇸"},{isocode:"is-IS",locale:"Islandais (Islande)",native:"íslenska (Ísland)",flag:"🇮🇸"},{isocode:"it",locale:"Italian",native:"Italiano",flag:"🇮🇹"},{isocode:"it-CH",locale:"Italian (Switzerland)",native:"Italiano (Svizzera)",flag:"🇨🇭"},{isocode:"it-IT",locale:"Italian (Italie)",native:"Italiano (Italia)",flag:"🇮🇹"},{isocode:"it-SM",locale:"Italian (Saint-Marin)",native:"Italiano (San Marino)",flag:"🇸🇲"},{isocode:"it-VA",locale:"Italian (État de la Cité du Vatican)",native:"Italiano (Città del Vaticano)",flag:"🇻🇦"},{isocode:"ja",locale:"Japonais",native:"日本語",flag:"🇯🇵"},{isocode:"ja-JP",locale:"Japonais (Japan)",native:"日本語 (日本)",flag:"🇯🇵"},{isocode:"jgo",locale:"Ngomba",native:"Ndaꞌa",flag:"🇨🇲"},{isocode:"jgo-CM",locale:"Ngomba (Cameroun)",native:"Ndaꞌa (Kamɛlûn)",flag:"🇨🇲"},{isocode:"jmc",locale:"Matchamé",native:"Kimachame",flag:"🇹🇿"},{isocode:"jmc-TZ",locale:"Matchamé (Tanzanie)",native:"Kimachame (Tanzania)",flag:"🇹🇿"},{isocode:"ka",locale:"Géorgien",native:"ქართული",flag:"🇬🇪"},{isocode:"ka-GE",locale:"Géorgien (Géorgie)",native:"ქართული (საქართველო)",flag:"🇬🇪"},{isocode:"kab",locale:"Kabyle",native:"Taqbaylit",flag:"🇩🇿"},{isocode:"kab-DZ",locale:"Kabyle (Algérie)",native:"Taqbaylit (Lezzayer)",flag:"🇩🇿"},{isocode:"kam",locale:"Kamba",native:"Kikamba",flag:"🇰🇪"},{isocode:"kam-KE",locale:"Kamba (Kenya)",native:"Kikamba (Kenya)",flag:"🇰🇪"},{isocode:"kde",locale:"Makondé",native:"Chimakonde",flag:"🇹🇿"},{isocode:"kde-TZ",locale:"Makondé (Tanzanie)",native:"Chimakonde (Tanzania)",flag:"🇹🇿"},{isocode:"kea",locale:"Capverdien",native:"Kabuverdianu",flag:"🇨🇻"},{isocode:"kea-CV",locale:"Capverdien (Cap-Vert)",native:"Kabuverdianu (Kabu Verdi)",flag:"🇨🇻"},{isocode:"khq",locale:"Koyra chiini",native:"Koyra ciini",flag:"🇲🇱"},{isocode:"khq-ML",locale:"Koyra chiini (Mali)",native:"Koyra ciini (Maali)",flag:"🇲🇱"},{isocode:"ki",locale:"Kikuyu",native:"Gikuyu",flag:"🇰🇪"},{isocode:"ki-KE",locale:"Kikuyu (Kenya)",native:"Gikuyu (Kenya)",flag:"🇰🇪"},{isocode:"kk",locale:"Kazakh",native:"қазақ тілі",flag:"🇰🇿"},{isocode:"kk-KZ",locale:"Kazakh (Kazakhstan)",native:"қазақ тілі (Қазақстан)",flag:"🇰🇿"},{isocode:"kkj",locale:"Kako",native:"Kakɔ",flag:"🇨🇲"},{isocode:"kkj-CM",locale:"Kako (Cameroun)",native:"Kakɔ (Kamɛrun)",flag:"🇨🇲"},{isocode:"kl",locale:"Groenlandais",native:"Kalaallisut",flag:"🇬🇱"},{isocode:"kl-GL",locale:"Groenlandais (Groenland)",native:"Kalaallisut (Kalaallit Nunaat)",flag:"🇬🇱"},{isocode:"kln",locale:"Kalendjin",native:"Kalenjin",flag:"🇰🇪"},{isocode:"kln-KE",locale:"Kalendjin (Kenya)",native:"Kalenjin (Emetab Kenya)",flag:"🇰🇪"},{isocode:"km",locale:"Khmer",native:"ខ្មែរ",flag:"🇰🇭"},{isocode:"km-KH",locale:"Khmer (Cambodge)",native:"ខ្មែរ (កម្ពុជា)",flag:"🇰🇭"},{isocode:"kn",locale:"Kannada",native:"ಕನ್ನಡ",flag:"🇮🇳"},{isocode:"kn-IN",locale:"Kannada (India)",native:"ಕನ್ನಡ (ಭಾರತ)",flag:"🇮🇳"},{isocode:"ko",locale:"Coréen",native:"한국어",flag:"🇰🇷"},{isocode:"ko-KP",locale:"Coréen (Corée du Nord)",native:"한국어(조선민주주의인민공화국)",flag:"🇰🇵"},{isocode:"ko-KR",locale:"Coréen (Corée du Sud)",native:"한국어(대한민국)",flag:"🇰🇷"},{isocode:"kok",locale:"Konkani",native:"कोंकणी",flag:"🇮🇳"},{isocode:"kok-IN",locale:"Konkani (India)",native:"कोंकणी (भारत)",flag:"🇮🇳"},{isocode:"ks",locale:"Kashmiri",native:"کٲشُر",flag:"🇮🇳"},{isocode:"ks-IN",locale:"Kashmiri (India)",native:"کٲشُر (ہِنٛدوستان)",flag:"🇮🇳"},{isocode:"ksb",locale:"Chambala",native:"Kishambaa",flag:"🇹🇿"},{isocode:"ksb-TZ",locale:"Chambala (Tanzanie)",native:"Kishambaa (Tanzania)",flag:"🇹🇿"},{isocode:"ksf",locale:"Bafia",native:"Rikpa",flag:"🇨🇲"},{isocode:"ksf-CM",locale:"Bafia (Cameroun)",native:"Rikpa (kamɛrún)",flag:"🇨🇲"},{isocode:"ksh",locale:"Francique ripuaire",native:"Kölsch",flag:"🇩🇪"},{isocode:"ksh-DE",locale:"Francique ripuaire (Germany)",native:"Kölsch en Doütschland",flag:"🇩🇪"},{isocode:"kw",locale:"Cornique",native:"Kernewek",flag:"🇬🇧"},{isocode:"kw-GB",locale:"Cornique (United Kingdom)",native:"Kernewek (Rywvaneth Unys)",flag:"🇬🇧"},{isocode:"ky",locale:"Kirghize",native:"кыргызча",flag:"🇰🇬"},{isocode:"ky-KG",locale:"Kirghize (Kirghizistan)",native:"кыргызча (Кыргызстан)",flag:"🇰🇬"},{isocode:"lag",locale:"Langi",native:"Kɨlaangi",flag:"🇹🇿"},{isocode:"lag-TZ",locale:"Langi (Tanzanie)",native:"Kɨlaangi (Taansanía)",flag:"🇹🇿"},{isocode:"lb",locale:"Luxembourgeois",native:"Lëtzebuergesch",flag:"🇱🇺"},{isocode:"lb-LU",locale:"Luxembourgeois (Luxembourg)",native:"Lëtzebuergesch (Lëtzebuerg)",flag:"🇱🇺"},{isocode:"lg",locale:"Ganda",native:"Luganda",flag:"🇺🇬"},{isocode:"lg-UG",locale:"Ganda (Ouganda)",native:"Luganda (Yuganda)",flag:"🇺🇬"},{isocode:"lkt",locale:"Lakota",native:"Lakȟólʼiyapi",flag:"🇺🇸"},{isocode:"lkt-US",locale:"Lakota (United States)",native:"Lakȟólʼiyapi (Mílahaŋska Tȟamákȟočhe)",flag:"🇺🇸"},{isocode:"ln",locale:"Lingala",native:"Lingála",flag:"🇨🇩"},{isocode:"ln-AO",locale:"Lingala (Angola)",native:"Lingála (Angóla)",flag:"🇦🇴"},{isocode:"ln-CD",locale:"Lingala (Congo-Kinshasa)",native:"Lingála (Republíki ya Kongó Demokratíki)",flag:"🇨🇩"},{isocode:"ln-CF",locale:"Lingala (République centrafricaine)",native:"Lingála (Repibiki ya Afríka ya Káti)",flag:"🇨🇫"},{isocode:"ln-CG",locale:"Lingala (Congo-Brazzaville)",native:"Lingála (Kongo)",flag:"🇨🇬"},{isocode:"lo",locale:"Lao",native:"ລາວ",flag:"🇱🇦"},{isocode:"lo-LA",locale:"Lao (Laos)",native:"ລາວ (ລາວ)",flag:"🇱🇦"},{isocode:"lrc",locale:"Lori du Nord",native:"لۊری شومالی",flag:"🇮🇷"},{isocode:"lrc-IQ",locale:"Lori du Nord (Irak)",native:"لۊری شومالی (IQ)",flag:"🇮🇶"},{isocode:"lrc-IR",locale:"Lori du Nord (Iran)",native:"لۊری شومالی (IR)",flag:"🇮🇷"},{isocode:"lt",locale:"Lituanien",native:"Lietuvių",flag:"🇱🇹"},{isocode:"lt-LT",locale:"Lituanien (Lituanie)",native:"Lietuvių (Lietuva)",flag:"🇱🇹"},{isocode:"lu",locale:"Luba-katanga",native:"Tshiluba",flag:"🇨🇩"},{isocode:"lu-CD",locale:"Luba-katanga (Congo-Kinshasa)",native:"Tshiluba (Ditunga wa Kongu)",flag:"🇨🇩"},{isocode:"luo",locale:"Luo",native:"Dholuo",flag:"🇰🇪"},{isocode:"luo-KE",locale:"Luo (Kenya)",native:"Dholuo (Kenya)",flag:"🇰🇪"},{isocode:"luy",locale:"Luhya",native:"Luluhia",flag:"🇰🇪"},{isocode:"luy-KE",locale:"Luhya (Kenya)",native:"Luluhia (Kenya)",flag:"🇰🇪"},{isocode:"lv",locale:"Letton",native:"Latviešu",flag:"🇱🇻"},{isocode:"lv-LV",locale:"Letton (Lettonie)",native:"Latviešu (Latvija)",flag:"🇱🇻"},{isocode:"mas",locale:"Massaï",native:"Maa",flag:"🇰🇪"},{isocode:"mas-KE",locale:"Massaï (Kenya)",native:"Maa (Kenya)",flag:"🇰🇪"},{isocode:"mas-TZ",locale:"Massaï (Tanzanie)",native:"Maa (Tansania)",flag:"🇹🇿"},{isocode:"mer",locale:"Mérou",native:"Kĩmĩrũ",flag:"🇰🇪"},{isocode:"mer-KE",locale:"Mérou (Kenya)",native:"Kĩmĩrũ (Kenya)",flag:"🇰🇪"},{isocode:"mfe",locale:"Créole mauricien",native:"Kreol morisien",flag:"🇲🇺"},{isocode:"mfe-MU",locale:"Créole mauricien (Maurice)",native:"Kreol morisien (Moris)",flag:"🇲🇺"},{isocode:"mg",locale:"Malgache",native:"Malagasy",flag:"🇲🇬"},{isocode:"mg-MG",locale:"Malgache (Madagascar)",native:"Malagasy (Madagasikara)",flag:"🇲🇬"},{isocode:"mgh",locale:"Makhuwa-meetto",native:"Makua",flag:"🇲🇿"},{isocode:"mgh-MZ",locale:"Makhuwa-meetto (Mozambique)",native:"Makua (Umozambiki)",flag:"🇲🇿"},{isocode:"mgo",locale:"Méta'",native:"Metaʼ",flag:"🇨🇲"},{isocode:"mgo-CM",locale:"Méta' (Cameroun)",native:"Metaʼ (Kamalun)",flag:"🇨🇲"},{isocode:"mk",locale:"Macédonien",native:"македонски",flag:"🇲🇰"},{isocode:"mk-MK",locale:"Macédonien (Macédoine)",native:"македонски (Македонија)",flag:"🇲🇰"},{isocode:"ml",locale:"Malayalam",native:"മലയാളം",flag:"🇮🇳"},{isocode:"ml-IN",locale:"Malayalam (India)",native:"മലയാളം (ഇന്ത്യ)",flag:"🇮🇳"},{isocode:"mn",locale:"Mongol",native:"монгол",flag:"🇲🇳"},{isocode:"mn-MN",locale:"Mongol (Mongolie)",native:"монгол (Монгол)",flag:"🇲🇳"},{isocode:"mr",locale:"Marathe",native:"मराठी",flag:"🇮🇳"},{isocode:"mr-IN",locale:"Marathe (India)",native:"मराठी (भारत)",flag:"🇮🇳"},{isocode:"ms",locale:"Malais",native:"Melayu",flag:"🇲🇾"},{isocode:"ms-BN",locale:"Malais (Brunéi Darussalam)",native:"Melayu (Brunei)",flag:"🇧🇳"},{isocode:"ms-MY",locale:"Malais (Malaisie)",native:"Melayu (Malaysia)",flag:"🇲🇾"},{isocode:"ms-SG",locale:"Malais (Singapour)",native:"Melayu (Singapura)",flag:"🇸🇬"},{isocode:"mt",locale:"Maltais",native:"Malti",flag:"🇲🇹"},{isocode:"mt-MT",locale:"Maltais (Malte)",native:"Malti (Malta)",flag:"🇲🇹"},{isocode:"mua",locale:"Moundang",native:"MUNDAŊ",flag:"🇨🇲"},{isocode:"mua-CM",locale:"Moundang (Cameroun)",native:"MUNDAŊ (kameruŋ)",flag:"🇨🇲"},{isocode:"my",locale:"Birman",native:"မြန်မာ",flag:"🇲🇲"},{isocode:"my-MM",locale:"Birman (Myanmar [Birmanie])",native:"မြန်မာ (မြန်မာ)",flag:"🇲🇲"},{isocode:"mzn",locale:"Mazandérani",native:"مازرونی",flag:"🇮🇷"},{isocode:"mzn-IR",locale:"Mazandérani (Iran)",native:"مازرونی (ایران)",flag:"🇮🇷"},{isocode:"naq",locale:"Nama",native:"Khoekhoegowab",flag:"🇳🇦"},{isocode:"naq-NA",locale:"Nama (Namibie)",native:"Khoekhoegowab (Namibiab)",flag:"🇳🇦"},{isocode:"nb",locale:"Norvégien bokmål",native:"Norsk bokmål",flag:"🇳🇴"},{isocode:"nb-NO",locale:"Norvégien bokmål (Norvège)",native:"Norsk bokmål (Norge)",flag:"🇳🇴"},{isocode:"nb-SJ",locale:"Norvégien bokmål (Svalbard et Jan Mayen)",native:"Norsk bokmål (Svalbard og Jan Mayen)",flag:"🇸🇯"},{isocode:"nd",locale:"Ndébélé du Nord",native:"IsiNdebele",flag:"🇿🇼"},{isocode:"nd-ZW",locale:"Ndébélé du Nord (Zimbabwe)",native:"IsiNdebele (Zimbabwe)",flag:"🇿🇼"},{isocode:"nds",locale:"Bas-German",native:"Nds",flag:"🇩🇪"},{isocode:"nds-DE",locale:"Bas-German (Germany)",native:"Nds (DE)",flag:"🇩🇪"},{isocode:"nds-NL",locale:"Bas-German (Pays-Bas)",native:"Nds (NL)",flag:"🇳🇱"},{isocode:"ne",locale:"Népalais",native:"नेपाली",flag:"🇳🇵"},{isocode:"ne-IN",locale:"Népalais (India)",native:"नेपाली (भारत)",flag:"🇮🇳"},{isocode:"ne-NP",locale:"Népalais (Népal)",native:"नेपाली (नेपाल)",flag:"🇳🇵"},{isocode:"nl",locale:"Néerlandais",native:"Nederlands",flag:"🇳🇱"},{isocode:"nl-AW",locale:"Néerlandais (Aruba)",native:"Nederlands (Aruba)",flag:"🇦🇼"},{isocode:"nl-BE",locale:"Néerlandais (Belgium)",native:"Nederlands (België)",flag:"🇧🇪"},{isocode:"nl-BQ",locale:"Néerlandais (Pays-Bas caribéens)",native:"Nederlands (Caribisch Nederland)",flag:"🇧🇶"},{isocode:"nl-CW",locale:"Néerlandais (Curaçao)",native:"Nederlands (Curaçao)",flag:"🇨🇼"},{isocode:"nl-NL",locale:"Néerlandais (Pays-Bas)",native:"Nederlands (Nederland)",flag:"🇳🇱"},{isocode:"nl-SR",locale:"Néerlandais (Suriname)",native:"Nederlands (Suriname)",flag:"🇸🇷"},{isocode:"nl-SX",locale:"Néerlandais (Saint-Martin [partie néerlandaise])",native:"Nederlands (Sint-Maarten)",flag:"🇸🇽"},{isocode:"nmg",locale:"Kwasio",native:"Nmg",flag:"🇨🇲"},{isocode:"nmg-CM",locale:"Kwasio (Cameroun)",native:"Nmg (Kamerun)",flag:"🇨🇲"},{isocode:"nn",locale:"Norvégien nynorsk",native:"Nynorsk",flag:"🇳🇴"},{isocode:"nn-NO",locale:"Norvégien nynorsk (Norvège)",native:"Nynorsk (Noreg)",flag:"🇳🇴"},{isocode:"nnh",locale:"Ngiemboon",native:"Shwóŋò ngiembɔɔn",flag:"🇨🇲"},{isocode:"nnh-CM",locale:"Ngiemboon (Cameroun)",native:"Shwóŋò ngiembɔɔn (Kàmalûm)",flag:"🇨🇲"},{isocode:"nus",locale:"Nuer",native:"Thok Nath",flag:"🇸🇸"},{isocode:"nus-SS",locale:"Nuer (Soudan du Sud)",native:"Thok Nath (SS)",flag:"🇸🇸"},{isocode:"nyn",locale:"Nyankolé",native:"Runyankore",flag:"🇺🇬"},{isocode:"nyn-UG",locale:"Nyankolé (Ouganda)",native:"Runyankore (Uganda)",flag:"🇺🇬"},{isocode:"om",locale:"Oromo",native:"Oromoo",flag:"🇪🇹"},{isocode:"om-ET",locale:"Oromo (Éthiopie)",native:"Oromoo (Itoophiyaa)",flag:"🇪🇹"},{isocode:"om-KE",locale:"Oromo (Kenya)",native:"Oromoo (Keeniyaa)",flag:"🇰🇪"},{isocode:"or",locale:"Oriya",native:"ଓଡ଼ିଆ",flag:"🇮🇳"},{isocode:"or-IN",locale:"Oriya (India)",native:"ଓଡ଼ିଆ (ଭାରତ)",flag:"🇮🇳"},{isocode:"os",locale:"Ossète",native:"ирон",flag:"🇬🇪"},{isocode:"os-GE",locale:"Ossète (Géorgie)",native:"ирон (Гуырдзыстон)",flag:"🇬🇪"},{isocode:"os-RU",locale:"Ossète (Russie)",native:"ирон (Уӕрӕсе)",flag:"🇷🇺"},{isocode:"pa",locale:"Pendjabi",native:"ਪੰਜਾਬੀ",flag:"🇮🇳"},{isocode:"pa-Arab",locale:"Pendjabi (Arabic)",native:"پنجابی (عربی)",flag:"🇵🇰"},{isocode:"pa-Arab-PK",locale:"Pendjabi (Arabic, Pakistan)",native:"پنجابی (عربی, پاکستان)",flag:"🇵🇰"},{isocode:"pa-Guru",locale:"Pendjabi (gourmoukhî)",native:"ਪੰਜਾਬੀ (ਗੁਰਮੁਖੀ)",flag:"🇮🇳"},{isocode:"pa-Guru-IN",locale:"Pendjabi (gourmoukhî, India)",native:"ਪੰਜਾਬੀ (ਗੁਰਮੁਖੀ, ਭਾਰਤ)",flag:"🇮🇳"},{isocode:"pl",locale:"Polonais",native:"Polski",flag:"🇵🇱"},{isocode:"pl-PL",locale:"Polonais (Pologne)",native:"Polski (Polska)",flag:"🇵🇱"},{isocode:"ps",locale:"Pachto",native:"پښتو",flag:"🇦🇫"},{isocode:"ps-AF",locale:"Pachto (Afghanistan)",native:"پښتو (افغانستان)",flag:"🇦🇫"},{isocode:"pt",locale:"Portugais",native:"Português",flag:"🇵🇹"},{isocode:"pt-AO",locale:"Portugais (Angola)",native:"Português (Angola)",flag:"🇦🇴"},{isocode:"pt-BR",locale:"Portugais (Brazil)",native:"Português (Brasil)",flag:"🇧🇷"},{isocode:"pt-CH",locale:"Portugais (Switzerland)",native:"Português (Suíça)",flag:"🇨🇭"},{isocode:"pt-CV",locale:"Portugais (Cap-Vert)",native:"Português (Cabo Verde)",flag:"🇨🇻"},{isocode:"pt-GQ",locale:"Portugais (Guinée équatoriale)",native:"Português (Guiné Equatorial)",flag:"🇬🇶"},{isocode:"pt-GW",locale:"Portugais (Guinée-Bissau)",native:"Português (Guiné-Bissau)",flag:"🇬🇼"},{isocode:"pt-LU",locale:"Portugais (Luxembourg)",native:"Português (Luxemburgo)",flag:"🇱🇺"},{isocode:"pt-MO",locale:"Portugais (R.A.S. chinoise de Macao)",native:"Português (Macau, RAE da China)",flag:"🇲🇴"},{isocode:"pt-MZ",locale:"Portugais (Mozambique)",native:"Português (Moçambique)",flag:"🇲🇿"},{isocode:"pt-PT",locale:"Portugais (Portugal)",native:"Português (Portugal)",flag:"🇵🇹"},{isocode:"pt-ST",locale:"Portugais (Sao Tomé-et-Principe)",native:"Português (São Tomé e Príncipe)",flag:"🇸🇹"},{isocode:"pt-TL",locale:"Portugais (Timor oriental)",native:"Português (Timor-Leste)",flag:"🇹🇱"},{isocode:"qu",locale:"Quechua",native:"Runasimi",flag:"🇵🇪"},{isocode:"qu-BO",locale:"Quechua (Bolivie)",native:"Runasimi (Bolivia)",flag:"🇧🇴"},{isocode:"qu-EC",locale:"Quechua (Équateur)",native:"Runasimi (Ecuador)",flag:"🇪🇨"},{isocode:"qu-PE",locale:"Quechua (Pérou)",native:"Runasimi (Perú)",flag:"🇵🇪"},{isocode:"rm",locale:"Romanche",native:"Rumantsch",flag:"🇨🇭"},{isocode:"rm-CH",locale:"Romanche (Switzerland)",native:"Rumantsch (Svizra)",flag:"🇨🇭"},{isocode:"rn",locale:"Roundi",native:"Ikirundi",flag:"🇧🇮"},{isocode:"rn-BI",locale:"Roundi (Burundi)",native:"Ikirundi (Uburundi)",flag:"🇧🇮"},{isocode:"ro",locale:"Roumain",native:"Română",flag:"🇷🇴"},{isocode:"ro-MD",locale:"Roumain (Moldavie)",native:"Română (Republica Moldova)",flag:"🇲🇩"},{isocode:"ro-RO",locale:"Roumain (Roumanie)",native:"Română (România)",flag:"🇷🇴"},{isocode:"rof",locale:"Rombo",native:"Kihorombo",flag:"🇹🇿"},{isocode:"rof-TZ",locale:"Rombo (Tanzanie)",native:"Kihorombo (Tanzania)",flag:"🇹🇿"},{isocode:"ru",locale:"Russe",native:"русский",flag:"🇷🇺"},{isocode:"ru-BY",locale:"Russe (Biélorussie)",native:"русский (Беларусь)",flag:"🇧🇾"},{isocode:"ru-KG",locale:"Russe (Kirghizistan)",native:"русский (Киргизия)",flag:"🇰🇬"},{isocode:"ru-KZ",locale:"Russe (Kazakhstan)",native:"русский (Казахстан)",flag:"🇰🇿"},{isocode:"ru-MD",locale:"Russe (Moldavie)",native:"русский (Молдова)",flag:"🇲🇩"},{isocode:"ru-RU",locale:"Russe (Russie)",native:"русский (Россия)",flag:"🇷🇺"},{isocode:"ru-UA",locale:"Russe (Ukraine)",native:"русский (Украина)",flag:"🇺🇦"},{isocode:"rw",locale:"Rwanda",native:"Kinyarwanda",flag:"🇷🇼"},{isocode:"rw-RW",locale:"Rwanda (Rwanda)",native:"Kinyarwanda (U Rwanda)",flag:"🇷🇼"},{isocode:"rwk",locale:"Rwa",native:"Kiruwa",flag:"🇹🇿"},{isocode:"rwk-TZ",locale:"Rwa (Tanzanie)",native:"Kiruwa (Tanzania)",flag:"🇹🇿"},{isocode:"sah",locale:"Iakoute",native:"саха тыла",flag:"🇷🇺"},{isocode:"sah-RU",locale:"Iakoute (Russie)",native:"саха тыла (Арассыыйа)",flag:"🇷🇺"},{isocode:"saq",locale:"Sambourou",native:"Kisampur",flag:"🇰🇪"},{isocode:"saq-KE",locale:"Sambourou (Kenya)",native:"Kisampur (Kenya)",flag:"🇰🇪"},{isocode:"sbp",locale:"Sangu",native:"Ishisangu",flag:"🇹🇿"},{isocode:"sbp-TZ",locale:"Sangu (Tanzanie)",native:"Ishisangu (Tansaniya)",flag:"🇹🇿"},{isocode:"se",locale:"Sami du Nord",native:"Davvisámegiella",flag:"🇳🇴"},{isocode:"se-FI",locale:"Sami du Nord (Finlande)",native:"Davvisámegiella (Suopma)",flag:"🇫🇮"},{isocode:"se-NO",locale:"Sami du Nord (Norvège)",native:"Davvisámegiella (Norga)",flag:"🇳🇴"},{isocode:"se-SE",locale:"Sami du Nord (Suède)",native:"Davvisámegiella (Ruoŧŧa)",flag:"🇸🇪"},{isocode:"seh",locale:"Cisena",native:"Sena",flag:"🇲🇿"},{isocode:"seh-MZ",locale:"Cisena (Mozambique)",native:"Sena (Moçambique)",flag:"🇲🇿"},{isocode:"ses",locale:"Koyraboro senni",native:"Koyraboro senni",flag:"🇲🇱"},{isocode:"ses-ML",locale:"Koyraboro senni (Mali)",native:"Koyraboro senni (Maali)",flag:"🇲🇱"},{isocode:"sg",locale:"Sangho",native:"Sängö",flag:"🇨🇫"},{isocode:"sg-CF",locale:"Sangho (République centrafricaine)",native:"Sängö (Ködörösêse tî Bêafrîka)",flag:"🇨🇫"},{isocode:"shi",locale:"Chleuh",native:"ⵜⴰⵛⵍⵃⵉⵜ",flag:"🇲🇦"},{isocode:"shi-Latn",locale:"Chleuh (latin)",native:"Tashelḥiyt (Latn)",flag:"🇲🇦"},{isocode:"shi-Latn-MA",locale:"Chleuh (latin, Maroc)",native:"Tashelḥiyt (Latn, lmɣrib)",flag:"🇲🇦"},{isocode:"shi-Tfng",locale:"Chleuh (tifinagh)",native:"ⵜⴰⵛⵍⵃⵉⵜ (Tfng)",flag:"🇲🇦"},{isocode:"shi-Tfng-MA",locale:"Chleuh (tifinagh, Maroc)",native:"ⵜⴰⵛⵍⵃⵉⵜ (Tfng, ⵍⵎⵖⵔⵉⴱ)",flag:"🇲🇦"},{isocode:"si",locale:"Cinghalais",native:"සිංහල",flag:"🇱🇰"},{isocode:"si-LK",locale:"Cinghalais (Sri Lanka)",native:"සිංහල (ශ්රී ලංකාව)",flag:"🇱🇰"},{isocode:"sk",locale:"Slovaque",native:"Slovenčina",flag:"🇸🇰"},{isocode:"sk-SK",locale:"Slovaque (Slovaquie)",native:"Slovenčina (Slovensko)",flag:"🇸🇰"},{isocode:"sl",locale:"Slovène",native:"Slovenščina",flag:"🇸🇮"},{isocode:"sl-SI",locale:"Slovène (Slovénie)",native:"Slovenščina (Slovenija)",flag:"🇸🇮"},{isocode:"smn",locale:"Sami d'Inari",native:"Anarâškielâ",flag:"🇫🇮"},{isocode:"smn-FI",locale:"Sami d'Inari (Finlande)",native:"Anarâškielâ (Suomâ)",flag:"🇫🇮"},{isocode:"sn",locale:"Shona",native:"ChiShona",flag:"🇿🇼"},{isocode:"sn-ZW",locale:"Shona (Zimbabwe)",native:"ChiShona (Zimbabwe)",flag:"🇿🇼"},{isocode:"so",locale:"Somali",native:"Soomaali",flag:"🇸🇴"},{isocode:"so-DJ",locale:"Somali (Djibouti)",native:"Soomaali (Jabuuti)",flag:"🇩🇯"},{isocode:"so-ET",locale:"Somali (Éthiopie)",native:"Soomaali (Itoobiya)",flag:"🇪🇹"},{isocode:"so-KE",locale:"Somali (Kenya)",native:"Soomaali (Kiiniya)",flag:"🇰🇪"},{isocode:"so-SO",locale:"Somali (Somalie)",native:"Soomaali (Soomaaliya)",flag:"🇸🇴"},{isocode:"sq",locale:"Albanais",native:"Shqip",flag:"🇦🇱"},{isocode:"sq-AL",locale:"Albanais (Albanie)",native:"Shqip (Shqipëri)",flag:"🇦🇱"},{isocode:"sq-MK",locale:"Albanais (Macédoine)",native:"Shqip (Maqedoni)",flag:"🇲🇰"},{isocode:"sq-XK",locale:"Albanais (Kosovo)",native:"Shqip (Kosovë)",flag:"🇽🇰"},{isocode:"sr",locale:"Serbe",native:"српски",flag:"🇷🇸"},{isocode:"sr-Cyrl",locale:"Serbe (cyrillique)",native:"српски (ћирилица)",flag:"🇷🇸"},{isocode:"sr-Cyrl-BA",locale:"Serbe (cyrillique, Bosnie-Herzégovine)",native:"српски (ћирилица, Босна и Херцеговина)",flag:"🇧🇦"},{isocode:"sr-Cyrl-ME",locale:"Serbe (cyrillique, Monténégro)",native:"српски (ћирилица, Црна Гора)",flag:"🇲🇪"},{isocode:"sr-Cyrl-RS",locale:"Serbe (cyrillique, Serbie)",native:"српски (ћирилица, Србија)",flag:"🇷🇸"},{isocode:"sr-Cyrl-XK",locale:"Serbe (cyrillique, Kosovo)",native:"српски (ћирилица, Косово)",flag:"🇽🇰"},{isocode:"sr-Latn",locale:"Serbe (latin)",native:"Srpski (latinica)",flag:"🇷🇸"},{isocode:"sr-Latn-BA",locale:"Serbe (latin, Bosnie-Herzégovine)",native:"Srpski (latinica, Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"sr-Latn-ME",locale:"Serbe (latin, Monténégro)",native:"Srpski (latinica, Crna Gora)",flag:"🇲🇪"},{isocode:"sr-Latn-RS",locale:"Serbe (latin, Serbie)",native:"Srpski (latinica, Srbija)",flag:"🇷🇸"},{isocode:"sr-Latn-XK",locale:"Serbe (latin, Kosovo)",native:"Srpski (latinica, Kosovo)",flag:"🇽🇰"},{isocode:"sv",locale:"Suédois",native:"Svenska",flag:"🇸🇪"},{isocode:"sv-AX",locale:"Suédois (Îles Åland)",native:"Svenska (Åland)",flag:"🇦🇽"},{isocode:"sv-FI",locale:"Suédois (Finlande)",native:"Svenska (Finland)",flag:"🇫🇮"},{isocode:"sv-SE",locale:"Suédois (Suède)",native:"Svenska (Sverige)",flag:"🇸🇪"},{isocode:"sw",locale:"Swahili",native:"Kiswahili",flag:"🇹🇿"},{isocode:"sw-CD",locale:"Swahili (Congo-Kinshasa)",native:"Kiswahili (Jamhuri ya Kidemokrasia ya Kongo)",flag:"🇨🇩"},{isocode:"sw-KE",locale:"Swahili (Kenya)",native:"Kiswahili (Kenya)",flag:"🇰🇪"},{isocode:"sw-TZ",locale:"Swahili (Tanzanie)",native:"Kiswahili (Tanzania)",flag:"🇹🇿"},{isocode:"sw-UG",locale:"Swahili (Ouganda)",native:"Kiswahili (Uganda)",flag:"🇺🇬"},{isocode:"ta",locale:"Tamoul",native:"தமிழ்",flag:"🇱🇰"},{isocode:"ta-IN",locale:"Tamoul (India)",native:"தமிழ் (இந்தியா)",flag:"🇮🇳"},{isocode:"ta-LK",locale:"Tamoul (Sri Lanka)",native:"தமிழ் (இலங்கை)",flag:"🇱🇰"},{isocode:"ta-MY",locale:"Tamoul (Malaisie)",native:"தமிழ் (மலேசியா)",flag:"🇲🇾"},{isocode:"ta-SG",locale:"Tamoul (Singapour)",native:"தமிழ் (சிங்கப்பூர்)",flag:"🇸🇬"},{isocode:"te",locale:"Télougou",native:"తెలుగు",flag:"🇮🇳"},{isocode:"te-IN",locale:"Télougou (India)",native:"తెలుగు (భారతదేశం)",flag:"🇮🇳"},{isocode:"teo",locale:"Teso",native:"Kiteso",flag:"🇺🇬"},{isocode:"teo-KE",locale:"Teso (Kenya)",native:"Kiteso (Kenia)",flag:"🇰🇪"},{isocode:"teo-UG",locale:"Teso (Ouganda)",native:"Kiteso (Uganda)",flag:"🇺🇬"},{isocode:"tg",locale:"Tadjik",native:"тоҷикӣ",flag:"🇹🇯"},{isocode:"tg-TJ",locale:"Tadjik (Tadjikistan)",native:"тоҷикӣ (Тоҷикистон)",flag:"🇹🇯"},{isocode:"th",locale:"Thaï",native:"ไทย",flag:"🇹🇭"},{isocode:"th-TH",locale:"Thaï (Thaïlande)",native:"ไทย (ไทย)",flag:"🇹🇭"},{isocode:"ti",locale:"Tigrigna",native:"ትግርኛ",flag:"🇪🇷"},{isocode:"ti-ER",locale:"Tigrigna (Érythrée)",native:"ትግርኛ (ኤርትራ)",flag:"🇪🇷"},{isocode:"ti-ET",locale:"Tigrigna (Éthiopie)",native:"ትግርኛ (ኢትዮጵያ)",flag:"🇪🇹"},{isocode:"to",locale:"Tonguien",native:"Lea fakatonga",flag:"🇹🇴"},{isocode:"to-TO",locale:"Tonguien (Tonga)",native:"Lea fakatonga (Tonga)",flag:"🇹🇴"},{isocode:"tr",locale:"Turc",native:"Türkçe",flag:"🇹🇷"},{isocode:"tr-CY",locale:"Turc (Chypre)",native:"Türkçe (Kıbrıs)",flag:"🇨🇾"},{isocode:"tr-TR",locale:"Turc (Turquie)",native:"Türkçe (Türkiye)",flag:"🇹🇷"},{isocode:"tt",locale:"Tatar",native:"татар",flag:"🇷🇺"},{isocode:"tt-RU",locale:"Tatar (Russie)",native:"татар (Россия)",flag:"🇷🇺"},{isocode:"twq",locale:"Tasawaq",native:"Tasawaq senni",flag:"🇳🇪"},{isocode:"twq-NE",locale:"Tasawaq (Niger)",native:"Tasawaq senni (Nižer)",flag:"🇳🇪"},{isocode:"tzm",locale:"Amazighe de l'Atlas central",native:"Tamaziɣt n laṭlaṣ",flag:"🇲🇦"},{isocode:"tzm-MA",locale:"Amazighe de l'Atlas central (Maroc)",native:"Tamaziɣt n laṭlaṣ (Meṛṛuk)",flag:"🇲🇦"},{isocode:"ug",locale:"Ouïghour",native:"ئۇيغۇرچە",flag:"🇨🇳"},{isocode:"ug-CN",locale:"Ouïghour (Chine)",native:"ئۇيغۇرچە (جۇڭگو)",flag:"🇨🇳"},{isocode:"uk",locale:"Ukrainien",native:"українська",flag:"🇺🇦"},{isocode:"uk-UA",locale:"Ukrainien (Ukraine)",native:"українська (Україна)",flag:"🇺🇦"},{isocode:"ur",locale:"Ourdou",native:"اردو",flag:"🇵🇰"},{isocode:"ur-IN",locale:"Ourdou (India)",native:"اردو (بھارت)",flag:"🇮🇳"},{isocode:"ur-PK",locale:"Ourdou (Pakistan)",native:"اردو (پاکستان)",flag:"🇵🇰"},{isocode:"uz",locale:"Ouzbek",native:"O‘zbek",flag:"🇺🇿"},{isocode:"uz-Arab",locale:"Ouzbek (Arabic)",native:"اوزبیک (عربی)",flag:"🇦🇫"},{isocode:"uz-Arab-AF",locale:"Ouzbek (Arabic, Afghanistan)",native:"اوزبیک (عربی, افغانستان)",flag:"🇦🇫"},{isocode:"uz-Cyrl",locale:"Ouzbek (cyrillique)",native:"ўзбекча (Кирил)",flag:"🇺🇿"},{isocode:"uz-Cyrl-UZ",locale:"Ouzbek (cyrillique, Ouzbékistan)",native:"ўзбекча (Кирил, Ўзбекистон)",flag:"🇺🇿"},{isocode:"uz-Latn",locale:"Ouzbek (latin)",native:"O‘zbek (lotin)",flag:"🇺🇿"},{isocode:"uz-Latn-UZ",locale:"Ouzbek (latin, Ouzbékistan)",native:"O‘zbek (lotin, Oʻzbekiston)",flag:"🇺🇿"},{isocode:"vai",locale:"Vaï",native:"ꕙꔤ",flag:"🇱🇷"},{isocode:"vai-Latn",locale:"Vaï (latin)",native:"Vai (Latn)",flag:"🇱🇷"},{isocode:"vai-Latn-LR",locale:"Vaï (latin, Libéria)",native:"Vai (Latn, Laibhiya)",flag:"🇱🇷"},{isocode:"vai-Vaii",locale:"Vaï (vaï)",native:"ꕙꔤ (Vaii)",flag:"🇱🇷"},{isocode:"vai-Vaii-LR",locale:"Vaï (vaï, Libéria)",native:"ꕙꔤ (Vaii, ꕞꔤꔫꕩ)",flag:"🇱🇷"},{isocode:"vi",locale:"Vietnamien",native:"Tiếng Việt",flag:"🇻🇳"},{isocode:"vi-VN",locale:"Vietnamien (Vietnam)",native:"Tiếng Việt (Việt Nam)",flag:"🇻🇳"},{isocode:"vun",locale:"Vunjo",native:"Kyivunjo",flag:"🇹🇿"},{isocode:"vun-TZ",locale:"Vunjo (Tanzanie)",native:"Kyivunjo (Tanzania)",flag:"🇹🇿"},{isocode:"wae",locale:"Walser",native:"Walser",flag:"🇨🇭"},{isocode:"wae-CH",locale:"Walser (Switzerland)",native:"Walser (Schwiz)",flag:"🇨🇭"},{isocode:"wo",locale:"Wolof",native:"Wolof",flag:"🇸🇳"},{isocode:"wo-SN",locale:"Wolof (Sénégal)",native:"Wolof (Senegaal)",flag:"🇸🇳"},{isocode:"xog",locale:"Soga",native:"Olusoga",flag:"🇺🇬"},{isocode:"xog-UG",locale:"Soga (Ouganda)",native:"Olusoga (Yuganda)",flag:"🇺🇬"},{isocode:"yav",locale:"Yangben",native:"Nuasue",flag:"🇨🇲"},{isocode:"yav-CM",locale:"Yangben (Cameroun)",native:"Nuasue (Kemelún)",flag:"🇨🇲"},{isocode:"yi",locale:"Yiddish",native:"ייִדיש",flag:"🏳️"},{isocode:"yi-001",locale:"Yiddish (World)",native:"ייִדיש (וועלט)",flag:"🏳️"},{isocode:"yo",locale:"Yoruba",native:"Èdè Yorùbá",flag:"🇳🇬"},{isocode:"yo-BJ",locale:"Yoruba (Bénin)",native:"Èdè Yorùbá (Orílɛ́ède Bɛ̀nɛ̀)",flag:"🇧🇯"},{isocode:"yo-NG",locale:"Yoruba (Nigéria)",native:"Èdè Yorùbá (Orílẹ́ède Nàìjíríà)",flag:"🇳🇬"},{isocode:"yue",locale:"Cantonais",native:"粵語",flag:"🇭🇰"},{isocode:"yue-Hans",locale:"Cantonais (simplifié)",native:"粤语 (简体)",flag:"🇨🇳"},{isocode:"yue-Hans-CN",locale:"Cantonais (simplifié, Chine)",native:"粤语 (简体,中华人民共和国)",flag:"🇨🇳"},{isocode:"yue-Hant",locale:"Cantonais (traditionnel)",native:"粵語 (繁體)",flag:"🇭🇰"},{isocode:"yue-Hant-HK",locale:"Cantonais (traditionnel, R.A.S. chinoise de Hong Kong)",native:"粵語 (繁體,中華人民共和國香港特別行政區)",flag:"🇭🇰"},{isocode:"zgh",locale:"Amazighe standard marocain",native:"ⵜⴰⵎⴰⵣⵉⵖⵜ",flag:"🇲🇦"},{isocode:"zgh-MA",locale:"Amazighe standard marocain (Maroc)",native:"ⵜⴰⵎⴰⵣⵉⵖⵜ (ⵍⵎⵖⵔⵉⴱ)",flag:"🇲🇦"},{isocode:"zh",locale:"Chinese",native:"中文",flag:"🇨🇳"},{isocode:"zh-Hans",locale:"Chinese (simplifié)",native:"中文(简体)",flag:"🇨🇳"},{isocode:"zh-Hans-CN",locale:"Chinese (simplifié, Chine)",native:"中文(简体,中国)",flag:"🇨🇳"},{isocode:"zh-Hans-HK",locale:"Chinese (simplifié, R.A.S. chinoise de Hong Kong)",native:"中文(简体,中国香港特别行政区)",flag:"🇭🇰"},{isocode:"zh-Hans-MO",locale:"Chinese (simplifié, R.A.S. chinoise de Macao)",native:"中文(简体,中国澳门特别行政区)",flag:"🇲🇴"},{isocode:"zh-Hans-SG",locale:"Chinese (simplifié, Singapour)",native:"中文(简体,新加坡)",flag:"🇸🇬"},{isocode:"zh-Hant",locale:"Chinese (traditionnel)",native:"中文(繁體)",flag:"🇹🇼"},{isocode:"zh-Hant-HK",locale:"Chinese (traditionnel, R.A.S. chinoise de Hong Kong)",native:"中文(繁體字,中國香港特別行政區)",flag:"🇭🇰"},{isocode:"zh-Hant-MO",locale:"Chinese (traditionnel, R.A.S. chinoise de Macao)",native:"中文(繁體字,中國澳門特別行政區)",flag:"🇲🇴"},{isocode:"zh-Hant-TW",locale:"Chinese (traditionnel, Taïwan)",native:"中文(繁體,台灣)",flag:"🇹🇼"},{isocode:"zu",locale:"Zoulou",native:"IsiZulu",flag:"🇿🇦"},{isocode:"zu-ZA",locale:"Zoulou (South Africa)",native:"IsiZulu (iNingizimu Afrika)",flag:"🇿🇦"}]};exports.LOCALIZATION_EDITOR_SCOPE_CLASS=lo.LOCALIZATION_EDITOR_SCOPE_CLASS;exports.EditorStateAdapterProvider=ch;exports.EditorStateContext=ba;exports.I18N_ACTIONS=Fm;exports.I18N_CONSTANT=Ih;exports.I18nProvider=_h;exports.LocalizationEditor=zg;exports.LocalizationEditorProvider=Lh;exports.LocalizationProvider=Th;exports.Portal=Y0;exports.ReducerAdapterProvider=kh;exports.Standalone=B2;exports.getDefaultContainer=ft;exports.getDefaultInitialState=wh;exports.getLanguageDetails=$i;exports.languages=H2;exports.localizationReducer=yh;exports.useEditorStateAdapter=Vn;exports.useI18n=zn;exports.useLocalization=Ph;exports.useLocalizationEditor=Bn;exports.useModals=Eh;exports.useReducerAdapter=Sh;exports.useReduxAdapter=bm;
|
|
109
171
|
//# sourceMappingURL=index.cjs.js.map
|